diff --git a/build/cli.mjs b/build/cli.mjs index 0384a75..8bd4544 100755 --- a/build/cli.mjs +++ b/build/cli.mjs @@ -1,118 +1,127 @@ -#!/usr/bin/env bun +#!/usr/bin/env node // @bun -var tz=Object.create;var{getPrototypeOf:ez,defineProperty:WZ,getOwnPropertyNames:$7}=Object;var Y7=Object.prototype.hasOwnProperty;var $$=($,Y,Z)=>{Z=$!=null?tz(ez($)):{};let J=Y||!$||!$.__esModule?WZ(Z,"default",{value:$,enumerable:!0}):Z;for(let K of $7($))if(!Y7.call(J,K))WZ(J,K,{get:()=>$[K],enumerable:!0});return J};var C=($,Y)=>()=>(Y||$((Y={exports:{}}).exports,Y),Y.exports);var _1=import.meta.require;var d=C((LW,HZ)=>{var{FORCE_COLOR:Z7,NODE_DISABLE_COLORS:J7,TERM:K7}=process.env,g={enabled:!J7&&K7!=="dumb"&&Z7!=="0",reset:u(0,0),bold:u(1,22),dim:u(2,22),italic:u(3,23),underline:u(4,24),inverse:u(7,27),hidden:u(8,28),strikethrough:u(9,29),black:u(30,39),red:u(31,39),green:u(32,39),yellow:u(33,39),blue:u(34,39),magenta:u(35,39),cyan:u(36,39),white:u(37,39),gray:u(90,39),grey:u(90,39),bgBlack:u(40,49),bgRed:u(41,49),bgGreen:u(42,49),bgYellow:u(43,49),bgBlue:u(44,49),bgMagenta:u(45,49),bgCyan:u(46,49),bgWhite:u(47,49)};function qZ($,Y){let Z=0,J,K="",z="";for(;Z<$.length;Z++)if(J=$[Z],K+=J.open,z+=J.close,Y.includes(J.close))Y=Y.replace(J.rgx,J.close+J.open);return K+Y+z}function z7($,Y){let Z={has:$,keys:Y};return Z.reset=g.reset.bind(Z),Z.bold=g.bold.bind(Z),Z.dim=g.dim.bind(Z),Z.italic=g.italic.bind(Z),Z.underline=g.underline.bind(Z),Z.inverse=g.inverse.bind(Z),Z.hidden=g.hidden.bind(Z),Z.strikethrough=g.strikethrough.bind(Z),Z.black=g.black.bind(Z),Z.red=g.red.bind(Z),Z.green=g.green.bind(Z),Z.yellow=g.yellow.bind(Z),Z.blue=g.blue.bind(Z),Z.magenta=g.magenta.bind(Z),Z.cyan=g.cyan.bind(Z),Z.white=g.white.bind(Z),Z.gray=g.gray.bind(Z),Z.grey=g.grey.bind(Z),Z.bgBlack=g.bgBlack.bind(Z),Z.bgRed=g.bgRed.bind(Z),Z.bgGreen=g.bgGreen.bind(Z),Z.bgYellow=g.bgYellow.bind(Z),Z.bgBlue=g.bgBlue.bind(Z),Z.bgMagenta=g.bgMagenta.bind(Z),Z.bgCyan=g.bgCyan.bind(Z),Z.bgWhite=g.bgWhite.bind(Z),Z}function u($,Y){let Z={open:`\x1B[${$}m`,close:`\x1B[${Y}m`,rgx:new RegExp(`\\x1b\\[${Y}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return this.has.includes($)||(this.has.push($),this.keys.push(Z)),J===void 0?this:g.enabled?qZ(this.keys,J+""):J+"";return J===void 0?z7([$],[Z]):g.enabled?qZ([Z],J+""):J+""}}HZ.exports=g});var FZ=C((xW,BZ)=>{BZ.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var Y$=C((NW,UZ)=>{UZ.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var l=C((yW,OZ)=>{var o$={to($,Y){if(!Y)return`\x1B[${$+1}G`;return`\x1B[${Y+1};${$+1}H`},move($,Y){let Z="";if($<0)Z+=`\x1B[${-$}D`;else if($>0)Z+=`\x1B[${$}C`;if(Y<0)Z+=`\x1B[${-Y}A`;else if(Y>0)Z+=`\x1B[${Y}B`;return Z},up:($=1)=>`\x1B[${$}A`,down:($=1)=>`\x1B[${$}B`,forward:($=1)=>`\x1B[${$}C`,backward:($=1)=>`\x1B[${$}D`,nextLine:($=1)=>"\x1B[E".repeat($),prevLine:($=1)=>"\x1B[F".repeat($),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Q7={up:($=1)=>"\x1B[S".repeat($),down:($=1)=>"\x1B[T".repeat($)},G7={screen:"\x1B[2J",up:($=1)=>"\x1B[1J".repeat($),down:($=1)=>"\x1B[J".repeat($),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines($){let Y="";for(let Z=0;Z<$;Z++)Y+=this.line+(Z<$-1?o$.up():"");if($)Y+=o$.left;return Y}};OZ.exports={cursor:o$,scroll:Q7,erase:G7,beep:"\x07"}});var CZ=C((bW,EZ)=>{function V7($,Y){var Z=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!Z){if(Array.isArray($)||(Z=W7($))||Y&&$&&typeof $.length==="number"){if(Z)$=Z;var J=0,K=function(){};return{s:K,n:function(){if(J>=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function W7($,Y){if(!$)return;if(typeof $==="string")return RZ($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return RZ($,Y)}function RZ($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z[...q7($)].length;EZ.exports=function($,Y){if(!Y)return PZ.line+H7.to(0);let Z=0,J=$.split(/\r?\n/);var K=V7(J),z;try{for(K.s();!(z=K.n()).done;){let Q=z.value;Z+=1+Math.floor(Math.max(B7(Q)-1,0)/Y)}}catch(Q){K.e(Q)}finally{K.f()}return PZ.lines(Z)}});var t$=C((gW,wZ)=>{var X0={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},F7={arrowUp:X0.arrowUp,arrowDown:X0.arrowDown,arrowLeft:X0.arrowLeft,arrowRight:X0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},U7=process.platform==="win32"?F7:X0;wZ.exports=U7});var kZ=C((fW,jZ)=>{var G0=d(),e1=t$(),e$=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),O7=($)=>e$[$]||e$.default,I0=Object.freeze({aborted:G0.red(e1.cross),done:G0.green(e1.tick),exited:G0.yellow(e1.cross),default:G0.cyan("?")}),R7=($,Y,Z)=>Y?I0.aborted:Z?I0.exited:$?I0.done:I0.default,P7=($)=>G0.gray($?e1.ellipsis:e1.pointerSmall),A7=($,Y)=>G0.gray($?Y?e1.pointerSmall:"+":e1.line);jZ.exports={styles:e$,render:O7,symbols:I0,symbol:R7,delimiter:P7,item:A7}});var IZ=C((hW,XZ)=>{var E7=Y$();XZ.exports=function($,Y){let Z=String(E7($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var DZ=C((vW,_Z)=>{_Z.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{Y=$!=null?sU(nU($)):{};let J=Z||!$||!$.__esModule?jJ(Y,"default",{value:$,enumerable:!0}):Y;for(let K of rU($))if(!aU.call(J,K))jJ(J,K,{get:()=>$[K],enumerable:!0});return J};var A=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var k=oU(import.meta.url);var n=A((tA,_J)=>{var{FORCE_COLOR:tU,NODE_DISABLE_COLORS:eU,TERM:$q}=process.env,g={enabled:!eU&&$q!=="dumb"&&tU!=="0",reset:d(0,0),bold:d(1,22),dim:d(2,22),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),grey:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49)};function PJ($,Z){let Y=0,J,K="",z="";for(;Y<$.length;Y++)if(J=$[Y],K+=J.open,z+=J.close,Z.includes(J.close))Z=Z.replace(J.rgx,J.close+J.open);return K+Z+z}function Zq($,Z){let Y={has:$,keys:Z};return Y.reset=g.reset.bind(Y),Y.bold=g.bold.bind(Y),Y.dim=g.dim.bind(Y),Y.italic=g.italic.bind(Y),Y.underline=g.underline.bind(Y),Y.inverse=g.inverse.bind(Y),Y.hidden=g.hidden.bind(Y),Y.strikethrough=g.strikethrough.bind(Y),Y.black=g.black.bind(Y),Y.red=g.red.bind(Y),Y.green=g.green.bind(Y),Y.yellow=g.yellow.bind(Y),Y.blue=g.blue.bind(Y),Y.magenta=g.magenta.bind(Y),Y.cyan=g.cyan.bind(Y),Y.white=g.white.bind(Y),Y.gray=g.gray.bind(Y),Y.grey=g.grey.bind(Y),Y.bgBlack=g.bgBlack.bind(Y),Y.bgRed=g.bgRed.bind(Y),Y.bgGreen=g.bgGreen.bind(Y),Y.bgYellow=g.bgYellow.bind(Y),Y.bgBlue=g.bgBlue.bind(Y),Y.bgMagenta=g.bgMagenta.bind(Y),Y.bgCyan=g.bgCyan.bind(Y),Y.bgWhite=g.bgWhite.bind(Y),Y}function d($,Z){let Y={open:`\x1B[${$}m`,close:`\x1B[${Z}m`,rgx:new RegExp(`\\x1b\\[${Z}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return this.has.includes($)||(this.has.push($),this.keys.push(Y)),J===void 0?this:g.enabled?PJ(this.keys,J+""):J+"";return J===void 0?Zq([$],[Y]):g.enabled?PJ([Y],J+""):J+""}}_J.exports=g});var xJ=A((eA,yJ)=>{yJ.exports=($,Z)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Z){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var aZ=A(($w,kJ)=>{kJ.exports=($)=>{let Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Y=new RegExp(Z,"g");return typeof $==="string"?$.replace(Y,""):$}});var r=A((Zw,bJ)=>{var PY={to($,Z){if(!Z)return`\x1B[${$+1}G`;return`\x1B[${Z+1};${$+1}H`},move($,Z){let Y="";if($<0)Y+=`\x1B[${-$}D`;else if($>0)Y+=`\x1B[${$}C`;if(Z<0)Y+=`\x1B[${-Z}A`;else if(Z>0)Y+=`\x1B[${Z}B`;return Y},up:($=1)=>`\x1B[${$}A`,down:($=1)=>`\x1B[${$}B`,forward:($=1)=>`\x1B[${$}C`,backward:($=1)=>`\x1B[${$}D`,nextLine:($=1)=>"\x1B[E".repeat($),prevLine:($=1)=>"\x1B[F".repeat($),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Yq={up:($=1)=>"\x1B[S".repeat($),down:($=1)=>"\x1B[T".repeat($)},Jq={screen:"\x1B[2J",up:($=1)=>"\x1B[1J".repeat($),down:($=1)=>"\x1B[J".repeat($),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines($){let Z="";for(let Y=0;Y<$;Y++)Z+=this.line+(Y<$-1?PY.up():"");if($)Z+=PY.left;return Z}};bJ.exports={cursor:PY,scroll:Yq,erase:Jq,beep:"\x07"}});var uJ=A((Yw,hJ)=>{function Kq($,Z){var Y=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!Y){if(Array.isArray($)||(Y=zq($))||Z&&$&&typeof $.length==="number"){if(Y)$=Y;var J=0,K=function(){};return{s:K,n:function(){if(J>=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(H){throw H},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,U;return{s:function(){Y=Y.call($)},n:function(){var H=Y.next();return z=H.done,H},e:function(H){Q=!0,U=H},f:function(){try{if(!z&&Y.return!=null)Y.return()}finally{if(Q)throw U}}}}function zq($,Z){if(!$)return;if(typeof $==="string")return fJ($,Z);var Y=Object.prototype.toString.call($).slice(8,-1);if(Y==="Object"&&$.constructor)Y=$.constructor.name;if(Y==="Map"||Y==="Set")return Array.from($);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return fJ($,Z)}function fJ($,Z){if(Z==null||Z>$.length)Z=$.length;for(var Y=0,J=Array(Z);Y[...Qq($)].length;hJ.exports=function($,Z){if(!Z)return vJ.line+Gq.to(0);let Y=0,J=$.split(/\r?\n/);var K=Kq(J),z;try{for(K.s();!(z=K.n()).done;){let Q=z.value;Y+=1+Math.floor(Math.max(Uq(Q)-1,0)/Z)}}catch(Q){K.e(Q)}finally{K.f()}return vJ.lines(Y)}});var _Y=A((Jw,mJ)=>{var i$={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},qq={arrowUp:i$.arrowUp,arrowDown:i$.arrowDown,arrowLeft:i$.arrowLeft,arrowRight:i$.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},Hq=process.platform==="win32"?qq:i$;mJ.exports=Hq});var pJ=A((Kw,cJ)=>{var q$=n(),a0=_Y(),yY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),Vq=($)=>yY[$]||yY.default,s$=Object.freeze({aborted:q$.red(a0.cross),done:q$.green(a0.tick),exited:q$.yellow(a0.cross),default:q$.cyan("?")}),Wq=($,Z,Y)=>Z?s$.aborted:Y?s$.exited:$?s$.done:s$.default,Fq=($)=>q$.gray($?a0.ellipsis:a0.pointerSmall),Oq=($,Z)=>q$.gray($?Z?a0.pointerSmall:"+":a0.line);cJ.exports={styles:yY,render:Vq,symbols:s$,symbol:Wq,delimiter:Fq,item:Oq}});var lJ=A((zw,dJ)=>{var Rq=aZ();dJ.exports=function($,Z){let Y=String(Rq($)||"").split(/\r?\n/);if(!Z)return Y.length;return Y.map((J)=>Math.ceil(J.length/Z)).reduce((J,K)=>J+K)}});var sJ=A((Qw,iJ)=>{iJ.exports=($,Z={})=>{let Y=Number.isSafeInteger(parseInt(Z.margin))?Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",J=Z.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Y.length>=J||z[z.length-1].length+Q.length+1{TZ.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var H1=C((mW,MZ)=>{MZ.exports={action:FZ(),clear:CZ(),style:kZ(),strip:Y$(),figures:t$(),lines:IZ(),wrap:DZ(),entriesToDisplay:SZ()}});var D1=C((cW,yZ)=>{var LZ=_1("readline"),C7=H1(),w7=C7.action,j7=_1("events"),xZ=l(),k7=xZ.beep,X7=xZ.cursor,I7=d();class NZ extends j7{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=LZ.createInterface({input:this.in,escapeCodeTimeout:50});if(LZ.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=w7(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(X7.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(k7)}render(){if(this.onRender(I7),this.firstRender)this.firstRender=!1}}yZ.exports=NZ});var uZ=C((pW,vZ)=>{function bZ($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function gZ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){bZ(z,J,K,Q,W,"next",G)}function W(G){bZ(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var Z$=d(),_7=D1(),fZ=l(),D7=fZ.erase,_0=fZ.cursor,J$=H1(),$Y=J$.style,YY=J$.clear,T7=J$.lines,S7=J$.figures;class hZ extends _7{constructor($={}){super($);this.transform=$Y.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=YY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=Z$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return gZ(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return gZ(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(_0.down(T7(this.outputError,this.out.columns)-1)+YY(this.outputError,this.out.columns));this.out.write(YY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[$Y.symbol(this.done,this.aborted),Z$.bold(this.msg),$Y.delimiter(this.done),this.red?Z$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":S7.pointerSmall} ${Z$.red().italic(Y)}`,"");this.out.write(D7.line+_0.to(0)+this.outputText+_0.save+this.outputError+_0.restore+_0.move(this.cursorOffset,0))}}vZ.exports=hZ});var lZ=C((dW,dZ)=>{var T1=d(),M7=D1(),D0=H1(),mZ=D0.style,cZ=D0.clear,K$=D0.figures,L7=D0.wrap,x7=D0.entriesToDisplay,N7=l(),y7=N7.cursor;class pZ extends M7{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=cZ("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`)}});var rJ=A((Gw,nJ)=>{nJ.exports=($,Z,Y)=>{Y=Y||Z;let J=Math.min(Z-Y,$-Math.floor(Y/2));if(J<0)J=0;let K=Math.min(J+Y,Z);return{startIndex:J,endIndex:K}}});var v1=A((Uw,aJ)=>{aJ.exports={action:xJ(),clear:uJ(),style:pJ(),strip:aZ(),figures:_Y(),lines:lJ(),wrap:sJ(),entriesToDisplay:rJ()}});var B0=A((qw,$6)=>{var oJ=k("readline"),Iq=v1(),Eq=Iq.action,Aq=k("events"),tJ=r(),wq=tJ.beep,Bq=tJ.cursor,Cq=n();class eJ extends Aq{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Z=oJ.createInterface({input:this.in,escapeCodeTimeout:50});if(oJ.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);let Y=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=Eq(z,Y);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(Bq.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(wq)}render(){if(this.onRender(Cq),this.firstRender)this.firstRender=!1}}$6.exports=eJ});var Q6=A((Hw,z6)=>{function Z6($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function Y6($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){Z6(z,J,K,Q,U,"next",G)}function U(G){Z6(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var oZ=n(),Dq=B0(),J6=r(),Mq=J6.erase,n$=J6.cursor,tZ=v1(),xY=tZ.style,kY=tZ.clear,Lq=tZ.lines,Tq=tZ.figures;class K6 extends Dq{constructor($={}){super($);this.transform=xY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=kY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=oZ.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return Y6(function*(){let Z=yield $.validator($.value);if(typeof Z==="string")$.errorMsg=Z,Z=!1;$.error=!Z})()}submit(){var $=this;return Y6(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Z){let Y=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Y}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Y.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(n$.down(Lq(this.outputError,this.out.columns)-1)+kY(this.outputError,this.out.columns));this.out.write(kY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[xY.symbol(this.done,this.aborted),oZ.bold(this.msg),xY.delimiter(this.done),this.red?oZ.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":Tq.pointerSmall} ${oZ.red().italic(Z)}`,"");this.out.write(Mq.line+n$.to(0)+this.outputText+n$.save+this.outputError+n$.restore+n$.move(this.cursorOffset,0))}}z6.exports=K6});var V6=A((Vw,H6)=>{var C0=n(),Xq=B0(),r$=v1(),G6=r$.style,U6=r$.clear,eZ=r$.figures,Sq=r$.wrap,Nq=r$.entriesToDisplay,jq=r(),Pq=jq.cursor;class q6 extends Xq{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?Y:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=U6("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(y7.hide);else this.out.write(cZ(this.outputText,this.out.columns));super.render();let $=x7(this.cursor,this.choices.length,this.optionsPerPage),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[mZ.symbol(this.done,this.aborted),T1.bold(this.msg),mZ.delimiter(!1),this.done?this.selection.title:this.selection.disabled?T1.yellow(this.warn):T1.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let J=Y;J0)z=K$.arrowUp;else if(J===Z-1&&Z=this.out.columns||W.description.split(/\r?\n/).length>1)Q=` -`+L7(W.description,{margin:3,width:this.out.columns})}this.outputText+=`${z} ${K}${T1.gray(Q)} -`}}this.out.write(this.outputText)}}dZ.exports=pZ});var tZ=C((lW,oZ)=>{var z$=d(),b7=D1(),rZ=H1(),sZ=rZ.style,g7=rZ.clear,aZ=l(),iZ=aZ.cursor,f7=aZ.erase;class nZ extends b7{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Z){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(Pq.hide);else this.out.write(U6(this.outputText,this.out.columns));super.render();let $=Nq(this.cursor,this.choices.length,this.optionsPerPage),Z=$.startIndex,Y=$.endIndex;if(this.outputText=[G6.symbol(this.done,this.aborted),C0.bold(this.msg),G6.delimiter(!1),this.done?this.selection.title:this.selection.disabled?C0.yellow(this.warn):C0.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let J=Z;J0)z=eZ.arrowUp;else if(J===Y-1&&Y=this.out.columns||U.description.split(/\r?\n/).length>1)Q=` +`+Sq(U.description,{margin:3,width:this.out.columns})}this.outputText+=`${z} ${K}${C0.gray(Q)} +`}}this.out.write(this.outputText)}}H6.exports=q6});var A6=A((Ww,E6)=>{var $9=n(),_q=B0(),O6=v1(),W6=O6.style,yq=O6.clear,R6=r(),F6=R6.cursor,xq=R6.erase;class I6 extends _q{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(iZ.hide);else this.out.write(g7(this.outputText,this.out.columns));super.render(),this.outputText=[sZ.symbol(this.done,this.aborted),z$.bold(this.msg),sZ.delimiter(this.done),this.value?this.inactive:z$.cyan().underline(this.inactive),z$.gray("/"),this.value?z$.cyan().underline(this.active):this.active].join(" "),this.out.write(f7.line+iZ.to(0)+this.outputText)}}oZ.exports=nZ});var O1=C((sW,eZ)=>{class Q${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof Q$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof Q$)}toString(){return String(this.date)}}eZ.exports=Q$});var Z9=C((iW,Y9)=>{var h7=O1();class $9 extends h7{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}Y9.exports=$9});var z9=C((rW,K9)=>{var v7=O1(),u7=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class J9 extends v7{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+u7($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}K9.exports=J9});var V9=C((aW,G9)=>{var m7=O1();class Q9 extends m7{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}G9.exports=Q9});var H9=C((nW,q9)=>{var c7=O1();class W9 extends c7{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}q9.exports=W9});var U9=C((oW,F9)=>{var p7=O1();class B9 extends p7{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}F9.exports=B9});var P9=C((tW,R9)=>{var d7=O1();class O9 extends d7{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}R9.exports=O9});var C9=C((eW,E9)=>{var l7=O1();class A9 extends l7{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}E9.exports=A9});var k9=C(($q,j9)=>{var s7=O1();class w9 extends s7{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}j9.exports=w9});var I9=C((Yq,X9)=>{X9.exports={DatePart:O1(),Meridiem:Z9(),Day:z9(),Hours:V9(),Milliseconds:H9(),Minutes:U9(),Month:P9(),Seconds:C9(),Year:k9()}});var g9=C((Zq,b9)=>{function _9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function D9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){_9(z,J,K,Q,W,"next",G)}function W(G){_9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var ZY=d(),i7=D1(),JY=H1(),T9=JY.style,S9=JY.clear,r7=JY.figures,N9=l(),a7=N9.erase,M9=N9.cursor,S1=I9(),L9=S1.DatePart,n7=S1.Meridiem,o7=S1.Day,t7=S1.Hours,e7=S1.Milliseconds,$Q=S1.Minutes,YQ=S1.Month,ZQ=S1.Seconds,JQ=S1.Year,KQ=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,x9={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new o7($),3:($)=>new YQ($),4:($)=>new JQ($),5:($)=>new n7($),6:($)=>new t7($),7:($)=>new $Q($),8:($)=>new ZQ($),9:($)=>new e7($)},zQ={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class y9 extends i7{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(zQ,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=S9("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=KQ.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in x9?x9[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof L9)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return D9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return D9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof L9)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(M9.hide);else this.out.write(S9(this.outputText,this.out.columns));if(super.render(),this.outputText=[T9.symbol(this.done,this.aborted),ZY.bold(this.msg),T9.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?ZY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":r7.pointerSmall} ${ZY.red().italic(Y)}`,"");this.out.write(a7.line+M9.to(0)+this.outputText)}}b9.exports=y9});var d9=C((Jq,p9)=>{function f9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function h9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){f9(z,J,K,Q,W,"next",G)}function W(G){f9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var G$=d(),QQ=D1(),m9=l(),V$=m9.cursor,GQ=m9.erase,W$=H1(),KY=W$.style,VQ=W$.figures,v9=W$.clear,WQ=W$.lines,qQ=/[0-9]/,zY=($)=>$!==void 0,u9=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class c9 extends QQ{constructor($={}){super($);this.transform=KY.render($.style),this.msg=$.message,this.initial=zY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=zY($.min)?$.min:-1/0,this.max=zY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=G$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${u9($,this.round)}`),this._value=u9($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||qQ.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return h9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return h9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}let Y=$.value;$.value=Y!==""?Y:$.initial,$.done=!0,$.aborted=!1,$.error=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` -${Z?" ":VQ.pointerSmall} ${G$.red().italic(Y)}`,"");this.out.write(GQ.line+V$.to(0)+this.outputText+V$.save+this.outputError+V$.restore)}}p9.exports=c9});var QY=C((Kq,r9)=>{var R1=d(),HQ=l(),BQ=HQ.cursor,FQ=D1(),T0=H1(),l9=T0.clear,m1=T0.figures,s9=T0.style,UQ=T0.wrap,OQ=T0.entriesToDisplay;class i9 extends FQ{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=l9("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Z){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(F6.hide);else this.out.write(yq(this.outputText,this.out.columns));super.render(),this.outputText=[W6.symbol(this.done,this.aborted),$9.bold(this.msg),W6.delimiter(this.done),this.value?this.inactive:$9.cyan().underline(this.inactive),$9.gray("/"),this.value?$9.cyan().underline(this.active):this.active].join(" "),this.out.write(xq.line+F6.to(0)+this.outputText)}}E6.exports=I6});var l1=A((Fw,w6)=>{class Z9{constructor({token:$,date:Z,parts:Y,locales:J}){this.token=$,this.date=Z||new Date,this.parts=Y||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Z,Y)=>Y>$&&Z instanceof Z9)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Z=$.indexOf(this);return $.find((Y,J)=>J>Z&&Y instanceof Z9)}toString(){return String(this.date)}}w6.exports=Z9});var D6=A((Ow,C6)=>{var kq=l1();class B6 extends kq{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}C6.exports=B6});var T6=A((Rw,L6)=>{var bq=l1(),fq=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class M6 extends bq{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+fq($):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:$}}L6.exports=M6});var N6=A((Iw,S6)=>{var vq=l1();class X6 extends vq{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}S6.exports=X6});var _6=A((Ew,P6)=>{var gq=l1();class j6 extends gq{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}P6.exports=j6});var k6=A((Aw,x6)=>{var hq=l1();class y6 extends hq{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}x6.exports=y6});var v6=A((ww,f6)=>{var uq=l1();class b6 extends uq{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Z=this.token.length;return Z===2?String($+1).padStart(2,"0"):Z===3?this.locales.monthsShort[$]:Z===4?this.locales.months[$]:String($+1)}}f6.exports=b6});var u6=A((Bw,h6)=>{var mq=l1();class g6 extends mq{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}h6.exports=g6});var p6=A((Cw,c6)=>{var cq=l1();class m6 extends cq{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}c6.exports=m6});var l6=A((Dw,d6)=>{d6.exports={DatePart:l1(),Meridiem:D6(),Day:T6(),Hours:N6(),Milliseconds:_6(),Minutes:k6(),Month:v6(),Seconds:u6(),Year:p6()}});var Y4=A((Mw,Z4)=>{function i6($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function s6($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){i6(z,J,K,Q,U,"next",G)}function U(G){i6(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var bY=n(),pq=B0(),fY=v1(),n6=fY.style,r6=fY.clear,dq=fY.figures,e6=r(),lq=e6.erase,a6=e6.cursor,D0=l6(),o6=D0.DatePart,iq=D0.Meridiem,sq=D0.Day,nq=D0.Hours,rq=D0.Milliseconds,aq=D0.Minutes,oq=D0.Month,tq=D0.Seconds,eq=D0.Year,$H=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,t6={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new sq($),3:($)=>new oq($),4:($)=>new eq($),5:($)=>new iq($),6:($)=>new nq($),7:($)=>new aq($),8:($)=>new tq($),9:($)=>new rq($)},ZH={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class $4 extends pq{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(ZH,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=r6("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Z;this.parts=[];while(Z=$H.exec($)){let J=Z.shift(),K=Z.findIndex((z)=>z!=null);this.parts.push(K in t6?t6[K]({token:Z[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Z[K]||J)}let Y=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Y),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof o6)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return s6(function*(){let Z=yield $.validator($.value);if(typeof Z==="string")$.errorMsg=Z,Z=!1;$.error=!Z})()}submit(){var $=this;return s6(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Z)=>Z instanceof o6)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a6.hide);else this.out.write(r6(this.outputText,this.out.columns));if(super.render(),this.outputText=[n6.symbol(this.done,this.aborted),bY.bold(this.msg),n6.delimiter(!1),this.parts.reduce(($,Z,Y)=>$.concat(Y===this.cursor&&!this.done?bY.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":dq.pointerSmall} ${bY.red().italic(Z)}`,"");this.out.write(lq.line+a6.to(0)+this.outputText)}}Z4.exports=$4});var H4=A((Lw,q4)=>{function J4($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function K4($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){J4(z,J,K,Q,U,"next",G)}function U(G){J4(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var Y9=n(),YH=B0(),G4=r(),J9=G4.cursor,JH=G4.erase,K9=v1(),vY=K9.style,KH=K9.figures,z4=K9.clear,zH=K9.lines,QH=/[0-9]/,gY=($)=>$!==void 0,Q4=($,Z)=>{let Y=Math.pow(10,Z);return Math.round($*Y)/Y};class U4 extends YH{constructor($={}){super($);this.transform=vY.render($.style),this.msg=$.message,this.initial=gY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=gY($.min)?$.min:-1/0,this.max=gY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=Y9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${Q4($,this.round)}`),this._value=Q4($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||QH.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return K4(function*(){let Z=yield $.validator($.value);if(typeof Z==="string")$.errorMsg=Z,Z=!1;$.error=!Z})()}submit(){var $=this;return K4(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}let Z=$.value;$.value=Z!==""?Z:$.initial,$.done=!0,$.aborted=!1,$.error=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Y,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` +${Y?" ":KH.pointerSmall} ${Y9.red().italic(Z)}`,"");this.out.write(JH.line+J9.to(0)+this.outputText+J9.save+this.outputError+J9.restore)}}q4.exports=U4});var hY=A((Tw,O4)=>{var i1=n(),GH=r(),UH=GH.cursor,qH=B0(),a$=v1(),V4=a$.clear,b0=a$.figures,W4=a$.style,HH=a$.wrap,VH=a$.entriesToDisplay;class F4 extends qH{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?Y:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=V4("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let $=this.value.filter((Z)=>Z.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=$),this.render()}_($,Z){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${m1.arrowUp}/${m1.arrowDown}: Highlight option - ${m1.arrowLeft}/${m1.arrowRight}/[space]: Toggle selection + ${b0.arrowUp}/${b0.arrowDown}: Highlight option + ${b0.arrowLeft}/${b0.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?R1.green(m1.radioOn):m1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?R1.gray().underline(Y.title):R1.strikethrough().gray(Y.title);else if(z=$===Z?R1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` -`+UQ(Y.description,{margin:K.length,width:this.out.columns})}return K+z+R1.gray(Q||"")}paginateOptions($){if($.length===0)return R1.red("No matches for this query.");let Y=OQ(this.cursor,$.length,this.optionsPerPage),Z=Y.startIndex,J=Y.endIndex,K,z=[];for(let Q=Z;Q0)K=m1.arrowUp;else if(Q===J-1&&J<$.length)K=m1.arrowDown;else K=" ";z.push(this.renderOption(this.cursor,$[Q],Q,K))}return` +`:"")+" enter/return: Complete answer"}return""}renderOption($,Z,Y,J){let K=(Z.selected?i1.green(b0.radioOn):b0.radioOff)+" "+J+" ",z,Q;if(Z.disabled)z=$===Y?i1.gray().underline(Z.title):i1.strikethrough().gray(Z.title);else if(z=$===Y?i1.cyan().underline(Z.title):Z.title,$===Y&&Z.description){if(Q=` - ${Z.description}`,K.length+z.length+Q.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Q=` +`+HH(Z.description,{margin:K.length,width:this.out.columns})}return K+z+i1.gray(Q||"")}paginateOptions($){if($.length===0)return i1.red("No matches for this query.");let Z=VH(this.cursor,$.length,this.optionsPerPage),Y=Z.startIndex,J=Z.endIndex,K,z=[];for(let Q=Y;Q0)K=b0.arrowUp;else if(Q===J-1&&J<$.length)K=b0.arrowDown;else K=" ";z.push(this.renderOption(this.cursor,$[Q],Q,K))}return` `+z.join(` -`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[R1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(R1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(BQ.hide);super.render();let $=[s9.symbol(this.done,this.aborted),R1.bold(this.msg),s9.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=R1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=l9($,this.out.columns)}}r9.exports=i9});var Z4=C((zq,Y4)=>{function a9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function RQ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){a9(z,J,K,Q,W,"next",G)}function W(G){a9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var S0=d(),PQ=D1(),e9=l(),AQ=e9.erase,n9=e9.cursor,M0=H1(),GY=M0.style,o9=M0.clear,VY=M0.figures,EQ=M0.wrap,CQ=M0.entriesToDisplay,t9=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),wQ=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),jQ=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class $4 extends PQ{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:jQ($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=GY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=o9("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=t9(this.suggestions,$);else this.value=this.fallback.value;this.fire()}complete($){var Y=this;return RQ(function*(){let Z=Y.completing=Y.suggest(Y.input,Y.choices),J=yield Z;if(Y.completing!==Z)return;Y.suggestions=J.map((z,Q,W)=>({title:wQ(W,Q),value:t9(W,Q),description:z.description})),Y.completing=!1;let K=Math.max(J.length-1,0);Y.moveSelect(Math.min(K,Y.select)),$&&$()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[i1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(i1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(UH.hide);super.render();let $=[W4.symbol(this.done,this.aborted),i1.bold(this.msg),W4.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=i1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=V4($,this.out.columns)}}O4.exports=F4});var D4=A((Xw,C4)=>{function R4($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function WH($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){R4(z,J,K,Q,U,"next",G)}function U(G){R4(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var o$=n(),FH=B0(),w4=r(),OH=w4.erase,I4=w4.cursor,t$=v1(),uY=t$.style,E4=t$.clear,mY=t$.figures,RH=t$.wrap,IH=t$.entriesToDisplay,A4=($,Z)=>$[Z]&&($[Z].value||$[Z].title||$[Z]),EH=($,Z)=>$[Z]&&($[Z].title||$[Z].value||$[Z]),AH=($,Z)=>{let Y=$.findIndex((J)=>J.value===Z||J.title===Z);return Y>-1?Y:void 0};class B4 extends FH{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:AH($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=uY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=E4("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=A4(this.suggestions,$);else this.value=this.fallback.value;this.fire()}complete($){var Z=this;return WH(function*(){let Y=Z.completing=Z.suggest(Z.input,Z.choices),J=yield Y;if(Z.completing!==Y)return;Z.suggestions=J.map((z,Q,U)=>({title:EH(U,Q),value:A4(U,Q),description:z.description})),Z.completing=!1;let K=Math.max(J.length-1,0);Z.moveSelect(Math.min(K,Z.select)),$&&$()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` `),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor);this.input=`${Z}${$}${J}`,this.cursor=Z.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let $=this.input.slice(0,this.cursor-1),Y=this.input.slice(this.cursor);this.input=`${$}${Y}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?VY.arrowUp:J?VY.arrowDown:" ",Q=Y?S0.cyan().underline($.title):$.title;if(z=(Y?S0.cyan(VY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` -`+EQ($.description,{margin:3,width:this.out.columns})}return z+" "+Q+S0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n9.hide);else this.out.write(o9(this.outputText,this.out.columns));super.render();let $=CQ(this.select,this.choices.length,this.limit),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[GY.symbol(this.done,this.aborted,this.exited),S0.bold(this.msg),GY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let J=this.suggestions.slice(Y,Z).map((K,z)=>this.renderOption(K,this.select===z+Y,z===0&&Y>0,z+Y===Z-1&&Z=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${$}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Z,Y,J){let K,z=Y?mY.arrowUp:J?mY.arrowDown:" ",Q=Z?o$.cyan().underline($.title):$.title;if(z=(Z?o$.cyan(mY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` +`+RH($.description,{margin:3,width:this.out.columns})}return z+" "+Q+o$.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(I4.hide);else this.out.write(E4(this.outputText,this.out.columns));super.render();let $=IH(this.select,this.choices.length,this.limit),Z=$.startIndex,Y=$.endIndex;if(this.outputText=[uY.symbol(this.done,this.aborted,this.exited),o$.bold(this.msg),uY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let J=this.suggestions.slice(Z,Y).map((K,z)=>this.renderOption(K,this.select===z+Z,z===0&&Z>0,z+Z===Y-1&&Y{var M1=d(),kQ=l(),XQ=kQ.cursor,IQ=QY(),WY=H1(),J4=WY.clear,K4=WY.style,V0=WY.figures;class z4 extends IQ{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=J4("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`+(J||o$.gray(this.fallback.title))}this.out.write(OH.line+I4.to(0)+this.outputText)}}C4.exports=B4});var S4=A((Sw,X4)=>{var M0=n(),wH=r(),BH=wH.cursor,CH=hY(),cY=v1(),M4=cY.clear,L4=cY.style,H$=cY.figures;class T4 extends CH{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=M4("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Y)=>{if(this.inputValue){if(typeof Y.title==="string"){if(Y.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Y.value==="string"){if(Y.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Z=this.filteredOptions.findIndex((Y)=>Y===$);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Z){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${V0.arrowUp}/${V0.arrowDown}: Highlight option - ${V0.arrowLeft}/${V0.arrowRight}/[space]: Toggle selection + ${H$.arrowUp}/${H$.arrowDown}: Highlight option + ${H$.arrowLeft}/${H$.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer `}return""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:M1.gray("Enter something to filter")} -`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?M1.gray().underline(Y.title):M1.strikethrough().gray(Y.title);else J=$===Z?M1.cyan().underline(Y.title):Y.title;return(Y.selected?M1.green(V0.radioOn):V0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[M1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(M1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(XQ.hide);super.render();let $=[K4.symbol(this.done,this.aborted),M1.bold(this.msg),K4.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=M1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=J4($,this.out.columns)}}Q4.exports=z4});var O4=C((Gq,U4)=>{var V4=d(),_Q=D1(),H4=H1(),W4=H4.style,DQ=H4.clear,B4=l(),TQ=B4.erase,q4=B4.cursor;class F4 extends _Q{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +Filtered results for: ${this.inputValue?this.inputValue:M0.gray("Enter something to filter")} +`}renderOption($,Z,Y){let J;if(Z.disabled)J=$===Y?M0.gray().underline(Z.title):M0.strikethrough().gray(Z.title);else J=$===Y?M0.cyan().underline(Z.title):Z.title;return(Z.selected?M0.green(H$.radioOn):H$.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[M0.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(M0.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(BH.hide);super.render();let $=[L4.symbol(this.done,this.aborted),M0.bold(this.msg),L4.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=M0.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=M4($,this.out.columns)}}X4.exports=T4});var b4=A((Nw,k4)=>{var N4=n(),DH=B0(),_4=v1(),j4=_4.style,MH=_4.clear,y4=r(),LH=y4.erase,P4=y4.cursor;class x4 extends DH{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(q4.hide);else this.out.write(DQ(this.outputText,this.out.columns));super.render(),this.outputText=[W4.symbol(this.done,this.aborted),V4.bold(this.msg),W4.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:V4.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(TQ.line+q4.to(0)+this.outputText)}}U4.exports=F4});var P4=C((Vq,R4)=>{R4.exports={TextPrompt:uZ(),SelectPrompt:lZ(),TogglePrompt:tZ(),DatePrompt:g9(),NumberPrompt:d9(),MultiselectPrompt:QY(),AutocompletePrompt:Z4(),AutocompleteMultiselectPrompt:G4(),ConfirmPrompt:O4()}});var E4=C((A4)=>{var $1=A4,SQ=P4(),q$=($)=>$;function P1($,Y,Z={}){return new Promise((J,K)=>{let z=new SQ[$](Y),Q=Z.onAbort||q$,W=Z.onSubmit||q$,G=Z.onExit||q$;z.on("state",Y.onState||q$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}$1.text=($)=>P1("TextPrompt",$);$1.password=($)=>{return $.style="password",$1.text($)};$1.invisible=($)=>{return $.style="invisible",$1.text($)};$1.number=($)=>P1("NumberPrompt",$);$1.date=($)=>P1("DatePrompt",$);$1.confirm=($)=>P1("ConfirmPrompt",$);$1.list=($)=>{let Y=$.separator||",";return P1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};$1.toggle=($)=>P1("TogglePrompt",$);$1.select=($)=>P1("SelectPrompt",$);$1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};$1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var MQ=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));$1.autocomplete=($)=>{return $.suggest=$.suggest||MQ,$.choices=[].concat($.choices||[]),P1("AutocompletePrompt",$)}});var D4=C((qq,_4)=>{function C4($,Y){var Z=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);if(Y)J=J.filter(function(K){return Object.getOwnPropertyDescriptor($,K).enumerable});Z.push.apply(Z,J)}return Z}function w4($){for(var Y=1;Y=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function NQ($,Y){if(!$)return;if(typeof $==="string")return j4($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return j4($,Y)}function j4($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z{};function c1(){return HY.apply(this,arguments)}function HY(){return HY=X4(function*($=[],{onSubmit:Y=I4,onCancel:Z=I4}={}){let J={},K=c1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=function(){var X=X4(function*(D,y,O=!1){if(!O&&D.validate&&D.validate(y)!==!0)return;return D.format?yield D.format(y,J):y});return function(y,O){return X.apply(this,arguments)}}();var P=xQ($),w;try{for(P.s();!(w=P.n()).done;){Q=w.value;var I=Q;if(G=I.name,q=I.type,typeof q==="function")q=yield q(z,w4({},J),Q),Q.type=q;if(!q)continue;for(let X in Q){if(yQ.includes(X))continue;let D=Q[X];Q[X]=typeof D==="function"?yield D(z,w4({},J),H):D}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");var T=Q;if(G=T.name,q=T.type,qY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=yield R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=c1._injected?bQ(c1._injected,Q.initial):yield qY[q](Q),J[G]=z=yield R(Q,z,!0),W=yield Y(Q,z,J)}catch(X){W=!(yield Z(Q,J))}if(W)return J}}catch(X){P.e(X)}finally{P.f()}return J}),HY.apply(this,arguments)}function bQ($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function gQ($){c1._injected=(c1._injected||[]).concat($)}function fQ($){c1._override=Object.assign({},$)}_4.exports=Object.assign(c1,{prompt:c1,prompts:qY,inject:gQ,override:fQ})});var S4=C((Hq,T4)=>{T4.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var H$=C((Bq,M4)=>{M4.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var N4=C((Fq,x4)=>{var hQ=H$(),{erase:L4,cursor:vQ}=l(),uQ=($)=>[...hQ($)].length;x4.exports=function($,Y){if(!Y)return L4.line+vQ.to(0);let Z=0,J=$.split(/\r?\n/);for(let K of J)Z+=1+Math.floor(Math.max(uQ(K)-1,0)/Y);return L4.lines(Z)}});var BY=C((Uq,y4)=>{var L0={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},mQ={arrowUp:L0.arrowUp,arrowDown:L0.arrowDown,arrowLeft:L0.arrowLeft,arrowRight:L0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},cQ=process.platform==="win32"?mQ:L0;y4.exports=cQ});var g4=C((Oq,b4)=>{var W0=d(),$0=BY(),FY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),pQ=($)=>FY[$]||FY.default,x0=Object.freeze({aborted:W0.red($0.cross),done:W0.green($0.tick),exited:W0.yellow($0.cross),default:W0.cyan("?")}),dQ=($,Y,Z)=>Y?x0.aborted:Z?x0.exited:$?x0.done:x0.default,lQ=($)=>W0.gray($?$0.ellipsis:$0.pointerSmall),sQ=($,Y)=>W0.gray($?Y?$0.pointerSmall:"+":$0.line);b4.exports={styles:FY,render:pQ,symbols:x0,symbol:dQ,delimiter:lQ,item:sQ}});var h4=C((Rq,f4)=>{var iQ=H$();f4.exports=function($,Y){let Z=String(iQ($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var u4=C((Pq,v4)=>{v4.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{f4.exports={TextPrompt:Q6(),SelectPrompt:V6(),TogglePrompt:A6(),DatePrompt:Y4(),NumberPrompt:H4(),MultiselectPrompt:hY(),AutocompletePrompt:D4(),AutocompleteMultiselectPrompt:S4(),ConfirmPrompt:b4()}});var h4=A((g4)=>{var V1=g4,TH=v4(),z9=($)=>$;function s1($,Z,Y={}){return new Promise((J,K)=>{let z=new TH[$](Z),Q=Y.onAbort||z9,U=Y.onSubmit||z9,G=Y.onExit||z9;z.on("state",Z.onState||z9),z.on("submit",(H)=>J(U(H))),z.on("exit",(H)=>J(G(H))),z.on("abort",(H)=>K(Q(H)))})}V1.text=($)=>s1("TextPrompt",$);V1.password=($)=>{return $.style="password",V1.text($)};V1.invisible=($)=>{return $.style="invisible",V1.text($)};V1.number=($)=>s1("NumberPrompt",$);V1.date=($)=>s1("DatePrompt",$);V1.confirm=($)=>s1("ConfirmPrompt",$);V1.list=($)=>{let Z=$.separator||",";return s1("TextPrompt",$,{onSubmit:(Y)=>Y.split(Z).map((J)=>J.trim())})};V1.toggle=($)=>s1("TogglePrompt",$);V1.select=($)=>s1("SelectPrompt",$);V1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return s1("MultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};V1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return s1("AutocompleteMultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};var XH=($,Z)=>Promise.resolve(Z.filter((Y)=>Y.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));V1.autocomplete=($)=>{return $.suggest=$.suggest||XH,$.choices=[].concat($.choices||[]),s1("AutocompletePrompt",$)}});var s4=A((_w,i4)=>{function u4($,Z){var Y=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);if(Z)J=J.filter(function(K){return Object.getOwnPropertyDescriptor($,K).enumerable});Y.push.apply(Y,J)}return Y}function m4($){for(var Z=1;Z=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(H){throw H},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,U;return{s:function(){Y=Y.call($)},n:function(){var H=Y.next();return z=H.done,H},e:function(H){Q=!0,U=H},f:function(){try{if(!z&&Y.return!=null)Y.return()}finally{if(Q)throw U}}}}function jH($,Z){if(!$)return;if(typeof $==="string")return c4($,Z);var Y=Object.prototype.toString.call($).slice(8,-1);if(Y==="Object"&&$.constructor)Y=$.constructor.name;if(Y==="Map"||Y==="Set")return Array.from($);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return c4($,Z)}function c4($,Z){if(Z==null||Z>$.length)Z=$.length;for(var Y=0,J=Array(Z);Y{};function f0(){return dY.apply(this,arguments)}function dY(){return dY=d4(function*($=[],{onSubmit:Z=l4,onCancel:Y=l4}={}){let J={},K=f0._override||{};$=[].concat($);let z,Q,U,G,H,V,I=function(){var D=d4(function*(S,P,R=!1){if(!R&&S.validate&&S.validate(P)!==!0)return;return S.format?yield S.format(P,J):P});return function(P,R){return D.apply(this,arguments)}}();var E=NH($),w;try{for(E.s();!(w=E.n()).done;){Q=w.value;var T=Q;if(G=T.name,H=T.type,typeof H==="function")H=yield H(z,m4({},J),Q),Q.type=H;if(!H)continue;for(let D in Q){if(PH.includes(D))continue;let S=Q[D];Q[D]=typeof S==="function"?yield S(z,m4({},J),V):S}if(V=Q,typeof Q.message!=="string")throw Error("prompt message is required");var X=Q;if(G=X.name,H=X.type,pY[H]===void 0)throw Error(`prompt type (${H}) is not defined`);if(K[Q.name]!==void 0){if(z=yield I(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=f0._injected?_H(f0._injected,Q.initial):yield pY[H](Q),J[G]=z=yield I(Q,z,!0),U=yield Z(Q,z,J)}catch(D){U=!(yield Y(Q,J))}if(U)return J}}catch(D){E.e(D)}finally{E.f()}return J}),dY.apply(this,arguments)}function _H($,Z){let Y=$.shift();if(Y instanceof Error)throw Y;return Y===void 0?Z:Y}function yH($){f0._injected=(f0._injected||[]).concat($)}function xH($){f0._override=Object.assign({},$)}i4.exports=Object.assign(f0,{prompt:f0,prompts:pY,inject:yH,override:xH})});var r4=A((yw,n4)=>{n4.exports=($,Z)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Z){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var Q9=A((xw,a4)=>{a4.exports=($)=>{let Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Y=new RegExp(Z,"g");return typeof $==="string"?$.replace(Y,""):$}});var e4=A((kw,t4)=>{var kH=Q9(),{erase:o4,cursor:bH}=r(),fH=($)=>[...kH($)].length;t4.exports=function($,Z){if(!Z)return o4.line+bH.to(0);let Y=0,J=$.split(/\r?\n/);for(let K of J)Y+=1+Math.floor(Math.max(fH(K)-1,0)/Z);return o4.lines(Y)}});var lY=A((bw,$K)=>{var e$={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},vH={arrowUp:e$.arrowUp,arrowDown:e$.arrowDown,arrowLeft:e$.arrowLeft,arrowRight:e$.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},gH=process.platform==="win32"?vH:e$;$K.exports=gH});var YK=A((fw,ZK)=>{var V$=n(),o0=lY(),iY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),hH=($)=>iY[$]||iY.default,$Z=Object.freeze({aborted:V$.red(o0.cross),done:V$.green(o0.tick),exited:V$.yellow(o0.cross),default:V$.cyan("?")}),uH=($,Z,Y)=>Z?$Z.aborted:Y?$Z.exited:$?$Z.done:$Z.default,mH=($)=>V$.gray($?o0.ellipsis:o0.pointerSmall),cH=($,Z)=>V$.gray($?Z?o0.pointerSmall:"+":o0.line);ZK.exports={styles:iY,render:hH,symbols:$Z,symbol:uH,delimiter:mH,item:cH}});var KK=A((vw,JK)=>{var pH=Q9();JK.exports=function($,Z){let Y=String(pH($)||"").split(/\r?\n/);if(!Z)return Y.length;return Y.map((J)=>Math.ceil(J.length/Z)).reduce((J,K)=>J+K)}});var QK=A((gw,zK)=>{zK.exports=($,Z={})=>{let Y=Number.isSafeInteger(parseInt(Z.margin))?Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",J=Z.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Y.length>=J||z[z.length-1].length+Q.length+1{m4.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var B1=C((Eq,p4)=>{p4.exports={action:S4(),clear:N4(),style:g4(),strip:H$(),figures:BY(),lines:h4(),wrap:u4(),entriesToDisplay:c4()}});var L1=C((Cq,s4)=>{var d4=_1("readline"),{action:rQ}=B1(),aQ=_1("events"),{beep:nQ,cursor:oQ}=l(),tQ=d();class l4 extends aQ{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=d4.createInterface({input:this.in,escapeCodeTimeout:50});if(d4.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=rQ(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(oQ.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(nQ)}render(){if(this.onRender(tQ),this.firstRender)this.firstRender=!1}}s4.exports=l4});var a4=C((wq,r4)=>{var B$=d(),eQ=L1(),{erase:$5,cursor:N0}=l(),{style:UY,clear:OY,lines:Y5,figures:Z5}=B1();class i4 extends eQ{constructor($={}){super($);this.transform=UY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=OY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=B$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`)}});var UK=A((hw,GK)=>{GK.exports=($,Z,Y)=>{Y=Y||Z;let J=Math.min(Z-Y,$-Math.floor(Y/2));if(J<0)J=0;let K=Math.min(J+Y,Z);return{startIndex:J,endIndex:K}}});var g1=A((uw,qK)=>{qK.exports={action:r4(),clear:e4(),style:YK(),strip:Q9(),figures:lY(),lines:KK(),wrap:QK(),entriesToDisplay:UK()}});var L0=A((mw,WK)=>{var HK=k("readline"),{action:dH}=g1(),lH=k("events"),{beep:iH,cursor:sH}=r(),nH=n();class VK extends lH{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Z=HK.createInterface({input:this.in,escapeCodeTimeout:50});if(HK.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);let Y=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=dH(z,Y);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(sH.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(iH)}render(){if(this.onRender(nH),this.firstRender)this.firstRender=!1}}WK.exports=VK});var RK=A((cw,OK)=>{var G9=n(),rH=L0(),{erase:aH,cursor:ZZ}=r(),{style:sY,clear:nY,lines:oH,figures:tH}=g1();class FK extends rH{constructor($={}){super($);this.transform=sY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=nY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=G9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` `),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(N0.down(Y5(this.outputError,this.out.columns)-1)+OY(this.outputError,this.out.columns));this.out.write(OY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[UY.symbol(this.done,this.aborted),B$.bold(this.msg),UY.delimiter(this.done),this.red?B$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":Z5.pointerSmall} ${B$.red().italic(Y)}`,"");this.out.write($5.line+N0.to(0)+this.outputText+N0.save+this.outputError+N0.restore+N0.move(this.cursorOffset,0))}}r4.exports=i4});var $8=C((jq,e4)=>{var x1=d(),J5=L1(),{style:n4,clear:o4,figures:F$,wrap:K5,entriesToDisplay:z5}=B1(),{cursor:Q5}=l();class t4 extends J5{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o4("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Z){let Y=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Y}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Y.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ZZ.down(oH(this.outputError,this.out.columns)-1)+nY(this.outputError,this.out.columns));this.out.write(nY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[sY.symbol(this.done,this.aborted),G9.bold(this.msg),sY.delimiter(this.done),this.red?G9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":tH.pointerSmall} ${G9.red().italic(Z)}`,"");this.out.write(aH.line+ZZ.to(0)+this.outputText+ZZ.save+this.outputError+ZZ.restore+ZZ.move(this.cursorOffset,0))}}OK.exports=FK});var BK=A((pw,wK)=>{var T0=n(),eH=L0(),{style:IK,clear:EK,figures:U9,wrap:$V,entriesToDisplay:ZV}=g1(),{cursor:YV}=r();class AK extends eH{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?Y:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=EK("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(Q5.hide);else this.out.write(o4(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=z5(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[n4.symbol(this.done,this.aborted),x1.bold(this.msg),n4.delimiter(!1),this.done?this.selection.title:this.selection.disabled?x1.yellow(this.warn):x1.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let Z=$;Z0)K=F$.arrowUp;else if(Z===Y-1&&Y=this.out.columns||Q.description.split(/\r?\n/).length>1)z=` -`+K5(Q.description,{margin:3,width:this.out.columns})}this.outputText+=`${K} ${J}${x1.gray(z)} -`}}this.out.write(this.outputText)}}e4.exports=t4});var z8=C((kq,K8)=>{var U$=d(),G5=L1(),{style:Y8,clear:V5}=B1(),{cursor:Z8,erase:W5}=l();class J8 extends G5{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Z){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(YV.hide);else this.out.write(EK(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Z}=ZV(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[IK.symbol(this.done,this.aborted),T0.bold(this.msg),IK.delimiter(!1),this.done?this.selection.title:this.selection.disabled?T0.yellow(this.warn):T0.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let Y=$;Y0)K=U9.arrowUp;else if(Y===Z-1&&Z=this.out.columns||Q.description.split(/\r?\n/).length>1)z=` +`+$V(Q.description,{margin:3,width:this.out.columns})}this.outputText+=`${K} ${J}${T0.gray(z)} +`}}this.out.write(this.outputText)}}wK.exports=AK});var TK=A((dw,LK)=>{var q9=n(),JV=L0(),{style:CK,clear:KV}=g1(),{cursor:DK,erase:zV}=r();class MK extends JV{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Z8.hide);else this.out.write(V5(this.outputText,this.out.columns));super.render(),this.outputText=[Y8.symbol(this.done,this.aborted),U$.bold(this.msg),Y8.delimiter(this.done),this.value?this.inactive:U$.cyan().underline(this.inactive),U$.gray("/"),this.value?U$.cyan().underline(this.active):this.active].join(" "),this.out.write(W5.line+Z8.to(0)+this.outputText)}}K8.exports=J8});var A1=C((Xq,Q8)=>{class O${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof O$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof O$)}toString(){return String(this.date)}}Q8.exports=O$});var W8=C((Iq,V8)=>{var q5=A1();class G8 extends q5{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}V8.exports=G8});var B8=C((_q,H8)=>{var H5=A1(),B5=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class q8 extends H5{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+B5($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}H8.exports=q8});var O8=C((Dq,U8)=>{var F5=A1();class F8 extends F5{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}U8.exports=F8});var A8=C((Tq,P8)=>{var U5=A1();class R8 extends U5{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}P8.exports=R8});var w8=C((Sq,C8)=>{var O5=A1();class E8 extends O5{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}C8.exports=E8});var X8=C((Mq,k8)=>{var R5=A1();class j8 extends R5{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}k8.exports=j8});var D8=C((Lq,_8)=>{var P5=A1();class I8 extends P5{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}_8.exports=I8});var M8=C((xq,S8)=>{var A5=A1();class T8 extends A5{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}S8.exports=T8});var x8=C((Nq,L8)=>{L8.exports={DatePart:A1(),Meridiem:W8(),Day:B8(),Hours:O8(),Milliseconds:A8(),Minutes:w8(),Month:X8(),Seconds:D8(),Year:M8()}});var u8=C((yq,v8)=>{var RY=d(),E5=L1(),{style:N8,clear:y8,figures:C5}=B1(),{erase:w5,cursor:b8}=l(),{DatePart:g8,Meridiem:j5,Day:k5,Hours:X5,Milliseconds:I5,Minutes:_5,Month:D5,Seconds:T5,Year:S5}=x8(),M5=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,f8={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new k5($),3:($)=>new D5($),4:($)=>new S5($),5:($)=>new j5($),6:($)=>new X5($),7:($)=>new _5($),8:($)=>new T5($),9:($)=>new I5($)},L5={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class h8 extends E5{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(L5,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=y8("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=M5.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in f8?f8[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof g8)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Z){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(DK.hide);else this.out.write(KV(this.outputText,this.out.columns));super.render(),this.outputText=[CK.symbol(this.done,this.aborted),q9.bold(this.msg),CK.delimiter(this.done),this.value?this.inactive:q9.cyan().underline(this.inactive),q9.gray("/"),this.value?q9.cyan().underline(this.active):this.active].join(" "),this.out.write(zV.line+DK.to(0)+this.outputText)}}LK.exports=MK});var n1=A((lw,XK)=>{class H9{constructor({token:$,date:Z,parts:Y,locales:J}){this.token=$,this.date=Z||new Date,this.parts=Y||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Z,Y)=>Y>$&&Z instanceof H9)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Z=$.indexOf(this);return $.find((Y,J)=>J>Z&&Y instanceof H9)}toString(){return String(this.date)}}XK.exports=H9});var jK=A((iw,NK)=>{var QV=n1();class SK extends QV{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}NK.exports=SK});var yK=A((sw,_K)=>{var GV=n1(),UV=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class PK extends GV{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+UV($):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:$}}_K.exports=PK});var bK=A((nw,kK)=>{var qV=n1();class xK extends qV{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}kK.exports=xK});var gK=A((rw,vK)=>{var HV=n1();class fK extends HV{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}vK.exports=fK});var mK=A((aw,uK)=>{var VV=n1();class hK extends VV{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}uK.exports=hK});var dK=A((ow,pK)=>{var WV=n1();class cK extends WV{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Z=this.token.length;return Z===2?String($+1).padStart(2,"0"):Z===3?this.locales.monthsShort[$]:Z===4?this.locales.months[$]:String($+1)}}pK.exports=cK});var sK=A((tw,iK)=>{var FV=n1();class lK extends FV{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}iK.exports=lK});var aK=A((ew,rK)=>{var OV=n1();class nK extends OV{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}rK.exports=nK});var tK=A(($B,oK)=>{oK.exports={DatePart:n1(),Meridiem:jK(),Day:yK(),Hours:bK(),Milliseconds:gK(),Minutes:mK(),Month:dK(),Seconds:sK(),Year:aK()}});var Q7=A((ZB,z7)=>{var rY=n(),RV=L0(),{style:eK,clear:$7,figures:IV}=g1(),{erase:EV,cursor:Z7}=r(),{DatePart:Y7,Meridiem:AV,Day:wV,Hours:BV,Milliseconds:CV,Minutes:DV,Month:MV,Seconds:LV,Year:TV}=tK(),XV=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,J7={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new wV($),3:($)=>new MV($),4:($)=>new TV($),5:($)=>new AV($),6:($)=>new BV($),7:($)=>new DV($),8:($)=>new LV($),9:($)=>new CV($)},SV={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class K7 extends RV{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(SV,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=$7("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Z;this.parts=[];while(Z=XV.exec($)){let J=Z.shift(),K=Z.findIndex((z)=>z!=null);this.parts.push(K in J7?J7[K]({token:Z[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Z[K]||J)}let Y=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Y),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof Y7)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` `),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof g8)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(b8.hide);else this.out.write(y8(this.outputText,this.out.columns));if(super.render(),this.outputText=[N8.symbol(this.done,this.aborted),RY.bold(this.msg),N8.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?RY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":C5.pointerSmall} ${RY.red().italic(Y)}`,"");this.out.write(w5.line+b8.to(0)+this.outputText)}}v8.exports=h8});var l8=C((bq,d8)=>{var R$=d(),x5=L1(),{cursor:P$,erase:N5}=l(),{style:PY,figures:y5,clear:m8,lines:b5}=B1(),g5=/[0-9]/,AY=($)=>$!==void 0,c8=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class p8 extends x5{constructor($={}){super($);this.transform=PY.render($.style),this.msg=$.message,this.initial=AY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=AY($.min)?$.min:-1/0,this.max=AY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=R$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${c8($,this.round)}`),this._value=c8($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||g5.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Z)=>Z instanceof Y7)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Z7.hide);else this.out.write($7(this.outputText,this.out.columns));if(super.render(),this.outputText=[eK.symbol(this.done,this.aborted),rY.bold(this.msg),eK.delimiter(!1),this.parts.reduce(($,Z,Y)=>$.concat(Y===this.cursor&&!this.done?rY.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":IV.pointerSmall} ${rY.red().italic(Z)}`,"");this.out.write(EV.line+Z7.to(0)+this.outputText)}}z7.exports=K7});var V7=A((YB,H7)=>{var V9=n(),NV=L0(),{cursor:W9,erase:jV}=r(),{style:aY,figures:PV,clear:G7,lines:_V}=g1(),yV=/[0-9]/,oY=($)=>$!==void 0,U7=($,Z)=>{let Y=Math.pow(10,Z);return Math.round($*Y)/Y};class q7 extends NV{constructor($={}){super($);this.transform=aY.render($.style),this.msg=$.message,this.initial=oY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=oY($.min)?$.min:-1/0,this.max=oY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=V9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${U7($,this.round)}`),this._value=U7($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||yV.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` `),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let $=this.value;this.value=$!==""?$:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` -${Z?" ":y5.pointerSmall} ${R$.red().italic(Y)}`,"");this.out.write(N5.line+P$.to(0)+this.outputText+P$.save+this.outputError+P$.restore)}}d8.exports=p8});var EY=C((gq,a8)=>{var E1=d(),{cursor:f5}=l(),h5=L1(),{clear:s8,figures:p1,style:i8,wrap:v5,entriesToDisplay:u5}=B1();class r8 extends h5{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=s8("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Y,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` +${Y?" ":PV.pointerSmall} ${V9.red().italic(Z)}`,"");this.out.write(jV.line+W9.to(0)+this.outputText+W9.save+this.outputError+W9.restore)}}H7.exports=q7});var tY=A((JB,R7)=>{var r1=n(),{cursor:xV}=r(),kV=L0(),{clear:W7,figures:v0,style:F7,wrap:bV,entriesToDisplay:fV}=g1();class O7 extends kV{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?Y:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=W7("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let $=this.value.filter((Z)=>Z.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=$),this.render()}_($,Z){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${p1.arrowUp}/${p1.arrowDown}: Highlight option - ${p1.arrowLeft}/${p1.arrowRight}/[space]: Toggle selection + ${v0.arrowUp}/${v0.arrowDown}: Highlight option + ${v0.arrowLeft}/${v0.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?E1.green(p1.radioOn):p1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?E1.gray().underline(Y.title):E1.strikethrough().gray(Y.title);else if(z=$===Z?E1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` -`+v5(Y.description,{margin:K.length,width:this.out.columns})}return K+z+E1.gray(Q||"")}paginateOptions($){if($.length===0)return E1.red("No matches for this query.");let{startIndex:Y,endIndex:Z}=u5(this.cursor,$.length,this.optionsPerPage),J,K=[];for(let z=Y;z0)J=p1.arrowUp;else if(z===Z-1&&Z<$.length)J=p1.arrowDown;else J=" ";K.push(this.renderOption(this.cursor,$[z],z,J))}return` +`:"")+" enter/return: Complete answer"}return""}renderOption($,Z,Y,J){let K=(Z.selected?r1.green(v0.radioOn):v0.radioOff)+" "+J+" ",z,Q;if(Z.disabled)z=$===Y?r1.gray().underline(Z.title):r1.strikethrough().gray(Z.title);else if(z=$===Y?r1.cyan().underline(Z.title):Z.title,$===Y&&Z.description){if(Q=` - ${Z.description}`,K.length+z.length+Q.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Q=` +`+bV(Z.description,{margin:K.length,width:this.out.columns})}return K+z+r1.gray(Q||"")}paginateOptions($){if($.length===0)return r1.red("No matches for this query.");let{startIndex:Z,endIndex:Y}=fV(this.cursor,$.length,this.optionsPerPage),J,K=[];for(let z=Z;z0)J=v0.arrowUp;else if(z===Y-1&&Y<$.length)J=v0.arrowDown;else J=" ";K.push(this.renderOption(this.cursor,$[z],z,J))}return` `+K.join(` -`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[E1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(E1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(f5.hide);super.render();let $=[i8.symbol(this.done,this.aborted),E1.bold(this.msg),i8.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=E1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=s8($,this.out.columns)}}a8.exports=r8});var YJ=C((fq,$J)=>{var y0=d(),m5=L1(),{erase:c5,cursor:n8}=l(),{style:CY,clear:o8,figures:wY,wrap:p5,entriesToDisplay:d5}=B1(),t8=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),l5=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),s5=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class e8 extends m5{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:s5($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=CY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=o8("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=t8(this.suggestions,$);else this.value=this.fallback.value;this.fire()}async complete($){let Y=this.completing=this.suggest(this.input,this.choices),Z=await Y;if(this.completing!==Y)return;this.suggestions=Z.map((K,z,Q)=>({title:l5(Q,z),value:t8(Q,z),description:K.description})),this.completing=!1;let J=Math.max(Z.length-1,0);this.moveSelect(Math.min(J,this.select)),$&&$()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[r1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(r1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(xV.hide);super.render();let $=[F7.symbol(this.done,this.aborted),r1.bold(this.msg),F7.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=r1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=W7($,this.out.columns)}}R7.exports=O7});var C7=A((KB,B7)=>{var YZ=n(),vV=L0(),{erase:gV,cursor:I7}=r(),{style:eY,clear:E7,figures:$8,wrap:hV,entriesToDisplay:uV}=g1(),A7=($,Z)=>$[Z]&&($[Z].value||$[Z].title||$[Z]),mV=($,Z)=>$[Z]&&($[Z].title||$[Z].value||$[Z]),cV=($,Z)=>{let Y=$.findIndex((J)=>J.value===Z||J.title===Z);return Y>-1?Y:void 0};class w7 extends vV{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:cV($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=eY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=E7("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=A7(this.suggestions,$);else this.value=this.fallback.value;this.fire()}async complete($){let Z=this.completing=this.suggest(this.input,this.choices),Y=await Z;if(this.completing!==Z)return;this.suggestions=Y.map((K,z,Q)=>({title:mV(Q,z),value:A7(Q,z),description:K.description})),this.completing=!1;let J=Math.max(Y.length-1,0);this.moveSelect(Math.min(J,this.select)),$&&$()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` `),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor);this.input=`${Z}${$}${J}`,this.cursor=Z.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let $=this.input.slice(0,this.cursor-1),Y=this.input.slice(this.cursor);this.input=`${$}${Y}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?wY.arrowUp:J?wY.arrowDown:" ",Q=Y?y0.cyan().underline($.title):$.title;if(z=(Y?y0.cyan(wY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` -`+p5($.description,{margin:3,width:this.out.columns})}return z+" "+Q+y0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n8.hide);else this.out.write(o8(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=d5(this.select,this.choices.length,this.limit);if(this.outputText=[CY.symbol(this.done,this.aborted,this.exited),y0.bold(this.msg),CY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let Z=this.suggestions.slice($,Y).map((J,K)=>this.renderOption(J,this.select===K+$,K===0&&$>0,K+$===Y-1&&Y=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${$}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Z,Y,J){let K,z=Y?$8.arrowUp:J?$8.arrowDown:" ",Q=Z?YZ.cyan().underline($.title):$.title;if(z=(Z?YZ.cyan($8.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` +`+hV($.description,{margin:3,width:this.out.columns})}return z+" "+Q+YZ.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(I7.hide);else this.out.write(E7(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Z}=uV(this.select,this.choices.length,this.limit);if(this.outputText=[eY.symbol(this.done,this.aborted,this.exited),YZ.bold(this.msg),eY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let Y=this.suggestions.slice($,Z).map((J,K)=>this.renderOption(J,this.select===K+$,K===0&&$>0,K+$===Z-1&&Z{var N1=d(),{cursor:i5}=l(),r5=EY(),{clear:ZJ,style:JJ,figures:q0}=B1();class KJ extends r5{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=ZJ("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`+(Y||YZ.gray(this.fallback.title))}this.out.write(gV.line+I7.to(0)+this.outputText)}}B7.exports=w7});var X7=A((zB,T7)=>{var X0=n(),{cursor:pV}=r(),dV=tY(),{clear:D7,style:M7,figures:W$}=g1();class L7 extends dV{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=D7("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Y)=>{if(this.inputValue){if(typeof Y.title==="string"){if(Y.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Y.value==="string"){if(Y.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Z=this.filteredOptions.findIndex((Y)=>Y===$);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Z){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${q0.arrowUp}/${q0.arrowDown}: Highlight option - ${q0.arrowLeft}/${q0.arrowRight}/[space]: Toggle selection + ${W$.arrowUp}/${W$.arrowDown}: Highlight option + ${W$.arrowLeft}/${W$.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer `}return""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:N1.gray("Enter something to filter")} -`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?N1.gray().underline(Y.title):N1.strikethrough().gray(Y.title);else J=$===Z?N1.cyan().underline(Y.title):Y.title;return(Y.selected?N1.green(q0.radioOn):q0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[N1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(N1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i5.hide);super.render();let $=[JJ.symbol(this.done,this.aborted),N1.bold(this.msg),JJ.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=N1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=ZJ($,this.out.columns)}}zJ.exports=KJ});var BJ=C((vq,HJ)=>{var GJ=d(),a5=L1(),{style:VJ,clear:n5}=B1(),{erase:o5,cursor:WJ}=l();class qJ extends a5{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +Filtered results for: ${this.inputValue?this.inputValue:X0.gray("Enter something to filter")} +`}renderOption($,Z,Y){let J;if(Z.disabled)J=$===Y?X0.gray().underline(Z.title):X0.strikethrough().gray(Z.title);else J=$===Y?X0.cyan().underline(Z.title):Z.title;return(Z.selected?X0.green(W$.radioOn):W$.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[X0.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(X0.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(pV.hide);super.render();let $=[M7.symbol(this.done,this.aborted),X0.bold(this.msg),M7.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=X0.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=D7($,this.out.columns)}}T7.exports=L7});var y7=A((QB,_7)=>{var S7=n(),lV=L0(),{style:N7,clear:iV}=g1(),{erase:sV,cursor:j7}=r();class P7 extends lV{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(WJ.hide);else this.out.write(n5(this.outputText,this.out.columns));super.render(),this.outputText=[VJ.symbol(this.done,this.aborted),GJ.bold(this.msg),VJ.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:GJ.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(o5.line+WJ.to(0)+this.outputText)}}HJ.exports=qJ});var UJ=C((uq,FJ)=>{FJ.exports={TextPrompt:a4(),SelectPrompt:$8(),TogglePrompt:z8(),DatePrompt:u8(),NumberPrompt:l8(),MultiselectPrompt:EY(),AutocompletePrompt:YJ(),AutocompleteMultiselectPrompt:QJ(),ConfirmPrompt:BJ()}});var RJ=C((OJ)=>{var Y1=OJ,t5=UJ(),A$=($)=>$;function C1($,Y,Z={}){return new Promise((J,K)=>{let z=new t5[$](Y),Q=Z.onAbort||A$,W=Z.onSubmit||A$,G=Z.onExit||A$;z.on("state",Y.onState||A$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}Y1.text=($)=>C1("TextPrompt",$);Y1.password=($)=>{return $.style="password",Y1.text($)};Y1.invisible=($)=>{return $.style="invisible",Y1.text($)};Y1.number=($)=>C1("NumberPrompt",$);Y1.date=($)=>C1("DatePrompt",$);Y1.confirm=($)=>C1("ConfirmPrompt",$);Y1.list=($)=>{let Y=$.separator||",";return C1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};Y1.toggle=($)=>C1("TogglePrompt",$);Y1.select=($)=>C1("SelectPrompt",$);Y1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};Y1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var e5=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));Y1.autocomplete=($)=>{return $.suggest=$.suggest||e5,$.choices=[].concat($.choices||[]),C1("AutocompletePrompt",$)}});var EJ=C((cq,AJ)=>{var jY=RJ(),$G=["suggest","format","onState","validate","onRender","type"],PJ=()=>{};async function d1($=[],{onSubmit:Y=PJ,onCancel:Z=PJ}={}){let J={},K=d1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=async(P,w,I=!1)=>{if(!I&&P.validate&&P.validate(w)!==!0)return;return P.format?await P.format(w,J):w};for(Q of $){if({name:G,type:q}=Q,typeof q==="function")q=await q(z,{...J},Q),Q.type=q;if(!q)continue;for(let P in Q){if($G.includes(P))continue;let w=Q[P];Q[P]=typeof w==="function"?await w(z,{...J},H):w}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");if({name:G,type:q}=Q,jY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=await R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=d1._injected?YG(d1._injected,Q.initial):await jY[q](Q),J[G]=z=await R(Q,z,!0),W=await Y(Q,z,J)}catch(P){W=!await Z(Q,J)}if(W)return J}return J}function YG($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function ZG($){d1._injected=(d1._injected||[]).concat($)}function JG($){d1._override=Object.assign({},$)}AJ.exports=Object.assign(d1,{prompt:d1,prompts:jY,inject:ZG,override:JG})});var wJ=C((pq,CJ)=>{function KG($){$=(Array.isArray($)?$:$.split(".")).map(Number);let Y=0,Z=process.versions.node.split(".").map(Number);for(;Y<$.length;Y++){if(Z[Y]>$[Y])return!1;if($[Y]>Z[Y])return!0}return!1}CJ.exports=KG("8.6.0")?D4():EJ()});var _J=C((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.isPBXFileReference=XJ.isPBXBuildFile=XJ.createReferenceList=void 0;function GG($){let Z=$?.objects??{},J={};function K(G){for(let[q,H]of Object.entries(Z))if(H.buildConfigurationList===G){let R=H.name??H.path??H.productName;if(!R){if(R=Z[H.targets?.[0]]?.productName??Z[H.targets?.[0]]?.name,!R)R=Object.values(Z).find((w)=>w.isa==="PBXContainerItemProxy"&&w.containerPortal===q)?.remoteInfo}return`Build configuration list for ${H.isa} "${R}"`}return"Build configuration list for [unknown]"}function z(G){let q=Object.values(Z).find((H)=>H.files?.includes(G));return q?jJ(q):null}function Q(G,q){let H=z(G)??"[missing build phase]",R=q.fileRef??q.productRef;if(!R)return`[unknown] in ${H}`;return`${W(R,Z[R])} in ${H}`}function W(G,q){if(!q?.isa)return null;if(G in J)return J[G];if(kJ(q))J[G]=Q(G,q);else if(FG(q))J[G]=K(G);else if(HG(q))if(q.repositoryURL)J[G]=`${q.isa} "${VG(q.repositoryURL)}"`;else J[G]=q.isa;else if(BG(q))if(q.relativePath)J[G]=`${q.isa} "${q.relativePath}"`;else J[G]=q.isa;else if(WG(q))J[G]="Project object";else if(q.isa?.endsWith("BuildPhase"))J[G]=jJ(q)??"";else if(q.isa==="PBXGroup"&&q.name===void 0&&q.path===void 0)J[G]="";else J[G]=q.name??q.productName??q.path??q.isa??null;return J[G]??null}return Object.entries(Z).forEach(([G,q])=>{if(!W(G,q));}),J}XJ.createReferenceList=GG;function VG($){try{let Y=new URL($);if(Y.hostname==="github.com")return Y.pathname.split("/").pop()}catch{}return $}function WG($){return $?.isa==="PBXProject"}function kJ($){return $?.isa==="PBXBuildFile"}XJ.isPBXBuildFile=kJ;function qG($){return $?.isa==="PBXFileReference"}XJ.isPBXFileReference=qG;function HG($){return $?.isa==="XCRemoteSwiftPackageReference"}function BG($){return $?.isa==="XCLocalSwiftPackageReference"}function FG($){return $?.isa==="XCConfigurationList"}function jJ($){return $.name??UG($.isa)}function UG($){return $.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var MJ=C((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.Writer=void 0;var XY=_J(),PG={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':"\\\"","\\":"\\\\","\x00":"\\U0000","\x01":"\\U0001","\x02":"\\U0002","\x03":"\\U0003","\x04":"\\U0004","\x05":"\\U0005","\x06":"\\U0006","\x0E":"\\U000e","\x0F":"\\U000f","\x10":"\\U0010","\x11":"\\U0011","\x12":"\\U0012","\x13":"\\U0013","\x14":"\\U0014","\x15":"\\U0015","\x16":"\\U0016","\x17":"\\U0017","\x18":"\\U0018","\x19":"\\U0019","\x1A":"\\U001a","\x1B":"\\U001b","\x1C":"\\U001c","\x1D":"\\U001d","\x1E":"\\U001e","\x1F":"\\U001f"},AG=/\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;function EG($){return String($).replace(AG,(Y)=>PG[Y]||Y)}var g0=` -`;try{g0=_1("os").EOL}catch{}function IY($){return typeof $==="object"&&$!==null&&!($ instanceof Buffer)}function z1($){if($=EG($),/^[\w_$/:.]+$/.test($))return $;return`"${$}"`}function _Y($){return`<${$.toString("hex").toUpperCase()}>`}function CG($){let Y={};return Object.entries($).forEach(([Z,J])=>{if(!Y[J.isa])Y[J.isa]=[];Y[J.isa].push([Z,J])}),Object.entries(Y).sort()}class DJ{pad($){let Y=this.options.tab??"\t";return $>0?Y+this.pad($-1):""}constructor($,Y={}){this.project=$,this.options=Y,this.indent=0,this.contents="",this.comments={},this.comments=(0,XY.createReferenceList)($),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println($){this.contents+=this.pad(this.indent),this.contents+=$,this.contents+=g0}write($){this.contents+=this.pad(this.indent),this.contents+=$}printAssignLn($,Y){return this.println($+" = "+Y+";")}flush($){let Y=this.indent;this.indent=0,this.write($),this.indent=Y}writeShebang(){let $=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${$}`)}formatId($,Y=this.comments[$]){if(Y)return`${$} /* ${Y} */`;return z1($)}writeProject(){if(this.println("{"),this.project)this.indent++,this.writeObject(this.project,!0),this.indent--;this.println("}")}keyHasFloatValue($){return $===$.toUpperCase()&&($.endsWith("SWIFT_VERSION")||$.endsWith("MARKETING_VERSION")||$.endsWith("_DEPLOYMENT_TARGET"))}writeObject($,Y){Object.entries($).sort(([Z],[J])=>{if(Z==="isa")return-1;if(J==="isa")return 1;return ZJ?1:0}).forEach(([Z,J])=>{if(this.options.skipNullishValues&&J==null)return;else if(J instanceof Buffer)this.printAssignLn(z1(Z),_Y(J));else if(Array.isArray(J))this.writeArray(Z,J);else if(IY(J)){if(!Y&&!Object.keys(J).length){this.println(z1(Z)+" = {};");return}if(this.println(z1(Z)+" = {"),this.indent++,Y&&Z==="objects")this.writePbxObjects(J);else this.writeObject(J,Y);this.indent--,this.println("};")}else if(typeof J==="number"){let K=this.keyHasFloatValue(Z)&&Number.isInteger(J)?`${J}.0`:J;this.printAssignLn(z1(Z),z1(K))}else this.printAssignLn(z1(Z),Z==="remoteGlobalIDString"||Z==="TestTargetID"?z1(J):this.formatId(J))})}writePbxObjects($){CG($).forEach(([Y,Z])=>{this.flush(g0),this.flush(`/* Begin ${Y} section */`+g0),Z.sort(([J],[K])=>J.localeCompare(K)).forEach(([J,K])=>this.writeObjectInclusive(J,K)),this.flush(`/* End ${Y} section */`+g0)})}writeArray($,Y){this.println(z1($)+" = ("),this.indent++,Y.forEach((Z)=>{if(Z instanceof Buffer)this.println(_Y(Z)+",");else if(Z==null)return;else if(IY(Z)){if(this.println("{"),Z)this.indent++,this.writeObject(Z),this.indent--;this.println("},")}else this.println(this.formatId(String(Z))+",")}),this.indent--,this.println(");")}writeObjectInclusive($,Y){if((0,XY.isPBXBuildFile)(Y)||(0,XY.isPBXFileReference)(Y))return this.writeObjectWithoutIndent($,Y);this.println(this.formatId($)+" = {"),this.indent++,this.writeObject(Y),this.indent--,this.println("};")}writeObjectWithoutIndent($,Y){let Z=[],J=(K,z)=>{Z.push(this.formatId(K)+" = {"),Object.entries(z).sort(([Q],[W])=>{if(Q==="isa")return-1;if(W==="isa")return 1;return QW?1:0}).forEach(([Q,W])=>{if(this.options.skipNullishValues&&W==null)return;else if(W instanceof Buffer)Z.push(z1(Q)+" = "+_Y(W)+"; ");else if(Array.isArray(W))Z.push(z1(Q)+" = ("),W.forEach((G)=>Z.push(z1(G)+", ")),Z.push("); ");else if(IY(W))J(Q,W);else Z.push(z1(Q)+" = "+this.formatId(W)+"; ")}),Z.push("}; ")};J($,Y),this.println(Z.join("").trim())}}TJ.Writer=DJ});var vJ=C((fJ)=>{Object.defineProperty(fJ,"__esModule",{value:!0});fJ.parse=fJ.Parser=void 0;var wG={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},jG=32,kG=9,TY=10,XG=13,LJ=123,IG=125,xJ=40,_G=41,DG=59,TG=44,SG=61,NJ=34,yJ=39,bJ=92,DY=47,gJ=42,MG=60,LG=62,xG={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},H0=new Uint8Array(256);H0[jG]=1;H0[kG]=1;H0[TY]=1;H0[XG]=1;var w1=new Uint8Array(256);for(let $=65;$<=90;$++)w1[$]=1;for(let $=97;$<=122;$++)w1[$]=1;for(let $=48;$<=57;$++)w1[$]=1;w1[95]=1;w1[36]=1;w1[47]=1;w1[58]=1;w1[46]=1;w1[45]=1;var f0=new Uint8Array(256);for(let $=48;$<=57;$++)f0[$]=1;for(let $=65;$<=70;$++)f0[$]=1;for(let $=97;$<=102;$++)f0[$]=1;var SY=new Uint8Array(256);for(let $=48;$<=55;$++)SY[$]=1;var C$=new Uint8Array(256);for(let $=48;$<=57;$++)C$[$]=1;class MY{constructor($){this.pos=0,this.text=$,this.len=$.length}parse(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===LJ)return this.parseObject();else if($===xJ)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){while(this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===IG)return this.pos++,$;let Z=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==SG)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),$[Z]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==DG)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let $=[];while(!0){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===_G)return this.pos++,$;if($.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===TG)this.pos++}}parseValue(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===LJ)return this.parseObject();if($===xJ)return this.parseArray();if($===MG)return this.parseDataLiteral();if($===NJ||$===yJ)return this.parseQuotedString();return this.parseStringLiteral()}parseIdentifierAsString(){let $=this.text.charCodeAt(this.pos);if($===NJ||$===yJ)return this.parseQuotedString();return this.parseStringLiteralRaw()}parseStringLiteralRaw(){let $=this.pos;while(this.pos1)return $;let W=parseInt($,10);if(Number.isSafeInteger(W))return W;return $}let K=!1,z=!0,Q=!1;for(let W=0;W=this.len)throw this.error("Unterminated string");let J=this.text.slice(Y,this.pos);return this.pos++,this.unescapeString(J)}unescapeString($){let Y=[],Z=0,J=$.length;while(Z=128?wG[q]||q:q;Y.push(String.fromCharCode(H)),Z=G;continue}Y.push($[Z],$[Z+1]),Z+=2}else Y.push($[Z]),Z++;return Y.join("")}isHexString($){if($.length!==4)return!1;for(let Y=0;Y<4;Y++)if(!f0[$.charCodeAt(Y)])return!1;return!0}parseDataLiteral(){this.pos++;let $=[];while(this.pos{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.SubFolder=cJ.ProxyType=cJ.ISA=void 0;var bG;(function($){$.PBXBuildFile="PBXBuildFile",$.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",$.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",$.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",$.PBXHeadersBuildPhase="PBXHeadersBuildPhase",$.PBXResourcesBuildPhase="PBXResourcesBuildPhase",$.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",$.PBXSourcesBuildPhase="PBXSourcesBuildPhase",$.PBXRezBuildPhase="PBXRezBuildPhase",$.PBXContainerItemProxy="PBXContainerItemProxy",$.PBXFileReference="PBXFileReference",$.PBXGroup="PBXGroup",$.PBXVariantGroup="PBXVariantGroup",$.XCVersionGroup="XCVersionGroup",$.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",$.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",$.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",$.PBXNativeTarget="PBXNativeTarget",$.PBXAggregateTarget="PBXAggregateTarget",$.PBXLegacyTarget="PBXLegacyTarget",$.PBXProject="PBXProject",$.PBXTargetDependency="PBXTargetDependency",$.XCBuildConfiguration="XCBuildConfiguration",$.XCConfigurationList="XCConfigurationList",$.PBXBuildRule="PBXBuildRule",$.PBXReferenceProxy="PBXReferenceProxy",$.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",$.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",$.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(bG=cJ.ISA||(cJ.ISA={}));var gG;(function($){$[$.targetReference=1]="targetReference",$[$.reference=2]="reference"})(gG=cJ.ProxyType||(cJ.ProxyType={}));var fG;(function($){$[$.absolutePath=0]="absolutePath",$[$.productsDirectory=16]="productsDirectory",$[$.wrapper=1]="wrapper",$[$.executables=6]="executables",$[$.resources=7]="resources",$[$.javaResources=15]="javaResources",$[$.frameworks=10]="frameworks",$[$.sharedFrameworks=11]="sharedFrameworks",$[$.sharedSupport=12]="sharedSupport",$[$.plugins=13]="plugins"})(fG=cJ.SubFolder||(cJ.SubFolder={}))});var dJ=C((F1)=>{var hG=F1&&F1.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),vG=F1&&F1.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))hG(Y,$,Z)};Object.defineProperty(F1,"__esModule",{value:!0});F1.build=F1.parse=void 0;var uG=MJ(),mG=vJ();Object.defineProperty(F1,"parse",{enumerable:!0,get:function(){return mG.parse}});function cG($){return new uG.Writer($).getResults()}F1.build=cG;vG(pJ(),F1)});var h0=C((dG)=>{function pG($,Y,Z){if(Z===void 0)Z=Array.prototype;if($&&typeof Z.find==="function")return Z.find.call($,Y);for(var J=0;J<$.length;J++)if(Object.prototype.hasOwnProperty.call($,J)){var K=$[J];if(Y.call(void 0,K,J,$))return K}}function xY($,Y){if(Y===void 0)Y=Object;return Y&&typeof Y.freeze==="function"?Y.freeze($):$}var lJ=xY({HTML:"text/html",isHTML:function($){return $===lJ.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),sJ=xY({HTML:"http://www.w3.org/1999/xhtml",isHTML:function($){return $===sJ.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});dG.find=pG;dG.freeze=xY;dG.MIME_TYPE=lJ;dG.NAMESPACE=sJ});var pY=C((V2)=>{var $6=h0(),j1=$6.find,v0=$6.NAMESPACE;function aG($){return $!==""}function nG($){return $?$.split(/[\t\n\f\r ]+/).filter(aG):[]}function oG($,Y){if(!$.hasOwnProperty(Y))$[Y]=!0;return $}function iJ($){if(!$)return[];var Y=nG($);return Object.keys(Y.reduce(oG,{}))}function tG($){return function(Y){return $&&$.indexOf(Y)!==-1}}function m0($,Y){for(var Z in $)if(Object.prototype.hasOwnProperty.call($,Z))Y[Z]=$[Z]}function J1($,Y){var Z=$.prototype;if(!(Z instanceof Y)){let K=function(){};var J=K;K.prototype=Y.prototype,K=new K,m0(Z,K),$.prototype=Z=K}if(Z.constructor!=$){if(typeof $!="function")console.error("unknown Class:"+$);Z.constructor=$}}var K1={},U1=K1.ELEMENT_NODE=1,F0=K1.ATTRIBUTE_NODE=2,w$=K1.TEXT_NODE=3,Y6=K1.CDATA_SECTION_NODE=4,Z6=K1.ENTITY_REFERENCE_NODE=5,eG=K1.ENTITY_NODE=6,J6=K1.PROCESSING_INSTRUCTION_NODE=7,K6=K1.COMMENT_NODE=8,z6=K1.DOCUMENT_NODE=9,Q6=K1.DOCUMENT_TYPE_NODE=10,g1=K1.DOCUMENT_FRAGMENT_NODE=11,$2=K1.NOTATION_NODE=12,o={},r={},oq=o.INDEX_SIZE_ERR=(r[1]="Index size error",1),tq=o.DOMSTRING_SIZE_ERR=(r[2]="DOMString size error",2),Z1=o.HIERARCHY_REQUEST_ERR=(r[3]="Hierarchy request error",3),eq=o.WRONG_DOCUMENT_ERR=(r[4]="Wrong document",4),$H=o.INVALID_CHARACTER_ERR=(r[5]="Invalid character",5),YH=o.NO_DATA_ALLOWED_ERR=(r[6]="No data allowed",6),ZH=o.NO_MODIFICATION_ALLOWED_ERR=(r[7]="No modification allowed",7),G6=o.NOT_FOUND_ERR=(r[8]="Not found",8),JH=o.NOT_SUPPORTED_ERR=(r[9]="Not supported",9),rJ=o.INUSE_ATTRIBUTE_ERR=(r[10]="Attribute in use",10),KH=o.INVALID_STATE_ERR=(r[11]="Invalid state",11),zH=o.SYNTAX_ERR=(r[12]="Syntax error",12),QH=o.INVALID_MODIFICATION_ERR=(r[13]="Invalid modification",13),GH=o.NAMESPACE_ERR=(r[14]="Invalid namespace",14),VH=o.INVALID_ACCESS_ERR=(r[15]="Invalid access",15);function s($,Y){if(Y instanceof Error)var Z=Y;else if(Z=this,Error.call(this,r[$]),this.message=r[$],Error.captureStackTrace)Error.captureStackTrace(this,s);if(Z.code=$,Y)this.message=this.message+": "+Y;return Z}s.prototype=Error.prototype;m0(o,s);function b1(){}b1.prototype={length:0,item:function($){return $>=0&&$=0){var K=Y.length-1;while(J0},lookupPrefix:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){for(var J in Z)if(Object.prototype.hasOwnProperty.call(Z,J)&&Z[J]===$)return J}Y=Y.nodeType==F0?Y.ownerDocument:Y.parentNode}return null},lookupNamespaceURI:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){if($ in Z){if(Object.prototype.hasOwnProperty.call(Z,$))return Z[$]}}Y=Y.nodeType==F0?Y.ownerDocument:Y.parentNode}return null},isDefaultNamespace:function($){var Y=this.lookupPrefix($);return Y==null}};function q6($){return $=="<"&&"<"||$==">"&&">"||$=="&"&&"&"||$=='"'&&"""||"&#"+$.charCodeAt()+";"}m0(K1,f);m0(K1,f.prototype);function u0($,Y){if(Y($))return!0;if($=$.firstChild)do if(u0($,Y))return!0;while($=$.nextSibling)}function c0(){this.ownerDocument=this}function Y2($,Y,Z){$&&$._inc++;var J=Z.namespaceURI;if(J===v0.XMLNS)Y._nsMap[Z.prefix?Z.localName:""]=Z.value}function H6($,Y,Z,J){$&&$._inc++;var K=Z.namespaceURI;if(K===v0.XMLNS)delete Y._nsMap[Z.prefix?Z.localName:""]}function gY($,Y,Z){if($&&$._inc){$._inc++;var J=Y.childNodes;if(Z)J[J.length++]=Z;else{var K=Y.firstChild,z=0;while(K)J[z++]=K,K=K.nextSibling;J.length=z,delete J[J.length]}}}function B6($,Y){var{previousSibling:Z,nextSibling:J}=Y;if(Z)Z.nextSibling=J;else $.firstChild=J;if(J)J.previousSibling=Z;else $.lastChild=Z;return Y.parentNode=null,Y.previousSibling=null,Y.nextSibling=null,gY($.ownerDocument,$),Y}function Z2($){return $&&($.nodeType===f.DOCUMENT_NODE||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.ELEMENT_NODE)}function J2($){return $&&(k1($)||fY($)||f1($)||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.COMMENT_NODE||$.nodeType===f.PROCESSING_INSTRUCTION_NODE)}function f1($){return $&&$.nodeType===f.DOCUMENT_TYPE_NODE}function k1($){return $&&$.nodeType===f.ELEMENT_NODE}function fY($){return $&&$.nodeType===f.TEXT_NODE}function oJ($,Y){var Z=$.childNodes||[];if(j1(Z,k1)||f1(Y))return!1;var J=j1(Z,f1);return!(Y&&J&&Z.indexOf(J)>Z.indexOf(Y))}function tJ($,Y){var Z=$.childNodes||[];function J(z){return k1(z)&&z!==Y}if(j1(Z,J))return!1;var K=j1(Z,f1);return!(Y&&K&&Z.indexOf(K)>Z.indexOf(Y))}function K2($,Y,Z){if(!Z2($))throw new s(Z1,"Unexpected parent node type "+$.nodeType);if(Z&&Z.parentNode!==$)throw new s(G6,"child not in parent");if(!J2(Y)||f1(Y)&&$.nodeType!==f.DOCUMENT_NODE)throw new s(Z1,"Unexpected node type "+Y.nodeType+" for parent node type "+$.nodeType)}function z2($,Y,Z){var J=$.childNodes||[],K=Y.childNodes||[];if(Y.nodeType===f.DOCUMENT_FRAGMENT_NODE){var z=K.filter(k1);if(z.length>1||j1(K,fY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!oJ($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(k1(Y)){if(!oJ($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(f1(Y)){if(j1(J,f1))throw new s(Z1,"Only one doctype is allowed");var Q=j1(J,k1);if(Z&&J.indexOf(Q)1||j1(K,fY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!tJ($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(k1(Y)){if(!tJ($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(f1(Y)){let G=function(q){return f1(q)&&q!==Z};var W=G;if(j1(J,G))throw new s(Z1,"Only one doctype is allowed");var Q=j1(J,k1);if(Z&&J.indexOf(Q)0)u0(Z.documentElement,function(K){if(K!==Z&&K.nodeType===U1){var z=K.getAttribute("class");if(z){var Q=$===z;if(!Q){var W=iJ(z);Q=Y.every(tG(W))}if(Q)J.push(K)}}});return J})},createElement:function($){var Y=new Y0;Y.ownerDocument=this,Y.nodeName=$,Y.tagName=$,Y.localName=$,Y.childNodes=new b1;var Z=Y.attributes=new j$;return Z._ownerElement=Y,Y},createDocumentFragment:function(){var $=new _$;return $.ownerDocument=this,$.childNodes=new b1,$},createTextNode:function($){var Y=new hY;return Y.ownerDocument=this,Y.appendData($),Y},createComment:function($){var Y=new vY;return Y.ownerDocument=this,Y.appendData($),Y},createCDATASection:function($){var Y=new uY;return Y.ownerDocument=this,Y.appendData($),Y},createProcessingInstruction:function($,Y){var Z=new cY;return Z.ownerDocument=this,Z.tagName=Z.nodeName=Z.target=$,Z.nodeValue=Z.data=Y,Z},createAttribute:function($){var Y=new X$;return Y.ownerDocument=this,Y.name=$,Y.nodeName=$,Y.localName=$,Y.specified=!0,Y},createEntityReference:function($){var Y=new mY;return Y.ownerDocument=this,Y.nodeName=$,Y},createElementNS:function($,Y){var Z=new Y0,J=Y.split(":"),K=Z.attributes=new j$;if(Z.childNodes=new b1,Z.ownerDocument=this,Z.nodeName=Y,Z.tagName=Y,Z.namespaceURI=$,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return K._ownerElement=Z,Z},createAttributeNS:function($,Y){var Z=new X$,J=Y.split(":");if(Z.ownerDocument=this,Z.nodeName=Y,Z.name=Y,Z.namespaceURI=$,Z.specified=!0,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return Z}};J1(c0,f);function Y0(){this._nsMap={}}Y0.prototype={nodeType:U1,hasAttribute:function($){return this.getAttributeNode($)!=null},getAttribute:function($){var Y=this.getAttributeNode($);return Y&&Y.value||""},getAttributeNode:function($){return this.attributes.getNamedItem($)},setAttribute:function($,Y){var Z=this.ownerDocument.createAttribute($);Z.value=Z.nodeValue=""+Y,this.setAttributeNode(Z)},removeAttribute:function($){var Y=this.getAttributeNode($);Y&&this.removeAttributeNode(Y)},appendChild:function($){if($.nodeType===g1)return this.insertBefore($,null);else return Q2(this,$)},setAttributeNode:function($){return this.attributes.setNamedItem($)},setAttributeNodeNS:function($){return this.attributes.setNamedItemNS($)},removeAttributeNode:function($){return this.attributes.removeNamedItem($.nodeName)},removeAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);Z&&this.removeAttributeNode(Z)},hasAttributeNS:function($,Y){return this.getAttributeNodeNS($,Y)!=null},getAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);return Z&&Z.value||""},setAttributeNS:function($,Y,Z){var J=this.ownerDocument.createAttributeNS($,Y);J.value=J.nodeValue=""+Z,this.setAttributeNode(J)},getAttributeNodeNS:function($,Y){return this.attributes.getNamedItemNS($,Y)},getElementsByTagName:function($){return new U0(this,function(Y){var Z=[];return u0(Y,function(J){if(J!==Y&&J.nodeType==U1&&($==="*"||J.tagName==$))Z.push(J)}),Z})},getElementsByTagNameNS:function($,Y){return new U0(this,function(Z){var J=[];return u0(Z,function(K){if(K!==Z&&K.nodeType===U1&&($==="*"||K.namespaceURI===$)&&(Y==="*"||K.localName==Y))J.push(K)}),J})}};c0.prototype.getElementsByTagName=Y0.prototype.getElementsByTagName;c0.prototype.getElementsByTagNameNS=Y0.prototype.getElementsByTagNameNS;J1(Y0,f);function X$(){}X$.prototype.nodeType=F0;J1(X$,f);function p0(){}p0.prototype={data:"",substringData:function($,Y){return this.data.substring($,$+Y)},appendData:function($){$=this.data+$,this.nodeValue=this.data=$,this.length=$.length},insertData:function($,Y){this.replaceData($,0,Y)},appendChild:function($){throw Error(r[Z1])},deleteData:function($,Y){this.replaceData($,Y,"")},replaceData:function($,Y,Z){var J=this.data.substring(0,$),K=this.data.substring($+Y);Z=J+Z+K,this.nodeValue=this.data=Z,this.length=Z.length}};J1(p0,f);function hY(){}hY.prototype={nodeName:"#text",nodeType:w$,splitText:function($){var Y=this.data,Z=Y.substring($);Y=Y.substring(0,$),this.data=this.nodeValue=Y,this.length=Y.length;var J=this.ownerDocument.createTextNode(Z);if(this.parentNode)this.parentNode.insertBefore(J,this.nextSibling);return J}};J1(hY,p0);function vY(){}vY.prototype={nodeName:"#comment",nodeType:K6};J1(vY,p0);function uY(){}uY.prototype={nodeName:"#cdata-section",nodeType:Y6};J1(uY,p0);function I$(){}I$.prototype.nodeType=Q6;J1(I$,f);function U6(){}U6.prototype.nodeType=$2;J1(U6,f);function O6(){}O6.prototype.nodeType=eG;J1(O6,f);function mY(){}mY.prototype.nodeType=Z6;J1(mY,f);function _$(){}_$.prototype.nodeName="#document-fragment";_$.prototype.nodeType=g1;J1(_$,f);function cY(){}cY.prototype.nodeType=J6;J1(cY,f);function R6(){}R6.prototype.serializeToString=function($,Y,Z){return P6.call($,Y,Z)};f.prototype.toString=P6;function P6($,Y){var Z=[],J=this.nodeType==9&&this.documentElement||this,K=J.prefix,z=J.namespaceURI;if(z&&K==null){var K=J.lookupPrefix(z);if(K==null)var Q=[{namespace:z,prefix:null}]}return B0(this,Z,$,Y,Q),Z.join("")}function eJ($,Y,Z){var J=$.prefix||"",K=$.namespaceURI;if(!K)return!1;if(J==="xml"&&K===v0.XML||K===v0.XMLNS)return!1;var z=Z.length;while(z--){var Q=Z[z];if(Q.prefix===J)return Q.namespace!==K}return!0}function NY($,Y,Z){$.push(" ",Y,'="',Z.replace(/[<&"]/g,q6),'"')}function B0($,Y,Z,J,K){if(!K)K=[];if(J)if($=J($),$){if(typeof $=="string"){Y.push($);return}}else return;switch($.nodeType){case U1:var z=$.attributes,Q=z.length,D=$.firstChild,W=$.tagName;Z=v0.isHTML($.namespaceURI)||Z;var G=W;if(!Z&&!$.prefix&&$.namespaceURI){var q;for(var H=0;H=0;R--){var P=K[R];if(P.prefix===""&&P.namespace===$.namespaceURI){q=P.namespace;break}}if(q!==$.namespaceURI)for(var R=K.length-1;R>=0;R--){var P=K[R];if(P.namespace===$.namespaceURI){if(P.prefix)G=P.prefix+":"+W;break}}}Y.push("<",G);for(var w=0;w"),Z&&/^script$/i.test(W))while(D){if(D.data)Y.push(D.data);else B0(D,Y,Z,J,K.slice());D=D.nextSibling}else while(D)B0(D,Y,Z,J,K.slice()),D=D.nextSibling;Y.push("")}else Y.push("/>");return;case z6:case g1:var D=$.firstChild;while(D)B0(D,Y,Z,J,K.slice()),D=D.nextSibling;return;case F0:return NY(Y,$.name,$.value);case w$:return Y.push($.data.replace(/[<&]/g,q6).replace(/]]>/g,"]]>"));case Y6:return Y.push("");case K6:return Y.push("");case Q6:var{publicId:y,systemId:O}=$;if(Y.push("")}else if(O&&O!=".")Y.push(" SYSTEM ",O,">");else{var B=$.internalSubset;if(B)Y.push(" [",B,"]");Y.push(">")}return;case J6:return Y.push("");case Z6:return Y.push("&",$.nodeName,";");default:Y.push("??",$.nodeName)}}function A6($,Y,Z){var J;switch(Y.nodeType){case U1:J=Y.cloneNode(!1),J.ownerDocument=$;case g1:break;case F0:Z=!0;break}if(!J)J=Y.cloneNode(!1);if(J.ownerDocument=$,J.parentNode=null,Z){var K=Y.firstChild;while(K)J.appendChild(A6($,K,Z)),K=K.nextSibling}return J}function yY($,Y,Z){var J=new Y.constructor;for(var K in Y)if(Object.prototype.hasOwnProperty.call(Y,K)){var z=Y[K];if(typeof z!="object"){if(z!=J[K])J[K]=z}}if(Y.childNodes)J.childNodes=new b1;switch(J.ownerDocument=$,J.nodeType){case U1:var Q=Y.attributes,W=J.attributes=new j$,G=Q.length;W._ownerElement=J;for(var q=0;q{var C6=h0().freeze;R2.XML_ENTITIES=C6({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});R2.HTML_ENTITIES=C6({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\uD835\uDD20",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\uD835\uDD54",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\uD835\uDCBB",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\uD835\uDD25",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\uD835\uDD59",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\uD835\uDCBD",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\uD835\uDD26",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\uD835\uDCBE",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"\u0237",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\uD835\uDCC1",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"\u2213",Mscr:"\u2133",mscr:"\uD835\uDCC2",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\uD835\uDD5F",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\uD835\uDCAA",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\uD835\uDD61",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"\u2A0C",Qopf:"\u211A",qopf:"\uD835\uDD62",qprime:"\u2057",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\uD835\uDD2F",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\uD835\uDCC7",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:"\t",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\uD835\uDD37",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"});R2.entityMap=R2.HTML_ENTITIES});var M6=C((_2)=>{var i0=h0().NAMESPACE,dY=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,k6=new RegExp("[\\-\\.0-9"+dY.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),X6=new RegExp("^"+dY.source+k6.source+"*(?::"+dY.source+k6.source+"*)?$"),d0=0,l1=1,O0=2,l0=3,R0=4,P0=5,s0=6,D$=7;function A0($,Y){if(this.message=$,this.locator=Y,Error.captureStackTrace)Error.captureStackTrace(this,A0)}A0.prototype=Error();A0.prototype.name=A0.name;function D6(){}D6.prototype={parse:function($,Y,Z){var J=this.domBuilder;J.startDocument(),T6(Y,Y={}),E2($,Y,Z,J,this.errorHandler),J.endDocument()}};function E2($,Y,Z,J,K){function z(_){if(_>65535){_-=65536;var L=55296+(_>>10),p=56320+(_&1023);return String.fromCharCode(L,p)}else return String.fromCharCode(_)}function Q(_){var L=_.slice(1,-1);if(L in Z)return Z[L];else if(L.charAt(0)==="#")return z(parseInt(L.substr(1).replace("x","0x")));else return K.error("entity not found:"+_),_}function W(_){if(_>T){var L=$.substring(T,_).replace(/&#?\w+;/g,Q);P&&G(T),J.characters(L,0,_-T),T=_}}function G(_,L){while(_>=H&&(L=R.exec($)))q=L.index,H=q+L[0].length,P.lineNumber++;P.columnNumber=_-q+1}var q=0,H=0,R=/.*(?:\r\n?|\n)|.*$/g,P=J.locator,w=[{currentNSMap:Y}],I={},T=0;while(!0){try{var X=$.indexOf("<",T);if(X<0){if(!$.substr(T).match(/^\s*$/)){var D=J.doc,y=D.createTextNode($.substr(T));D.appendChild(y),J.currentElement=y}return}if(X>T)W(X);switch($.charAt(X+1)){case"/":var j=$.indexOf(">",X+3),O=$.substring(X+2,j).replace(/[ \t\n\r]+$/g,""),B=w.pop();if(j<0)O=$.substring(X+2).replace(/[\s<].*/,""),K.error("end tag name: "+O+" is not complete:"+B.tagName),j=X+1+O.length;else if(O.match(/\sT)T=j;else W(Math.max(X,T)+1)}}function I6($,Y){return Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber,Y}function C2($,Y,Z,J,K,z){function Q(w,I,T){if(Z.attributeNames.hasOwnProperty(w))z.fatalError("Attribute "+w+" redefined");Z.addValue(w,I,T)}var W,G,q=++Y,H=d0;while(!0){var R=$.charAt(q);switch(R){case"=":if(H===l1)W=$.slice(Y,q),H=l0;else if(H===O0)H=l0;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(H===l0||H===l1){if(H===l1)z.warning('attribute value must after "="'),W=$.slice(Y,q);if(Y=q+1,q=$.indexOf(R,Y),q>0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y-1),H=P0;else throw Error("attribute value no end '"+R+"' match")}else if(H==R0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y),z.warning('attribute "'+W+'" missed start quot('+R+")!!"),Y=q+1,H=P0;else throw Error('attribute value must after "="');break;case"/":switch(H){case d0:Z.setTagName($.slice(Y,q));case P0:case s0:case D$:H=D$,Z.closed=!0;case R0:case l1:break;case O0:Z.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(z.error("unexpected end of input"),H==d0)Z.setTagName($.slice(Y,q));return q;case">":switch(H){case d0:Z.setTagName($.slice(Y,q));case P0:case s0:case D$:break;case R0:case l1:if(G=$.slice(Y,q),G.slice(-1)==="/")Z.closed=!0,G=G.slice(0,-1);case O0:if(H===O0)G=W;if(H==R0)z.warning('attribute "'+G+'" missed quot(")!'),Q(W,G.replace(/&#?\w+;/g,K),Y);else{if(!i0.isHTML(J[""])||!G.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');Q(G,G,Y)}break;case l0:throw Error("attribute value missed!!")}return q;case"\x80":R=" ";default:if(R<=" ")switch(H){case d0:Z.setTagName($.slice(Y,q)),H=s0;break;case l1:W=$.slice(Y,q),H=O0;break;case R0:var G=$.slice(Y,q).replace(/&#?\w+;/g,K);z.warning('attribute "'+G+'" missed quot(")!!'),Q(W,G,Y);case P0:H=s0;break}else switch(H){case O0:var P=Z.tagName;if(!i0.isHTML(J[""])||!W.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+W+'" missed value!! "'+W+'" instead2!!');Q(W,W,Y),Y=q,H=l1;break;case P0:z.warning('attribute space is required"'+W+'"!!');case s0:H=l1,Y=q;break;case l0:H=R0,Y=q;break;case D$:throw Error("elements closed character '/' and '>' must be connected to")}}q++}}function _6($,Y,Z){var J=$.tagName,K=null,R=$.length;while(R--){var z=$[R],Q=z.qName,W=z.value,P=Q.indexOf(":");if(P>0)var G=z.prefix=Q.slice(0,P),q=Q.slice(P+1),H=G==="xmlns"&&q;else q=Q,G=null,H=Q==="xmlns"&&"";if(z.localName=q,H!==!1){if(K==null)K={},T6(Z,Z={});Z[H]=K[H]=W,z.uri=i0.XMLNS,Y.startPrefixMapping(H,W)}}var R=$.length;while(R--){z=$[R];var G=z.prefix;if(G){if(G==="xml")z.uri=i0.XML;if(G!=="xmlns")z.uri=Z[G||""]}}var P=J.indexOf(":");if(P>0)G=$.prefix=J.slice(0,P),q=$.localName=J.slice(P+1);else G=null,q=$.localName=J;var w=$.uri=Z[G||""];if(Y.startElement(w,q,J,$),$.closed){if(Y.endElement(w,q,J),K){for(G in K)if(Object.prototype.hasOwnProperty.call(K,G))Y.endPrefixMapping(G)}}else return $.currentNSMap=Z,$.localNSMap=K,!0}function w2($,Y,Z,J,K){if(/^(?:script|textarea)$/i.test(Z)){var z=$.indexOf("",Y),Q=$.substring(Y+1,z);if(/[&<]/.test(Q)){if(/^script$/i.test(Z))return K.characters(Q,0,Q.length),z;return Q=Q.replace(/&#?\w+;/g,J),K.characters(Q,0,Q.length),z}}return Y+1}function j2($,Y,Z,J){var K=J[Z];if(K==null){if(K=$.lastIndexOf(""),K",Y+4);if(z>Y)return Z.comment($,Y+4,z-Y-4),z+3;else return J.error("Unclosed comment"),-1}else return-1;default:if($.substr(Y+3,6)=="CDATA["){var z=$.indexOf("]]>",Y+9);return Z.startCDATA(),Z.characters($,Y+9,z-Y-9),Z.endCDATA(),z+3}var Q=I2($,Y),W=Q.length;if(W>1&&/!doctype/i.test(Q[0][0])){var G=Q[1][0],q=!1,H=!1;if(W>3){if(/^public$/i.test(Q[2][0]))q=Q[3][0],H=W>4&&Q[4][0];else if(/^system$/i.test(Q[2][0]))H=Q[3][0]}var R=Q[W-1];return Z.startDTD(G,q,H),Z.endDTD(),R.index+R[0].length}}return-1}function X2($,Y,Z){var J=$.indexOf("?>",Y);if(J){var K=$.substring(Y,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(K){var z=K[0].length;return Z.processingInstruction(K[1],K[2]),J+2}else return-1}return-1}function S6(){this.attributeNames={}}S6.prototype={setTagName:function($){if(!X6.test($))throw Error("invalid tagName:"+$);this.tagName=$},addValue:function($,Y,Z){if(!X6.test($))throw Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:Y,offset:Z}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function I2($,Y){var Z,J=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;K.lastIndex=Y,K.exec($);while(Z=K.exec($))if(J.push(Z),Z[1])return J}_2.XMLReader=D6;_2.ParseError=A0});var g6=C((y2)=>{var S2=h0(),sY=pY(),L6=j6(),y6=M6(),M2=sY.DOMImplementation,x6=S2.NAMESPACE,L2=y6.ParseError,x2=y6.XMLReader;function b6($){this.options=$||{locator:{}}}b6.prototype.parseFromString=function($,Y){var Z=this.options,J=new x2,K=Z.domBuilder||new r0,z=Z.errorHandler,Q=Z.locator,W=Z.xmlns||{},G=/\/x?html?$/.test(Y),q=G?L6.HTML_ENTITIES:L6.XML_ENTITIES;if(Q)K.setDocumentLocator(Q);if(J.errorHandler=N2(z,K,Q),J.domBuilder=Z.domBuilder||K,G)W[""]=x6.HTML;if(W.xml=W.xml||x6.XML,$&&typeof $==="string")J.parse($,W,q);else J.errorHandler.error("invalid doc source");return K.doc};function N2($,Y,Z){if(!$){if(Y instanceof r0)return Y;$=Y}var J={},K=$ instanceof Function;Z=Z||{};function z(Q){var W=$[Q];if(!W&&K)W=$.length==2?function(G){$(Q,G)}:$;J[Q]=W&&function(G){W("[xmldom "+Q+"]\t"+G+lY(Z))}||function(){}}return z("warning"),z("error"),z("fatalError"),J}function r0(){this.cdata=!1}function E0($,Y){Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber}r0.prototype={startDocument:function(){if(this.doc=new M2().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function($,Y,Z,J){var K=this.doc,z=K.createElementNS($,Z||Y),Q=J.length;T$(this,z),this.currentElement=z,this.locator&&E0(this.locator,z);for(var W=0;W=Y+Z||Y)return new java.lang.String($,Y,Z)+"";return $}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function($){r0.prototype[$]=function(){return null}});function T$($,Y){if(!$.currentElement)$.doc.appendChild(Y);else $.currentElement.appendChild(Y)}y2.__DOMHandler=r0;y2.DOMParser=b6;y2.DOMImplementation=sY.DOMImplementation;y2.XMLSerializer=sY.XMLSerializer});var S$=C((v2)=>{var f6=pY();v2.DOMImplementation=f6.DOMImplementation;v2.XMLSerializer=f6.XMLSerializer;v2.DOMParser=g6().DOMParser});var c6=C((u6)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.parse=void 0;var p2=S$();function d2($){let J=new p2.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Workspace")throw Error("Invalid xcworkspacedata file: root element must be ");return l2(J)}u6.parse=d2;function l2($){let Y={};Y.version=M$($,"version");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(h6);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(v6);return Y}function h6($){return{location:M$($,"location")||""}}function v6($){let Y={};Y.location=M$($,"location"),Y.name=M$($,"name");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(h6);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(v6);return Y}function M$($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function L$($,Y){let Z=[],J=$.childNodes;for(let K=0;K{Object.defineProperty(s6,"__esModule",{value:!0});s6.build=void 0;function s2($){let Y=[];Y.push('');let Z=[];if($.version!==void 0)Z.push(`version = "${$.version}"`);if(Z.length>0){Y.push("");if($.fileRefs)for(let J of $.fileRefs)Y.push(...p6(J,1));if($.groups)for(let J of $.groups)Y.push(...d6(J,1));return Y.push(""),Y.join(` +`),this.close()}_($,Z){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(j7.hide);else this.out.write(iV(this.outputText,this.out.columns));super.render(),this.outputText=[N7.symbol(this.done,this.aborted),S7.bold(this.msg),N7.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:S7.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(sV.line+j7.to(0)+this.outputText)}}_7.exports=P7});var k7=A((GB,x7)=>{x7.exports={TextPrompt:RK(),SelectPrompt:BK(),TogglePrompt:TK(),DatePrompt:Q7(),NumberPrompt:V7(),MultiselectPrompt:tY(),AutocompletePrompt:C7(),AutocompleteMultiselectPrompt:X7(),ConfirmPrompt:y7()}});var f7=A((b7)=>{var W1=b7,nV=k7(),F9=($)=>$;function a1($,Z,Y={}){return new Promise((J,K)=>{let z=new nV[$](Z),Q=Y.onAbort||F9,U=Y.onSubmit||F9,G=Y.onExit||F9;z.on("state",Z.onState||F9),z.on("submit",(H)=>J(U(H))),z.on("exit",(H)=>J(G(H))),z.on("abort",(H)=>K(Q(H)))})}W1.text=($)=>a1("TextPrompt",$);W1.password=($)=>{return $.style="password",W1.text($)};W1.invisible=($)=>{return $.style="invisible",W1.text($)};W1.number=($)=>a1("NumberPrompt",$);W1.date=($)=>a1("DatePrompt",$);W1.confirm=($)=>a1("ConfirmPrompt",$);W1.list=($)=>{let Z=$.separator||",";return a1("TextPrompt",$,{onSubmit:(Y)=>Y.split(Z).map((J)=>J.trim())})};W1.toggle=($)=>a1("TogglePrompt",$);W1.select=($)=>a1("SelectPrompt",$);W1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return a1("MultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};W1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return a1("AutocompleteMultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};var rV=($,Z)=>Promise.resolve(Z.filter((Y)=>Y.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));W1.autocomplete=($)=>{return $.suggest=$.suggest||rV,$.choices=[].concat($.choices||[]),a1("AutocompletePrompt",$)}});var h7=A((qB,g7)=>{var Z8=f7(),aV=["suggest","format","onState","validate","onRender","type"],v7=()=>{};async function g0($=[],{onSubmit:Z=v7,onCancel:Y=v7}={}){let J={},K=g0._override||{};$=[].concat($);let z,Q,U,G,H,V,I=async(E,w,T=!1)=>{if(!T&&E.validate&&E.validate(w)!==!0)return;return E.format?await E.format(w,J):w};for(Q of $){if({name:G,type:H}=Q,typeof H==="function")H=await H(z,{...J},Q),Q.type=H;if(!H)continue;for(let E in Q){if(aV.includes(E))continue;let w=Q[E];Q[E]=typeof w==="function"?await w(z,{...J},V):w}if(V=Q,typeof Q.message!=="string")throw Error("prompt message is required");if({name:G,type:H}=Q,Z8[H]===void 0)throw Error(`prompt type (${H}) is not defined`);if(K[Q.name]!==void 0){if(z=await I(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=g0._injected?oV(g0._injected,Q.initial):await Z8[H](Q),J[G]=z=await I(Q,z,!0),U=await Z(Q,z,J)}catch(E){U=!await Y(Q,J)}if(U)return J}return J}function oV($,Z){let Y=$.shift();if(Y instanceof Error)throw Y;return Y===void 0?Z:Y}function tV($){g0._injected=(g0._injected||[]).concat($)}function eV($){g0._override=Object.assign({},$)}g7.exports=Object.assign(g0,{prompt:g0,prompts:Z8,inject:tV,override:eV})});var m7=A((HB,u7)=>{function $W($){$=(Array.isArray($)?$:$.split(".")).map(Number);let Z=0,Y=process.versions.node.split(".").map(Number);for(;Z<$.length;Z++){if(Y[Z]>$[Z])return!1;if($[Z]>Y[Z])return!0}return!1}u7.exports=$W("8.6.0")?s4():h7()});var i7=A((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});d7.isPBXFileReference=d7.isPBXBuildFile=d7.createReferenceList=void 0;function ZW($){let Y=$?.objects??{},J={};function K(G){for(let[H,V]of Object.entries(Y))if(V.buildConfigurationList===G){let I=V.name??V.path??V.productName;if(!I){if(I=Y[V.targets?.[0]]?.productName??Y[V.targets?.[0]]?.name,!I)I=Object.values(Y).find((w)=>w.isa==="PBXContainerItemProxy"&&w.containerPortal===H)?.remoteInfo}return`Build configuration list for ${V.isa} "${I}"`}return"Build configuration list for [unknown]"}function z(G){let H=Object.values(Y).find((V)=>V.files?.includes(G));return H?c7(H):null}function Q(G,H){let V=z(G)??"[missing build phase]",I=H.fileRef??H.productRef;if(!I)return`[unknown] in ${V}`;return`${U(I,Y[I])} in ${V}`}function U(G,H){if(!H?.isa)return null;if(G in J)return J[G];if(p7(H))J[G]=Q(G,H);else if(GW(H))J[G]=K(G);else if(zW(H))if(H.repositoryURL)J[G]=`${H.isa} "${YW(H.repositoryURL)}"`;else J[G]=H.isa;else if(QW(H))if(H.relativePath)J[G]=`${H.isa} "${H.relativePath}"`;else J[G]=H.isa;else if(JW(H))J[G]="Project object";else if(H.isa?.endsWith("BuildPhase"))J[G]=c7(H)??"";else if(H.isa==="PBXGroup"&&H.name===void 0&&H.path===void 0)J[G]="";else J[G]=H.name??H.productName??H.path??H.isa??null;return J[G]??null}return Object.entries(Y).forEach(([G,H])=>{if(!U(G,H));}),J}d7.createReferenceList=ZW;function YW($){try{let Z=new URL($);if(Z.hostname==="github.com")return Z.pathname.split("/").pop()}catch{}return $}function JW($){return $?.isa==="PBXProject"}function p7($){return $?.isa==="PBXBuildFile"}d7.isPBXBuildFile=p7;function KW($){return $?.isa==="PBXFileReference"}d7.isPBXFileReference=KW;function zW($){return $?.isa==="XCRemoteSwiftPackageReference"}function QW($){return $?.isa==="XCLocalSwiftPackageReference"}function GW($){return $?.isa==="XCConfigurationList"}function c7($){return $.name??UW($.isa)}function UW($){return $.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var a7=A((n7)=>{Object.defineProperty(n7,"__esModule",{value:!0});n7.Writer=void 0;var J8=i7(),VW={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':"\\\"","\\":"\\\\","\x00":"\\U0000","\x01":"\\U0001","\x02":"\\U0002","\x03":"\\U0003","\x04":"\\U0004","\x05":"\\U0005","\x06":"\\U0006","\x0E":"\\U000e","\x0F":"\\U000f","\x10":"\\U0010","\x11":"\\U0011","\x12":"\\U0012","\x13":"\\U0013","\x14":"\\U0014","\x15":"\\U0015","\x16":"\\U0016","\x17":"\\U0017","\x18":"\\U0018","\x19":"\\U0019","\x1A":"\\U001a","\x1B":"\\U001b","\x1C":"\\U001c","\x1D":"\\U001d","\x1E":"\\U001e","\x1F":"\\U001f"},WW=/\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;function FW($){return String($).replace(WW,(Z)=>VW[Z]||Z)}var JZ=` +`;try{JZ=k("os").EOL}catch{}function K8($){return typeof $==="object"&&$!==null&&!($ instanceof Buffer)}function D1($){if($=FW($),/^[\w_$/:.]+$/.test($))return $;return`"${$}"`}function z8($){return`<${$.toString("hex").toUpperCase()}>`}function OW($){let Z={};return Object.entries($).forEach(([Y,J])=>{if(!Z[J.isa])Z[J.isa]=[];Z[J.isa].push([Y,J])}),Object.entries(Z).sort()}class s7{pad($){let Z=this.options.tab??"\t";return $>0?Z+this.pad($-1):""}constructor($,Z={}){this.project=$,this.options=Z,this.indent=0,this.contents="",this.comments={},this.comments=(0,J8.createReferenceList)($),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println($){this.contents+=this.pad(this.indent),this.contents+=$,this.contents+=JZ}write($){this.contents+=this.pad(this.indent),this.contents+=$}printAssignLn($,Z){return this.println($+" = "+Z+";")}flush($){let Z=this.indent;this.indent=0,this.write($),this.indent=Z}writeShebang(){let $=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${$}`)}formatId($,Z=this.comments[$]){if(Z)return`${$} /* ${Z} */`;return D1($)}writeProject(){if(this.println("{"),this.project)this.indent++,this.writeObject(this.project,!0),this.indent--;this.println("}")}keyHasFloatValue($){return $===$.toUpperCase()&&($.endsWith("SWIFT_VERSION")||$.endsWith("MARKETING_VERSION")||$.endsWith("_DEPLOYMENT_TARGET"))}writeObject($,Z){Object.entries($).sort(([Y],[J])=>{if(Y==="isa")return-1;if(J==="isa")return 1;return YJ?1:0}).forEach(([Y,J])=>{if(this.options.skipNullishValues&&J==null)return;else if(J instanceof Buffer)this.printAssignLn(D1(Y),z8(J));else if(Array.isArray(J))this.writeArray(Y,J);else if(K8(J)){if(!Z&&!Object.keys(J).length){this.println(D1(Y)+" = {};");return}if(this.println(D1(Y)+" = {"),this.indent++,Z&&Y==="objects")this.writePbxObjects(J);else this.writeObject(J,Z);this.indent--,this.println("};")}else if(typeof J==="number"){let K=this.keyHasFloatValue(Y)&&Number.isInteger(J)?`${J}.0`:J;this.printAssignLn(D1(Y),D1(K))}else this.printAssignLn(D1(Y),Y==="remoteGlobalIDString"||Y==="TestTargetID"?D1(J):this.formatId(J))})}writePbxObjects($){OW($).forEach(([Z,Y])=>{this.flush(JZ),this.flush(`/* Begin ${Z} section */`+JZ),Y.sort(([J],[K])=>J.localeCompare(K)).forEach(([J,K])=>this.writeObjectInclusive(J,K)),this.flush(`/* End ${Z} section */`+JZ)})}writeArray($,Z){this.println(D1($)+" = ("),this.indent++,Z.forEach((Y)=>{if(Y instanceof Buffer)this.println(z8(Y)+",");else if(Y==null)return;else if(K8(Y)){if(this.println("{"),Y)this.indent++,this.writeObject(Y),this.indent--;this.println("},")}else this.println(this.formatId(String(Y))+",")}),this.indent--,this.println(");")}writeObjectInclusive($,Z){if((0,J8.isPBXBuildFile)(Z)||(0,J8.isPBXFileReference)(Z))return this.writeObjectWithoutIndent($,Z);this.println(this.formatId($)+" = {"),this.indent++,this.writeObject(Z),this.indent--,this.println("};")}writeObjectWithoutIndent($,Z){let Y=[],J=(K,z)=>{Y.push(this.formatId(K)+" = {"),Object.entries(z).sort(([Q],[U])=>{if(Q==="isa")return-1;if(U==="isa")return 1;return QU?1:0}).forEach(([Q,U])=>{if(this.options.skipNullishValues&&U==null)return;else if(U instanceof Buffer)Y.push(D1(Q)+" = "+z8(U)+"; ");else if(Array.isArray(U))Y.push(D1(Q)+" = ("),U.forEach((G)=>Y.push(D1(G)+", ")),Y.push("); ");else if(K8(U))J(Q,U);else Y.push(D1(Q)+" = "+this.formatId(U)+"; ")}),Y.push("}; ")};J($,Z),this.println(Y.join("").trim())}}n7.Writer=s7});var zz=A((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.parse=Jz.Parser=void 0;var RW={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},IW=32,EW=9,G8=10,AW=13,o7=123,wW=125,t7=40,BW=41,CW=59,DW=44,MW=61,e7=34,$z=39,Zz=92,Q8=47,Yz=42,LW=60,TW=62,XW={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},F$=new Uint8Array(256);F$[IW]=1;F$[EW]=1;F$[G8]=1;F$[AW]=1;var o1=new Uint8Array(256);for(let $=65;$<=90;$++)o1[$]=1;for(let $=97;$<=122;$++)o1[$]=1;for(let $=48;$<=57;$++)o1[$]=1;o1[95]=1;o1[36]=1;o1[47]=1;o1[58]=1;o1[46]=1;o1[45]=1;var KZ=new Uint8Array(256);for(let $=48;$<=57;$++)KZ[$]=1;for(let $=65;$<=70;$++)KZ[$]=1;for(let $=97;$<=102;$++)KZ[$]=1;var U8=new Uint8Array(256);for(let $=48;$<=55;$++)U8[$]=1;var O9=new Uint8Array(256);for(let $=48;$<=57;$++)O9[$]=1;class q8{constructor($){this.pos=0,this.text=$,this.len=$.length}parse(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===o7)return this.parseObject();else if($===t7)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){while(this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===wW)return this.pos++,$;let Y=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==MW)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),$[Y]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==CW)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let $=[];while(!0){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===BW)return this.pos++,$;if($.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===DW)this.pos++}}parseValue(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===o7)return this.parseObject();if($===t7)return this.parseArray();if($===LW)return this.parseDataLiteral();if($===e7||$===$z)return this.parseQuotedString();return this.parseStringLiteral()}parseIdentifierAsString(){let $=this.text.charCodeAt(this.pos);if($===e7||$===$z)return this.parseQuotedString();return this.parseStringLiteralRaw()}parseStringLiteralRaw(){let $=this.pos;while(this.pos1)return $;let U=parseInt($,10);if(Number.isSafeInteger(U))return U;return $}let K=!1,z=!0,Q=!1;for(let U=0;U=this.len)throw this.error("Unterminated string");let J=this.text.slice(Z,this.pos);return this.pos++,this.unescapeString(J)}unescapeString($){let Z=[],Y=0,J=$.length;while(Y=128?RW[H]||H:H;Z.push(String.fromCharCode(V)),Y=G;continue}Z.push($[Y],$[Y+1]),Y+=2}else Z.push($[Y]),Y++;return Z.join("")}isHexString($){if($.length!==4)return!1;for(let Z=0;Z<4;Z++)if(!KZ[$.charCodeAt(Z)])return!1;return!0}parseDataLiteral(){this.pos++;let $=[];while(this.pos{Object.defineProperty(Uz,"__esModule",{value:!0});Uz.SubFolder=Uz.ProxyType=Uz.ISA=void 0;var jW;(function($){$.PBXBuildFile="PBXBuildFile",$.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",$.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",$.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",$.PBXHeadersBuildPhase="PBXHeadersBuildPhase",$.PBXResourcesBuildPhase="PBXResourcesBuildPhase",$.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",$.PBXSourcesBuildPhase="PBXSourcesBuildPhase",$.PBXRezBuildPhase="PBXRezBuildPhase",$.PBXContainerItemProxy="PBXContainerItemProxy",$.PBXFileReference="PBXFileReference",$.PBXGroup="PBXGroup",$.PBXVariantGroup="PBXVariantGroup",$.XCVersionGroup="XCVersionGroup",$.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",$.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",$.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",$.PBXNativeTarget="PBXNativeTarget",$.PBXAggregateTarget="PBXAggregateTarget",$.PBXLegacyTarget="PBXLegacyTarget",$.PBXProject="PBXProject",$.PBXTargetDependency="PBXTargetDependency",$.XCBuildConfiguration="XCBuildConfiguration",$.XCConfigurationList="XCConfigurationList",$.PBXBuildRule="PBXBuildRule",$.PBXReferenceProxy="PBXReferenceProxy",$.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",$.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",$.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(jW=Uz.ISA||(Uz.ISA={}));var PW;(function($){$[$.targetReference=1]="targetReference",$[$.reference=2]="reference"})(PW=Uz.ProxyType||(Uz.ProxyType={}));var _W;(function($){$[$.absolutePath=0]="absolutePath",$[$.productsDirectory=16]="productsDirectory",$[$.wrapper=1]="wrapper",$[$.executables=6]="executables",$[$.resources=7]="resources",$[$.javaResources=15]="javaResources",$[$.frameworks=10]="frameworks",$[$.sharedFrameworks=11]="sharedFrameworks",$[$.sharedSupport=12]="sharedSupport",$[$.plugins=13]="plugins"})(_W=Uz.SubFolder||(Uz.SubFolder={}))});var V8=A((h1)=>{var yW=h1&&h1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),xW=h1&&h1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))yW(Z,$,Y)};Object.defineProperty(h1,"__esModule",{value:!0});h1.build=h1.parse=void 0;var kW=a7(),bW=zz();Object.defineProperty(h1,"parse",{enumerable:!0,get:function(){return bW.parse}});function fW($){return new kW.Writer($).getResults()}h1.build=fW;xW(l(),h1)});var zZ=A((gW)=>{function vW($,Z,Y){if(Y===void 0)Y=Array.prototype;if($&&typeof Y.find==="function")return Y.find.call($,Z);for(var J=0;J<$.length;J++)if(Object.prototype.hasOwnProperty.call($,J)){var K=$[J];if(Z.call(void 0,K,J,$))return K}}function W8($,Z){if(Z===void 0)Z=Object;return Z&&typeof Z.freeze==="function"?Z.freeze($):$}var qz=W8({HTML:"text/html",isHTML:function($){return $===qz.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Hz=W8({HTML:"http://www.w3.org/1999/xhtml",isHTML:function($){return $===Hz.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});gW.find=vW;gW.freeze=W8;gW.MIME_TYPE=qz;gW.NAMESPACE=Hz});var M8=A((YF)=>{var Az=zZ(),t1=Az.find,QZ=Az.NAMESPACE;function pW($){return $!==""}function dW($){return $?$.split(/[\t\n\f\r ]+/).filter(pW):[]}function lW($,Z){if(!$.hasOwnProperty(Z))$[Z]=!0;return $}function Vz($){if(!$)return[];var Z=dW($);return Object.keys(Z.reduce(lW,{}))}function iW($){return function(Z){return $&&$.indexOf(Z)!==-1}}function UZ($,Z){for(var Y in $)if(Object.prototype.hasOwnProperty.call($,Y))Z[Y]=$[Y]}function O1($,Z){var Y=$.prototype;if(!(Y instanceof Z)){let K=function(){};var J=K;K.prototype=Z.prototype,K=new K,UZ(Y,K),$.prototype=Y=K}if(Y.constructor!=$){if(typeof $!="function")console.error("unknown Class:"+$);Y.constructor=$}}var R1={},u1=R1.ELEMENT_NODE=1,R$=R1.ATTRIBUTE_NODE=2,R9=R1.TEXT_NODE=3,wz=R1.CDATA_SECTION_NODE=4,Bz=R1.ENTITY_REFERENCE_NODE=5,sW=R1.ENTITY_NODE=6,Cz=R1.PROCESSING_INSTRUCTION_NODE=7,Dz=R1.COMMENT_NODE=8,Mz=R1.DOCUMENT_NODE=9,Lz=R1.DOCUMENT_TYPE_NODE=10,N0=R1.DOCUMENT_FRAGMENT_NODE=11,nW=R1.NOTATION_NODE=12,G1={},J1={},AB=G1.INDEX_SIZE_ERR=(J1[1]="Index size error",1),wB=G1.DOMSTRING_SIZE_ERR=(J1[2]="DOMString size error",2),F1=G1.HIERARCHY_REQUEST_ERR=(J1[3]="Hierarchy request error",3),BB=G1.WRONG_DOCUMENT_ERR=(J1[4]="Wrong document",4),CB=G1.INVALID_CHARACTER_ERR=(J1[5]="Invalid character",5),DB=G1.NO_DATA_ALLOWED_ERR=(J1[6]="No data allowed",6),MB=G1.NO_MODIFICATION_ALLOWED_ERR=(J1[7]="No modification allowed",7),Tz=G1.NOT_FOUND_ERR=(J1[8]="Not found",8),LB=G1.NOT_SUPPORTED_ERR=(J1[9]="Not supported",9),Wz=G1.INUSE_ATTRIBUTE_ERR=(J1[10]="Attribute in use",10),TB=G1.INVALID_STATE_ERR=(J1[11]="Invalid state",11),XB=G1.SYNTAX_ERR=(J1[12]="Syntax error",12),SB=G1.INVALID_MODIFICATION_ERR=(J1[13]="Invalid modification",13),NB=G1.NAMESPACE_ERR=(J1[14]="Invalid namespace",14),jB=G1.INVALID_ACCESS_ERR=(J1[15]="Invalid access",15);function e($,Z){if(Z instanceof Error)var Y=Z;else if(Y=this,Error.call(this,J1[$]),this.message=J1[$],Error.captureStackTrace)Error.captureStackTrace(this,e);if(Y.code=$,Z)this.message=this.message+": "+Z;return Y}e.prototype=Error.prototype;UZ(G1,e);function S0(){}S0.prototype={length:0,item:function($){return $>=0&&$=0){var K=Z.length-1;while(J0},lookupPrefix:function($){var Z=this;while(Z){var Y=Z._nsMap;if(Y){for(var J in Y)if(Object.prototype.hasOwnProperty.call(Y,J)&&Y[J]===$)return J}Z=Z.nodeType==R$?Z.ownerDocument:Z.parentNode}return null},lookupNamespaceURI:function($){var Z=this;while(Z){var Y=Z._nsMap;if(Y){if($ in Y){if(Object.prototype.hasOwnProperty.call(Y,$))return Y[$]}}Z=Z.nodeType==R$?Z.ownerDocument:Z.parentNode}return null},isDefaultNamespace:function($){var Z=this.lookupPrefix($);return Z==null}};function Nz($){return $=="<"&&"<"||$==">"&&">"||$=="&"&&"&"||$=='"'&&"""||"&#"+$.charCodeAt()+";"}UZ(R1,h);UZ(R1,h.prototype);function GZ($,Z){if(Z($))return!0;if($=$.firstChild)do if(GZ($,Z))return!0;while($=$.nextSibling)}function qZ(){this.ownerDocument=this}function rW($,Z,Y){$&&$._inc++;var J=Y.namespaceURI;if(J===QZ.XMLNS)Z._nsMap[Y.prefix?Y.localName:""]=Y.value}function jz($,Z,Y,J){$&&$._inc++;var K=Y.namespaceURI;if(K===QZ.XMLNS)delete Z._nsMap[Y.prefix?Y.localName:""]}function I8($,Z,Y){if($&&$._inc){$._inc++;var J=Z.childNodes;if(Y)J[J.length++]=Y;else{var K=Z.firstChild,z=0;while(K)J[z++]=K,K=K.nextSibling;J.length=z,delete J[J.length]}}}function Pz($,Z){var{previousSibling:Y,nextSibling:J}=Z;if(Y)Y.nextSibling=J;else $.firstChild=J;if(J)J.previousSibling=Y;else $.lastChild=Y;return Z.parentNode=null,Z.previousSibling=null,Z.nextSibling=null,I8($.ownerDocument,$),Z}function aW($){return $&&($.nodeType===h.DOCUMENT_NODE||$.nodeType===h.DOCUMENT_FRAGMENT_NODE||$.nodeType===h.ELEMENT_NODE)}function oW($){return $&&(e1($)||E8($)||j0($)||$.nodeType===h.DOCUMENT_FRAGMENT_NODE||$.nodeType===h.COMMENT_NODE||$.nodeType===h.PROCESSING_INSTRUCTION_NODE)}function j0($){return $&&$.nodeType===h.DOCUMENT_TYPE_NODE}function e1($){return $&&$.nodeType===h.ELEMENT_NODE}function E8($){return $&&$.nodeType===h.TEXT_NODE}function Rz($,Z){var Y=$.childNodes||[];if(t1(Y,e1)||j0(Z))return!1;var J=t1(Y,j0);return!(Z&&J&&Y.indexOf(J)>Y.indexOf(Z))}function Iz($,Z){var Y=$.childNodes||[];function J(z){return e1(z)&&z!==Z}if(t1(Y,J))return!1;var K=t1(Y,j0);return!(Z&&K&&Y.indexOf(K)>Y.indexOf(Z))}function tW($,Z,Y){if(!aW($))throw new e(F1,"Unexpected parent node type "+$.nodeType);if(Y&&Y.parentNode!==$)throw new e(Tz,"child not in parent");if(!oW(Z)||j0(Z)&&$.nodeType!==h.DOCUMENT_NODE)throw new e(F1,"Unexpected node type "+Z.nodeType+" for parent node type "+$.nodeType)}function eW($,Z,Y){var J=$.childNodes||[],K=Z.childNodes||[];if(Z.nodeType===h.DOCUMENT_FRAGMENT_NODE){var z=K.filter(e1);if(z.length>1||t1(K,E8))throw new e(F1,"More than one element or text in fragment");if(z.length===1&&!Rz($,Y))throw new e(F1,"Element in fragment can not be inserted before doctype")}if(e1(Z)){if(!Rz($,Y))throw new e(F1,"Only one element can be added and only after doctype")}if(j0(Z)){if(t1(J,j0))throw new e(F1,"Only one doctype is allowed");var Q=t1(J,e1);if(Y&&J.indexOf(Q)1||t1(K,E8))throw new e(F1,"More than one element or text in fragment");if(z.length===1&&!Iz($,Y))throw new e(F1,"Element in fragment can not be inserted before doctype")}if(e1(Z)){if(!Iz($,Y))throw new e(F1,"Only one element can be added and only after doctype")}if(j0(Z)){let G=function(H){return j0(H)&&H!==Y};var U=G;if(t1(J,G))throw new e(F1,"Only one doctype is allowed");var Q=t1(J,e1);if(Y&&J.indexOf(Q)0)GZ(Y.documentElement,function(K){if(K!==Y&&K.nodeType===u1){var z=K.getAttribute("class");if(z){var Q=$===z;if(!Q){var U=Vz(z);Q=Z.every(iW(U))}if(Q)J.push(K)}}});return J})},createElement:function($){var Z=new t0;Z.ownerDocument=this,Z.nodeName=$,Z.tagName=$,Z.localName=$,Z.childNodes=new S0;var Y=Z.attributes=new I9;return Y._ownerElement=Z,Z},createDocumentFragment:function(){var $=new B9;return $.ownerDocument=this,$.childNodes=new S0,$},createTextNode:function($){var Z=new A8;return Z.ownerDocument=this,Z.appendData($),Z},createComment:function($){var Z=new w8;return Z.ownerDocument=this,Z.appendData($),Z},createCDATASection:function($){var Z=new B8;return Z.ownerDocument=this,Z.appendData($),Z},createProcessingInstruction:function($,Z){var Y=new D8;return Y.ownerDocument=this,Y.tagName=Y.nodeName=Y.target=$,Y.nodeValue=Y.data=Z,Y},createAttribute:function($){var Z=new A9;return Z.ownerDocument=this,Z.name=$,Z.nodeName=$,Z.localName=$,Z.specified=!0,Z},createEntityReference:function($){var Z=new C8;return Z.ownerDocument=this,Z.nodeName=$,Z},createElementNS:function($,Z){var Y=new t0,J=Z.split(":"),K=Y.attributes=new I9;if(Y.childNodes=new S0,Y.ownerDocument=this,Y.nodeName=Z,Y.tagName=Z,Y.namespaceURI=$,J.length==2)Y.prefix=J[0],Y.localName=J[1];else Y.localName=Z;return K._ownerElement=Y,Y},createAttributeNS:function($,Z){var Y=new A9,J=Z.split(":");if(Y.ownerDocument=this,Y.nodeName=Z,Y.name=Z,Y.namespaceURI=$,Y.specified=!0,J.length==2)Y.prefix=J[0],Y.localName=J[1];else Y.localName=Z;return Y}};O1(qZ,h);function t0(){this._nsMap={}}t0.prototype={nodeType:u1,hasAttribute:function($){return this.getAttributeNode($)!=null},getAttribute:function($){var Z=this.getAttributeNode($);return Z&&Z.value||""},getAttributeNode:function($){return this.attributes.getNamedItem($)},setAttribute:function($,Z){var Y=this.ownerDocument.createAttribute($);Y.value=Y.nodeValue=""+Z,this.setAttributeNode(Y)},removeAttribute:function($){var Z=this.getAttributeNode($);Z&&this.removeAttributeNode(Z)},appendChild:function($){if($.nodeType===N0)return this.insertBefore($,null);else return $F(this,$)},setAttributeNode:function($){return this.attributes.setNamedItem($)},setAttributeNodeNS:function($){return this.attributes.setNamedItemNS($)},removeAttributeNode:function($){return this.attributes.removeNamedItem($.nodeName)},removeAttributeNS:function($,Z){var Y=this.getAttributeNodeNS($,Z);Y&&this.removeAttributeNode(Y)},hasAttributeNS:function($,Z){return this.getAttributeNodeNS($,Z)!=null},getAttributeNS:function($,Z){var Y=this.getAttributeNodeNS($,Z);return Y&&Y.value||""},setAttributeNS:function($,Z,Y){var J=this.ownerDocument.createAttributeNS($,Z);J.value=J.nodeValue=""+Y,this.setAttributeNode(J)},getAttributeNodeNS:function($,Z){return this.attributes.getNamedItemNS($,Z)},getElementsByTagName:function($){return new I$(this,function(Z){var Y=[];return GZ(Z,function(J){if(J!==Z&&J.nodeType==u1&&($==="*"||J.tagName==$))Y.push(J)}),Y})},getElementsByTagNameNS:function($,Z){return new I$(this,function(Y){var J=[];return GZ(Y,function(K){if(K!==Y&&K.nodeType===u1&&($==="*"||K.namespaceURI===$)&&(Z==="*"||K.localName==Z))J.push(K)}),J})}};qZ.prototype.getElementsByTagName=t0.prototype.getElementsByTagName;qZ.prototype.getElementsByTagNameNS=t0.prototype.getElementsByTagNameNS;O1(t0,h);function A9(){}A9.prototype.nodeType=R$;O1(A9,h);function HZ(){}HZ.prototype={data:"",substringData:function($,Z){return this.data.substring($,$+Z)},appendData:function($){$=this.data+$,this.nodeValue=this.data=$,this.length=$.length},insertData:function($,Z){this.replaceData($,0,Z)},appendChild:function($){throw Error(J1[F1])},deleteData:function($,Z){this.replaceData($,Z,"")},replaceData:function($,Z,Y){var J=this.data.substring(0,$),K=this.data.substring($+Z);Y=J+Y+K,this.nodeValue=this.data=Y,this.length=Y.length}};O1(HZ,h);function A8(){}A8.prototype={nodeName:"#text",nodeType:R9,splitText:function($){var Z=this.data,Y=Z.substring($);Z=Z.substring(0,$),this.data=this.nodeValue=Z,this.length=Z.length;var J=this.ownerDocument.createTextNode(Y);if(this.parentNode)this.parentNode.insertBefore(J,this.nextSibling);return J}};O1(A8,HZ);function w8(){}w8.prototype={nodeName:"#comment",nodeType:Dz};O1(w8,HZ);function B8(){}B8.prototype={nodeName:"#cdata-section",nodeType:wz};O1(B8,HZ);function w9(){}w9.prototype.nodeType=Lz;O1(w9,h);function yz(){}yz.prototype.nodeType=nW;O1(yz,h);function xz(){}xz.prototype.nodeType=sW;O1(xz,h);function C8(){}C8.prototype.nodeType=Bz;O1(C8,h);function B9(){}B9.prototype.nodeName="#document-fragment";B9.prototype.nodeType=N0;O1(B9,h);function D8(){}D8.prototype.nodeType=Cz;O1(D8,h);function kz(){}kz.prototype.serializeToString=function($,Z,Y){return bz.call($,Z,Y)};h.prototype.toString=bz;function bz($,Z){var Y=[],J=this.nodeType==9&&this.documentElement||this,K=J.prefix,z=J.namespaceURI;if(z&&K==null){var K=J.lookupPrefix(z);if(K==null)var Q=[{namespace:z,prefix:null}]}return O$(this,Y,$,Z,Q),Y.join("")}function Ez($,Z,Y){var J=$.prefix||"",K=$.namespaceURI;if(!K)return!1;if(J==="xml"&&K===QZ.XML||K===QZ.XMLNS)return!1;var z=Y.length;while(z--){var Q=Y[z];if(Q.prefix===J)return Q.namespace!==K}return!0}function F8($,Z,Y){$.push(" ",Z,'="',Y.replace(/[<&"]/g,Nz),'"')}function O$($,Z,Y,J,K){if(!K)K=[];if(J)if($=J($),$){if(typeof $=="string"){Z.push($);return}}else return;switch($.nodeType){case u1:var z=$.attributes,Q=z.length,S=$.firstChild,U=$.tagName;Y=QZ.isHTML($.namespaceURI)||Y;var G=U;if(!Y&&!$.prefix&&$.namespaceURI){var H;for(var V=0;V=0;I--){var E=K[I];if(E.prefix===""&&E.namespace===$.namespaceURI){H=E.namespace;break}}if(H!==$.namespaceURI)for(var I=K.length-1;I>=0;I--){var E=K[I];if(E.namespace===$.namespaceURI){if(E.prefix)G=E.prefix+":"+U;break}}}Z.push("<",G);for(var w=0;w"),Y&&/^script$/i.test(U))while(S){if(S.data)Z.push(S.data);else O$(S,Z,Y,J,K.slice());S=S.nextSibling}else while(S)O$(S,Z,Y,J,K.slice()),S=S.nextSibling;Z.push("")}else Z.push("/>");return;case Mz:case N0:var S=$.firstChild;while(S)O$(S,Z,Y,J,K.slice()),S=S.nextSibling;return;case R$:return F8(Z,$.name,$.value);case R9:return Z.push($.data.replace(/[<&]/g,Nz).replace(/]]>/g,"]]>"));case wz:return Z.push("");case Dz:return Z.push("");case Lz:var{publicId:P,systemId:R}=$;if(Z.push("")}else if(R&&R!=".")Z.push(" SYSTEM ",R,">");else{var W=$.internalSubset;if(W)Z.push(" [",W,"]");Z.push(">")}return;case Cz:return Z.push("");case Bz:return Z.push("&",$.nodeName,";");default:Z.push("??",$.nodeName)}}function fz($,Z,Y){var J;switch(Z.nodeType){case u1:J=Z.cloneNode(!1),J.ownerDocument=$;case N0:break;case R$:Y=!0;break}if(!J)J=Z.cloneNode(!1);if(J.ownerDocument=$,J.parentNode=null,Y){var K=Z.firstChild;while(K)J.appendChild(fz($,K,Y)),K=K.nextSibling}return J}function O8($,Z,Y){var J=new Z.constructor;for(var K in Z)if(Object.prototype.hasOwnProperty.call(Z,K)){var z=Z[K];if(typeof z!="object"){if(z!=J[K])J[K]=z}}if(Z.childNodes)J.childNodes=new S0;switch(J.ownerDocument=$,J.nodeType){case u1:var Q=Z.attributes,U=J.attributes=new I9,G=Q.length;U._ownerElement=J;for(var H=0;H{var gz=zZ().freeze;HF.XML_ENTITIES=gz({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});HF.HTML_ENTITIES=gz({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"});HF.entityMap=HF.HTML_ENTITIES});var nz=A((BF)=>{var OZ=zZ().NAMESPACE,L8=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,mz=new RegExp("[\\-\\.0-9"+L8.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),cz=new RegExp("^"+L8.source+mz.source+"*(?::"+L8.source+mz.source+"*)?$"),VZ=0,h0=1,E$=2,WZ=3,A$=4,w$=5,FZ=6,C9=7;function B$($,Z){if(this.message=$,this.locator=Z,Error.captureStackTrace)Error.captureStackTrace(this,B$)}B$.prototype=Error();B$.prototype.name=B$.name;function lz(){}lz.prototype={parse:function($,Z,Y){var J=this.domBuilder;J.startDocument(),iz(Z,Z={}),FF($,Z,Y,J,this.errorHandler),J.endDocument()}};function FF($,Z,Y,J,K){function z(j){if(j>65535){j-=65536;var p=55296+(j>>10),Y1=56320+(j&1023);return String.fromCharCode(p,Y1)}else return String.fromCharCode(j)}function Q(j){var p=j.slice(1,-1);if(p in Y)return Y[p];else if(p.charAt(0)==="#")return z(parseInt(p.substr(1).replace("x","0x")));else return K.error("entity not found:"+j),j}function U(j){if(j>X){var p=$.substring(X,j).replace(/&#?\w+;/g,Q);E&&G(X),J.characters(p,0,j-X),X=j}}function G(j,p){while(j>=V&&(p=I.exec($)))H=p.index,V=H+p[0].length,E.lineNumber++;E.columnNumber=j-H+1}var H=0,V=0,I=/.*(?:\r\n?|\n)|.*$/g,E=J.locator,w=[{currentNSMap:Z}],T={},X=0;while(!0){try{var D=$.indexOf("<",X);if(D<0){if(!$.substr(X).match(/^\s*$/)){var S=J.doc,P=S.createTextNode($.substr(X));S.appendChild(P),J.currentElement=P}return}if(D>X)U(D);switch($.charAt(D+1)){case"/":var M=$.indexOf(">",D+3),R=$.substring(D+2,M).replace(/[ \t\n\r]+$/g,""),W=w.pop();if(M<0)R=$.substring(D+2).replace(/[\s<].*/,""),K.error("end tag name: "+R+" is not complete:"+W.tagName),M=D+1+R.length;else if(R.match(/\sX)X=M;else U(Math.max(D,X)+1)}}function pz($,Z){return Z.lineNumber=$.lineNumber,Z.columnNumber=$.columnNumber,Z}function OF($,Z,Y,J,K,z){function Q(w,T,X){if(Y.attributeNames.hasOwnProperty(w))z.fatalError("Attribute "+w+" redefined");Y.addValue(w,T,X)}var U,G,H=++Z,V=VZ;while(!0){var I=$.charAt(H);switch(I){case"=":if(V===h0)U=$.slice(Z,H),V=WZ;else if(V===E$)V=WZ;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(V===WZ||V===h0){if(V===h0)z.warning('attribute value must after "="'),U=$.slice(Z,H);if(Z=H+1,H=$.indexOf(I,Z),H>0)G=$.slice(Z,H).replace(/&#?\w+;/g,K),Q(U,G,Z-1),V=w$;else throw Error("attribute value no end '"+I+"' match")}else if(V==A$)G=$.slice(Z,H).replace(/&#?\w+;/g,K),Q(U,G,Z),z.warning('attribute "'+U+'" missed start quot('+I+")!!"),Z=H+1,V=w$;else throw Error('attribute value must after "="');break;case"/":switch(V){case VZ:Y.setTagName($.slice(Z,H));case w$:case FZ:case C9:V=C9,Y.closed=!0;case A$:case h0:break;case E$:Y.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(z.error("unexpected end of input"),V==VZ)Y.setTagName($.slice(Z,H));return H;case">":switch(V){case VZ:Y.setTagName($.slice(Z,H));case w$:case FZ:case C9:break;case A$:case h0:if(G=$.slice(Z,H),G.slice(-1)==="/")Y.closed=!0,G=G.slice(0,-1);case E$:if(V===E$)G=U;if(V==A$)z.warning('attribute "'+G+'" missed quot(")!'),Q(U,G.replace(/&#?\w+;/g,K),Z);else{if(!OZ.isHTML(J[""])||!G.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');Q(G,G,Z)}break;case WZ:throw Error("attribute value missed!!")}return H;case"€":I=" ";default:if(I<=" ")switch(V){case VZ:Y.setTagName($.slice(Z,H)),V=FZ;break;case h0:U=$.slice(Z,H),V=E$;break;case A$:var G=$.slice(Z,H).replace(/&#?\w+;/g,K);z.warning('attribute "'+G+'" missed quot(")!!'),Q(U,G,Z);case w$:V=FZ;break}else switch(V){case E$:var E=Y.tagName;if(!OZ.isHTML(J[""])||!U.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+U+'" missed value!! "'+U+'" instead2!!');Q(U,U,Z),Z=H,V=h0;break;case w$:z.warning('attribute space is required"'+U+'"!!');case FZ:V=h0,Z=H;break;case WZ:V=A$,Z=H;break;case C9:throw Error("elements closed character '/' and '>' must be connected to")}}H++}}function dz($,Z,Y){var J=$.tagName,K=null,I=$.length;while(I--){var z=$[I],Q=z.qName,U=z.value,E=Q.indexOf(":");if(E>0)var G=z.prefix=Q.slice(0,E),H=Q.slice(E+1),V=G==="xmlns"&&H;else H=Q,G=null,V=Q==="xmlns"&&"";if(z.localName=H,V!==!1){if(K==null)K={},iz(Y,Y={});Y[V]=K[V]=U,z.uri=OZ.XMLNS,Z.startPrefixMapping(V,U)}}var I=$.length;while(I--){z=$[I];var G=z.prefix;if(G){if(G==="xml")z.uri=OZ.XML;if(G!=="xmlns")z.uri=Y[G||""]}}var E=J.indexOf(":");if(E>0)G=$.prefix=J.slice(0,E),H=$.localName=J.slice(E+1);else G=null,H=$.localName=J;var w=$.uri=Y[G||""];if(Z.startElement(w,H,J,$),$.closed){if(Z.endElement(w,H,J),K){for(G in K)if(Object.prototype.hasOwnProperty.call(K,G))Z.endPrefixMapping(G)}}else return $.currentNSMap=Y,$.localNSMap=K,!0}function RF($,Z,Y,J,K){if(/^(?:script|textarea)$/i.test(Y)){var z=$.indexOf("",Z),Q=$.substring(Z+1,z);if(/[&<]/.test(Q)){if(/^script$/i.test(Y))return K.characters(Q,0,Q.length),z;return Q=Q.replace(/&#?\w+;/g,J),K.characters(Q,0,Q.length),z}}return Z+1}function IF($,Z,Y,J){var K=J[Y];if(K==null){if(K=$.lastIndexOf(""),K",Z+4);if(z>Z)return Y.comment($,Z+4,z-Z-4),z+3;else return J.error("Unclosed comment"),-1}else return-1;default:if($.substr(Z+3,6)=="CDATA["){var z=$.indexOf("]]>",Z+9);return Y.startCDATA(),Y.characters($,Z+9,z-Z-9),Y.endCDATA(),z+3}var Q=wF($,Z),U=Q.length;if(U>1&&/!doctype/i.test(Q[0][0])){var G=Q[1][0],H=!1,V=!1;if(U>3){if(/^public$/i.test(Q[2][0]))H=Q[3][0],V=U>4&&Q[4][0];else if(/^system$/i.test(Q[2][0]))V=Q[3][0]}var I=Q[U-1];return Y.startDTD(G,H,V),Y.endDTD(),I.index+I[0].length}}return-1}function AF($,Z,Y){var J=$.indexOf("?>",Z);if(J){var K=$.substring(Z,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(K){var z=K[0].length;return Y.processingInstruction(K[1],K[2]),J+2}else return-1}return-1}function sz(){this.attributeNames={}}sz.prototype={setTagName:function($){if(!cz.test($))throw Error("invalid tagName:"+$);this.tagName=$},addValue:function($,Z,Y){if(!cz.test($))throw Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:Z,offset:Y}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function wF($,Z){var Y,J=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;K.lastIndex=Z,K.exec($);while(Y=K.exec($))if(J.push(Y),Y[1])return J}BF.XMLReader=lz;BF.ParseError=B$});var $Q=A((NF)=>{var MF=zZ(),X8=M8(),rz=uz(),tz=nz(),LF=X8.DOMImplementation,az=MF.NAMESPACE,TF=tz.ParseError,XF=tz.XMLReader;function ez($){this.options=$||{locator:{}}}ez.prototype.parseFromString=function($,Z){var Y=this.options,J=new XF,K=Y.domBuilder||new RZ,z=Y.errorHandler,Q=Y.locator,U=Y.xmlns||{},G=/\/x?html?$/.test(Z),H=G?rz.HTML_ENTITIES:rz.XML_ENTITIES;if(Q)K.setDocumentLocator(Q);if(J.errorHandler=SF(z,K,Q),J.domBuilder=Y.domBuilder||K,G)U[""]=az.HTML;if(U.xml=U.xml||az.XML,$&&typeof $==="string")J.parse($,U,H);else J.errorHandler.error("invalid doc source");return K.doc};function SF($,Z,Y){if(!$){if(Z instanceof RZ)return Z;$=Z}var J={},K=$ instanceof Function;Y=Y||{};function z(Q){var U=$[Q];if(!U&&K)U=$.length==2?function(G){$(Q,G)}:$;J[Q]=U&&function(G){U("[xmldom "+Q+"]\t"+G+T8(Y))}||function(){}}return z("warning"),z("error"),z("fatalError"),J}function RZ(){this.cdata=!1}function C$($,Z){Z.lineNumber=$.lineNumber,Z.columnNumber=$.columnNumber}RZ.prototype={startDocument:function(){if(this.doc=new LF().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function($,Z,Y,J){var K=this.doc,z=K.createElementNS($,Y||Z),Q=J.length;D9(this,z),this.currentElement=z,this.locator&&C$(this.locator,z);for(var U=0;U=Z+Y||Z)return new java.lang.String($,Z,Y)+"";return $}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function($){RZ.prototype[$]=function(){return null}});function D9($,Z){if(!$.currentElement)$.doc.appendChild(Z);else $.currentElement.appendChild(Z)}NF.__DOMHandler=RZ;NF.DOMParser=ez;NF.DOMImplementation=X8.DOMImplementation;NF.XMLSerializer=X8.XMLSerializer});var IZ=A((xF)=>{var ZQ=M8();xF.DOMImplementation=ZQ.DOMImplementation;xF.XMLSerializer=ZQ.XMLSerializer;xF.DOMParser=$Q().DOMParser});var QQ=A((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.parse=void 0;var vF=IZ();function gF($){let J=new vF.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Workspace")throw Error("Invalid xcworkspacedata file: root element must be ");return hF(J)}KQ.parse=gF;function hF($){let Z={};Z.version=M9($,"version");let Y=L9($,"FileRef");if(Y.length>0)Z.fileRefs=Y.map(YQ);let J=L9($,"Group");if(J.length>0)Z.groups=J.map(JQ);return Z}function YQ($){return{location:M9($,"location")||""}}function JQ($){let Z={};Z.location=M9($,"location"),Z.name=M9($,"name");let Y=L9($,"FileRef");if(Y.length>0)Z.fileRefs=Y.map(YQ);let J=L9($,"Group");if(J.length>0)Z.groups=J.map(JQ);return Z}function M9($,Z){if(!$.hasAttribute(Z))return;return $.getAttribute(Z)??void 0}function L9($,Z){let Y=[],J=$.childNodes;for(let K=0;K{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.build=void 0;function uF($){let Z=[];Z.push('');let Y=[];if($.version!==void 0)Y.push(`version = "${$.version}"`);if(Y.length>0){Z.push("");if($.fileRefs)for(let J of $.fileRefs)Z.push(...GQ(J,1));if($.groups)for(let J of $.groups)Z.push(...UQ(J,1));return Z.push(""),Z.join(` `)+` -`}s6.build=s2;function p6($,Y){let Z=l6(Y);return[`${Z} -${Z}`]}function d6($,Y){let Z=[],J=l6(Y),K=[];if($.location!==void 0)K.push(`location = "${iY($.location)}"`);if($.name!==void 0)K.push(`name = "${iY($.name)}"`);Z.push(`${J}`),Z}function l6($){return" ".repeat($)}function iY($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var n6=C(($V)=>{$V.byteLength=r2;$V.toByteArray=n2;$V.fromByteArray=e2;var X1=[],G1=[],i2=typeof Uint8Array<"u"?Uint8Array:Array,rY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s1=0,aY=rY.length;s10)throw Error("Invalid string. Length must be a multiple of 4");var Z=$.indexOf("=");if(Z===-1)Z=Y;var J=Z===Y?0:4-Z%4;return[Z,J]}function r2($){var Y=a6($),Z=Y[0],J=Y[1];return(Z+J)*3/4-J}function a2($,Y,Z){return(Y+Z)*3/4-Z}function n2($){var Y,Z=a6($),J=Z[0],K=Z[1],z=new i2(a2($,J,K)),Q=0,W=K>0?J-4:J,G;for(G=0;G>16&255,z[Q++]=Y>>8&255,z[Q++]=Y&255;if(K===2)Y=G1[$.charCodeAt(G)]<<2|G1[$.charCodeAt(G+1)]>>4,z[Q++]=Y&255;if(K===1)Y=G1[$.charCodeAt(G)]<<10|G1[$.charCodeAt(G+1)]<<4|G1[$.charCodeAt(G+2)]>>2,z[Q++]=Y>>8&255,z[Q++]=Y&255;return z}function o2($){return X1[$>>18&63]+X1[$>>12&63]+X1[$>>6&63]+X1[$&63]}function t2($,Y,Z){var J,K=[];for(var z=Y;zW?W:Q+z));if(J===1)Y=$[Z-1],K.push(X1[Y>>2]+X1[Y<<4&63]+"==");else if(J===2)Y=($[Z-2]<<8)+$[Z-1],K.push(X1[Y>>10]+X1[Y>>4&63]+X1[Y<<2&63]+"=");return K.join("")}});var I1=C((o6,i1)=>{(function(){var $,Y,Z,J,K,z,Q,W={}.hasOwnProperty;$=function(G,...q){var H,R,P,w;if(K(Object.assign))Object.assign.apply(null,arguments);else for(H=0,P=q.length;H{(function(){var $;e6.exports=$=class{hasFeature(Z,J){return!0}createDocumentType(Z,J,K){throw Error("This DOM method is not implemented.")}createDocument(Z,J,K){throw Error("This DOM method is not implemented.")}createHTMLDocument(Z){throw Error("This DOM method is not implemented.")}getFeature(Z,J){throw Error("This DOM method is not implemented.")}}}).call(t6)});var ZK=C(($K,YK)=>{(function(){var $;YK.exports=$=class{constructor(){}handleError(Z){throw Error(Z)}}}).call($K)});var zK=C((JK,KK)=>{(function(){var $;KK.exports=$=function(){class Y{constructor(Z){this.arr=Z||[]}item(Z){return this.arr[Z]||null}contains(Z){return this.arr.indexOf(Z)!==-1}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.arr.length}}),Y}.call(this)}).call(JK)});var VK=C((QK,GK)=>{(function(){var $,Y,Z;Y=ZK(),Z=zK(),GK.exports=$=function(){class J{constructor(){var K;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Y,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=K=Object.create(this.defaultParams)}getParameter(K){if(this.params.hasOwnProperty(K))return this.params[K];else return null}canSetParameter(K,z){return!0}setParameter(K,z){if(z!=null)return this.params[K]=z;else return delete this.params[K]}}return Object.defineProperty(J.prototype,"parameterNames",{get:function(){return new Z(Object.keys(this.defaultParams))}}),J}.call(this)}).call(QK)});var i=C((WK,qK)=>{(function(){qK.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(WK)});var oY=C((HK,BK)=>{(function(){var $,Y,Z;$=i(),Z=Q1(),BK.exports=Y=function(){class J{constructor(K,z,Q){if(this.parent=K,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(z==null)throw Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(Q),this.type=$.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(K){return this.options.writer.attribute(this,this.options.writer.filterOptions(K))}debugInfo(K){if(K=K||this.name,K==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+K+"}, parent: <"+this.parent.name+">"}isEqualNode(K){if(K.namespaceURI!==this.namespaceURI)return!1;if(K.prefix!==this.prefix)return!1;if(K.localName!==this.localName)return!1;if(K.value!==this.value)return!1;return!0}}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(J.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(J.prototype,"textContent",{get:function(){return this.value},set:function(K){return this.value=K||""}}),Object.defineProperty(J.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(J.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(J.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(J.prototype,"specified",{get:function(){return!0}}),J}.call(this)}).call(HK)});var x$=C((FK,UK)=>{(function(){var $;UK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}getNamedItem(Z){return this.nodes[Z]}setNamedItem(Z){var J=this.nodes[Z.nodeName];return this.nodes[Z.nodeName]=Z,J||null}removeNamedItem(Z){var J=this.nodes[Z];return delete this.nodes[Z],J||null}item(Z){return this.nodes[Object.keys(this.nodes)[Z]]||null}getNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}setNamedItemNS(Z){throw Error("This DOM method is not implemented.")}removeNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(Y.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Y}.call(this)}).call(FK)});var N$=C((OK,RK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G={}.hasOwnProperty;({isObject:W,isFunction:Q,getValue:z}=I1()),K=Q1(),$=i(),Y=oY(),J=x$(),RK.exports=Z=function(){class q extends K{constructor(H,R,P){var w,I,T,X;super(H);if(R==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(R),this.type=$.Element,this.attribs={},this.schemaTypeInfo=null,P!=null)this.attribute(P);if(H.type===$.Document){if(this.isRoot=!0,this.documentObject=H,H.rootObject=this,H.children){X=H.children;for(I=0,T=X.length;I=w;R=0<=w?++P:--P)if(!this.attribs[R].isEqualNode(H.attribs[R]))return!1;return!0}}return Object.defineProperty(q.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(q.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(q.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes)this.attributeMap=new J(this.attribs);return this.attributeMap}}),q}.call(this)}).call(OK)});var a0=C((PK,AK)=>{(function(){var $,Y;Y=Q1(),AK.exports=$=function(){class Z extends Y{constructor(J){super(J);this.value=""}clone(){return Object.create(this)}substringData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(J){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(J,K,z){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(J){if(!super.isEqualNode(J))return!1;if(J.data!==this.data)return!1;return!0}}return Object.defineProperty(Z.prototype,"data",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Object.defineProperty(Z.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Z}.call(this)}).call(PK)});var y$=C((EK,CK)=>{(function(){var $,Y,Z;$=i(),Z=a0(),CK.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=$.CData,this.value=this.stringify.cdata(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.cdata(this,this.options.writer.filterOptions(K))}}}).call(EK)});var b$=C((wK,jK)=>{(function(){var $,Y,Z;$=i(),Y=a0(),jK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=$.Comment,this.value=this.stringify.comment(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.comment(this,this.options.writer.filterOptions(K))}}}).call(wK)});var g$=C((kK,XK)=>{(function(){var $,Y,Z,J;({isObject:J}=I1()),Z=Q1(),$=i(),XK.exports=Y=class extends Z{constructor(z,Q,W,G){super(z);if(J(Q))({version:Q,encoding:W,standalone:G}=Q);if(!Q)Q="1.0";if(this.type=$.Declaration,this.version=this.stringify.xmlVersion(Q),W!=null)this.encoding=this.stringify.xmlEncoding(W);if(G!=null)this.standalone=this.stringify.xmlStandalone(G)}toString(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))}}}).call(kK)});var f$=C((IK,_K)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),_K.exports=Y=class extends Z{constructor(K,z,Q,W,G,q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(Q==null)throw Error("Missing DTD attribute name. "+this.debugInfo(z));if(!W)throw Error("Missing DTD attribute type. "+this.debugInfo(z));if(!G)throw Error("Missing DTD attribute default. "+this.debugInfo(z));if(G.indexOf("#")!==0)G="#"+G;if(!G.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(q&&!G.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));if(this.elementName=this.stringify.name(z),this.type=$.AttributeDeclaration,this.attributeName=this.stringify.name(Q),this.attributeType=this.stringify.dtdAttType(W),q)this.defaultValue=this.stringify.dtdAttDefault(q);this.defaultValueType=G}toString(K){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(K))}}}).call(IK)});var h$=C((DK,TK)=>{(function(){var $,Y,Z,J;({isObject:J}=I1()),Z=Q1(),$=i(),TK.exports=Y=function(){class K extends Z{constructor(z,Q,W,G){super(z);if(W==null)throw Error("Missing DTD entity name. "+this.debugInfo(W));if(G==null)throw Error("Missing DTD entity value. "+this.debugInfo(W));if(this.pe=!!Q,this.name=this.stringify.name(W),this.type=$.EntityDeclaration,!J(G))this.value=this.stringify.dtdEntityValue(G),this.internal=!0;else{if(!G.pubID&&!G.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(W));if(G.pubID&&!G.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(W));if(this.internal=!1,G.pubID!=null)this.pubID=this.stringify.dtdPubID(G.pubID);if(G.sysID!=null)this.sysID=this.stringify.dtdSysID(G.sysID);if(G.nData!=null)this.nData=this.stringify.dtdNData(G.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(W))}}toString(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))}}return Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(K.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlVersion",{get:function(){return null}}),K}.call(this)}).call(DK)});var v$=C((SK,MK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),MK.exports=Y=class extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!Q)Q="(#PCDATA)";if(Array.isArray(Q))Q="("+Q.join(",")+")";this.name=this.stringify.name(z),this.type=$.ElementDeclaration,this.value=this.stringify.dtdElementValue(Q)}toString(K){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(K))}}}).call(SK)});var u$=C((LK,xK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),xK.exports=Y=function(){class J extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD notation name. "+this.debugInfo(z));if(!Q.pubID&&!Q.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));if(this.name=this.stringify.name(z),this.type=$.NotationDeclaration,Q.pubID!=null)this.pubID=this.stringify.dtdPubID(Q.pubID);if(Q.sysID!=null)this.sysID=this.stringify.dtdSysID(Q.sysID)}toString(K){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(K))}}return Object.defineProperty(J.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(J.prototype,"systemId",{get:function(){return this.sysID}}),J}.call(this)}).call(LK)});var m$=C((NK,yK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({isObject:G}=I1()),W=Q1(),$=i(),Y=f$(),J=h$(),Z=v$(),K=u$(),Q=x$(),yK.exports=z=function(){class q extends W{constructor(H,R,P){var w,I,T,X;super(H);if(this.type=$.DocType,H.children){X=H.children;for(I=0,T=X.length;I{(function(){var $,Y,Z;$=i(),Y=Q1(),gK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing raw text. "+this.debugInfo());this.type=$.Raw,this.value=this.stringify.raw(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.raw(this,this.options.writer.filterOptions(K))}}}).call(bK)});var p$=C((fK,hK)=>{(function(){var $,Y,Z;$=i(),Y=a0(),hK.exports=Z=function(){class J extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=$.Text,this.value=this.stringify.text(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.text(this,this.options.writer.filterOptions(K))}splitText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(J.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(J.prototype,"wholeText",{get:function(){var K,z,Q;Q="",z=this.previousSibling;while(z)Q=z.data+Q,z=z.previousSibling;Q+=this.data,K=this.nextSibling;while(K)Q=Q+K.data,K=K.nextSibling;return Q}}),J}.call(this)}).call(fK)});var d$=C((vK,uK)=>{(function(){var $,Y,Z;$=i(),Y=a0(),uK.exports=Z=class extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.type=$.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,Q)this.value=this.stringify.insValue(Q)}clone(){return Object.create(this)}toString(K){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(K))}isEqualNode(K){if(!super.isEqualNode(K))return!1;if(K.target!==this.target)return!1;return!0}}}).call(vK)});var tY=C((mK,cK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),cK.exports=Y=class extends Z{constructor(K){super(K);this.type=$.Dummy}clone(){return Object.create(this)}toString(K){return""}}}).call(mK)});var lK=C((pK,dK)=>{(function(){var $;dK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}item(Z){return this.nodes[Z]||null}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.nodes.length||0}}),Y}.call(this)}).call(pK)});var rK=C((sK,iK)=>{(function(){iK.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(sK)});var Q1=C((aK,nK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,w,I,T,X,D,y={}.hasOwnProperty,O=[].splice;({isObject:D,isFunction:X,isEmpty:T,getValue:I}=I1()),W=null,Z=null,J=null,K=null,z=null,P=null,w=null,R=null,Q=null,Y=null,H=null,G=null,$=null,nK.exports=q=function(){class B{constructor(V){if(this.parent=V,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.value=null,this.children=[],this.baseURI=null,!W)W=N$(),Z=y$(),J=b$(),K=g$(),z=m$(),P=c$(),w=p$(),R=d$(),Q=tY(),Y=i(),H=lK(),G=x$(),$=rK()}setParent(V){var U,E,k,F,A;if(this.parent=V,V)this.options=V.options,this.stringify=V.stringify;F=this.children,A=[];for(E=0,k=F.length;E";else if(!((E=this.parent)!=null?E.name:void 0))return"node: <"+V+">";else return"node: <"+V+">, parent: <"+this.parent.name+">"}ele(V,U,E){return this.element(V,U,E)}nod(V,U,E){return this.node(V,U,E)}txt(V){return this.text(V)}dat(V){return this.cdata(V)}com(V){return this.comment(V)}ins(V,U){return this.instruction(V,U)}doc(){return this.document()}dec(V,U,E){return this.declaration(V,U,E)}e(V,U,E){return this.element(V,U,E)}n(V,U,E){return this.node(V,U,E)}t(V){return this.text(V)}d(V){return this.cdata(V)}c(V){return this.comment(V)}r(V){return this.raw(V)}i(V,U){return this.instruction(V,U)}u(){return this.up()}importXMLBuilder(V){return this.importDocument(V)}attribute(V,U){throw Error("attribute() applies to element nodes only.")}att(V,U){return this.attribute(V,U)}a(V,U){return this.attribute(V,U)}removeAttribute(V){throw Error("attribute() applies to element nodes only.")}replaceChild(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(V,U){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(V){var U,E;if(U=this,U===V)return 0;else if(this.document()!==V.document()){if(E=$.Disconnected|$.ImplementationSpecific,Math.random()<0.5)E|=$.Preceding;else E|=$.Following;return E}else if(U.isAncestor(V))return $.Contains|$.Preceding;else if(U.isDescendant(V))return $.Contains|$.Following;else if(U.isPreceding(V))return $.Preceding;else return $.Following}isSameNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(V){var U,E,k;if(V.nodeType!==this.nodeType)return!1;if(V.children.length!==this.children.length)return!1;for(U=E=0,k=this.children.length-1;0<=k?E<=k:E>=k;U=0<=k?++E:--E)if(!this.children[U].isEqualNode(V.children[U]))return!1;return!0}getFeature(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(V,U,E){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(V){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(V){if(!V)return!1;return V===this||this.isDescendant(V)}isDescendant(V){var U,E,k,F,A;A=this.children;for(k=0,F=A.length;kE}treePosition(V){var U,E;if(E=0,U=!1,this.foreachTreeNode(this.document(),function(k){if(E++,!U&&k===V)return U=!0}),U)return E;else return-1}foreachTreeNode(V,U){var E,k,F,A,j;V||(V=this.document()),A=V.children;for(k=0,F=A.length;k{(function(){var $,Y={}.hasOwnProperty;tK.exports=$=function(){class Z{constructor(J){var K,z,Q;if(this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),J||(J={}),this.options=J,!this.options.version)this.options.version="1.0";z=J.stringify||{};for(K in z){if(!Y.call(z,K))continue;Q=z[K],this[K]=Q}}name(J){if(this.options.noValidation)return J;return this.assertLegalName(""+J||"")}text(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.textEscape(""+J||""))}cdata(J){if(this.options.noValidation)return J;return J=""+J||"",J=J.replace("]]>","]]]]>"),this.assertLegalChar(J)}comment(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/--/))throw Error("Comment text cannot contain double-hypen: "+J);return this.assertLegalChar(J)}raw(J){if(this.options.noValidation)return J;return""+J||""}attValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.attEscape(J=""+J||""))}insTarget(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}insValue(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/\?>/))throw Error("Invalid processing instruction value: "+J);return this.assertLegalChar(J)}xmlVersion(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/1\.[0-9]+/))throw Error("Invalid version number: "+J);return J}xmlEncoding(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+J);return this.assertLegalChar(J)}xmlStandalone(J){if(this.options.noValidation)return J;if(J)return"yes";else return"no"}dtdPubID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdSysID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdElementValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttType(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttDefault(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdEntityValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdNData(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}assertLegalChar(J){var K,z;if(this.options.noValidation)return J;if(K="",this.options.version==="1.0"){if(K=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}else if(this.options.version==="1.1"){if(K=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}return J}assertLegalName(J){var K;if(this.options.noValidation)return J;if(this.assertLegalChar(J),K=/^([: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])*$/,!J.match(K))throw Error("Invalid character in name");return J}textEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(//g,">").replace(/\r/g," ")}attEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(/{(function(){$z.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(eK)});var $Z=C((Yz,Zz)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,w,I,T,X,D={}.hasOwnProperty;({assign:X}=I1()),$=i(),G=g$(),q=m$(),Z=y$(),J=b$(),R=N$(),w=c$(),I=p$(),P=d$(),H=tY(),K=f$(),z=v$(),Q=h$(),W=u$(),Y=n0(),Zz.exports=T=class{constructor(O){var B,V,U;O||(O={}),this.options=O,V=O.writer||{};for(B in V){if(!D.call(V,B))continue;U=V[B],this["_"+B]=this[B],this[B]=U}}filterOptions(O){var B,V,U,E,k,F,A,j,S;if(O||(O={}),O=X({},this.options,O),B={writer:this},B.pretty=O.pretty||!1,B.allowEmpty=O.allowEmpty||!1,B.indent=(V=O.indent)!=null?V:" ",B.newline=(U=O.newline)!=null?U:` -`,B.offset=(E=O.offset)!=null?E:0,B.width=(k=O.width)!=null?k:0,B.dontPrettyTextNodes=(F=(A=O.dontPrettyTextNodes)!=null?A:O.dontprettytextnodes)!=null?F:0,B.spaceBeforeSlash=(j=(S=O.spaceBeforeSlash)!=null?S:O.spacebeforeslash)!=null?j:"",B.spaceBeforeSlash===!0)B.spaceBeforeSlash=" ";return B.suppressPrettyCount=0,B.user={},B.state=Y.None,B}indent(O,B,V){var U;if(!B.pretty||B.suppressPrettyCount)return"";else if(B.pretty){if(U=(V||0)+B.offset+1,U>0)return Array(U).join(B.indent)}return""}endline(O,B,V){if(!B.pretty||B.suppressPrettyCount)return"";else return B.newline}attribute(O,B,V){var U;if(this.openAttribute(O,B,V),B.pretty&&B.width>0)U=O.name+'="'+O.value+'"';else U=" "+O.name+'="'+O.value+'"';return this.closeAttribute(O,B,V),U}cdata(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}comment(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}declaration(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}docType(O,B,V){var U,E,k,F,A;if(V||(V=0),this.openNode(O,B,V),B.state=Y.OpenTag,F=this.indent(O,B,V),F+="0){F+=" [",F+=this.endline(O,B,V),B.state=Y.InsideTag,A=O.children;for(E=0,k=A.length;E",F+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),F}element(O,B,V){var U,E,k,F,A,j,S,M,h,c,_,L,p,u1,t0,e0,r$,a$,Q0;if(V||(V=0),L=!1,this.openNode(O,B,V),B.state=Y.OpenTag,p=this.indent(O,B,V)+"<"+O.name,B.pretty&&B.width>0){M=p.length,t0=O.attribs;for(_ in t0){if(!D.call(t0,_))continue;if(U=t0[_],u1=this.attribute(U,B,V),E=u1.length,M+E>B.width)Q0=this.indent(O,B,V+1)+u1,p+=this.endline(O,B,V)+Q0,M=Q0.length;else Q0=" "+u1,p+=Q0,M+=Q0.length}}else{e0=O.attribs;for(_ in e0){if(!D.call(e0,_))continue;U=e0[_],p+=this.attribute(U,B,V)}}if(F=O.children.length,A=F===0?null:O.children[0],F===0||O.children.every(function(n$){return(n$.type===$.Text||n$.type===$.Raw)&&n$.value===""}))if(B.allowEmpty)p+=">",B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else B.state=Y.CloseTag,p+=B.spaceBeforeSlash+"/>"+this.endline(O,B,V);else if(B.pretty&&F===1&&(A.type===$.Text||A.type===$.Raw)&&A.value!=null)p+=">",B.state=Y.InsideTag,B.suppressPrettyCount++,L=!0,p+=this.writeChildNode(A,B,V+1),B.suppressPrettyCount--,L=!1,B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else{if(B.dontPrettyTextNodes){r$=O.children;for(j=0,h=r$.length;j"+this.endline(O,B,V),B.state=Y.InsideTag,a$=O.children;for(S=0,c=a$.length;S",L)B.suppressPrettyCount--;p+=this.endline(O,B,V),B.state=Y.None}return this.closeNode(O,B,V),p}writeChildNode(O,B,V){switch(O.type){case $.CData:return this.cdata(O,B,V);case $.Comment:return this.comment(O,B,V);case $.Element:return this.element(O,B,V);case $.Raw:return this.raw(O,B,V);case $.Text:return this.text(O,B,V);case $.ProcessingInstruction:return this.processingInstruction(O,B,V);case $.Dummy:return"";case $.Declaration:return this.declaration(O,B,V);case $.DocType:return this.docType(O,B,V);case $.AttributeDeclaration:return this.dtdAttList(O,B,V);case $.ElementDeclaration:return this.dtdElement(O,B,V);case $.EntityDeclaration:return this.dtdEntity(O,B,V);case $.NotationDeclaration:return this.dtdNotation(O,B,V);default:throw Error("Unknown XML node type: "+O.constructor.name)}}processingInstruction(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}raw(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}text(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdAttList(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdElement(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdEntity(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdNotation(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}openNode(O,B,V){}closeNode(O,B,V){}openAttribute(O,B,V){}closeAttribute(O,B,V){}}}).call(Yz)});var l$=C((Jz,Kz)=>{(function(){var $,Y;Y=$Z(),Kz.exports=$=class extends Y{constructor(J){super(J)}document(J,K){var z,Q,W,G,q;K=this.filterOptions(K),G="",q=J.children;for(Q=0,W=q.length;Q{(function(){var $,Y,Z,J,K,z,Q,W;({isPlainObject:W}=I1()),Z=nY(),Y=VK(),K=Q1(),$=i(),Q=eY(),z=l$(),Qz.exports=J=function(){class G extends K{constructor(q){super(null);if(this.name="#document",this.type=$.Document,this.documentURI=null,this.domConfig=new Y,q||(q={}),!q.writer)q.writer=new z;this.options=q,this.stringify=new Q(q)}end(q){var H={};if(!q)q=this.options.writer;else if(W(q))H=q,q=this.options.writer;return q.document(this,q.filterOptions(H))}toString(q){return this.options.writer.document(this,this.options.writer.filterOptions(q))}createElement(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(q){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(q){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(G.prototype,"implementation",{value:new Z}),Object.defineProperty(G.prototype,"doctype",{get:function(){var q,H,R,P;P=this.children;for(H=0,R=P.length;H{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,w,I,T,X,D,y,O,B,V,U,E={}.hasOwnProperty;({isObject:V,isFunction:B,isPlainObject:U,getValue:O}=I1()),$=i(),R=YZ(),w=N$(),J=y$(),K=b$(),T=c$(),y=p$(),I=d$(),q=g$(),H=m$(),z=f$(),W=h$(),Q=v$(),G=u$(),Z=oY(),D=eY(),X=l$(),Y=n0(),Vz.exports=P=class{constructor(F,A,j){var S;if(this.name="?xml",this.type=$.Document,F||(F={}),S={},!F.writer)F.writer=new X;else if(U(F.writer))S=F.writer,F.writer=new X;this.options=F,this.writer=F.writer,this.writerOptions=this.writer.filterOptions(S),this.stringify=new D(F),this.onDataCallback=A||function(){},this.onEndCallback=j||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(F){var A,j,S,M,h,c,_,L;switch(F.type){case $.CData:this.cdata(F.value);break;case $.Comment:this.comment(F.value);break;case $.Element:S={},_=F.attribs;for(j in _){if(!E.call(_,j))continue;A=_[j],S[j]=A.value}this.node(F.name,S);break;case $.Dummy:this.dummy();break;case $.Raw:this.raw(F.value);break;case $.Text:this.text(F.value);break;case $.ProcessingInstruction:this.instruction(F.target,F.value);break;default:throw Error("This XML node type is not supported in a JS object: "+F.constructor.name)}L=F.children;for(h=0,c=L.length;h=0)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(F){var A,j,S,M;if(!F.isOpen){if(!this.root&&this.currentLevel===0&&F.type===$.Element)this.root=F;if(j="",F.type===$.Element){this.writerOptions.state=Y.OpenTag,j=this.writer.indent(F,this.writerOptions,this.currentLevel)+"<"+F.name,M=F.attribs;for(S in M){if(!E.call(M,S))continue;A=M[S],j+=this.writer.attribute(A,this.writerOptions,this.currentLevel)}j+=(F.children?">":"/>")+this.writer.endline(F,this.writerOptions,this.currentLevel),this.writerOptions.state=Y.InsideTag}else{if(this.writerOptions.state=Y.OpenTag,j=this.writer.indent(F,this.writerOptions,this.currentLevel)+"";j+=this.writer.endline(F,this.writerOptions,this.currentLevel)}return this.onData(j,this.currentLevel),F.isOpen=!0}}closeNode(F){var A;if(!F.isClosed){if(A="",this.writerOptions.state=Y.CloseTag,F.type===$.Element)A=this.writer.indent(F,this.writerOptions,this.currentLevel)+""+this.writer.endline(F,this.writerOptions,this.currentLevel);else A=this.writer.indent(F,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(F,this.writerOptions,this.currentLevel);return this.writerOptions.state=Y.None,this.onData(A,this.currentLevel),F.isClosed=!0}}onData(F,A){return this.documentStarted=!0,this.onDataCallback(F,A+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(F){if(F==null)return"";else return"node: <"+F+">"}ele(){return this.element(...arguments)}nod(F,A,j){return this.node(F,A,j)}txt(F){return this.text(F)}dat(F){return this.cdata(F)}com(F){return this.comment(F)}ins(F,A){return this.instruction(F,A)}dec(F,A,j){return this.declaration(F,A,j)}dtd(F,A,j){return this.doctype(F,A,j)}e(F,A,j){return this.element(F,A,j)}n(F,A,j){return this.node(F,A,j)}t(F){return this.text(F)}d(F){return this.cdata(F)}c(F){return this.comment(F)}r(F){return this.raw(F)}i(F,A){return this.instruction(F,A)}att(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}a(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}ent(F,A){return this.entity(F,A)}pent(F,A){return this.pEntity(F,A)}not(F,A){return this.notation(F,A)}}}).call(Gz)});var Bz=C((qz,Hz)=>{(function(){var $,Y,Z,J,K={}.hasOwnProperty;$=i(),J=$Z(),Y=n0(),Hz.exports=Z=class extends J{constructor(Q,W){super(W);this.stream=Q}endline(Q,W,G){if(Q.isLastRootNode&&W.state===Y.CloseTag)return"";else return super.endline(Q,W,G)}document(Q,W){var G,q,H,R,P,w,I,T,X;I=Q.children;for(q=H=0,P=I.length;H0){this.stream.write(" ["),this.stream.write(this.endline(Q,W,G)),W.state=Y.InsideTag,P=Q.children;for(H=0,R=P.length;H"),this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}element(Q,W,G){var q,H,R,P,w,I,T,X,D,y,O,B,V,U,E,k;if(G||(G=0),this.openNode(Q,W,G),W.state=Y.OpenTag,O=this.indent(Q,W,G)+"<"+Q.name,W.pretty&&W.width>0){T=O.length,V=Q.attribs;for(D in V){if(!K.call(V,D))continue;if(q=V[D],B=this.attribute(q,W,G),H=B.length,T+H>W.width)k=this.indent(Q,W,G+1)+B,O+=this.endline(Q,W,G)+k,T=k.length;else k=" "+B,O+=k,T+=k.length}}else{U=Q.attribs;for(D in U){if(!K.call(U,D))continue;q=U[D],O+=this.attribute(q,W,G)}}if(this.stream.write(O),P=Q.children.length,w=P===0?null:Q.children[0],P===0||Q.children.every(function(F){return(F.type===$.Text||F.type===$.Raw)&&F.value===""}))if(W.allowEmpty)this.stream.write(">"),W.state=Y.CloseTag,this.stream.write("");else W.state=Y.CloseTag,this.stream.write(W.spaceBeforeSlash+"/>");else if(W.pretty&&P===1&&(w.type===$.Text||w.type===$.Raw)&&w.value!=null)this.stream.write(">"),W.state=Y.InsideTag,W.suppressPrettyCount++,y=!0,this.writeChildNode(w,W,G+1),W.suppressPrettyCount--,y=!1,W.state=Y.CloseTag,this.stream.write("");else{this.stream.write(">"+this.endline(Q,W,G)),W.state=Y.InsideTag,E=Q.children;for(I=0,X=E.length;I")}return this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}processingInstruction(Q,W,G){return this.stream.write(super.processingInstruction(Q,W,G))}raw(Q,W,G){return this.stream.write(super.raw(Q,W,G))}text(Q,W,G){return this.stream.write(super.text(Q,W,G))}dtdAttList(Q,W,G){return this.stream.write(super.dtdAttList(Q,W,G))}dtdElement(Q,W,G){return this.stream.write(super.dtdElement(Q,W,G))}dtdEntity(Q,W,G){return this.stream.write(super.dtdEntity(Q,W,G))}dtdNotation(Q,W,G){return this.stream.write(super.dtdNotation(Q,W,G))}}}).call(qz)});var Uz=C((Fz,r1)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({assign:W,isFunction:G}=I1()),Z=nY(),J=YZ(),K=Wz(),Q=l$(),z=Bz(),$=i(),Y=n0(),Fz.create=function(q,H,R,P){var w,I;if(q==null)throw Error("Root element needs a name.");if(P=W({},H,R,P),w=new J(P),I=w.element(q),!P.headless){if(w.declaration(P),P.pubID!=null||P.sysID!=null)w.dtd(P)}return I},Fz.begin=function(q,H,R){if(G(q))[H,R]=[q,H],q={};if(H)return new K(q,H,R);else return new J(q)},Fz.stringWriter=function(q){return new Q(q)},Fz.streamWriter=function(q,H){return new z(q,H)},Fz.implementation=new Z,Fz.nodeType=$,Fz.writerState=Y}).call(Fz)});var Az=C((C0)=>{var Pz=C0&&C0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(C0,"__esModule",{value:!0});C0.build=void 0;var Oz=Pz(n6()),KV=Pz(Uz());function zV($){function Y(Z){return Z<10?"0"+Z:Z}return $.getUTCFullYear()+"-"+Y($.getUTCMonth()+1)+"-"+Y($.getUTCDate())+"T"+Y($.getUTCHours())+":"+Y($.getUTCMinutes())+":"+Y($.getUTCSeconds())+"Z"}var QV=Object.prototype.toString;function Rz($){let Y=QV.call($).match(/\[object (.*)\]/);return Y?Y[1]:Y}function GV($,Y){let Z={version:"1.0",encoding:"UTF-8"},J={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},K=KV.default.create("plist");if(K.dec(Z.version,Z.encoding,Z.standalone),K.dtd(J.pubid,J.sysid),K.att("version","1.0"),ZZ($,K),!Y)Y={};return Y.pretty=Y.pretty!==!1,K.end(Y)}C0.build=GV;function ZZ($,Y){let Z,J,K,z=Rz($);if(z=="Undefined");else if(Array.isArray($)){Y=Y.ele("array");for(J=0;J<$.length;J++)ZZ($[J],Y)}else if(Buffer.isBuffer($))Y.ele("data").raw($.toString("base64"));else if(z=="Object"){Y=Y.ele("dict");for(K in $)if($.hasOwnProperty(K)&&$[K]!==void 0)Y.ele("key").txt(K),ZZ($[K],Y)}else if(z=="Number")Z=$%1===0?"integer":"real",Y.ele(Z).txt($.toString());else if(z=="Date")Y.ele("date").txt(zV(new Date($)));else if(z=="Boolean")Y.ele($?"true":"false");else if(z=="String")Y.ele("string").txt($);else if(z=="ArrayBuffer")Y.ele("data").raw(Oz.default.fromByteArray($));else if($&&$.buffer&&Rz($.buffer)=="ArrayBuffer")Y.ele("data").raw(Oz.default.fromByteArray(new Uint8Array($.buffer)))}});var Cz=C((k0)=>{var VV=k0&&k0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(k0,"__esModule",{value:!0});k0.parse=void 0;var WV=S$(),w0=VV(_1("assert")),s$=3,Ez=4,qV=8;function JZ($){return $.nodeType===s$||$.nodeType===qV||$.nodeType===Ez}function h1($){return!$.childNodes||$.childNodes.length===0}function HV($){let Y=new WV.DOMParser({errorHandler(){}}).parseFromString($);w0.default(Y.documentElement.nodeName==="plist","malformed document. First element should be ");let Z=j0(Y.documentElement);if(Z.length==1)Z=Z[0];return Z}k0.parse=HV;function j0($){let Y,Z,J,K,z,Q;if(!$)return null;if($.nodeName==="plist"){if(K=[],h1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!JZ($.childNodes[Y]))K.push(j0($.childNodes[Y]));return K}else if($.nodeName==="dict"){if(Z={},J=null,Q=0,h1($))return Z;for(Y=0;Y<$.childNodes.length;Y++){if(JZ($.childNodes[Y]))continue;if(Q%2===0)w0.default($.childNodes[Y].nodeName==="key","Missing key while parsing ."),J=j0($.childNodes[Y]);else w0.default($.childNodes[Y].nodeName!=="key",'Unexpected key "'+j0($.childNodes[Y])+'" while parsing .'),Z[J]=j0($.childNodes[Y]);Q+=1}if(Q%2===1)throw Error('Missing value for "'+J+'" while parsing ');return Z}else if($.nodeName==="array"){if(K=[],h1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!JZ($.childNodes[Y])){if(z=j0($.childNodes[Y]),z!=null)K.push(z)}return K}else if($.nodeName==="#text");else if($.nodeName==="key"){if(h1($))return"";return $.childNodes[0].nodeValue}else if($.nodeName==="string"){if(z="",h1($))return z;for(Y=0;Y<$.childNodes.length;Y++){let W=$.childNodes[Y].nodeType;if(W===s$||W===Ez)z+=$.childNodes[Y].nodeValue}return z}else if($.nodeName==="integer")return w0.default(!h1($),'Cannot parse "" as integer.'),parseInt($.childNodes[0].nodeValue,10);else if($.nodeName==="real"){w0.default(!h1($),'Cannot parse "" as real.'),z="";for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue;return parseFloat(z)}else if($.nodeName==="data"){if(z="",h1($))return Buffer.from(z,"base64");for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue.replace(/\s+/g,"");return Buffer.from(z,"base64")}else if($.nodeName==="date")return w0.default(!h1($),'Cannot parse "" as Date.'),new Date($.childNodes[0].nodeValue);else if($.nodeName==="true")return!0;else if($.nodeName==="false")return!1}});var KZ=C((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});var BV=Az(),FV=Cz();wz.default={parse:FV.parse,build:BV.build}});var kz=C((a1)=>{var OV=a1&&a1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(a1,"__esModule",{value:!0});a1.buildChecks=a1.parseChecks=void 0;var jz=OV(KZ());function RV($){let Y=jz.default.parse($),Z={};for(let[J,K]of Object.entries(Y))if(typeof K==="boolean")Z[J]=K;return Z}a1.parseChecks=RV;function PV($){let Y={};for(let[Z,J]of Object.entries($))if(typeof J==="boolean")Y[Z]=J;return jz.default.build(Y)}a1.buildChecks=PV});var Iz=C((Xz)=>{Object.defineProperty(Xz,"__esModule",{value:!0})});var Dz=C((t)=>{var AV=t&&t.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),EV=t&&t.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))AV(Y,$,Z)};Object.defineProperty(t,"__esModule",{value:!0});t.buildChecks=t.parseChecks=t.build=t.parse=void 0;var CV=c6();Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return CV.parse}});var wV=r6();Object.defineProperty(t,"build",{enumerable:!0,get:function(){return wV.build}});var _z=kz();Object.defineProperty(t,"parseChecks",{enumerable:!0,get:function(){return _z.parseChecks}});Object.defineProperty(t,"buildChecks",{enumerable:!0,get:function(){return _z.buildChecks}});EV(Iz(),t)});var Lz=C((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.parse=void 0;var jV=S$();function kV($){let J=new jV.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Scheme")throw Error("Invalid xcscheme file: root element must be ");return XV(J)}Sz.parse=kV;function XV($){let Y={};Y.version=N($,"version"),Y.lastUpgradeVersion=N($,"LastUpgradeVersion");let Z=b($,"BuildAction");if(Z)Y.buildAction=IV(Z);let J=b($,"TestAction");if(J)Y.testAction=SV(J);let K=b($,"LaunchAction");if(K)Y.launchAction=xV(K);let z=b($,"ProfileAction");if(z)Y.profileAction=gV(z);let Q=b($,"AnalyzeAction");if(Q)Y.analyzeAction=fV(Q);let W=b($,"ArchiveAction");if(W)Y.archiveAction=hV(W);return Y}function IV($){let Y={};Y.parallelizeBuildables=v($,"parallelizeBuildables"),Y.buildImplicitDependencies=v($,"buildImplicitDependencies"),Y.runPostActionsOnFailure=v($,"runPostActionsOnFailure"),Y.buildArchitectures=N($,"buildArchitectures");let Z=b($,"BuildActionEntries");if(Z)Y.entries=n1(Z,"BuildActionEntry").map(_V);return Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function _V($){let Y={};Y.buildForRunning=v($,"buildForRunning"),Y.buildForTesting=v($,"buildForTesting"),Y.buildForProfiling=v($,"buildForProfiling"),Y.buildForArchiving=v($,"buildForArchiving"),Y.buildForAnalyzing=v($,"buildForAnalyzing");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function Z0($){return{buildableIdentifier:N($,"BuildableIdentifier")||"primary",blueprintIdentifier:N($,"BlueprintIdentifier")||"",buildableName:N($,"BuildableName")||"",blueprintName:N($,"BlueprintName")||"",referencedContainer:N($,"ReferencedContainer")||""}}function V1($,Y){let Z=b($,Y);if(!Z)return;let J=n1(Z,"ExecutionAction");if(J.length===0)return;return J.map(DV)}function DV($){let Y={};Y.actionType=N($,"ActionType");let Z=b($,"ActionContent");if(Z)Y.actionContent=TV(Z);return Y}function TV($){let Y={};Y.title=N($,"title"),Y.scriptText=N($,"scriptText"),Y.shellToInvoke=N($,"shellToInvoke");let Z=b($,"EnvironmentBuildable");if(Z){let J=b(Z,"BuildableReference");if(J)Y.environmentBuildable=Z0(J)}return Y}function SV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.shouldAutocreateTestPlan=v($,"shouldAutocreateTestPlan"),Y.preferredScreenCaptureFormat=N($,"preferredScreenCaptureFormat"),Y.codeCoverageEnabled=v($,"codeCoverageEnabled"),Y.onlyGenerateCoverageForSpecifiedTargets=v($,"onlyGenerateCoverageForSpecifiedTargets");let Z=b($,"Testables");if(Z)Y.testables=n1(Z,"TestableReference").map(MV);let J=b($,"TestPlans");if(J)Y.testPlans=n1(J,"TestPlanReference").map(LV);let K=b($,"MacroExpansion");if(K){let z=b(K,"BuildableReference");if(z)Y.macroExpansion=Z0(z)}return Y.commandLineArguments=zZ($),Y.environmentVariables=QZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function MV($){let Y={};Y.skipped=v($,"skipped"),Y.parallelizable=v($,"parallelizable"),Y.useTestSelectionWhitelist=v($,"useTestSelectionWhitelist");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);let J=b($,"SkippedTests");if(J)Y.skippedTests=n1(J,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));let K=b($,"SelectedTests");if(K)Y.selectedTests=n1(K,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));return Y}function LV($){return{reference:N($,"reference")||"",default:v($,"default")}}function xV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.launchStyle=N($,"launchStyle"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.customWorkingDirectory=N($,"customWorkingDirectory"),Y.ignoresPersistentStateOnLaunch=v($,"ignoresPersistentStateOnLaunch"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.debugServiceExtension=N($,"debugServiceExtension"),Y.allowLocationSimulation=v($,"allowLocationSimulation"),Y.customLaunchCommand=N($,"customLaunchCommand"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Tz(Z);let J=b($,"RemoteRunnable");if(J)Y.remoteRunnable=NV(J);let K=b($,"MacroExpansion");if(K){let W=b(K,"BuildableReference");if(W)Y.macroExpansion=Z0(W)}let z=b($,"LocationScenarioReference");if(z)Y.locationScenarioReference=yV(z);let Q=b($,"StoreKitConfigurationFileReference");if(Q)Y.storeKitConfigurationFileReference=bV(Q);return Y.commandLineArguments=zZ($),Y.environmentVariables=QZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function Tz($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function NV($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode"),Y.bundleIdentifier=N($,"BundleIdentifier"),Y.remotePath=N($,"RemotePath");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function yV($){return{identifier:N($,"identifier"),referenceType:N($,"referenceType")}}function bV($){return{identifier:N($,"identifier")}}function gV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.savedToolIdentifier=N($,"savedToolIdentifier"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Tz(Z);return Y.commandLineArguments=zZ($),Y.environmentVariables=QZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function fV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function hV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.customArchiveName=N($,"customArchiveName"),Y.revealArchiveInOrganizer=v($,"revealArchiveInOrganizer"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function zZ($){let Y=b($,"CommandLineArguments");if(!Y)return;let Z=n1(Y,"CommandLineArgument");if(Z.length===0)return;return Z.map((J)=>({argument:N(J,"argument")||"",isEnabled:v(J,"isEnabled")}))}function QZ($){let Y=b($,"EnvironmentVariables");if(!Y)return;let Z=n1(Y,"EnvironmentVariable");if(Z.length===0)return;return Z.map((J)=>({key:N(J,"key")||"",value:N(J,"value")||"",isEnabled:v(J,"isEnabled")}))}function N($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function v($,Y){let Z=$.getAttribute(Y);if(Z==="YES"||Z==="Yes")return!0;if(Z==="NO"||Z==="No")return!1;return}function b($,Y){let Z=$.childNodes;for(let J=0;J{Object.defineProperty(Nz,"__esModule",{value:!0});Nz.build=void 0;function vV($){let Y=[];Y.push(''),Y.push("` ${J}`)),Y[Y.length-1]+=">",$.buildAction)Y.push(...mV($.buildAction,1));if($.testAction)Y.push(...lV($.testAction,1));if($.launchAction)Y.push(...rV($.launchAction,1));if($.profileAction)Y.push(...tV($.profileAction,1));if($.analyzeAction)Y.push(...eV($.analyzeAction,1));if($.archiveAction)Y.push(...$W($.archiveAction,1));return Y.push(""),Y.join(` +`}HQ.build=uF;function GQ($,Z){let Y=qQ(Z);return[`${Y} +${Y}`]}function UQ($,Z){let Y=[],J=qQ(Z),K=[];if($.location!==void 0)K.push(`location = "${S8($.location)}"`);if($.name!==void 0)K.push(`name = "${S8($.name)}"`);Y.push(`${J}`),Y}function qQ($){return" ".repeat($)}function S8($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var OQ=A((nF)=>{nF.byteLength=cF;nF.toByteArray=dF;nF.fromByteArray=sF;var $0=[],T1=[],mF=typeof Uint8Array<"u"?Uint8Array:Array,N8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(u0=0,j8=N8.length;u00)throw Error("Invalid string. Length must be a multiple of 4");var Y=$.indexOf("=");if(Y===-1)Y=Z;var J=Y===Z?0:4-Y%4;return[Y,J]}function cF($){var Z=FQ($),Y=Z[0],J=Z[1];return(Y+J)*3/4-J}function pF($,Z,Y){return(Z+Y)*3/4-Y}function dF($){var Z,Y=FQ($),J=Y[0],K=Y[1],z=new mF(pF($,J,K)),Q=0,U=K>0?J-4:J,G;for(G=0;G>16&255,z[Q++]=Z>>8&255,z[Q++]=Z&255;if(K===2)Z=T1[$.charCodeAt(G)]<<2|T1[$.charCodeAt(G+1)]>>4,z[Q++]=Z&255;if(K===1)Z=T1[$.charCodeAt(G)]<<10|T1[$.charCodeAt(G+1)]<<4|T1[$.charCodeAt(G+2)]>>2,z[Q++]=Z>>8&255,z[Q++]=Z&255;return z}function lF($){return $0[$>>18&63]+$0[$>>12&63]+$0[$>>6&63]+$0[$&63]}function iF($,Z,Y){var J,K=[];for(var z=Z;zU?U:Q+z));if(J===1)Z=$[Y-1],K.push($0[Z>>2]+$0[Z<<4&63]+"==");else if(J===2)Z=($[Y-2]<<8)+$[Y-1],K.push($0[Z>>10]+$0[Z>>4&63]+$0[Z<<2&63]+"=");return K.join("")}});var Z0=A((RQ,m0)=>{(function(){var $,Z,Y,J,K,z,Q,U={}.hasOwnProperty;$=function(G,...H){var V,I,E,w;if(K(Object.assign))Object.assign.apply(null,arguments);else for(V=0,E=H.length;V{(function(){var $;EQ.exports=$=class{hasFeature(Y,J){return!0}createDocumentType(Y,J,K){throw Error("This DOM method is not implemented.")}createDocument(Y,J,K){throw Error("This DOM method is not implemented.")}createHTMLDocument(Y){throw Error("This DOM method is not implemented.")}getFeature(Y,J){throw Error("This DOM method is not implemented.")}}}).call(IQ)});var BQ=A((AQ,wQ)=>{(function(){var $;wQ.exports=$=class{constructor(){}handleError(Y){throw Error(Y)}}}).call(AQ)});var MQ=A((CQ,DQ)=>{(function(){var $;DQ.exports=$=function(){class Z{constructor(Y){this.arr=Y||[]}item(Y){return this.arr[Y]||null}contains(Y){return this.arr.indexOf(Y)!==-1}}return Object.defineProperty(Z.prototype,"length",{get:function(){return this.arr.length}}),Z}.call(this)}).call(CQ)});var XQ=A((LQ,TQ)=>{(function(){var $,Z,Y;Z=BQ(),Y=MQ(),TQ.exports=$=function(){class J{constructor(){var K;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=K=Object.create(this.defaultParams)}getParameter(K){if(this.params.hasOwnProperty(K))return this.params[K];else return null}canSetParameter(K,z){return!0}setParameter(K,z){if(z!=null)return this.params[K]=z;else return delete this.params[K]}}return Object.defineProperty(J.prototype,"parameterNames",{get:function(){return new Y(Object.keys(this.defaultParams))}}),J}.call(this)}).call(LQ)});var $1=A((SQ,NQ)=>{(function(){NQ.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(SQ)});var _8=A((jQ,PQ)=>{(function(){var $,Z,Y;$=$1(),Y=M1(),PQ.exports=Z=function(){class J{constructor(K,z,Q){if(this.parent=K,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(z==null)throw Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(Q),this.type=$.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(K){return this.options.writer.attribute(this,this.options.writer.filterOptions(K))}debugInfo(K){if(K=K||this.name,K==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+K+"}, parent: <"+this.parent.name+">"}isEqualNode(K){if(K.namespaceURI!==this.namespaceURI)return!1;if(K.prefix!==this.prefix)return!1;if(K.localName!==this.localName)return!1;if(K.value!==this.value)return!1;return!0}}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(J.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(J.prototype,"textContent",{get:function(){return this.value},set:function(K){return this.value=K||""}}),Object.defineProperty(J.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(J.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(J.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(J.prototype,"specified",{get:function(){return!0}}),J}.call(this)}).call(jQ)});var T9=A((_Q,yQ)=>{(function(){var $;yQ.exports=$=function(){class Z{constructor(Y){this.nodes=Y}clone(){return this.nodes=null}getNamedItem(Y){return this.nodes[Y]}setNamedItem(Y){var J=this.nodes[Y.nodeName];return this.nodes[Y.nodeName]=Y,J||null}removeNamedItem(Y){var J=this.nodes[Y];return delete this.nodes[Y],J||null}item(Y){return this.nodes[Object.keys(this.nodes)[Y]]||null}getNamedItemNS(Y,J){throw Error("This DOM method is not implemented.")}setNamedItemNS(Y){throw Error("This DOM method is not implemented.")}removeNamedItemNS(Y,J){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(Z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Z}.call(this)}).call(_Q)});var X9=A((xQ,kQ)=>{(function(){var $,Z,Y,J,K,z,Q,U,G={}.hasOwnProperty;({isObject:U,isFunction:Q,getValue:z}=Z0()),K=M1(),$=$1(),Z=_8(),J=T9(),kQ.exports=Y=function(){class H extends K{constructor(V,I,E){var w,T,X,D;super(V);if(I==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(I),this.type=$.Element,this.attribs={},this.schemaTypeInfo=null,E!=null)this.attribute(E);if(V.type===$.Document){if(this.isRoot=!0,this.documentObject=V,V.rootObject=this,V.children){D=V.children;for(T=0,X=D.length;T=w;I=0<=w?++E:--E)if(!this.attribs[I].isEqualNode(V.attribs[I]))return!1;return!0}}return Object.defineProperty(H.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(H.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(H.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(H.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(H.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(H.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(H.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(H.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes)this.attributeMap=new J(this.attribs);return this.attributeMap}}),H}.call(this)}).call(xQ)});var EZ=A((bQ,fQ)=>{(function(){var $,Z;Z=M1(),fQ.exports=$=function(){class Y extends Z{constructor(J){super(J);this.value=""}clone(){return Object.create(this)}substringData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(J){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(J,K,z){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(J){if(!super.isEqualNode(J))return!1;if(J.data!==this.data)return!1;return!0}}return Object.defineProperty(Y.prototype,"data",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Object.defineProperty(Y.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Y.prototype,"textContent",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Y}.call(this)}).call(bQ)});var S9=A((vQ,gQ)=>{(function(){var $,Z,Y;$=$1(),Y=EZ(),gQ.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=$.CData,this.value=this.stringify.cdata(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.cdata(this,this.options.writer.filterOptions(K))}}}).call(vQ)});var N9=A((hQ,uQ)=>{(function(){var $,Z,Y;$=$1(),Z=EZ(),uQ.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=$.Comment,this.value=this.stringify.comment(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.comment(this,this.options.writer.filterOptions(K))}}}).call(hQ)});var j9=A((mQ,cQ)=>{(function(){var $,Z,Y,J;({isObject:J}=Z0()),Y=M1(),$=$1(),cQ.exports=Z=class extends Y{constructor(z,Q,U,G){super(z);if(J(Q))({version:Q,encoding:U,standalone:G}=Q);if(!Q)Q="1.0";if(this.type=$.Declaration,this.version=this.stringify.xmlVersion(Q),U!=null)this.encoding=this.stringify.xmlEncoding(U);if(G!=null)this.standalone=this.stringify.xmlStandalone(G)}toString(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))}}}).call(mQ)});var P9=A((pQ,dQ)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),dQ.exports=Z=class extends Y{constructor(K,z,Q,U,G,H){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(Q==null)throw Error("Missing DTD attribute name. "+this.debugInfo(z));if(!U)throw Error("Missing DTD attribute type. "+this.debugInfo(z));if(!G)throw Error("Missing DTD attribute default. "+this.debugInfo(z));if(G.indexOf("#")!==0)G="#"+G;if(!G.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(H&&!G.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));if(this.elementName=this.stringify.name(z),this.type=$.AttributeDeclaration,this.attributeName=this.stringify.name(Q),this.attributeType=this.stringify.dtdAttType(U),H)this.defaultValue=this.stringify.dtdAttDefault(H);this.defaultValueType=G}toString(K){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(K))}}}).call(pQ)});var _9=A((lQ,iQ)=>{(function(){var $,Z,Y,J;({isObject:J}=Z0()),Y=M1(),$=$1(),iQ.exports=Z=function(){class K extends Y{constructor(z,Q,U,G){super(z);if(U==null)throw Error("Missing DTD entity name. "+this.debugInfo(U));if(G==null)throw Error("Missing DTD entity value. "+this.debugInfo(U));if(this.pe=!!Q,this.name=this.stringify.name(U),this.type=$.EntityDeclaration,!J(G))this.value=this.stringify.dtdEntityValue(G),this.internal=!0;else{if(!G.pubID&&!G.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(U));if(G.pubID&&!G.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(U));if(this.internal=!1,G.pubID!=null)this.pubID=this.stringify.dtdPubID(G.pubID);if(G.sysID!=null)this.sysID=this.stringify.dtdSysID(G.sysID);if(G.nData!=null)this.nData=this.stringify.dtdNData(G.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(U))}}toString(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))}}return Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(K.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlVersion",{get:function(){return null}}),K}.call(this)}).call(lQ)});var y9=A((sQ,nQ)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),nQ.exports=Z=class extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!Q)Q="(#PCDATA)";if(Array.isArray(Q))Q="("+Q.join(",")+")";this.name=this.stringify.name(z),this.type=$.ElementDeclaration,this.value=this.stringify.dtdElementValue(Q)}toString(K){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(K))}}}).call(sQ)});var x9=A((rQ,aQ)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),aQ.exports=Z=function(){class J extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD notation name. "+this.debugInfo(z));if(!Q.pubID&&!Q.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));if(this.name=this.stringify.name(z),this.type=$.NotationDeclaration,Q.pubID!=null)this.pubID=this.stringify.dtdPubID(Q.pubID);if(Q.sysID!=null)this.sysID=this.stringify.dtdSysID(Q.sysID)}toString(K){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(K))}}return Object.defineProperty(J.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(J.prototype,"systemId",{get:function(){return this.sysID}}),J}.call(this)}).call(rQ)});var k9=A((oQ,tQ)=>{(function(){var $,Z,Y,J,K,z,Q,U,G;({isObject:G}=Z0()),U=M1(),$=$1(),Z=P9(),J=_9(),Y=y9(),K=x9(),Q=T9(),tQ.exports=z=function(){class H extends U{constructor(V,I,E){var w,T,X,D;super(V);if(this.type=$.DocType,V.children){D=V.children;for(T=0,X=D.length;T{(function(){var $,Z,Y;$=$1(),Z=M1(),$5.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing raw text. "+this.debugInfo());this.type=$.Raw,this.value=this.stringify.raw(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.raw(this,this.options.writer.filterOptions(K))}}}).call(eQ)});var f9=A((Z5,Y5)=>{(function(){var $,Z,Y;$=$1(),Z=EZ(),Y5.exports=Y=function(){class J extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=$.Text,this.value=this.stringify.text(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.text(this,this.options.writer.filterOptions(K))}splitText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(J.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(J.prototype,"wholeText",{get:function(){var K,z,Q;Q="",z=this.previousSibling;while(z)Q=z.data+Q,z=z.previousSibling;Q+=this.data,K=this.nextSibling;while(K)Q=Q+K.data,K=K.nextSibling;return Q}}),J}.call(this)}).call(Z5)});var v9=A((J5,K5)=>{(function(){var $,Z,Y;$=$1(),Z=EZ(),K5.exports=Y=class extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.type=$.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,Q)this.value=this.stringify.insValue(Q)}clone(){return Object.create(this)}toString(K){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(K))}isEqualNode(K){if(!super.isEqualNode(K))return!1;if(K.target!==this.target)return!1;return!0}}}).call(J5)});var y8=A((z5,Q5)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),Q5.exports=Z=class extends Y{constructor(K){super(K);this.type=$.Dummy}clone(){return Object.create(this)}toString(K){return""}}}).call(z5)});var q5=A((G5,U5)=>{(function(){var $;U5.exports=$=function(){class Z{constructor(Y){this.nodes=Y}clone(){return this.nodes=null}item(Y){return this.nodes[Y]||null}}return Object.defineProperty(Z.prototype,"length",{get:function(){return this.nodes.length||0}}),Z}.call(this)}).call(G5)});var W5=A((H5,V5)=>{(function(){V5.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(H5)});var M1=A((F5,O5)=>{(function(){var $,Z,Y,J,K,z,Q,U,G,H,V,I,E,w,T,X,D,S,P={}.hasOwnProperty,R=[].splice;({isObject:S,isFunction:D,isEmpty:X,getValue:T}=Z0()),U=null,Y=null,J=null,K=null,z=null,E=null,w=null,I=null,Q=null,Z=null,V=null,G=null,$=null,O5.exports=H=function(){class W{constructor(q){if(this.parent=q,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.value=null,this.children=[],this.baseURI=null,!U)U=X9(),Y=S9(),J=N9(),K=j9(),z=k9(),E=b9(),w=f9(),I=v9(),Q=y8(),Z=$1(),V=q5(),G=T9(),$=W5()}setParent(q){var O,C,L,F,B;if(this.parent=q,q)this.options=q.options,this.stringify=q.stringify;F=this.children,B=[];for(C=0,L=F.length;C";else if(!((C=this.parent)!=null?C.name:void 0))return"node: <"+q+">";else return"node: <"+q+">, parent: <"+this.parent.name+">"}ele(q,O,C){return this.element(q,O,C)}nod(q,O,C){return this.node(q,O,C)}txt(q){return this.text(q)}dat(q){return this.cdata(q)}com(q){return this.comment(q)}ins(q,O){return this.instruction(q,O)}doc(){return this.document()}dec(q,O,C){return this.declaration(q,O,C)}e(q,O,C){return this.element(q,O,C)}n(q,O,C){return this.node(q,O,C)}t(q){return this.text(q)}d(q){return this.cdata(q)}c(q){return this.comment(q)}r(q){return this.raw(q)}i(q,O){return this.instruction(q,O)}u(){return this.up()}importXMLBuilder(q){return this.importDocument(q)}attribute(q,O){throw Error("attribute() applies to element nodes only.")}att(q,O){return this.attribute(q,O)}a(q,O){return this.attribute(q,O)}removeAttribute(q){throw Error("attribute() applies to element nodes only.")}replaceChild(q,O){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(q){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(q){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(q,O){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(q){var O,C;if(O=this,O===q)return 0;else if(this.document()!==q.document()){if(C=$.Disconnected|$.ImplementationSpecific,Math.random()<0.5)C|=$.Preceding;else C|=$.Following;return C}else if(O.isAncestor(q))return $.Contains|$.Preceding;else if(O.isDescendant(q))return $.Contains|$.Following;else if(O.isPreceding(q))return $.Preceding;else return $.Following}isSameNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(q){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(q){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(q){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(q){var O,C,L;if(q.nodeType!==this.nodeType)return!1;if(q.children.length!==this.children.length)return!1;for(O=C=0,L=this.children.length-1;0<=L?C<=L:C>=L;O=0<=L?++C:--C)if(!this.children[O].isEqualNode(q.children[O]))return!1;return!0}getFeature(q,O){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(q,O,C){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(q){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(q){if(!q)return!1;return q===this||this.isDescendant(q)}isDescendant(q){var O,C,L,F,B;B=this.children;for(L=0,F=B.length;LC}treePosition(q){var O,C;if(C=0,O=!1,this.foreachTreeNode(this.document(),function(L){if(C++,!O&&L===q)return O=!0}),O)return C;else return-1}foreachTreeNode(q,O){var C,L,F,B,M;q||(q=this.document()),B=q.children;for(L=0,F=B.length;L{(function(){var $,Z={}.hasOwnProperty;I5.exports=$=function(){class Y{constructor(J){var K,z,Q;if(this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),J||(J={}),this.options=J,!this.options.version)this.options.version="1.0";z=J.stringify||{};for(K in z){if(!Z.call(z,K))continue;Q=z[K],this[K]=Q}}name(J){if(this.options.noValidation)return J;return this.assertLegalName(""+J||"")}text(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.textEscape(""+J||""))}cdata(J){if(this.options.noValidation)return J;return J=""+J||"",J=J.replace("]]>","]]]]>"),this.assertLegalChar(J)}comment(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/--/))throw Error("Comment text cannot contain double-hypen: "+J);return this.assertLegalChar(J)}raw(J){if(this.options.noValidation)return J;return""+J||""}attValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.attEscape(J=""+J||""))}insTarget(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}insValue(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/\?>/))throw Error("Invalid processing instruction value: "+J);return this.assertLegalChar(J)}xmlVersion(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/1\.[0-9]+/))throw Error("Invalid version number: "+J);return J}xmlEncoding(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+J);return this.assertLegalChar(J)}xmlStandalone(J){if(this.options.noValidation)return J;if(J)return"yes";else return"no"}dtdPubID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdSysID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdElementValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttType(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttDefault(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdEntityValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdNData(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}assertLegalChar(J){var K,z;if(this.options.noValidation)return J;if(K="",this.options.version==="1.0"){if(K=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}else if(this.options.version==="1.1"){if(K=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}return J}assertLegalName(J){var K;if(this.options.noValidation)return J;if(this.assertLegalChar(J),K=/^([: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])*$/,!J.match(K))throw Error("Invalid character in name");return J}textEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(//g,">").replace(/\r/g," ")}attEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(/{(function(){A5.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(E5)});var k8=A((w5,B5)=>{(function(){var $,Z,Y,J,K,z,Q,U,G,H,V,I,E,w,T,X,D,S={}.hasOwnProperty;({assign:D}=Z0()),$=$1(),G=j9(),H=k9(),Y=S9(),J=N9(),I=X9(),w=b9(),T=f9(),E=v9(),V=y8(),K=P9(),z=y9(),Q=_9(),U=x9(),Z=AZ(),B5.exports=X=class{constructor(R){var W,q,O;R||(R={}),this.options=R,q=R.writer||{};for(W in q){if(!S.call(q,W))continue;O=q[W],this["_"+W]=this[W],this[W]=O}}filterOptions(R){var W,q,O,C,L,F,B,M,N;if(R||(R={}),R=D({},this.options,R),W={writer:this},W.pretty=R.pretty||!1,W.allowEmpty=R.allowEmpty||!1,W.indent=(q=R.indent)!=null?q:" ",W.newline=(O=R.newline)!=null?O:` +`,W.offset=(C=R.offset)!=null?C:0,W.width=(L=R.width)!=null?L:0,W.dontPrettyTextNodes=(F=(B=R.dontPrettyTextNodes)!=null?B:R.dontprettytextnodes)!=null?F:0,W.spaceBeforeSlash=(M=(N=R.spaceBeforeSlash)!=null?N:R.spacebeforeslash)!=null?M:"",W.spaceBeforeSlash===!0)W.spaceBeforeSlash=" ";return W.suppressPrettyCount=0,W.user={},W.state=Z.None,W}indent(R,W,q){var O;if(!W.pretty||W.suppressPrettyCount)return"";else if(W.pretty){if(O=(q||0)+W.offset+1,O>0)return Array(O).join(W.indent)}return""}endline(R,W,q){if(!W.pretty||W.suppressPrettyCount)return"";else return W.newline}attribute(R,W,q){var O;if(this.openAttribute(R,W,q),W.pretty&&W.width>0)O=R.name+'="'+R.value+'"';else O=" "+R.name+'="'+R.value+'"';return this.closeAttribute(R,W,q),O}cdata(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}comment(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}declaration(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+"",O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}docType(R,W,q){var O,C,L,F,B;if(q||(q=0),this.openNode(R,W,q),W.state=Z.OpenTag,F=this.indent(R,W,q),F+="0){F+=" [",F+=this.endline(R,W,q),W.state=Z.InsideTag,B=R.children;for(C=0,L=B.length;C",F+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),F}element(R,W,q){var O,C,L,F,B,M,N,y,c,t,j,p,Y1,sZ,nZ,rZ,SY,NY,U$;if(q||(q=0),p=!1,this.openNode(R,W,q),W.state=Z.OpenTag,Y1=this.indent(R,W,q)+"<"+R.name,W.pretty&&W.width>0){y=Y1.length,nZ=R.attribs;for(j in nZ){if(!S.call(nZ,j))continue;if(O=nZ[j],sZ=this.attribute(O,W,q),C=sZ.length,y+C>W.width)U$=this.indent(R,W,q+1)+sZ,Y1+=this.endline(R,W,q)+U$,y=U$.length;else U$=" "+sZ,Y1+=U$,y+=U$.length}}else{rZ=R.attribs;for(j in rZ){if(!S.call(rZ,j))continue;O=rZ[j],Y1+=this.attribute(O,W,q)}}if(F=R.children.length,B=F===0?null:R.children[0],F===0||R.children.every(function(jY){return(jY.type===$.Text||jY.type===$.Raw)&&jY.value===""}))if(W.allowEmpty)Y1+=">",W.state=Z.CloseTag,Y1+=""+this.endline(R,W,q);else W.state=Z.CloseTag,Y1+=W.spaceBeforeSlash+"/>"+this.endline(R,W,q);else if(W.pretty&&F===1&&(B.type===$.Text||B.type===$.Raw)&&B.value!=null)Y1+=">",W.state=Z.InsideTag,W.suppressPrettyCount++,p=!0,Y1+=this.writeChildNode(B,W,q+1),W.suppressPrettyCount--,p=!1,W.state=Z.CloseTag,Y1+=""+this.endline(R,W,q);else{if(W.dontPrettyTextNodes){SY=R.children;for(M=0,c=SY.length;M"+this.endline(R,W,q),W.state=Z.InsideTag,NY=R.children;for(N=0,t=NY.length;N",p)W.suppressPrettyCount--;Y1+=this.endline(R,W,q),W.state=Z.None}return this.closeNode(R,W,q),Y1}writeChildNode(R,W,q){switch(R.type){case $.CData:return this.cdata(R,W,q);case $.Comment:return this.comment(R,W,q);case $.Element:return this.element(R,W,q);case $.Raw:return this.raw(R,W,q);case $.Text:return this.text(R,W,q);case $.ProcessingInstruction:return this.processingInstruction(R,W,q);case $.Dummy:return"";case $.Declaration:return this.declaration(R,W,q);case $.DocType:return this.docType(R,W,q);case $.AttributeDeclaration:return this.dtdAttList(R,W,q);case $.ElementDeclaration:return this.dtdElement(R,W,q);case $.EntityDeclaration:return this.dtdEntity(R,W,q);case $.NotationDeclaration:return this.dtdNotation(R,W,q);default:throw Error("Unknown XML node type: "+R.constructor.name)}}processingInstruction(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+"",O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}raw(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q),W.state=Z.InsideTag,O+=R.value,W.state=Z.CloseTag,O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}text(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q),W.state=Z.InsideTag,O+=R.value,W.state=Z.CloseTag,O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdAttList(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdElement(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdEntity(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdNotation(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}openNode(R,W,q){}closeNode(R,W,q){}openAttribute(R,W,q){}closeAttribute(R,W,q){}}}).call(w5)});var g9=A((C5,D5)=>{(function(){var $,Z;Z=k8(),D5.exports=$=class extends Z{constructor(J){super(J)}document(J,K){var z,Q,U,G,H;K=this.filterOptions(K),G="",H=J.children;for(Q=0,U=H.length;Q{(function(){var $,Z,Y,J,K,z,Q,U;({isPlainObject:U}=Z0()),Y=P8(),Z=XQ(),K=M1(),$=$1(),Q=x8(),z=g9(),L5.exports=J=function(){class G extends K{constructor(H){super(null);if(this.name="#document",this.type=$.Document,this.documentURI=null,this.domConfig=new Z,H||(H={}),!H.writer)H.writer=new z;this.options=H,this.stringify=new Q(H)}end(H){var V={};if(!H)H=this.options.writer;else if(U(H))V=H,H=this.options.writer;return H.document(this,H.filterOptions(V))}toString(H){return this.options.writer.document(this,this.options.writer.filterOptions(H))}createElement(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(H){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(H){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(H){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(H,V,I){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(H,V,I){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(H,V,I){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(G.prototype,"implementation",{value:new Y}),Object.defineProperty(G.prototype,"doctype",{get:function(){var H,V,I,E;E=this.children;for(V=0,I=E.length;V{(function(){var $,Z,Y,J,K,z,Q,U,G,H,V,I,E,w,T,X,D,S,P,R,W,q,O,C={}.hasOwnProperty;({isObject:q,isFunction:W,isPlainObject:O,getValue:R}=Z0()),$=$1(),I=b8(),w=X9(),J=S9(),K=N9(),X=b9(),P=f9(),T=v9(),H=j9(),V=k9(),z=P9(),U=_9(),Q=y9(),G=x9(),Y=_8(),S=x8(),D=g9(),Z=AZ(),X5.exports=E=class{constructor(F,B,M){var N;if(this.name="?xml",this.type=$.Document,F||(F={}),N={},!F.writer)F.writer=new D;else if(O(F.writer))N=F.writer,F.writer=new D;this.options=F,this.writer=F.writer,this.writerOptions=this.writer.filterOptions(N),this.stringify=new S(F),this.onDataCallback=B||function(){},this.onEndCallback=M||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(F){var B,M,N,y,c,t,j,p;switch(F.type){case $.CData:this.cdata(F.value);break;case $.Comment:this.comment(F.value);break;case $.Element:N={},j=F.attribs;for(M in j){if(!C.call(j,M))continue;B=j[M],N[M]=B.value}this.node(F.name,N);break;case $.Dummy:this.dummy();break;case $.Raw:this.raw(F.value);break;case $.Text:this.text(F.value);break;case $.ProcessingInstruction:this.instruction(F.target,F.value);break;default:throw Error("This XML node type is not supported in a JS object: "+F.constructor.name)}p=F.children;for(c=0,t=p.length;c=0)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(F){var B,M,N,y;if(!F.isOpen){if(!this.root&&this.currentLevel===0&&F.type===$.Element)this.root=F;if(M="",F.type===$.Element){this.writerOptions.state=Z.OpenTag,M=this.writer.indent(F,this.writerOptions,this.currentLevel)+"<"+F.name,y=F.attribs;for(N in y){if(!C.call(y,N))continue;B=y[N],M+=this.writer.attribute(B,this.writerOptions,this.currentLevel)}M+=(F.children?">":"/>")+this.writer.endline(F,this.writerOptions,this.currentLevel),this.writerOptions.state=Z.InsideTag}else{if(this.writerOptions.state=Z.OpenTag,M=this.writer.indent(F,this.writerOptions,this.currentLevel)+"";M+=this.writer.endline(F,this.writerOptions,this.currentLevel)}return this.onData(M,this.currentLevel),F.isOpen=!0}}closeNode(F){var B;if(!F.isClosed){if(B="",this.writerOptions.state=Z.CloseTag,F.type===$.Element)B=this.writer.indent(F,this.writerOptions,this.currentLevel)+""+this.writer.endline(F,this.writerOptions,this.currentLevel);else B=this.writer.indent(F,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(F,this.writerOptions,this.currentLevel);return this.writerOptions.state=Z.None,this.onData(B,this.currentLevel),F.isClosed=!0}}onData(F,B){return this.documentStarted=!0,this.onDataCallback(F,B+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(F){if(F==null)return"";else return"node: <"+F+">"}ele(){return this.element(...arguments)}nod(F,B,M){return this.node(F,B,M)}txt(F){return this.text(F)}dat(F){return this.cdata(F)}com(F){return this.comment(F)}ins(F,B){return this.instruction(F,B)}dec(F,B,M){return this.declaration(F,B,M)}dtd(F,B,M){return this.doctype(F,B,M)}e(F,B,M){return this.element(F,B,M)}n(F,B,M){return this.node(F,B,M)}t(F){return this.text(F)}d(F){return this.cdata(F)}c(F){return this.comment(F)}r(F){return this.raw(F)}i(F,B){return this.instruction(F,B)}att(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}a(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}ent(F,B){return this.entity(F,B)}pent(F,B){return this.pEntity(F,B)}not(F,B){return this.notation(F,B)}}}).call(T5)});var P5=A((N5,j5)=>{(function(){var $,Z,Y,J,K={}.hasOwnProperty;$=$1(),J=k8(),Z=AZ(),j5.exports=Y=class extends J{constructor(Q,U){super(U);this.stream=Q}endline(Q,U,G){if(Q.isLastRootNode&&U.state===Z.CloseTag)return"";else return super.endline(Q,U,G)}document(Q,U){var G,H,V,I,E,w,T,X,D;T=Q.children;for(H=V=0,E=T.length;V0){this.stream.write(" ["),this.stream.write(this.endline(Q,U,G)),U.state=Z.InsideTag,E=Q.children;for(V=0,I=E.length;V"),this.stream.write(this.endline(Q,U,G)),U.state=Z.None,this.closeNode(Q,U,G)}element(Q,U,G){var H,V,I,E,w,T,X,D,S,P,R,W,q,O,C,L;if(G||(G=0),this.openNode(Q,U,G),U.state=Z.OpenTag,R=this.indent(Q,U,G)+"<"+Q.name,U.pretty&&U.width>0){X=R.length,q=Q.attribs;for(S in q){if(!K.call(q,S))continue;if(H=q[S],W=this.attribute(H,U,G),V=W.length,X+V>U.width)L=this.indent(Q,U,G+1)+W,R+=this.endline(Q,U,G)+L,X=L.length;else L=" "+W,R+=L,X+=L.length}}else{O=Q.attribs;for(S in O){if(!K.call(O,S))continue;H=O[S],R+=this.attribute(H,U,G)}}if(this.stream.write(R),E=Q.children.length,w=E===0?null:Q.children[0],E===0||Q.children.every(function(F){return(F.type===$.Text||F.type===$.Raw)&&F.value===""}))if(U.allowEmpty)this.stream.write(">"),U.state=Z.CloseTag,this.stream.write("");else U.state=Z.CloseTag,this.stream.write(U.spaceBeforeSlash+"/>");else if(U.pretty&&E===1&&(w.type===$.Text||w.type===$.Raw)&&w.value!=null)this.stream.write(">"),U.state=Z.InsideTag,U.suppressPrettyCount++,P=!0,this.writeChildNode(w,U,G+1),U.suppressPrettyCount--,P=!1,U.state=Z.CloseTag,this.stream.write("");else{this.stream.write(">"+this.endline(Q,U,G)),U.state=Z.InsideTag,C=Q.children;for(T=0,D=C.length;T")}return this.stream.write(this.endline(Q,U,G)),U.state=Z.None,this.closeNode(Q,U,G)}processingInstruction(Q,U,G){return this.stream.write(super.processingInstruction(Q,U,G))}raw(Q,U,G){return this.stream.write(super.raw(Q,U,G))}text(Q,U,G){return this.stream.write(super.text(Q,U,G))}dtdAttList(Q,U,G){return this.stream.write(super.dtdAttList(Q,U,G))}dtdElement(Q,U,G){return this.stream.write(super.dtdElement(Q,U,G))}dtdEntity(Q,U,G){return this.stream.write(super.dtdEntity(Q,U,G))}dtdNotation(Q,U,G){return this.stream.write(super.dtdNotation(Q,U,G))}}}).call(N5)});var y5=A((_5,c0)=>{(function(){var $,Z,Y,J,K,z,Q,U,G;({assign:U,isFunction:G}=Z0()),Y=P8(),J=b8(),K=S5(),Q=g9(),z=P5(),$=$1(),Z=AZ(),_5.create=function(H,V,I,E){var w,T;if(H==null)throw Error("Root element needs a name.");if(E=U({},V,I,E),w=new J(E),T=w.element(H),!E.headless){if(w.declaration(E),E.pubID!=null||E.sysID!=null)w.dtd(E)}return T},_5.begin=function(H,V,I){if(G(H))[V,I]=[H,V],H={};if(V)return new K(H,V,I);else return new J(H)},_5.stringWriter=function(H){return new Q(H)},_5.streamWriter=function(H,V){return new z(H,V)},_5.implementation=new Y,_5.nodeType=$,_5.writerState=Z}).call(_5)});var f5=A((D$)=>{var b5=D$&&D$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(D$,"__esModule",{value:!0});D$.build=void 0;var x5=b5(OQ()),tF=b5(y5());function eF($){function Z(Y){return Y<10?"0"+Y:Y}return $.getUTCFullYear()+"-"+Z($.getUTCMonth()+1)+"-"+Z($.getUTCDate())+"T"+Z($.getUTCHours())+":"+Z($.getUTCMinutes())+":"+Z($.getUTCSeconds())+"Z"}var $O=Object.prototype.toString;function k5($){let Z=$O.call($).match(/\[object (.*)\]/);return Z?Z[1]:Z}function ZO($,Z){let Y={version:"1.0",encoding:"UTF-8"},J={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},K=tF.default.create("plist");if(K.dec(Y.version,Y.encoding,Y.standalone),K.dtd(J.pubid,J.sysid),K.att("version","1.0"),f8($,K),!Z)Z={};return Z.pretty=Z.pretty!==!1,K.end(Z)}D$.build=ZO;function f8($,Z){let Y,J,K,z=k5($);if(z=="Undefined");else if(Array.isArray($)){Z=Z.ele("array");for(J=0;J<$.length;J++)f8($[J],Z)}else if(Buffer.isBuffer($))Z.ele("data").raw($.toString("base64"));else if(z=="Object"){Z=Z.ele("dict");for(K in $)if($.hasOwnProperty(K)&&$[K]!==void 0)Z.ele("key").txt(K),f8($[K],Z)}else if(z=="Number")Y=$%1===0?"integer":"real",Z.ele(Y).txt($.toString());else if(z=="Date")Z.ele("date").txt(eF(new Date($)));else if(z=="Boolean")Z.ele($?"true":"false");else if(z=="String")Z.ele("string").txt($);else if(z=="ArrayBuffer")Z.ele("data").raw(x5.default.fromByteArray($));else if($&&$.buffer&&k5($.buffer)=="ArrayBuffer")Z.ele("data").raw(x5.default.fromByteArray(new Uint8Array($.buffer)))}});var g5=A((T$)=>{var YO=T$&&T$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(T$,"__esModule",{value:!0});T$.parse=void 0;var JO=IZ(),M$=YO(k("assert")),h9=3,v5=4,KO=8;function v8($){return $.nodeType===h9||$.nodeType===KO||$.nodeType===v5}function P0($){return!$.childNodes||$.childNodes.length===0}function zO($){let Z=new JO.DOMParser({errorHandler(){}}).parseFromString($);M$.default(Z.documentElement.nodeName==="plist","malformed document. First element should be ");let Y=L$(Z.documentElement);if(Y.length==1)Y=Y[0];return Y}T$.parse=zO;function L$($){let Z,Y,J,K,z,Q;if(!$)return null;if($.nodeName==="plist"){if(K=[],P0($))return K;for(Z=0;Z<$.childNodes.length;Z++)if(!v8($.childNodes[Z]))K.push(L$($.childNodes[Z]));return K}else if($.nodeName==="dict"){if(Y={},J=null,Q=0,P0($))return Y;for(Z=0;Z<$.childNodes.length;Z++){if(v8($.childNodes[Z]))continue;if(Q%2===0)M$.default($.childNodes[Z].nodeName==="key","Missing key while parsing ."),J=L$($.childNodes[Z]);else M$.default($.childNodes[Z].nodeName!=="key",'Unexpected key "'+L$($.childNodes[Z])+'" while parsing .'),Y[J]=L$($.childNodes[Z]);Q+=1}if(Q%2===1)throw Error('Missing value for "'+J+'" while parsing ');return Y}else if($.nodeName==="array"){if(K=[],P0($))return K;for(Z=0;Z<$.childNodes.length;Z++)if(!v8($.childNodes[Z])){if(z=L$($.childNodes[Z]),z!=null)K.push(z)}return K}else if($.nodeName==="#text");else if($.nodeName==="key"){if(P0($))return"";return $.childNodes[0].nodeValue}else if($.nodeName==="string"){if(z="",P0($))return z;for(Z=0;Z<$.childNodes.length;Z++){let U=$.childNodes[Z].nodeType;if(U===h9||U===v5)z+=$.childNodes[Z].nodeValue}return z}else if($.nodeName==="integer")return M$.default(!P0($),'Cannot parse "" as integer.'),parseInt($.childNodes[0].nodeValue,10);else if($.nodeName==="real"){M$.default(!P0($),'Cannot parse "" as real.'),z="";for(Z=0;Z<$.childNodes.length;Z++)if($.childNodes[Z].nodeType===h9)z+=$.childNodes[Z].nodeValue;return parseFloat(z)}else if($.nodeName==="data"){if(z="",P0($))return Buffer.from(z,"base64");for(Z=0;Z<$.childNodes.length;Z++)if($.childNodes[Z].nodeType===h9)z+=$.childNodes[Z].nodeValue.replace(/\s+/g,"");return Buffer.from(z,"base64")}else if($.nodeName==="date")return M$.default(!P0($),'Cannot parse "" as Date.'),new Date($.childNodes[0].nodeValue);else if($.nodeName==="true")return!0;else if($.nodeName==="false")return!1}});var X$=A((h5)=>{Object.defineProperty(h5,"__esModule",{value:!0});var QO=f5(),GO=g5();h5.default={parse:GO.parse,build:QO.build}});var g8=A((p0)=>{var qO=p0&&p0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p0,"__esModule",{value:!0});p0.buildChecks=p0.parseChecks=void 0;var u5=qO(X$());function HO($){let Z=u5.default.parse($),Y={};for(let[J,K]of Object.entries(Z))if(typeof K==="boolean")Y[J]=K;return Y}p0.parseChecks=HO;function VO($){let Z={};for(let[Y,J]of Object.entries($))if(typeof J==="boolean")Z[Y]=J;return u5.default.build(Z)}p0.buildChecks=VO});var c5=A((m5)=>{Object.defineProperty(m5,"__esModule",{value:!0})});var h8=A((U1)=>{var WO=U1&&U1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),FO=U1&&U1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))WO(Z,$,Y)};Object.defineProperty(U1,"__esModule",{value:!0});U1.buildChecks=U1.parseChecks=U1.build=U1.parse=void 0;var OO=QQ();Object.defineProperty(U1,"parse",{enumerable:!0,get:function(){return OO.parse}});var RO=WQ();Object.defineProperty(U1,"build",{enumerable:!0,get:function(){return RO.build}});var p5=g8();Object.defineProperty(U1,"parseChecks",{enumerable:!0,get:function(){return p5.parseChecks}});Object.defineProperty(U1,"buildChecks",{enumerable:!0,get:function(){return p5.buildChecks}});FO(c5(),U1)});var s5=A((l5)=>{Object.defineProperty(l5,"__esModule",{value:!0});l5.parse=void 0;var IO=IZ();function EO($){let J=new IO.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Scheme")throw Error("Invalid xcscheme file: root element must be ");return AO(J)}l5.parse=EO;function AO($){let Z={};Z.version=x($,"version"),Z.lastUpgradeVersion=x($,"LastUpgradeVersion");let Y=v($,"BuildAction");if(Y)Z.buildAction=wO(Y);let J=v($,"TestAction");if(J)Z.testAction=MO(J);let K=v($,"LaunchAction");if(K)Z.launchAction=XO(K);let z=v($,"ProfileAction");if(z)Z.profileAction=PO(z);let Q=v($,"AnalyzeAction");if(Q)Z.analyzeAction=_O(Q);let U=v($,"ArchiveAction");if(U)Z.archiveAction=yO(U);return Z}function wO($){let Z={};Z.parallelizeBuildables=m($,"parallelizeBuildables"),Z.buildImplicitDependencies=m($,"buildImplicitDependencies"),Z.runPostActionsOnFailure=m($,"runPostActionsOnFailure"),Z.buildArchitectures=x($,"buildArchitectures");let Y=v($,"BuildActionEntries");if(Y)Z.entries=d0(Y,"BuildActionEntry").map(BO);return Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function BO($){let Z={};Z.buildForRunning=m($,"buildForRunning"),Z.buildForTesting=m($,"buildForTesting"),Z.buildForProfiling=m($,"buildForProfiling"),Z.buildForArchiving=m($,"buildForArchiving"),Z.buildForAnalyzing=m($,"buildForAnalyzing");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);return Z}function e0($){return{buildableIdentifier:x($,"BuildableIdentifier")||"primary",blueprintIdentifier:x($,"BlueprintIdentifier")||"",buildableName:x($,"BuildableName")||"",blueprintName:x($,"BlueprintName")||"",referencedContainer:x($,"ReferencedContainer")||""}}function X1($,Z){let Y=v($,Z);if(!Y)return;let J=d0(Y,"ExecutionAction");if(J.length===0)return;return J.map(CO)}function CO($){let Z={};Z.actionType=x($,"ActionType");let Y=v($,"ActionContent");if(Y)Z.actionContent=DO(Y);return Z}function DO($){let Z={};Z.title=x($,"title"),Z.scriptText=x($,"scriptText"),Z.shellToInvoke=x($,"shellToInvoke");let Y=v($,"EnvironmentBuildable");if(Y){let J=v(Y,"BuildableReference");if(J)Z.environmentBuildable=e0(J)}return Z}function MO($){let Z={};Z.buildConfiguration=x($,"buildConfiguration"),Z.selectedDebuggerIdentifier=x($,"selectedDebuggerIdentifier"),Z.selectedLauncherIdentifier=x($,"selectedLauncherIdentifier"),Z.shouldUseLaunchSchemeArgsEnv=m($,"shouldUseLaunchSchemeArgsEnv"),Z.shouldAutocreateTestPlan=m($,"shouldAutocreateTestPlan"),Z.preferredScreenCaptureFormat=x($,"preferredScreenCaptureFormat"),Z.codeCoverageEnabled=m($,"codeCoverageEnabled"),Z.onlyGenerateCoverageForSpecifiedTargets=m($,"onlyGenerateCoverageForSpecifiedTargets");let Y=v($,"Testables");if(Y)Z.testables=d0(Y,"TestableReference").map(LO);let J=v($,"TestPlans");if(J)Z.testPlans=d0(J,"TestPlanReference").map(TO);let K=v($,"MacroExpansion");if(K){let z=v(K,"BuildableReference");if(z)Z.macroExpansion=e0(z)}return Z.commandLineArguments=u8($),Z.environmentVariables=m8($),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function LO($){let Z={};Z.skipped=m($,"skipped"),Z.parallelizable=m($,"parallelizable"),Z.useTestSelectionWhitelist=m($,"useTestSelectionWhitelist");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);let J=v($,"SkippedTests");if(J)Z.skippedTests=d0(J,"Test").map((z)=>({identifier:x(z,"Identifier")||""}));let K=v($,"SelectedTests");if(K)Z.selectedTests=d0(K,"Test").map((z)=>({identifier:x(z,"Identifier")||""}));return Z}function TO($){return{reference:x($,"reference")||"",default:m($,"default")}}function XO($){let Z={};Z.buildConfiguration=x($,"buildConfiguration"),Z.selectedDebuggerIdentifier=x($,"selectedDebuggerIdentifier"),Z.selectedLauncherIdentifier=x($,"selectedLauncherIdentifier"),Z.launchStyle=x($,"launchStyle"),Z.useCustomWorkingDirectory=m($,"useCustomWorkingDirectory"),Z.customWorkingDirectory=x($,"customWorkingDirectory"),Z.ignoresPersistentStateOnLaunch=m($,"ignoresPersistentStateOnLaunch"),Z.debugDocumentVersioning=m($,"debugDocumentVersioning"),Z.debugServiceExtension=x($,"debugServiceExtension"),Z.allowLocationSimulation=m($,"allowLocationSimulation"),Z.customLaunchCommand=x($,"customLaunchCommand"),Z.appClipInvocationURLString=x($,"appClipInvocationURLString"),Z.askForAppToLaunch=m($,"askForAppToLaunch"),Z.launchAutomaticallySubstyle=x($,"launchAutomaticallySubstyle");let Y=v($,"BuildableProductRunnable");if(Y)Z.buildableProductRunnable=d5(Y);let J=v($,"RemoteRunnable");if(J)Z.remoteRunnable=SO(J);let K=v($,"MacroExpansion");if(K){let U=v(K,"BuildableReference");if(U)Z.macroExpansion=e0(U)}let z=v($,"LocationScenarioReference");if(z)Z.locationScenarioReference=NO(z);let Q=v($,"StoreKitConfigurationFileReference");if(Q)Z.storeKitConfigurationFileReference=jO(Q);return Z.commandLineArguments=u8($),Z.environmentVariables=m8($),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function d5($){let Z={};Z.runnableDebuggingMode=x($,"runnableDebuggingMode");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);return Z}function SO($){let Z={};Z.runnableDebuggingMode=x($,"runnableDebuggingMode"),Z.bundleIdentifier=x($,"BundleIdentifier"),Z.remotePath=x($,"RemotePath");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);return Z}function NO($){return{identifier:x($,"identifier"),referenceType:x($,"referenceType")}}function jO($){return{identifier:x($,"identifier")}}function PO($){let Z={};Z.buildConfiguration=x($,"buildConfiguration"),Z.shouldUseLaunchSchemeArgsEnv=m($,"shouldUseLaunchSchemeArgsEnv"),Z.savedToolIdentifier=x($,"savedToolIdentifier"),Z.useCustomWorkingDirectory=m($,"useCustomWorkingDirectory"),Z.debugDocumentVersioning=m($,"debugDocumentVersioning"),Z.askForAppToLaunch=m($,"askForAppToLaunch"),Z.launchAutomaticallySubstyle=x($,"launchAutomaticallySubstyle"),Z.appClipInvocationURLString=x($,"appClipInvocationURLString");let Y=v($,"BuildableProductRunnable");if(Y)Z.buildableProductRunnable=d5(Y);return Z.commandLineArguments=u8($),Z.environmentVariables=m8($),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function _O($){let Z={};return Z.buildConfiguration=x($,"buildConfiguration"),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function yO($){let Z={};return Z.buildConfiguration=x($,"buildConfiguration"),Z.customArchiveName=x($,"customArchiveName"),Z.revealArchiveInOrganizer=m($,"revealArchiveInOrganizer"),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function u8($){let Z=v($,"CommandLineArguments");if(!Z)return;let Y=d0(Z,"CommandLineArgument");if(Y.length===0)return;return Y.map((J)=>({argument:x(J,"argument")||"",isEnabled:m(J,"isEnabled")}))}function m8($){let Z=v($,"EnvironmentVariables");if(!Z)return;let Y=d0(Z,"EnvironmentVariable");if(Y.length===0)return;return Y.map((J)=>({key:x(J,"key")||"",value:x(J,"value")||"",isEnabled:m(J,"isEnabled")}))}function x($,Z){if(!$.hasAttribute(Z))return;return $.getAttribute(Z)??void 0}function m($,Z){let Y=$.getAttribute(Z);if(Y==="YES"||Y==="Yes")return!0;if(Y==="NO"||Y==="No")return!1;return}function v($,Z){let Y=$.childNodes;for(let J=0;J{Object.defineProperty(r5,"__esModule",{value:!0});r5.build=void 0;function xO($){let Z=[];Z.push(''),Z.push("` ${J}`)),Z[Z.length-1]+=">",$.buildAction)Z.push(...bO($.buildAction,1));if($.testAction)Z.push(...hO($.testAction,1));if($.launchAction)Z.push(...cO($.launchAction,1));if($.profileAction)Z.push(...iO($.profileAction,1));if($.analyzeAction)Z.push(...sO($.analyzeAction,1));if($.archiveAction)Z.push(...nO($.archiveAction,1));return Z.push(""),Z.join(` `)+` -`}Nz.build=vV;function uV($){let Y=[];if($.lastUpgradeVersion!==void 0)Y.push(`LastUpgradeVersion = "${$.lastUpgradeVersion}"`);if($.version!==void 0)Y.push(`version = "${$.version}"`);return Y}function mV($,Y){let Z=[],J=x(Y),K=[];if($.parallelizeBuildables!==void 0)K.push(`parallelizeBuildables = "${m($.parallelizeBuildables)}"`);if($.buildImplicitDependencies!==void 0)K.push(`buildImplicitDependencies = "${m($.buildImplicitDependencies)}"`);if($.runPostActionsOnFailure!==void 0)K.push(`runPostActionsOnFailure = "${m($.runPostActionsOnFailure)}"`);if($.buildArchitectures!==void 0)K.push(`buildArchitectures = "${$.buildArchitectures}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.entries&&$.entries.length>0){Z.push(`${x(Y+1)}`);for(let z of $.entries)Z.push(...cV(z,Y+2));Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function cV($,Y){let Z=[],J=x(Y),K=[];if($.buildForTesting!==void 0)K.push(`buildForTesting = "${m($.buildForTesting)}"`);if($.buildForRunning!==void 0)K.push(`buildForRunning = "${m($.buildForRunning)}"`);if($.buildForProfiling!==void 0)K.push(`buildForProfiling = "${m($.buildForProfiling)}"`);if($.buildForArchiving!==void 0)K.push(`buildForArchiving = "${m($.buildForArchiving)}"`);if($.buildForAnalyzing!==void 0)K.push(`buildForAnalyzing = "${m($.buildForAnalyzing)}"`);Z.push(`${J}`),Z}function J0($,Y){let Z=[],J=x(Y);return Z.push(`${J}`),Z.push(`${J}`),Z}function q1($,Y,Z){let J=[],K=x(Z);J.push(`${K}<${$}>`);for(let z of Y)J.push(...pV(z,Z+1));return J.push(`${K}`),J}function pV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.actionContent)Z.push(...dV($.actionContent,Y+1));return Z.push(`${J}`),Z}function dV($,Y){let Z=[],J=x(Y),K=[];if($.title!==void 0)K.push(`title = "${W1($.title)}"`);if($.scriptText!==void 0)K.push(`scriptText = "${W1($.scriptText)}"`);if($.shellToInvoke!==void 0)K.push(`shellToInvoke = "${$.shellToInvoke}"`);Z.push(`${J}`),Z.push(...J0($.environmentBuildable,Y+2)),Z.push(`${x(Y+1)}`),Z.push(`${J}`);else Z[Z.length-1]+=">",Z.push(`${J}`);return Z}function lV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.shouldAutocreateTestPlan!==void 0)K.push(`shouldAutocreateTestPlan = "${m($.shouldAutocreateTestPlan)}"`);if($.preferredScreenCaptureFormat!==void 0)K.push(`preferredScreenCaptureFormat = "${$.preferredScreenCaptureFormat}"`);if($.codeCoverageEnabled!==void 0)K.push(`codeCoverageEnabled = "${m($.codeCoverageEnabled)}"`);if($.onlyGenerateCoverageForSpecifiedTargets!==void 0)K.push(`onlyGenerateCoverageForSpecifiedTargets = "${m($.onlyGenerateCoverageForSpecifiedTargets)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.testPlans&&$.testPlans.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testPlans)Z.push(...iV(z,Y+2));Z.push(`${x(Y+1)}`)}if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.testables&&$.testables.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testables)Z.push(...sV(z,Y+2));Z.push(`${x(Y+1)}`)}else if($.testables!==void 0)Z.push(`${x(Y+1)}`),Z.push(`${x(Y+1)}`);if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...GZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...VZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function sV($,Y){let Z=[],J=x(Y),K=[];if($.skipped!==void 0)K.push(`skipped = "${m($.skipped)}"`);if($.parallelizable!==void 0)K.push(`parallelizable = "${m($.parallelizable)}"`);if($.useTestSelectionWhitelist!==void 0)K.push(`useTestSelectionWhitelist = "${m($.useTestSelectionWhitelist)}"`);Z.push(`${J}0){Z.push(`${x(Y+1)}`);for(let z of $.skippedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}if($.selectedTests&&$.selectedTests.length>0){Z.push(`${x(Y+1)}`);for(let z of $.selectedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function iV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`),Z.push(`${J}`),Z}function rV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.launchStyle!==void 0)K.push(`launchStyle = "${$.launchStyle}"`);if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"Yes":"No"}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.customWorkingDirectory!==void 0)K.push(`customWorkingDirectory = "${$.customWorkingDirectory}"`);if($.ignoresPersistentStateOnLaunch!==void 0)K.push(`ignoresPersistentStateOnLaunch = "${m($.ignoresPersistentStateOnLaunch)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.debugServiceExtension!==void 0)K.push(`debugServiceExtension = "${$.debugServiceExtension}"`);if($.allowLocationSimulation!==void 0)K.push(`allowLocationSimulation = "${m($.allowLocationSimulation)}"`);if($.customLaunchCommand!==void 0)K.push(`customLaunchCommand = "${W1($.customLaunchCommand)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...xz($.buildableProductRunnable,Y+1));if($.remoteRunnable)Z.push(...aV($.remoteRunnable,Y+1));if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.locationScenarioReference)Z.push(...nV($.locationScenarioReference,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...GZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...VZ($.environmentVariables,Y+1));if($.storeKitConfigurationFileReference)Z.push(...oV($.storeKitConfigurationFileReference,Y+1));return Z.push(`${J}`),Z}function xz($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.buildableReference)Z.push(...J0($.buildableReference,Y+1));return Z.push(`${J}`),Z}function aV($,Y){let Z=[],J=x(Y),K=[];if($.runnableDebuggingMode!==void 0)K.push(`runnableDebuggingMode = "${$.runnableDebuggingMode}"`);if($.bundleIdentifier!==void 0)K.push(`BundleIdentifier = "${$.bundleIdentifier}"`);if($.remotePath!==void 0)K.push(`RemotePath = "${$.remotePath}"`);Z.push(`${J}`),Z}function nV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function oV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function tV($,Y){let Z=[],J=x(Y),K=[];if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"YES":"NO"}"`);if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.savedToolIdentifier!==void 0)K.push(`savedToolIdentifier = "${$.savedToolIdentifier}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...xz($.buildableProductRunnable,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...GZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...VZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function eV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.preActions&&$.preActions.length>0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function $W($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.customArchiveName!==void 0)K.push(`customArchiveName = "${W1($.customArchiveName)}"`);if($.revealArchiveInOrganizer!==void 0)K.push(`revealArchiveInOrganizer = "${m($.revealArchiveInOrganizer)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function GZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function VZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function x($){return" ".repeat($)}function m($){return $?"YES":"NO"}function W1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var fz=C((o1)=>{var YW=o1&&o1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o1,"__esModule",{value:!0});o1.buildManagement=o1.parseManagement=void 0;var gz=YW(KZ());function ZW($){let Y=gz.default.parse($),Z={};if(Y.SchemeUserState){Z.SchemeUserState={};let J=Y.SchemeUserState;for(let[K,z]of Object.entries(J))Z.SchemeUserState[K]=JW(z)}if(Y.SuppressBuildableAutocreation){Z.SuppressBuildableAutocreation={};let J=Y.SuppressBuildableAutocreation;for(let[K,z]of Object.entries(J))Z.SuppressBuildableAutocreation[K]=KW(z)}return Z}o1.parseManagement=ZW;function JW($){let Y={};if(typeof $.isShown==="boolean")Y.isShown=$.isShown;if(typeof $.orderHint==="number")Y.orderHint=$.orderHint;return Y}function KW($){let Y={};if(typeof $.primary==="boolean")Y.primary=$.primary;return Y}function zW($){let Y={};if($.SchemeUserState)Y.SchemeUserState=$.SchemeUserState;if($.SuppressBuildableAutocreation)Y.SuppressBuildableAutocreation=$.SuppressBuildableAutocreation;return gz.default.build(Y)}o1.buildManagement=zW});var vz=C((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0})});var mz=C((e)=>{var QW=e&&e.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),GW=e&&e.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))QW(Y,$,Z)};Object.defineProperty(e,"__esModule",{value:!0});e.buildManagement=e.parseManagement=e.build=e.parse=void 0;var VW=Lz();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return VW.parse}});var WW=bz();Object.defineProperty(e,"build",{enumerable:!0,get:function(){return WW.build}});var uz=fz();Object.defineProperty(e,"parseManagement",{enumerable:!0,get:function(){return uz.parseManagement}});Object.defineProperty(e,"buildManagement",{enumerable:!0,get:function(){return uz.buildManagement}});GW(vz(),e)});var v1=$$(wJ(),1);import{existsSync as az}from"fs";import{join as z0,resolve as XW}from"path";import{parseArgs as IW}from"util";class kY{rawTemplates;constructor($){this.rawTemplates=new Map(Object.entries($))}getAncestorChain($){let Y=new Set,Z=[],J=(K)=>{if(Y.has(K))return;Y.add(K);let z=this.rawTemplates.get(K);if(!z)return;for(let Q of z.info.Ancestors||[])J(Q);Z.push(K)};return J($),Z}resolve($,Y){let Z=this.getAncestorChain($),J=this.rawTemplates.get($);if(!J)throw Error(`Template not found: ${$}`);let K=[],z={},Q={},W={},G={},q={},H={},R="com.apple.product-type.application",P=["Sources","Frameworks","Resources"],w={},I=[];for(let X of Z){let D=this.rawTemplates.get(X);if(!D)continue;let y=D.info;if(y.Project){if(Object.assign(z,y.Project.SharedSettings||{}),y.Project.Configurations)Object.assign(Q,y.Project.Configurations.Debug||{}),Object.assign(W,y.Project.Configurations.Release||{})}if(y.Targets)for(let O of y.Targets){if(O.ProductType)R=O.ProductType;if(O.BuildPhases)P=O.BuildPhases.map((B)=>B.Class||B);if(Object.assign(G,O.SharedSettings||{}),O.Configurations)Object.assign(q,O.Configurations.Debug||{}),Object.assign(H,O.Configurations.Release||{})}if(y.Definitions)Object.assign(w,y.Definitions);if(y.Nodes)I.push(...y.Nodes);if(y.Options)for(let O of y.Options)this.mergeOption(K,O,Y,w,I,G,q,H,z,Q,W)}for(let X of K)if(X._override)Y[X.identifier]=X._override;let T=this.resolveFiles(I,w,Z,$);return{id:$,name:J.name,description:J.info.Description||"",platform:J.platform,category:J.category,options:K.filter((X)=>!X.notPersisted||X.identifier==="productName"),productType:R,buildPhases:P,projectSharedSettings:z,projectDebugSettings:Q,projectReleaseSettings:W,targetSharedSettings:G,targetDebugSettings:q,targetReleaseSettings:H,files:T,templateFilesDir:""}}mergeOption($,Y,Z,J,K,z,Q,W,G,q,H){let R=Y.Identifier;if(!R)return;if(Y.Override){let w=$.find((I)=>I.identifier===R);if(w)w._override=Y.Override;else{let I=this.parseOption(Y);I._override=Y.Override,$.push(I)}Z[R]=Y.Override}let P=$.find((w)=>w.identifier===R);if(!P&&Y.Type)$.push(this.parseOption(Y));else if(!P&&Y.Values)$.push(this.parseOption({...Y,Type:"popup"}));if(Y.Units){let w=Z[R];if(w&&Y.Units[w]){let I=Y.Units[w],T=Array.isArray(I)?I:[I];for(let X of T){if(X.RequiredOptions){let D=!0;for(let[y,O]of Object.entries(X.RequiredOptions))if(Z[y]!==O){D=!1;break}if(!D)continue}if(X.Definitions)Object.assign(J,X.Definitions);if(X.Nodes)K.push(...X.Nodes);if(X.Targets){for(let D of X.Targets)if(Object.assign(z,D.SharedSettings||{}),D.Configurations)Object.assign(Q,D.Configurations.Debug||{}),Object.assign(W,D.Configurations.Release||{})}if(X.Project){if(Object.assign(G,X.Project.SharedSettings||{}),X.Project.Configurations)Object.assign(q,X.Project.Configurations.Debug||{}),Object.assign(H,X.Project.Configurations.Release||{})}}}}}parseOption($){return{identifier:$.Identifier,name:$.Name?.replace(/:$/,""),description:$.Description,type:($.Type||"popup").toLowerCase(),default:$.Default,values:$.Values||$.ValueTitles,required:$.Required,notPersisted:$.NotPersisted}}resolveFiles($,Y,Z,J){let K=new Map;for(let z of $){if(z.includes(":")&&!z.includes("___")){if(z.split(":")[0].includes("."))continue}let Q=Y[z],W=z,G=50;if(Q&&typeof Q==="object")W=Q.Path||z,G=Q.SortOrder??50;let q=J;for(let H of[...Z].reverse()){let R=this.rawTemplates.get(H);if(R?.sourceFiles?.includes(W)){q=H;break}if(R?.sourceFiles?.some((P)=>P===W||W.startsWith(P+"/"))){q=H;break}}K.set(z,{name:z,sourcePath:W,sortOrder:G,sourceTemplateId:q})}return[...K.values()].sort((z,Q)=>z.sortOrder-Q.sortOrder)}}function E$($,Y){return $.replace(/___FILEHEADER___/g,zG(Y)).replace(/___PACKAGENAME:identifier___/g,b0(Y.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,y1(Y.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,b0(Y.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,y1(Y.productName)).replace(/___PACKAGENAMEASXML___/g,QG(Y.productName)).replace(/___PACKAGENAME___/g,Y.productName).replace(/___PROJECTNAME___/g,Y.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,y1(Y.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,Y.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,y1(Y.productName)).replace(/___VARIABLE_productName___/g,Y.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___DATE___/g,Y.date).replace(/___YEAR___/g,Y.year).replace(/___FULLUSERNAME___/g,Y.fullUserName).replace(/___COPYRIGHT___/g,Y.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${y1(Y.bundleIdentifierPrefix)}.${y1(Y.productName)}`)}function zG($){return` +`}r5.build=xO;function kO($){let Z=[];if($.lastUpgradeVersion!==void 0)Z.push(`LastUpgradeVersion = "${$.lastUpgradeVersion}"`);if($.version!==void 0)Z.push(`version = "${$.version}"`);return Z}function bO($,Z){let Y=[],J=_(Z),K=[];if($.parallelizeBuildables!==void 0)K.push(`parallelizeBuildables = "${i($.parallelizeBuildables)}"`);if($.buildImplicitDependencies!==void 0)K.push(`buildImplicitDependencies = "${i($.buildImplicitDependencies)}"`);if($.runPostActionsOnFailure!==void 0)K.push(`runPostActionsOnFailure = "${i($.runPostActionsOnFailure)}"`);if($.buildArchitectures!==void 0)K.push(`buildArchitectures = "${$.buildArchitectures}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.entries&&$.entries.length>0){Y.push(`${_(Z+1)}`);for(let z of $.entries)Y.push(...fO(z,Z+2));Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function fO($,Z){let Y=[],J=_(Z),K=[];if($.buildForTesting!==void 0)K.push(`buildForTesting = "${i($.buildForTesting)}"`);if($.buildForRunning!==void 0)K.push(`buildForRunning = "${i($.buildForRunning)}"`);if($.buildForProfiling!==void 0)K.push(`buildForProfiling = "${i($.buildForProfiling)}"`);if($.buildForArchiving!==void 0)K.push(`buildForArchiving = "${i($.buildForArchiving)}"`);if($.buildForAnalyzing!==void 0)K.push(`buildForAnalyzing = "${i($.buildForAnalyzing)}"`);Y.push(`${J}`),Y}function $$($,Z){let Y=[],J=_(Z);return Y.push(`${J}`),Y.push(`${J}`),Y}function N1($,Z,Y){let J=[],K=_(Y);J.push(`${K}<${$}>`);for(let z of Z)J.push(...vO(z,Y+1));return J.push(`${K}`),J}function vO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";if($.actionContent)Y.push(...gO($.actionContent,Z+1));return Y.push(`${J}`),Y}function gO($,Z){let Y=[],J=_(Z),K=[];if($.title!==void 0)K.push(`title = "${S1($.title)}"`);if($.scriptText!==void 0)K.push(`scriptText = "${S1($.scriptText)}"`);if($.shellToInvoke!==void 0)K.push(`shellToInvoke = "${$.shellToInvoke}"`);Y.push(`${J}`),Y.push(...$$($.environmentBuildable,Z+2)),Y.push(`${_(Z+1)}`),Y.push(`${J}`);else Y[Y.length-1]+=">",Y.push(`${J}`);return Y}function hO($,Z){let Y=[],J=_(Z),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${i($.shouldUseLaunchSchemeArgsEnv)}"`);if($.shouldAutocreateTestPlan!==void 0)K.push(`shouldAutocreateTestPlan = "${i($.shouldAutocreateTestPlan)}"`);if($.preferredScreenCaptureFormat!==void 0)K.push(`preferredScreenCaptureFormat = "${$.preferredScreenCaptureFormat}"`);if($.codeCoverageEnabled!==void 0)K.push(`codeCoverageEnabled = "${i($.codeCoverageEnabled)}"`);if($.onlyGenerateCoverageForSpecifiedTargets!==void 0)K.push(`onlyGenerateCoverageForSpecifiedTargets = "${i($.onlyGenerateCoverageForSpecifiedTargets)}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.testPlans&&$.testPlans.length>0){Y.push(`${_(Z+1)}`);for(let z of $.testPlans)Y.push(...mO(z,Z+2));Y.push(`${_(Z+1)}`)}if($.macroExpansion)Y.push(`${_(Z+1)}`),Y.push(...$$($.macroExpansion,Z+2)),Y.push(`${_(Z+1)}`);if($.testables&&$.testables.length>0){Y.push(`${_(Z+1)}`);for(let z of $.testables)Y.push(...uO(z,Z+2));Y.push(`${_(Z+1)}`)}else if($.testables!==void 0)Y.push(`${_(Z+1)}`),Y.push(`${_(Z+1)}`);if($.commandLineArguments&&$.commandLineArguments.length>0)Y.push(...c8($.commandLineArguments,Z+1));if($.environmentVariables&&$.environmentVariables.length>0)Y.push(...p8($.environmentVariables,Z+1));return Y.push(`${J}`),Y}function uO($,Z){let Y=[],J=_(Z),K=[];if($.skipped!==void 0)K.push(`skipped = "${i($.skipped)}"`);if($.parallelizable!==void 0)K.push(`parallelizable = "${i($.parallelizable)}"`);if($.useTestSelectionWhitelist!==void 0)K.push(`useTestSelectionWhitelist = "${i($.useTestSelectionWhitelist)}"`);Y.push(`${J}0){Y.push(`${_(Z+1)}`);for(let z of $.skippedTests)Y.push(`${_(Z+2)}`),Y.push(`${_(Z+2)}`);Y.push(`${_(Z+1)}`)}if($.selectedTests&&$.selectedTests.length>0){Y.push(`${_(Z+1)}`);for(let z of $.selectedTests)Y.push(`${_(Z+2)}`),Y.push(`${_(Z+2)}`);Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function mO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`),Y.push(`${J}`),Y}function cO($,Z){let Y=[],J=_(Z),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${S1($.appClipInvocationURLString)}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.launchStyle!==void 0)K.push(`launchStyle = "${$.launchStyle}"`);if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"Yes":"No"}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${i($.useCustomWorkingDirectory)}"`);if($.customWorkingDirectory!==void 0)K.push(`customWorkingDirectory = "${$.customWorkingDirectory}"`);if($.ignoresPersistentStateOnLaunch!==void 0)K.push(`ignoresPersistentStateOnLaunch = "${i($.ignoresPersistentStateOnLaunch)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${i($.debugDocumentVersioning)}"`);if($.debugServiceExtension!==void 0)K.push(`debugServiceExtension = "${$.debugServiceExtension}"`);if($.allowLocationSimulation!==void 0)K.push(`allowLocationSimulation = "${i($.allowLocationSimulation)}"`);if($.customLaunchCommand!==void 0)K.push(`customLaunchCommand = "${S1($.customLaunchCommand)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.buildableProductRunnable)Y.push(...n5($.buildableProductRunnable,Z+1));if($.remoteRunnable)Y.push(...pO($.remoteRunnable,Z+1));if($.macroExpansion)Y.push(`${_(Z+1)}`),Y.push(...$$($.macroExpansion,Z+2)),Y.push(`${_(Z+1)}`);if($.locationScenarioReference)Y.push(...dO($.locationScenarioReference,Z+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Y.push(...c8($.commandLineArguments,Z+1));if($.environmentVariables&&$.environmentVariables.length>0)Y.push(...p8($.environmentVariables,Z+1));if($.storeKitConfigurationFileReference)Y.push(...lO($.storeKitConfigurationFileReference,Z+1));return Y.push(`${J}`),Y}function n5($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";if($.buildableReference)Y.push(...$$($.buildableReference,Z+1));return Y.push(`${J}`),Y}function pO($,Z){let Y=[],J=_(Z),K=[];if($.runnableDebuggingMode!==void 0)K.push(`runnableDebuggingMode = "${$.runnableDebuggingMode}"`);if($.bundleIdentifier!==void 0)K.push(`BundleIdentifier = "${$.bundleIdentifier}"`);if($.remotePath!==void 0)K.push(`RemotePath = "${$.remotePath}"`);Y.push(`${J}`),Y}function dO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";return Y.push(`${J}`),Y}function lO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";return Y.push(`${J}`),Y}function iO($,Z){let Y=[],J=_(Z),K=[];if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"YES":"NO"}"`);if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${S1($.appClipInvocationURLString)}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${i($.shouldUseLaunchSchemeArgsEnv)}"`);if($.savedToolIdentifier!==void 0)K.push(`savedToolIdentifier = "${$.savedToolIdentifier}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${i($.useCustomWorkingDirectory)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${i($.debugDocumentVersioning)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.buildableProductRunnable)Y.push(...n5($.buildableProductRunnable,Z+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Y.push(...c8($.commandLineArguments,Z+1));if($.environmentVariables&&$.environmentVariables.length>0)Y.push(...p8($.environmentVariables,Z+1));return Y.push(`${J}`),Y}function sO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";if($.preActions&&$.preActions.length>0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));return Y.push(`${J}`),Y}function nO($,Z){let Y=[],J=_(Z),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.customArchiveName!==void 0)K.push(`customArchiveName = "${S1($.customArchiveName)}"`);if($.revealArchiveInOrganizer!==void 0)K.push(`revealArchiveInOrganizer = "${i($.revealArchiveInOrganizer)}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));return Y.push(`${J}`),Y}function c8($,Z){let Y=[],J=_(Z);Y.push(`${J}`);for(let K of $){if(Y.push(`${_(Z+1)}`);else Y[Y.length-1]+=">";Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function p8($,Z){let Y=[],J=_(Z);Y.push(`${J}`);for(let K of $){if(Y.push(`${_(Z+1)}`);else Y[Y.length-1]+=">";Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function _($){return" ".repeat($)}function i($){return $?"YES":"NO"}function S1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var e5=A((l0)=>{var rO=l0&&l0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(l0,"__esModule",{value:!0});l0.buildManagement=l0.parseManagement=void 0;var t5=rO(X$());function aO($){let Z=t5.default.parse($),Y={};if(Z.SchemeUserState){Y.SchemeUserState={};let J=Z.SchemeUserState;for(let[K,z]of Object.entries(J))Y.SchemeUserState[K]=oO(z)}if(Z.SuppressBuildableAutocreation){Y.SuppressBuildableAutocreation={};let J=Z.SuppressBuildableAutocreation;for(let[K,z]of Object.entries(J))Y.SuppressBuildableAutocreation[K]=tO(z)}return Y}l0.parseManagement=aO;function oO($){let Z={};if(typeof $.isShown==="boolean")Z.isShown=$.isShown;if(typeof $.orderHint==="number")Z.orderHint=$.orderHint;return Z}function tO($){let Z={};if(typeof $.primary==="boolean")Z.primary=$.primary;return Z}function eO($){let Z={};if($.SchemeUserState)Z.SchemeUserState=$.SchemeUserState;if($.SuppressBuildableAutocreation)Z.SuppressBuildableAutocreation=$.SuppressBuildableAutocreation;return t5.default.build(Z)}l0.buildManagement=eO});var ZG=A(($G)=>{Object.defineProperty($G,"__esModule",{value:!0})});var u9=A((q1)=>{var $2=q1&&q1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),Z2=q1&&q1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))$2(Z,$,Y)};Object.defineProperty(q1,"__esModule",{value:!0});q1.buildManagement=q1.parseManagement=q1.build=q1.parse=void 0;var Y2=s5();Object.defineProperty(q1,"parse",{enumerable:!0,get:function(){return Y2.parse}});var J2=o5();Object.defineProperty(q1,"build",{enumerable:!0,get:function(){return J2.build}});var YG=e5();Object.defineProperty(q1,"parseManagement",{enumerable:!0,get:function(){return YG.parseManagement}});Object.defineProperty(q1,"buildManagement",{enumerable:!0,get:function(){return YG.buildManagement}});Z2(ZG(),q1)});var wZ=A((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.PROJECT_DEFAULT_BUILD_SETTINGS=JG.SOURCETREE_BY_FILETYPE=JG.PRODUCT_UTI_EXTENSIONS=JG.FILE_TYPES_BY_EXTENSION=JG.LAST_SWIFT_UPGRADE_CHECK=JG.LAST_UPGRADE_CHECK=JG.LAST_KNOWN_OBJECT_VERSION=JG.DEFAULT_OBJECT_VERSION=JG.LAST_KNOWN_SWIFT_VERSION=JG.LAST_KNOWN_ARCHIVE_VERSION=JG.LAST_KNOWN_WATCHOS_SDK=JG.LAST_KNOWN_VISIONOS_SDK=JG.LAST_KNOWN_TVOS_SDK=JG.LAST_KNOWN_OSX_SDK=JG.LAST_KNOWN_IOS_SDK=void 0;JG.LAST_KNOWN_IOS_SDK="18.0";JG.LAST_KNOWN_OSX_SDK="15.0";JG.LAST_KNOWN_TVOS_SDK="18.0";JG.LAST_KNOWN_VISIONOS_SDK="2.0";JG.LAST_KNOWN_WATCHOS_SDK="11.0";JG.LAST_KNOWN_ARCHIVE_VERSION=1;JG.LAST_KNOWN_SWIFT_VERSION="5.0";JG.DEFAULT_OBJECT_VERSION=46;JG.LAST_KNOWN_OBJECT_VERSION=77;JG.LAST_UPGRADE_CHECK="1600";JG.LAST_SWIFT_UPGRADE_CHECK="1600";JG.FILE_TYPES_BY_EXTENSION=Object.freeze({"1":"text.man",C:"sourcecode.cpp.cpp",H:"sourcecode.cpp.h",M:"sourcecode.cpp.objcpp",a:"archive.ar",ada:"sourcecode.ada",adb:"sourcecode.ada",ads:"sourcecode.ada",aiff:"audio.aiff",air:"compiled.air",apinotes:"text.apinotes",apns:"text",app:"wrapper.application",appex:"wrapper.app-extension",applescript:"sourcecode.applescript",archivingdescription:"text.xml.ibArchivingDescription",asdictionary:"archive.asdictionary",asm:"sourcecode.asm.asm",atlas:"folder.skatlas",au:"audio.au",avi:"video.avi",bazel:"text.script.python",bin:"archive.macbinary",bmp:"image.bmp",bundle:"wrapper.cfbundle",bzl:"text.script.python",c:"sourcecode.c.c","c++":"sourcecode.cpp.cpp",cc:"sourcecode.cpp.cpp",cdda:"audio.aiff",cl:"sourcecode.opencl",class:"compiled.javaclass",classdescription:"text.plist.ibClassDescription",classdescriptions:"text.plist.ibClassDescription",clp:"sourcecode.clips",cp:"sourcecode.cpp.cpp",cpp:"sourcecode.cpp.cpp",csh:"text.script.csh",css:"text.css",ctrl:"sourcecode.glsl",cxx:"sourcecode.cpp.cpp",d:"sourcecode.dtrace",dSYM:"wrapper.dsym",dae:"text.xml.dae",defs:"sourcecode.mig",dext:"wrapper.driver-extension",dict:"text.plist",docc:"folder.documentationcatalog",dsym:"wrapper.dsym",dtd:"text.xml",dylan:"sourcecode.dylan",dylib:"compiled.mach-o.dylib",ear:"archive.ear",entitlements:"text.plist.entitlements",eval:"sourcecode.glsl",exp:"sourcecode.exports",f:"sourcecode.fortran",f77:"sourcecode.fortran.f77",f90:"sourcecode.fortran.f90",f95:"sourcecode.fortran.f90",for:"sourcecode.fortran",frag:"sourcecode.glsl",fragment:"sourcecode.glsl",framework:"wrapper.framework",fs:"sourcecode.glsl",fsh:"sourcecode.glsl",geom:"sourcecode.glsl",geometry:"sourcecode.glsl",gif:"image.gif",gmk:"sourcecode.make",gpx:"text.xml",gs:"sourcecode.glsl",gsh:"sourcecode.glsl",gz:"archive.gzip",h:"sourcecode.c.h","h++":"sourcecode.cpp.h",hh:"sourcecode.cpp.h",hp:"sourcecode.cpp.h",hpp:"sourcecode.cpp.h",hqx:"archive.binhex",htm:"text.html",html:"text.html",htmld:"wrapper.htmld",hxx:"sourcecode.cpp.h",i:"sourcecode.c.c.preprocessed",icns:"image.icns",ico:"image.ico",iconset:"folder.iconset",ii:"sourcecode.cpp.cpp.preprocessed",iig:"sourcecode.iig",imagecatalog:"folder.imagecatalog",inc:"sourcecode.pascal",instrdst:"com.apple.instruments.instrdst",instrpkg:"com.apple.instruments.package-definition",intentdefinition:"file.intentdefinition",ipp:"sourcecode.cpp.h",jam:"sourcecode.jam",jar:"archive.jar",java:"sourcecode.java",javascript:"sourcecode.javascript",jpeg:"image.jpeg",jpg:"image.jpeg",js:"sourcecode.javascript",jscript:"sourcecode.javascript",json:"text.json",jsp:"text.html.other",kext:"wrapper.kernel-extension",l:"sourcecode.lex",lid:"sourcecode.dylan",ll:"sourcecode.asm.llvm",llx:"sourcecode.asm.llvm",lm:"sourcecode.lex",lmm:"sourcecode.lex",lp:"sourcecode.lex",lpp:"sourcecode.lex",lxx:"sourcecode.lex",m:"sourcecode.c.objc",mak:"sourcecode.make",make:"sourcecode.make",map:"sourcecode.module-map",markdown:"net.daringfireball.markdown",md:"net.daringfireball.markdown",mdimporter:"wrapper.spotlight-importer",mdown:"net.daringfireball.markdown",metal:"sourcecode.metal",metallib:"archive.metal-library",mi:"sourcecode.c.objc.preprocessed",mid:"audio.midi",midi:"audio.midi",mig:"sourcecode.mig",mii:"sourcecode.cpp.objcpp.preprocessed",mlkitmodel:"file.mlmodel",mlmodel:"file.mlmodel",mm:"sourcecode.cpp.objcpp",modulemap:"sourcecode.module-map",moov:"video.quicktime",mov:"video.quicktime",mp3:"audio.mp3",mpeg:"video.mpeg",mpg:"video.mpeg",mpkg:"wrapper.installer-mpkg",nasm:"sourcecode.nasm",nib:"wrapper.nib","nib~":"wrapper.nib",nqc:"sourcecode.nqc",o:"compiled.mach-o.objfile",octest:"wrapper.cfbundle",otf:"file",p:"sourcecode.pascal",pas:"sourcecode.pascal",pbfilespec:"text.plist.pbfilespec",pblangspec:"text.plist.pblangspec",pbxproj:"text.pbxproject",pch:"sourcecode.c.h","pch++":"sourcecode.cpp.h",pct:"image.pict",pdf:"image.pdf",perl:"text.script.perl",php:"text.script.php",php3:"text.script.php",php4:"text.script.php",phtml:"text.script.php",pict:"image.pict",pkg:"wrapper.installer-pkg",pl:"text.script.perl",playground:"file.playground",plist:"text.plist",pluginkit:"wrapper.app-extension",pm:"text.script.perl",png:"image.png",pp:"sourcecode.pascal",ppob:"archive.ppob",proto:"sourcecode.protobuf",py:"text.script.python",qtz:"video.quartz-composer",r:"sourcecode.rez",rb:"text.script.ruby",rbw:"text.script.ruby",rcproject:"file.rcproject",rcx:"compiled.rcx",rez:"sourcecode.rez",rhtml:"text.html.other",rsrc:"archive.rsrc",rtf:"text.rtf",rtfd:"wrapper.rtfd",s:"sourcecode.asm",scnassets:"wrapper.scnassets",scncache:"wrapper.scncache",scnp:"file.scp",scriptSuite:"text.plist.scriptSuite",scriptTerminology:"text.plist.scriptTerminology",sh:"text.script.sh",shtml:"text.html.other",sit:"archive.stuffit",sks:"file.sks",skybox:"file.skybox",sqlite:"file",storyboard:"file.storyboard",storyboardc:"wrapper.storyboardc",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",swift:"sourcecode.swift",systemextension:"wrapper.system-extension",tar:"archive.tar",tbd:"sourcecode.text-based-dylib-definition",tcc:"sourcecode.cpp.cpp",text:"net.daringfireball.markdown",tif:"image.tiff",tiff:"image.tiff",ttf:"file",txt:"text",uicatalog:"file.uicatalog",usdz:"file.usdz",vert:"sourcecode.glsl",vertex:"sourcecode.glsl",view:"archive.rsrc",vs:"sourcecode.glsl",vsh:"sourcecode.glsl",war:"archive.war",wav:"audio.wav",worksheet:"text.script.worksheet",xcassets:"folder.assetcatalog",xcbuildrules:"text.plist.xcbuildrules",xcclassmodel:"wrapper.xcclassmodel",xcconfig:"text.xcconfig",xcdatamodel:"wrapper.xcdatamodel",xcdatamodeld:"wrapper.xcdatamodeld",xcfilelist:"text.xcfilelist",xcframework:"wrapper.xcframework",xclangspec:"text.plist.xclangspec",xcmappingmodel:"wrapper.xcmappingmodel",xcode:"wrapper.pb-project",xcodeproj:"wrapper.pb-project",xconf:"text.xml",xcplaygroundpage:"file.xcplaygroundpage",xcspec:"text.plist.xcspec",xcstickers:"folder.stickers",xcsynspec:"text.plist.xcsynspec",xctarget:"wrapper.pb-target",xctest:"wrapper.cfbundle",xctxtmacro:"text.plist.xctxtmacro",xcworkspace:"wrapper.workspace",xhtml:"text.xml",xib:"file.xib",xmap:"text.xml",xml:"text.xml",xpc:"wrapper.xpc-service",xsl:"text.xml",xslt:"text.xml",xsp:"text.xml",y:"sourcecode.yacc",yaml:"text.yaml",ym:"sourcecode.yacc",yml:"text.yaml",ymm:"sourcecode.yacc",yp:"sourcecode.yacc",ypp:"sourcecode.yacc",yxx:"sourcecode.yacc",zip:"archive.zip"});JG.PRODUCT_UTI_EXTENSIONS=Object.freeze({application:"app",applicationOnDemandInstallCapable:"app",framework:"framework",dynamicLibrary:"dylib",staticLibrary:"a",bundle:"bundle",octestBundle:"octest",unitTestBundle:"xctest",uiTestBundle:"xctest",appExtension:"appex",messagesApplication:"app",messagesExtension:"appex",stickerPack:"appex",watch2Extension:"appex",watch2App:"app",watch2AppContainer:"app"});JG.SOURCETREE_BY_FILETYPE=Object.freeze({"compiled.mach-o.dylib":"SDKROOT","sourcecode.text-based-dylib-definition":"SDKROOT","wrapper.framework":"SDKROOT","wrapper.app-extension":"BUILT_PRODUCTS_DIR","wrapper.extensionkit-extension":"BUILT_PRODUCTS_DIR"});JG.PROJECT_DEFAULT_BUILD_SETTINGS=Object.freeze({all:Object.freeze({ALWAYS_SEARCH_USER_PATHS:"NO",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",CLANG_CXX_LANGUAGE_STANDARD:"gnu++14",CLANG_CXX_LIBRARY:"libc++",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",GCC_C_LANGUAGE_STANDARD:"gnu11",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",PRODUCT_NAME:"$(TARGET_NAME)",SWIFT_VERSION:"5.0"}),release:Object.freeze({DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule",SWIFT_OPTIMIZATION_LEVEL:"-O"}),debug:Object.freeze({DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG",SWIFT_OPTIMIZATION_LEVEL:"-Onone"})})});var p9=A((o)=>{var A2=o&&o.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),w2=o&&o.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),B2=o&&o.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))A2(Z,$,Y)}return w2(Z,$),Z},QG=o&&o.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o,"__esModule",{value:!0});o.getReferringTargets=o.getFullPath=o.getSourceTreeRealPath=o.getRealPath=o.getParents=o.getParent=void 0;var C2=QG(k("assert")),m9=QG(k("path")),D2=B2(l());function M2($){return Array.from(new Set($))}function d8($){return $.isa==="PBXProject"}function zG($){return $.isa==="PBXGroup"}function L2($){let Z=M2($.getReferrers());if(Z.length>1)return Z.filter((Y)=>zG(Y));else if(Z.length===1){let Y=Z[0];return(0,C2.default)(d8(Y)||zG(Y),"referring object is not a PBXGroup or PBXProject"),[Y]}return[]}function c9($){let Z=L2($);if(!Z.length)throw Error(`Consistency issue: no parent for object: "${$.getDisplayName()||$.isa+" - "+$.uuid}"`);else if(Z.length>1)throw Error(`Consistency issue: multiple parents for object: "${$.getDisplayName()}": ${Z.map((Y)=>Y.getDisplayName()).join(", ")}`);return Z[0]}o.getParent=c9;function GG($){if(T2($))return[];let Z=c9($);return[...GG(Z),Z]}o.getParents=GG;function T2($){return $.uuid===$.getXcodeProject().rootObject.props.mainGroup.uuid}function UG($){let Z=qG($),Y=$.props.path||"";if(Z)return m9.default.join(Z,Y);return Y}o.getRealPath=UG;function qG($){if($.props.sourceTree===""){let Z=c9($);if(d8(Z))return m9.default.join($.getXcodeProject().getProjectRoot(),$.project.props.projectDirPath);return UG(Z)}else if($.props.sourceTree==="SOURCE_ROOT")return m9.default.resolve($.getXcodeProject().getProjectRoot());else if($.props.sourceTree==="")return"";return $.props.sourceTree}o.getSourceTreeRealPath=qG;function X2($){if($.props.sourceTree===""){let Z=c9($);if(d8(Z))return"";return HG(Z)}else if($.props.sourceTree==="SOURCE_ROOT")return"";else if($.props.sourceTree==="")return"/";return $.props.sourceTree}function HG($){let Z=X2($);if($.props.path)return m9.default.join(Z,$.props.path);return Z}o.getFullPath=HG;function S2($){return $.getReferrers().filter((Z)=>{return N2(Z)})}o.getReferringTargets=S2;function N2($){return $.isa===D2.ISA.PBXNativeTarget}});var WG=A((VC,VG)=>{var S$=1000,N$=S$*60,j$=N$*60,Z$=j$*24,j2=Z$*7,P2=Z$*365.25;VG.exports=function($,Z){Z=Z||{};var Y=typeof $;if(Y==="string"&&$.length>0)return _2($);else if(Y==="number"&&isFinite($))return Z.long?x2($):y2($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function _2($){if($=String($),$.length>100)return;var Z=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!Z)return;var Y=parseFloat(Z[1]),J=(Z[2]||"ms").toLowerCase();switch(J){case"years":case"year":case"yrs":case"yr":case"y":return Y*P2;case"weeks":case"week":case"w":return Y*j2;case"days":case"day":case"d":return Y*Z$;case"hours":case"hour":case"hrs":case"hr":case"h":return Y*j$;case"minutes":case"minute":case"mins":case"min":case"m":return Y*N$;case"seconds":case"second":case"secs":case"sec":case"s":return Y*S$;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Y;default:return}}function y2($){var Z=Math.abs($);if(Z>=Z$)return Math.round($/Z$)+"d";if(Z>=j$)return Math.round($/j$)+"h";if(Z>=N$)return Math.round($/N$)+"m";if(Z>=S$)return Math.round($/S$)+"s";return $+"ms"}function x2($){var Z=Math.abs($);if(Z>=Z$)return d9($,Z,Z$,"day");if(Z>=j$)return d9($,Z,j$,"hour");if(Z>=N$)return d9($,Z,N$,"minute");if(Z>=S$)return d9($,Z,S$,"second");return $+" ms"}function d9($,Z,Y,J){var K=Z>=Y*1.5;return Math.round($/Y)+" "+J+(K?"s":"")}});var l8=A((WC,FG)=>{function k2($){Y.debug=Y,Y.default=Y,Y.coerce=G,Y.disable=Q,Y.enable=K,Y.enabled=U,Y.humanize=WG(),Y.destroy=H,Object.keys($).forEach((V)=>{Y[V]=$[V]}),Y.names=[],Y.skips=[],Y.formatters={};function Z(V){let I=0;for(let E=0;E{if(O==="%%")return"%";W++;let L=Y.formatters[C];if(typeof L==="function"){let F=D[W];O=L.call(S,F),D.splice(W,1),W--}return O}),Y.formatArgs.call(S,D),(S.log||Y.log).apply(S,D)}if(X.namespace=V,X.useColors=Y.useColors(),X.color=Y.selectColor(V),X.extend=J,X.destroy=Y.destroy,Object.defineProperty(X,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(E!==null)return E;if(w!==Y.namespaces)w=Y.namespaces,T=Y.enabled(V);return T},set:(D)=>{E=D}}),typeof Y.init==="function")Y.init(X);return X}function J(V,I){let E=Y(this.namespace+(typeof I>"u"?":":I)+V);return E.log=this.log,E}function K(V){Y.save(V),Y.namespaces=V,Y.names=[],Y.skips=[];let I=(typeof V==="string"?V:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let E of I)if(E[0]==="-")Y.skips.push(E.slice(1));else Y.names.push(E)}function z(V,I){let E=0,w=0,T=-1,X=0;while(E"-"+I)].join(",");return Y.enable(""),V}function U(V){for(let I of Y.skips)if(z(V,I))return!1;for(let I of Y.names)if(z(V,I))return!0;return!1}function G(V){if(V instanceof Error)return V.stack||V.message;return V}function H(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return Y.enable(Y.load()),Y}FG.exports=k2});var RG=A((OG,l9)=>{OG.formatArgs=f2;OG.save=v2;OG.load=g2;OG.useColors=b2;OG.storage=h2();OG.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();OG.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function b2(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function f2($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+l9.exports.humanize(this.diff),!this.useColors)return;let Z="color: "+this.color;$.splice(1,0,Z,"color: inherit");let Y=0,J=0;$[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(Y++,K==="%c")J=Y}),$.splice(J,0,Z)}OG.log=console.debug||console.log||(()=>{});function v2($){try{if($)OG.storage.setItem("debug",$);else OG.storage.removeItem("debug")}catch(Z){}}function g2(){let $;try{$=OG.storage.getItem("debug")||OG.storage.getItem("DEBUG")}catch(Z){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function h2(){try{return localStorage}catch($){}}l9.exports=l8()(OG);var{formatters:u2}=l9.exports;u2.j=function($){try{return JSON.stringify($)}catch(Z){return"[UnexpectedJSONParseError]: "+Z.message}}});var EG=A((OC,IG)=>{IG.exports=($,Z=process.argv)=>{let Y=$.startsWith("-")?"":$.length===1?"-":"--",J=Z.indexOf(Y+$),K=Z.indexOf("--");return J!==-1&&(K===-1||J{var n2=k("os"),AG=k("tty"),j1=EG(),{env:K1}=process,i0;if(j1("no-color")||j1("no-colors")||j1("color=false")||j1("color=never"))i0=0;else if(j1("color")||j1("colors")||j1("color=true")||j1("color=always"))i0=1;if("FORCE_COLOR"in K1)if(K1.FORCE_COLOR==="true")i0=1;else if(K1.FORCE_COLOR==="false")i0=0;else i0=K1.FORCE_COLOR.length===0?1:Math.min(parseInt(K1.FORCE_COLOR,10),3);function i8($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function s8($,Z){if(i0===0)return 0;if(j1("color=16m")||j1("color=full")||j1("color=truecolor"))return 3;if(j1("color=256"))return 2;if($&&!Z&&i0===void 0)return 0;let Y=i0||0;if(K1.TERM==="dumb")return Y;if(process.platform==="win32"){let J=n2.release().split(".");if(Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in K1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((J)=>(J in K1))||K1.CI_NAME==="codeship")return 1;return Y}if("TEAMCITY_VERSION"in K1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K1.TEAMCITY_VERSION)?1:0;if(K1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in K1){let J=parseInt((K1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K1.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K1.TERM))return 1;if("COLORTERM"in K1)return 1;return Y}function r2($){let Z=s8($,$&&$.isTTY);return i8(Z)}wG.exports={supportsColor:r2,stdout:i8(s8(!0,AG.isatty(1))),stderr:i8(s8(!0,AG.isatty(2)))}});var LG=A((DG,s9)=>{var a2=k("tty"),i9=k("util");DG.init=JR;DG.log=$R;DG.formatArgs=t2;DG.save=ZR;DG.load=YR;DG.useColors=o2;DG.destroy=i9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");DG.colors=[6,2,3,4,5,1];try{let $=BG();if($&&($.stderr||$).level>=2)DG.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}DG.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,Z)=>{let Y=Z.substring(6).toLowerCase().replace(/_([a-z])/g,(K,z)=>{return z.toUpperCase()}),J=process.env[Z];if(/^(yes|on|true|enabled)$/i.test(J))J=!0;else if(/^(no|off|false|disabled)$/i.test(J))J=!1;else if(J==="null")J=null;else J=Number(J);return $[Y]=J,$},{});function o2(){return"colors"in DG.inspectOpts?Boolean(DG.inspectOpts.colors):a2.isatty(process.stderr.fd)}function t2($){let{namespace:Z,useColors:Y}=this;if(Y){let J=this.color,K="\x1B[3"+(J<8?J:"8;5;"+J),z=` ${K};1m${Z} \x1B[0m`;$[0]=z+$[0].split(` +`).join(` +`+z),$.push(K+"m+"+s9.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=e2()+Z+" "+$[0]}function e2(){if(DG.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function $R(...$){return process.stderr.write(i9.formatWithOptions(DG.inspectOpts,...$)+` +`)}function ZR($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function YR(){return process.env.DEBUG}function JR($){$.inspectOpts={};let Z=Object.keys(DG.inspectOpts);for(let Y=0;YZ.trim()).join(" ")};CG.O=function($){return this.inspectOpts.colors=this.useColors,i9.inspect($,this.inspectOpts)}});var CZ=A((EC,n8)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)n8.exports=RG();else n8.exports=LG()});var Z1=A((P$)=>{var SG=P$&&P$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(P$,"__esModule",{value:!0});P$.AbstractObject=void 0;var r8=SG(k("assert")),TG=SG(k("util")),XG=CZ()("xcparse:models");class a8{get isa(){return this.props.isa}getReferrers(){return this.getXcodeProject().getReferrers(this.uuid)}get project(){return this.getXcodeProject().rootObject}getXcodeProject(){return this.xcodeProject}constructor($,Z,Y){this.uuid=Z,this.props=Y,Object.defineProperty(this,"xcodeProject",{get(){return $}}),XG(`Inflating model (uuid: ${Z}, isa: ${Y.isa})`),this.setupDefaults(Y)}inflate(){for(let[$,Z]of Object.entries(this.getObjectProps())){if(!($ in this.props))continue;let Y=this.props[$];if(Array.isArray(Y))(0,r8.default)(Z===Array||Array.isArray(Z),`'${String($)}' MUST be of type Array but instead found type: ${typeof Y}`),this.props[$]=Y.map((J)=>{if(typeof J!=="string")return J;try{return this.getXcodeProject().getObject(J)}catch(K){if("message"in K&&K.message.includes("object with uuid"))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String($)} > ${J}`);else throw K;return null}}).filter(Boolean);else if(Y!=null){if(Y instanceof a8){this.props[$]=this.getXcodeProject().getObject(Y.uuid);continue}(0,r8.default)(typeof this.props[$]==="string",`'${String($)}' MUST be of type string (UUID) but instead found type: ${typeof Y}`);try{this.props[$]=this.getXcodeProject().getObject(Y)}catch(J){if("message"in J&&J.message.includes("object with uuid"))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String($)} > ${Y}`);else throw J}}}}setupDefaults($){}getDisplayName(){if("name"in this.props)return this.props.name;return this.isa.replace(/^(PBX|XC)/,"")}isReferencing($){for(let Z of Object.keys(this.getObjectProps())){let Y=this.props[Z];if(Array.isArray(Y)){if(Y.some((J)=>J?.uuid===$))return!0}else if(Y&&typeof Y==="object"&&"uuid"in Y){if(Y.uuid===$)return!0}}return!1}toJSON(){(0,r8.default)(this.isa,"isa is not defined for "+this.uuid),XG("to JSON for",this.isa,this.uuid,this.constructor.name);let $={...this.props};for(let Z of Object.keys(this.getObjectProps()))if(Z in this.props){let Y=this.props[Z],J=void 0;if(VR(Y))J=Y.map((z)=>z.uuid);else if(Array.isArray(Y))throw Error(TG.default.format("Unable to serialize array of unknown objects (some missing 'uuid' property): %O",Y));else if(WR(Y))J=Y.uuid;if(J)$[Z]=J;else throw Error(TG.default.format("Unable to serialize object: %O",Y))}return $}removeReference($){for(let Z of Object.keys(this.getObjectProps())){let Y=this.props[Z];if(Array.isArray(Y)){let J=Y.findIndex((K)=>K?.uuid===$);if(J!==-1)Y.splice(J,1)}else if(Y&&typeof Y==="object"&&"uuid"in Y){if(Y.uuid===$)this.props[Z]=void 0}}}removeFromProject(){this.getXcodeProject().delete(this.uuid),this.getReferrers().forEach((Z)=>{Z.removeReference(this.uuid)})}}P$.AbstractObject=a8;function VR($){return Array.isArray($)&&$.every((Z)=>typeof Z.uuid==="string")}function WR($){return typeof $.uuid==="string"&&typeof $.isa==="string"}});var J$=A((Y0)=>{var FR=Y0&&Y0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),OR=Y0&&Y0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),RR=Y0&&Y0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))FR(Z,$,Y)}return OR(Z,$),Z};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.PBXBuildFile=void 0;var IR=RR(l()),ER=Z1();class _$ extends ER.AbstractObject{static is($){return $.isa===_$.isa}static create($,Z){return $.createModel({isa:_$.isa,...Z})}static createFromProductRef($,Z){return $.createModel({isa:_$.isa,...Z})}getObjectProps(){return{fileRef:String,productRef:String}}isReferencing($){return[this.props.fileRef?.uuid,this.props.productRef?.uuid].includes($)}getDisplayName(){if(this.props.productRef)return this.props.productRef.getDisplayName();else if(this.props.fileRef)return this.props.fileRef.getDisplayName();return super.getDisplayName()}}Y0.PBXBuildFile=_$;_$.isa=IR.ISA.PBXBuildFile});var a9=A((I1)=>{var AR=I1&&I1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),wR=I1&&I1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),BR=I1&&I1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))AR(Z,$,Y)}return wR(Z,$),Z},CR=I1&&I1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(I1,"__esModule",{value:!0});I1.createBuildableReference=I1.XCScheme=void 0;var n9=k("fs"),r9=CR(k("path")),o8=BR(u9()),DR={running:!0,testing:!0,profiling:!0,archiving:!0,analyzing:!0};class DZ{constructor($,Z,Y){this.name=$,this.props=Z,this.filePath=Y}static open($){let Z=(0,n9.readFileSync)($,"utf-8"),Y=o8.parse(Z),J=r9.default.basename($,".xcscheme");return new DZ(J,Y,$)}static create($,Z){let J={...{version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0,testables:[]},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}}};if(Z)Object.assign(J,Z);return new DZ($,J)}static createForTarget($,Z,Y){let J=Z??$.props.name,K=Y?`container:${r9.default.basename(Y)}`:`container:${r9.default.basename($.getXcodeProject().filePath,"/project.pbxproj")}.xcodeproj`,z=NG($,K),Q=DZ.create(J);return Q.addBuildTarget(z),Q.setLaunchTarget(z),Q}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");let Y=r9.default.dirname(Z);if(!(0,n9.existsSync)(Y))(0,n9.mkdirSync)(Y,{recursive:!0});let J=o8.build(this.props);(0,n9.writeFileSync)(Z,J,"utf-8"),this.filePath=Z}toXML(){return o8.build(this.props)}getBuildableReference($){let Z=this.props.buildAction?.entries??[];for(let Y of Z)if(Y.buildableReference?.blueprintIdentifier===$)return Y.buildableReference;return null}addBuildTarget($,Z){if(!this.props.buildAction)this.props.buildAction={parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]};if(!this.props.buildAction.entries)this.props.buildAction.entries=[];if(this.props.buildAction.entries.find((z)=>z.buildableReference?.blueprintIdentifier===$.blueprintIdentifier))return;let J={...DR,...Z},K={buildForRunning:J.running,buildForTesting:J.testing,buildForProfiling:J.profiling,buildForArchiving:J.archiving,buildForAnalyzing:J.analyzing,buildableReference:$};this.props.buildAction.entries.push(K)}addTestTarget($){if(!this.props.testAction)this.props.testAction={buildConfiguration:"Debug",testables:[]};if(!this.props.testAction.testables)this.props.testAction.testables=[];if(this.props.testAction.testables.find((Y)=>Y.buildableReference?.blueprintIdentifier===$.blueprintIdentifier))return;this.props.testAction.testables.push({skipped:!1,buildableReference:$})}setLaunchTarget($){if(!this.props.launchAction)this.props.launchAction={buildConfiguration:"Debug"};if(this.props.launchAction.buildableProductRunnable={runnableDebuggingMode:"0",buildableReference:$},!this.props.profileAction)this.props.profileAction={buildConfiguration:"Release"};this.props.profileAction.buildableProductRunnable={runnableDebuggingMode:"0",buildableReference:$}}setLaunchEnvironmentVariable($,Z,Y=!0){if(!this.props.launchAction)this.props.launchAction={buildConfiguration:"Debug"};if(!this.props.launchAction.environmentVariables)this.props.launchAction.environmentVariables=[];let J=this.props.launchAction.environmentVariables.find((K)=>K.key===$);if(J){J.value=Z,J.isEnabled=Y;return}this.props.launchAction.environmentVariables.push({key:$,value:Z,isEnabled:Y})}addLaunchArgument($,Z=!0){if(!this.props.launchAction)this.props.launchAction={buildConfiguration:"Debug"};if(!this.props.launchAction.commandLineArguments)this.props.launchAction.commandLineArguments=[];let Y=this.props.launchAction.commandLineArguments.find((J)=>J.argument===$);if(Y){Y.isEnabled=Z;return}this.props.launchAction.commandLineArguments.push({argument:$,isEnabled:Z})}}I1.XCScheme=DZ;function NG($,Z){let Y=$.props.productReference?.getDisplayName()??`${$.props.name}.app`;return{buildableIdentifier:"primary",blueprintIdentifier:$.uuid,buildableName:Y,blueprintName:$.props.name,referencedContainer:Z}}I1.createBuildableReference=NG});var yG=A((PG)=>{Object.defineProperty(PG,"__esModule",{value:!0});PG.parse=void 0;var MR=IZ();function LR($){let J=new MR.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Bucket")throw Error("Invalid breakpoint list file: root element must be ");return TR(J)}PG.parse=LR;function TR($){let Z={};Z.uuid=f($,"uuid"),Z.type=f($,"type"),Z.version=f($,"version");let Y=y$($,"Breakpoints");if(Y)Z.breakpoints=t8(Y,"BreakpointProxy").map(XR);return Z}function XR($){let Z={breakpointExtensionID:f($,"BreakpointExtensionID")||""},Y=y$($,"BreakpointContent");if(Y)Z.breakpointContent=SR(Y);return Z}function SR($){let Z={};Z.uuid=f($,"uuid"),Z.shouldBeEnabled=MZ($,"shouldBeEnabled"),Z.ignoreCount=jG($,"ignoreCount"),Z.continueAfterRunningActions=MZ($,"continueAfterRunningActions"),Z.filePath=f($,"filePath"),Z.startingColumnNumber=f($,"startingColumnNumber"),Z.endingColumnNumber=f($,"endingColumnNumber"),Z.startingLineNumber=f($,"startingLineNumber"),Z.endingLineNumber=f($,"endingLineNumber"),Z.landmarkName=f($,"landmarkName"),Z.landmarkType=f($,"landmarkType"),Z.condition=f($,"condition"),Z.scope=f($,"scope"),Z.symbolName=f($,"symbolName"),Z.moduleName=f($,"moduleName"),Z.exceptionType=f($,"exceptionType"),Z.stopOnStyle=f($,"stopOnStyle");let Y=y$($,"Actions");if(Y)Z.actions=t8(Y,"BreakpointActionProxy").map(NR);let J=y$($,"Locations");if(J)Z.locations=t8(J,"BreakpointLocationProxy").map(PR);return Z}function NR($){let Z={actionExtensionID:f($,"ActionExtensionID")||""},Y=y$($,"ActionContent");if(Y)Z.actionContent=jR(Y);return Z}function jR($){let Z={};return Z.consoleCommand=f($,"consoleCommand"),Z.message=f($,"message"),Z.conveyanceType=f($,"conveyanceType"),Z.shellCommand=f($,"shellCommand"),Z.shellArguments=f($,"shellArguments"),Z.waitUntilDone=MZ($,"waitUntilDone"),Z.script=f($,"script"),Z.soundName=f($,"soundName"),Z}function PR($){let Y=y$($,"BreakpointLocationContent")||$,J={};return J.uuid=f(Y,"uuid"),J.shouldBeEnabled=MZ(Y,"shouldBeEnabled"),J.ignoreCount=jG(Y,"ignoreCount"),J.continueAfterRunningActions=MZ(Y,"continueAfterRunningActions"),J.symbolName=f(Y,"symbolName"),J.moduleName=f(Y,"moduleName"),J.urlString=f(Y,"urlString"),J.startingLineNumber=f(Y,"startingLineNumber"),J.endingLineNumber=f(Y,"endingLineNumber"),J.startingColumnNumber=f(Y,"startingColumnNumber"),J.endingColumnNumber=f(Y,"endingColumnNumber"),J}function f($,Z){if(!$.hasAttribute(Z))return;return $.getAttribute(Z)??void 0}function MZ($,Z){let Y=$.getAttribute(Z);if(Y==="Yes"||Y==="YES")return!0;if(Y==="No"||Y==="NO")return!1;return}function jG($,Z){let Y=$.getAttribute(Z);if(Y===null||Y===void 0)return;let J=parseInt(Y,10);return isNaN(J)?void 0:J}function y$($,Z){let Y=$.childNodes;for(let J=0;J{Object.defineProperty(xG,"__esModule",{value:!0});xG.build=void 0;function _R($){let Z=[];Z.push(''),Z.push("` ${J}`)),Z[Z.length-1]+=">",$.breakpoints&&$.breakpoints.length>0){Z.push(`${A1(1)}`);for(let J of $.breakpoints)Z.push(...xR(J,2));Z.push(`${A1(1)}`)}return Z.push(""),Z.join(` +`)+` +`}xG.build=_R;function yR($){let Z=[];if($.uuid!==void 0)Z.push(`uuid = "${$.uuid}"`);if($.type!==void 0)Z.push(`type = "${$.type}"`);if($.version!==void 0)Z.push(`version = "${$.version}"`);return Z}function xR($,Z){let Y=[],J=A1(Z);if(Y.push(`${J}`),$.breakpointContent)Y.push(...kR($.breakpointContent,Z+1));return Y.push(`${J}`),Y}function kR($,Z){let Y=[],J=A1(Z),K=[];if($.uuid!==void 0)K.push(`uuid = "${$.uuid}"`);if($.shouldBeEnabled!==void 0)K.push(`shouldBeEnabled = "${LZ($.shouldBeEnabled)}"`);if($.ignoreCount!==void 0)K.push(`ignoreCount = "${$.ignoreCount}"`);if($.continueAfterRunningActions!==void 0)K.push(`continueAfterRunningActions = "${LZ($.continueAfterRunningActions)}"`);if($.filePath!==void 0)K.push(`filePath = "${E1($.filePath)}"`);if($.startingColumnNumber!==void 0)K.push(`startingColumnNumber = "${$.startingColumnNumber}"`);if($.endingColumnNumber!==void 0)K.push(`endingColumnNumber = "${$.endingColumnNumber}"`);if($.startingLineNumber!==void 0)K.push(`startingLineNumber = "${$.startingLineNumber}"`);if($.endingLineNumber!==void 0)K.push(`endingLineNumber = "${$.endingLineNumber}"`);if($.landmarkName!==void 0)K.push(`landmarkName = "${E1($.landmarkName)}"`);if($.landmarkType!==void 0)K.push(`landmarkType = "${$.landmarkType}"`);if($.condition!==void 0)K.push(`condition = "${E1($.condition)}"`);if($.scope!==void 0)K.push(`scope = "${$.scope}"`);if($.symbolName!==void 0)K.push(`symbolName = "${E1($.symbolName)}"`);if($.moduleName!==void 0)K.push(`moduleName = "${E1($.moduleName)}"`);if($.exceptionType!==void 0)K.push(`exceptionType = "${$.exceptionType}"`);if($.stopOnStyle!==void 0)K.push(`stopOnStyle = "${$.stopOnStyle}"`);Y.push(`${J}0||$.locations&&$.locations.length>0){if(Y[Y.length-1]+=">",$.actions&&$.actions.length>0){Y.push(`${A1(Z+1)}`);for(let Q of $.actions)Y.push(...bR(Q,Z+2));Y.push(`${A1(Z+1)}`)}if($.locations&&$.locations.length>0){Y.push(`${A1(Z+1)}`);for(let Q of $.locations)Y.push(...vR(Q,Z+2));Y.push(`${A1(Z+1)}`)}Y.push(`${J}`)}else Y[Y.length-1]+=">",Y.push(`${J}`);return Y}function bR($,Z){let Y=[],J=A1(Z);if(Y.push(`${J}`),$.actionContent)Y.push(...fR($.actionContent,Z+1));return Y.push(`${J}`),Y}function fR($,Z){let Y=[],J=A1(Z),K=[];if($.consoleCommand!==void 0)K.push(`consoleCommand = "${E1($.consoleCommand)}"`);if($.message!==void 0)K.push(`message = "${E1($.message)}"`);if($.conveyanceType!==void 0)K.push(`conveyanceType = "${$.conveyanceType}"`);if($.shellCommand!==void 0)K.push(`shellCommand = "${E1($.shellCommand)}"`);if($.shellArguments!==void 0)K.push(`shellArguments = "${E1($.shellArguments)}"`);if($.waitUntilDone!==void 0)K.push(`waitUntilDone = "${LZ($.waitUntilDone)}"`);if($.script!==void 0)K.push(`script = "${E1($.script)}"`);if($.soundName!==void 0)K.push(`soundName = "${E1($.soundName)}"`);Y.push(`${J}`),Y}function vR($,Z){let Y=[],J=A1(Z),K=[];if($.uuid!==void 0)K.push(`uuid = "${$.uuid}"`);if($.shouldBeEnabled!==void 0)K.push(`shouldBeEnabled = "${LZ($.shouldBeEnabled)}"`);if($.ignoreCount!==void 0)K.push(`ignoreCount = "${$.ignoreCount}"`);if($.continueAfterRunningActions!==void 0)K.push(`continueAfterRunningActions = "${LZ($.continueAfterRunningActions)}"`);if($.symbolName!==void 0)K.push(`symbolName = "${E1($.symbolName)}"`);if($.moduleName!==void 0)K.push(`moduleName = "${E1($.moduleName)}"`);if($.urlString!==void 0)K.push(`urlString = "${E1($.urlString)}"`);if($.startingLineNumber!==void 0)K.push(`startingLineNumber = "${$.startingLineNumber}"`);if($.endingLineNumber!==void 0)K.push(`endingLineNumber = "${$.endingLineNumber}"`);if($.startingColumnNumber!==void 0)K.push(`startingColumnNumber = "${$.startingColumnNumber}"`);if($.endingColumnNumber!==void 0)K.push(`endingColumnNumber = "${$.endingColumnNumber}"`);Y.push(`${J}`),Y.push(`${A1(Z+1)}`),Y.push(`${J}`),Y}function A1($){return" ".repeat($)}function LZ($){return $?"Yes":"No"}function E1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var vG=A((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0})});var gG=A((m1)=>{var gR=m1&&m1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),hR=m1&&m1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))gR(Z,$,Y)};Object.defineProperty(m1,"__esModule",{value:!0});m1.build=m1.parse=void 0;var uR=yG();Object.defineProperty(m1,"parse",{enumerable:!0,get:function(){return uR.parse}});var mR=bG();Object.defineProperty(m1,"build",{enumerable:!0,get:function(){return mR.build}});hR(vG(),m1)});var hG=A((x$)=>{var cR=x$&&x$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(x$,"__esModule",{value:!0});x$.parse=void 0;var pR=cR(X$());function dR($){let Z=pR.default.parse($),Y={};if(typeof Z.BuildSystemType==="string")Y.BuildSystemType=Z.BuildSystemType;if(typeof Z.DerivedDataLocationStyle==="string")Y.DerivedDataLocationStyle=Z.DerivedDataLocationStyle;if(typeof Z.DerivedDataCustomLocation==="string")Y.DerivedDataCustomLocation=Z.DerivedDataCustomLocation;if(typeof Z.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded==="boolean")Y.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=Z.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded;if(typeof Z.PreviewsEnabled==="boolean")Y.PreviewsEnabled=Z.PreviewsEnabled;if(typeof Z.BuildLocationStyle==="string")Y.BuildLocationStyle=Z.BuildLocationStyle;if(typeof Z.LiveSourceIssuesEnabled==="boolean")Y.LiveSourceIssuesEnabled=Z.LiveSourceIssuesEnabled;if(typeof Z.GatherCoverageData==="boolean")Y.GatherCoverageData=Z.GatherCoverageData;if(typeof Z.IDEIndexEnableInWorkspace==="boolean")Y.IDEIndexEnableInWorkspace=Z.IDEIndexEnableInWorkspace;return Y}x$.parse=dR});var uG=A((k$)=>{var lR=k$&&k$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(k$,"__esModule",{value:!0});k$.build=void 0;var iR=lR(X$());function sR($){let Z={};if($.BuildSystemType!==void 0)Z.BuildSystemType=$.BuildSystemType;if($.DerivedDataLocationStyle!==void 0)Z.DerivedDataLocationStyle=$.DerivedDataLocationStyle;if($.DerivedDataCustomLocation!==void 0)Z.DerivedDataCustomLocation=$.DerivedDataCustomLocation;if($.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded!==void 0)Z.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=$.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded;if($.PreviewsEnabled!==void 0)Z.PreviewsEnabled=$.PreviewsEnabled;if($.BuildLocationStyle!==void 0)Z.BuildLocationStyle=$.BuildLocationStyle;if($.LiveSourceIssuesEnabled!==void 0)Z.LiveSourceIssuesEnabled=$.LiveSourceIssuesEnabled;if($.GatherCoverageData!==void 0)Z.GatherCoverageData=$.GatherCoverageData;if($.IDEIndexEnableInWorkspace!==void 0)Z.IDEIndexEnableInWorkspace=$.IDEIndexEnableInWorkspace;return iR.default.build(Z)}k$.build=sR});var cG=A((mG)=>{Object.defineProperty(mG,"__esModule",{value:!0})});var pG=A((c1)=>{var nR=c1&&c1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),rR=c1&&c1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))nR(Z,$,Y)};Object.defineProperty(c1,"__esModule",{value:!0});c1.build=c1.parse=void 0;var aR=hG();Object.defineProperty(c1,"parse",{enumerable:!0,get:function(){return aR.parse}});var oR=uG();Object.defineProperty(c1,"build",{enumerable:!0,get:function(){return oR.build}});rR(cG(),c1)});var t9=A((P1)=>{var tR=P1&&P1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),eR=P1&&P1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),e8=P1&&P1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))tR(Z,$,Y)}return eR(Z,$),Z},$3=P1&&P1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(P1,"__esModule",{value:!0});P1.XCSharedData=void 0;var a=k("fs"),L1=$3(k("path")),dG=e8(gG()),lG=e8(pG()),iG=e8(u9()),sG=a9();class o9{constructor($){this._breakpointsLoaded=!1,this._workspaceSettingsLoaded=!1,this._schemeManagementLoaded=!1,this.filePath=$}static open($){if(!(0,a.existsSync)($))throw Error(`Shared data directory does not exist: ${$}`);return new o9($)}static create(){return new o9}getSchemesDir(){if(!this.filePath)return;return L1.default.join(this.filePath,"xcschemes")}getSchemes(){let $=this.getSchemesDir();if(!$||!(0,a.existsSync)($))return[];return(0,a.readdirSync)($).filter((Y)=>Y.endsWith(".xcscheme")).map((Y)=>sG.XCScheme.open(L1.default.join($,Y)))}getScheme($){let Z=this.getSchemesDir();if(!Z)return null;let Y=L1.default.join(Z,`${$}.xcscheme`);if(!(0,a.existsSync)(Y))return null;return sG.XCScheme.open(Y)}saveScheme($){if(!this.filePath)throw Error("Cannot save scheme: no file path set for XCSharedData");let Z=L1.default.join(this.filePath,"xcschemes");if(!(0,a.existsSync)(Z))(0,a.mkdirSync)(Z,{recursive:!0});let Y=L1.default.join(Z,`${$.name}.xcscheme`);$.save(Y)}get schemeManagement(){if(this._schemeManagementLoaded)return this._schemeManagement;if(this._schemeManagementLoaded=!0,!this.filePath)return;let $=L1.default.join(this.filePath,"xcschemes","xcschememanagement.plist");if(!(0,a.existsSync)($))return;let Z=(0,a.readFileSync)($,"utf-8");return this._schemeManagement=iG.parseManagement(Z),this._schemeManagement}set schemeManagement($){this._schemeManagement=$,this._schemeManagementLoaded=!0}saveSchemeManagement(){if(!this.filePath)throw Error("Cannot save scheme management: no file path set for XCSharedData");let $=L1.default.join(this.filePath,"xcschemes");if(!(0,a.existsSync)($))(0,a.mkdirSync)($,{recursive:!0});let Z=L1.default.join($,"xcschememanagement.plist");if(this._schemeManagement){let Y=iG.buildManagement(this._schemeManagement);(0,a.writeFileSync)(Z,Y,"utf-8")}}getBreakpointsPath(){if(!this.filePath)return;return L1.default.join(this.filePath,"xcdebugger","Breakpoints_v2.xcbkptlist")}get breakpoints(){if(this._breakpointsLoaded)return this._breakpoints;this._breakpointsLoaded=!0;let $=this.getBreakpointsPath();if(!$||!(0,a.existsSync)($))return;let Z=(0,a.readFileSync)($,"utf-8");return this._breakpoints=dG.parse(Z),this._breakpoints}set breakpoints($){this._breakpoints=$,this._breakpointsLoaded=!0}saveBreakpoints(){if(!this.filePath)throw Error("Cannot save breakpoints: no file path set for XCSharedData");let $=L1.default.join(this.filePath,"xcdebugger");if(!(0,a.existsSync)($))(0,a.mkdirSync)($,{recursive:!0});let Z=L1.default.join($,"Breakpoints_v2.xcbkptlist");if(this._breakpoints){let Y=dG.build(this._breakpoints);(0,a.writeFileSync)(Z,Y,"utf-8")}}getWorkspaceSettingsPath(){if(!this.filePath)return;return L1.default.join(this.filePath,"WorkspaceSettings.xcsettings")}get workspaceSettings(){if(this._workspaceSettingsLoaded)return this._workspaceSettings;this._workspaceSettingsLoaded=!0;let $=this.getWorkspaceSettingsPath();if(!$||!(0,a.existsSync)($))return;let Z=(0,a.readFileSync)($,"utf-8");return this._workspaceSettings=lG.parse(Z),this._workspaceSettings}set workspaceSettings($){this._workspaceSettings=$,this._workspaceSettingsLoaded=!0}saveWorkspaceSettings(){if(!this.filePath)throw Error("Cannot save workspace settings: no file path set for XCSharedData");if(!(0,a.existsSync)(this.filePath))(0,a.mkdirSync)(this.filePath,{recursive:!0});let $=L1.default.join(this.filePath,"WorkspaceSettings.xcsettings");if(this._workspaceSettings){let Z=lG.build(this._workspaceSettings);(0,a.writeFileSync)($,Z,"utf-8")}}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");if(this.filePath=Z,!(0,a.existsSync)(Z))(0,a.mkdirSync)(Z,{recursive:!0});if(this._breakpointsLoaded&&this._breakpoints)this.saveBreakpoints();if(this._workspaceSettingsLoaded&&this._workspaceSettings)this.saveWorkspaceSettings();if(this._schemeManagementLoaded&&this._schemeManagement)this.saveSchemeManagement()}}P1.XCSharedData=o9});var p1=A((s)=>{var Z3=s&&s.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),Y3=s&&s.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),J3=s&&s.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))Z3(Z,$,Y)}return Y3(Z,$),Z};Object.defineProperty(s,"__esModule",{value:!0});s.PBXShellScriptBuildPhase=s.PBXFrameworksBuildPhase=s.PBXRezBuildPhase=s.PBXAppleScriptBuildPhase=s.PBXHeadersBuildPhase=s.PBXResourcesBuildPhase=s.PBXSourcesBuildPhase=s.PBXCopyFilesBuildPhase=s.AbstractBuildPhase=void 0;var s0=J3(l()),K3=Z1(),nG=J$();class J0 extends K3.AbstractObject{getObjectProps(){return{files:[String]}}createFile($){let Z=nG.PBXBuildFile.create(this.getXcodeProject(),$);return this.props.files.push(Z),Z}ensureFile($){let Z=this.getBuildFile($.fileRef);if(Z)return Z;return this.createFile($)}getFileReferences(){return this.props.files.map(($)=>$.props.fileRef)}getBuildFile($){if(!this.props.files.length)return null;return(typeof $==="string"?this.getXcodeProject().getReferrers($):$.getReferrers()).filter((Y)=>nG.PBXBuildFile.is(Y)).find((Y)=>{return this.props.files.some((J)=>J.uuid===Y.uuid)})??null}includesFile($){return!!this.getBuildFile($)}isReferencing($){return!!this.props.files.find((Z)=>Z.uuid===$)}removeFileReference($){this.props.files.filter((Y)=>Y.props.fileRef?.uuid===$.uuid).forEach((Y)=>{this.props.files.splice(this.props.files.indexOf(Y),1),Y.removeFromProject()})}removeBuildFile($){$.removeFromProject()}setupDefaults(){if(this.props.buildActionMask==null)this.props.buildActionMask=2147483647;if(this.props.runOnlyForDeploymentPostprocessing==null)this.props.runOnlyForDeploymentPostprocessing=0;if(!this.props.files)this.props.files=[]}}s.AbstractBuildPhase=J0;class e9 extends J0{static is($){return $.isa===e9.isa}getDisplayName(){return super.getDisplayName().replace(/BuildPhase$/,"")}isAppExtensionFileRef($){if($.props.fileRef&&$.props.fileRef.isa==="PBXFileReference"&&"isAppExtension"in $.props.fileRef&&$.props.fileRef.isAppExtension())return $.props.fileRef;return null}ensureDefaultsForTarget($){if($.isWatchOSTarget())this.props.dstPath="$(CONTENTS_FOLDER_PATH)/Watch",this.props.dstSubfolderSpec=16,this.props.name="Embed Watch Content";else if($.props.productType==="com.apple.product-type.application.on-demand-install-capable")this.props.dstPath="$(CONTENTS_FOLDER_PATH)/AppClips",this.props.dstSubfolderSpec=16,this.props.name="Embed App Clips";else if($.props.productType==="com.apple.product-type.extensionkit-extension")this.props.dstPath="$(EXTENSIONS_FOLDER_PATH)",this.props.dstSubfolderSpec=16,this.props.name="Embed ExtensionKit Extensions";else if($.props.productReference?.isAppExtension())this.props.dstSubfolderSpec=13,this.props.name="Embed Foundation Extensions"}setupDefaults(){let $=this.props.files.map((Z)=>typeof Z!=="string"&&this.isAppExtensionFileRef(Z)).filter(Boolean);if($.length){let Z=$.map((Y)=>Y.getTargetReferrers()).flat().filter(Boolean)[0];if(Z)this.ensureDefaultsForTarget(Z)}if(!this.props.dstPath)this.props.dstPath="";if(!this.props.dstSubfolderSpec)this.props.dstSubfolderSpec=7;super.setupDefaults()}}s.PBXCopyFilesBuildPhase=e9;e9.isa=s0.ISA.PBXCopyFilesBuildPhase;class $Y extends J0{static is($){return $.isa===$Y.isa}}s.PBXSourcesBuildPhase=$Y;$Y.isa=s0.ISA.PBXSourcesBuildPhase;class ZY extends J0{static is($){return $.isa===ZY.isa}}s.PBXResourcesBuildPhase=ZY;ZY.isa=s0.ISA.PBXResourcesBuildPhase;class YY extends J0{static is($){return $.isa===YY.isa}}s.PBXHeadersBuildPhase=YY;YY.isa=s0.ISA.PBXHeadersBuildPhase;class JY extends J0{static is($){return $.isa===JY.isa}}s.PBXAppleScriptBuildPhase=JY;JY.isa=s0.ISA.PBXAppleScriptBuildPhase;class KY extends J0{static is($){return $.isa===KY.isa}}s.PBXRezBuildPhase=KY;KY.isa=s0.ISA.PBXRezBuildPhase;class zY extends J0{static is($){return $.isa===zY.isa}}s.PBXFrameworksBuildPhase=zY;zY.isa=s0.ISA.PBXFrameworksBuildPhase;class QY extends J0{static is($){return $.isa===QY.isa}setupDefaults(){if(!this.props.shellPath)this.props.shellPath="/bin/sh";if(!this.props.shellScript)this.props.shellScript=`# Type a script or drag a script file from your workspace to insert its path. +`;super.setupDefaults()}}s.PBXShellScriptBuildPhase=QY;QY.isa=s0.ISA.PBXShellScriptBuildPhase});var $J=A((K0)=>{var z3=K0&&K0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),Q3=K0&&K0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),G3=K0&&K0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))z3(Z,$,Y)}return Q3(Z,$),Z};Object.defineProperty(K0,"__esModule",{value:!0});K0.PBXVariantGroup=void 0;var U3=G3(l()),q3=b$();class TZ extends q3.AbstractGroup{static is($){return $.isa===TZ.isa}static create($,Z){return $.createModel({isa:TZ.isa,children:[],sourceTree:"",...Z})}}K0.PBXVariantGroup=TZ;TZ.isa=U3.ISA.PBXVariantGroup});var ZJ=A((z0)=>{var H3=z0&&z0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),V3=z0&&z0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),W3=z0&&z0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))H3(Z,$,Y)}return V3(Z,$),Z};Object.defineProperty(z0,"__esModule",{value:!0});z0.XCVersionGroup=void 0;var F3=W3(l()),O3=b$();class XZ extends O3.AbstractGroup{static is($){return $.isa===XZ.isa}static create($,Z){return $.createModel({isa:XZ.isa,children:[],sourceTree:"",versionGroupType:"wrapper.xcdatamodel",...Z})}setupDefaults(){if(!this.props.versionGroupType)this.props.versionGroupType="wrapper.xcdatamodel";super.setupDefaults()}}z0.XCVersionGroup=XZ;XZ.isa=F3.ISA.XCVersionGroup});var YJ=A((Q0)=>{var R3=Q0&&Q0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),I3=Q0&&Q0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),E3=Q0&&Q0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))R3(Z,$,Y)}return I3(Z,$),Z};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.PBXFileSystemSynchronizedRootGroup=void 0;var A3=E3(l()),w3=Z1();class SZ extends w3.AbstractObject{static is($){return $.isa===SZ.isa}static create($,Z){return $.createModel({isa:SZ.isa,...Z})}getObjectProps(){return{exceptions:[String]}}removeFromProject(){if(this.props.exceptions)for(let $ of[...this.props.exceptions]){let Z=$.getReferrers();if(Z.length===1&&Z[0].uuid===this.uuid)$.removeFromProject()}return super.removeFromProject()}}Q0.PBXFileSystemSynchronizedRootGroup=SZ;SZ.isa=A3.ISA.PBXFileSystemSynchronizedRootGroup});var JJ=A((G0)=>{var B3=G0&&G0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),C3=G0&&G0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),D3=G0&&G0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))B3(Z,$,Y)}return C3(Z,$),Z};Object.defineProperty(G0,"__esModule",{value:!0});G0.PBXFileSystemSynchronizedBuildFileExceptionSet=void 0;var M3=D3(l()),L3=Z1();class f$ extends L3.AbstractObject{static is($){return $.isa===f$.isa}static create($,Z){return $.createModel({isa:f$.isa,...Z})}getObjectProps(){return{target:String}}getDisplayName(){return f$.isa}}G0.PBXFileSystemSynchronizedBuildFileExceptionSet=f$;f$.isa=M3.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet});var KJ=A((U0)=>{var T3=U0&&U0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),X3=U0&&U0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),S3=U0&&U0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))T3(Z,$,Y)}return X3(Z,$),Z};Object.defineProperty(U0,"__esModule",{value:!0});U0.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=void 0;var N3=S3(l()),j3=Z1(),rG=p9();class NZ extends j3.AbstractObject{static is($){return $.isa===NZ.isa}static create($,Z){return $.createModel({isa:NZ.isa,...Z})}getObjectProps(){return{buildPhase:String}}getDisplayName(){let $="name"in this.props.buildPhase.props?this.props.buildPhase.props.name:this.props.buildPhase.getDisplayName(),Z=(0,rG.getReferringTargets)(this.props.buildPhase),Y=`Exceptions for "${(0,rG.getParent)(this).getDisplayName()}" folder in "${$}" phase`;if(Z.length===1)Y+=` from "${Z[0].getDisplayName()}" target`;return Y}}U0.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=NZ;NZ.isa=N3.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet});var tG=A((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.uniqueBy=void 0;function P3($,Z){let Y=new Set;return $.filter((J)=>{let K=Z(J);if(Y.has(K))return!1;return Y.add(K),!0})}aG.uniqueBy=P3});var eG=A((v$)=>{var _3=v$&&v$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(v$,"__esModule",{value:!0});v$.resolveXcodeBuildSetting=void 0;var jZ=_3(k("node:path"));function GY($,Z){let Y=$?.replace(/\$\(([^()]*|\([^)]*\))\)/g,(J)=>{let[K,...z]=J.slice(2,-1).split(":"),Q=Z(K);if(Q)Q=GY(Q,Z);let U=Q;return z.forEach((G)=>{switch(G){case"lower":U=U?.toLowerCase();break;case"upper":U=U?.toUpperCase();break;case"suffix":if(U)U=jZ.default.extname(U);break;case"file":if(U)U=jZ.default.basename(U);break;case"dir":if(U)U=jZ.default.dirname(U);break;case"base":if(U){let H=jZ.default.basename(U),V=H.lastIndexOf(".");U=V===-1?H:H.slice(0,V)}break;case"rfc1034identifier":U=U?.replace(/[^a-zA-Z0-9]/g,"-");break;case"c99extidentifier":U=U?.replace(/[-\s]/g,"_");break;case"standardizepath":if(U)U=jZ.default.resolve(U);break;default:U||(U=G.match(/default=(.*)/)?.[1]);break}}),GY(U??"",Z)});if(Y!==$)return GY(Y,Z);return $}v$.resolveXcodeBuildSetting=GY});var zU=A((_1)=>{var y3=_1&&_1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),x3=_1&&_1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),ZU=_1&&_1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))y3(Z,$,Y)}return x3(Z,$),Z};Object.defineProperty(_1,"__esModule",{value:!0});_1.parseFile=_1.parse=void 0;var $U=ZU(k("node:fs")),g$=ZU(k("node:path")),k3=/^#include(\?)?\s*"(.+)"$/,b3=/^([a-zA-Z_][a-zA-Z0-9_]*(?:\[[^\]]+\])*)\s*=\s*(.*)$/,YU=/\[([a-zA-Z]+)=([^\]]+)\]/g,f3=/\/\/.*/;function JU($){let Z=[],Y=[],J=$.split(/\r?\n/);for(let K of J){let z=K.replace(f3,"").trim();if(!z)continue;let Q=z.match(k3);if(Q){let G=Q[1]==="?",H=Q[2];Z.push({include:{path:H,optional:G},resolvedPath:H,config:void 0});continue}let U=z.match(b3);if(U){let G=U[1],H=U[2].trim(),V=v3(G),I=G.replace(YU,"");Y.push({key:I,value:H,conditions:V.length>0?V:void 0})}}return{includes:Z,buildSettings:Y}}_1.parse=JU;function v3($){let Z=[],Y,J=new RegExp(YU);while((Y=J.exec($))!==null){let K=Y[1].toLowerCase(),z=Y[2],Q={};if(K==="sdk")Q.sdk=z;else if(K==="arch")Q.arch=z;else if(K==="config")Q.config=z;if(Object.keys(Q).length>0)Z.push(Q)}return Z}function KU($,Z={}){let{basePath:Y=g$.dirname($),resolveIncludes:J=!0,visitedPaths:K=new Set}=Z,z=g$.isAbsolute($)?$:g$.resolve(Y,$);if(K.has(z))throw Error(`Circular include detected: ${z}`);let Q=$U.readFileSync(z,"utf-8"),U=JU(Q);if(!J)return U;let G=new Set(K);G.add(z);let H=[],V=g$.dirname(z);for(let I of U.includes){let E=I.include.path,w=g$.resolve(V,E);try{if(!$U.existsSync(w)){if(I.include.optional){H.push({include:I.include,resolvedPath:w,config:void 0});continue}throw Error(`Include file not found: ${w}`)}let T=KU(w,{basePath:g$.dirname(w),resolveIncludes:!0,visitedPaths:G});H.push({include:I.include,resolvedPath:w,config:T})}catch(T){if(I.include.optional)H.push({include:I.include,resolvedPath:w,config:void 0});else throw T}}return{includes:H,buildSettings:U.buildSettings}}_1.parseFile=KU});var UU=A((QU)=>{Object.defineProperty(QU,"__esModule",{value:!0});QU.build=void 0;function g3($){let Z=[];for(let Y of $.includes){let J=Y.include.optional?"?":"";Z.push(`#include${J} "${Y.include.path}"`)}if($.includes.length>0&&$.buildSettings.length>0)Z.push("");for(let Y of $.buildSettings)Z.push(h3(Y));return Z.join(` +`)+(Z.length>0?` +`:"")}QU.build=g3;function h3($){let Z=$.key;if($.conditions)for(let Y of $.conditions)Z+=u3(Y);return`${Z} = ${$.value}`}function u3($){let Z=[];if($.sdk)Z.push(`[sdk=${$.sdk}]`);if($.arch)Z.push(`[arch=${$.arch}]`);if($.config)Z.push(`[config=${$.config}]`);return Z.join("")}});var HU=A((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0})});var FU=A((H1)=>{var m3=H1&&H1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),c3=H1&&H1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))m3(Z,$,Y)};Object.defineProperty(H1,"__esModule",{value:!0});H1.flattenBuildSettings=H1.build=H1.parseFile=H1.parse=void 0;var VU=zU();Object.defineProperty(H1,"parse",{enumerable:!0,get:function(){return VU.parse}});Object.defineProperty(H1,"parseFile",{enumerable:!0,get:function(){return VU.parseFile}});var p3=UU();Object.defineProperty(H1,"build",{enumerable:!0,get:function(){return p3.build}});c3(HU(),H1);function WU($,Z={}){let Y={};for(let J of $.includes)if(J.config){let K=WU(J.config,Z);Object.assign(Y,K)}for(let J of $.buildSettings)if(d3(J.conditions,Z)){let K=l3(J.value,J.key,Y);Y[J.key]=K}return Y}H1.flattenBuildSettings=WU;function d3($,Z){if(!$||$.length===0)return!0;return $.every((Y)=>{if(Y.sdk){if(!Z.sdk)return!1;if(!zJ(Z.sdk,Y.sdk))return!1}if(Y.arch){if(!Z.arch)return!1;if(!zJ(Z.arch,Y.arch))return!1}if(Y.config){if(!Z.config)return!1;if(!zJ(Z.config,Y.config))return!1}return!0})}function zJ($,Z){let Y=Z.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${Y}$`,"i").test($)}function l3($,Z,Y){let J=/\$\(inherited\)/gi;if(!J.test($))return $;let K=Y[Z]??"";return $.replace(J,K)}});var PZ=A((y1)=>{var i3=y1&&y1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),s3=y1&&y1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),AU=y1&&y1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))i3(Z,$,Y)}return s3(Z,$),Z},HY=y1&&y1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(y1,"__esModule",{value:!0});y1.XCBuildConfiguration=void 0;var UY=HY(k("node:path")),n3=HY(k("node:os")),QJ=HY(k("node:fs")),OU=HY(X$()),r3=tG(),qY=AU(l()),a3=Z1(),RU=eG(),IU=AU(FU()),GJ=CZ()("xcode:XCBuildConfiguration");class VY extends a3.AbstractObject{static is($){return $.isa===VY.isa}static create($,Z){return $.createModel({isa:qY.ISA.XCBuildConfiguration,...Z})}resolveFilePath($){let Z=this.resolveBuildSetting($);if(Z==null||typeof Z!=="string")return null;let Y=this.getXcodeProject().getProjectRoot();return UY.default.join(Y,Z)}getEntitlementsFilePath(){return this.resolveFilePath("CODE_SIGN_ENTITLEMENTS")}getEntitlements(){let $=this.getEntitlementsFilePath();if(!$)return null;return OU.default.parse(QJ.default.readFileSync($,"utf8"))}getInfoPlistFilePath(){return this.resolveFilePath("INFOPLIST_FILE")}getInfoPlist(){let $=this.getInfoPlistFilePath();if(!$)return null;return OU.default.parse(QJ.default.readFileSync($,"utf8"))}getTargetReferrers(){let Z=this.getReferrers().filter((Y)=>Y.isa===qY.ISA.XCConfigurationList).map((Y)=>{return Y.getReferrers().filter((J)=>J.isa===qY.ISA.PBXNativeTarget)}).flat();return(0,r3.uniqueBy)(Z,(Y)=>Y.uuid)}resolveBuildSetting($){let Z=(J)=>{if(!(J in this.props.buildSettings)){if(process.env[J]!=null)return GJ('Using environment variable substitution for "%s"',J),process.env[J];else if(J in EU)return GJ('Dangerously using estimated default Apple build variable substitution for "%s"',J),EU[J];if(J==="TARGET_NAME"){let K=this.getTargetReferrers();if(K.length>0){if(K.length>1)console.warn(`[XCBuildConfiguration][${this.props.name}]: Multiple targets found for build setting "${$}". Using first target "${K[0].props.name}". Possible targets: ${K.map((z)=>z.getDisplayName()).join(", ")}`);return K[0].props.name}else console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving special build setting "${$}". Substitute value "${J}" not found in build settings, environment variables, or from a referring PBXNativeTarget.`)}else console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${$}". Substitute value "${J}" not found in build settings.`)}if(Array.isArray(J))console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${$}". Substitute value "${J}" is of type array––it's not clear how this should be resolved in a string.`);return this.props.buildSettings[J]},Y=this.props.buildSettings[$];if(typeof Y==="string")return(0,RU.resolveXcodeBuildSetting)(Y,Z);if(Array.isArray(Y))return Y.map((J)=>{return(0,RU.resolveXcodeBuildSetting)(J,Z)});return Y}getObjectProps(){return{baseConfigurationReference:String}}getBaseConfigurationFilePath(){let $=this.props.baseConfigurationReference;if(!$)return null;let Z=$.props.path;if(!Z)return null;let Y=this.getXcodeProject().getProjectRoot(),J=$.props.sourceTree;if(J===""||J==="SOURCE_ROOT")return UY.default.join(Y,Z);if(J===""||UY.default.isAbsolute(Z))return Z;return UY.default.join(Y,Z)}getBaseConfiguration(){let $=this.getBaseConfigurationFilePath();if(!$||!QJ.default.existsSync($))return null;try{return IU.parseFile($)}catch(Z){return GJ("Failed to parse base configuration: %s",Z),null}}getBaseConfigurationSettings($){let Z=this.getBaseConfiguration();if(!Z)return{};return IU.flattenBuildSettings(Z,$)}}y1.XCBuildConfiguration=VY;VY.isa=qY.ISA.XCBuildConfiguration;var EU={HOME:n3.default.homedir(),SYSTEM_APPS_DIR:"/Applications",SYSTEM_ADMIN_APPS_DIR:"/Applications/Utilities",SYSTEM_DEMOS_DIR:"/Applications/Extras",SYSTEM_DEVELOPER_DIR:"/Applications/Xcode.app/Contents/Developer",SYSTEM_DEVELOPER_APPS_DIR:"/Applications/Xcode.app/Contents/Applications",SYSTEM_DEVELOPER_JAVA_TOOLS_DIR:"/Applications/Xcode.app/Contents/Applications/Java Tools",SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR:"/Applications/Xcode.app/Contents/Applications/Performance Tools",SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR:"/Applications/Xcode.app/Contents/Applications/Graphics Tools",SYSTEM_DEVELOPER_UTILITIES_DIR:"/Applications/Xcode.app/Contents/Applications/Utilities",SYSTEM_DEVELOPER_DEMOS_DIR:"/Applications/Xcode.app/Contents/Developer/Utilities/Built Examples",SYSTEM_DEVELOPER_DOC_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library",SYSTEM_DEVELOPER_TOOLS_DOC_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools",SYSTEM_DEVELOPER_RELEASENOTES_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes",SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools",SYSTEM_LIBRARY_DIR:"/System/Library",SYSTEM_CORE_SERVICES_DIR:"/System/Library/CoreServices",SYSTEM_DOCUMENTATION_DIR:"/Library/Documentation",LOCAL_ADMIN_APPS_DIR:"/Applications/Utilities",LOCAL_APPS_DIR:"/Applications",LOCAL_DEVELOPER_DIR:"/Library/Developer",LOCAL_LIBRARY_DIR:"/Library",USER_APPS_DIR:"$(HOME)/Applications",USER_LIBRARY_DIR:"$(HOME)/Library",MAN_PAGE_DIRECTORIES:"/usr/share/man",SYSTEM_LIBRARY_EXECUTABLES_DIR:"",SYSTEM_DEVELOPER_EXECUTABLES_DIR:"",LOCAL_DEVELOPER_EXECUTABLES_DIR:""}});var WY=A((q0)=>{var o3=q0&&q0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),t3=q0&&q0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),e3=q0&&q0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))o3(Z,$,Y)}return t3(Z,$),Z};Object.defineProperty(q0,"__esModule",{value:!0});q0.XCConfigurationList=void 0;var $I=e3(l()),ZI=Z1();class _Z extends ZI.AbstractObject{static is($){return $.isa===_Z.isa}static create($,Z){return $.createModel({isa:_Z.isa,defaultConfigurationIsVisible:0,...Z})}getObjectProps(){return{buildConfigurations:[String]}}getDefaultConfiguration(){let $=this.props.buildConfigurations.find((Z)=>Z.props.name===this.props.defaultConfigurationName);if(!$)throw Error(`[XCConfigurationList][${this.uuid}]: ${this.props.defaultConfigurationName} not found in buildConfigurations. Available configurations: ${this.props.buildConfigurations.map((Z)=>`${Z.props.name} (${Z.uuid})`).join(", ")})`);return $}setBuildSetting($,Z){return this.props.buildConfigurations.forEach((Y)=>{Y.props.buildSettings[$]=Z}),Z}removeBuildSetting($){this.props.buildConfigurations.forEach((Z)=>{delete Z.props.buildSettings[$]})}getDefaultBuildSetting($){return this.getDefaultConfiguration().props.buildSettings[$]}removeFromProject(){for(let $ of[...this.props.buildConfigurations]){let Z=$.getReferrers();if(Z.length===1&&Z[0].uuid===this.uuid)$.removeFromProject()}return super.removeFromProject()}}q0.XCConfigurationList=_Z;_Z.isa=$I.ISA.XCConfigurationList});var FY=A((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.AbstractTarget=void 0;var YI=Z1(),JI=PZ(),KI=WY();class wU extends YI.AbstractObject{createConfigurationList($,Z){let Y=Z.map((K)=>JI.XCBuildConfiguration.create(this.getXcodeProject(),K)),J=KI.XCConfigurationList.create(this.getXcodeProject(),{buildConfigurations:Y,...$});return this.props.buildConfigurationList=J,J}getDependencyForTarget($){return this.props.dependencies.find((Z)=>{if(Z.props.targetProxy.isRemote()){let Y=this.getXcodeProject().getReferenceForPath($.getXcodeProject().filePath);if(Y){let J=Y.uuid;return Z.props.targetProxy.props.remoteGlobalIDString===$.uuid&&Z.props.targetProxy.props.containerPortal.uuid===J}}else return Z.props.target.uuid===$.uuid;return!1})}createBuildPhase($,Z){let Y=this.getXcodeProject().createModel({isa:$.isa,...Z});return this.props.buildPhases.push(Y),Y}getBuildPhase($){return this.props.buildPhases.find((Y)=>$.is(Y))??null}getObjectProps(){return{buildConfigurationList:String,dependencies:[String],buildPhases:[String]}}getDefaultConfiguration(){return this.props.buildConfigurationList.getDefaultConfiguration()}setBuildSetting($,Z){return this.props.buildConfigurationList.setBuildSetting($,Z)}removeBuildSetting($){return this.props.buildConfigurationList.removeBuildSetting($)}getDefaultBuildSetting($){return this.props.buildConfigurationList.getDefaultBuildSetting($)}getAttributes(){return this.getXcodeProject().rootObject.props.attributes.TargetAttributes?.[this.uuid]}}BU.AbstractTarget=wU});var OY=A((H0)=>{var zI=H0&&H0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),QI=H0&&H0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),GI=H0&&H0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))zI(Z,$,Y)}return QI(Z,$),Z};Object.defineProperty(H0,"__esModule",{value:!0});H0.XCSwiftPackageProductDependency=void 0;var UI=GI(l()),qI=Z1();class yZ extends qI.AbstractObject{static is($){return $.isa===yZ.isa}static create($,Z){return $.createModel({isa:yZ.isa,...Z})}getObjectProps(){return{package:String}}getDisplayName(){return this.props.productName??super.getDisplayName()}}H0.XCSwiftPackageProductDependency=yZ;yZ.isa=UI.ISA.XCSwiftPackageProductDependency});var kZ=A((V0)=>{var HI=V0&&V0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),VI=V0&&V0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),WI=V0&&V0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))HI(Z,$,Y)}return VI(Z,$),Z};Object.defineProperty(V0,"__esModule",{value:!0});V0.PBXTargetDependency=void 0;var FI=WI(l()),OI=Z1();class xZ extends OI.AbstractObject{static is($){return $.isa===xZ.isa}static create($,Z){return $.createModel({isa:xZ.isa,...Z})}getObjectProps(){return{target:String,targetProxy:String}}getNativeTargetUuid(){if(this.props.target)return this.props.target.uuid;if(this.props.targetProxy)return this.props.targetProxy.props.remoteGlobalIDString;throw Error(`Expected target or target_proxy, from which to fetch a uuid for target '${this.getDisplayName()}'. Find and clear the PBXTargetDependency entry with uuid '${this.uuid}' in your .xcodeproj.`)}getDisplayName(){return this.props.name??this.props.target.props.name??this.props.targetProxy.props.remoteInfo??super.getDisplayName()}removeFromProject(){if(this.props.targetProxy){let $=this.props.targetProxy.getReferrers();if($.length===1&&$[0].uuid===this.uuid)this.props.targetProxy.removeFromProject()}return super.removeFromProject()}}V0.PBXTargetDependency=xZ;xZ.isa=FI.ISA.PBXTargetDependency});var RY=A((W0)=>{var RI=W0&&W0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),II=W0&&W0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),EI=W0&&W0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))RI(Z,$,Y)}return II(Z,$),Z};Object.defineProperty(W0,"__esModule",{value:!0});W0.PBXNativeTarget=void 0;var MU=EI(l()),AI=FY(),d1=p1(),wI=u$(),BI=J$(),CI=OY(),DU=kZ(),DI=bZ();class h$ extends AI.AbstractTarget{static is($){return $.isa===h$.isa}static create($,Z){return $.createModel({isa:MU.ISA.PBXNativeTarget,buildPhases:[],buildRules:[],dependencies:[],...Z})}getFrameworksBuildPhase(){return this.getBuildPhase(d1.PBXFrameworksBuildPhase)??this.createBuildPhase(d1.PBXFrameworksBuildPhase)}getHeadersBuildPhase(){return this.getBuildPhase(d1.PBXHeadersBuildPhase)??this.createBuildPhase(d1.PBXHeadersBuildPhase)}getSourcesBuildPhase(){return this.getBuildPhase(d1.PBXSourcesBuildPhase)??this.createBuildPhase(d1.PBXSourcesBuildPhase)}getResourcesBuildPhase(){return this.getBuildPhase(d1.PBXResourcesBuildPhase)??this.createBuildPhase(d1.PBXResourcesBuildPhase)}ensureFrameworks($){let Z=this.getXcodeProject().rootObject.getFrameworksGroup(),Y=(J)=>{let K=J.endsWith(".framework")?J:J+".framework";for(let[,z]of this.getXcodeProject().entries())if(wI.PBXFileReference.is(z)&&z.props.lastKnownFileType==="wrapper.framework"&&z.props.sourceTree==="SDKROOT"&&z.props.name===K){if(!Z.props.children.find((Q)=>Q.uuid===z.uuid))Z.props.children.push(z);return z}return Z.createFile({path:"System/Library/Frameworks/"+K})};return $.map((J)=>{return this.getFrameworksBuildPhase().ensureFile({fileRef:Y(J)})})}addDependency($){let Z=$.getXcodeProject().filePath===this.getXcodeProject().filePath,Y=this.getDependencyForTarget($);if(Y){if(!Z)Y.props.name=$.props.name;return}let J=DI.PBXContainerItemProxy.create(this.getXcodeProject(),{containerPortal:this.getXcodeProject().rootObject,proxyType:1,remoteGlobalIDString:$.uuid,remoteInfo:$.props.name});if(Z)J.props.containerPortal=this.getXcodeProject().rootObject;else throw Error("adding dependencies to subprojects is not yet supported. Please open an issue if you need this feature.");let K=DU.PBXTargetDependency.create(this.getXcodeProject(),{target:$,targetProxy:J});this.props.dependencies.push(K)}getCopyBuildPhaseForTarget($){if(this.getXcodeProject().rootObject.getMainAppTarget("ios").uuid!==this.uuid)throw Error("getCopyBuildPhaseForTarget can only be called on the main target");let Y=(()=>{if($.props.productType==="com.apple.product-type.application.on-demand-install-capable")return"Embed App Clips";else if($.isWatchOSTarget())return"Embed Watch Content";else if($.props.productType==="com.apple.product-type.extensionkit-extension")return"Embed ExtensionKit Extensions";return"Embed Foundation Extensions"})(),J=this.props.buildPhases.find((z)=>{return d1.PBXCopyFilesBuildPhase.is(z)&&z.props.name===Y});if(J){let z=J;return z.ensureDefaultsForTarget($),z}let K=this.createBuildPhase(d1.PBXCopyFilesBuildPhase,{name:Y,files:[]});return K.ensureDefaultsForTarget($),K}isWatchOSTarget(){if(this.props.productType==="com.apple.product-type.application.watchapp"||this.props.productType==="com.apple.product-type.application.watchapp2"||this.props.productType==="com.apple.product-type.application.watchapp2-container")return!0;if(this.props.productType==="com.apple.product-type.application"){let $=this.props.buildConfigurationList?.props.buildConfigurations?.[0]?.props.buildSettings;if($&&$.SDKROOT==="watchos")return!0}return!1}isWatchExtension(){return this.props.productType==="com.apple.product-type.watchkit-extension"||this.props.productType==="com.apple.product-type.watchkit2-extension"}getObjectProps(){return{...super.getObjectProps(),buildRules:[String],productReference:[String],packageProductDependencies:[String],fileSystemSynchronizedGroups:[String]}}removeFromProject(){let $=this.getXcodeProject(),Z=(Y)=>{let J=Y.getReferrers();return J.length===1&&J[0].uuid===this.uuid};for(let Y of[...this.props.buildPhases])if(Z(Y))Y.removeFromProject();for(let Y of[...this.props.buildRules])if(Z(Y))Y.removeFromProject();if(Z(this.props.buildConfigurationList))this.props.buildConfigurationList.removeFromProject();for(let Y of[...this.props.dependencies])if(Z(Y))Y.removeFromProject();if(this.props.fileSystemSynchronizedGroups){for(let Y of[...this.props.fileSystemSynchronizedGroups])if(![...$.values()].some((K)=>h$.is(K)&&K.uuid!==this.uuid&&K.props.fileSystemSynchronizedGroups?.some((z)=>z.uuid===Y.uuid)))Y.removeFromProject()}if(this.props.packageProductDependencies){for(let Y of[...this.props.packageProductDependencies])if(Z(Y))Y.removeFromProject()}if(this.props.productReference){if(![...$.values()].some((J)=>h$.is(J)&&J.uuid!==this.uuid&&J.props.productReference?.uuid===this.props.productReference?.uuid))this.props.productReference.removeFromProject()}for(let[,Y]of $.entries())if(DU.PBXTargetDependency.is(Y)&&(Y.props.target?.uuid===this.uuid||Y.props.targetProxy?.props.remoteGlobalIDString===this.uuid))Y.removeFromProject();return super.removeFromProject()}addSwiftPackageProduct($){let Z=this.getXcodeProject();if(!this.props.packageProductDependencies)this.props.packageProductDependencies=[];let Y=this.props.packageProductDependencies.find((z)=>z.props.productName===$.productName&&z.props.package?.uuid===$.package?.uuid);if(Y)return Y;let J=CI.XCSwiftPackageProductDependency.create(Z,{productName:$.productName,package:$.package});this.props.packageProductDependencies.push(J);let K=BI.PBXBuildFile.createFromProductRef(Z,{productRef:J});return this.getFrameworksBuildPhase().props.files.push(K),J}getSwiftPackageProductDependencies(){return this.props.packageProductDependencies??[]}removeSwiftPackageProduct($){if(this.props.packageProductDependencies){let Y=this.props.packageProductDependencies.findIndex((J)=>J.uuid===$.uuid);if(Y!==-1)this.props.packageProductDependencies.splice(Y,1)}let Z=this.getBuildPhase(d1.PBXFrameworksBuildPhase);if(Z){let Y=Z.props.files.findIndex((J)=>J.props.productRef?.uuid===$.uuid);if(Y!==-1){let J=Z.props.files[Y];Z.props.files.splice(Y,1),J.removeFromProject()}}$.removeFromProject()}}W0.PBXNativeTarget=h$;h$.isa=MU.ISA.PBXNativeTarget});var UJ=A((F0)=>{var MI=F0&&F0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),LI=F0&&F0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),TI=F0&&F0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))MI(Z,$,Y)}return LI(Z,$),Z};Object.defineProperty(F0,"__esModule",{value:!0});F0.PBXAggregateTarget=void 0;var XI=TI(l()),SI=FY();class fZ extends SI.AbstractTarget{static is($){return $.isa===fZ.isa}static create($,Z){return $.createModel({isa:fZ.isa,buildPhases:[],dependencies:[],...Z})}}F0.PBXAggregateTarget=fZ;fZ.isa=XI.ISA.PBXAggregateTarget});var qJ=A((O0)=>{var NI=O0&&O0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),jI=O0&&O0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),PI=O0&&O0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))NI(Z,$,Y)}return jI(Z,$),Z};Object.defineProperty(O0,"__esModule",{value:!0});O0.PBXLegacyTarget=void 0;var _I=PI(l()),yI=FY();class IY extends yI.AbstractTarget{static is($){return $.isa===IY.isa}}O0.PBXLegacyTarget=IY;IY.isa=_I.ISA.PBXLegacyTarget});var EY=A((R0)=>{var xI=R0&&R0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),kI=R0&&R0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),bI=R0&&R0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))xI(Z,$,Y)}return kI(Z,$),Z};Object.defineProperty(R0,"__esModule",{value:!0});R0.XCRemoteSwiftPackageReference=void 0;var fI=bI(l()),vI=Z1();class vZ extends vI.AbstractObject{static is($){return $.isa===vZ.isa}static create($,Z){return $.createModel({isa:vZ.isa,...Z})}getObjectProps(){return{}}getDisplayName(){return this.props.repositoryURL??super.getDisplayName()}}R0.XCRemoteSwiftPackageReference=vZ;vZ.isa=fI.ISA.XCRemoteSwiftPackageReference});var AY=A((I0)=>{var gI=I0&&I0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),hI=I0&&I0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),uI=I0&&I0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))gI(Z,$,Y)}return hI(Z,$),Z};Object.defineProperty(I0,"__esModule",{value:!0});I0.XCLocalSwiftPackageReference=void 0;var mI=uI(l()),cI=Z1();class gZ extends cI.AbstractObject{static is($){return $.isa===gZ.isa}static create($,Z){return $.createModel({isa:gZ.isa,...Z})}getObjectProps(){return{}}getDisplayName(){return this.props.relativePath??super.getDisplayName()}}I0.XCLocalSwiftPackageReference=gZ;gZ.isa=mI.ISA.XCLocalSwiftPackageReference});var FJ=A((x1)=>{var pI=x1&&x1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),dI=x1&&x1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),lI=x1&&x1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))pI(Z,$,Y)}return dI(Z,$),Z},iI=x1&&x1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(x1,"__esModule",{value:!0});x1.PBXProject=void 0;var sI=iI(k("path")),wY=wZ(),nI=lI(l()),rI=Z1(),HJ=RY(),aI=PZ(),VJ=EY(),WJ=AY();class hZ extends rI.AbstractObject{static is($){return $.isa===hZ.isa}static create($,Z){return $.createModel({isa:hZ.isa,...Z})}getObjectProps(){return{buildConfigurationList:String,mainGroup:String,productRefGroup:String,targets:[String],packageReferences:[String]}}setupDefaults($){if(!$.compatibilityVersion)$.compatibilityVersion="Xcode 3.2";if(!$.developmentRegion)$.developmentRegion="en";if(!$.hasScannedForEncodings)$.hasScannedForEncodings=0;if(!$.knownRegions)$.knownRegions=["en","Base"];if(!$.projectDirPath)$.projectDirPath="";if(!$.projectRoot)$.projectRoot="";if(!$.attributes)$.attributes={LastSwiftUpdateCheck:wY.LAST_SWIFT_UPGRADE_CHECK,LastUpgradeCheck:wY.LAST_UPGRADE_CHECK,TargetAttributes:{}}}addBuildConfiguration($,Z){let Y=this.props.buildConfigurationList,J=Y.props.buildConfigurations.find((z)=>z.props.name===$);if(J)return J;let K=aI.XCBuildConfiguration.create(this.getXcodeProject(),{name:$,buildSettings:{...JSON.parse(JSON.stringify(wY.PROJECT_DEFAULT_BUILD_SETTINGS.all)),...JSON.parse(JSON.stringify(wY.PROJECT_DEFAULT_BUILD_SETTINGS[Z]))}});return Y.props.buildConfigurations.push(K),K}getName(){return sI.default.basename(this.getXcodeProject().filePath,".xcodeproj")}ensureProductGroup(){if(this.props.productRefGroup)return this.props.productRefGroup;let $=this.props.mainGroup.createGroup({name:"Products",sourceTree:""});return this.props.productRefGroup=$,$}ensureMainGroupChild($){return this.props.mainGroup.getChildGroups().find((Z)=>Z.getDisplayName()===$)??this.props.mainGroup.createGroup({name:$,sourceTree:""})}getFrameworksGroup(){return this.ensureMainGroupChild("Frameworks")}createNativeTarget($){let Z=HJ.PBXNativeTarget.create(this.getXcodeProject(),$);return this.props.targets.push(Z),Z}getNativeTarget($){for(let Z of this.props.targets)if(HJ.PBXNativeTarget.is(Z)&&Z.props.productType===$)return Z;return null}getMainAppTarget($="ios"){let Y={ios:"IPHONEOS_DEPLOYMENT_TARGET",macos:"MACOSX_DEPLOYMENT_TARGET",tvos:"TVOS_DEPLOYMENT_TARGET",watchos:"WATCHOS_DEPLOYMENT_TARGET"}[$],J=this.props.targets.filter((Q)=>{return HJ.PBXNativeTarget.is(Q)&&Q.props.productType==="com.apple.product-type.application"}),K=J.filter((Q)=>{let U=Q.getDefaultConfiguration();return Y in U.props.buildSettings});if(K.length>1)console.warn(`Multiple main app targets found, using first one: ${K.map((Q)=>Q.getDisplayName()).join(", ")}`);let z=K[0];if(!z){if($==="ios"&&J.length)return J[0];throw Error("No main app target found")}return z}removeReference($){if(super.removeReference($),this.props.attributes?.TargetAttributes?.[$])delete this.props.attributes.TargetAttributes[$]}addPackageReference($){if(!this.props.packageReferences)this.props.packageReferences=[];let Z=this.props.packageReferences.find((Y)=>Y.uuid===$.uuid);if(Z)return Z;return this.props.packageReferences.push($),$}getPackageReference($){if(!this.props.packageReferences)return null;for(let Z of this.props.packageReferences){if(VJ.XCRemoteSwiftPackageReference.is(Z)&&Z.props.repositoryURL===$)return Z;if(WJ.XCLocalSwiftPackageReference.is(Z)&&Z.props.relativePath===$)return Z}return null}addRemoteSwiftPackage($){if($.repositoryURL){let Y=this.getPackageReference($.repositoryURL);if(Y&&VJ.XCRemoteSwiftPackageReference.is(Y))return Y}let Z=VJ.XCRemoteSwiftPackageReference.create(this.getXcodeProject(),$);return this.addPackageReference(Z),Z}addLocalSwiftPackage($){let Z=this.getPackageReference($.relativePath);if(Z&&WJ.XCLocalSwiftPackageReference.is(Z))return Z;let Y=WJ.XCLocalSwiftPackageReference.create(this.getXcodeProject(),$);return this.addPackageReference(Y),Y}}x1.PBXProject=hZ;hZ.isa=nI.ISA.PBXProject});var OJ=A((E0)=>{var oI=E0&&E0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),tI=E0&&E0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),eI=E0&&E0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))oI(Z,$,Y)}return tI(Z,$),Z};Object.defineProperty(E0,"__esModule",{value:!0});E0.PBXBuildRule=void 0;var $E=eI(l()),ZE=Z1();class uZ extends ZE.AbstractObject{static is($){return $.isa===uZ.isa}static create($,Z){return $.createModel({isa:uZ.isa,...Z})}getObjectProps(){return{inputFiles:[String],outputFiles:[String]}}setupDefaults(){if(this.props.isEditable==null)this.props.isEditable=1}addOutputFile($,Z=""){if(!this.props.outputFiles)this.props.outputFiles=[];if(this.props.outputFiles.push($),!this.props.outputFilesCompilerFlags)this.props.outputFilesCompilerFlags=[];this.props.outputFilesCompilerFlags.push(Z)}getOutputFilesAndFlags(){return YE(this.props.outputFiles,this.props.outputFilesCompilerFlags)}}E0.PBXBuildRule=uZ;uZ.isa=$E.ISA.PBXBuildRule;function YE($=[],Z=[]){return $.map((Y,J)=>[Y,Z[J]])}});var BY=A((A0)=>{var JE=A0&&A0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),KE=A0&&A0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),zE=A0&&A0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))JE(Z,$,Y)}return KE(Z,$),Z};Object.defineProperty(A0,"__esModule",{value:!0});A0.PBXReferenceProxy=void 0;var QE=zE(l()),GE=Z1(),UE=J$();class mZ extends GE.AbstractObject{static is($){return $.isa===mZ.isa}static create($,Z){return $.createModel({isa:mZ.isa,sourceTree:"",...Z})}getObjectProps(){return{remoteRef:String}}removeFromProject(){return this.getBuildFiles().forEach(($)=>{$.removeFromProject()}),super.removeFromProject()}getBuildFiles(){return this.getReferrers().filter(UE.PBXBuildFile.is)}}A0.PBXReferenceProxy=mZ;mZ.isa=QE.ISA.PBXReferenceProxy});var wJ=A((k1)=>{var qE=k1&&k1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),HE=k1&&k1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),VE=k1&&k1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))qE(Z,$,Y)}return HE(Z,$),Z},EJ=k1&&k1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(k1,"__esModule",{value:!0});k1.XcodeProject=void 0;var RJ=EJ(k("assert")),w0=k("fs"),Q1=EJ(k("path")),WE=EJ(k("crypto")),cZ=a9(),LU=t9(),FE=V8(),u=VE(l()),TU=wZ(),OE=CZ()("xcparse:model:XcodeProject");function RE($){return"XX"+WE.default.createHash("md5").update($).digest("hex").toUpperCase().slice(0,20)+"XX"}var IE={[u.ISA.PBXBuildFile]:()=>J$().PBXBuildFile,[u.ISA.PBXAppleScriptBuildPhase]:()=>p1().PBXAppleScriptBuildPhase,[u.ISA.PBXCopyFilesBuildPhase]:()=>p1().PBXCopyFilesBuildPhase,[u.ISA.PBXFrameworksBuildPhase]:()=>p1().PBXFrameworksBuildPhase,[u.ISA.PBXHeadersBuildPhase]:()=>p1().PBXHeadersBuildPhase,[u.ISA.PBXResourcesBuildPhase]:()=>p1().PBXResourcesBuildPhase,[u.ISA.PBXShellScriptBuildPhase]:()=>p1().PBXShellScriptBuildPhase,[u.ISA.PBXSourcesBuildPhase]:()=>p1().PBXSourcesBuildPhase,[u.ISA.PBXContainerItemProxy]:()=>bZ().PBXContainerItemProxy,[u.ISA.PBXFileReference]:()=>u$().PBXFileReference,[u.ISA.PBXGroup]:()=>b$().PBXGroup,[u.ISA.PBXVariantGroup]:()=>$J().PBXVariantGroup,[u.ISA.XCVersionGroup]:()=>ZJ().XCVersionGroup,[u.ISA.PBXFileSystemSynchronizedRootGroup]:()=>YJ().PBXFileSystemSynchronizedRootGroup,[u.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet]:()=>JJ().PBXFileSystemSynchronizedBuildFileExceptionSet,[u.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet]:()=>KJ().PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet,[u.ISA.PBXNativeTarget]:()=>RY().PBXNativeTarget,[u.ISA.PBXAggregateTarget]:()=>UJ().PBXAggregateTarget,[u.ISA.PBXLegacyTarget]:()=>qJ().PBXLegacyTarget,[u.ISA.PBXProject]:()=>FJ().PBXProject,[u.ISA.PBXTargetDependency]:()=>kZ().PBXTargetDependency,[u.ISA.XCBuildConfiguration]:()=>PZ().XCBuildConfiguration,[u.ISA.XCConfigurationList]:()=>WY().XCConfigurationList,[u.ISA.PBXBuildRule]:()=>OJ().PBXBuildRule,[u.ISA.PBXReferenceProxy]:()=>BY().PBXReferenceProxy,[u.ISA.PBXRezBuildPhase]:()=>p1().PBXRezBuildPhase,[u.ISA.XCSwiftPackageProductDependency]:()=>OY().XCSwiftPackageProductDependency,[u.ISA.XCRemoteSwiftPackageReference]:()=>EY().XCRemoteSwiftPackageReference,[u.ISA.XCLocalSwiftPackageReference]:()=>AY().XCLocalSwiftPackageReference};class AJ extends Map{static open($){let Z=(0,w0.readFileSync)($,"utf8"),Y=(0,FE.parse)(Z);return new AJ($,Y)}constructor($,Z){super();this.filePath=$;let Y=JSON.parse(JSON.stringify(Z));(0,RJ.default)(Y.objects,"objects is required"),(0,RJ.default)(Y.rootObject,"rootObject is required"),this.internalJsonObjects=Y.objects,this.archiveVersion=Y.archiveVersion??TU.LAST_KNOWN_ARCHIVE_VERSION,this.objectVersion=Y.objectVersion??TU.DEFAULT_OBJECT_VERSION,this.classes=Y.classes??{},EE(Y.rootObject,Y.objects?.[Y.rootObject]),this.rootObject=this.getObject(Y.rootObject),this.ensureAllObjectsInflated()}getProjectRoot(){return Q1.default.dirname(Q1.default.dirname(this.filePath))}getObject($){let Z=this._getObjectOptional($);if(Z)return Z;throw Error(`object with uuid '${$}' not found.`)}_getObjectOptional($){if(this.has($))return this.get($);let Z=this.internalJsonObjects[$];if(!Z)return null;delete this.internalJsonObjects[$];let Y=this.createObject($,Z);return this.set($,Y),Y.inflate(),Y}createObject($,Z){let Y=IE[Z.isa]();return(0,RJ.default)(Y,`unknown object type. (isa: ${Z.isa}, uuid: ${$})`),new Y(this,$,Z)}ensureAllObjectsInflated(){if(Object.keys(this.internalJsonObjects).length===0)return;OE("inflating unreferenced objects: %o",Object.keys(this.internalJsonObjects));while(Object.keys(this.internalJsonObjects).length>0){let $=Object.keys(this.internalJsonObjects)[0];this.getObject($)}}createModel($){let Z=this.getUniqueId(JSON.stringify(IJ($))),Y=this.createObject(Z,$);return this.set(Z,Y),Y}getReferenceForPath($){if(!Q1.default.isAbsolute($))throw Error(`Paths must be absolute ${$}`);for(let Z of this.values())if(Z.isa==="PBXFileReference"&&"getRealPath"in Z&&Z.getRealPath()===$)return Z;return null}getReferrers($){let Z=[];for(let Y of this.values())if(Y.isReferencing($))Z.push(Y);return Z}isUniqueId($){for(let Z of this.keys())if(Z===$)return!1;return!0}getUniqueId($){let Z=RE($);if(this.isUniqueId(Z))return Z;return this.getUniqueId($+" ")}getSharedSchemesDir(){let $=Q1.default.dirname(this.filePath);return Q1.default.join($,"xcshareddata","xcschemes")}getUserSchemesDir($){let Z=Q1.default.dirname(this.filePath);return Q1.default.join(Z,"xcuserdata",`${$}.xcuserdatad`,"xcschemes")}getSchemes($){let Z=[],Y=this.getSharedSchemesDir();if((0,w0.existsSync)(Y)){let J=(0,w0.readdirSync)(Y).filter((K)=>K.endsWith(".xcscheme"));for(let K of J)Z.push(cZ.XCScheme.open(Q1.default.join(Y,K)))}if($?.includeUser&&$?.username){let J=this.getUserSchemesDir($.username);if((0,w0.existsSync)(J)){let K=(0,w0.readdirSync)(J).filter((z)=>z.endsWith(".xcscheme"));for(let z of K)Z.push(cZ.XCScheme.open(Q1.default.join(J,z)))}}return Z}getScheme($,Z){let Y=$.endsWith(".xcscheme")?$:`${$}.xcscheme`,J=Q1.default.join(this.getSharedSchemesDir(),Y);if((0,w0.existsSync)(J))return cZ.XCScheme.open(J);if(Z?.username){let K=Q1.default.join(this.getUserSchemesDir(Z.username),Y);if((0,w0.existsSync)(K))return cZ.XCScheme.open(K)}return null}saveScheme($,Z){let Y=Z?.shared??!0,J=`${$.name}.xcscheme`,K;if(Y)K=this.getSharedSchemesDir();else{if(!Z?.username)throw Error("username is required when saving a user scheme");K=this.getUserSchemesDir(Z.username)}let z=Q1.default.join(K,J);$.save(z)}deleteScheme($,Z){let Y=Z?.shared??!0,J=`${$}.xcscheme`,K;if(Y)K=this.getSharedSchemesDir();else{if(!Z?.username)throw Error("username is required when deleting a user scheme");K=this.getUserSchemesDir(Z.username)}let z=Q1.default.join(K,J);if((0,w0.existsSync)(z))(0,w0.unlinkSync)(z)}createSchemeForTarget($,Z){let Y=Q1.default.dirname(this.filePath),J=Q1.default.basename(Y);return cZ.XCScheme.createForTarget($,Z,`${J}`)}getSharedDataDir(){let $=Q1.default.dirname(this.filePath);return Q1.default.join($,"xcshareddata")}getSharedData(){let $=this.getSharedDataDir();if((0,w0.existsSync)($))return LU.XCSharedData.open($);let Z=LU.XCSharedData.create();return Z.filePath=$,Z}toJSON(){let $={archiveVersion:this.archiveVersion,objectVersion:this.objectVersion,classes:this.classes,objects:{},rootObject:this.rootObject.uuid};for(let[Z,Y]of this.entries())$.objects[Z]=Y.toJSON();return $}}k1.XcodeProject=AJ;function EE($,Z){if(Z?.isa!=="PBXProject")throw Error(`Root object "${$}" is not a PBXProject`)}function IJ($){if(Array.isArray($))return $.map(IJ);else if(typeof $==="object"){if("uuid"in $&&typeof $.uuid==="string")return $.uuid;let Z={};for(let Y of Object.keys($).sort())Z[Y]=IJ($[Y]);return Z}else return $}});var bZ=A((b1)=>{var AE=b1&&b1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),wE=b1&&b1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),BE=b1&&b1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))AE(Z,$,Y)}return wE(Z,$),Z},CE=b1&&b1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(b1,"__esModule",{value:!0});b1.PBXContainerItemProxy=void 0;var DE=CE(k("assert")),ME=BE(l()),LE=Z1(),TE=wJ(),XE=u$();class pZ extends LE.AbstractObject{static is($){return $.isa===pZ.isa}static create($,Z){return $.createModel({isa:pZ.isa,...Z})}getObjectProps(){return{containerPortal:String}}getProxiedObject(){return this.getContainerPortalObject().get(this.props.remoteGlobalIDString)}getContainerPortalObject(){if(this.isRemote()){let $=this.getXcodeProject().get(this.props.containerPortal.uuid);return(0,DE.default)(XE.PBXFileReference.is($),"containerPortal is not a PBXFileReference"),TE.XcodeProject.open($.getRealPath())}return this.getXcodeProject()}isRemote(){return this.getXcodeProject().rootObject.uuid!==this.props.containerPortal.uuid}}b1.PBXContainerItemProxy=pZ;pZ.isa=ME.ISA.PBXContainerItemProxy});var u$=A((w1)=>{var SE=w1&&w1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),NE=w1&&w1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),jE=w1&&w1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))SE(Z,$,Y)}return NE(Z,$),Z},PE=w1&&w1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(w1,"__esModule",{value:!0});w1.PBXFileReference=w1.getPossibleDefaultSourceTree=void 0;var n0=PE(k("path")),BJ=wZ(),NU=jE(l()),_E=b$(),yE=J$(),xE=Z1(),dZ=p9(),XU=bZ(),kE=BY(),bE=kZ(),SU=CZ()("xcparse:models");function jU($){let Z=$.lastKnownFileType?BJ.SOURCETREE_BY_FILETYPE[$.lastKnownFileType]:void 0;if(!Z&&$.explicitFileType)return"BUILT_PRODUCTS_DIR";return Z??""}w1.getPossibleDefaultSourceTree=jU;function fE($,Z,Y){let J=n0.default.resolve(Z);if($.props.sourceTree=Y,Y===""){if(!n0.default.isAbsolute(J))throw Error(`[Xcodeproj] Attempt to set a relative path with an absolute source tree: ${Z}`);$.props.path=J}else if(Y==""||Y=="SOURCE_ROOT"){let K=(0,dZ.getSourceTreeRealPath)($);if(K&&n0.default.resolve(K)===J){let z=n0.default.relative(K,J);$.props.path=z}else $.props.path=J}else $.props.path=J}class lZ extends xE.AbstractObject{static is($){return $.isa===lZ.isa}static create($,Z){return $.createModel({isa:lZ.isa,...Z})}getObjectProps(){return{}}setupDefaults(){if(!this.props.lastKnownFileType&&!this.props.explicitFileType)this.setLastKnownFileType();if(this.props.name==null&&this.props.path){let $=n0.default.basename(this.props.path);if($!==this.props.path)this.props.name=$}if(!this.props.sourceTree)this.props.sourceTree=jU(this.props)}getParent(){return(0,dZ.getParent)(this)}getParents(){return(0,dZ.getParents)(this)}move($){_E.PBXGroup.move(this,$)}getRealPath(){return(0,dZ.getRealPath)(this)}getFullPath(){return(0,dZ.getFullPath)(this)}setLastKnownFileType($){if($)this.props.lastKnownFileType=$;else if(this.props.path){let Z=n0.default.extname(this.props.path);if(Z.startsWith("."))Z=Z.substring(1);this.props.lastKnownFileType=BJ.FILE_TYPES_BY_EXTENSION[Z],SU(`setLastKnownFileType (ext: ${Z}, type: ${this.props.lastKnownFileType})`)}}setExplicitFileType($){if($)this.props.explicitFileType=$;else if(this.props.path){let Z=n0.default.extname(this.props.path);if(Z.startsWith("."))Z=Z.substring(1);this.props.explicitFileType=BJ.FILE_TYPES_BY_EXTENSION[Z],SU(`setExplicitFileType (ext: ${Z}, type: ${this.props.explicitFileType})`)}if(this.props.explicitFileType)this.props.lastKnownFileType=void 0}getDisplayName(){if(this.props.name)return this.props.name;else if(this.props.path&&this.props.sourceTree==="BUILT_PRODUCTS_DIR")return this.props.path;else if(this.props.path)return n0.default.basename(this.props.path);return this.isa.replace(/^(PBX|XC)/,"")}getProxyContainers(){return Array.from(this.getXcodeProject().values()).filter(($)=>XU.PBXContainerItemProxy.is($)&&$.props.containerPortal.uuid===this.uuid)}setPath($){if($)fE(this,$,this.props.sourceTree);else this.props.path=void 0}getBuildFiles(){return this.getReferrers().filter(($)=>yE.PBXBuildFile.is($))}getTargetDependencyProxies(){let $=this.getProxyContainers();if(!$.length)return[];return Array.from(this.getXcodeProject().values()).filter((Z)=>{return bE.PBXTargetDependency.is(Z)&&$.some((Y)=>Y.uuid===Z.props.targetProxy.uuid)})}removeFromProject(){return this.getFileReferenceProxies().forEach(($)=>{$.removeFromProject()}),this.getTargetDependencyProxies().forEach(($)=>{$.removeFromProject()}),this.getBuildFiles().forEach(($)=>$.removeFromProject()),super.removeFromProject()}getFileReferenceProxies(){let $=this.getProxyContainers();if(!$.length)return[];return[...this.getXcodeProject().values()].filter((Z)=>{if(!kE.PBXReferenceProxy.is(Z))return!1;return!!$.find((Y)=>XU.PBXContainerItemProxy.is(Z.props.remoteRef)&&Y.uuid===Z.props.remoteRef.uuid)})}isAppExtension(){let $=this.props.lastKnownFileType??this.props.explicitFileType;return!!($&&["wrapper.extensionkit-extension","wrapper.app-extension"].includes($)&&this.props.sourceTree==="BUILT_PRODUCTS_DIR")}getTargetReferrers(){return this.getReferrers().filter(($)=>{return vE($)&&$.props.productReference?.uuid===this.uuid})}}w1.PBXFileReference=lZ;lZ.isa=NU.ISA.PBXFileReference;function vE($){return $.isa===NU.ISA.PBXNativeTarget}});var b$=A((B1)=>{var gE=B1&&B1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),hE=B1&&B1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),uE=B1&&B1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))gE(Z,$,Y)}return hE(Z,$),Z},PU=B1&&B1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(B1,"__esModule",{value:!0});B1.PBXGroup=B1.AbstractGroup=void 0;var m$=PU(k("assert")),DJ=PU(k("path")),mE=wZ(),cE=uE(l()),CJ=p9(),pE=Z1(),dE=u$();class MJ extends pE.AbstractObject{getObjectProps(){return{children:Array}}setupDefaults(){if(!this.props.children)this.props.children=[]}createGroup($){(0,m$.default)($.path||$.name,"A group must have a path or name");let Z=_0.create(this.getXcodeProject(),{...$});return this.props.children.push(Z),Z}mkdir($,{recursive:Z}={}){let Y=typeof $==="string"?$.split("/"):$;if(!Y.length)return this;let J=Y.shift(),K=this.getChildGroups().find((z)=>z.getDisplayName()===J);if(!K){if(!Z)return null;K=this.createGroup({path:J})}if(!$.length)return K;return K.mkdir(Y,{recursive:Z})}getChildGroups(){return this.props.children.filter(($)=>_0.is($))}createNewProductRefForTarget($,Z){let Y="";if(Z=="staticLibrary")Y="lib";let J=mE.PRODUCT_UTI_EXTENSIONS[Z],K=`${Y}${$}`;if(J)K+=`.${J}`;let z=iE(this,K,"BUILT_PRODUCTS_DIR");return z.props.includeInIndex=0,z.setExplicitFileType(),z}static move($,Z){(0,m$.default)(_0.is(Z),"newParent must be a PBXGroup"),(0,m$.default)($,`Attempt to move nullish object to "${Z.uuid}".`),(0,m$.default)(Z,`Attempt to move object "${$.uuid}" to nullish parent.`),(0,m$.default)(Z.uuid!==$.uuid,`Attempt to move object "${$.uuid}" to itself.`),(0,m$.default)(!(0,CJ.getParents)(Z).find((J)=>J.uuid===$.uuid),`Attempt to move object "${$.uuid}" to a child object "${Z.uuid}".`);let Y=$.getParent();if(_0.is(Y)){let J=Y.props.children.findIndex((K)=>K.uuid===$.uuid);if(J!==-1)Y.props.children.splice(J,1)}Z.props.children.push($)}getParent(){return(0,CJ.getParent)(this)}getParents(){return(0,CJ.getParents)(this)}getPath(){throw Error("TODO")}createFile($){let Z=dE.PBXFileReference.create(this.getXcodeProject(),$);return this.props.children.push(Z),Z}getDisplayName(){if(this.props.name)return this.props.name;else if(this.props.path)return DJ.default.basename(this.props.path);else if(this.uuid===this.project.props.mainGroup.uuid)return"Main Group";return this.isa.replace(/^(PBX|XC)/,"")}}B1.AbstractGroup=MJ;class _0 extends MJ{static is($){return $.isa===_0.isa}static create($,Z){return $.createModel({isa:_0.isa,children:[],sourceTree:"",...Z})}}B1.PBXGroup=_0;_0.isa=cE.ISA.PBXGroup;function lE($,Z,Y){return $.createFile({path:Z,sourceTree:Y})}function iE($,Z,Y){let J=(()=>{switch(DJ.default.extname(Z).toLowerCase()){case".xcdatamodeld":case".xcodeproj":throw Error("Unsupported file type: "+Z);default:return lE($,Z,Y)}})();return sE(J),J}function sE($){if($.props.path?.includes("/"))$.props.name=$.props.path.split("/").pop();if($.props.path&&DJ.default.extname($.props.path).toLowerCase()==".framework")$.props.includeInIndex=void 0}});var XJ=A((p$)=>{var nE=p$&&p$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p$,"__esModule",{value:!0});p$.IDEWorkspaceChecks=void 0;var iZ=k("fs"),CY=nE(k("path")),LJ=g8(),TJ="xcshareddata/IDEWorkspaceChecks.plist";class c${constructor($,Z){this.props=$,this.filePath=Z}static open($){let Z=CY.default.join($,TJ);if(!(0,iZ.existsSync)(Z))return null;let Y=(0,iZ.readFileSync)(Z,"utf-8"),J=(0,LJ.parseChecks)(Y);return new c$(J,Z)}static openOrCreate($){let Z=c$.open($);if(Z)return Z;let Y=CY.default.join($,TJ);return new c$({IDEDidComputeMac32BitWarning:!0},Y)}static create($){let Y={...{IDEDidComputeMac32BitWarning:!0},...$?.props};return new c$(Y,$?.filePath)}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");let Y=CY.default.dirname(Z);if(!(0,iZ.existsSync)(Y))(0,iZ.mkdirSync)(Y,{recursive:!0});let J=(0,LJ.buildChecks)(this.props);(0,iZ.writeFileSync)(Z,J,"utf-8"),this.filePath=Z}saveToWorkspace($){let Z=CY.default.join($,TJ);this.save(Z)}toPlist(){return(0,LJ.buildChecks)(this.props)}get mac32BitWarningComputed(){return this.props.IDEDidComputeMac32BitWarning??!1}set mac32BitWarningComputed($){this.props.IDEDidComputeMac32BitWarning=$}getCheck($){return this.props[$]}setCheck($,Z){this.props[$]=Z}removeCheck($){if($ in this.props)return delete this.props[$],!0;return!1}}p$.IDEWorkspaceChecks=c$});var yU=A((f1)=>{var rE=f1&&f1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),aE=f1&&f1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),oE=f1&&f1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))rE(Z,$,Y)}return aE(Z,$),Z},tE=f1&&f1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(f1,"__esModule",{value:!0});f1.XCWorkspace=void 0;var d$=k("fs"),DY=tE(k("path")),SJ=oE(h8()),NJ=XJ(),_U=t9();class MY{constructor($,Z,Y){this.name=$,this.props=Z,this.filePath=Y}static open($){let Z=DY.default.join($,"contents.xcworkspacedata");if(!(0,d$.existsSync)(Z))throw Error(`Invalid workspace: ${Z} does not exist`);let Y=(0,d$.readFileSync)(Z,"utf-8"),J=SJ.parse(Y),K=DY.default.basename($,".xcworkspace");return new MY(K,J,$)}static create($,Z){let J={...{version:"1.0",fileRefs:[]},...Z};return new MY($,J)}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");if(!(0,d$.existsSync)(Z))(0,d$.mkdirSync)(Z,{recursive:!0});let Y=DY.default.join(Z,"contents.xcworkspacedata"),J=SJ.build(this.props);(0,d$.writeFileSync)(Y,J,"utf-8"),this.filePath=Z}toXML(){return SJ.build(this.props)}addProject($,Z="group"){if(!this.props.fileRefs)this.props.fileRefs=[];let Y=`${Z}:${$}`;if(this.props.fileRefs.find((K)=>K.location===Y))return;this.props.fileRefs.push({location:Y})}removeProject($){if(!this.props.fileRefs)return!1;let Z=this.props.fileRefs.length;return this.props.fileRefs=this.props.fileRefs.filter((Y)=>{return(Y.location.includes(":")?Y.location.split(":").slice(1).join(":"):Y.location)!==$&&Y.location!==$}),this.props.fileRefs.lengthZ.location));if(this.props.groups)for(let Z of this.props.groups)$.push(...this.collectPathsFromGroup(Z));return $}addGroup($,Z){if(!this.props.groups)this.props.groups=[];let Y=this.props.groups.find((K)=>K.name===$&&K.location===Z);if(Y)return Y;let J={name:$,location:Z,fileRefs:[]};return this.props.groups.push(J),J}getGroup($){return this.props.groups?.find((Z)=>Z.name===$)}removeGroup($){if(!this.props.groups)return!1;let Z=this.props.groups.length;return this.props.groups=this.props.groups.filter((Y)=>Y.name!==$),this.props.groups.length{return(Y.includes(":")?Y.split(":").slice(1).join(":"):Y)===$||Y===$})}getWorkspaceChecks(){if(!this.filePath)return null;return NJ.IDEWorkspaceChecks.open(this.filePath)}getOrCreateWorkspaceChecks(){if(!this.filePath)throw Error("Workspace must be saved before accessing workspace checks.");return NJ.IDEWorkspaceChecks.openOrCreate(this.filePath)}hasWorkspaceChecks(){if(!this.filePath)return!1;return NJ.IDEWorkspaceChecks.open(this.filePath)!==null}setMac32BitWarningComputed(){let $=this.getOrCreateWorkspaceChecks();$.mac32BitWarningComputed=!0,$.save()}collectPathsFromGroup($){let Z=[];if($.fileRefs)Z.push(...$.fileRefs.map((Y)=>Y.location));if($.groups)for(let Y of $.groups)Z.push(...this.collectPathsFromGroup(Y));return Z}getSharedDataDir(){if(!this.filePath)return;return DY.default.join(this.filePath,"xcshareddata")}getSharedData(){let $=this.getSharedDataDir();if($&&(0,d$.existsSync)($))return _U.XCSharedData.open($);let Z=_U.XCSharedData.create();if($)Z.filePath=$;return Z}}f1.XCWorkspace=MY});var bU=A((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.IDEWorkspaceChecks=b.XCWorkspace=b.XCSharedData=b.createBuildableReference=b.XCScheme=b.XCVersionGroup=b.XCSwiftPackageProductDependency=b.XCLocalSwiftPackageReference=b.XCRemoteSwiftPackageReference=b.XCConfigurationList=b.XCBuildConfiguration=b.AbstractObject=b.PBXTargetDependency=b.PBXVariantGroup=b.PBXSourcesBuildPhase=b.PBXShellScriptBuildPhase=b.PBXRezBuildPhase=b.PBXResourcesBuildPhase=b.PBXHeadersBuildPhase=b.PBXFrameworksBuildPhase=b.PBXCopyFilesBuildPhase=b.PBXAppleScriptBuildPhase=b.AbstractBuildPhase=b.PBXReferenceProxy=b.PBXProject=b.PBXNativeTarget=b.PBXLegacyTarget=b.PBXFileSystemSynchronizedRootGroup=b.PBXFileSystemSynchronizedBuildFileExceptionSet=b.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=b.PBXFileReference=b.PBXContainerItemProxy=b.PBXBuildRule=b.PBXBuildFile=b.PBXAggregateTarget=b.XcodeProject=b.AbstractGroup=b.PBXGroup=void 0;var xU=b$();Object.defineProperty(b,"PBXGroup",{enumerable:!0,get:function(){return xU.PBXGroup}});Object.defineProperty(b,"AbstractGroup",{enumerable:!0,get:function(){return xU.AbstractGroup}});var eE=wJ();Object.defineProperty(b,"XcodeProject",{enumerable:!0,get:function(){return eE.XcodeProject}});var $A=UJ();Object.defineProperty(b,"PBXAggregateTarget",{enumerable:!0,get:function(){return $A.PBXAggregateTarget}});var ZA=J$();Object.defineProperty(b,"PBXBuildFile",{enumerable:!0,get:function(){return ZA.PBXBuildFile}});var YA=OJ();Object.defineProperty(b,"PBXBuildRule",{enumerable:!0,get:function(){return YA.PBXBuildRule}});var JA=bZ();Object.defineProperty(b,"PBXContainerItemProxy",{enumerable:!0,get:function(){return JA.PBXContainerItemProxy}});var KA=u$();Object.defineProperty(b,"PBXFileReference",{enumerable:!0,get:function(){return KA.PBXFileReference}});var zA=KJ();Object.defineProperty(b,"PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",{enumerable:!0,get:function(){return zA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet}});var QA=JJ();Object.defineProperty(b,"PBXFileSystemSynchronizedBuildFileExceptionSet",{enumerable:!0,get:function(){return QA.PBXFileSystemSynchronizedBuildFileExceptionSet}});var GA=YJ();Object.defineProperty(b,"PBXFileSystemSynchronizedRootGroup",{enumerable:!0,get:function(){return GA.PBXFileSystemSynchronizedRootGroup}});var UA=qJ();Object.defineProperty(b,"PBXLegacyTarget",{enumerable:!0,get:function(){return UA.PBXLegacyTarget}});var qA=RY();Object.defineProperty(b,"PBXNativeTarget",{enumerable:!0,get:function(){return qA.PBXNativeTarget}});var HA=FJ();Object.defineProperty(b,"PBXProject",{enumerable:!0,get:function(){return HA.PBXProject}});var VA=BY();Object.defineProperty(b,"PBXReferenceProxy",{enumerable:!0,get:function(){return VA.PBXReferenceProxy}});var y0=p1();Object.defineProperty(b,"AbstractBuildPhase",{enumerable:!0,get:function(){return y0.AbstractBuildPhase}});Object.defineProperty(b,"PBXAppleScriptBuildPhase",{enumerable:!0,get:function(){return y0.PBXAppleScriptBuildPhase}});Object.defineProperty(b,"PBXCopyFilesBuildPhase",{enumerable:!0,get:function(){return y0.PBXCopyFilesBuildPhase}});Object.defineProperty(b,"PBXFrameworksBuildPhase",{enumerable:!0,get:function(){return y0.PBXFrameworksBuildPhase}});Object.defineProperty(b,"PBXHeadersBuildPhase",{enumerable:!0,get:function(){return y0.PBXHeadersBuildPhase}});Object.defineProperty(b,"PBXResourcesBuildPhase",{enumerable:!0,get:function(){return y0.PBXResourcesBuildPhase}});Object.defineProperty(b,"PBXRezBuildPhase",{enumerable:!0,get:function(){return y0.PBXRezBuildPhase}});Object.defineProperty(b,"PBXShellScriptBuildPhase",{enumerable:!0,get:function(){return y0.PBXShellScriptBuildPhase}});Object.defineProperty(b,"PBXSourcesBuildPhase",{enumerable:!0,get:function(){return y0.PBXSourcesBuildPhase}});var WA=$J();Object.defineProperty(b,"PBXVariantGroup",{enumerable:!0,get:function(){return WA.PBXVariantGroup}});var FA=kZ();Object.defineProperty(b,"PBXTargetDependency",{enumerable:!0,get:function(){return FA.PBXTargetDependency}});var OA=Z1();Object.defineProperty(b,"AbstractObject",{enumerable:!0,get:function(){return OA.AbstractObject}});var RA=PZ();Object.defineProperty(b,"XCBuildConfiguration",{enumerable:!0,get:function(){return RA.XCBuildConfiguration}});var IA=WY();Object.defineProperty(b,"XCConfigurationList",{enumerable:!0,get:function(){return IA.XCConfigurationList}});var EA=EY();Object.defineProperty(b,"XCRemoteSwiftPackageReference",{enumerable:!0,get:function(){return EA.XCRemoteSwiftPackageReference}});var AA=AY();Object.defineProperty(b,"XCLocalSwiftPackageReference",{enumerable:!0,get:function(){return AA.XCLocalSwiftPackageReference}});var wA=OY();Object.defineProperty(b,"XCSwiftPackageProductDependency",{enumerable:!0,get:function(){return wA.XCSwiftPackageProductDependency}});var BA=ZJ();Object.defineProperty(b,"XCVersionGroup",{enumerable:!0,get:function(){return BA.XCVersionGroup}});var kU=a9();Object.defineProperty(b,"XCScheme",{enumerable:!0,get:function(){return kU.XCScheme}});Object.defineProperty(b,"createBuildableReference",{enumerable:!0,get:function(){return kU.createBuildableReference}});var CA=t9();Object.defineProperty(b,"XCSharedData",{enumerable:!0,get:function(){return CA.XCSharedData}});var DA=yU();Object.defineProperty(b,"XCWorkspace",{enumerable:!0,get:function(){return DA.XCWorkspace}});var MA=XJ();Object.defineProperty(b,"IDEWorkspaceChecks",{enumerable:!0,get:function(){return MA.IDEWorkspaceChecks}})});var fU=A((K$)=>{var TA=K$&&K$.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),XA=K$&&K$.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))TA(Z,$,Y)};Object.defineProperty(K$,"__esModule",{value:!0});XA(bU(),K$)});var k0=l$(m7(),1);import{existsSync as dU}from"fs";import{join as G$,resolve as cA,dirname as pA}from"path";import{fileURLToPath as dA}from"url";import{parseArgs as lA}from"util";class Y8{rawTemplates;constructor($){this.rawTemplates=new Map(Object.entries($))}getAncestorChain($){let Z=new Set,Y=[],J=(K)=>{if(Z.has(K))return;Z.add(K);let z=this.rawTemplates.get(K);if(!z)return;for(let Q of z.info.Ancestors||[])J(Q);Y.push(K)};return J($),Y}resolve($,Z){let Y=this.getAncestorChain($),J=this.rawTemplates.get($);if(!J)throw Error(`Template not found: ${$}`);let K=[],z={},Q={},U={},G={},H={},V={},I="com.apple.product-type.application",E=["Sources","Frameworks","Resources"],w={},T=[];for(let D of Y){let S=this.rawTemplates.get(D);if(!S)continue;let P=S.info;if(P.Project){if(Object.assign(z,P.Project.SharedSettings||{}),P.Project.Configurations)Object.assign(Q,P.Project.Configurations.Debug||{}),Object.assign(U,P.Project.Configurations.Release||{})}if(P.Targets)for(let R of P.Targets){if(R.ProductType)I=R.ProductType;if(R.BuildPhases)E=R.BuildPhases.map((W)=>W.Class||W);if(Object.assign(G,R.SharedSettings||{}),R.Configurations)Object.assign(H,R.Configurations.Debug||{}),Object.assign(V,R.Configurations.Release||{})}if(P.Definitions)Object.assign(w,P.Definitions);if(P.Nodes)T.push(...P.Nodes);if(P.Options)for(let R of P.Options)this.mergeOption(K,R,Z,w,T,G,H,V,z,Q,U)}for(let D of K)if(D._override)Z[D.identifier]=D._override;let X=this.resolveFiles(T,w,Y,$);return{id:$,name:J.name,description:J.info.Description||"",platform:J.platform,category:J.category,options:K.filter((D)=>!D.notPersisted||D.identifier==="productName"),productType:I,buildPhases:E,projectSharedSettings:z,projectDebugSettings:Q,projectReleaseSettings:U,targetSharedSettings:G,targetDebugSettings:H,targetReleaseSettings:V,files:X,templateFilesDir:""}}mergeOption($,Z,Y,J,K,z,Q,U,G,H,V){let I=Z.Identifier;if(!I)return;if(Z.Override){let w=$.find((T)=>T.identifier===I);if(w)w._override=Z.Override;else{let T=this.parseOption(Z);T._override=Z.Override,$.push(T)}Y[I]=Z.Override}let E=$.find((w)=>w.identifier===I);if(!E&&Z.Type)$.push(this.parseOption(Z));else if(!E&&Z.Values)$.push(this.parseOption({...Z,Type:"popup"}));if(Z.Units){let w=Y[I];if(w&&Z.Units[w]){let T=Z.Units[w],X=Array.isArray(T)?T:[T];for(let D of X){if(D.RequiredOptions){let S=!0;for(let[P,R]of Object.entries(D.RequiredOptions))if(Y[P]!==R){S=!1;break}if(!S)continue}if(D.Definitions)Object.assign(J,D.Definitions);if(D.Nodes)K.push(...D.Nodes);if(D.Targets){for(let S of D.Targets)if(Object.assign(z,S.SharedSettings||{}),S.Configurations)Object.assign(Q,S.Configurations.Debug||{}),Object.assign(U,S.Configurations.Release||{})}if(D.Project){if(Object.assign(G,D.Project.SharedSettings||{}),D.Project.Configurations)Object.assign(H,D.Project.Configurations.Debug||{}),Object.assign(V,D.Project.Configurations.Release||{})}}}}}parseOption($){return{identifier:$.Identifier,name:$.Name?.replace(/:$/,""),description:$.Description,type:($.Type||"popup").toLowerCase(),default:$.Default,values:$.Values||$.ValueTitles,required:$.Required,notPersisted:$.NotPersisted}}resolveFiles($,Z,Y,J){let K=new Map;for(let z of $){if(z.includes(":")&&!z.includes("___")){if(z.split(":")[0].includes("."))continue}let Q=Z[z],U=z,G=50;if(Q&&typeof Q==="object")U=Q.Path||z,G=Q.SortOrder??50;let H=J;for(let V of[...Y].reverse()){let I=this.rawTemplates.get(V);if(I?.sourceFiles?.includes(U)){H=V;break}if(I?.sourceFiles?.some((E)=>E===U||U.startsWith(E+"/"))){H=V;break}}K.set(z,{name:z,sourcePath:U,sortOrder:G,sourceTemplateId:H})}return[...K.values()].sort((z,Q)=>z.sortOrder-Q.sortOrder)}}var hU=l$(V8(),1),uU=l$(h8(),1),mU=l$(u9(),1),C1=l$(fU(),1);import{existsSync as jA,mkdirSync as z$,statSync as PA,cpSync as _A,readFileSync as yA,writeFileSync as Q$}from"node:fs";import{join as z1,extname as vU,basename as gU}from"node:path";import{execSync as xA}from"node:child_process";function TY($,Z){return $.replace(/___FILEHEADER___/g,SA(Z)).replace(/___PACKAGENAME:identifier___/g,LY(Z.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,x0(Z.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,LY(Z.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,x0(Z.productName)).replace(/___PACKAGENAMEASXML___/g,NA(Z.productName)).replace(/___PACKAGENAME___/g,Z.productName).replace(/___PROJECTNAME___/g,Z.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,x0(Z.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,Z.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,x0(Z.productName)).replace(/___VARIABLE_productName___/g,Z.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,Z.organizationName??"").replace(/___ORGANIZATIONNAME___/g,Z.organizationName??"").replace(/___DATE___/g,Z.date).replace(/___YEAR___/g,Z.year).replace(/___FULLUSERNAME___/g,Z.fullUserName).replace(/___COPYRIGHT___/g,Z.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${x0(Z.bundleIdentifierPrefix)}.${x0(Z.productName)}`)}function SA($){return` // ___FILENAME___ // ${$.productName} // // Created by ${$.fullUserName} on ${$.date}. // ${$.copyright} -//`}function b0($){let Y=$.replace(/[^a-zA-Z0-9_]/g,"_");if(/^[0-9]/.test(Y))Y="_"+Y;return Y}function y1($){return $.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function QG($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var pz=$$(dJ(),1),dz=$$(Dz(),1),lz=$$(mz(),1);import{existsSync as qW,mkdirSync as K0,statSync as HW,cpSync as BW}from"fs";import{join as a,extname as o0,basename as cz}from"path";var FW={swift:"sourcecode.swift",m:"sourcecode.c.objc",mm:"sourcecode.cpp.objcpp",c:"sourcecode.c.c",cpp:"sourcecode.cpp.cpp",h:"sourcecode.c.h",hpp:"sourcecode.cpp.h",metal:"sourcecode.metal",storyboard:"file.storyboard",xib:"file.xib",plist:"text.plist.xml",entitlements:"text.plist.entitlements",xcassets:"folder.assetcatalog",xcdatamodeld:"wrapper.xcdatamodeld",xcdatamodel:"wrapper.xcdatamodel",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",json:"text.json",js:"sourcecode.javascript",png:"image.png",jpg:"image.jpeg",gif:"image.gif",pdf:"image.pdf",ttf:"file",otf:"file"};function UW($){let Y=o0($).slice(1).toLowerCase();return FW[Y]}function OW($){let Y=o0($).slice(1).toLowerCase();return["swift","m","mm","c","cpp","metal"].includes(Y)}function RW($){let Y=o0($).slice(1).toLowerCase();return["xcassets","storyboard","xib","xcdatamodeld","strings","stringsdict","json","png","jpg","gif","pdf","ttf","otf","sks","scnassets","usdz"].includes(Y)}function PW($){return new Bun.CryptoHasher("md5").update($).digest("hex").slice(0,24).toUpperCase()}var sz=0;function n($){return PW(`${$}_${sz++}_${Date.now()}`)}function AW(){try{let $=Bun.spawnSync(["id","-F"]);return new TextDecoder().decode($.stdout).trim()||"Unknown"}catch{return"Unknown"}}async function iz($){sz=0;let{name:Y,outputDir:Z,organizationIdentifier:J,organizationName:K,config:z,templateFilesBase:Q}=$,W=a(Z,Y),G=a(W,`${Y}.xcodeproj`),q=a(W,Y),H=a(G,"project.xcworkspace");K0(G,{recursive:!0}),K0(q,{recursive:!0}),K0(H,{recursive:!0});let R=new Date,P={productName:Y,bundleIdentifierPrefix:J,organizationName:K||"",fullUserName:AW(),date:`${R.getMonth()+1}/${R.getDate()}/${R.getFullYear()%100}`,year:String(R.getFullYear()),copyright:K?`Copyright \xA9 ${R.getFullYear()} ${K}. All rights reserved.`:""},w=await EW(z,P,q,Q),{pbxproj:I,targetUUID:T}=wW(Y,z,P,w);await Bun.write(a(G,"project.pbxproj"),I);let X=dz.build({version:"1.0",children:[{type:"FileRef",location:"self:"}]});await Bun.write(a(H,"contents.xcworkspacedata"),X);let D=a(G,"xcshareddata","xcschemes");K0(D,{recursive:!0});let y=kW(Y,z,T);return await Bun.write(a(D,`${Y}.xcscheme`),y),W}async function EW($,Y,Z,J){let K=[];for(let G of $.files){let q=E$(G.name,Y),H=G.sourceTemplateId.replace(/\./g,"_"),R=a(J,H),P=a(R,G.sourcePath),w=a(Z,q);if(qW(P))if(HW(P).isDirectory()){let T=E$(G.sourcePath,Y),X=a(Z,q);BW(P,X,{recursive:!0}),K.push({relativePath:q,filename:q,isDirectory:!0})}else{let T=await Bun.file(P).text(),X=E$(T,Y);X=X.replace(/___FILENAME___/g,q),X=X.replace(/___FILEBASENAME___/g,cz(q,o0(q))),X=X.replace(/___FILEBASENAMEASIDENTIFIER___/g,b0(cz(q,o0(q)))),await Bun.write(w,X),K.push({relativePath:q,filename:q,isDirectory:!1})}}let z=a(Z,"Assets.xcassets");K0(z,{recursive:!0}),await Bun.write(a(z,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let Q=a(z,"AppIcon.appiconset");K0(Q,{recursive:!0}),await Bun.write(a(Q,"Contents.json"),JSON.stringify(CW($.platform),null,2));let W=a(z,"AccentColor.colorset");if(K0(W,{recursive:!0}),await Bun.write(a(W,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),!K.some((G)=>G.filename==="Assets.xcassets"))K.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0});return K}function CW($){let Y={author:"xcode",version:1};switch($){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:Y};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:Y};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:Y};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:Y};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y}}}function wW($,Y,Z,J){let K=b0($),z=`${y1(Z.bundleIdentifierPrefix)}.${y1($)}`,Q=n("rootProject"),W=n("mainGroup"),G=n("sourcesGroup"),q=n("productsGroup"),H=n("productRef"),R=n("target"),P=n("projectConfigList"),w=n("targetConfigList"),I=n("projectDebugConfig"),T=n("projectReleaseConfig"),X=n("targetDebugConfig"),D=n("targetReleaseConfig"),y=n("sourcesBuildPhase"),O=n("frameworksBuildPhase"),B=n("resourcesBuildPhase"),V=jW(Y.platform),U={},E={},k=[],F=[];for(let L of J){let p=n(`ref_${L.filename}`),u1=n(`build_${L.filename}`);if(U[L.filename]=p,E[L.filename]=u1,L.isDirectory||RW(L.filename))F.push(L.filename);else if(OW(L.filename))k.push(L.filename)}let A={...Y.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},j={...Y.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},S={...Y.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},M={...V.targetSettings,...Y.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:z,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:$,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor"};Object.assign(M,V.deploymentTarget);let h={...Y.targetDebugSettings},c={...Y.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},_={};_[I]={isa:"XCBuildConfiguration",buildSettings:{...A,...j},name:"Debug"},_[T]={isa:"XCBuildConfiguration",buildSettings:{...A,...S},name:"Release"},_[P]={isa:"XCConfigurationList",buildConfigurations:[I,T],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"},_[X]={isa:"XCBuildConfiguration",buildSettings:{...M,...h},name:"Debug"},_[D]={isa:"XCBuildConfiguration",buildSettings:{...M,...c},name:"Release"},_[w]={isa:"XCConfigurationList",buildConfigurations:[X,D],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"};for(let L of J){let p=U[L.filename],u1=UW(L.filename);if(_[p]={isa:"PBXFileReference",lastKnownFileType:u1,path:L.filename,sourceTree:""},L.filename.endsWith(".swift"))_[p].lastKnownFileType="sourcecode.swift"}_[H]={isa:"PBXFileReference",explicitFileType:"wrapper.application",includeInIndex:0,path:`${$}.app`,sourceTree:"BUILT_PRODUCTS_DIR"};for(let L of k)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};for(let L of F)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};return _[y]={isa:"PBXSourcesBuildPhase",buildActionMask:2147483647,files:k.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[O]={isa:"PBXFrameworksBuildPhase",buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},_[B]={isa:"PBXResourcesBuildPhase",buildActionMask:2147483647,files:F.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[G]={isa:"PBXGroup",children:J.map((L)=>U[L.filename]),path:$,sourceTree:""},_[q]={isa:"PBXGroup",children:[H],name:"Products",sourceTree:""},_[W]={isa:"PBXGroup",children:[G,q],sourceTree:""},_[R]={isa:"PBXNativeTarget",buildConfigurationList:w,buildPhases:[y,O,B],buildRules:[],dependencies:[],name:$,productName:$,productReference:H,productType:Y.productType},_[Q]={isa:"PBXProject",attributes:{BuildIndependentTargetsInParallel:1,LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[R]:{CreatedOnToolsVersion:"16.2"}}},buildConfigurationList:P,compatibilityVersion:"Xcode 14.0",developmentRegion:"en",hasScannedForEncodings:0,knownRegions:["en","Base"],mainGroup:W,productRefGroup:q,projectDirPath:"",projectRoot:"",targets:[R]},{pbxproj:pz.build({archiveVersion:1,objectVersion:56,classes:{},objects:_,rootObject:Q}),targetUUID:R}}function jW($){switch($){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function kW($,Y,Z){let J={buildableIdentifier:"primary",blueprintIdentifier:Z,buildableName:`${$}.app`,blueprintName:$,referencedContainer:`container:${$}.xcodeproj`};return lz.build({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:J}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var i$;function nz(){let $=[z0(import.meta.dir,"..","templates"),z0(process.argv[0]??".","..","templates"),z0(process.cwd(),"templates")];for(let Y of $)if(az(z0(Y,"manifest.json")))return Y;throw Error("Template manifest not found. Run `bun scripts/extract-templates.ts` first.")}function oz(){if(i$)return i$;let $=nz();return i$=JSON.parse(_1("fs").readFileSync(z0($,"manifest.json"),"utf-8")),i$}function _W(){return z0(nz(),"files")}function DW(){console.log(` +//`}function LY($){let Z=$.replace(/[^a-zA-Z0-9_]/g,"_");if(/^[0-9]/.test(Z))Z="_"+Z;return Z}function x0($){return $.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function NA($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function kA($){return $?.startsWith("sourcecode.")??!1}function bA($){if(!$)return!1;return $.startsWith("image.")||$.startsWith("audio.")||$.startsWith("video.")||$.startsWith("text.plist.strings")||$.startsWith("text.plist.stringsdict")||$.startsWith("text.json")||$==="folder.assetcatalog"||$==="file.storyboard"||$==="file.xib"||$==="file"||$.startsWith("wrapper.xcdatamodel")}function fA(){try{return xA("id -F",{encoding:"utf-8"}).trim()||"Unknown"}catch{return"Unknown"}}async function cU($){let{name:Z,outputDir:Y,organizationIdentifier:J,organizationName:K,config:z,templateFilesBase:Q}=$,U=z1(Y,Z),G=z1(U,`${Z}.xcodeproj`),H=z1(U,Z),V=z1(G,"project.xcworkspace");z$(G,{recursive:!0}),z$(H,{recursive:!0}),z$(V,{recursive:!0});let I=new Date,E={productName:Z,bundleIdentifierPrefix:J,organizationName:K||"",fullUserName:fA(),date:`${I.getMonth()+1}/${I.getDate()}/${I.getFullYear()%100}`,year:String(I.getFullYear()),copyright:K?`Copyright © ${I.getFullYear()} ${K}. All rights reserved.`:""},w=await vA(z,E,H,Q),{pbxproj:T,targetUUID:X}=hA(Z,z,E,w);Q$(z1(G,"project.pbxproj"),T);let D=uU.build({version:"1.0",children:[{type:"FileRef",location:"self:"}]});Q$(z1(V,"contents.xcworkspacedata"),D);let S=z1(G,"xcshareddata","xcschemes");z$(S,{recursive:!0});let P=mA(Z,z,X);return Q$(z1(S,`${Z}.xcscheme`),P),U}async function vA($,Z,Y,J){let K=[];for(let G of $.files){let H=TY(G.name,Z),V=G.sourceTemplateId.replace(/\./g,"_"),I=z1(J,V),E=z1(I,G.sourcePath),w=z1(Y,H);if(jA(E))if(PA(E).isDirectory()){let X=TY(G.sourcePath,Z),D=z1(Y,H);_A(E,D,{recursive:!0}),K.push({relativePath:H,filename:H,isDirectory:!0})}else{let X=yA(E,"utf-8"),D=TY(X,Z);D=D.replace(/___FILENAME___/g,H),D=D.replace(/___FILEBASENAME___/g,gU(H,vU(H))),D=D.replace(/___FILEBASENAMEASIDENTIFIER___/g,LY(gU(H,vU(H)))),Q$(w,D),K.push({relativePath:H,filename:H,isDirectory:!1})}}let z=z1(Y,"Assets.xcassets");z$(z,{recursive:!0}),Q$(z1(z,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let Q=z1(z,"AppIcon.appiconset");z$(Q,{recursive:!0}),Q$(z1(Q,"Contents.json"),JSON.stringify(gA($.platform),null,2));let U=z1(z,"AccentColor.colorset");if(z$(U,{recursive:!0}),Q$(z1(U,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),!K.some((G)=>G.filename==="Assets.xcassets"))K.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0});return K}function gA($){let Z={author:"xcode",version:1};switch($){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Z};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:Z};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:Z};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:Z};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:Z};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Z}}}function hA($,Z,Y,J){let K=`${x0(Y.bundleIdentifierPrefix)}.${x0($)}`,z=uA(Z.platform),Q={...Z.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},U={...Q,...Z.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},G={...Q,...Z.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},H={...z.targetSettings,...Z.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:K,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:$,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor",...z.deploymentTarget},V={...H,...Z.targetDebugSettings},I={...H,...Z.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},E="00000000000000000000ROOT",w=new C1.XcodeProject("project.pbxproj",{archiveVersion:1,objectVersion:56,classes:{},objects:{["00000000000000000000ROOT"]:{isa:"PBXProject",buildConfigurationList:"PLACEHOLDER",mainGroup:"PLACEHOLDER",targets:[],compatibilityVersion:"Xcode 14.0",attributes:{BuildIndependentTargetsInParallel:"YES",LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{}}}},rootObject:"00000000000000000000ROOT"}),T=C1.PBXGroup.create(w,{sourceTree:""}),X=T.createGroup({path:$,sourceTree:""}),D=T.createGroup({name:"Products",sourceTree:""}),S=D.createFile({explicitFileType:"wrapper.application",includeInIndex:0,path:`${$}.app`,sourceTree:"BUILT_PRODUCTS_DIR"}),P=C1.PBXNativeTarget.create(w,{name:$,productName:$,productType:Z.productType,buildConfigurationList:C1.XCConfigurationList.create(w,{buildConfigurations:[C1.XCBuildConfiguration.create(w,{name:"Debug",buildSettings:V}),C1.XCBuildConfiguration.create(w,{name:"Release",buildSettings:I})],defaultConfigurationName:"Release"}),productReference:S}),R=P.getSourcesBuildPhase();P.getFrameworksBuildPhase();let W=P.getResourcesBuildPhase();for(let O of J){let C=X.createFile({path:O.filename,sourceTree:""}),L=C.props.lastKnownFileType;if(O.isDirectory||bA(L))W.createFile({fileRef:C});else if(kA(L))R.createFile({fileRef:C})}let q=w.rootObject;return q.props.buildConfigurationList=C1.XCConfigurationList.create(w,{buildConfigurations:[C1.XCBuildConfiguration.create(w,{name:"Debug",buildSettings:U}),C1.XCBuildConfiguration.create(w,{name:"Release",buildSettings:G})],defaultConfigurationName:"Release"}),q.props.mainGroup=T,q.props.productRefGroup=D,q.props.targets=[P],q.props.attributes={BuildIndependentTargetsInParallel:"YES",LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[P.uuid]:{CreatedOnToolsVersion:"16.2"}}},{pbxproj:hU.build(w.toJSON()),targetUUID:P.uuid}}function uA($){switch($){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function mA($,Z,Y){let J={buildableIdentifier:"primary",blueprintIdentifier:Y,buildableName:`${$}.app`,blueprintName:$,referencedContainer:`container:${$}.xcodeproj`};return mU.build({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:J}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var XY;function lU(){let $=[G$(pA(dA(import.meta.url)),"..","templates"),G$(process.argv[0]??".","..","templates"),G$(process.cwd(),"templates")];for(let Z of $)if(dU(G$(Z,"manifest.json")))return Z;throw Error("Template manifest not found. Run `bun scripts/extract-templates.ts` first.")}function iU(){if(XY)return XY;let $=lU();return XY=JSON.parse(k("fs").readFileSync(G$($,"manifest.json"),"utf-8")),XY}function iA(){return G$(lU(),"files")}function sA(){console.log(` \x1B[1mcreate-xcode\x1B[0m - Create Xcode projects from the command line \x1B[1mUSAGE\x1B[0m @@ -142,9 +151,9 @@ ${Z}`]}function d6($,Y){let Z=[],J=l6(Y),K=[];if($.location!==void 0)K create-xcode MyApp -p ios --storage swiftdata --testing swift-testing create-xcode --list --platform ios create-xcode MyApp -y --org com.example -`.trim())}function TW($){let Y=oz(),Z=Y.templates.filter((z)=>!$||z.platform===$);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${Y.xcodeVersion}) -`);let J="",K="";for(let z of Z){if(z.platform!==J)J=z.platform,console.log(`\x1B[1m\x1B[36m${J}\x1B[0m`),K="";if(z.category!==K)K=z.category,console.log(` \x1B[33m${K}\x1B[0m`);console.log(` ${z.name}\x1B[2m - ${z.description}\x1B[0m`),console.log(` \x1B[2mid: ${z.id}\x1B[0m`)}}function rz($,Y,Z){let J=$.filter((Q)=>Q.platform===Y);if(!Z||Z==="app")return J.find((Q)=>Q.category==="Application"&&(Q.name==="App"||Q.name.includes("SwiftUI App")||Q.name===`${Y} App`))||J.find((Q)=>Q.category==="Application");let K=J.find((Q)=>Q.id===Z);if(K)return K;let z=Z.toLowerCase();return J.find((Q)=>Q.name.toLowerCase()===z)||J.find((Q)=>Q.name.toLowerCase().includes(z))}function t1(){process.exit(0)}async function SW(){let{values:$,positionals:Y}=IW({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});if($.help)DW(),process.exit(0);if($.list)TW($.platform),process.exit(0);let Z=$.yes||Y.length>0&&!process.stdin.isTTY,J=oz(),K=new kY(J.rawTemplates),z=$.platform||"ios";if(!$.platform&&!Z)z=(await v1.default({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map((U)=>({title:U,value:U})),initial:0},{onCancel:t1})).platform;let Q=rz(J.templates,z,$.template);if(!Q&&!Z){let B=J.templates.filter((U)=>U.platform===z&&U.category==="Application");if(B.length===0)console.error(`No application templates found for platform: ${z}`),process.exit(1);Q=(await v1.default({type:"select",name:"idx",message:"Template",choices:B.map((U)=>({title:U.name,description:U.description,value:U})),initial:0},{onCancel:t1})).idx}if(!Q){if(Q=rz(J.templates,z,"app"),!Q)console.error(`Template not found for platform "${z}". Use --list to see available templates.`),process.exit(1)}let W=(()=>{let B=process.cwd(),V=_1("path").basename(B);try{if(_1("fs").readdirSync(B).filter((E)=>!E.startsWith(".")).length===0&&V&&V!=="/"&&V!==".")return V}catch{}return"MyApp"})(),G=Y[0]??"";if(!G&&!Z)G=(await v1.default({type:"text",name:"name",message:"Project name",initial:W},{onCancel:t1})).name??"";if(!G)G=W;let q=$.org??"";if(!q&&!Z)q=(await v1.default({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:t1})).org??"";if(!q)q="com.example";let H=$["org-name"];if(!H&&!Z)H=(await v1.default({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:t1})).orgName;let R=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],P="None";if($.storage)P={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[$.storage.toLowerCase()]||$.storage;else if(!Z)P=(await v1.default({type:"select",name:"storage",message:"Storage",choices:R,initial:0},{onCancel:t1})).storage;let w=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],I="None";if($.testing)I={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[$.testing.toLowerCase()]||$.testing;else if(!Z)I=(await v1.default({type:"select",name:"testing",message:"Testing",choices:w,initial:0},{onCancel:t1})).testing;let T=XW($.output||"."),X={productName:G,bundleIdentifierPrefix:q,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:P,testingSystem:I};if($.verbose)console.log(` -Template:`,Q.name),console.log("ID:",Q.id),console.log("Selections:",X);let D=K.resolve(Q.id,X);if($.verbose)console.log("Files to generate:",D.files.map((B)=>B.name)),console.log("Product type:",D.productType);let y=z0(T,G);if(az(y))if(!Z){if(!(await v1.default({type:"confirm",name:"overwrite",message:`Directory "${G}" already exists. Overwrite?`,initial:!1},{onCancel:t1})).overwrite)console.log("Aborted."),process.exit(0)}else console.error(`Error: Directory "${G}" already exists.`),process.exit(1);console.log(` -Creating ${Q.name} project "${G}" for ${z}...`);let O=await iz({name:G,outputDir:T,organizationIdentifier:q,organizationName:H,config:D,templateFilesBase:_W()});console.log(` -\x1B[32mProject created at ${O}\x1B[0m`),console.log(` -To open in Xcode:`),console.log(` open ${O}/${G}.xcodeproj`)}SW().catch(($)=>{if(console.error(`\x1B[31mError: ${$.message}\x1B[0m`),process.env.DEBUG)console.error($.stack);process.exit(1)}); +`.trim())}function nA($){let Z=iU(),Y=Z.templates.filter((z)=>!$||z.platform===$);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${Z.xcodeVersion}) +`);let J="",K="";for(let z of Y){if(z.platform!==J)J=z.platform,console.log(`\x1B[1m\x1B[36m${J}\x1B[0m`),K="";if(z.category!==K)K=z.category,console.log(` \x1B[33m${K}\x1B[0m`);console.log(` ${z.name}\x1B[2m - ${z.description}\x1B[0m`),console.log(` \x1B[2mid: ${z.id}\x1B[0m`)}}function pU($,Z,Y){let J=$.filter((Q)=>Q.platform===Z);if(!Y||Y==="app")return J.find((Q)=>Q.category==="Application"&&(Q.name==="App"||Q.name.includes("SwiftUI App")||Q.name===`${Z} App`))||J.find((Q)=>Q.category==="Application");let K=J.find((Q)=>Q.id===Y);if(K)return K;let z=Y.toLowerCase();return J.find((Q)=>Q.name.toLowerCase()===z)||J.find((Q)=>Q.name.toLowerCase().includes(z))}function r0(){process.exit(0)}async function rA(){let{values:$,positionals:Z}=lA({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});if($.help)sA(),process.exit(0);if($.list)nA($.platform),process.exit(0);let Y=$.yes||Z.length>0&&!process.stdin.isTTY,J=iU(),K=new Y8(J.rawTemplates),z=$.platform||"ios";if(!$.platform&&!Y)z=(await k0.default({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map((O)=>({title:O,value:O})),initial:0},{onCancel:r0})).platform;let Q=pU(J.templates,z,$.template);if(!Q&&!Y){let W=J.templates.filter((O)=>O.platform===z&&O.category==="Application");if(W.length===0)console.error(`No application templates found for platform: ${z}`),process.exit(1);Q=(await k0.default({type:"select",name:"idx",message:"Template",choices:W.map((O)=>({title:O.name,description:O.description,value:O})),initial:0},{onCancel:r0})).idx}if(!Q){if(Q=pU(J.templates,z,"app"),!Q)console.error(`Template not found for platform "${z}". Use --list to see available templates.`),process.exit(1)}let U=(()=>{let W=process.cwd(),q=k("path").basename(W);try{if(k("fs").readdirSync(W).filter((C)=>!C.startsWith(".")).length===0&&q&&q!=="/"&&q!==".")return q}catch{}return"MyApp"})(),G=Z[0]??"";if(!G&&!Y)G=(await k0.default({type:"text",name:"name",message:"Project name",initial:U},{onCancel:r0})).name??"";if(!G)G=U;let H=$.org??"";if(!H&&!Y)H=(await k0.default({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:r0})).org??"";if(!H)H="com.example";let V=$["org-name"];if(!V&&!Y)V=(await k0.default({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:r0})).orgName;let I=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],E="None";if($.storage)E={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[$.storage.toLowerCase()]||$.storage;else if(!Y)E=(await k0.default({type:"select",name:"storage",message:"Storage",choices:I,initial:0},{onCancel:r0})).storage;let w=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],T="None";if($.testing)T={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[$.testing.toLowerCase()]||$.testing;else if(!Y)T=(await k0.default({type:"select",name:"testing",message:"Testing",choices:w,initial:0},{onCancel:r0})).testing;let X=cA($.output||"."),D={productName:G,bundleIdentifierPrefix:H,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:E,testingSystem:T};if($.verbose)console.log(` +Template:`,Q.name),console.log("ID:",Q.id),console.log("Selections:",D);let S=K.resolve(Q.id,D);if($.verbose)console.log("Files to generate:",S.files.map((W)=>W.name)),console.log("Product type:",S.productType);let P=G$(X,G);if(dU(P))if(!Y){if(!(await k0.default({type:"confirm",name:"overwrite",message:`Directory "${G}" already exists. Overwrite?`,initial:!1},{onCancel:r0})).overwrite)console.log("Aborted."),process.exit(0)}else console.error(`Error: Directory "${G}" already exists.`),process.exit(1);console.log(` +Creating ${Q.name} project "${G}" for ${z}...`);let R=await cU({name:G,outputDir:X,organizationIdentifier:H,organizationName:V,config:S,templateFilesBase:iA()});console.log(` +\x1B[32mProject created at ${R}\x1B[0m`),console.log(` +To open in Xcode:`),console.log(` open ${R}/${G}.xcodeproj`)}rA().catch(($)=>{if(console.error(`\x1B[31mError: ${$.message}\x1B[0m`),process.env.DEBUG)console.error($.stack);process.exit(1)}); diff --git a/bun.lock b/bun.lock index 7f96a47..d21651a 100644 --- a/bun.lock +++ b/bun.lock @@ -7,6 +7,7 @@ "devDependencies": { "@bacons/xcode": "^1.0.0-alpha.33", "@types/bun": "latest", + "@types/node": "^22", "@types/prompts": "^2.4.9", "prompts": "^2.4.2", }, @@ -22,7 +23,7 @@ "@types/bun": ["@types/bun@1.3.12", "", { "dependencies": { "bun-types": "1.3.12" } }, "sha512-DBv81elK+/VSwXHDlnH3Qduw+KxkTIWi7TXkAeh24zpi5l0B2kUg9Ga3tb4nJaPcOFswflgi/yAvMVBPrxMB+A=="], - "@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="], + "@types/node": ["@types/node@22.19.17", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q=="], "@types/prompts": ["@types/prompts@2.4.9", "", { "dependencies": { "@types/node": "*", "kleur": "^3.0.3" } }, "sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA=="], @@ -44,10 +45,18 @@ "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - "undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="], + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], "uuid": ["uuid@8.3.2", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="], "xmlbuilder": ["xmlbuilder@14.0.0", "", {}, "sha512-ts+B2rSe4fIckR6iquDjsKbQFK2NlUk6iG5nf14mDEyldgoc2nEKZ3jZWMPTxGQwVgToSjt6VGIho1H8/fNFTg=="], + + "@types/prompts/@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="], + + "bun-types/@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="], + + "@types/prompts/@types/node/undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="], + + "bun-types/@types/node/undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="], } } diff --git a/package.json b/package.json index 560c671..cbb78f4 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@bacons/xcode": "^1.0.0-alpha.33", "@types/bun": "latest", + "@types/node": "^22", "@types/prompts": "^2.4.9", "prompts": "^2.4.2" }, diff --git a/scripts/build.ts b/scripts/build.ts index ec0bd91..fb19e54 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -26,7 +26,7 @@ async function main() { const result = await Bun.build({ entrypoints: [join(rootDir, "src", "cli.ts")], outdir: buildDir, - target: "bun", + target: "node", minify: true, naming: "cli.mjs", // Inline everything - no external deps at runtime @@ -41,12 +41,11 @@ async function main() { process.exit(1); } - // Ensure shebang is present (bun bundler may or may not preserve it) + // Ensure node shebang for universal compatibility const outPath = join(buildDir, "cli.mjs"); const bundled = await Bun.file(outPath).text(); - if (!bundled.startsWith("#!")) { - await Bun.write(outPath, `#!/usr/bin/env bun\n${bundled}`); - } + const withoutShebang = bundled.replace(/^#!.*\n/, ""); + await Bun.write(outPath, `#!/usr/bin/env node\n${withoutShebang}`); // Make executable const { chmodSync } = require("fs"); diff --git a/src/cli.ts b/src/cli.ts index 9b506a7..5c7bda5 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -6,15 +6,15 @@ * Supports both interactive and non-interactive (agent-friendly) modes. * * Usage: - * bunx create-xcode # Interactive mode - * bunx create-xcode MyApp # Create iOS app named "MyApp" - * bunx create-xcode MyApp --platform macos # Create macOS app - * bunx create-xcode --list # List available templates + * npx create-xcode # Interactive mode + * npx create-xcode MyApp # Create iOS app named "MyApp" + * npx create-xcode MyApp --platform macos # Create macOS app + * npx create-xcode --list # List available templates */ -import { existsSync } from "fs"; -import { join, resolve } from "path"; -// @ts-ignore - parseArgs exists in Node 18.3+ / Bun +import { existsSync } from "node:fs"; +import { join, resolve, dirname } from "node:path"; +import { fileURLToPath } from "node:url"; import { parseArgs } from "node:util"; import prompts from "prompts"; import { TemplateResolver } from "./resolver"; @@ -26,7 +26,7 @@ let manifest: any; function findTemplatesDir(): string { const candidates = [ - join(import.meta.dir, "..", "templates"), + join(dirname(fileURLToPath(import.meta.url)), "..", "templates"), join(process.argv[0] ?? ".", "..", "templates"), join(process.cwd(), "templates"), ]; diff --git a/src/generator.ts b/src/generator.ts index 8e09c76..dda8118 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -5,8 +5,9 @@ * .xcodeproj with source files, build settings, and workspace. */ -import { existsSync, mkdirSync, statSync, cpSync } from "fs"; -import { join, extname, basename } from "path"; +import { existsSync, mkdirSync, statSync, cpSync, readFileSync, writeFileSync } from "node:fs"; +import { join, extname, basename } from "node:path"; +import { execSync } from "node:child_process"; import { build as buildPbxproj } from "@bacons/xcode/json"; import { build as buildWorkspace } from "@bacons/xcode/workspace"; import { build as buildScheme } from "@bacons/xcode/scheme"; @@ -61,11 +62,7 @@ function isResourceFileType(fileType: string | undefined): boolean { function getUserName(): string { try { - const proc = Bun.spawnSync(["id", "-F"]); - return ( - new TextDecoder().decode(proc.stdout as unknown as ArrayBuffer).trim() || - "Unknown" - ); + return execSync("id -F", { encoding: "utf-8" }).trim() || "Unknown"; } catch { return "Unknown"; } @@ -120,14 +117,14 @@ export async function generateProject(opts: GenerateOptions): Promise { vars, writtenFiles, ); - await Bun.write(join(xcodeprojDir, "project.pbxproj"), pbxproj); + writeFileSync(join(xcodeprojDir, "project.pbxproj"), pbxproj); // Generate workspace const workspaceData = buildWorkspace({ version: "1.0", children: [{ type: "FileRef", location: `self:` }], } as any); - await Bun.write( + writeFileSync( join(xcworkspaceDir, "contents.xcworkspacedata"), workspaceData, ); @@ -137,7 +134,7 @@ export async function generateProject(opts: GenerateOptions): Promise { mkdirSync(schemeDir, { recursive: true }); const schemeXml = buildSchemeXml(name, config, targetUUID); - await Bun.write(join(schemeDir, `${name}.xcscheme`), schemeXml); + writeFileSync(join(schemeDir, `${name}.xcscheme`), schemeXml); return projectDir; } @@ -183,7 +180,7 @@ async function copyTemplateFiles( }); } else { // Read, substitute variables, and write - const content = await Bun.file(sourcePath).text(); + const content = readFileSync(sourcePath, "utf-8"); let processed = substituteVariables(content, vars); // Also substitute ___FILENAME___ with the actual filename @@ -197,7 +194,7 @@ async function copyTemplateFiles( toIdentifier(basename(destName, extname(destName))), ); - await Bun.write(destPath, processed); + writeFileSync(destPath, processed); writtenFiles.push({ relativePath: destName, filename: destName, @@ -210,7 +207,7 @@ async function copyTemplateFiles( // Ensure Assets.xcassets exists with AppIcon and AccentColor const assetsPath = join(sourcesDir, "Assets.xcassets"); mkdirSync(assetsPath, { recursive: true }); - await Bun.write( + writeFileSync( join(assetsPath, "Contents.json"), JSON.stringify({ info: { author: "xcode", version: 1 } }, null, 2), ); @@ -218,7 +215,7 @@ async function copyTemplateFiles( // AppIcon - always generate (templates don't include it, Xcode generates dynamically) const appIconDir = join(assetsPath, "AppIcon.appiconset"); mkdirSync(appIconDir, { recursive: true }); - await Bun.write( + writeFileSync( join(appIconDir, "Contents.json"), JSON.stringify(buildAppIconContents(config.platform), null, 2), ); @@ -226,7 +223,7 @@ async function copyTemplateFiles( // AccentColor const accentDir = join(assetsPath, "AccentColor.colorset"); mkdirSync(accentDir, { recursive: true }); - await Bun.write( + writeFileSync( join(accentDir, "Contents.json"), JSON.stringify( {