ompgui 0.7.8 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +3 -3
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +5 -5
- package/.next/react-loadable-manifest.json +13 -13
- package/.next/required-server-files.js +3 -2
- package/.next/required-server-files.json +3 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +2 -2
- package/.next/server/app/_global-error.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/running/events/route.js +2 -2
- package/.next/server/app/api/agent/running/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agents/[name]/route.js +1 -1
- package/.next/server/app/api/agents/[name]/route.js.nft.json +1 -1
- package/.next/server/app/api/agents/route.js +1 -1
- package/.next/server/app/api/agents/route.js.nft.json +1 -1
- package/.next/server/app/api/agents/unpack/route.js +1 -1
- package/.next/server/app/api/agents/unpack/route.js.nft.json +1 -1
- package/.next/server/app/api/app-update/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
- package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/route.js +3 -3
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/model-roles/route.js +1 -1
- package/.next/server/app/api/model-roles/route.js.nft.json +1 -1
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models/route.js.nft.json +1 -1
- package/.next/server/app/api/omp-settings/route.js +1 -1
- package/.next/server/app/api/omp-settings/route.js.nft.json +1 -1
- package/.next/server/app/api/omp-update/route.js +2 -2
- package/.next/server/app/api/omp-update/route.js.nft.json +1 -1
- package/.next/server/app/api/providers/enable/route.js +1 -1
- package/.next/server/app/api/providers/enable/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/archive/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/archive/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/subagents/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/subagents/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +4 -4
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +4 -4
- package/.next/server/app/login.segments/_full.segment.rsc +4 -4
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/pair/page_client-reference-manifest.js +1 -1
- package/.next/server/app/pair.html +1 -1
- package/.next/server/app/pair.rsc +4 -4
- package/.next/server/app/pair.segments/_full.segment.rsc +4 -4
- package/.next/server/app/pair.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/pair.segments/pair/__PAGE__.segment.rsc +4 -4
- package/.next/server/app-paths-manifest.json +3 -3
- package/.next/server/chunks/3100.js +2 -2
- package/.next/server/chunks/3294.js +1 -1
- package/.next/server/chunks/4008.js +18 -0
- package/.next/server/chunks/4367.js +1 -1
- package/.next/server/chunks/4674.js +1 -1
- package/.next/server/chunks/4980.js +1 -1
- package/.next/server/chunks/6429.js +1 -0
- package/.next/server/chunks/7077.js +1 -1
- package/.next/server/chunks/8015.js +107 -0
- package/.next/server/chunks/8501.js +1 -1
- package/.next/server/chunks/933.js +1 -1
- package/.next/server/chunks/9848.js +1 -0
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/server/webpack-runtime.js +1 -1
- package/.next/static/chunks/3274.f8f023fd73e607bc.js +2 -0
- package/.next/static/chunks/4315-fad7ccd6e548e08e.js +1 -0
- package/.next/static/chunks/4906-3ebc61b9b2c31745.js +1 -0
- package/.next/static/chunks/4996.c5525823b73ac947.js +1 -0
- package/.next/static/chunks/5806.06789869309659d0.js +1 -0
- package/.next/static/chunks/6268.c8711c205efe98a6.js +17 -0
- package/.next/static/chunks/9668.6c511d3f22a0d3ad.js +1 -0
- package/.next/static/chunks/app/page-66dfb84af2e0fea1.js +59 -0
- package/.next/static/chunks/webpack-7f93c1ded461bdcd.js +1 -0
- package/.next/static/css/d45df4610e8c9637.css +3 -0
- package/README.ja.md +12 -3
- package/README.ko.md +13 -5
- package/README.md +11 -5
- package/README.zh-CN.md +12 -3
- package/next.config.ts +1 -1
- package/package.json +3 -1
- package/.next/server/chunks/6480.js +0 -18
- package/.next/server/chunks/7226.js +0 -107
- package/.next/server/chunks/7779.js +0 -1
- package/.next/static/chunks/1941.66c3a0942c0c3e5d.js +0 -1
- package/.next/static/chunks/3274.487a15bb28a8bf64.js +0 -2
- package/.next/static/chunks/4315-f0bee51727fa8bed.js +0 -1
- package/.next/static/chunks/4318.196416c4ae7baadf.js +0 -17
- package/.next/static/chunks/4906-1472d0151646b3d8.js +0 -1
- package/.next/static/chunks/7488.1403755f69bda581.js +0 -1
- package/.next/static/chunks/9668.b62ea9e45077f781.js +0 -1
- package/.next/static/chunks/app/page-9304c484c09df22f.js +0 -59
- package/.next/static/chunks/webpack-afa1355fdf81dfd5.js +0 -1
- package/.next/static/css/63b622301ba107de.css +0 -3
- /package/.next/static/{PPk0j6NqdLVIbLaafEqjL → RCJWKG4f3VN3XnWbJ4581}/_buildManifest.js +0 -0
- /package/.next/static/{PPk0j6NqdLVIbLaafEqjL → RCJWKG4f3VN3XnWbJ4581}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
exports.id=8015,exports.ids=[8015],exports.modules={58:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=c(22418),i=c(43823).TypeError,j=c(22418).inherits,k=h.errorObj,l=h.tryCatch,m={};function n(a){setTimeout(function(){throw a},0)}function o(a,b,c){this._data=a,this._promise=b,this._context=c}function p(a,b,c){this.constructor$(a,b,c)}function q(a){return o.isDisposer(a)?(this.resources[this.index]._setDisposable(a),a.promise()):a}function r(a){this.length=a,this.promise=null,this[a-1]=null}o.prototype.data=function(){return this._data},o.prototype.promise=function(){return this._promise},o.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():m},o.prototype.tryDispose=function(a){var b=this.resource(),c=this._context;void 0!==c&&c._pushContext();var d=b!==m?this.doDispose(b,a):null;return void 0!==c&&c._popContext(),this._promise._unsetDisposable(),this._data=null,d},o.isDisposer=function(a){return null!=a&&"function"==typeof a.resource&&"function"==typeof a.tryDispose},j(p,o),p.prototype.doDispose=function(a,b){return this.data().call(a,a,b)},r.prototype._resultCancelled=function(){for(var b=this.length,c=0;c<b;++c){var d=this[c];d instanceof a&&d.cancel()}},a.using=function(){var c,e=arguments.length;if(e<2)return b("you must pass at least 2 arguments to Promise.using");var i=arguments[e-1];if("function"!=typeof i)return b("expecting a function but got "+h.classString(i));var j=!0;2===e&&Array.isArray(arguments[0])?(c=arguments[0],e=c.length,j=!1):(c=arguments,e--);for(var m=new r(e),p=0;p<e;++p){var s=c[p];if(o.isDisposer(s)){var t=s;(s=s.promise())._setDisposable(t)}else{var u=d(s);u instanceof a&&(s=u._then(q,null,null,{resources:m,index:p},void 0))}m[p]=s}for(var v=Array(m.length),p=0;p<v.length;++p)v[p]=a.resolve(m[p]).reflect();var w=a.all(v).then(function(a){for(var b=0;b<a.length;++b){var c=a[b];if(c.isRejected())return k.e=c.error(),k;if(!c.isFulfilled())return void w.cancel();a[b]=c.value()}x._pushContext(),i=l(i);var d=j?i.apply(void 0,a):i(a),e=x._popContext();return g.checkForgottenReturns(d,e,"Promise.using",x),d}),x=w.lastly(function(){var b,c,e,g=new a.PromiseInspection(w);return b=0,c=m.length,e=new a(f),!function f(){if(b>=c)return e._fulfill();var h,i,j=((i=d(h=m[b++]))!==h&&"function"==typeof h._isDisposable&&"function"==typeof h._getDisposer&&h._isDisposable()&&i._setDisposable(h._getDisposer()),i);if(j instanceof a&&j._isDisposable()){try{j=d(j._getDisposer().tryDispose(g),m.promise)}catch(a){return n(a)}if(j instanceof a)return j._then(f,n,null,null,null)}f()}(),e});return m.promise=x,x._setOnCancel(m),x},a.prototype._setDisposable=function(a){this._bitField=131072|this._bitField,this._disposer=a},a.prototype._isDisposable=function(){return(131072&this._bitField)>0},a.prototype._getDisposer=function(){return this._disposer},a.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},a.prototype.disposer=function(a){if("function"==typeof a)return new p(a,this,e());throw new i}}},788:(a,b,c)=>{"use strict";var d=c(69217);function e(a){d.call(this,a)}c(58952).inherits(e,d),e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},1434:a=>{"function"==typeof Object.create?a.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}},1789:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(35976);b.V=function(a,b){return a.exists(b)?a.read(b,"utf-8").then(i).then(h):e.resolve(null)};var g={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function h(a){return f.readString(a,g).then(function(a){return function a(b){return"element"!==b.type?[b]:"mc:AlternateContent"===b.name?b.firstOrEmpty("mc:Fallback").children:(b.children=d.flatten(b.children.map(a,!0)),[b])}(a)[0]})}function i(a){return a.replace(/^\uFEFF/g,"")}},1906:(a,b)=>{function c(a){return"function"==typeof a?a():a}b.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return b.none},flatMap:function(){return b.none},filter:function(){return b.none},toArray:function(){return[]},orElse:c,valueOrElse:c}),b.some=function(a){return new d(a)};var d=function(a){this._value=a};d.prototype.value=function(){return this._value},d.prototype.isNone=function(){return!1},d.prototype.isSome=function(){return!0},d.prototype.map=function(a){return new d(a(this._value))},d.prototype.flatMap=function(a){return a(this._value)},d.prototype.filter=function(a){return a(this._value)?this:b.none},d.prototype.toArray=function(){return[this._value]},d.prototype.orElse=function(a){return this},d.prototype.valueOrElse=function(a){return this._value},b.isOption=function(a){return a===b.none||a instanceof d},b.fromNullable=function(a){return null==a?b.none:new d(a)}},2063:(a,b,c)=>{"use strict";var d=c(71260),e=c(31991),f=c(38141);b.createScalarToken=d.createScalarToken,b.resolveAsScalar=d.resolveAsScalar,b.setScalarValue=d.setScalarValue,b.stringify=e.stringify,b.visit=f.visit,b.BOM="\uFEFF",b.DOCUMENT="\x02",b.FLOW_END="\x18",b.SCALAR="\x1f",b.isCollection=a=>!!a&&"items"in a,b.isScalar=a=>!!a&&("scalar"===a.type||"single-quoted-scalar"===a.type||"double-quoted-scalar"===a.type||"block-scalar"===a.type),b.prettyToken=function(a){switch(a){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(a)}},b.tokenType=function(a){switch(a){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(a[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}},2286:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(54117).isObject,a.exports=function(a){function c(a,d,e,f){var g;c.__super__.constructor.call(this,a),b(d)&&(d=(g=d).version,e=g.encoding,f=g.standalone),d||(d="1.0"),this.version=this.stringify.xmlVersion(d),null!=e&&(this.encoding=this.stringify.xmlEncoding(e)),null!=f&&(this.standalone=this.stringify.xmlStandalone(f))}return d(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},c}(c(8142))}).call(this)},2541:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}]},2904:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$l:()=>P,Ee:()=>T,Le:()=>U,WD:()=>O,rk:()=>N,tB:()=>Q});var e=c(29021),f=c(33873),g=c(71217),h=c(87390),i=c(83739),j=c(28672),k=c(53899),l=c(84435),m=c(25276),n=c(92226),o=a([m]);m=(o.then?(await o)():o)[0];class U extends Error{constructor(a,b,c=[]){super(b),this.name="NativeSettingsError",this.code=a,this.issues=c}}let V=new Set(["__proto__","prototype","constructor"]),W=new Map(k.K.map(a=>[a.path,a])),X={"advisor.immuneTurns":[0,20],"advisor.maxNotesPerUpdate":[1,32],"ask.timeout":[0,3600],"autolearn.minToolCalls":[0,100],"claudeResets.keepCredits":[0,100],"claudeResets.minBlockedMinutes":[0,10080],"claudeResets.salvageHorizonHours":[0,720],"compaction.keepRecentTokens":[1e3,1e6],"extensionHandlers.toolCallTimeoutMs":[1,36e5],"github.cache.hardTtlSec":[0,31536e3],"github.cache.softTtlSec":[0,31536e3],"grep.contextAfter":[0,100],"grep.contextBefore":[0,100],"mcp.notificationDebounceMs":[0,6e4],"mcp.startupTimeoutMs":[0,6e5],"providers.webSearchTimeoutSeconds":[0,300],"retry.maxRetries":[0,20],"retry.usageReservePct":[0,100],"tools.artifactTailLines":[0,1e5],"tools.outputMaxColumns":[0,1048576]};function p(a){let b=a.split(".");if(!b.length||b.some(a=>!a||V.has(a)))throw new U("invalid_path","Settings path is invalid",[{path:a,message:"Invalid settings path"}]);return b}function q(a,b){let c=a,d=[];for(let a of p(b)){if(d.push(a),!(0,j.u4)(c))return{present:!1,malformedAt:d.slice(0,-1).join(".")||a};if(!Object.prototype.hasOwnProperty.call(c,a))return{present:!1};c=c[a]}return{present:!0,value:c}}function r(a,b,c){let d=p(b),e=a;for(let a of d.slice(0,-1)){let b=e[a];(0,j.u4)(b)||(e[a]={}),e=e[a]}e[d.at(-1)]=c}function s(a){if(Array.isArray(a))return a.map(s);if((0,j.u4)(a)){let b={};for(let[c,d]of Object.entries(a))V.has(c)||(b[c]=s(d));return b}return a}function t(a,b,c=0,d={entries:0}){let e;if(c>8)throw Error("is nested too deeply");if(null!==a&&"boolean"!=typeof a){if("string"==typeof a){if(a.length>16384)throw Error("must be at most 16384 characters");return}if("number"==typeof a){if(!Number.isFinite(a))throw Error("must be finite");return}if(Array.isArray(a)){if(a.length>256)throw Error("must contain at most 256 items");for(let e of a)t(e,b,c+1,d);return}if(!(0,j.u4)(a))throw Error("must contain JSON values only");for(let[e,f]of Object.entries(a)){if(d.entries+=1,d.entries>512)throw Error("must contain at most 512 entries");if(!e||e.length>256||V.has(e))throw Error("contains an invalid key");t(f,b,c+1,d)}try{e=JSON.stringify(a)}catch{throw Error("must be JSON serializable")}if(Buffer.byteLength(e,"utf8")>131072)throw Error("must be at most 131072 bytes")}}function u(a,b,c,d){let e=`${a.path}.${b}`;switch(a.recordValues){case"string":if("string"!=typeof c||!c.trim()||c.length>16384)throw Error(`${e} must be a non-empty string`);return c;case"model-role":if(null===c&&"project"===d)return null;if("string"==typeof c){if(!c.trim()||c.length>16384)throw Error(`${e} must be a non-empty model selector`);return c}if(!Array.isArray(c)||0===c.length||c.length>256||c.some(a=>"string"!=typeof a||!a.trim()||a.length>16384))throw Error(`${e} must be a non-empty model selector or selector array`);return[...c];case"boolean-string":if("string"!=typeof c||!c.trim()||c.length>16384)throw Error(`${e} must be an on/off selector or model pattern`);return c;case"string-array":if(!Array.isArray(c)||c.length>256||c.some(a=>"string"!=typeof a||!a.trim()||a.length>16384))throw Error(`${e} must be a bounded string array`);return[...c];case"string-or-string-array":if("string"==typeof c){if(!c.trim()||c.length>16384)throw Error(`${e} must be a non-empty string or string array`);return c}if(!Array.isArray(c)||c.length>256||c.some(a=>"string"!=typeof a||!a.trim()||a.length>16384))throw Error(`${e} must be a non-empty string or bounded string array`);return[...c];case"approval":if("string"!=typeof c||!["allow","prompt","deny"].includes(c))throw Error(`${e} must be an allowed approval policy`);return c;default:return t(c,e),s(c)}}function v(a,b,c=!1){if("string"!=typeof a||!c&&!a.trim()||a.length>16384)throw Error(`${b} must be a bounded string`);return a}function w(a,b,c){let d=a.path,e=function(a,b){let c=a.path;if("modelTags"===c){if(!(0,j.u4)(b))throw Error(`${c} must be an object`);let a={};for(let[d,e]of Object.entries(b)){if(V.has(d)||!(0,j.u4)(e))throw Error(`${c}.${d} must be a model tag object`);let b=new Set(["name","color","hidden"]);if(Object.keys(e).some(a=>!b.has(a)))throw Error(`${c}.${d} contains an unknown field`);let f={name:v(e.name,`${c}.${d}.name`)};if(void 0!==e.color&&(f.color=v(e.color,`${c}.${d}.color`)),void 0!==e.hidden){if("boolean"!=typeof e.hidden)throw Error(`${c}.${d}.hidden must be a boolean`);f.hidden=e.hidden}a[d]=f}return t(a,c),a}if("providers.maxInFlightRequests"===c){if(!(0,j.u4)(b))throw Error(`${c} must be an object`);let a={};for(let[d,e]of Object.entries(b)){if(V.has(d)||"number"!=typeof e||!Number.isFinite(e)||e<=0||e>Number.MAX_SAFE_INTEGER)throw Error(`${c}.${d} must be a positive finite number`);a[d]=Math.max(1,Math.floor(e))}return a}if("images.urls.options"===c||"images.urls.credentials"===c){if(!(0,j.u4)(b))throw Error(`${c} must be an object`);let a={};for(let[d,e]of Object.entries(b)){if(V.has(d)||!(0,j.u4)(e))throw Error(`${c}.${d} must be an object`);let b={};for(let[a,f]of Object.entries(e)){if(V.has(a))throw Error(`${c}.${d} contains an invalid key`);"images.urls.credentials"===c?b[a]=v(f,`${c}.${d}.${a}`):(t(f,`${c}.${d}.${a}`),b[a]=s(f))}a[d]=b}return t(a,c),a}if("bash.patterns"===c){if(!Array.isArray(b)||b.length>256)throw Error(`${c} must be a bounded array`);return b.map((a,b)=>{if(!(0,j.u4)(a)||Object.keys(a).some(a=>!["match","approval"].includes(a)))throw Error(`${c}.${b} must contain only match and approval`);let d=v(a.match,`${c}.${b}.match`);if("allow"!==a.approval&&"prompt"!==a.approval&&"deny"!==a.approval)throw Error(`${c}.${b}.approval is invalid`);return{match:d,approval:a.approval}})}if("bashInterceptor.patterns"===c){if(!Array.isArray(b)||b.length>256)throw Error(`${c} must be a bounded array`);return b.map((a,b)=>{if(!(0,j.u4)(a)||Object.keys(a).some(a=>!["pattern","flags","tool","message","allowSubcommands"].includes(a)))throw Error(`${c}.${b} contains an unknown field`);let d={pattern:v(a.pattern,`${c}.${b}.pattern`),tool:v(a.tool,`${c}.${b}.tool`),message:v(a.message,`${c}.${b}.message`,!0)};void 0!==a.flags&&(d.flags=v(a.flags,`${c}.${b}.flags`,!0));try{new RegExp(d.pattern,d.flags)}catch{throw Error(`${c}.${b} must contain a valid regular expression`)}if(void 0!==a.allowSubcommands){if(!Array.isArray(a.allowSubcommands)||a.allowSubcommands.length>256||a.allowSubcommands.some(a=>"string"!=typeof a||!a.trim()||a.length>16384))throw Error(`${c}.${b}.allowSubcommands must be a bounded string array`);d.allowSubcommands=[...a.allowSubcommands]}return d})}}(a,b);if(void 0!==e)return e;switch(a.kind){case"boolean":if("boolean"!=typeof b)throw Error(`${d} must be a boolean`);return b;case"number":if("number"!=typeof b||!Number.isFinite(b)||Math.abs(b)>Number.MAX_SAFE_INTEGER)throw Error(`${d} must be a bounded finite number`);if(a.integer&&!Number.isSafeInteger(b))throw Error(`${d} must be a safe integer`);let f=X[d],g=a.min??f?.[0],h=a.max??f?.[1];if(void 0!==g&&b<g)throw Error(`${d} must be at least ${g}`);if(void 0!==h&&b>h)throw Error(`${d} must be at most ${h}`);return b;case"string":if("string"!=typeof b)throw Error(`${d} must be a string`);if(b.length>16384)throw Error(`${d} must be at most 16384 characters`);return b;case"enum":if("string"!=typeof b||!a.choices?.includes(b))throw Error(`${d} must be one of the allowed values`);return b;case"array":{if(!Array.isArray(b))throw Error(`${d} must be an array`);if(b.length>256)throw Error(`${d} must contain at most 256 items`);let c=[];for(let e of b)if("string"===a.items){if("string"!=typeof e||!e.trim()||e.length>16384)throw Error(`${d} must contain non-empty strings`);if(a.choices?.length&&!a.choices.includes(e))throw Error(`${d} contains an unsupported value`);c.push(e)}else if("number"===a.items){if("number"!=typeof e||!Number.isFinite(e))throw Error(`${d} must contain finite numbers`);c.push(e)}else t(e,d),c.push(s(e));return c}case"object":{if(!(0,j.u4)(b))throw Error(`${d} must be an object`);let e=Object.entries(b);if(e.length>512)throw Error(`${d} must contain at most 512 entries`);let f={};for(let[b,g]of e){if(!b||b.length>256||V.has(b))throw Error(`${d} contains an invalid key`);f[b]=u(a,b,g,c)}return t(f,d),f}}}function x(a){let b=(0,j.u4)(a.compaction)?a.compaction:void 0,c=b?.methodOrder??a["compaction.methodOrder"];if(Array.isArray(c))return c;let d=b?.strategy??a["compaction.strategy"],e=b?.remoteEnabled??a["compaction.remoteEnabled"],f=!1!==e;switch("shake-summary"===d?"shake":d){case"context-full":return f?["remote","soft"]:["soft"];case"handoff":return f?["handoff","remote","soft"]:["handoff","soft"];case"shake":return f?["shake","remote","soft"]:["shake","soft"];case"snapcompact":return f?["snapcompact","remote","soft"]:["snapcompact","soft"];case"off":return[];default:if(!1===e)return["snapcompact","handoff","shake","soft"];return}}function y(a,b){let c=q(a,b);if(c.present){if(("task.agentAdvisor"===b||"task.agentPrewalk"===b)&&(0,j.u4)(c.value)){let d={};for(let[a,b]of Object.entries(c.value))d[a]="boolean"==typeof b?b?"on":"off":b;if("task.agentAdvisor"===b&&!Object.prototype.hasOwnProperty.call(d,"task")){let b=(0,j.u4)(a.advisor)?a.advisor:void 0,c=b&&Object.prototype.hasOwnProperty.call(b,"subagents")?b.subagents:a["advisor.subagents"];"boolean"==typeof c&&(d.task=c?"on":"off")}return{present:!0,value:d}}return c}if("compaction.methodOrder"===b){let b=x(a);return void 0===b?c:{present:!0,value:b}}if("task.agentAdvisor"===b){let b=(0,j.u4)(a.advisor)?a.advisor:void 0,c=b&&Object.prototype.hasOwnProperty.call(b,"subagents")?b.subagents:a["advisor.subagents"];if("boolean"==typeof c)return{present:!0,value:{task:c?"on":"off"}}}return c}let Y=new Set(["enabledModels","disabledProviders","enabledProviders"]);function z(a,b,c="global"){let d={},e=new Set(b?.map(a=>a.path)??[]),f=!1;for(let g of k.K){if(g.secret)continue;let h=y(a,g.path);if(h.malformedAt){b&&!e.has(h.malformedAt)&&(e.add(h.malformedAt),b.push({path:h.malformedAt,message:"Stored settings section is not an object and was omitted"}));continue}if(h.present)try{if(Y.has(g.path)){let a=function(a){if(!Array.isArray(a)||a.length>256)throw Error("must be a bounded array");t(a,"registry");let b=[],c=!1;for(let d of a)if("string"==typeof d&&d.trim()&&d.length<=16384)b.push(d);else if((0,j.u4)(d))c=!0;else throw Error("must contain strings or path-scoped rules");return{value:b,hasScopedEntries:c}}(h.value);f||=a.hasScopedEntries,r(d,g.path,a.value)}else if("modelRoles"===g.path&&(0,j.u4)(h.value)){let a={};for(let[d,f]of Object.entries(h.value))try{a[d]=u(g,d,f,c)}catch{let a=`${g.path}.${d}`;b&&!e.has(a)&&(e.add(a),b.push({path:a,message:"Stored model role is invalid and was omitted"}))}r(d,g.path,a)}else r(d,g.path,w(g,h.value,c))}catch{b&&!e.has(g.path)&&(e.add(g.path),b.push({path:g.path,message:"Stored value is invalid or outside editor bounds and was omitted"}))}}return f&&(d.registryHasScopedEntries=!0),d}function A(a){let b=(0,g.Tp)((0,e.existsSync)(a)?(0,e.readFileSync)(a,"utf8"):"");if(b.errors.length)throw new U("invalid_yaml","Settings file is not valid YAML",[{path:"$",message:"Invalid YAML syntax"}]);let c=b.toJS();if(null!==c&&!(0,j.u4)(c))throw new U("invalid_yaml","Settings file must contain a YAML mapping",[{path:"$",message:"Expected a mapping"}]);return{path:a,doc:b,raw:(0,j.u4)(c)?c:{}}}function B(){return{path:(0,n.pA)(),scope:"global"}}function C(a){return{...a,path:(0,m.k6)(a.path)}}async function D(a){let b,c;if("string"!=typeof a||!a.trim()||a.length>4096||a.includes("\0"))throw new U("invalid_scope","An existing authorized cwd is required for project settings",[{path:"cwd",message:"Invalid project cwd"}]);try{if(b=(0,e.realpathSync)(a),!(0,e.statSync)(b).isDirectory())throw Error("not a directory")}catch{throw new U("invalid_scope","An existing authorized cwd is required for project settings",[{path:"cwd",message:"Project cwd does not exist"}])}let d=await (0,h.mc)();if(!(0,h.B7)(b,d))throw new U("forbidden_scope","Project settings path is not authorized",[{path:"cwd",message:"Project cwd is outside allowed roots"}]);let g=(0,f.join)(b,".omp","config.yml");try{c=(0,i.SW)(g)}catch{throw new U("forbidden_scope","Project settings path cannot be resolved safely",[{path:"cwd",message:"Project settings path is unsafe"}])}if(!(0,i.o4)(c,new Set([b])))throw new U("forbidden_scope","Project settings path escapes the authorized workspace",[{path:"cwd",message:"Project settings symlink escapes the workspace"}]);return{path:c,scope:"project",cwd:b}}async function E(a,b){let c=a??"global";if("global"===c)return B();if("project"===c)return D(b);throw new U("invalid_scope","scope must be global or project",[{path:"scope",message:"Unsupported settings scope"}])}function F(a){let b={};for(let c of k.K){if(!c.secret)continue;let d=q(a,c.path);b[c.path]=d.present&&null!==d.value&&""!==d.value}return b}function G(a,b="global"){if(!(0,j.u4)(a))throw new U("invalid_settings","settings must be an object",[{path:"settings",message:"Expected an object"}]);try{t(a,"settings")}catch(a){throw new U("invalid_settings","Settings object is malformed",[{path:"settings",message:a instanceof Error?a.message:"Malformed settings object"}])}let c={},d=[],e=new Set;for(let f of k.K){let g=q(a,f.path);if(g.malformedAt&&!e.has(g.malformedAt)){e.add(g.malformedAt),d.push({path:g.malformedAt,message:"Expected an object"});continue}if(g.present){if(f.secret){d.push({path:f.path,message:"Secret fields must use the write-only secrets object"});continue}if("project"===b&&"both"!==f.scope){d.push({path:f.path,message:"This setting is global-only"});continue}try{r(c,f.path,w(f,g.value,b))}catch(a){d.push({path:f.path,message:a instanceof Error?a.message:"Invalid value"})}}}if(d.length)throw new U("invalid_settings","One or more settings are invalid",d);return c}function H(a,b){let c=new Set;for(let d=1;d<=b.length;d+=1){let e=a.getIn(b.slice(0,d),!0);!(0,g.Vj)(e)&&"object"==typeof e&&null!==e&&"anchor"in e&&"string"==typeof e.anchor&&c.add(e.anchor)}0!==c.size&&(0,g.YR)(a,{Alias(d,e){if(!c.has(e.source))return;let f=e.resolve(a);if(!f)throw new U("invalid_yaml","Settings alias cannot be resolved",[{path:b.join("."),message:"Unresolved YAML alias"}]);let g=a.createNode(s(f.toJS(a)));return g.comment=e.comment,g.commentBefore=e.commentBefore,g.spaceBefore=e.spaceBefore,g}})}function I(a,b,c){let d=a.getIn(b,!0);if(!(0,g.Vj)(d))return;let e=a.toJS(),f=(0,j.u4)(e)?q(e,b.join(".")):{present:!1};if(!f.present||!(0,j.u4)(f.value))throw new U("invalid_yaml","Settings alias does not resolve to a mapping",[{path:c,message:"Aliased settings sections must resolve to mappings"}]);let h=f.value;try{t(h,c)}catch{throw new U("invalid_yaml","Aliased settings section cannot be materialized safely",[{path:c,message:"Aliased section contains unsafe or unbounded data"}])}a.setIn(b,a.createNode(s(h)))}function J(a,b,c){let d=p(b);H(a,d);for(let c=1;c<d.length;c+=1){let e=d.slice(0,c);I(a,e,b);let f=a.getIn(e,!0);void 0===f||(0,g.jh)(f)||a.setIn(e,{})}a.setIn(d,c)}function K(a,b){let c=p(b);H(a,c);for(let d=1;d<c.length;d+=1){let e=c.slice(0,d);I(a,e,b);let f=a.getIn(e,!0);if(void 0===f)return;if(!(0,g.jh)(f))return void a.deleteIn(e)}a.deleteIn(c)}function L(a,b){let c=[];for(let d of b){if(!Y.has(d))continue;let b=q(a,d);b.present&&Array.isArray(b.value)&&b.value.some(j.u4)&&c.push({path:d,message:"Path-scoped registry rules are read-only in this editor"})}if(c.length)throw new U("scoped_registry_read_only","Path-scoped registry rules cannot be replaced by this editor",c)}function M(a,b,c,d,h=A(a.path)){let{doc:i,raw:m}=h;if(null===i.contents)i.contents=i.createNode({});else if(!(0,g.jh)(i.contents))throw new U("invalid_yaml","Settings file must contain a YAML mapping",[{path:"$",message:"Expected a mapping"}]);for(let a of(!function(a,b){if(!q(b,"compaction.methodOrder").present){let c=x(b);void 0!==c&&J(a,"compaction.methodOrder",c)}let c=q(b,"task.agentAdvisor"),d=y(b,"task.agentAdvisor");d.present&&!S(c.value,d.value)&&J(a,"task.agentAdvisor",d.value);let e=q(b,"task.agentPrewalk");if(e.present&&(0,j.u4)(e.value)){let b={},c=!1;for(let[a,d]of Object.entries(e.value))b[a]="boolean"==typeof d?d?"on":"off":d,c||="boolean"==typeof d;c&&J(a,"task.agentPrewalk",b)}let f=(0,j.u4)(b.compaction)?b.compaction:void 0;f&&Object.prototype.hasOwnProperty.call(f,"strategy")&&K(a,"compaction.strategy"),f&&Object.prototype.hasOwnProperty.call(f,"remoteEnabled")&&K(a,"compaction.remoteEnabled"),a.delete("compaction.strategy"),a.delete("compaction.remoteEnabled"),a.delete("compaction.methodOrder");let g=(0,j.u4)(b.advisor)?b.advisor:void 0;g&&Object.prototype.hasOwnProperty.call(g,"subagents")&&K(a,"advisor.subagents"),a.delete("advisor.subagents")}(i,m),k.K)){let c=q(b,a.path);c.present&&J(i,a.path,c.value)}for(let a of c)K(i,a);for(let[a,b]of Object.entries(d))null===b?K(i,a):J(i,a,b);(0,e.mkdirSync)((0,f.dirname)(a.path),{recursive:!0}),(0,l.D)(a.path,i.toString())}function N(){let a=B(),b=A(a.path);return{path:a.path,settings:z(b.raw)}}async function O(a){let b=G(a),c=C(B());return(0,e.mkdirSync)((0,f.dirname)(c.path),{recursive:!0}),(0,m.th)(c.path,()=>{let a=A(c.path),d=k.K.filter(a=>q(b,a.path).present).map(a=>a.path);return L(a.raw,d),M(c,b,[],{},a),z(A(c.path).raw)})}async function P(a){let b=C(B());return(0,e.mkdirSync)((0,f.dirname)(b.path),{recursive:!0}),(0,m.th)(b.path,()=>{let c=A(b.path),d=G(a(z(c.raw))),e=k.K.filter(a=>q(d,a.path).present).map(a=>a.path);return L(c.raw,e),M(b,d,[],{},c),z(A(b.path).raw)})}async function Q(a,b){let c=await E(a,b),d=A(B().path),e=[],f=z(d.raw,e,"global");if("global"===c.scope)return{path:c.path,scope:"global",settings:f,effectiveSettings:s(f),catalog:k.K,secretStatus:F(d.raw),...e.length?{issues:e}:{}};let g=A(c.path),h=z(g.raw,e,"project");return{path:c.path,scope:"project",cwd:c.cwd,settings:h,effectiveSettings:function(a,b){let c=s(a);for(let a of k.K){if(a.secret)continue;let d=q(b,a.path);if(!d.present)continue;let e=q(c,a.path),f=d.value;"modelRoles"===a.path&&(0,j.u4)(f)&&(f=Object.fromEntries(Object.entries(f).filter(([,a])=>null!==a))),r(c,a.path,e.present?function a(b,c){if(!(0,j.u4)(b)||!(0,j.u4)(c))return s(c);let d=s(b);for(let[b,e]of Object.entries(c))d[b]=(0,j.u4)(d[b])&&(0,j.u4)(e)?a(d[b],e):s(e);return d}(e.value,f):s(f))}return b.registryHasScopedEntries&&(c.registryHasScopedEntries=!0),c}(f,h),catalog:k.K,secretStatus:F(d.raw),...e.length?{issues:e}:{}}}function R(a,b){if(!Array.isArray(a)||a.length>k.K.length||a.some(a=>"string"!=typeof a))throw new U("invalid_update",`${b} must be an array of settings paths`,[{path:b,message:"Expected a bounded string array"}]);return[...new Set(a)]}function S(a,b){if(Object.is(a,b))return!0;if(Array.isArray(a)||Array.isArray(b))return Array.isArray(a)&&Array.isArray(b)&&a.length===b.length&&a.every((a,c)=>S(a,b[c]));if(!(0,j.u4)(a)||!(0,j.u4)(b))return!1;let c=Object.keys(a).sort(),d=Object.keys(b).sort();return c.length===d.length&&c.every((c,e)=>c===d[e]&&S(a[c],b[c]))}async function T(a){if(!(0,j.u4)(a))throw new U("invalid_update","Settings update must be an object",[{path:"$",message:"Expected an object"}]);let b=C(await E(a.scope,a.cwd)),c=void 0===a.settings?{}:G(a.settings,b.scope),d=void 0===a.reset?[]:R(a.reset,"reset"),g=new Set(void 0===a.confirm?[]:R(a.confirm,"confirm")),h=[];for(let a of d){let c=W.get(a);!c||c.secret?h.push({path:a,message:"Unknown or secret reset path"}):"project"===b.scope&&"both"!==c.scope&&h.push({path:a,message:"This setting is global-only"})}let i=a.secrets;void 0===i||(0,j.u4)(i)||h.push({path:"secrets",message:"Expected an object keyed by secret path"});let l={};if((0,j.u4)(i))for(let[a,c]of(Object.keys(i).length>256&&h.push({path:"secrets",message:"Must contain at most 256 entries"}),Object.entries(i))){let d=W.get(a);if(!d?.secret){h.push({path:a,message:"Unknown secret path"});continue}if("project"===b.scope&&"both"!==d.scope){h.push({path:a,message:"This secret is global-only"});continue}if(null===c){l[a]=null;continue}if("string"!=typeof c||!c.length||c.length>131072){h.push({path:a,message:"Secret replacement must be a non-empty bounded string or null"});continue}try{let e="object"===d.kind?JSON.parse(c):c;l[a]=w(d,e,b.scope)}catch{h.push({path:a,message:"Secret replacement has an invalid format"})}}if(h.length)throw new U("invalid_update","Settings update is invalid",h);let n=new Set(d);for(let a of k.K)q(c,a.path).present&&n.add(a.path);for(let a of Object.keys(l))n.add(a);(0,e.mkdirSync)((0,f.dirname)(b.path),{recursive:!0});let o=await (0,m.th)(b.path,async()=>{let a=A(b.path);for(let b of(L(a.raw,n),n)){let e=W.get(b);if(!e?.confirmation)continue;let f=y(a.raw,b),i=q(c,b),j=d.includes(b)?void 0:e.secret?l[b]:i.value;(f.present?S(f.value,j):void 0===f.malformedAt&&null==j)||g.has(b)||h.push({path:b,message:"Explicit confirmation is required"})}if(h.length)throw new U("confirmation_required","Explicit confirmation is required for risky settings",h);return M(b,c,d,l,a),Q(b.scope,b.cwd)}),p=["enabledModels","enabledProviders","disabledProviders","modelProviderOrder"].some(a=>n.has(a));return{snapshot:o,registryInvalidated:p}}d()}catch(a){d(a)}})},3289:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(81833),g=c(40542);b.composeScalar=function(a,b,c,h){let i,j,{value:k,type:l,comment:m,range:n}="block-scalar"===b.type?f.resolveBlockScalar(a,b,h):g.resolveFlowScalar(b,a.options.strict,h),o=c?a.directives.tagName(c.source,a=>h(c,"TAG_RESOLVE_FAILED",a)):null;i=a.options.stringKeys&&a.atKey?a.schema[d.SCALAR]:o?function(a,b,c,e,f){if("!"===c)return a[d.SCALAR];let g=[];for(let b of a.tags)if(!b.collection&&b.tag===c)if(!b.default||!b.test)return b;else g.push(b);for(let a of g)if(a.test?.test(b))return a;let h=a.knownTags[c];return h&&!h.collection?(a.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(f(e,"TAG_RESOLVE_FAILED",`Unresolved tag: ${c}`,"tag:yaml.org,2002:str"!==c),a[d.SCALAR])}(a.schema,k,o,c,h):"scalar"===b.type?function({atKey:a,directives:b,schema:c},e,f,g){let h=c.tags.find(b=>(!0===b.default||a&&"key"===b.default)&&b.test?.test(e))||c[d.SCALAR];if(c.compat){let a=c.compat.find(a=>a.default&&a.test?.test(e))??c[d.SCALAR];if(h.tag!==a.tag){let c=b.tagString(h.tag),d=b.tagString(a.tag);g(f,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${c} or ${d}`,!0)}}return h}(a,k,b,h):a.schema[d.SCALAR];try{let f=i.resolve(k,a=>h(c??b,"TAG_RESOLVE_FAILED",a),a.options);j=d.isScalar(f)?f:new e.Scalar(f)}catch(a){h(c??b,"TAG_RESOLVE_FAILED",a instanceof Error?a.message:String(a)),j=new e.Scalar(k)}return j.range=n,j.source=k,l&&(j.type=l),o&&(j.tag=o),i.format&&(j.format=i.format),m&&(j.comment=m),j}},3327:(a,b,c)=>{"use strict";var d=c(10140),e=c(3404),f=c(73315),g=c(26957),h=c(49443);class i extends g.NodeBase{constructor(a){super(f.ALIAS),this.source=a,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(a,b){let c,d;if(b?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let g of(b?.aliasResolveCache?c=b.aliasResolveCache:(c=[],e.visit(a,{Node:(a,b)=>{(f.isAlias(b)||f.hasAnchor(b))&&c.push(b)}}),b&&(b.aliasResolveCache=c)),c)){if(g===this)break;g.anchor===this.source&&(d=g)}return d}toJSON(a,b){if(!b)return{source:this.source};let{anchors:c,doc:d,maxAliasCount:e}=b,g=this.resolve(d,b);if(!g)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let i=c.get(g);if(i||(h.toJS(g,null,b),i=c.get(g)),i?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(e>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function a(b,c,d){if(f.isAlias(c)){let a=c.resolve(b),e=d&&a&&d.get(a);return e?e.count*e.aliasCount:0}if(f.isCollection(c)){let e=0;for(let f of c.items){let c=a(b,f,d);c>e&&(e=c)}return e}return f.isPair(c)?Math.max(a(b,c.key,d),a(b,c.value,d)):1}(d,g,c)),i.count*i.aliasCount>e))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return i.res}toString(a,b,c){let e=`*${this.source}`;if(a){if(d.anchorIsValid(this.source),a.options.verifyAliasOrder&&!a.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(a.implicitKey)return`${e} `}return e}}b.Alias=i},3404:(a,b,c)=>{"use strict";var d=c(73315);let e=Symbol("break visit"),f=Symbol("skip children"),g=Symbol("remove node");function h(a,b){let c=l(b);d.isDocument(a)?i(null,a.contents,c,Object.freeze([a]))===g&&(a.contents=null):i(null,a,c,Object.freeze([]))}function i(a,b,c,f){let h=m(a,b,c,f);if(d.isNode(h)||d.isPair(h))return n(a,f,h),i(a,h,c,f);if("symbol"!=typeof h){if(d.isCollection(b)){f=Object.freeze(f.concat(b));for(let a=0;a<b.items.length;++a){let d=i(a,b.items[a],c,f);if("number"==typeof d)a=d-1;else{if(d===e)return e;d===g&&(b.items.splice(a,1),a-=1)}}}else if(d.isPair(b)){f=Object.freeze(f.concat(b));let a=i("key",b.key,c,f);if(a===e)return e;a===g&&(b.key=null);let d=i("value",b.value,c,f);if(d===e)return e;d===g&&(b.value=null)}}return h}async function j(a,b){let c=l(b);d.isDocument(a)?await k(null,a.contents,c,Object.freeze([a]))===g&&(a.contents=null):await k(null,a,c,Object.freeze([]))}async function k(a,b,c,f){let h=await m(a,b,c,f);if(d.isNode(h)||d.isPair(h))return n(a,f,h),k(a,h,c,f);if("symbol"!=typeof h){if(d.isCollection(b)){f=Object.freeze(f.concat(b));for(let a=0;a<b.items.length;++a){let d=await k(a,b.items[a],c,f);if("number"==typeof d)a=d-1;else{if(d===e)return e;d===g&&(b.items.splice(a,1),a-=1)}}}else if(d.isPair(b)){f=Object.freeze(f.concat(b));let a=await k("key",b.key,c,f);if(a===e)return e;a===g&&(b.key=null);let d=await k("value",b.value,c,f);if(d===e)return e;d===g&&(b.value=null)}}return h}function l(a){return"object"==typeof a&&(a.Collection||a.Node||a.Value)?Object.assign({Alias:a.Node,Map:a.Node,Scalar:a.Node,Seq:a.Node},a.Value&&{Map:a.Value,Scalar:a.Value,Seq:a.Value},a.Collection&&{Map:a.Collection,Seq:a.Collection},a):a}function m(a,b,c,e){return"function"==typeof c?c(a,b,e):d.isMap(b)?c.Map?.(a,b,e):d.isSeq(b)?c.Seq?.(a,b,e):d.isPair(b)?c.Pair?.(a,b,e):d.isScalar(b)?c.Scalar?.(a,b,e):d.isAlias(b)?c.Alias?.(a,b,e):void 0}function n(a,b,c){let e=b[b.length-1];if(d.isCollection(e))e.items[a]=c;else if(d.isPair(e))"key"===a?e.key=c:e.value=c;else if(d.isDocument(e))e.contents=c;else{let a=d.isAlias(e)?"alias":"scalar";throw Error(`Cannot replace node with ${a} parent`)}}h.BREAK=e,h.SKIP=f,h.REMOVE=g,j.BREAK=e,j.SKIP=f,j.REMOVE=g,b.visit=h,b.visitAsync=j},3863:(a,b)=>{"use strict";b.emptyScalarPosition=function(a,b,c){if(b){c??(c=b.length);for(let d=c-1;d>=0;--d){let c=b[d];switch(c.type){case"space":case"comment":case"newline":a-=c.source.length;continue}for(c=b[++d];c?.type==="space";)a+=c.source.length,c=b[++d];break}}return a}},3987:a=>{var b=function(){return void 0===this}();if(b)a.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:b,propertyIsWritable:function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);return!!(!c||c.writable||c.set)}};else{var c={}.hasOwnProperty,d={}.toString,e={}.constructor.prototype,f=function(a){var b=[];for(var d in a)c.call(a,d)&&b.push(d);return b};a.exports={isArray:function(a){try{return"[object Array]"===d.call(a)}catch(a){return!1}},keys:f,names:f,defineProperty:function(a,b,c){return a[b]=c.value,a},getDescriptor:function(a,b){return{value:a[b]}},freeze:function(a){return a},getPrototypeOf:function(a){try{return Object(a).constructor.prototype}catch(a){return e}},isES5:b,propertyIsWritable:function(){return!0}}}},4186:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{AV:()=>M,Ak:()=>E,E3:()=>Q,Fg:()=>I,Hh:()=>A,Qt:()=>U,Tg:()=>H,Vs:()=>G,Z7:()=>V,bO:()=>S,c7:()=>z,cK:()=>D,gO:()=>O,h6:()=>B,il:()=>C,m4:()=>L,pB:()=>N,ps:()=>K,q$:()=>R,v:()=>P});var e=c(73024),f=c(31421),g=c(57975),h=c(48161),i=c(76760),j=c(67646),k=c(77598),l=c(38475),m=c(87390),n=c(26980),o=c(91652),p=c(36862),q=c(36148),r=c(92952),s=c(82043),t=c(12144),u=c(27572),v=c(98122),w=c(96851),x=c(20553),y=a([t,v]);[t,v]=y.then?(await y)():y;let V=new Set,W=new Set(["node_modules",".git",".next","dist","build","__pycache__",".turbo",".cache","coverage",".pytest_cache",".mypy_cache","target","vendor",".DS_Store"]),X=new Set(["auto","minimal","low","medium","high","xhigh","max"]);async function z(){let a=(0,r.hw)(),b=(await (0,s.dQ)()).map(a=>a.projectRoot??a.cwd).filter(a=>!!a),c=(0,r.tA)(a,b);for(let a of c)(0,m.wz)(a.path);return c.map(a=>({path:a.path,name:(0,i.basename)(a.path)||a.path,...a.addedAt?{addedAt:a.addedAt}:{}}))}async function A(a,b=0,c=100){let d,f,g=await (0,m.mc)(),j=(a??"").trim(),k=j?(0,i.resolve)(j):[...g][0]??(0,h.homedir)();if(!(0,m.B7)(k,g))throw new v.uY("access_denied","Path is outside allowed workspaces");try{d=(0,e.statSync)(k)}catch{throw new v.uY("path_not_found","Path not found")}if(!d.isDirectory())throw new v.uY("not_a_directory","Path is not a directory");let l=[];try{f=(0,e.readdirSync)(k,{withFileTypes:!0})}catch{throw new v.uY("access_denied","Could not read directory")}let n=(0,e.realpathSync)(k);for(let a of[...f].sort((a,b)=>a.name.localeCompare(b.name))){if(W.has(a.name)||a.name.endsWith(".pyc"))continue;let b=(0,i.join)(k,a.name);if(V.has(b)||V.has((0,i.join)(n,a.name))||!(0,m.B7)(b,g))continue;let c=(0,q.w)(a,b);null!==c&&l.push({name:a.name,path:b,dir:c})}let o=F(b,c);return{path:k,entries:l.slice(o.offset,o.offset+o.limit),total:l.length,...o,hasMore:o.offset+o.limit<l.length}}function B(){return u.Kj.map(a=>({name:a.name,requiresArgs:a.requiresArgs,hint:a.name}))}async function C(a){let b;try{b=(0,r.fm)(a.cwd)}catch(a){if(a instanceof r.HZ)throw new v.uY(a.code,a.message);throw a}if(!(0,e.existsSync)(b))throw new v.uY("directory_not_found",`Directory does not exist: ${b}`);let c=a.message?.trim()??"";if(c.length>w._Q)throw new v.uY("invalid_command","prompt message is too long");let d=a.thinkingLevel?.trim();if(d&&!X.has(d))throw new v.uY("invalid_command","Unknown thinking level");let f=a.provider?.trim(),g=a.modelId?.trim();if(f&&!g||!f&&g)throw new v.uY("invalid_command","set_model requires provider and modelId");let h=`__new__${(0,k.randomUUID)()}`,{session:i,realSessionId:j}=await (0,t.OF)(h,"",b,a.toolNames,a.advisor??!1);return(0,m.wz)(b),(0,s.mD)(),f&&g&&await i.send({type:"set_model",provider:f,modelId:g}),d&&await i.send({type:"set_thinking_level",level:d}),c&&await i.send({type:"prompt",message:c}),{sessionId:j}}let Y={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",py:"python",go:"go",rs:"rust",java:"java",kt:"kotlin",json:"json",md:"markdown",yml:"yaml",yaml:"yaml",sh:"bash",css:"css",html:"html",txt:"text"};async function D(a){let b=await (0,m.mc)(),c=(0,i.resolve)(a.trim());if(!(0,m.B7)(c,b))throw new v.uY("access_denied","Path is outside allowed workspaces");return c}async function E(a,b){let c=await (0,m.mc)(),d=(0,e.realpathSync)(await D(a));if(!(0,m.B7)(d,c))throw new v.uY("access_denied","Path is outside allowed workspaces");try{let a=await (0,x.$)(d,b,8388608);if(!(0,m.B7)(d,c))throw new v.uY("access_denied","Path is outside allowed workspaces");return{path:d,...a,mime:"text/html"}}catch(a){if(a instanceof x.l)throw new v.uY(a.code,a.message);throw a}}function F(a=0,b=100){if(!Number.isSafeInteger(a)||a<0||!Number.isSafeInteger(b)||b<1||b>100)throw new v.uY("invalid_args","Invalid pagination (limit must be 1–100)");return{offset:a,limit:b}}function G(a){let b=(0,e.statSync)(a,{bigint:!0});return`${b.dev}:${b.ino}:${b.size}:${b.mtimeNs}:${b.ctimeNs}`}function H(a){let b=(0,e.openSync)(a,"r");try{let a,c=(0,k.createHash)("sha256"),d=Buffer.allocUnsafe(131072);for(;(a=(0,e.readSync)(b,d,0,d.length,null))>0;)c.update(d.subarray(0,a));return c.digest("hex")}finally{(0,e.closeSync)(b)}}async function I(a){let b=await D(a),c=(0,e.statSync)(b);if(!c.isFile()&&!c.isDirectory())throw new v.uY("not_a_file","Unsupported file type");let d=(0,o.cV)(b),f=(0,o.X)(b),g=(0,o.Ac)(b),h=d?"image":f?"audio":g??"text";if(c.isFile()&&"text"===h){let a=(0,e.openSync)(b,"r");try{let b=Buffer.allocUnsafe(Math.min(c.size,8192)),d=(0,e.readSync)(a,b,0,b.length,0);if(b.subarray(0,d).includes(0))h="binary";else try{new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(b.subarray(0,d),{stream:d<c.size})}catch{h="binary"}}finally{(0,e.closeSync)(a)}}let j=(0,i.basename)(b).toLowerCase().split(".").pop()??"";return{path:b,name:(0,i.basename)(b),size:c.size,mtimeMs:c.mtimeMs,revision:G(b),kind:c.isDirectory()?"dir":"file",previewKind:h,mime:c.isDirectory()?"inode/directory":d??f??(0,o.oC)(b)??("binary"===h?"application/octet-stream":({json:"application/json",html:"text/html",css:"text/css",csv:"text/csv",js:"text/javascript",mjs:"text/javascript",xml:"application/xml",md:"text/markdown"})[j]??"text/plain")}}function J(a,b){let c=Math.min(a.length,b);if(c<a.length)for(;c>0&&(192&a[c])==128;)c--;return a.subarray(0,c)}async function K(a,b,c,d=98304){let f,g,h=await I(a);if("file"!==h.kind)throw new v.uY("not_a_file","Path is not a file");if("text"!==h.previewKind)throw Object.assign(new v.uY("use_download","Use download for this file"),{details:{meta:h}});if(h.revision!==b)throw new v.uY("stale_revision","File changed; reload before continuing");if(!Number.isSafeInteger(c)||c<0||c>h.size||!Number.isSafeInteger(d)||d<4||d>98304)throw new v.uY("invalid_args","Invalid read range");let i=(0,e.openSync)(h.path,"r");try{let a=Buffer.allocUnsafe(Math.min(d+4,h.size-c)),b=(0,e.readSync)(i,a,0,a.length,c);f=J(a.subarray(0,b),d)}finally{(0,e.closeSync)(i)}try{g=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(f)}catch{throw Object.assign(new v.uY("use_download","File is not UTF-8 text"),{details:{meta:{...h,previewKind:"binary",mime:"application/octet-stream"}}})}let j=c+f.length,k=j===h.size,l=k?H(h.path):void 0;if(G(h.path)!==b)throw new v.uY("stale_revision","File changed during read");return{text:g,nextOffset:j,complete:k,...l?{contentHash:l}:{}}}async function L(a){let b=await I(a),c=await K(b.path,b.revision,0),d=b.name.toLowerCase().split(".").pop()??"";return{path:b.path,name:b.name,language:Y[d]??"text",revision:b.revision,size:b.size,bytes:b.size,encoding:"utf8",truncated:!c.complete,...c}}async function M(a){let b=(0,i.resolve)(a.trim()),c=await (0,p.ew)(b,await (0,m.mc)());if(!c)throw new v.uY("access_denied","Path is outside allowed workspaces");let{project:d,listingCwd:e}=c,f=[],g=null,h=!0;try{f=await (0,p.P9)(e),g=(0,p.xw)(f,b)}catch{h=!1}for(let a of f)(0,m.wz)(a.path);return{cwd:b,projectRoot:d.projectRoot,isGit:h,currentWorktreePath:g,worktrees:f.map(a=>({path:a.path,branch:a.branch,isMain:a.isMain}))}}async function N(a,b,c,d,f=!1){let g=await (0,m.mc)(),h=(0,i.resolve)(a.trim()),j=(0,i.dirname)(h);if(!(0,m.B7)(j,g))throw new v.uY("access_denied","Path is outside allowed workspaces");let l=(0,e.realpathSync)(j),n=(0,i.join)(l,(0,i.basename)(h)),o=384,p=!1,q=()=>{let a;if((0,e.realpathSync)(j)!==l||!(0,m.B7)(j,g))throw new v.uY("access_denied","Directory changed");try{a=(0,e.lstatSync)(n)}catch(a){if(!(a instanceof Error&&"code"in a&&"ENOENT"===a.code))throw a}if(a){if(!a.isFile()||a.isSymbolicLink())throw new v.uY("not_a_file","Cannot replace a directory or symbolic link");if(!(0,m.B7)(n,g))throw new v.uY("access_denied","Path is outside allowed workspaces");if(!c||!d)throw new v.uY("revision_required","Read the complete file before saving");let b=G(n);if(b!==c||H(n)!==d||G(n)!==b)throw new v.uY("stale_revision","File changed; your edits were not written");return o=4095&a.mode,!0}if(c||d||!f)throw new v.uY("stale_revision","File is missing; explicit creation is required");return!1};p=q();let r=(0,i.join)(l,`.relay-save-${(0,k.randomUUID)()}`),s=(0,e.openSync)(r,e.constants.O_CREAT|e.constants.O_EXCL|e.constants.O_WRONLY,o);try{(0,e.writeFileSync)(s,b,"utf8"),(0,e.chmodSync)(r,o),(0,e.fsyncSync)(s)}catch(a){throw(0,e.unlinkSync)(r),a}finally{(0,e.closeSync)(s)}try{if(q()!==p)throw new v.uY("stale_revision","File changed before save");p?(0,e.renameSync)(r,n):((0,e.linkSync)(r,n),(0,e.unlinkSync)(r));let a=(0,e.openSync)(l,"r");try{(0,e.fsyncSync)(a)}finally{(0,e.closeSync)(a)}return{path:h,bytes:Buffer.byteLength(b),revision:G(n),contentHash:H(n)}}finally{(0,e.existsSync)(r)&&(0,e.unlinkSync)(r)}}async function O(a,b=0,c=100){let d=await D(a),e=await (0,j.$)(d),f=F(b,c);return{cwd:d,isGitRepository:e.isGitRepository,repositoryRoot:e.repositoryRoot,total:e.files.length,...f,hasMore:f.offset+f.limit<e.files.length,files:e.files.slice(f.offset,f.offset+f.limit).map(a=>({filePath:(0,i.resolve)(e.repositoryRoot??d,a.filePath),status:a.status,code:a.code}))}}async function P(a,b){let c=await D(a),d=(0,i.resolve)(b);if((0,e.existsSync)(d))await D(d);else{let a=(0,i.dirname)(d);for(;!(0,e.existsSync)(a)&&(0,i.dirname)(a)!==a;)a=(0,i.dirname)(a);await D(a)}let f=await (0,j.S)(c,d);if(!f.supported)return{path:d,supported:!1};let g=f.patch??"",h=Buffer.from(g,"utf8"),k=h.length>8e4;return k&&(g=J(h,8e4).toString("utf8")),{path:d,supported:!0,...f.status?{status:f.status}:{},...g?{patch:g}:{},truncated:k}}async function Q(a,b){let c=await D(a);if(!(0,e.existsSync)(c))throw new v.uY("directory_not_found",`Directory does not exist: ${c}`);try{let a=await (0,p.l)(c,b);return(0,m.wz)(a.path),a}catch(b){let a=b instanceof Error?b.message:String(b);throw new v.uY("worktree_add_failed",a)}}async function R(a){let b;try{b=(0,r.fm)(a)}catch(a){if(a instanceof r.HZ)throw new v.uY(a.code,a.message);throw a}let{projectRoot:c}=await (0,p.KI)(b),d=(0,r.hw)(),e=(0,r.RD)(d,c);(0,r.iN)(e),(0,m.wz)(c);let f=e.projects.find(a=>(0,l.v)(a.path)===(0,l.v)(c));return{path:f?.path??c,name:(0,i.basename)(f?.path??c)||c}}async function S(a){let b=a.trim();if(!b)throw new v.uY("path_required","Path is required");let{projectRoot:c}=await (0,p.KI)(b),d=(0,r.hw)();return(0,r.iN)((0,r.Cb)(d,c)),{path:c}}let Z=(0,g.promisify)(f.execFile),$=new Set(["node_modules",".git",".next","dist","build","__pycache__",".turbo",".cache","coverage",".pytest_cache",".mypy_cache","target","vendor",".DS_Store"]);async function T(a){try{let{stdout:b}=await Z("git",["-C",a,"ls-files","--cached","--others","--exclude-standard","-z"],{timeout:1e4,maxBuffer:0x4000000,env:{...process.env,LC_ALL:"C"}});return b.split("\0").filter(Boolean)}catch{}let b=[],c=[{abs:a,rel:"",depth:0}];for(;c.length>0;){let a,d=c.shift();try{a=(0,e.readdirSync)(d.abs,{withFileTypes:!0})}catch{continue}for(let e of a){if($.has(e.name)||e.name.endsWith(".pyc"))continue;let a=d.rel?`${d.rel}/${e.name}`:e.name;e.isDirectory()?c.push({abs:(0,i.join)(d.abs,e.name),rel:a,depth:d.depth+1}):e.isFile()&&b.push(a)}}return b}async function U(a,b,c=0,d=100){let f,g=await D(a);try{f=(0,e.statSync)(g)}catch{throw new v.uY("directory_not_found","Directory not found")}if(!f.isDirectory())throw new v.uY("not_a_directory","Not a directory");let h=await T(g),i=(0,n.Yh)(h),j=(0,n.R7)(i,b,i.length),k=F(c,d);return{cwd:g,query:b,total:j.length,...k,hasMore:k.offset+k.limit<j.length,matches:j.slice(k.offset,k.offset+k.limit).map(a=>({path:a.path,...a.isDir?{isDir:!0}:{}}))}}d()}catch(a){d(a)}})},4204:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=a._getDomain,i=c(22418),j=i.tryCatch;function k(b,c,d,e){this.constructor$(b);var g=h();this._fn=null===g?c:i.domainBind(g,c),void 0!==d&&(d=a.resolve(d))._attachCancellationCallback(this),this._initialValue=d,this._currentCancellable=null,e===f?this._eachValues=Array(this._length):0===e?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function l(a,b){this.isFulfilled()?b._resolve(a):b._reject(a)}function m(a,b,c,e){return"function"!=typeof b?d("expecting a function but got "+i.classString(b)):new k(a,b,c,e).promise()}function n(b){this.accum=b,this.array._gotAccum(b);var c=e(this.value,this.array._promise);return c instanceof a?(this.array._currentCancellable=c,c._then(o,void 0,void 0,this,void 0)):o.call(this,c)}function o(b){var c,d=this.array,e=d._promise,f=j(d._fn);e._pushContext(),(c=void 0!==d._eachValues?f.call(e._boundValue(),b,this.index,this.length):f.call(e._boundValue(),this.accum,b,this.index,this.length))instanceof a&&(d._currentCancellable=c);var h=e._popContext();return g.checkForgottenReturns(c,h,void 0!==d._eachValues?"Promise.each":"Promise.reduce",e),c}i.inherits(k,b),k.prototype._gotAccum=function(a){void 0!==this._eachValues&&null!==this._eachValues&&a!==f&&this._eachValues.push(a)},k.prototype._eachComplete=function(a){return null!==this._eachValues&&this._eachValues.push(a),this._eachValues},k.prototype._init=function(){},k.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},k.prototype.shouldCopyValues=function(){return!1},k.prototype._resolve=function(a){this._promise._resolveCallback(a),this._values=null},k.prototype._resultCancelled=function(b){if(b===this._initialValue)return this._cancel();!this._isResolved()&&(this._resultCancelled$(),this._currentCancellable instanceof a&&this._currentCancellable.cancel(),this._initialValue instanceof a&&this._initialValue.cancel())},k.prototype._iterate=function(b){this._values=b;var c,d,e=b.length;if(void 0!==this._initialValue?(c=this._initialValue,d=0):(c=a.resolve(b[0]),d=1),this._currentCancellable=c,!c.isRejected())for(;d<e;++d){var f={accum:null,value:b[d],index:d,length:e,array:this};c=c._then(n,void 0,void 0,f,void 0)}void 0!==this._eachValues&&(c=c._then(this._eachComplete,void 0,void 0,this,void 0)),c._then(l,l,void 0,c,this)},a.prototype.reduce=function(a,b){return m(this,a,b,null)},a.reduce=function(a,b,c,d){return m(a,b,c,d)}}},4398:function(a,b,c){var d=c(77880),e=c(6560).Result;function f(a,b){function c(a){var b=a.attributes["w:type"];return"continuationSeparator"!==b&&"separator"!==b}function f(c){var e=c.attributes["w:id"];return b.readXmlElements(c.children).map(function(b){return d.Note({noteType:a,noteId:e,body:b})})}return function(b){return e.combine(b.getElementsByTagName("w:"+a).filter(c).map(f))}}b.createFootnotesReader=f.bind(this,"footnote"),b.createEndnotesReader=f.bind(this,"endnote")},4907:function(a,b,c){(function(){var b,d=function(a,b){for(var c in b)e.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},e={}.hasOwnProperty;b=c(54117).isObject,a.exports=function(a){function c(a,d,e,f){if(c.__super__.constructor.call(this,a),null==e)throw Error("Missing DTD entity name. "+this.debugInfo(e));if(null==f)throw Error("Missing DTD entity value. "+this.debugInfo(e));if(this.pe=!!d,this.name=this.stringify.eleName(e),b(f)){if(!f.pubID&&!f.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(e));if(f.pubID&&!f.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(e));if(null!=f.pubID&&(this.pubID=this.stringify.dtdPubID(f.pubID)),null!=f.sysID&&(this.sysID=this.stringify.dtdSysID(f.sysID)),null!=f.nData&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(e))}else this.value=this.stringify.dtdEntityValue(f)}return d(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},c}(c(8142))}).call(this)},5040:a=>{"use strict";a.exports=function(a,b){var c=a.map;a.prototype.filter=function(a,d){return c(this,a,d,b)},a.filter=function(a,d,e){return c(a,d,e,b)}}},5410:(a,b)=>{"use strict";b.byteLength=function(a){var b=i(a),c=b[0],d=b[1];return(c+d)*3/4-d},b.toByteArray=function(a){var b,c,f=i(a),g=f[0],h=f[1],j=new e((g+h)*3/4-h),k=0,l=h>0?g-4:g;for(c=0;c<l;c+=4)b=d[a.charCodeAt(c)]<<18|d[a.charCodeAt(c+1)]<<12|d[a.charCodeAt(c+2)]<<6|d[a.charCodeAt(c+3)],j[k++]=b>>16&255,j[k++]=b>>8&255,j[k++]=255&b;return 2===h&&(b=d[a.charCodeAt(c)]<<2|d[a.charCodeAt(c+1)]>>4,j[k++]=255&b),1===h&&(b=d[a.charCodeAt(c)]<<10|d[a.charCodeAt(c+1)]<<4|d[a.charCodeAt(c+2)]>>2,j[k++]=b>>8&255,j[k++]=255&b),j},b.fromByteArray=function(a){for(var b,d=a.length,e=d%3,f=[],g=0,h=d-e;g<h;g+=16383)f.push(function(a,b,d){for(var e,f=[],g=b;g<d;g+=3)e=(a[g]<<16&0xff0000)+(a[g+1]<<8&65280)+(255&a[g+2]),f.push(c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]);return f.join("")}(a,g,g+16383>h?h:g+16383));return 1===e?f.push(c[(b=a[d-1])>>2]+c[b<<4&63]+"=="):2===e&&f.push(c[(b=(a[d-2]<<8)+a[d-1])>>10]+c[b>>4&63]+c[b<<2&63]+"="),f.join("")};for(var c=[],d=[],e="u">typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,h=f.length;g<h;++g)c[g]=f[g],d[f.charCodeAt(g)]=g;function i(a){var b=a.length;if(b%4>0)throw Error("Invalid string. Length must be a multiple of 4");var c=a.indexOf("=");-1===c&&(c=b);var d=c===b?0:4-c%4;return[c,d]}d[45]=62,d[95]=63},5928:a=>{"use strict";a.exports=function(a){function b(){return this.value}function c(){throw this.reason}a.prototype.return=a.prototype.thenReturn=function(c){return c instanceof a&&c.suppressUnhandledRejections(),this._then(b,void 0,void 0,{value:c},void 0)},a.prototype.throw=a.prototype.thenThrow=function(a){return this._then(c,void 0,void 0,{reason:a},void 0)},a.prototype.catchThrow=function(a){if(arguments.length<=1)return this._then(void 0,c,void 0,{reason:a},void 0);var b=arguments[1];return this.caught(a,function(){throw b})},a.prototype.catchReturn=function(c){if(arguments.length<=1)return c instanceof a&&c.suppressUnhandledRejections(),this._then(void 0,b,void 0,{value:c},void 0);var d=arguments[1];return d instanceof a&&d.suppressUnhandledRejections(),this.caught(c,function(){return d})}}},6163:(a,b,c)=>{"use strict";var d=c(71646);function e(){}var f={},g=["REJECTED"],h=["FULFILLED"],i=["PENDING"],j=["UNHANDLED"];function k(a){if("function"!=typeof a)throw TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,this.handled=j,a!==e&&o(this,a)}function l(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function m(a,b,c){d(function(){var d;try{d=b(c)}catch(b){return f.reject(a,b)}d===a?f.reject(a,TypeError("Cannot resolve promise with itself")):f.resolve(a,d)})}function n(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function o(a,b){var c=!1;function d(b){c||(c=!0,f.reject(a,b))}function e(b){c||(c=!0,f.resolve(a,b))}var g=p(function(){b(e,d)});"error"===g.status&&d(g.value)}function p(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}a.exports=k,k.prototype.finally=function(a){if("function"!=typeof a)return this;var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c})})},k.prototype.catch=function(a){return this.then(null,a)},k.prototype.then=function(a,b){if("function"!=typeof a&&this.state===h||"function"!=typeof b&&this.state===g)return this;var c=new this.constructor(e);return this.handled===j&&(this.handled=null),this.state!==i?m(c,this.state===h?a:b,this.outcome):this.queue.push(new l(c,a,b)),c},l.prototype.callFulfilled=function(a){f.resolve(this.promise,a)},l.prototype.otherCallFulfilled=function(a){m(this.promise,this.onFulfilled,a)},l.prototype.callRejected=function(a){f.reject(this.promise,a)},l.prototype.otherCallRejected=function(a){m(this.promise,this.onRejected,a)},f.resolve=function(a,b){var c=p(n,b);if("error"===c.status)return f.reject(a,c.value);var d=c.value;if(d)o(a,d);else{a.state=h,a.outcome=b;for(var e=-1,g=a.queue.length;++e<g;)a.queue[e].callFulfilled(b)}return a},f.reject=function(a,b){a.state=g,a.outcome=b,a.handled===j&&d(function(){a.handled===j&&process.emit("unhandledRejection",b,a)});for(var c=-1,e=a.queue.length;++c<e;)a.queue[c].callRejected(b);return a},k.resolve=function(a){return a instanceof this?a:f.resolve(new this(e),a)},k.reject=function(a){var b=new this(e);return f.reject(b,a)},k.all=function(a){var b=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var c=a.length,d=!1;if(!c)return this.resolve([]);for(var g=Array(c),h=0,i=-1,j=new this(e);++i<c;)!function(a,e){b.resolve(a).then(function(a){g[e]=a,++h!==c||d||(d=!0,f.resolve(j,g))},function(a){d||(d=!0,f.reject(j,a))})}(a[i],i);return j},k.race=function(a){var b,c=this;if("[object Array]"!==Object.prototype.toString.call(a))return this.reject(TypeError("must be an array"));var d=a.length,g=!1;if(!d)return this.resolve([]);for(var h=-1,i=new this(e);++h<d;){b=a[h],c.resolve(b).then(function(a){g||(g=!0,f.resolve(i,a))},function(a){g||(g=!0,f.reject(i,a))})}return i}},6273:(a,b,c)=>{"use strict";var d=c(73315);b.mapIncludes=function(a,b,c){let{uniqueKeys:e}=a.options;if(!1===e)return!1;let f="function"==typeof e?e:(a,b)=>a===b||d.isScalar(a)&&d.isScalar(b)&&a.value===b.value;return b.some(a=>f(a.key,c))}},6560:(a,b,c)=>{var d=c(84906);function e(a,b){this.value=a,this.messages=b||[]}function f(a){var b=[];return d.flatten(d.pluck(a,"messages"),!0).forEach(function(a){var c,e;c=b,e=a,void 0===d.find(c,g.bind(null,e))&&b.push(a)}),b}function g(a,b){return a.type===b.type&&a.message===b.message}b.Result=e,b.success=function(a){return new e(a,[])},b.warning=function(a){return{type:"warning",message:a}},b.error=function(a){return{type:"error",message:a.message,error:a}},e.prototype.map=function(a){return new e(a(this.value),this.messages)},e.prototype.flatMap=function(a){var b=a(this.value);return new e(b.value,f([this,b]))},e.prototype.flatMapThen=function(a){var b=this;return a(this.value).then(function(a){return new e(a.value,f([b,a]))})},e.combine=function(a){return new e(d.flatten(d.pluck(a,"value")),f(a))}},6733:(a,b,c)=>{"use strict";c.d(b,{M:()=>f,T:()=>g});var d=c(77598);class e extends Error{constructor(a){super("relay_frame_too_large"===a?"Relay frame exceeds the size limit":"Invalid relay chunk transfer"),this.code=a,this.name="RelayChunkError"}}function f(a){let b;try{b=JSON.stringify(a)}catch{throw new e("relay_chunk_invalid")}if(void 0===b)throw new e("relay_chunk_invalid");let c=Buffer.byteLength(b,"utf8");if(c>0x1000000)throw new e("relay_frame_too_large");if(c<=262144)return[b];let f=Buffer.from(b,"utf8"),g=Math.ceil(c/49152),h=(0,d.randomUUID)(),i=[];for(let a=0;a<g;a++)i.push(JSON.stringify({op:"chunk",transfer:h,index:a,count:g,data:f.subarray(49152*a,(a+1)*49152).toString("base64")}));return i}class g{constructor(a=Date.now){this.now=a,this.transfers=new Map,this.bytes=0}clear(){this.transfers.clear(),this.bytes=0}accept(a){let b,c,d=this.now();for(let[a,b]of this.transfers)d>=b.expiresAt&&(this.bytes-=b.bytes,this.transfers.delete(a));if("object"!=typeof a||null===a||Array.isArray(a)||5!==Object.keys(a).length||!("op"in a)||"chunk"!==a.op||!("transfer"in a)||"string"!=typeof a.transfer||!/^[A-Za-z0-9_-]{1,64}$/.test(a.transfer)||!("index"in a)||"number"!=typeof a.index||!Number.isSafeInteger(a.index)||!("count"in a)||"number"!=typeof a.count||!Number.isSafeInteger(a.count)||a.count<1||a.count>342||a.index<0||a.index>=a.count||!("data"in a)||"string"!=typeof a.data||0===a.data.length||a.data.length>65536||!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a.data))throw new e("relay_chunk_invalid");let f=Buffer.from(a.data,"base64");if(f.length>49152||f.toString("base64")!==a.data)throw new e("relay_chunk_invalid");let g=this.transfers.get(a.transfer);if(void 0===g){if(0!==a.index||this.transfers.size>=4)throw new e("relay_chunk_invalid");g={count:a.count,expiresAt:d+3e4,bytes:0,parts:[]}}if(a.count!==g.count||a.index!==g.parts.length||g.bytes+f.length>0x1000000||this.bytes+f.length>0x1000000)throw new e("relay_chunk_invalid");if(g.parts.push(f),g.bytes+=f.length,this.bytes+=f.length,this.transfers.set(a.transfer,g),g.parts.length!==g.count)return null;this.transfers.delete(a.transfer),this.bytes-=g.bytes;try{b=new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(Buffer.concat(g.parts,g.bytes)),c=JSON.parse(b)}catch{throw new e("relay_chunk_invalid")}if("object"==typeof c&&null!==c&&"op"in c&&"chunk"===c.op)throw new e("relay_chunk_invalid");return b}}},7173:(a,b,c)=>{"use strict";c.d(b,{H:()=>e,x:()=>f});var d=c(77598);function e(a,b){if("object"!=typeof a||null===a||!("role"in a)||"string"!=typeof a.role)return null;let c={...a};if(!["user","assistant","toolResult","custom","bashExecution"].includes(a.role)||"custom"===a.role&&"xdev-mount-notice"===c.customType)return null;let e=[],f=0;if("string"==typeof c.content)e.push({type:"text",text:c.content});else if(Array.isArray(c.content)){for(let a of c.content)if("object"==typeof a&&null!==a&&"type"in a)if("image"===a.type)f++,e.push({type:"image",deferred:!0,..."mimeType"in a&&"string"==typeof a.mimeType?{mimeType:a.mimeType}:{}});else if("toolCall"===a.type){let b={...a};e.push({type:"toolCall",toolCallId:b.toolCallId??b.id??"",toolName:b.toolName??b.name??"",input:b.input??b.arguments??{}})}else("text"===a.type||"thinking"===a.type)&&e.push({...a})}"string"==typeof c.output&&e.push({type:"text",text:c.output});let g=b??`live:${(0,d.createHash)("sha256").update(JSON.stringify(a)).digest("hex")}`,h={role:a.role,entryId:g,content:e,text:e.filter(a=>"text"===a.type&&"string"==typeof a.text).map(a=>a.text).join("\n")};if("number"==typeof c.timestamp&&(h.timestamp=c.timestamp),"string"==typeof c.toolCallId&&(h.toolCallId=c.toolCallId),"string"==typeof c.toolName&&(h.toolName=c.toolName),"boolean"==typeof c.isError&&(h.isError=c.isError),"object"==typeof c.details&&null!==c.details&&"images"in c.details){let{images:a,...b}=c.details;Array.isArray(a)&&(f+=a.length),h.details=b}else void 0!==c.details&&(h.details=c.details);"bashExecution"===a.role&&(h.toolName="bash",h.isError="number"==typeof c.exitCode&&0!==c.exitCode,h.details={command:c.command,exitCode:c.exitCode,cancelled:c.cancelled,truncated:c.truncated}),"string"==typeof c.errorMessage&&(h.errorMessage=c.errorMessage),"string"==typeof c.stopReason&&(h.stopReason=c.stopReason);let i=c.deferredImages;return"object"==typeof i&&null!==i&&"count"in i&&"number"==typeof i.count&&(f+=i.count),f&&(h.deferredImages={entryId:g,count:f}),h}function f(a,b=[],c,d=100){let g=a.length,h=c??Math.max(0,g-Math.min(d,100)),i=[],j=0,k=0;for(let c=h;c<g&&j<d;c++){let d=e(a[c],b[c]);if(d){let a=Buffer.byteLength(JSON.stringify(d));if(a>65536){let b=d.text.slice(0,16e3),c=d.content?.filter(a=>"toolCall"===a.type).slice(0,100).map(a=>({type:"toolCall",toolCallId:String(a.toolCallId).slice(0,200),toolName:String(a.toolName).slice(0,200),input:{}}))??[];d={...d,text:b,content:[{type:"text",text:b},...c],toolCallId:d.toolCallId?.slice(0,200),toolName:d.toolName?.slice(0,200),errorMessage:d.errorMessage?.slice(0,1e3),stopReason:d.stopReason?.slice(0,100),details:void 0,truncated:!0},a=Buffer.byteLength(JSON.stringify(d))}if(k+a>4194304&&j>0)break;k+=a,i.push(d)}j++}return{messages:i,total:g,offset:h,nextOffset:h+j,hasMore:h+j<g}}},7306:(a,b,c)=>{"use strict";var d=c(18092).Readable;function e(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}c(58952).inherits(e,d),e.prototype._read=function(){this._helper.resume()},a.exports=e},8142:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q={}.hasOwnProperty;o=(p=c(54117)).isObject,n=p.isFunction,m=p.isEmpty,l=p.getValue,h=null,b=null,d=null,e=null,f=null,j=null,k=null,i=null,g=null,a.exports=function(){function a(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],h||(h=c(16426),b=c(92293),d=c(96321),e=c(2286),f=c(72240),j=c(77632),k=c(46107),i=c(11781),g=c(16646))}return a.prototype.element=function(a,b,c){var d,e,f,g,h,i,j,k,p,r,s;if(i=null,null===b&&null==c&&(b=(p=[{},null])[0],c=p[1]),null==b&&(b={}),o(b=l(b))||(c=(r=[b,c])[0],b=r[1]),null!=a&&(a=l(a)),Array.isArray(a))for(f=0,j=a.length;f<j;f++)e=a[f],i=this.element(e);else if(n(a))i=this.element(a.apply());else if(o(a)){for(h in a)if(q.call(a,h))if(n(s=a[h])&&(s=s.apply()),o(s)&&m(s)&&(s=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===h.indexOf(this.stringify.convertAttKey))i=this.attribute(h.substr(this.stringify.convertAttKey.length),s);else if(!this.options.separateArrayItems&&Array.isArray(s))for(g=0,k=s.length;g<k;g++)e=s[g],(d={})[h]=e,i=this.element(d);else o(s)?(i=this.element(h)).element(s):i=this.element(h,s)}else i=this.options.skipNullNodes&&null===c?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?this.text(c):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===a.indexOf(this.stringify.convertCDataKey)?this.cdata(c):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===a.indexOf(this.stringify.convertCommentKey)?this.comment(c):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===a.indexOf(this.stringify.convertRawKey)?this.raw(c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===a.indexOf(this.stringify.convertPIKey)?this.instruction(a.substr(this.stringify.convertPIKey.length),c):this.node(a,b,c);if(null==i)throw Error("Could not create any elements with: "+a+". "+this.debugInfo());return i},a.prototype.insertBefore=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.insertAfter=function(a,b,c){var d,e,f;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(a));return e=this.parent.children.indexOf(this),f=this.parent.children.splice(e+1),d=this.parent.element(a,b,c),Array.prototype.push.apply(this.parent.children,f),d},a.prototype.remove=function(){var a;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[a,a-a+1].concat([])),this.parent},a.prototype.node=function(a,b,c){var d,e;return null!=a&&(a=l(a)),b||(b={}),o(b=l(b))||(c=(e=[b,c])[0],b=e[1]),d=new h(this,a,b),null!=c&&d.text(c),this.children.push(d),d},a.prototype.text=function(a){var b;return b=new k(this,a),this.children.push(b),this},a.prototype.cdata=function(a){var c;return c=new b(this,a),this.children.push(c),this},a.prototype.comment=function(a){var b;return b=new d(this,a),this.children.push(b),this},a.prototype.commentBefore=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.commentAfter=function(a){var b,c;return b=this.parent.children.indexOf(this),c=this.parent.children.splice(b+1),this.parent.comment(a),Array.prototype.push.apply(this.parent.children,c),this},a.prototype.raw=function(a){var b;return b=new j(this,a),this.children.push(b),this},a.prototype.dummy=function(){var a;return a=new g(this),this.children.push(a),a},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(null!=a&&(a=l(a)),null!=b&&(b=l(b)),Array.isArray(a))for(f=0,g=a.length;f<g;f++)c=a[f],this.instruction(c);else if(o(a))for(c in a)q.call(a,c)&&(d=a[c],this.instruction(c,d));else n(b)&&(b=b.apply()),e=new i(this,a,b),this.children.push(e);return this},a.prototype.instructionBefore=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.instructionAfter=function(a,b){var c,d;return c=this.parent.children.indexOf(this),d=this.parent.children.splice(c+1),this.parent.instruction(a,b),Array.prototype.push.apply(this.parent.children,d),this},a.prototype.declaration=function(a,b,c){var d,f;return d=this.document(),f=new e(d,a,b,c),d.children[0]instanceof e?d.children[0]=f:d.children.unshift(f),d.root()||d},a.prototype.doctype=function(a,b){var c,d,e,g,h,i,j,k,l;for(c=this.document(),d=new f(c,a,b),k=c.children,e=g=0,i=k.length;g<i;e=++g)if(k[e]instanceof f)return c.children[e]=d,d;for(l=c.children,e=h=0,j=l.length;h<j;e=++h)if(l[e].isRoot)return c.children.splice(e,0,d),d;return c.children.push(d),d},a.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},a.prototype.root=function(){var a;for(a=this;a;)if(a.isDocument)return a.rootObject;else{if(a.isRoot)return a;a=a.parent}},a.prototype.document=function(){var a;for(a=this;a;)if(a.isDocument)return a;else a=a.parent},a.prototype.end=function(a){return this.document().end(a)},a.prototype.prev=function(){var a;for(a=this.parent.children.indexOf(this);a>0&&this.parent.children[a-1].isDummy;)a-=1;if(a<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]},a.prototype.next=function(){var a;for(a=this.parent.children.indexOf(this);a<this.parent.children.length-1&&this.parent.children[a+1].isDummy;)a+=1;if(-1===a||a===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]},a.prototype.importDocument=function(a){var b;return(b=a.root().clone()).parent=this,b.isRoot=!1,this.children.push(b),this},a.prototype.debugInfo=function(a){var b,c;return null!=(a=a||this.name)||(null!=(b=this.parent)?b.name:void 0)?null==a?"parent: <"+this.parent.name+">":(null!=(c=this.parent)?c.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">":""},a.prototype.ele=function(a,b,c){return this.element(a,b,c)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.doc=function(){return this.document()},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b){return this.doctype(a,b)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.u=function(){return this.up()},a.prototype.importXMLBuilder=function(a){return this.importDocument(a)},a}()}).call(this)},8216:a=>{"use strict";a.exports=function(a){var b=a._SomePromiseArray;function c(a){var c=new b(a),d=c.promise();return c.setHowMany(1),c.setUnwrap(),c.init(),d}a.any=function(a){return c(a)},a.prototype.any=function(){return c(this)}}},8878:(a,b,c)=>{"use strict";var d=c(79571),e=c(16892),f=c(77936),g=c(73315),h=c(49443);b.addPairToJSMap=function(a,b,{key:c,value:i}){if(g.isNode(c)&&c.addToJSMap)c.addToJSMap(a,b,i);else if(e.isMergeKey(a,c))e.addMergeToJSMap(a,b,i);else{let e=h.toJS(c,"",a);if(b instanceof Map)b.set(e,h.toJS(i,e,a));else if(b instanceof Set)b.add(e);else{let j=function(a,b,c){if(null===b)return"";if("object"!=typeof b)return String(b);if(g.isNode(a)&&c?.doc){let b=f.createStringifyContext(c.doc,{});for(let a of(b.anchors=new Set,c.anchors.keys()))b.anchors.add(a.anchor);b.inFlow=!0,b.inStringifyKey=!0;let e=a.toString(b);if(!c.mapKeyWarned){let a=JSON.stringify(e);a.length>40&&(a=a.substring(0,36)+'..."'),d.warn(c.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),c.mapKeyWarned=!0}return e}return JSON.stringify(b)}(c,e,a),k=h.toJS(i,j,a);j in b?Object.defineProperty(b,j,{value:k,writable:!0,enumerable:!0,configurable:!0}):b[j]=k}}return b}},9704:(a,b,c)=>{"use strict";c.d(b,{U:()=>e});var d=c(51671);async function e(){var a,b;let c,e;return b=await (a=["--check"],(0,d.eG)(["update",...a],{timeout:3e5,maxBuffer:1048576}).then(({stdout:a,stderr:b})=>`${a}
|
|
2
|
+
${b}`.trim())),c=b.match(/^Current version:\s*(\S+)/mi)?.[1]??null,{currentVersion:c,availableVersion:e=b.match(/^New version available:\s*(\S+)/mi)?.[1]??null,updateAvailable:null!==e,updateCommand:"omp update"}}},9774:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing DTD element name. "+this.debugInfo());d||(d="(#PCDATA)"),Array.isArray(d)&&(d="("+d.join(",")+")"),this.name=this.stringify.eleName(b),this.value=this.stringify.dtdElementValue(d)}return b(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)},c}(c(8142))}).call(this)},9920:(a,b,c)=>{var d=c(84906),e=c(77313)();b.defer=function(){var a,b,c=new e.Promise(function(c,d){a=c,b=d});return{resolve:a,reject:b,promise:c}},b.when=e.resolve,b.resolve=e.resolve,b.all=e.all,b.props=e.props,b.reject=e.reject,b.promisify=e.promisify,b.mapSeries=e.mapSeries,b.attempt=e.attempt,b.nfcall=function(a){var b=Array.prototype.slice.call(arguments,1);return e.promisify(a).apply(null,b)},e.prototype.fail=e.prototype.caught,e.prototype.also=function(a){return this.then(function(b){var c=d.extend({},b,a(b));return e.props(c)})}},9972:(a,b,c)=>{"use strict";var d=c(65695);function e(a,b){let c=a[0],d="-"===c||"+"===c?a.substring(1):a,e=a=>b?BigInt(a):Number(a),f=d.replace(/_/g,"").split(":").reduce((a,b)=>a*e(60)+e(b),e(0));return"-"===c?e(-1)*f:f}function f(a){let{value:b}=a,c=a=>a;if("bigint"==typeof b)c=a=>BigInt(a);else if(isNaN(b)||!isFinite(b))return d.stringifyNumber(a);let e="";b<0&&(e="-",b*=c(-1));let f=c(60),g=[b%f];return b<60?g.unshift(0):(b=(b-g[0])/f,g.unshift(b%f),b>=60&&(b=(b-g[0])/f,g.unshift(b))),e+g.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let g={identify:a=>a instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(a){let b=a.match(g.test);if(!b)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,c,d,f,h,i,j]=b.map(Number),k=Date.UTC(c,d-1,f,h||0,i||0,j||0,b[7]?Number((b[7]+"00").substr(1,3)):0),l=b[8];if(l&&"Z"!==l){let a=e(l,!1);30>Math.abs(a)&&(a*=60),k-=6e4*a}return new Date(k)},stringify:({value:a})=>a?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};b.floatTime={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:a=>e(a,!1),stringify:f},b.intTime={identify:a=>"bigint"==typeof a||Number.isInteger(a),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(a,b,{intAsBigInt:c})=>e(a,c),stringify:f},b.timestamp=g},10128:a=>{a.exports=function(a,c){return{asString:function(){return a},range:function(d,e){return new b(a,c,d,e)}}};var b=function(a,b,c,d){this._string=a,this._description=b,this._startIndex=c,this._endIndex=d};b.prototype.to=function(a){return new b(this._string,this._description,this._startIndex,a._endIndex)},b.prototype.describe=function(){var a=this._position();return(this._description?this._description+"\n":"")+"Line number: "+a.lineNumber+"\nCharacter number: "+a.characterNumber},b.prototype.lineNumber=function(){return this._position().lineNumber},b.prototype.characterNumber=function(){return this._position().characterNumber},b.prototype._position=function(){for(var a=this,b=0,c=function(){return a._string.indexOf("\n",b)},d=1;-1!==c()&&c()<this._startIndex;)b=c()+1,d+=1;return{lineNumber:d,characterNumber:this._startIndex-b+1}}},10140:(a,b,c)=>{"use strict";var d=c(73315),e=c(3404);function f(a){let b=new Set;return e.visit(a,{Value(a,c){c.anchor&&b.add(c.anchor)}}),b}function g(a,b){for(let c=1;;++c){let d=`${a}${c}`;if(!b.has(d))return d}}b.anchorIsValid=function(a){if(/[\x00-\x19\s,[\]{}]/.test(a)){let b=JSON.stringify(a);throw Error(`Anchor must not contain whitespace or control characters: ${b}`)}return!0},b.anchorNames=f,b.createNodeAnchors=function(a,b){let c=[],e=new Map,h=null;return{onAnchor:d=>{c.push(d),h??(h=f(a));let e=g(b,h);return h.add(e),e},setAnchors:()=>{for(let a of c){let b=e.get(a);if("object"==typeof b&&b.anchor&&(d.isScalar(b.node)||d.isCollection(b.node)))b.node.anchor=b.anchor;else{let b=Error("Failed to resolve repeated object (this should not happen)");throw b.source=a,b}}},sourceObjects:e}},b.findNewAnchor=g},10558:(a,b,c)=>{"use strict";var d=c(58952);function e(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},a.exports=e},10878:(a,b,c)=>{"use strict";var d=c(3327),e=c(73315),f=c(26701);b.createNode=function(a,b,c){let g;if(e.isDocument(a)&&(a=a.contents),e.isNode(a))return a;if(e.isPair(a)){let b=c.schema[e.MAP].createNode?.(c.schema,null,c);return b.items.push(a),b}(a instanceof String||a instanceof Number||a instanceof Boolean||"u">typeof BigInt&&a instanceof BigInt)&&(a=a.valueOf());let{aliasDuplicateObjects:h,onAnchor:i,onTagObj:j,schema:k,sourceObjects:l}=c;if(h&&a&&"object"==typeof a){if(g=l.get(a))return g.anchor??(g.anchor=i(a)),new d.Alias(g.anchor);g={anchor:null,node:null},l.set(a,g)}b?.startsWith("!!")&&(b="tag:yaml.org,2002:"+b.slice(2));let m=function(a,b,c){if(b){let a=c.filter(a=>a.tag===b),d=a.find(a=>!a.format)??a[0];if(!d)throw Error(`Tag ${b} not found`);return d}return c.find(b=>b.identify?.(a)&&!b.format)}(a,b,k.tags);if(!m){if(a&&"function"==typeof a.toJSON&&(a=a.toJSON()),!a||"object"!=typeof a){let b=new f.Scalar(a);return g&&(g.node=b),b}m=a instanceof Map?k[e.MAP]:Symbol.iterator in Object(a)?k[e.SEQ]:k[e.MAP]}j&&(j(m),delete c.onTagObj);let n=m?.createNode?m.createNode(c.schema,a,c):"function"==typeof m?.nodeClass?.from?m.nodeClass.from(c.schema,a,c):new f.Scalar(a);return b?n.tag=b:m.default||(n.tag=m.tag),g&&(g.node=n),n}},11385:(a,b,c)=>{"use strict";c.d(b,{bR:()=>k,$C:()=>n,XV:()=>q,tB:()=>o,Ew:()=>l});var d=c(29021),e=c(33873),f=c(82043),g=c(44500),h=c(28672),i=c(84157);function j(a){return(0,e.join)((0,e.dirname)(a),(0,e.basename)(a,".jsonl"))}class k extends Error{}function l(a,b,c,f,g=!1){let h,i,m;try{h=(0,d.realpathSync)(j(a))}catch{return null}let n=f?(0,e.resolve)(h,f):(0,e.join)(h,`${b}${c}`);try{i=(0,d.realpathSync)((0,e.dirname)(n))}catch{return null}if(i!==h){if(g)throw new k("Subagent artifact is outside the parent session artifact directory");return null}try{m=(0,d.realpathSync)(n)}catch{return null}if((0,e.dirname)(m)!==h){if(g)throw new k("Subagent artifact is outside the parent session artifact directory");return null}try{if(!(0,d.statSync)(m).isFile())return null}catch{return null}return m}function m(a){if("string"!=typeof a)return;let b=/^<task-result id="([A-Za-z0-9_-]+)" agent="[^"\r\n]+" status="(completed|aborted|cancelled|failed(?: \(exit -?\d+\))?)" duration="[^"\r\n]+">\r?\n/.exec(a.slice(0,1024));if(b)return{id:b[1],status:"completed"===b[2]?"completed":"aborted"===b[2]||"cancelled"===b[2]?"aborted":"failed"}}function n(a){var b,c,d;let g;try{g=(0,f.DK)(a)}catch{return[]}let k=new Map,n=new Map,o=a=>{let b=k.get(a.id);b?k.set(a.id,{...b,...a,result:a.result??("started"===a.status&&"started"!==b.status?void 0:b.result)}):k.set(a.id,a)},q=(a,b,c)=>{let d=k.get(a);d&&k.set(a,{...d,status:b,result:d.status===b?d.result:void 0,durationMs:c??d.durationMs})};for(let a of g){if("custom_message"===a.type){let b=(0,h.u4)(a.details)?a.details:void 0;if("async-result"===a.customType&&b&&Array.isArray(b.jobs)&&"string"==typeof a.content){let c=/^<system-notice>\r?\nBackground job ([A-Za-z0-9_-]+) has (?:completed|failed|been cancelled|been canceled). Resume your work using the result below.\r?\n/.exec(a.content.slice(0,512));if(c){let d=m(a.content.slice(c[0].length,c[0].length+1024)),e=b.jobs.find(a=>(0,h.u4)(a)&&"task"===a.type&&a.jobId===c[1]);d&&d.id===c[1]&&(0,h.u4)(e)&&q(d.id,d.status,(0,h.i)(e.durationMs))}else if(/^<system-notice>\r?\n\d+ background jobs have completed\. Resume your work using the results below\.\r?\n/.test(a.content.slice(0,512))){let c=a.content.slice(0,p);for(let a of b.jobs){if(!(0,h.u4)(a)||"task"!==a.type||"string"!=typeof a.jobId||"string"!=typeof a.label||/[\r\n]/.test(a.label))continue;let b=`
|
|
3
|
+
── Job ${a.jobId} (${a.label}) ──
|
|
4
|
+
`,d=c.indexOf(b);if(d<0||c.indexOf(b,d+b.length)>=0)continue;let e=m(c.slice(d+b.length,d+b.length+1024));e?.id===a.jobId&&q(e.id,e.status,(0,h.i)(a.durationMs))}}}else if("irc:incoming"===a.customType&&b?.wakeRelay===!0){let a=m(b.message);a&&b.from===a.id&&q(a.id,a.status)}continue}if("message"!==a.type||a.message?.role!=="toolResult")continue;let d=a.message,e=(0,h.u4)(d.details)?d.details:{};if("hub"===d.toolName&&Array.isArray(e.jobs)){for(let a of e.jobs)(0,h.u4)(a)&&"task"===a.type&&"string"==typeof a.id&&("completed"===a.status||"failed"===a.status||"aborted"===a.status?q(a.id,a.status,(0,h.i)(a.durationMs)):"cancelled"===a.status&&q(a.id,"aborted",(0,h.i)(a.durationMs)));continue}if("task"!==d.toolName)continue;let f=(0,h.oJ)(a.message.toolCallId),g=(a,b)=>{let c=n.get(a);f&&n.set(a,f);let d=k.get(a);return"started"===b&&d&&"started"!==d.status&&void 0!==f&&c===f?d.status:b},j=Array.isArray(e.progress)?e.progress:[],l=Array.isArray(e.results)?e.results:[],r=(0,h.u4)(e.async)?e.async:void 0;for(let a of j){let c=function(a){var b,c;if(!(0,h.u4)(a))return;let d={},e=(0,h.i)(a.index);void 0!==e&&(d.index=e);let f=(0,h.oJ)(a.id);void 0!==f&&(d.id=f);let g=(0,h.oJ)(a.agent);void 0!==g&&(d.agent=g);let i="bundled"===(b=a.agentSource)||"user"===b||"project"===b?b:void 0;void 0!==i&&(d.agentSource=i);let j="pending"===(c=a.status)||"running"===c||"completed"===c||"failed"===c||"aborted"===c?c:void 0;void 0!==j&&(d.status=j);let k=(0,h.oJ)(a.task);void 0!==k&&(d.task=k);let l=(0,h.oJ)(a.assignment);void 0!==l&&(d.assignment=l);let m=(0,h.oJ)(a.description);void 0!==m&&(d.description=m);let n=(0,h.oJ)(a.lastIntent);void 0!==n&&(d.lastIntent=n);let o=(0,h.oJ)(a.currentTool);void 0!==o&&(d.currentTool=o);let p=(0,h.oJ)(a.currentToolArgs);void 0!==p&&(d.currentToolArgs=p);let q=(0,h.i)(a.currentToolStartMs);void 0!==q&&(d.currentToolStartMs=q),Array.isArray(a.recentTools)&&(d.recentTools=a.recentTools),Array.isArray(a.recentOutput)&&(d.recentOutput=a.recentOutput.filter(a=>"string"==typeof a));let r=(0,h.i)(a.toolCount);void 0!==r&&(d.toolCount=r);let s=(0,h.i)(a.requests);void 0!==s&&(d.requests=s);let t=(0,h.i)(a.tokens);void 0!==t&&(d.tokens=t);let u=(0,h.i)(a.contextTokens);void 0!==u&&(d.contextTokens=u);let v=(0,h.i)(a.contextWindow);void 0!==v&&(d.contextWindow=v);let w=(0,h.i)(a.cost);void 0!==w&&(d.cost=w);let x=(0,h.i)(a.durationMs);void 0!==x&&(d.durationMs=x),("string"==typeof a.modelOverride||Array.isArray(a.modelOverride)&&a.modelOverride.every(a=>"string"==typeof a))&&(d.modelOverride=a.modelOverride);let y=(0,h.oJ)(a.modelRole);void 0!==y&&(d.modelRole=y);let z=(0,h.oJ)(a.resolvedModel);if(void 0!==z&&(d.resolvedModel=z),"boolean"==typeof a.resolvedModelIsFallback&&(d.resolvedModelIsFallback=a.resolvedModelIsFallback),(0,h.u4)(a.retryState)){let b=(0,h.i)(a.retryState.attempt),c=(0,h.i)(a.retryState.maxAttempts),e=(0,h.i)(a.retryState.delayMs),f=(0,h.oJ)(a.retryState.errorMessage),g=(0,h.i)(a.retryState.startedAtMs);void 0!==b&&void 0!==c&&void 0!==e&&void 0!==f&&void 0!==g&&(d.retryState={attempt:b,maxAttempts:c,delayMs:e,errorMessage:f,startedAtMs:g})}if((0,h.u4)(a.retryFailure)){let b=(0,h.i)(a.retryFailure.attempt),c=(0,h.oJ)(a.retryFailure.errorMessage);void 0!==b&&void 0!==c&&(d.retryFailure={attempt:b,errorMessage:c})}return void 0!==a.inflightTaskDetails&&(d.inflightTaskDetails=a.inflightTaskDetails),(0,h.u4)(a.extractedToolData)&&(d.extractedToolData=a.extractedToolData),Object.keys(d).length>0?d:void 0}(a);c?.id&&o({id:c.id,agent:c.agent??"subagent",agentSource:c.agentSource,status:g(c.id,"completed"===(b=c.status)?"completed":"failed"===b?"failed":"aborted"===b?"aborted":"started"),task:c.task,assignment:c.assignment,description:c.description,index:c.index??0,lastIntent:c.lastIntent,toolCount:c.toolCount,requests:c.requests,tokens:c.tokens,contextTokens:c.contextTokens,contextWindow:c.contextWindow,cost:c.cost,durationMs:c.durationMs,modelOverride:c.modelOverride,modelRole:c.modelRole,resolvedModel:c.resolvedModel,resolvedModelIsFallback:c.resolvedModelIsFallback,retryFailure:c.retryFailure,transcriptAvailable:!1})}for(let a of l){if(!(0,h.u4)(a))continue;let b=(0,h.oJ)(a.id);if(!b)continue;let d=k.get(b),e={},f=(0,h.i)(a.exitCode);void 0!==f&&(e.exitCode=f),!0===a.truncated&&(e.truncated=!0);let j=(0,h.i)(a.cost)??(0,i.tw)(a.usage);void 0!==j&&(e.cost=j);let l=(0,i.bA)(a.structuredOutput);void 0!==l&&(e.structuredOutput=l);let m=(0,h.oJ)(a.error);void 0!==m&&(e.error=m),!0===a.aborted&&(e.aborted=!0);let n=(0,h.oJ)(a.abortReason);void 0!==n&&(e.abortReason=n);let p=(0,h.oJ)(a.outputPath);void 0!==p&&(e.outputPath=p);let q=(0,h.oJ)(a.patchPath);void 0!==q&&(e.patchPath=q);let r=(0,h.oJ)(a.branchName);void 0!==r&&(e.branchName=r);let s=(0,h.u4)(a.retryFailure)?{attempt:(0,h.i)(a.retryFailure.attempt)??0,errorMessage:(0,h.oJ)(a.retryFailure.errorMessage)??""}:d?.retryFailure;o({id:b,agent:(0,h.oJ)(a.agent)??d?.agent??"subagent",agentSource:("bundled"===(c=a.agentSource)||"user"===c||"project"===c?c:void 0)??d?.agentSource,status:g(b,!0===a.aborted?"aborted":"string"==typeof a.error&&a.error?"failed":"number"==typeof a.exitCode?0===a.exitCode?"completed":"failed":"completed"===a.status?"completed":"failed"===a.status?"failed":"aborted"===a.status?"aborted":"started"),task:(0,h.oJ)(a.task)??d?.task,assignment:(0,h.oJ)(a.assignment)??d?.assignment,description:(0,h.oJ)(a.description)??d?.description,index:(0,h.i)(a.index)??d?.index??0,lastIntent:(0,h.oJ)(a.lastIntent)??d?.lastIntent,toolCount:(0,h.i)(a.toolCount)??d?.toolCount,requests:(0,h.i)(a.requests)??d?.requests,tokens:(0,h.i)(a.tokens)??d?.tokens,contextTokens:(0,h.i)(a.contextTokens)??d?.contextTokens,contextWindow:(0,h.i)(a.contextWindow)??d?.contextWindow,cost:(0,h.i)(a.cost)??(0,i.tw)(a.usage)??d?.cost,durationMs:(0,h.i)(a.durationMs)??d?.durationMs,modelOverride:"string"==typeof a.modelOverride||Array.isArray(a.modelOverride)?a.modelOverride:d?.modelOverride,modelRole:(0,h.oJ)(a.modelRole)??d?.modelRole,resolvedModel:(0,h.oJ)(a.resolvedModel)??d?.resolvedModel,resolvedModelIsFallback:"boolean"==typeof a.resolvedModelIsFallback?a.resolvedModelIsFallback:d?.resolvedModelIsFallback,retryFailure:s,transcriptAvailable:!1,result:Object.keys(e).length>0?e:void 0})}if(r){let a=(0,h.oJ)(r.jobId);a&&!k.has(a)&&o({id:a,agent:"task",status:"completed"===r.state?"completed":"failed"===r.state?"failed":"started",index:k.size,transcriptAvailable:!1})}}let r=new Set;for(let a of g){if("message"!==a.type||a.message?.role!=="toolResult")continue;let b=a.message;if("task"!==b.toolName)continue;let c=(0,h.u4)(b.details)?b.details:{},d=(0,h.u4)(c.async)?c.async:void 0,e=d?(0,h.oJ)(d.jobId):void 0;e&&r.add(e)}let s=[...k.values()];for(let b of s)r.has(b.id)&&(b.detached=!0),l(a,b.id,".jsonl")&&(d=b.id,b.sessionFile=(0,e.join)(j(a),`${d}.jsonl`),b.transcriptAvailable=!0);return s.sort((a,b)=>a.index-b.index||a.id.localeCompare(b.id))}function o(a,b=0){let c,e={sessionFile:a,fromByte:"number"==typeof b&&Number.isFinite(b)?Math.max(0,Math.trunc(b)):0,nextByte:"number"==typeof b&&Number.isFinite(b)?Math.max(0,Math.trunc(b)):0,reset:!1,messages:[]},h=e.fromByte,i=!1;try{c=(0,d.openSync)(a,d.constants.O_RDONLY|d.constants.O_NOFOLLOW);let b=(0,d.fstatSync)(c);if(!b.isFile())return{...e,error:"Subagent transcript is not a regular file"};let j=b.size;if(h>j&&(h=0,i=!0),j>0x1000000)return{...e,fromByte:h,nextByte:h,reset:i,error:"Subagent transcript exceeds the readable size limit"};let k=[],l=0,m=0;for(;h+l<j;){let a=Buffer.allocUnsafe(Math.min(262144,j-h-l)),b=(0,d.readSync)(c,a,0,a.length,h+l);if(0===b)break;let e=a.subarray(0,b),f=0===l?e.lastIndexOf(10):e.indexOf(10);if(f>=0){k.push(e.subarray(0,f+1)),m=l+f+1;break}k.push(e),l+=b}let n=[];if(m>0){let a=(1===k.length?k[0]:Buffer.concat(k,m)).toString("utf8");for(let b of(0,g.nr)(a)){if(null===b||"object"!=typeof b||Array.isArray(b))continue;let a=(0,f.HA)(b,{});null!==a&&n.push(a)}}return{sessionFile:a,fromByte:h,nextByte:h+m,reset:i,messages:n,totalBytes:j}}catch{return{...e,fromByte:h,nextByte:h,reset:i,error:"Subagent transcript could not be read"}}finally{void 0!==c&&(0,d.closeSync)(c)}}let p=1048576;function q(a){let b;try{b=(0,d.openSync)(a,d.constants.O_RDONLY|d.constants.O_NOFOLLOW)}catch{return null}try{let a=(0,d.fstatSync)(b);if(!a.isFile()||a.size<=0)return null;let c=a.size>p,e=Math.min(a.size,p),f=Buffer.alloc(e),g=(0,d.readSync)(b,f,0,e,0),h=f.subarray(0,g),i=h.length,j=0;for(;i-j>0&&(192&h[i-1-j])==128;)j+=1;let k=i-1-j;if(k>=0){let a=h[k];k+(a>=240?4:a>=224?3:a>=192?2:1)>h.length&&(i=k)}else i=0;return{completion:h.subarray(0,i).toString("utf8"),truncated:c}}finally{(0,d.closeSync)(b)}}},11457:(a,b,c)=>{var d=c(9920),e=c(84906),f=c(14089),g=c(18403),h=g.Element;b.readString=function(a,b){b=b||{};try{var c=f.parseFromString(a,"text/xml")}catch(a){return d.reject(a)}if("parsererror"===c.documentElement.tagName)return d.resolve(Error(c.documentElement.textContent));function j(a){if(!a.namespaceURI)return a.localName;var c=b[a.namespaceURI];return(c?c+":":"{"+a.namespaceURI+"}")+a.localName}return d.resolve(function a(b){switch(b.nodeType){case i.ELEMENT_NODE:var c,d,f,k;return d=j(c=b),f=[],e.forEach(c.childNodes,function(b){var c=a(b);c&&f.push(c)}),k={},e.forEach(c.attributes,function(a){k[j(a)]=a.value}),new h(d,k,f);case i.TEXT_NODE:return g.text(b.nodeValue)}}(c.documentElement))};var i=f.Node},11781:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing instruction target. "+this.debugInfo());this.target=this.stringify.insTarget(b),d&&(this.value=this.stringify.insValue(d))}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)},c}(c(8142))}).call(this)},12093:(a,b)=>{"use strict";b.containsNewline=function a(b){if(!b)return null;switch(b.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(b.source.includes("\n"))return!0;if(b.end){for(let a of b.end)if("newline"===a.type)return!0}return!1;case"flow-collection":for(let c of b.items){for(let a of c.start)if("newline"===a.type)return!0;if(c.sep){for(let a of c.sep)if("newline"===a.type)return!0}if(a(c.key)||a(c.value))return!0}return!1;default:return!0}}},12144:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A4:()=>v,Eb:()=>o,HG:()=>w,OF:()=>z,OZ:()=>B,Te:()=>x,rb:()=>s});var e=c(29021),f=c(21820),g=c(18437),h=c(88250),i=c(80803),j=c(2904),k=c(82043),l=c(14916),m=c(67806),n=a([j]);j=(n.then?(await n)():n)[0];let A="This session is restarting — retry in a moment.";class B extends Error{constructor(a,b){super(a),this.name="WebRpcError",this.code=b}}let C=new Set(["select","confirm","input","editor","open_url"]),D=new Set(["abort","abort_and_prompt","set_thinking_level","cycle_thinking_level","cycle_model","get_available_models","set_auto_compaction","set_auto_retry","abort_retry","abort_bash","set_todos","set_steering_mode","set_follow_up_mode","set_interrupt_mode","get_branch_messages","get_messages","get_messages_page","export_html","handoff","get_subagents","get_subagent_messages","set_subagent_subscription","get_login_providers","login"]),E={navigate_tree:"Branch navigation is not supported over the omp RPC protocol",clear_queue:"Recalling queued messages is not supported over the omp RPC protocol",get_tools:"Per-session tool listing is not supported over the omp RPC protocol",set_tools:"Changing tools on a running session is not supported over the omp RPC protocol; tool presets apply to new sessions",extension_ui_input:"Extension custom UI is not supported over the omp RPC protocol"},F={find:"glob",search:"grep"},G=new Set(["ls"]);function o(a){let b=[];for(let c of a){let a=c.toLowerCase();if(G.has(a))continue;let d=F[a]??a;b.includes(d)||b.push(d)}return b}let H=[...l.C1].map(a=>a.toLowerCase()).sort().join(",");function p(a,b,c=!1){let d=[];if(a)d.push("--resume",a);else if(void 0!==b){let a=b.map(a=>a.toLowerCase()).sort().join(",");if(0===b.length)d.push("--no-tools");else if(a===H);else{let a=o(b);a.length>0&&d.push("--tools",a.join(","))}}return c&&!a&&d.push("--advisor"),d}function q(a){return a?.length?a:void 0}function r(a){return"string"==typeof a.toolCallId&&a.toolCallId?a.toolCallId:"string"==typeof a.id&&a.id?a.id:""}function s(a){if(a&&(0,e.existsSync)(a))return{cwd:a,fellBack:!1};try{let a=process.cwd();if(a&&(0,e.existsSync)(a))return{cwd:a,fellBack:!0}}catch{}return{cwd:(0,f.homedir)(),fellBack:!0}}function t(a){a&&"object"==typeof a&&void 0===a.estimatedTokensAfter&&(a.estimatedTokensAfter=Math.round((a.summary?.length??0)/4))}class I{constructor(a,b,c){this.listeners=[],this.pendingUiRequests=new Map,this.uiExpiryTimers=new Map,this.extensionStatuses=new Map,this.extensionWidgets=new Map,this.promptRunning=!1,this.bashRunning=!1,this.streaming=!1,this.compacting=!1,this.fastModeEnabled=!1,this.idleTimer=null,this.destroyListeners=[],this.onIdentityChangeCallback=null,this.unsubscribeFrames=null,this.initPromise=null,this.restarting=!1,this.mcpListWaiter=null,this._alive=!0,this.hostToolNames=new Set,this.pendingHostTools=new Map,this.hostUriSchemes=new Map,this.pendingHostUris=new Map,this.messageQueue=new m.Tj,this.queueEpoch=0,this.queueDispatching=!1,this.queueDispatchAgain=!1,this.abortHoldsDispatch=!1,this.activeToolIds=new Set,this.nativeFollowUpDepth=0,this.nativeHandoffPending=0,this.nativeQueuedCount=0,this.nativeQueueStale=!1,this.nativeReconcileGeneration=0,this.destroyPromise=null,this._sessionId="",this._sessionFile="",this.sessionFileSignalTimer=null,this.proc=a,this.cwd=b,this.recordedCwd=c??null}get sessionId(){return this._sessionId}get sessionFile(){return this._sessionFile}isAlive(){return this._alive&&this.proc.isAlive}isRunning(){return this.isAlive()&&(this.promptRunning||this.streaming||this.compacting||this.bashRunning)}start(){this.unsubscribeFrames=this.proc.onFrame(a=>this.handleFrame(a)),this.resetIdleTimer(),y()}waitUntilReady(){return this.initPromise||(this.initPromise=this.initialize()),this.initPromise}async initialize(){let a=await this.proc.waitReady(12e4);await this.proc.negotiateProtocol(a),await this.proc.sendCommand({type:"set_subagent_subscription",level:"events"}).catch(()=>{});let b=await this.proc.sendCommand({type:"get_state"});this.applyIdentity(b),this.recordedCwd&&this.recordedCwd!==this.cwd&&this.emit({type:"notice",level:"warning",message:`This session's working directory no longer exists; the agent is running in ${this.cwd}.`})}applyIdentity(a){this._sessionId=a.sessionId,this._sessionFile=a.sessionFile??"",this._sessionName=a.sessionName,this.streaming=a.isStreaming,this.compacting=a.isCompacting,this.fastModeEnabled=a.fastModeEnabled??a.fastMode??this.fastModeEnabled,this._sessionFile&&(0,k.O8)(this._sessionId,this._sessionFile)}handleProcessExit(a){if(!this._alive||this.restarting)return;let b=a.trim().split("\n").pop()??"";this.emit({type:"notice",level:"error",message:`The omp process for this session exited unexpectedly${b?`: ${b}`:"."}`}),(this.streaming||this.promptRunning)&&this.emit({type:"agent_end",isTerminal:!0,messages:[]}),this.destroy()}handleFrame(a){this.resetIdleTimer();let b=!1,c=!1;switch(a.type){case"command_output":{let b=this.mcpListWaiter;if(b&&"string"==typeof a.text){clearTimeout(b.timer),this.mcpListWaiter=null,b.resolve(a.text),y();return}break}case"agent_start":!this.streaming&&this.nativeFollowUpDepth>0&&(this.nativeFollowUpDepth-=1),this.streaming=!0,(0,k.mD)(),b=!0,this._sessionFile&&!(0,e.existsSync)(this._sessionFile)&&this.signalWhenSessionFileAppears();break;case"agent_end":!1!==a.isTerminal&&(this.streaming=!1,this.promptRunning=!1,this.activeToolIds.clear(),(0,k.mD)(),this.nativeQueuedCount>0||this.nativeQueueStale?this.beginNativeQueueReconcile():c=!0);break;case"prompt_result":this.promptRunning=!1,c=!0;break;case"auto_compaction_start":this.compacting=!0;break;case"auto_compaction_end":this.compacting=!1,t(a.result),(0,k.mD)(),c=!0;break;case"tool_execution_start":{let b=r(a);b&&this.activeToolIds.add(b);break}case"tool_execution_end":{let b=r(a);b&&this.activeToolIds.delete(b),c=!0;break}case"session_info_update":"string"==typeof a.title&&(this._sessionName=a.title),(0,k.mD)(),b=!0;break;case"response":if(!1===a.success&&"prompt"===a.command){this.promptRunning=!1,this.emit({type:"prompt_error",errorMessage:a.error??"Prompt failed"}),y(),this.scheduleQueueDispatch();return}break;case"extension_ui_request":if(this.trackExtensionUiRequest(a))return void y();break;case"host_tool_call":{let b="string"==typeof a.id?a.id:"",c="string"==typeof a.toolName?a.toolName:"";if(b&&c&&this.hostToolNames.has(c)&&this.listeners.length>0){this.pendingHostTools.set(b,a),this.emit(a),y();return}this.rejectUnexpectedHostTool(a);return}case"host_tool_cancel":{let b="string"==typeof a.targetId?a.targetId:"";if(b&&this.pendingHostTools.delete(b)){this.emit(a),y();return}break}case"host_uri_request":{let b="string"==typeof a.id?a.id:"",c=("string"==typeof a.url?a.url:"").split(":")[0]??"",d="write"===a.operation?"write":"read",e=this.hostUriSchemes.get(c);if(b&&c&&e&&("write"!==d||e.writable)&&this.listeners.length>0){this.pendingHostUris.set(b,a),this.emit(a),y();return}this.proc.sendFrame({type:"host_uri_result",id:b,isError:!0,error:`URI scheme "${c}" is not registered by omp-web`});return}case"host_uri_cancel":{let b="string"==typeof a.targetId?a.targetId:"";if(b&&this.pendingHostUris.delete(b)){this.emit(a),y();return}}}this.emit(a),y({refreshSessionList:b}),c&&this.scheduleQueueDispatch()}forgetPendingUiRequest(a){this.pendingUiRequests.delete(a);let b=this.uiExpiryTimers.get(a);b&&(clearTimeout(b),this.uiExpiryTimers.delete(a))}clearPendingUiRequests(){for(let a of this.uiExpiryTimers.values())clearTimeout(a);this.uiExpiryTimers.clear(),this.pendingUiRequests.clear()}trackExtensionUiRequest(a){let b=a.method,c=a.id;if("cancel"===b)return this.forgetPendingUiRequest(a.targetId),!1;let d=!1;try{d=(0,j.rk)().settings.tools?.approval?.extension==="allow"}catch{}if("confirm"===b&&"string"==typeof a.title&&/^allow tool\s*:/i.test(a.title)&&d)return this.forgetPendingUiRequest(c),this.proc.sendFrame({type:"extension_ui_response",id:c,confirmed:!0}),!0;if(C.has(b)){this.forgetPendingUiRequest(c);let b="number"==typeof a.timeout?a.timeout:void 0;if(void 0!==b&&Number.isFinite(b)&&b>0&&b<=0x7fffffff){a.expiresAt=Date.now()+b;let d=setTimeout(()=>{this.forgetPendingUiRequest(c),this.emit({type:"extension_ui_request",method:"cancel",id:`expired:${c}`,targetId:c})},b);d.unref?.(),this.uiExpiryTimers.set(c,d)}return this.pendingUiRequests.set(c,a),!1}if("setStatus"===b){let b=a.statusKey,c=a.statusText;return void 0===c?this.extensionStatuses.delete(b):this.extensionStatuses.set(b,c),!1}if("setWidget"===b){let b=a.widgetKey,c=a.widgetLines;void 0===c?this.extensionWidgets.delete(b):this.extensionWidgets.set(b,{key:b,lines:c,placement:a.widgetPlacement??"aboveEditor"})}return!1}rejectUnexpectedHostTool(a){let b="string"==typeof a.id?a.id:"";if(!b)return;let c="string"==typeof a.toolName?a.toolName:"unknown";this.proc.sendFrame({type:"host_tool_result",id:b,isError:!0,result:{content:[{type:"text",text:`Host tool "${c}" is not available in ompgui. Use OMP's built-in tools within the selected workspace.`}]}}),this.emit({type:"notice",level:"warning",message:`Rejected unavailable host tool: ${c}`})}rejectPendingHostTools(a){for(let b of this.pendingHostTools.keys())this.proc.sendFrame({type:"host_tool_result",id:b,isError:!0,result:{content:[{type:"text",text:a}]}});this.pendingHostTools.clear()}rejectPendingHostUris(a){for(let b of this.pendingHostUris.keys())this.proc.sendFrame({type:"host_uri_result",id:b,isError:!0,error:a});this.pendingHostUris.clear()}emit(a){for(let b of this.listeners)try{b(a)}catch{}}signalWhenSessionFileAppears(){if(this.sessionFileSignalTimer)return;let a=0,b=()=>{if(this.sessionFileSignalTimer=null,this._alive&&this._sessionFile){if(!(0,e.existsSync)(this._sessionFile)){(a+=1)<40&&(this.sessionFileSignalTimer=setTimeout(b,250));return}(0,k.mD)(),y({refreshSessionList:!0})}};this.sessionFileSignalTimer=setTimeout(b,250)}resetIdleTimer(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=setTimeout(()=>{this.isRunning()?this.resetIdleTimer():this.destroy()},6e5)}onEvent(a){this.listeners.push(a);let b=Date.now();for(let[a,c]of this.pendingUiRequests){let d=c.expiresAt;if(void 0!==d&&d<=b){this.forgetPendingUiRequest(a);continue}}for(let b of(a({type:"extension_ui_pending",ids:[...this.pendingUiRequests.keys()]}),this.pendingUiRequests.values()))a(b);return a((0,m.LH)(this.messageQueue.getSnapshot())),()=>{let b=this.listeners.indexOf(a);-1!==b&&this.listeners.splice(b,1),0===this.listeners.length&&(this.rejectPendingHostTools("The web UI disconnected while the agent was waiting for this host tool"),this.rejectPendingHostUris("The web UI disconnected while the agent was waiting for this URI request"))}}onDestroy(a){return this._alive?(this.destroyListeners.push(a),()=>{let b=this.destroyListeners.indexOf(a);-1!==b&&this.destroyListeners.splice(b,1)}):(a(),()=>{})}onIdentityChange(a){this.onIdentityChangeCallback=a}async withFinalRunningNotification(a){try{return await a()}finally{y()}}async getMcpList(){let a,b;if(this.restarting)throw new B(A,"session_restarting");if(!this.isAlive())throw Error("Session is no longer running");if(this.isRunning())throw new B("Wait for the current run to finish","session_busy");if(this.mcpListWaiter)throw new B("MCP list is already loading","mcp_list_loading");this.promptRunning=!0,y();let c=new Promise((c,d)=>{a=c,b=d});c.catch(()=>{});let d={resolve:a,reject:b,timer:void 0};d.timer=setTimeout(()=>{this.mcpListWaiter===d&&(this.mcpListWaiter=null,b(new B("Timed out while loading MCP servers","mcp_list_timeout")))},15e3),d.timer.unref?.(),this.mcpListWaiter=d;try{return await this.proc.sendCommand({type:"prompt",message:"/mcp list"}),await c}catch(a){throw this.mcpListWaiter===d&&(clearTimeout(d.timer),this.mcpListWaiter=null,d.reject(a instanceof Error?a:Error(String(a)))),a}finally{this.mcpListWaiter===d&&(clearTimeout(d.timer),this.mcpListWaiter=null),this.promptRunning=!1,y()}}buildWebState(a){return this.streaming=a.isStreaming,this.compacting=a.isCompacting,this._sessionName=a.sessionName,this.nativeQueuedCount=a.queuedMessageCount??0,this.nativeQueueStale=!1,a.sessionId&&(this._sessionId=a.sessionId,this._sessionFile=a.sessionFile??this._sessionFile),{sessionId:a.sessionId,sessionFile:a.sessionFile??"",sessionName:a.sessionName,isStreaming:a.isStreaming,isPromptRunning:this.promptRunning,isBashRunning:this.bashRunning,isCompacting:a.isCompacting,autoCompactionEnabled:a.autoCompactionEnabled,autoRetryEnabled:a.autoRetryEnabled,interruptMode:a.interruptMode,steeringMode:a.steeringMode,followUpMode:a.followUpMode,model:a.model?{id:a.model.id,provider:a.model.provider,name:a.model.name,reasoning:a.model.reasoning,thinking:a.model.thinking?{efforts:a.model.thinking.efforts}:void 0}:void 0,messageCount:a.messageCount,queuedMessageCount:a.queuedMessageCount,messageQueue:this.queueSnapshotForClient(),contextUsage:a.contextUsage??null,systemPrompt:a.systemPrompt?.join("\n\n")??"",thinkingLevel:a.thinkingLevel??"off",fastModeEnabled:a.fastModeEnabled??a.fastMode??this.fastModeEnabled,fastModeActive:a.fastModeActive,todoPhases:a.todoPhases??[],extensionStatuses:Array.from(this.extensionStatuses,([a,b])=>({key:a,text:b})),extensionWidgets:Array.from(this.extensionWidgets.values())}}async refreshIdentityAfterSessionChange(){let a=this._sessionId,b=await this.proc.sendCommand({type:"get_state"});return this.applyIdentity(b),a&&a!==this._sessionId&&(this.clearPendingUiRequests(),this.emit({type:"extension_ui_pending",ids:[]}),this.discardQueue(m.nv),this.onIdentityChangeCallback?.(a,this._sessionId)),(0,k.mD)(),this._sessionId}async restart(){if(this.restarting)throw new B(A,"session_restarting");let a=this._sessionFile,b=!!a&&(0,e.existsSync)(a),c=this.proc;this.restarting=!0,this.queueEpoch+=1,this.abortHoldsDispatch=!1,this.activeToolIds.clear(),this.nativeFollowUpDepth=0,this.nativeHandoffPending=0,this.nativeQueuedCount=0,this.nativeQueueStale=!1,this.nativeReconcileGeneration+=1,this.messageQueue.failSending(m.po),this.emitQueueSnapshot(),this.unsubscribeFrames?.();try{if(await c.dispose(),!this._alive)return;this.extensionStatuses.clear(),this.extensionWidgets.clear(),this.clearPendingUiRequests(),this.promptRunning=!1,this.bashRunning=!1,this.streaming=!1,this.compacting=!1;let d=new i.X({cwd:this.cwd,extraArgs:p(b?a:""),onExit:({stderrTail:a})=>{this.proc===d&&this.handleProcessExit(a)}});this.proc=d,this.unsubscribeFrames=d.onFrame(a=>this.handleFrame(a));try{let a=await d.waitReady(12e4);await d.negotiateProtocol(a),await d.sendCommand({type:"set_subagent_subscription",level:"events"}).catch(()=>{});let b=await d.sendCommand({type:"get_state"});this.applyIdentity(b)}catch(a){throw this.unsubscribeFrames?.(),this.unsubscribeFrames=null,d.dispose(),this.destroy(),a}}finally{this.restarting=!1}y(),this.scheduleQueueDispatch()}async send(a){if(this.restarting)throw new B(A,"session_restarting");if(!this.isAlive())throw Error("Session is no longer running");this.resetIdleTimer();let b=a.type;if("prompt"===b||"steer"===b||"follow_up"===b){let b=(0,g.kc)(a.images);if(b)throw Error(b)}let c=E[b];if(c)throw new i.x(b,c,"unsupported");if((0,m.Bx)(b))return this.handleQueueCommand(a);switch(b){case"prompt":{if(this.bashRunning)throw Error("Cannot send a prompt while a shell command is running");let b=a.streamingBehavior;b||(this.abortHoldsDispatch=!1,this.promptRunning=!0,y());try{let c=await this.forwardNativeHandoff({type:"prompt",message:a.message,...q(a.images)?{images:q(a.images)}:{},...b?{streamingBehavior:b}:{}},"followUp"===b);c?.agentInvoked===!1&&(b||(this.promptRunning=!1,this.emit({type:"prompt_result",agentInvoked:!1}),y()),this.scheduleQueueDispatch())}catch(a){throw this.promptRunning=!1,y(),a}return null}case"steer":case"follow_up":return await this.forwardNativeHandoff({type:b,message:a.message,...q(a.images)?{images:q(a.images)}:{}},"follow_up"===b),null;case"abort":return this.abortHoldsDispatch=!0,await this.withFinalRunningNotification(async()=>{await this.proc.sendCommand({type:"abort"}),this.promptRunning=!1}),null;case"get_state":{let a=await this.proc.sendCommand({type:"get_state"});return this.buildWebState(a)}case"set_model":{let{provider:b,modelId:c}=a,d=await this.proc.sendCommand({type:"set_model",provider:b,modelId:c});return(0,h.kn)(),(0,k.mD)(),{id:d.id,provider:d.provider}}case"set_fast_mode":{let b=!0===a.enabled,c=await this.proc.sendCommand({type:"set_fast_mode",enabled:b});return this.fastModeEnabled=c?.enabled??b,{enabled:this.fastModeEnabled,active:c?.active??!1}}case"fork":{if(this.bashRunning)throw Error("Cannot fork while a shell command is running");if(this.queueEpoch+=1,this.messageQueue.failSending(m.po),this.emitQueueSnapshot(),(await this.proc.sendCommand({type:"branch",entryId:a.entryId})).cancelled)return{cancelled:!0};let b=await this.refreshIdentityAfterSessionChange();return{cancelled:!1,newSessionId:b}}case"new_session":case"switch_session":{this.queueEpoch+=1,this.messageQueue.failSending(m.po),this.emitQueueSnapshot();let b=await this.proc.sendCommand(a);if(!b.cancelled){let a=await this.refreshIdentityAfterSessionChange();return{cancelled:!1,newSessionId:a}}return b}case"compact":try{return await this.withFinalRunningNotification(async()=>{this.compacting=!0,y();try{let b=await this.proc.sendCommand({type:"compact",...a.customInstructions?{customInstructions:a.customInstructions}:{}});return t(b),b}finally{this.compacting=!1}})}finally{(0,k.mD)(),this.scheduleQueueDispatch()}case"abort_compaction":return this.abortHoldsDispatch=!0,await this.withFinalRunningNotification(()=>this.proc.sendCommand({type:"abort"})),null;case"set_session_name":{let b=a.name?.trim();if(!b)throw Error("Session name cannot be empty");return await this.proc.sendCommand({type:"set_session_name",name:b}),this._sessionName=b,(0,k.mD)(),null}case"get_session_stats":return{...await this.proc.sendCommand({type:"get_session_stats"}),sessionName:this._sessionName};case"get_last_assistant_text":return{text:(await this.proc.sendCommand({type:"get_last_assistant_text"})).text??""};case"get_commands":return await this.proc.sendCommand({type:"get_available_commands"});case"reload":return await this.restart(),{success:!0};case"extension_ui_response":{let b,c=a.id,d="string"==typeof c?this.pendingUiRequests.get(c):void 0;if(!d||"string"!=typeof c)throw new B("This dialog is no longer pending in this session","dialog_not_pending");if("number"==typeof d.expiresAt&&d.expiresAt<=Date.now())throw this.forgetPendingUiRequest(c),this.emit({type:"extension_ui_request",method:"cancel",id:`expired:${c}`,targetId:c}),new B("This dialog has expired","dialog_not_pending");if(!0===a.cancelled)b={cancelled:!0,...!0===a.timedOut?{timedOut:!0}:{}};else if("confirm"===d.method||"open_url"===d.method){if("boolean"!=typeof a.confirmed)throw new B("A boolean confirmation is required","invalid_dialog_response");b={confirmed:a.confirmed}}else{if("string"!=typeof a.value||a.value.length>3145728)throw new B("A dialog value of at most 3Mi characters is required","invalid_dialog_response");if("select"===d.method&&(!Array.isArray(d.options)||!d.options.includes(a.value)))throw new B("Select one of the offered options","invalid_dialog_response");b={value:a.value}}return this.proc.sendFrame({type:"extension_ui_response",id:c,...b}),this.forgetPendingUiRequest(c),this.emit({type:"extension_ui_request",method:"cancel",id:`answered:${c}`,targetId:c}),null}case"bash":if(!0===a.excludeFromContext)throw new B("omp cannot run a shell command with its output excluded from the model context (`!!`): the RPC bash command has no exclusion option, so the output would silently enter the context anyway. Run it with a single `!` to share the output with the model, or use a terminal outside ompgui.","bash_exclude_unsupported");if(this.isRunning())throw Error("Cannot run a shell command while the session is busy");this.bashRunning=!0,y();try{return await this.proc.sendCommand({type:"bash",command:a.command})}finally{this.bashRunning=!1,(0,k.mD)(),y(),this.scheduleQueueDispatch()}case"set_host_tools":{let b=(Array.isArray(a.tools)?a.tools:[]).filter(a=>"string"==typeof a.name&&a.name);return this.hostToolNames=new Set(b.map(a=>a.name)),await this.proc.sendCommand({type:"set_host_tools",tools:b}),null}case"host_tool_result":return"string"==typeof a.id&&this.pendingHostTools.delete(a.id),await this.proc.sendCommand(a),null;case"set_host_uri_schemes":{let b=Array.isArray(a.schemes)?a.schemes:[];for(let a of(this.hostUriSchemes=new Map,b))"string"==typeof a.scheme&&a.scheme&&this.hostUriSchemes.set(a.scheme,{writable:!0===a.writable});return await this.proc.sendCommand({type:"set_host_uri_schemes",schemes:b}),null}case"host_uri_result":return"string"==typeof a.id&&this.pendingHostUris.delete(a.id),await this.proc.sendCommand(a),null;default:if(D.has(b)){let c=await this.proc.sendCommand(a);return"set_thinking_level"===b&&(0,k.mD)(),c??null}throw Error(`Unsupported command: ${b}`)}}handleQueueCommand(a){try{let b=a.type;switch(b){case m.VP:if(!(0,m.GO)(a.lane))throw new m.aS("lane must be steer or followUp",m.LT);if("string"!=typeof a.message)throw new m.aS("message is required",m.LT);return this.messageQueue.enqueue({lane:a.lane,text:a.message,images:a.images}),this.abortHoldsDispatch=!1,this.emitQueueSnapshot(),this.finishQueueCommand();case m.Dl:if("string"!=typeof a.id)throw new m.aS("id is required",m.LT);return this.messageQueue.promote(a.id,this.requireExpectedRevision(a)),this.abortHoldsDispatch=!1,this.emitQueueSnapshot(),this.finishQueueCommand();case m.AY:{if("string"!=typeof a.id)throw new m.aS("id is required",m.LT);let b=a.__relayRecallMaxBytes;if(void 0!==b&&"number"!=typeof b)throw new m.aS("Invalid recall response capacity",m.LT);let{item:c}=this.messageQueue.recall(a.id,this.requireExpectedRevision(a),b);this.emitQueueSnapshot();let d=(0,m.lK)(this.queueSnapshotForClient(),c);return this.scheduleQueueDispatch(),Promise.resolve(d)}case m.ee:if("string"!=typeof a.id)throw new m.aS("id is required",m.LT);return this.messageQueue.delete(a.id,this.requireExpectedRevision(a)),this.emitQueueSnapshot(),this.finishQueueCommand();case m.vf:return Promise.resolve((0,m.lK)(this.queueSnapshotForClient()));default:throw Error(`Unsupported command: ${b}`)}}catch(a){if(a instanceof m.aS)throw new B(a.message,a.code);throw a}}requireExpectedRevision(a){if("number"!=typeof a.expectedRevision)throw new m.aS("Queue revision is stale; reload the queue and retry",m.$i);return a.expectedRevision}async finishQueueCommand(){return await this.drainQueueDispatch(),(0,m.lK)(this.queueSnapshotForClient())}queueSnapshotForClient(){return{...this.messageQueue.getSnapshot(),nativeQueuedCount:this.nativeQueuedCount}}emitQueueSnapshot(){this.emit((0,m.LH)(this.queueSnapshotForClient()))}beginNativeQueueReconcile(){this.nativeQueueStale=!0,this.nativeReconcileGeneration+=1;let a=this.nativeReconcileGeneration,b=this.queueEpoch,c=this.proc;this.refreshNativeQueuedCount(a,b,c)}async refreshNativeQueuedCount(a,b,c){try{let d=await c.sendCommand({type:"get_state"});if(!this.nativeReconcileStillValid(a,b,c))return;this.nativeQueuedCount=d.queuedMessageCount??0,this.nativeQueueStale=!1}catch{if(!this.nativeReconcileStillValid(a,b,c))return;this.nativeQueuedCount=0,this.nativeQueueStale=!1}this.scheduleQueueDispatch()}nativeReconcileStillValid(a,b,c){return this._alive&&this.queueEpoch===b&&this.proc===c&&this.nativeReconcileGeneration===a}discardQueue(a){this.queueEpoch+=1;let b=this.messageQueue.getSnapshot().items.length>0;this.messageQueue.reset(),this.emitQueueSnapshot(),b&&this.emit({type:"notice",level:"warning",message:a})}scheduleQueueDispatch(){this.drainQueueDispatch()}async drainQueueDispatch(){if(this.queueDispatching){this.queueDispatchAgain=!0;return}this.queueDispatching=!0;try{do this.queueDispatchAgain=!1,await this.dispatchNextQueueItem();while(this.queueDispatchAgain)}catch{}finally{this.queueDispatching=!1,this.queueDispatchAgain&&this.scheduleQueueDispatch()}}canDispatchSteer(){return this.isAlive()&&!this.restarting&&this.streaming&&!this.compacting&&!this.bashRunning&&0===this.activeToolIds.size&&0===this.pendingHostTools.size&&0===this.nativeHandoffPending}canDispatchFollowUp(){return this.isAlive()&&!this.restarting&&!this.abortHoldsDispatch&&!this.promptRunning&&!this.streaming&&!this.compacting&&!this.bashRunning&&0===this.activeToolIds.size&&0===this.pendingHostTools.size&&0===this.nativeFollowUpDepth&&0===this.nativeHandoffPending&&!this.nativeQueueStale&&0===this.nativeQueuedCount}canDispatchIdlePrompt(){return this.canDispatchFollowUp()}async dispatchNextQueueItem(){for(;this.isAlive()&&!this.restarting;){if(this.messageQueue.hasSending())return;let a=this.messageQueue.selectDispatchCandidate("steer");if(a){if(this.canDispatchSteer()){await this.forwardQueueItem(a,"steer");continue}if(this.canDispatchIdlePrompt()){await this.forwardQueueItem(a);continue}return}let b=this.messageQueue.selectDispatchCandidate("followUp");if(b&&this.canDispatchFollowUp()){await this.forwardQueueItem(b);continue}return}}async forwardQueueItem(a,b){let c=this.queueEpoch,d=this.proc,e=this._sessionId,f=this.messageQueue.getImages(a.id);this.messageQueue.markSending(a.id),this.emitQueueSnapshot(),b||(this.promptRunning=!0,y());try{let g=await d.sendCommand({type:"prompt",message:a.text,...f?{images:f}:{},...b?{streamingBehavior:b}:{}},m.HE);if(!this.queueForwardStillValid(c,d,e,a.id))return;this.messageQueue.remove(a.id),this.emitQueueSnapshot(),g?.agentInvoked!==!1||b||(this.promptRunning=!1,this.emit({type:"prompt_result",agentInvoked:!1}),y())}catch(g){if(b||(this.promptRunning=!1),!this.queueForwardStillValid(c,d,e,a.id))return;let f=g instanceof Error&&/timed out/i.test(g.message)?m.po:`${m.po} ${g instanceof Error?g.message:String(g)}`;this.messageQueue.markFailed(a.id,f),this.emitQueueSnapshot(),this.emit({type:"notice",level:"warning",message:f}),y()}}queueForwardStillValid(a,b,c,d){return!!this._alive&&this.queueEpoch===a&&this.proc===b&&(!c||this._sessionId===c)&&this.messageQueue.getSnapshot().items.some(a=>a.id===d&&"sending"===a.status)}async forwardNativeHandoff(a,b){this.nativeHandoffPending+=1,b&&(this.nativeFollowUpDepth+=1);try{var c;let d=await this.proc.sendCommand(a);return b&&(c=d)&&"object"==typeof c&&!1===c.agentInvoked&&(this.nativeFollowUpDepth=Math.max(0,this.nativeFollowUpDepth-1)),d}catch(a){throw b&&(this.nativeFollowUpDepth=Math.max(0,this.nativeFollowUpDepth-1)),a}finally{this.nativeHandoffPending=Math.max(0,this.nativeHandoffPending-1),this.scheduleQueueDispatch()}}destroy(){this.destroyAndWait()}async destroyAndWait(){if(this.destroyPromise)return this.destroyPromise;if(!this._alive)return;this._alive=!1,this.queueEpoch+=1,this.abortHoldsDispatch=!0,this.discardQueue(m.No),this.idleTimer&&clearTimeout(this.idleTimer),this.sessionFileSignalTimer&&(clearTimeout(this.sessionFileSignalTimer),this.sessionFileSignalTimer=null),this.unsubscribeFrames?.(),this.clearPendingUiRequests(),this.mcpListWaiter&&(clearTimeout(this.mcpListWaiter.timer),this.mcpListWaiter.reject(Error("Session was closed while loading MCP servers")),this.mcpListWaiter=null);let a=this.proc.dispose().catch(()=>{}).then(()=>{for(let[a,b]of u())b===this&&u().delete(a)});for(let b of(this.destroyPromise=a,this.pendingHostTools.clear(),this.hostToolNames.clear(),this.pendingHostUris.clear(),this.hostUriSchemes.clear(),this.destroyListeners.splice(0)))try{b()}catch{}y(),await a}}function u(){if(!globalThis.__ompSessions){globalThis.__ompSessions=new Map;let a=()=>globalThis.__ompSessions?.forEach(a=>a.destroy());process.once("exit",a),process.once("SIGINT",a),process.once("SIGTERM",a)}return globalThis.__ompSessions}function v(a){return u().get(a)}function w(){let a=new Set;for(let[b,c]of u())c.isRunning()&&a.add(c.sessionId||b);return[...a]}async function x(){let a=[...new Set(u().values())];return await Promise.all(a.map(a=>a.destroyAndWait())),a.length}let J="";function y({refreshSessionList:a=!1}={}){let b=w(),c=JSON.stringify([...b].sort());if(c===J&&!a)return;J=c;let d={ids:b,refreshSessionList:a};for(let a of(globalThis.__ompRunningListeners||(globalThis.__ompRunningListeners=new Set),globalThis.__ompRunningListeners))try{a(d)}catch{}}async function z(a,b,c,d,e=!1,f){let g=u(),h=(globalThis.__ompStartLocks||(globalThis.__ompStartLocks=new Map),globalThis.__ompStartLocks),j=g.get(a);for(;j&&!j.isAlive()&&j.destroyPromise;)await j.destroyPromise,j=g.get(a);if(j?.isAlive())return{session:j,realSessionId:a};let k=h.get(a);if(k)return k;let l=(async()=>{let a={},h=new i.X({cwd:c,extraArgs:p(b,d,e),onExit:({stderrTail:b})=>a.wrapper?.handleProcessExit(b)}),j=new I(h,c,f);a.wrapper=j,j.start();try{await j.waitUntilReady()}catch(a){throw await j.destroyAndWait(),a}let k=j.sessionId;return j.onIdentityChange((a,b)=>{g.get(a)===j&&g.delete(a),g.set(b,j)}),g.set(k,j),{session:j,realSessionId:k}})().finally(()=>h.delete(a));return h.set(a,l),l}d()}catch(a){d(a)}})},12244:(a,b)=>{"use strict";b.resolveEnd=function(a,b,c,d){let e="";if(a){let f=!1,g="";for(let h of a){let{source:a,type:i}=h;switch(i){case"space":f=!0;break;case"comment":{c&&!f&&d(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let b=a.substring(1)||" ";e?e+=g+b:e=b,g="";break}case"newline":e&&(g+=a),f=!0;break;default:d(h,"UNEXPECTED_TOKEN",`Unexpected ${i} at node end`)}b+=a.length}}return{comment:e,offset:b}}},12367:(a,b,c)=>{"use strict";var d=c(73315),e=c(77936),f=c(72687);b.stringifyDocument=function(a,b){let c=[],g=!0===b.directives;if(!1!==b.directives&&a.directives){let b=a.directives.toString(a);b?(c.push(b),g=!0):a.directives.docStart&&(g=!0)}g&&c.push("---");let h=e.createStringifyContext(a,b),{commentString:i}=h.options;if(a.commentBefore){1!==c.length&&c.unshift("");let b=i(a.commentBefore);c.unshift(f.indentComment(b,""))}let j=!1,k=null;if(a.contents){if(d.isNode(a.contents)){if(a.contents.spaceBefore&&g&&c.push(""),a.contents.commentBefore){let b=i(a.contents.commentBefore);c.push(f.indentComment(b,""))}h.forceBlockIndent=!!a.comment,k=a.contents.comment}let b=k?void 0:()=>j=!0,l=e.stringify(a.contents,h,()=>k=null,b);k&&(l+=f.lineComment(l,"",i(k))),("|"===l[0]||">"===l[0])&&"---"===c[c.length-1]?c[c.length-1]=`--- ${l}`:c.push(l)}else c.push(e.stringify(a.contents,h));if(a.directives?.docEnd)if(a.comment){let b=i(a.comment);b.includes("\n")?(c.push("..."),c.push(f.indentComment(b,""))):c.push(`... ${b}`)}else c.push("...");else{let b=a.comment;b&&j&&(b=b.replace(/^\n+/,"")),b&&((!j||k)&&""!==c[c.length-1]&&c.push(""),c.push(f.indentComment(i(b),"")))}return c.join("\n")+"\n"}},12868:(a,b,c)=>{var d=c(60828).NAMESPACE,e=c(60828).tagNamePattern;function f(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function g(){}function h(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function i(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},c=Object.create(c)),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var o=a.uri=c[l||""];if(b.startElement(o,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(o,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function j(){this.attributeNames={}}f.prototype=Error(),f.prototype.name=f.name,g.prototype={parse:function(a,b,c){var g=this.domBuilder;g.startDocument(),function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}(b,b={}),function(a,b,c,g,k){function l(a){var b,d=a.slice(1,-1);return Object.hasOwnProperty.call(c,d)?c[d]:"#"===d.charAt(0)?(b=parseInt(d.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((b-=65536)>>10),56320+(1023&b)):String.fromCharCode(b):(k.error("entity not found:"+a),a)}function m(b){if(b>u){var c=a.substring(u,b).replace(/&#?\w+;/g,l);r&&n(u),g.characters(c,0,b-u),u=b}}function n(b,c){for(;b>=p&&(c=q.exec(a));)p=(o=c.index)+c[0].length,r.lineNumber++;r.columnNumber=b-o+1}for(var o=0,p=0,q=/.*(?:\r\n?|\n)|.*$/g,r=g.locator,s=[{currentNSMap:b}],t={},u=0;;){try{var v=a.indexOf("<",u);if(v<0){if(!a.substr(u).match(/^\s*$/)){var w=g.doc,x=w.createTextNode(a.substr(u));w.appendChild(x),g.currentElement=x}return}switch(v>u&&m(v),a.charAt(v+1)){case"/":var y=a.indexOf(">",v+3),z=a.substring(v+2,y).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),A=s.pop();y<0?(z=a.substring(v+2).replace(/[\s<].*/,""),k.error("end tag name: "+z+" is not complete:"+A.tagName),y=v+1+z.length):z.match(/\s</)?(z=z.replace(/[\s<].*/,""),k.error("end tag name: "+z+" maybe not complete"),y=v+1+z.length):/[ \t\n\r]/.test(z)&&e.test(z.split(/[ \t\n\r]/)[0])&&k.error('end tag name is followed by whitespace and trailing content: "'+z+'"');var B=A.localNSMap,C=A.tagName==z;if(C||A.tagName&&A.tagName.toLowerCase()==z.toLowerCase()){if(g.endElement(A.uri,A.localName,z),B)for(var D in B)Object.prototype.hasOwnProperty.call(B,D)&&g.endPrefixMapping(D);C||k.fatalError("end tag name: "+z+" is not match the current start tagName:"+A.tagName)}else s.push(A);y++;break;case"?":r&&n(v),y=function(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}(a,v,g);break;case"!":r&&n(v),y=function(a,b,c,d){if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var e=a.indexOf("--\x3e",b+4);if(e>b)return c.comment(a,b+4,e-b-4),e+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var e=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,e-b-9),c.endCDATA(),e+3}var f=function(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}(a,b),g=f.length;if(g>1&&/!doctype/i.test(f[0][0])){var h=f[1][0],i=!1,j=!1;g>3&&(/^public$/i.test(f[2][0])?(i=f[3][0],j=g>4&&f[4][0]):/^system$/i.test(f[2][0])&&(j=f[3][0]));var k=f[g-1];return c.startDTD(h,i,j),c.endDTD(),k.index+k[0].length}}return -1}(a,v,g,k);break;default:r&&n(v);var E=new j,F=s[s.length-1].currentNSMap,y=function(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,f),d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);if(0===l&&"<"===m)throw Error("unexpected < in tag name: "+a.slice(b,k));switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l)if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k),b-1),l=5;else throw Error("attribute value no end '"+m+"' match");else if(4==l)h(i,j=a.slice(b,k),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:break;case 2:c.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j,b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}(a,v,E,F,l,k),G=E.length;if(!E.closed&&function(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}(a,y,E.tagName,t)&&(E.closed=!0,c.nbsp||k.warning("unclosed xml attribute")),r&&G){for(var H=h(r,{}),I=0;I<G;I++){var J=E[I];n(J.offset),J.locator=h(r,{})}g.locator=H,i(E,g,F)&&s.push(E),g.locator=r}else i(E,g,F)&&s.push(E);d.isHTML(E.uri)&&!E.closed?y=function(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)||(g=g.replace(/&#?\w+;/g,d)),e.characters(g,0,g.length),f}return b+1}(a,y,E.tagName,l,g):y++}}catch(a){if(a instanceof f)throw a;k.error("element parse error: "+a),y=-1}y>u?u=y:m(Math.max(v,u)+1)}}(a,b,c,g,this.errorHandler),g.endDocument()}},j.prototype={setTagName:function(a){if(!e.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!e.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=g,b.ParseError=f},12965:function(a,b,c){(function(){var b,d,e,f,g=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},h={}.hasOwnProperty;f=c(54117).isPlainObject,b=c(8142),e=c(83172),d=c(80224),a.exports=function(a){function b(a){b.__super__.constructor.call(this,null),this.name="?xml",a||(a={}),a.writer||(a.writer=new d),this.options=a,this.stringify=new e(a),this.isDocument=!0}return g(b,a),b.prototype.end=function(a){var b;return a?f(a)&&(b=a,a=this.options.writer.set(b)):a=this.options.writer,a.document(this)},b.prototype.toString=function(a){return this.options.writer.set(a).document(this)},b}(b)}).call(this)},13420:(a,b,c)=>{"use strict";a.exports={Promise:"u">typeof Promise?Promise:c(6163)}},13898:(a,b,c)=>{"use strict";function d(a){if(!a)return;let b=(a.split(/\r?\n/)[0]??"").replace(/[\u0000-\u001f\u007f-\u009f]/g," ").replace(/\s+/g," ").trim();return b.length>0?b:void 0}function e(a){if(!a||"(no messages)"===a)return null;let b=d(a);if(!b||!/[\p{L}\p{N}]/u.test(b))return null;let c=Array.from(b);return c.length<=60?b:`${c.slice(0,60).join("").trimEnd()}…`}c.d(b,{c:()=>d,z:()=>e})},14089:(a,b,c)=>{var d=c(86936),e=c(49472);b.parseFromString=function(a){var b=null,c=new d.DOMParser({errorHandler:function(a,c){b={level:a,message:c}}}).parseFromString(a);if(null===b)return c;throw Error(b.level+": "+b.message)},b.Node=e.Node},14233:(a,b,c)=>{a.exports=c(28354).deprecate},14610:(a,b,c)=>{"use strict";a.exports=g;var d=c(71848),e=Object.create(c(22362));function f(a,b){var c=this._transformState;c.transforming=!1;var d=c.writecb;if(!d)return this.emit("error",Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,null!=b&&this.push(b),d(a);var e=this._readableState;e.reading=!1,(e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}function g(a){if(!(this instanceof g))return new g(a);d.call(this,a),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&("function"==typeof a.transform&&(this._transform=a.transform),"function"==typeof a.flush&&(this._flush=a.flush)),this.on("prefinish",h)}function h(){var a=this;"function"==typeof this._flush?this._flush(function(b,c){i(a,b,c)}):i(this,null,null)}function i(a,b,c){if(b)return a.emit("error",b);if(null!=c&&a.push(c),a._writableState.length)throw Error("Calling transform done when ws.length != 0");if(a._transformState.transforming)throw Error("Calling transform done when still transforming");return a.push(null)}e.inherits=c(50843),e.inherits(g,d),g.prototype.push=function(a,b){return this._transformState.needTransform=!1,d.prototype.push.call(this,a,b)},g.prototype._transform=function(a,b,c){throw Error("_transform() is not implemented")},g.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},g.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0},g.prototype._destroy=function(a,b){var c=this;d.prototype._destroy.call(this,a,function(a){b(a),c.emit("close")})}},14732:(a,b,c)=>{"use strict";var d=c(58952),e=c(41067),f=c(76281),g=c(45644),h=c(49642),i=c(13420),j=null;if(h.nodestream)try{j=c(7306)}catch(a){}function k(a,b,c){var g=b;switch(b){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=b,this._mimeType=c,d.checkSupport(g),this._worker=a.pipe(new e(g)),a.lock()}catch(a){this._worker=new f("error"),this._worker.error(a)}}k.prototype={accumulate:function(a){var b;return b=this,new i.Promise(function(c,e){var f=[],h=b._internalType,i=b._outputType,j=b._mimeType;b.on("data",function(b,c){f.push(b),a&&a(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{var a=function(a,b,c){switch(a){case"blob":return d.newBlob(d.transformTo("arraybuffer",b),c);case"base64":return g.encode(b);default:return d.transformTo(a,b)}}(i,function(a,b){var c,d=0,e=null,f=0;for(c=0;c<b.length;c++)f+=b[c].length;switch(a){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(e=new Uint8Array(f),c=0;c<b.length;c++)e.set(b[c],d),d+=b[c].length;return e;case"nodebuffer":return Buffer.concat(b);default:throw Error("concat : unsupported type '"+a+"'")}}(h,f),j);c(a)}catch(a){e(a)}f=[]}).resume()})},on:function(a,b){var c=this;return"data"===a?this._worker.on(a,function(a){b.call(c,a.data,a.meta)}):this._worker.on(a,function(){d.delay(b,arguments,c)}),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(a){if(d.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new j(this,{objectMode:"nodebuffer"!==this._outputType},a)}},a.exports=k},14835:(a,b,c)=>{"use strict";var d,e,f,g=c(69167);function h(a){for(var b=a.length;--b>=0;)a[b]=0}var i=573,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],m=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n=Array(576);h(n);var o=Array(60);h(o);var p=Array(512);h(p);var q=Array(256);h(q);var r=Array(29);h(r);var s=Array(30);function t(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function u(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function v(a){return a<256?p[a]:p[256+(a>>>7)]}function w(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function x(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,w(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)}function y(a,b,c){x(a,c[2*b],c[2*b+1])}function z(a,b){var c=0;do c|=1&a,a>>>=1,c<<=1;while(--b>0);return c>>>1}function A(a,b,c){var d,e,f=Array(16),g=0;for(d=1;d<=15;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=z(f[h]++,h))}}function B(a){var b;for(b=0;b<286;b++)a.dyn_ltree[2*b]=0;for(b=0;b<30;b++)a.dyn_dtree[2*b]=0;for(b=0;b<19;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function C(a){a.bi_valid>8?w(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function D(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]}function E(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len&&(e<a.heap_len&&D(b,a.heap[e+1],a.heap[e],a.depth)&&e++,!D(b,d,a.heap[e],a.depth));)a.heap[c]=a.heap[e],c=e,e<<=1;a.heap[c]=d}function F(a,b,c){var d,e,f,g,h=0;if(0!==a.last_lit)do d=a.pending_buf[a.d_buf+2*h]<<8|a.pending_buf[a.d_buf+2*h+1],e=a.pending_buf[a.l_buf+h],h++,0===d?y(a,e,b):(y(a,(f=q[e])+256+1,b),0!==(g=j[f])&&x(a,e-=r[f],g),y(a,f=v(--d),c),0!==(g=k[f])&&x(a,d-=s[f],g));while(h<a.last_lit);y(a,256,b)}function G(a,b){var c,d,e,f=b.dyn_tree,g=b.stat_desc.static_tree,h=b.stat_desc.has_stree,j=b.stat_desc.elems,k=-1;for(a.heap_len=0,a.heap_max=i,c=0;c<j;c++)0!==f[2*c]?(a.heap[++a.heap_len]=k=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)f[2*(e=a.heap[++a.heap_len]=k<2?++k:0)]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=k,c=a.heap_len>>1;c>=1;c--)E(a,f,c);e=j;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],E(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,E(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],function(a,b){var c,d,e,f,g,h,j=b.dyn_tree,k=b.max_code,l=b.stat_desc.static_tree,m=b.stat_desc.has_stree,n=b.stat_desc.extra_bits,o=b.stat_desc.extra_base,p=b.stat_desc.max_length,q=0;for(f=0;f<=15;f++)a.bl_count[f]=0;for(j[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;c<i;c++)(f=j[2*j[2*(d=a.heap[c])+1]+1]+1)>p&&(f=p,q++),j[2*d+1]=f,!(d>k)&&(a.bl_count[f]++,g=0,d>=o&&(g=n[d-o]),h=j[2*d],a.opt_len+=h*(f+g),m&&(a.static_len+=h*(l[2*d+1]+g)));if(0!==q){do{for(f=p-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[p]--,q-=2}while(q>0);for(f=p;0!==f;f--)for(d=a.bl_count[f];0!==d;)!((e=a.heap[--c])>k)&&(j[2*e+1]!==f&&(a.opt_len+=(f-j[2*e+1])*j[2*e],j[2*e+1]=f),d--)}}(a,b),A(f,k,a.bl_count)}function H(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[(c+1)*2+1]=65535,d=0;d<=c;d++)e=g,g=b[(d+1)*2+1],++h<i&&e===g||(h<j?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[32]++):h<=10?a.bl_tree[34]++:a.bl_tree[36]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4))}function I(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),d=0;d<=c;d++)if(e=g,g=b[(d+1)*2+1],!(++h<i)||e!==g){if(h<j)do y(a,e,a.bl_tree);while(0!=--h);else 0!==e?(e!==f&&(y(a,e,a.bl_tree),h--),y(a,16,a.bl_tree),x(a,h-3,2)):h<=10?(y(a,17,a.bl_tree),x(a,h-3,3)):(y(a,18,a.bl_tree),x(a,h-11,7));h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4)}}h(s);var J=!1;function K(a,b,c,d){x(a,0+ +!!d,3),C(a),w(a,c),w(a,~c),g.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}b._tr_init=function(a){J||(!function(){var a,b,c,g,h,i=Array(16);for(g=0,c=0;g<28;g++)for(r[g]=c,a=0;a<1<<j[g];a++)q[c++]=g;for(q[c-1]=g,h=0,g=0;g<16;g++)for(s[g]=h,a=0;a<1<<k[g];a++)p[h++]=g;for(h>>=7;g<30;g++)for(s[g]=h<<7,a=0;a<1<<k[g]-7;a++)p[256+h++]=g;for(b=0;b<=15;b++)i[b]=0;for(a=0;a<=143;)n[2*a+1]=8,a++,i[8]++;for(;a<=255;)n[2*a+1]=9,a++,i[9]++;for(;a<=279;)n[2*a+1]=7,a++,i[7]++;for(;a<=287;)n[2*a+1]=8,a++,i[8]++;for(A(n,287,i),a=0;a<30;a++)o[2*a+1]=5,o[2*a]=z(a,5);d=new t(n,j,257,286,15),e=new t(o,k,0,30,15),f=new t([],l,0,19,7)}(),J=!0),a.l_desc=new u(a.dyn_ltree,d),a.d_desc=new u(a.dyn_dtree,e),a.bl_desc=new u(a.bl_tree,f),a.bi_buf=0,a.bi_valid=0,B(a)},b._tr_stored_block=K,b._tr_flush_block=function(a,b,c,d){var e,f,g=0;a.level>0?(2===a.strm.data_type&&(a.strm.data_type=function(a){var b,c=0xf3ffc07f;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(b=32;b<256;b++)if(0!==a.dyn_ltree[2*b])return 1;return 0}(a)),G(a,a.l_desc),G(a,a.d_desc),g=function(a){var b;for(H(a,a.dyn_ltree,a.l_desc.max_code),H(a,a.dyn_dtree,a.d_desc.max_code),G(a,a.bl_desc),b=18;b>=3&&0===a.bl_tree[2*m[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,c+4<=e&&-1!==b?K(a,b,c,d):4===a.strategy||f===e?(x(a,2+ +!!d,3),F(a,n,o)):(x(a,4+ +!!d,3),function(a,b,c,d){var e;for(x(a,b-257,5),x(a,c-1,5),x(a,d-4,4),e=0;e<d;e++)x(a,a.bl_tree[2*m[e]+1],3);I(a,a.dyn_ltree,b-1),I(a,a.dyn_dtree,c-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,g+1),F(a,a.dyn_ltree,a.dyn_dtree)),B(a),d&&C(a)},b._tr_tally=function(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[(q[c]+256+1)*2]++,a.dyn_dtree[2*v(b)]++),a.last_lit===a.lit_bufsize-1},b._tr_align=function(a){x(a,2,3),y(a,256,n),16===a.bi_valid?(w(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},14916:(a,b,c)=>{"use strict";c.d(b,{C1:()=>d});let d=["bash","read","edit","write","grep","find","ls","task"]},15325:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(30598),g=c(71397),h=c(86677),i=c(37054),j=c(69374);function k(a,b,c,d,e,f){let g="block-map"===c.type?h.resolveBlockMap(a,b,c,d,f):"block-seq"===c.type?i.resolveBlockSeq(a,b,c,d,f):j.resolveFlowCollection(a,b,c,d,f),k=g.constructor;return"!"===e||e===k.tagName?g.tag=k.tagName:e&&(g.tag=e),g}b.composeCollection=function(a,b,c,h,i){let j=h.tag,l=j?b.directives.tagName(j.source,a=>i(j,"TAG_RESOLVE_FAILED",a)):null;if("block-seq"===c.type){let{anchor:a,newlineAfterProp:b}=h,c=a&&j?a.offset>j.offset?a:j:a??j;c&&(!b||b.offset<c.offset)&&i(c,"MISSING_CHAR","Missing newline after block sequence props")}let m="block-map"===c.type?"map":"block-seq"===c.type?"seq":"{"===c.start.source?"map":"seq";if(!j||!l||"!"===l||l===f.YAMLMap.tagName&&"map"===m||l===g.YAMLSeq.tagName&&"seq"===m)return k(a,b,c,i,l);let n=b.schema.tags.find(a=>a.tag===l&&a.collection===m);if(!n){let d=b.schema.knownTags[l];if(d?.collection!==m)return d?i(j,"BAD_COLLECTION_TYPE",`${d.tag} used for ${m} collection, but expects ${d.collection??"scalar"}`,!0):i(j,"TAG_RESOLVE_FAILED",`Unresolved tag: ${l}`,!0),k(a,b,c,i,l);b.schema.tags.push(Object.assign({},d,{default:!1})),n=d}let o=k(a,b,c,i,l,n),p=n.resolve?.(o,a=>i(j,"TAG_RESOLVE_FAILED",a),b.options)??o,q=d.isNode(p)?p:new e.Scalar(p);return q.range=o.range,q.tag=l,n?.format&&(q.format=n.format),q}},15434:(a,b,c)=>{"use strict";var d=c(20577);function e(a,b){a.emit("error",b)}a.exports={destroy:function(a,b){var c=this,f=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return f||g?b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(e,this,a)):d.nextTick(e,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?c._writableState?c._writableState.errorEmitted||(c._writableState.errorEmitted=!0,d.nextTick(e,c,a)):d.nextTick(e,c,a):b&&b(a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},15601:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$I:()=>o,LQ:()=>r,TF:()=>n,_B:()=>p,zn:()=>q});var e=c(29021),f=c(84435),g=c(25276),h=c(33873),i=c(71217),j=c(92226),k=c(28672),l=c(51671),m=a([g]);async function n(){try{let{stdout:a}=await (0,l.eG)(["models","--kind","all","--json"],{timeout:6e4}),b=(0,l.nH)(a);if(!(0,k.u4)(b)||!Array.isArray(b.models))return[];let c=[];for(let a of b.models){if(!(0,k.u4)(a))continue;let{id:b,provider:d,kind:e,name:f}=a;"string"==typeof b&&"string"==typeof d&&"string"==typeof e&&"chat"!==e&&c.push({id:b,provider:d,kind:e,name:"string"==typeof f&&f.trim()?f:b})}return c}catch{return[]}}function o(){let a=(0,j.pA)();if(!(0,e.existsSync)(a))return{path:a,roles:{}};let b=(0,i.Tp)((0,e.readFileSync)(a,"utf8"));if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);let c=b.toJS();return(0,k.u4)(c)&&(0,k.u4)(c.modelRoles)?{path:a,roles:Object.fromEntries(Object.entries(c.modelRoles).filter(a=>"string"==typeof a[1]))}:{path:a,roles:{}}}async function p(a){let b=(0,g.k6)((0,j.pA)());(0,e.mkdirSync)((0,h.dirname)(b),{recursive:!0}),await (0,g.th)(b,()=>{let c=(0,e.existsSync)(b)?(0,e.readFileSync)(b,"utf8"):"",d=(0,i.Tp)(c);if(d.errors.length>0)throw Error(`${b} is not valid YAML: ${d.errors[0].message}`);if(null===d.contents)(0,f.D)(b,(0,i.As)({modelRoles:a}));else{if(!(0,i.jh)(d.contents))throw Error(`${b} must contain a YAML mapping`);let c=d.toJS(),e=(0,k.u4)(c)&&(0,k.u4)(c.modelRoles)?c.modelRoles:{},g=Object.fromEntries(Object.entries(e).filter(([b,c])=>"string"!=typeof c&&!(b in a)));d.set("modelRoles",{...g,...a}),(0,f.D)(b,d.toString())}})}function q(){let a=(0,j.pA)();if(!(0,e.existsSync)(a))return new Set;let b=(0,i.Tp)((0,e.readFileSync)(a,"utf8"));if(b.errors.length>0)throw Error(`${a} is not valid YAML: ${b.errors[0].message}`);let c=b.toJS();return(0,k.u4)(c)&&Array.isArray(c.disabledProviders)?new Set(c.disabledProviders.filter(a=>"string"==typeof a)):new Set}async function r(a){let b=(0,j.pA)();if(!(0,e.existsSync)(b))return;let c=(0,g.k6)(b);await (0,g.th)(c,()=>{if(!(0,e.existsSync)(c))return;let b=(0,i.Tp)((0,e.readFileSync)(c,"utf8"));if(b.errors.length>0)throw Error(`${c} is not valid YAML: ${b.errors[0].message}`);if(!(0,i.jh)(b.contents))throw Error(`${c} must contain a YAML mapping`);let d=b.toJS(),g=(0,k.u4)(d)&&Array.isArray(d.disabledProviders)?d.disabledProviders.filter(a=>"string"==typeof a):[],h=g.filter(b=>b!==a);h.length!==g.length&&(b.set("disabledProviders",h),(0,f.D)(c,b.toString()))})}g=(m.then?(await m)():m)[0],d()}catch(a){d(a)}})},16312:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281),f=c(30212),g=c(56222),h=c(49505),i=function(a,b){var c,d="";for(c=0;c<b;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},j=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},k=function(a,b,c,e,k,l){var m,n,o=a.file,p=a.compression,q=l!==f.utf8encode,r=d.transformTo("string",l(o.name)),s=d.transformTo("string",f.utf8encode(o.name)),t=o.comment,u=d.transformTo("string",l(t)),v=d.transformTo("string",f.utf8encode(t)),w=s.length!==o.name.length,x=v.length!==t.length,y="",z="",A="",B=o.dir,C=o.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!b||c)&&(D.crc32=a.crc32,D.compressedSize=a.compressedSize,D.uncompressedSize=a.uncompressedSize);var E=0;b&&(E|=8),!q&&(w||x)&&(E|=2048);var F=0,G=0;(B&&(F|=16),"UNIX"===k)?(G=798,F|=j(o.unixPermissions,B)):(G=20,F|=63&(o.dosPermissions||0)),m=(C.getUTCHours()<<6|C.getUTCMinutes())<<5|C.getUTCSeconds()/2,n=(C.getUTCFullYear()-1980<<4|C.getUTCMonth()+1)<<5|C.getUTCDate(),w&&(z=i(1,1)+i(g(r),4)+s,y+="up"+i(z.length,2)+z),x&&(A=i(1,1)+i(g(u),4)+v,y+="uc"+i(A.length,2)+A);var H="";return H+="\n\0",H+=i(E,2),H+=p.magic,H+=i(m,2),H+=i(n,2),H+=i(D.crc32,4),H+=i(D.compressedSize,4),H+=i(D.uncompressedSize,4),H+=i(r.length,2),H+=i(y.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+r+y,dirRecord:h.CENTRAL_FILE_HEADER+i(G,2)+H+i(u.length,2)+"\0\0\0\0"+i(F,4)+i(e,4)+r+y+u}},l=function(a,b,c,e,f){var g=d.transformTo("string",f(e));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(a,2)+i(a,2)+i(b,4)+i(c,4)+i(g.length,2)+g},m=function(a){return h.DATA_DESCRIPTOR+i(a.crc32,4)+i(a.compressedSize,4)+i(a.uncompressedSize,4)};function n(a,b,c,d){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(n,e),n.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,e.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},n.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=k(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=k(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:m(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var c=this.bytesWritten-a,d=l(this.dirRecords.length,c,a,this.zipComment,this.encodeFileName);this.push({data:d,meta:{percent:100}})},n.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},n.prototype.registerPrevious=function(a){this._sources.push(a);var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),a.on("error",function(a){b.error(a)}),this},n.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},n.prototype.error=function(a){var b=this._sources;if(!e.prototype.error.call(this,a))return!1;for(var c=0;c<b.length;c++)try{b[c].error(a)}catch(a){}return!0},n.prototype.lock=function(){e.prototype.lock.call(this);for(var a=this._sources,b=0;b<a.length;b++)a[b].lock()},a.exports=n},16426:function(a,b,c){(function(){var b,d,e,f,g,h,i=function(a,b){for(var c in b)j.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},j={}.hasOwnProperty;g=(h=c(54117)).isObject,f=h.isFunction,e=h.getValue,d=c(8142),b=c(48514),a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(b),this.attributes={},null!=d&&this.attribute(d),a.isDocument&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this)}return i(c,a),c.prototype.clone=function(){var a,b,c,d;for(b in(c=Object.create(this)).isRoot&&(c.documentObject=null),c.attributes={},d=this.attributes)j.call(d,b)&&(a=d[b],c.attributes[b]=a.clone());return c.children=[],this.children.forEach(function(a){var b;return(b=a.clone()).parent=c,c.children.push(b)}),c},c.prototype.attribute=function(a,c){var d,h;if(null!=a&&(a=e(a)),g(a))for(d in a)j.call(a,d)&&(h=a[d],this.attribute(d,h));else f(c)&&(c=c.apply()),this.options.skipNullAttributes&&null==c||(this.attributes[a]=new b(this,a,c));return this},c.prototype.removeAttribute=function(a){var b,c,d;if(null==a)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(a=e(a)))for(c=0,d=a.length;c<d;c++)b=a[c],delete this.attributes[b];else delete this.attributes[a];return this},c.prototype.toString=function(a){return this.options.writer.set(a).element(this)},c.prototype.att=function(a,b){return this.attribute(a,b)},c.prototype.a=function(a,b){return this.attribute(a,b)},c}(d)}).call(this)},16646:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a){c.__super__.constructor.call(this,a),this.isDummy=!0}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return""},c}(c(8142))}).call(this)},16734:(a,b,c)=>{var d=c(84906);b.writer=function(a){return(a=a||{}).prettyPrint?function(){var a=0,b=[],c=!0,g=!1,h=f();function i(){if(g=!1,!c&&(0===b.length||e[b[b.length-1]])&&!j()){h._append("\n");for(var d=0;d<a;d++)h._append(" ")}}function j(){return d.some(b,function(a){return"pre"===a})}return{asString:h.asString,open:function(d,f){e[d]&&i(),b.push(d),h.open(d,f),e[d]&&a++,c=!1},close:function(c){e[c]&&(a--,i()),b.pop(),h.close(c)},text:function(a){g||(i(),g=!0);var b=j()?a:a.replace("\n","\n ");h.text(b)},selfClosing:function(a,b){i(),h.selfClosing(a,b)}}}():f()};var e={div:!0,p:!0,ul:!0,li:!0};function f(){var a=[];function b(a){return d.map(a,function(a,b){return" "+b+'="'+a.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")+'"'}).join("")}return{asString:function(){return a.join("")},open:function(c,d){var e=b(d);a.push("<"+c+e+">")},close:function(b){a.push("</"+b+">")},text:function(b){a.push(b.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))},selfClosing:function(c,d){var e=b(d);a.push("<"+c+e+" />")},_append:function(b){a.push(b)}}}},16892:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701);let f={identify:a=>"<<"===a||"symbol"==typeof a&&"<<"===a.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new e.Scalar(Symbol("<<")),{addToJSMap:g}),stringify:()=>"<<"};function g(a,b,c){let e=i(a,c);if(d.isSeq(e))for(let c of e.items)h(a,b,c);else if(Array.isArray(e))for(let c of e)h(a,b,c);else h(a,b,e)}function h(a,b,c){let e=i(a,c);if(!d.isMap(e))throw Error("Merge sources must be maps or map aliases");for(let[c,d]of e.toJSON(null,a,Map))b instanceof Map?b.has(c)||b.set(c,d):b instanceof Set?b.add(c):Object.prototype.hasOwnProperty.call(b,c)||Object.defineProperty(b,c,{value:d,writable:!0,enumerable:!0,configurable:!0});return b}function i(a,b){return a&&d.isAlias(b)?b.resolve(a.doc,a):b}b.addMergeToJSMap=g,b.isMergeKey=(a,b)=>(f.identify(b)||d.isScalar(b)&&(!b.type||b.type===e.Scalar.PLAIN)&&f.identify(b.value))&&a?.doc.schema.tags.some(a=>a.tag===f.tag&&a.default),b.merge=f},17390:(a,b,c)=>{"use strict";var d=c(40831),e=c(58952),f=c(49505),g=c(21906),h=c(49642);function i(a){this.files=[],this.loadOptions=a}i.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4);return this.reader.setIndex(c),d===b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44;0<d;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readData(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a<this.files.length;a++)b=this.files[a],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var a;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(a=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(a);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var a=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(a<0){if(!this.isSignature(0,f.LOCAL_FILE_HEADER))throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(a);var b=a;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===e.MAX_VALUE_16BITS||this.diskWithCentralDirStart===e.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===e.MAX_VALUE_16BITS||this.centralDirRecords===e.MAX_VALUE_16BITS||this.centralDirSize===e.MAX_VALUE_32BITS||this.centralDirOffset===e.MAX_VALUE_32BITS){if(this.zip64=!0,(a=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(a),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=b-c;if(d>0)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=i},17518:(a,b)=>{"use strict";class c{constructor(){this.lineStarts=[],this.addNewLine=a=>this.lineStarts.push(a),this.linePos=a=>{let b=0,c=this.lineStarts.length;for(;b<c;){let d=b+c>>1;this.lineStarts[d]<a?b=d+1:c=d}if(this.lineStarts[b]===a)return{line:b+1,col:1};if(0===b)return{line:0,col:a};let d=this.lineStarts[b-1];return{line:b,col:a-d+1}}}}b.LineCounter=c},18092:(a,b,c)=>{var d=c(27910);"disable"===process.env.READABLE_STREAM&&d?(a.exports=d,(b=a.exports=d.Readable).Readable=d.Readable,b.Writable=d.Writable,b.Duplex=d.Duplex,b.Transform=d.Transform,b.PassThrough=d.PassThrough,b.Stream=d):((b=a.exports=c(38418)).Stream=d||b,b.Readable=b,b.Writable=c(49358),b.Duplex=c(71848),b.Transform=c(14610),b.PassThrough=c(80052))},18143:(a,b,c)=>{"use strict";var d=c(65695);let e=a=>"bigint"==typeof a||Number.isInteger(a);function f(a,b,c,{intAsBigInt:d}){let e=a[0];if(("-"===e||"+"===e)&&(b+=1),a=a.substring(b).replace(/_/g,""),d){switch(c){case 2:a=`0b${a}`;break;case 8:a=`0o${a}`;break;case 16:a=`0x${a}`}let b=BigInt(a);return"-"===e?BigInt(-1)*b:b}let g=parseInt(a,c);return"-"===e?-1*g:g}function g(a,b,c){let{value:f}=a;if(e(f)){let a=f.toString(b);return f<0?"-"+c+a.substr(1):c+a}return d.stringifyNumber(a)}b.int={identify:e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(a,b,c)=>f(a,0,10,c),stringify:d.stringifyNumber},b.intBin={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(a,b,c)=>f(a,2,2,c),stringify:a=>g(a,2,"0b")},b.intHex={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(a,b,c)=>f(a,2,16,c),stringify:a=>g(a,16,"0x")},b.intOct={identify:e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(a,b,c)=>f(a,1,8,c),stringify:a=>g(a,8,"0")}},18187:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f=c(22418),g=f.tryCatch,h=f.errorObj,i=a._async;a.prototype.break=a.prototype.cancel=function(){if(!e.cancellation())return this._warn("cancellation is disabled");for(var a=this,b=a;a._isCancellable();){if(!a._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var c=a._cancellationParent;if(null!=c&&c._isCancellable())a._isFollowing()&&a._followee().cancel(),a._setWillBeCancelled(),b=a,a=c;else{a._isFollowing()?a._followee().cancel():a._cancelBranched();break}}},a.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},a.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},a.prototype._cancelBy=function(a){return a===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},a.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},a.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),i.invoke(this._cancelPromises,this,void 0))},a.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},a.prototype._unsetOnCancel=function(){this._onCancelField=void 0},a.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},a.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},a.prototype._doInvokeOnCancel=function(a,b){if(f.isArray(a))for(var c=0;c<a.length;++c)this._doInvokeOnCancel(a[c],b);else if(void 0!==a)if("function"==typeof a){if(!b){var d=g(a).call(this._boundValue());d===h&&(this._attachExtraTrace(d.e),i.throwLater(d.e))}}else a._resultCancelled(this)},a.prototype._invokeOnCancel=function(){var a=this._onCancel();this._unsetOnCancel(),i.invoke(this._doInvokeOnCancel,this,a)},a.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},a.prototype._resultCancelled=function(){this.cancel()}}},18403:(a,b,c)=>{var d=c(84906);b.Element=f,b.element=function(a,b,c){return new f(a,b,c)},b.text=function(a){return{type:"text",value:a}};var e=b.emptyElement={first:function(){return null},firstOrEmpty:function(){return e},attributes:{},children:[]};function f(a,b,c){this.type="element",this.name=a,this.attributes=b||{},this.children=c||[]}f.prototype.first=function(a){return d.find(this.children,function(b){return b.name===a})},f.prototype.firstOrEmpty=function(a){return this.first(a)||e},f.prototype.getElementsByTagName=function(a){return h(d.filter(this.children,function(b){return b.name===a}))},f.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw Error("Not implemented");return this.children[0].value};var g={getElementsByTagName:function(a){return h(d.flatten(this.map(function(b){return b.getElementsByTagName(a)},!0)))}};function h(a){return d.extend(a,g)}},19173:(a,b,c)=>{"use strict";var d=c(58952),e=c(13420),f=c(30212),g=c(17390),h=c(53933),i=c(39531);a.exports=function(a,b){var c=this;return(b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a))?e.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var c=[e.Promise.resolve(a)],d=a.files;if(b.checkCRC32)for(var f=0;f<d.length;f++)c.push(function(a){return new e.Promise(function(b,c){var d=a.decompressed.getContentWorker().pipe(new h);d.on("error",function(a){c(a)}).on("end",function(){d.streamInfo.crc32!==a.decompressed.crc32?c(Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}(d[f]));return e.Promise.all(c)}).then(function(a){for(var e=a.shift(),f=e.files,g=0;g<f.length;g++){var h=f[g],i=h.fileNameStr,j=d.resolve(h.fileNameStr);c.file(j,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:b.createFolders}),h.dir||(c.file(j).unsafeOriginalName=i)}return e.zipComment.length&&(c.comment=e.zipComment),c})}},19272:a=>{"use strict";a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},19435:(a,b,c)=>{var d=c(84906),e=c(26932);function f(a){return new g(a.map(function(a){return d.isString(a)?h(a):a}))}function g(a){this._elements=a}function h(a,b,c){return new i(a,b,c=c||{})}function i(a,b,c){var e={};d.isArray(a)?(a.forEach(function(a){e[a]=!0}),a=a[0]):e[a]=!0,this.tagName=a,this.tagNames=e,this.attributes=b||{},this.fresh=c.fresh,this.separator=c.separator}b.topLevelElement=function(a,b){return f([h(a,b,{fresh:!0})])},b.elements=f,b.element=h,g.prototype.wrap=function(a){for(var b=a(),c=this._elements.length-1;c>=0;c--)b=this._elements[c].wrapNodes(b);return b},i.prototype.matchesElement=function(a){return this.tagNames[a.tagName]&&d.isEqual(this.attributes||{},a.attributes||{})},i.prototype.wrap=function(a){return this.wrapNodes(a())},i.prototype.wrapNodes=function(a){return[e.elementWithTag(this,a)]},b.empty=f([]),b.ignore={wrap:function(){return[]}}},19572:(a,b,c)=>{b.O=function(a){var b=a.bodyReader;return{convertXmlToDocument:function(c){var f=c.first("w:body");if(null==f)throw Error("Could not find the body element: are you sure this is a docx file?");var g=b.readXmlElements(f.children).map(function(b){return new d.Document(b,{notes:a.notes,comments:a.comments})});return new e(g.value,g.messages)}}};var d=c(77880),e=c(6560).Result},19628:(a,b,c)=>{"use strict";c.d(b,{E:()=>p});var d=c(73024),e=c(76760),f=c(29047),g=c(80803),h=c(77598),i=c(37067),j=c(44708);async function k(a,b={}){let c,d,e,f;try{c=new URL(a)}catch{throw Error("Invalid model probe endpoint")}if("http:"!==c.protocol&&"https:"!==c.protocol||c.hash)throw Error("Unsupported model probe endpoint");if(b.signal?.aborted)throw Error("Model probe cancelled");try{b.assertActive?.()}catch{throw Error("Model probe cancelled")}let g=`/model-probe-${(0,h.randomBytes)(24).toString("hex")}`,l=a.split("?",1)[0].endsWith("/"),m=new URLSearchParams(c.search);c.search="";let n=c.href.replace(/\/+$/,""),o=new Set,p=new Set,q=!1,r=!1,s=a=>{let b=Promise.withResolvers();o.add(a),p.add(b.promise),a.once("close",()=>{o.delete(a),p.delete(b.promise),b.resolve()}),r&&a.destroy()},t=(0,i.createServer)((a,c)=>{let f=a.url??"",h=f.indexOf("?"),k=h<0?f:f.slice(0,h),l=b.expectedPath;if(q||r||"POST"!==a.method||!(f===g||f.startsWith(`${g}/`)||f.startsWith(`${g}?`))||void 0!==l&&k!==`${g}/${l.replace(/^\/+/,"")}`){c.writeHead(403,{connection:"close"}),c.end(),a.resume();return}try{let h=new URL(n+f.slice(g.length));for(let[a,b]of m)h.searchParams.set(a,b);let k={...a.headers};for(let[a,c]of Object.entries(b.upstreamHeaders??{}))k[a.toLowerCase()]=c;if(k.host=h.host,k.connection="close",b.signal?.aborted||r||(b.authorizeDispatch?.(),b.assertActive?.(),b.signal?.aborted||r))throw Error("Model probe cancelled");q=!0,d=("https:"===h.protocol?j.request:i.request)(h,{method:a.method,headers:k,agent:!1});let l=Promise.withResolvers();e=l.promise,d.once("close",()=>l.resolve()),d.on("socket",s),d.on("error",()=>{c.headersSent?c.destroy():(c.writeHead(502,{connection:"close"}),c.end())}),d.on("response",a=>{if(a.on("error",()=>c.destroy()),a.statusCode&&a.statusCode>=300&&a.statusCode<400){c.writeHead(502,{connection:"close"}),c.end(),a.destroy();return}c.writeHead(a.statusCode??502,a.statusMessage,a.rawHeaders),a.pipe(c),c.once("close",()=>a.destroy())}),a.on("error",()=>d?.destroy()),a.once("aborted",()=>d?.destroy()),c.once("close",()=>d?.destroy()),a.pipe(d)}catch{d?.destroy(),c.writeHead(502,{connection:"close"}),c.end(),a.resume()}});t.on("connection",s),t.on("clientError",(a,b)=>b.destroy());let u=()=>{if(f)return f;r=!0,b.signal?.removeEventListener("abort",v);let a=Promise.withResolvers();for(let b of(f=a.promise,d?.destroy(),o))b.destroy();let c=Promise.withResolvers();return t.close(()=>c.resolve()),Promise.all([c.promise,e,...p]).then(()=>a.resolve()),f},v=()=>{u()},w=Promise.withResolvers();t.once("error",()=>w.reject(Error("Model probe transport unavailable"))),t.listen(0,"127.0.0.1",()=>w.resolve());try{if(await w.promise,b.signal?.addEventListener("abort",v,{once:!0}),b.signal?.aborted)throw Error("Model probe cancelled");b.assertActive?.();let a=t.address();if(!a||"string"==typeof a)throw Error("Model probe transport unavailable");return{baseUrl:`http://127.0.0.1:${a.port}${g}${l?"/":""}`,close:u}}catch{throw await u(),Error("Model probe transport unavailable")}}let l=new Set(["openai-completions","openai-responses","anthropic-messages"]),m=["ollama","llama.cpp","lm-studio","google-vertex","zenmux","vllm"],n=new Set(["moonshot","sakana","github-copilot","alibaba-token-plan","alibaba-coding-plan","ollama-cloud"]),o={disabledProviders:m,retry:{enabled:!1,maxRetries:0,modelFallback:!1,usageAwareFallback:!1,fallbackChains:{}},advisor:{enabled:!1},autolearn:{enabled:!1,autoContinue:!1},memory:{backend:"off"},memories:{enabled:!1},compaction:{enabled:!1,autoContinue:!1},ttsr:{enabled:!1},features:{unexpectedStopDetection:!1},providers:{anthropic:{serverSideFallback:!1}}};async function p(a,b={}){var c;let h,i,j,q,r,s;if("object"!=typeof a||null===a||!("confirm"in a)||!0!==a.confirm)throw new f.t0("connectivity_confirmation_required","Confirm the provider and model connection test and possible charges first");b.assertActive?.();let t=(0,f.iw)(a),{providerName:u,modelId:v}=t,w=structuredClone(t.candidate),x=w.providers[u],y=x.models[0],z=y.api??x.api;if("string"!=typeof z||!l.has(z)||m.includes(u)||n.has(u))throw new f.t0("connectivity_unsupported","Live checks support OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages APIs with isolated endpoint routing. This API or native provider identity is not supported; configuration checks remain available.");let A=[x.apiKey,...Object.values(x.headers??{}),...Object.values(y.headers??{})].filter(a=>"string"==typeof a&&a.length>0);if("oauth"===x.auth||A.some(a=>a.startsWith("!")||/^[A-Z_][A-Z0-9_]*$/.test(a)))throw new f.t0("connectivity_credential_method_unsupported","Supply literal candidate credentials; saved authentication, environment references, and credential commands are not used");let B=(c=y.baseUrl??x.baseUrl,(s=new URL(c)).pathname=s.pathname.replace(/\/+$/,""),"anthropic-messages"===z&&s.pathname.endsWith("/v1")&&(s.pathname=s.pathname.slice(0,-3)),"openai-completions"===z&&s.hostname.endsWith(".openai.azure.com")&&(s.pathname.includes("/deployments/")||(s.pathname=`${s.pathname.replace(/\/+$/,"")}/deployments/${encodeURIComponent(v)}`),s.searchParams.set("api-version","2024-10-21")),s),C=B.href;for(let a of B.searchParams.values())a&&A.push(a);for(let a of[B.username,B.password])if(a){A.push(a);try{A.push(decodeURIComponent(a))}catch{}}let D={};if(x.apiKey){if("anthropic-messages"===z&&x.apiKey.includes("sk-ant-oat"))throw new f.t0("connectivity_credential_method_unsupported","OAuth credentials cannot be safely tested in this isolated probe");let a="anthropic-messages"===z?"x-api-key":"authorization";for(let[b,c]of(D[a]="anthropic-messages"===z?x.apiKey:`Bearer ${x.apiKey}`,Object.entries({...x.headers,...y.headers})))b.toLowerCase()===a&&(D[a]=c)}let E=Date.now(),F=new AbortController,G=Promise.withResolvers();G.promise.catch(()=>{});let H=!1,I=Math.min(Math.max(b.timeoutMs??3e4,1),3e4),J=(a,b)=>{G.reject(new f.t0(a,b,Date.now()-E)),F.abort()},K=()=>J("connectivity_cancelled","Model connection test cancelled");b.signal?.addEventListener("abort",K,{once:!0});let L=setTimeout(()=>J("connectivity_timeout","Model connection test timed out"),I),M=a=>{if(!H)return;if("message_end"===a.type&&"object"==typeof a.message&&null!==a.message&&"role"in a.message&&"assistant"===a.message.role&&((r=a.message).provider!==u||r.model!==v))return void J("connectivity_model_mismatch","The selected provider and model did not produce the completion");if("agent_end"!==a.type||!1===a.isTerminal)return;if(Array.isArray(a.messages)){for(let b of a.messages)if("object"==typeof b&&null!==b&&"role"in b&&"assistant"===b.role){if(b.provider!==u||b.model!==v)return void J("connectivity_model_mismatch","The selected provider and model did not produce the completion");r=b}}if(!r||r.provider!==u||r.model!==v)return void J("connectivity_model_mismatch","The selected provider and model did not produce the completion");if("stop"!==r.stopReason&&"length"!==r.stopReason)return 401===r.errorStatus||403===r.errorStatus?void J("connectivity_auth_required","The provider rejected the submitted credentials; saved authentication is not used"):void J("connectivity_failed","The provider did not complete the connection test successfully");let b="";if(Array.isArray(r.content))for(let a of r.content)"object"==typeof a&&null!==a&&"text"===a.type&&"string"==typeof a.text&&(b+=a.text);if(!b.trim())return void J("connectivity_failed","The provider returned no assistant text");for(let a of A)b=b.replaceAll(a,"[redacted]");let c={};if("object"==typeof r.usage&&null!==r.usage)for(let[a,b]of Object.entries(r.usage))("input"===a||"output"===a||"totalTokens"===a)&&"number"==typeof b&&Number.isFinite(b)&&b>=0&&(c[a]=b);G.resolve({ok:!0,latencyMs:Date.now()-E,responseText:b.slice(0,2048),...Object.keys(c).length?{usage:c}:{}})};try{b.signal?.aborted&&K(),q=(async()=>{if(F.signal.aborted||(j=await k(C,{upstreamHeaders:D,expectedPath:"openai-completions"===z?"/chat/completions":"openai-responses"===z?"/responses":"/v1/messages",assertActive:b.assertActive,authorizeDispatch:()=>{if(b.assertActive?.(),!H)throw new f.t0("connectivity_failed","The model probe is not ready to dispatch")},signal:F.signal}),b.assertActive?.(),F.signal.aborted))return G.promise;for(let a of(x.baseUrl=j.baseUrl,x.auth="none",delete x.apiKey,["modelOverrides","discovery","transport","remoteCompaction","contextPromotionTarget","compactionModel"]))delete x[a];for(let a of["remoteCompaction","contextPromotionTarget","compactionModel"])delete y[a];y.baseUrl=j.baseUrl,y.maxTokens=Math.max(1,Math.floor(Math.min(y.maxTokens??32,32))),y.reasoning=!1,y.omitMaxOutputTokens=!1,y.compat={...x.compat,...y.compat,alwaysSendMaxTokens:!0},delete y.compat.extraBody,delete y.compat.whenThinking,x.compat=y.compat,h=(0,f.zV)(w);let a=(0,e.join)(h,"probe-settings.json");(0,d.writeFileSync)(a,JSON.stringify(o),{mode:384});let c={};for(let a of Object.keys(process.env))c[a]="";Object.assign(c,{PATH:process.env.PATH??"",HOME:h,TMPDIR:h,PI_CODING_AGENT_DIR:h,OMP_PROFILE:"",PI_PROFILE:"",XDG_DATA_HOME:h,XDG_CONFIG_HOME:h}),i=(b.createProcess??(a=>new g.X(a)))({cwd:h,env:c,extraArgs:["--no-session","--no-tools","--no-lsp","--no-pty","--no-extensions","--no-skills","--no-rules","--no-title","--no-prewalk","--provider",u,"--model",v,"--config",a,"--system-prompt","Reply briefly.","--thinking","off"],onFrame:M,onExit:()=>J("connectivity_failed","Model connection process exited before completion")});let l=await i.waitReady(I);if(F.signal.aborted||(await i.negotiateProtocol(l),F.signal.aborted))return G.promise;let m=await i.sendCommand({type:"set_model",provider:u,modelId:v},I);if("object"!=typeof m||null===m||!("provider"in m)||m.provider!==u||!("id"in m)||m.id!==v)throw new f.t0("connectivity_model_mismatch","The requested provider and model could not be selected",Date.now()-E);return await i.sendCommand({type:"set_auto_retry",enabled:!1},I),await i.sendCommand({type:"set_auto_compaction",enabled:!1},I),b.assertActive?.(),F.signal.aborted||(H=!0,await i.sendCommand({type:"prompt",message:"Reply with OK."},I)),G.promise})();let a=await Promise.race([q,G.promise]);return b.assertActive?.(),a}catch(a){if(a instanceof f.t0)throw a;throw new f.t0("connectivity_failed","Model connection test failed; check the submitted endpoint and credentials",Date.now()-E)}finally{clearTimeout(L),b.signal?.removeEventListener("abort",K),F.abort();try{try{await i?.dispose(),await q?.catch(()=>{})}finally{try{await j?.close()}finally{h&&(0,d.rmSync)(h,{recursive:!0,force:!0})}}}catch{throw new f.t0("connectivity_failed","Model connection cleanup failed",Date.now()-E)}}}},20553:(a,b,c)=>{"use strict";let d;c.d(b,{l:()=>d4,$:()=>d7});var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I={};c.r(I),c.d(I,{boolean:()=>aw,booleanish:()=>ax,commaOrSpaceSeparated:()=>aC,commaSeparated:()=>aB,number:()=>az,overloadedBoolean:()=>ay,spaceSeparated:()=>aA});var J=c(51998),K=c(73024),L=c(76760);function M(a){if(a)throw a}var N=c(92761);function O(a){if("object"!=typeof a||null===a)return!1;let b=Object.getPrototypeOf(a);return(null===b||b===Object.prototype||null===Object.getPrototypeOf(b))&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)}function P(a){return R(a&&a.line)+":"+R(a&&a.column)}function Q(a){return P(a&&a.start)+"-"+P(a&&a.end)}function R(a){return a&&"number"==typeof a?a:1}class S extends Error{constructor(a,b,c){super(),"string"==typeof b&&(c=b,b=void 0);let d="",e={},f=!1;if(b&&(e="line"in b&&"column"in b||"start"in b&&"end"in b?{place:b}:"type"in b?{ancestors:[b],place:b.position}:{...b}),"string"==typeof a?d=a:!e.cause&&a&&(f=!0,d=a.message,e.cause=a),!e.ruleId&&!e.source&&"string"==typeof c){const a=c.indexOf(":");-1===a?e.ruleId=c:(e.source=c.slice(0,a),e.ruleId=c.slice(a+1))}if(!e.place&&e.ancestors&&e.ancestors){const a=e.ancestors[e.ancestors.length-1];a&&(e.place=a.position)}const g=e.place&&"start"in e.place?e.place.start:e.place;this.ancestors=e.ancestors||void 0,this.cause=e.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=g?g.line:void 0,this.name=function(a){return a&&"object"==typeof a?"position"in a||"type"in a?Q(a.position):"start"in a||"end"in a?Q(a):"line"in a||"column"in a?P(a):"":""}(e.place)||"1:1",this.place=e.place||void 0,this.reason=this.message,this.ruleId=e.ruleId||void 0,this.source=e.source||void 0,this.stack=f&&e.cause&&"string"==typeof e.cause.stack?e.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}S.prototype.file="",S.prototype.name="",S.prototype.reason="",S.prototype.message="",S.prototype.stack="",S.prototype.column=void 0,S.prototype.line=void 0,S.prototype.ancestors=void 0,S.prototype.cause=void 0,S.prototype.fatal=void 0,S.prototype.place=void 0,S.prototype.ruleId=void 0,S.prototype.source=void 0;var T=c(1708);function U(a){return!!(null!==a&&"object"==typeof a&&"href"in a&&a.href&&"protocol"in a&&a.protocol&&void 0===a.auth)}var V=c(73136);let W=["history","path","basename","stem","extname","dirname"];class X{constructor(a){let b,c;b=a?U(a)?{path:a}:"string"==typeof a||function(a){return!!(a&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a)}(a)?{value:a}:a:{},this.cwd="cwd"in b?"":T.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let d=-1;for(;++d<W.length;){const a=W[d];a in b&&void 0!==b[a]&&null!==b[a]&&(this[a]="history"===a?[...b[a]]:b[a])}for(c in b)W.includes(c)||(this[c]=b[c])}get basename(){return"string"==typeof this.path?L.basename(this.path):void 0}set basename(a){Z(a,"basename"),Y(a,"basename"),this.path=L.join(this.dirname||"",a)}get dirname(){return"string"==typeof this.path?L.dirname(this.path):void 0}set dirname(a){$(this.basename,"dirname"),this.path=L.join(a||"",this.basename)}get extname(){return"string"==typeof this.path?L.extname(this.path):void 0}set extname(a){if(Y(a,"extname"),$(this.dirname,"extname"),a){if(46!==a.codePointAt(0))throw Error("`extname` must start with `.`");if(a.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=L.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){U(a)&&(a=(0,V.fileURLToPath)(a)),Z(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return"string"==typeof this.path?L.basename(this.path,this.extname):void 0}set stem(a){Z(a,"stem"),Y(a,"stem"),this.path=L.join(this.dirname||"",a+(this.extname||""))}fail(a,b,c){let d=this.message(a,b,c);throw d.fatal=!0,d}info(a,b,c){let d=this.message(a,b,c);return d.fatal=void 0,d}message(a,b,c){let d=new S(a,b,c);return this.path&&(d.name=this.path+":"+d.name,d.file=this.path),d.fatal=!1,this.messages.push(d),d}toString(a){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Y(a,b){if(a&&a.includes(L.sep))throw Error("`"+b+"` cannot be a path: did not expect `"+L.sep+"`")}function Z(a,b){if(!a)throw Error("`"+b+"` cannot be empty")}function $(a,b){if(!a)throw Error("Setting `"+b+"` requires `path` to be set too")}let _=function(a){let b=this.constructor.prototype,c=b[a],d=function(){return c.apply(d,arguments)};return Object.setPrototypeOf(d,b),d},aa={}.hasOwnProperty;class ab extends _{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let a=[],b={run:function(...b){let c=-1,d=b.pop();if("function"!=typeof d)throw TypeError("Expected function as last argument, not "+d);!function e(f,...g){let h=a[++c],i=-1;if(f)return void d(f);for(;++i<b.length;)(null===g[i]||void 0===g[i])&&(g[i]=b[i]);b=g,h?(function(a,b){let c;return function(...b){let f,g=a.length>b.length;g&&b.push(d);try{f=a.apply(this,b)}catch(a){if(g&&c)throw a;return d(a)}g||(f&&f.then&&"function"==typeof f.then?f.then(e,d):f instanceof Error?d(f):e(f))};function d(a,...e){c||(c=!0,b(a,...e))}function e(a){d(null,a)}})(h,e)(...g):d(null,...g)}(null,...b)},use:function(c){if("function"!=typeof c)throw TypeError("Expected `middelware` to be a function, not "+c);return a.push(c),b}};return b}()}copy(){let a=new ab,b=-1;for(;++b<this.attachers.length;){let c=this.attachers[b];a.use(...c)}return a.data(N(!0,{},this.namespace)),a}data(a,b){return"string"==typeof a?2==arguments.length?(af("data",this.frozen),this.namespace[a]=b,this):aa.call(this.namespace,a)&&this.namespace[a]||void 0:a?(af("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[a,...b]=this.attachers[this.freezeIndex];if(!1===b[0])continue;!0===b[0]&&(b[0]=void 0);let c=a.call(this,...b);"function"==typeof c&&this.transformers.use(c)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(a){this.freeze();let b=ai(a),c=this.parser||this.Parser;return ad("parse",c),c(String(b),b)}process(a,b){let c=this;return this.freeze(),ad("process",this.parser||this.Parser),ae("process",this.compiler||this.Compiler),b?d(void 0,b):new Promise(d);function d(d,e){let f=ai(a),g=c.parse(f);function h(a,c){a||!c?e(a):d?d(c):b(void 0,c)}c.run(g,f,function(a,b,d){var e,f;if(a||!b||!d)return h(a);let g=c.stringify(b,d);"string"==typeof(e=g)||(f=e)&&"object"==typeof f&&"byteLength"in f&&"byteOffset"in f?d.value=g:d.result=g,h(a,d)})}}processSync(a){let b,c=!1;return this.freeze(),ad("processSync",this.parser||this.Parser),ae("processSync",this.compiler||this.Compiler),this.process(a,function(a,d){c=!0,M(a),b=d}),ah("processSync","process",c),b}run(a,b,c){ag(a),this.freeze();let d=this.transformers;return c||"function"!=typeof b||(c=b,b=void 0),c?e(void 0,c):new Promise(e);function e(e,f){let g=ai(b);d.run(a,g,function(b,d,g){let h=d||a;b?f(b):e?e(h):c(void 0,h,g)})}}runSync(a,b){let c,d=!1;return this.run(a,b,function(a,b){M(a),c=b,d=!0}),ah("runSync","run",d),c}stringify(a,b){this.freeze();let c=ai(b),d=this.compiler||this.Compiler;return ae("stringify",d),ag(a),d(a,c)}use(a,...b){let c=this.attachers,d=this.namespace;if(af("use",this.frozen),null==a);else if("function"==typeof a)g(a,b);else if("object"==typeof a)Array.isArray(a)?f(a):e(a);else throw TypeError("Expected usable value, not `"+a+"`");return this;function e(a){if(!("plugins"in a)&&!("settings"in a))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(a.plugins),a.settings&&(d.settings=N(!0,d.settings,a.settings))}function f(a){let b=-1;if(null==a);else if(Array.isArray(a))for(;++b<a.length;)!function(a){if("function"==typeof a)g(a,[]);else if("object"==typeof a)if(Array.isArray(a)){let[b,...c]=a;g(b,c)}else e(a);else throw TypeError("Expected usable value, not `"+a+"`")}(a[b]);else throw TypeError("Expected a list of plugins, not `"+a+"`")}function g(a,b){let d=-1,e=-1;for(;++d<c.length;)if(c[d][0]===a){e=d;break}if(-1===e)c.push([a,...b]);else if(b.length>0){let[d,...f]=b,g=c[e][1];O(g)&&O(d)&&(d=N(!0,g,d)),c[e]=[a,d,...f]}}}}let ac=new ab().freeze();function ad(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `parser`")}function ae(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `compiler`")}function af(a,b){if(b)throw Error("Cannot call `"+a+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ag(a){if(!O(a)||"string"!=typeof a.type)throw TypeError("Expected node, got `"+a+"`")}function ah(a,b,c){if(!c)throw Error("`"+a+"` finished async. Use `"+b+"` instead")}function ai(a){var b;return(b=a)&&"object"==typeof b&&"message"in b&&"messages"in b?a:new X(a)}let aj="object"==typeof self?self:globalThis,ak=a=>{var b;let c,d;return(b=new Map,c=(a,c)=>(b.set(c,a),a),d=e=>{if(b.has(e))return b.get(e);let[f,g]=a[e];switch(f){case 0:case -1:return c(g,e);case 1:{let a=c([],e);for(let b of g)a.push(d(b));return a}case 2:{let a=c({},e);for(let[b,c]of g)a[d(b)]=d(c);return a}case 3:return c(new Date(g),e);case 4:{let{source:a,flags:b}=g;return c(new RegExp(a,b),e)}case 5:{let a=c(new Map,e);for(let[b,c]of g)a.set(d(b),d(c));return a}case 6:{let a=c(new Set,e);for(let b of g)a.add(d(b));return a}case 7:{let{name:a,message:b}=g;return c(new aj[a](b),e)}case 8:return c(BigInt(g),e);case"BigInt":return c(Object(BigInt(g)),e);case"ArrayBuffer":return c(new Uint8Array(g).buffer,g);case"DataView":{let{buffer:a}=new Uint8Array(g);return c(new DataView(a),g)}}return c(new aj[f](g),e)})(0)},{toString:al}={},{keys:am}=Object,an=a=>{let b=typeof a;if("object"!==b||!a)return[0,b];let c=al.call(a).slice(8,-1);switch(c){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,c]}return c.includes("Array")?[1,c]:c.includes("Error")?[7,c]:[2,c]},ao=([a,b])=>0===a&&("function"===b||"symbol"===b),ap=(a,{json:b,lossy:c}={})=>{var d,e,f;let g,h,i=[];return(d=!(b||c),e=!!b,f=new Map,g=(a,b)=>{let c=i.push(a)-1;return f.set(b,c),c},h=a=>{if(f.has(a))return f.get(a);let[b,c]=an(a);switch(b){case 0:{let e=a;switch(c){case"bigint":b=8,e=a.toString();break;case"function":case"symbol":if(d)throw TypeError("unable to serialize "+c);e=null;break;case"undefined":return g([-1],a)}return g([b,e],a)}case 1:{if(c){let b=a;return"DataView"===c?b=new Uint8Array(a.buffer):"ArrayBuffer"===c&&(b=new Uint8Array(a)),g([c,[...b]],a)}let d=[],e=g([b,d],a);for(let b of a)d.push(h(b));return e}case 2:{if(c)switch(c){case"BigInt":return g([c,a.toString()],a);case"Boolean":case"Number":case"String":return g([c,a.valueOf()],a)}if(e&&"toJSON"in a)return h(a.toJSON());let f=[],i=g([b,f],a);for(let b of am(a))(d||!ao(an(a[b])))&&f.push([h(b),h(a[b])]);return i}case 3:return g([b,a.toISOString()],a);case 4:{let{source:c,flags:d}=a;return g([b,{source:c,flags:d}],a)}case 5:{let c=[],e=g([b,c],a);for(let[b,e]of a)(d||!(ao(an(b))||ao(an(e))))&&c.push([h(b),h(e)]);return e}case 6:{let c=[],e=g([b,c],a);for(let b of a)(d||!ao(an(b)))&&c.push(h(b));return e}}let{message:i}=a;return g([b,{name:c,message:i}],a)})(a),i},aq="function"==typeof structuredClone?(a,b)=>b&&("json"in b||"lossy"in b)?ak(ap(a,b)):structuredClone(a):(a,b)=>ak(ap(a,b));class ar{constructor(a,b,c){this.normal=b,this.property=a,c&&(this.space=c)}}function as(a,b){let c={},d={};for(let b of a)Object.assign(c,b.property),Object.assign(d,b.normal);return new ar(c,d,b)}function at(a){return a.toLowerCase()}ar.prototype.normal={},ar.prototype.property={},ar.prototype.space=void 0;class au{constructor(a,b){this.attribute=b,this.property=a}}au.prototype.attribute="",au.prototype.booleanish=!1,au.prototype.boolean=!1,au.prototype.commaOrSpaceSeparated=!1,au.prototype.commaSeparated=!1,au.prototype.defined=!1,au.prototype.mustUseProperty=!1,au.prototype.number=!1,au.prototype.overloadedBoolean=!1,au.prototype.property="",au.prototype.spaceSeparated=!1,au.prototype.space=void 0;let av=0,aw=aD(),ax=aD(),ay=aD(),az=aD(),aA=aD(),aB=aD(),aC=aD();function aD(){return 2**++av}let aE=Object.keys(I);class aF extends au{constructor(a,b,c,d){let e=-1;if(super(a,b),function(a,b,c){c&&(a[b]=c)}(this,"space",d),"number"==typeof c)for(;++e<aE.length;){const a=aE[e];!function(a,b,c){c&&(a[b]=c)}(this,aE[e],(c&I[a])===I[a])}}}function aG(a){let b={},c={};for(let[d,e]of Object.entries(a.properties)){let f=new aF(d,a.transform(a.attributes||{},d),e,a.space);a.mustUseProperty&&a.mustUseProperty.includes(d)&&(f.mustUseProperty=!0),b[d]=f,c[at(d)]=d,c[at(f.attribute)]=d}return new ar(b,c,a.space)}aF.prototype.defined=!0;let aH=aG({properties:{ariaActiveDescendant:null,ariaAtomic:ax,ariaAutoComplete:null,ariaBusy:ax,ariaChecked:ax,ariaColCount:az,ariaColIndex:az,ariaColSpan:az,ariaControls:aA,ariaCurrent:null,ariaDescribedBy:aA,ariaDetails:null,ariaDisabled:ax,ariaDropEffect:aA,ariaErrorMessage:null,ariaExpanded:ax,ariaFlowTo:aA,ariaGrabbed:ax,ariaHasPopup:null,ariaHidden:ax,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:aA,ariaLevel:az,ariaLive:null,ariaModal:ax,ariaMultiLine:ax,ariaMultiSelectable:ax,ariaOrientation:null,ariaOwns:aA,ariaPlaceholder:null,ariaPosInSet:az,ariaPressed:ax,ariaReadOnly:ax,ariaRelevant:null,ariaRequired:ax,ariaRoleDescription:aA,ariaRowCount:az,ariaRowIndex:az,ariaRowSpan:az,ariaSelected:ax,ariaSetSize:az,ariaSort:null,ariaValueMax:az,ariaValueMin:az,ariaValueNow:az,ariaValueText:null,role:null},transform:(a,b)=>"role"===b?b:"aria-"+b.slice(4).toLowerCase()});function aI(a,b){return b in a?a[b]:b}function aJ(a,b){return aI(a,b.toLowerCase())}let aK=aG({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:aB,acceptCharset:aA,accessKey:aA,action:null,allow:null,allowFullScreen:aw,allowPaymentRequest:aw,allowUserMedia:aw,alt:null,as:null,async:aw,autoCapitalize:null,autoComplete:aA,autoFocus:aw,autoPlay:aw,blocking:aA,capture:null,charSet:null,checked:aw,cite:null,className:aA,cols:az,colSpan:null,content:null,contentEditable:ax,controls:aw,controlsList:aA,coords:az|aB,crossOrigin:null,data:null,dateTime:null,decoding:null,default:aw,defer:aw,dir:null,dirName:null,disabled:aw,download:ay,draggable:ax,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:aw,formTarget:null,headers:aA,height:az,hidden:ay,high:az,href:null,hrefLang:null,htmlFor:aA,httpEquiv:aA,id:null,imageSizes:null,imageSrcSet:null,inert:aw,inputMode:null,integrity:null,is:null,isMap:aw,itemId:null,itemProp:aA,itemRef:aA,itemScope:aw,itemType:aA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:aw,low:az,manifest:null,max:null,maxLength:az,media:null,method:null,min:null,minLength:az,multiple:aw,muted:aw,name:null,nonce:null,noModule:aw,noValidate:aw,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:aw,optimum:az,pattern:null,ping:aA,placeholder:null,playsInline:aw,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:aw,referrerPolicy:null,rel:aA,required:aw,reversed:aw,rows:az,rowSpan:az,sandbox:aA,scope:null,scoped:aw,seamless:aw,selected:aw,shadowRootClonable:aw,shadowRootDelegatesFocus:aw,shadowRootMode:null,shape:null,size:az,sizes:null,slot:null,span:az,spellCheck:ax,src:null,srcDoc:null,srcLang:null,srcSet:null,start:az,step:null,style:null,tabIndex:az,target:null,title:null,translate:null,type:null,typeMustMatch:aw,useMap:null,value:ax,width:az,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:aA,axis:null,background:null,bgColor:null,border:az,borderColor:null,bottomMargin:az,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:aw,declare:aw,event:null,face:null,frame:null,frameBorder:null,hSpace:az,leftMargin:az,link:null,longDesc:null,lowSrc:null,marginHeight:az,marginWidth:az,noResize:aw,noHref:aw,noShade:aw,noWrap:aw,object:null,profile:null,prompt:null,rev:null,rightMargin:az,rules:null,scheme:null,scrolling:ax,standby:null,summary:null,text:null,topMargin:az,valueType:null,version:null,vAlign:null,vLink:null,vSpace:az,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:aw,disableRemotePlayback:aw,prefix:null,property:null,results:az,security:null,unselectable:null},space:"html",transform:aJ}),aL=aG({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:aC,accentHeight:az,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:az,amplitude:az,arabicForm:null,ascent:az,attributeName:null,attributeType:null,azimuth:az,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:az,by:null,calcMode:null,capHeight:az,className:aA,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:az,diffuseConstant:az,direction:null,display:null,dur:null,divisor:az,dominantBaseline:null,download:aw,dx:null,dy:null,edgeMode:null,editable:null,elevation:az,enableBackground:null,end:null,event:null,exponent:az,externalResourcesRequired:null,fill:null,fillOpacity:az,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:aB,g2:aB,glyphName:aB,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:az,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:az,horizOriginX:az,horizOriginY:az,id:null,ideographic:az,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:az,k:az,k1:az,k2:az,k3:az,k4:az,kernelMatrix:aC,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:az,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:az,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:az,overlineThickness:az,paintOrder:null,panose1:null,path:null,pathLength:az,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:aA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:az,pointsAtY:az,pointsAtZ:az,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:aC,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:aC,rev:aC,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:aC,requiredFeatures:aC,requiredFonts:aC,requiredFormats:aC,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:az,specularExponent:az,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:az,strikethroughThickness:az,string:null,stroke:null,strokeDashArray:aC,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:az,strokeOpacity:az,strokeWidth:null,style:null,surfaceScale:az,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:aC,tabIndex:az,tableValues:null,target:null,targetX:az,targetY:az,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:aC,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:az,underlineThickness:az,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:az,values:null,vAlphabetic:az,vMathematical:az,vectorEffect:null,vHanging:az,vIdeographic:az,version:null,vertAdvY:az,vertOriginX:az,vertOriginY:az,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:az,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:aI}),aM=aG({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(a,b)=>"xlink:"+b.slice(5).toLowerCase()}),aN=aG({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:aJ}),aO=aG({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(a,b)=>"xml:"+b.slice(3).toLowerCase()}),aP=as([aH,aK,aM,aN,aO],"html"),aQ=as([aH,aL,aM,aN,aO],"svg");function aR(a){let b=[],c=String(a||""),d=c.indexOf(","),e=0,f=!1;for(;!f;){-1===d&&(d=c.length,f=!0);let a=c.slice(e,d).trim();(a||!f)&&b.push(a),e=d+1,d=c.indexOf(",",e)}return b}function aS(a,b){let c=b||{};return(""===a[a.length-1]?[...a,""]:a).join((c.padRight?" ":"")+","+(!1===c.padLeft?"":" ")).trim()}let aT=/[#.]/g,aU=/[A-Z]/g,aV=/-[a-z]/g,aW=/^data[-\w.:]+$/i;function aX(a,b){let c=at(b),d=b,e=au;if(c in a.normal)return a.property[a.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&aW.test(b)){if("-"===b.charAt(4)){let a=b.slice(5).replace(aV,aZ);d="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=b.slice(4);if(!aV.test(a)){let c=a.replace(aU,aY);"-"!==c.charAt(0)&&(c="-"+c),b="data"+c}}e=aF}return new e(d,b)}function aY(a){return"-"+a.toLowerCase()}function aZ(a){return a.charAt(1).toUpperCase()}function a$(a){let b=String(a||"").trim();return b?b.split(/[ \t\n\r\f]+/g):[]}function a_(a){return a.join(" ").trim()}function a0(a,b,c){let d=c?function(a){let b=new Map;for(let c of a)b.set(c.toLowerCase(),c);return b}(c):void 0;return function(c,e,...f){let g;if(null==c)g={type:"root",children:[]},f.unshift(e);else{let h=(g=function(a,b){let c,d,e=a||"",f={},g=0;for(;g<e.length;){aT.lastIndex=g;let a=aT.exec(e),b=e.slice(g,a?a.index:e.length);b&&(c?"#"===c?f.id=b:Array.isArray(f.className)?f.className.push(b):f.className=[b]:d=b,g+=b.length),a&&(c=a[0],g++)}return{type:"element",tagName:d||b||"div",properties:f,children:[]}}(c,b)).tagName.toLowerCase(),i=d?d.get(h):void 0;if(g.tagName=i||h,function(a){if(null===a||"object"!=typeof a||Array.isArray(a))return!0;if("string"!=typeof a.type)return!1;for(let b of Object.keys(a)){let c=a[b];if(c&&"object"==typeof c){if(!Array.isArray(c))return!0;for(let a of c)if("number"!=typeof a&&"string"!=typeof a)return!0}}return!!("children"in a&&Array.isArray(a.children))}(e))f.unshift(e);else for(let[b,c]of Object.entries(e))!function(a,b,c,d){let e,f=aX(a,c);if(null!=d){if("number"==typeof d){if(Number.isNaN(d))return;e=d}else e="boolean"==typeof d?d:"string"==typeof d?f.spaceSeparated?a$(d):f.commaSeparated?aR(d):f.commaOrSpaceSeparated?a$(aR(d).join(" ")):a1(f,f.property,d):Array.isArray(d)?[...d]:"style"===f.property?function(a){let b=[];for(let[c,d]of Object.entries(a))b.push([c,d].join(": "));return b.join("; ")}(d):String(d);if(Array.isArray(e)){let a=[];for(let b of e)a.push(a1(f,f.property,b));e=a}"className"===f.property&&Array.isArray(b.className)&&(e=b.className.concat(e)),b[f.property]=e}}(a,g.properties,b,c)}for(let a of f)!function a(b,c){if(null==c);else if("number"==typeof c||"string"==typeof c)b.push({type:"text",value:String(c)});else if(Array.isArray(c))for(let d of c)a(b,d);else if("object"==typeof c&&"type"in c)"root"===c.type?a(b,c.children):b.push(c);else throw Error("Expected node, nodes, or string, got `"+c+"`")}(g.children,a);return"element"===g.type&&"template"===g.tagName&&(g.content={type:"root",children:g.children},g.children=[]),g}}function a1(a,b,c){if("string"==typeof c){if(a.number&&c&&!Number.isNaN(Number(c)))return Number(c);if((a.boolean||a.overloadedBoolean)&&(""===c||at(c)===at(b)))return!0}return c}let a2=a0(aP,"div"),a3=a0(aQ,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function a4(a,b){let c=a.indexOf("\r",b),d=a.indexOf("\n",b);return -1===d?c:-1===c||c+1===d?d:c<d?c:d}let a5={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},a6={}.hasOwnProperty,a7=Object.prototype;function a8(a,b){let c;switch(b.nodeName){case"#comment":return c={type:"comment",value:b.data},ba(a,b,c),c;case"#document":case"#document-fragment":{let d="mode"in b&&("quirks"===b.mode||"limited-quirks"===b.mode);if(c={type:"root",children:a9(a,b.childNodes),data:{quirksMode:d}},a.file&&a.location){let b,d,e=String(a.file),f=(b=String(e),d=[],{toOffset:function(a){if(a&&"number"==typeof a.line&&"number"==typeof a.column&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;d.length<a.line;){let a=d[d.length-1],c=a4(b,a),e=-1===c?b.length+1:c+1;if(a===e)break;d.push(e)}let c=(a.line>1?d[a.line-2]:0)+a.column-1;if(c<d[a.line-1])return c}},toPoint:function(a){if("number"==typeof a&&a>-1&&a<=b.length){let c=0;for(;;){let e=d[c];if(void 0===e){let a=a4(b,d[c-1]);e=-1===a?b.length+1:a+1,d[c]=e}if(e>a)return{line:c+1,column:a-(c>0?d[c-1]:0)+1,offset:a};c++}}}}),g=f.toPoint(0),h=f.toPoint(e.length);c.position={start:g,end:h}}return c}case"#documentType":return ba(a,b,c={type:"doctype"}),c;case"#text":return c={type:"text",value:b.value},ba(a,b,c),c;default:return function(a,b){let c=a.schema;a.schema=b.namespaceURI===a5.svg?aQ:aP;let d=-1,e={};for(;++d<b.attrs.length;){let a=b.attrs[d],c=(a.prefix?a.prefix+":":"")+a.name;a6.call(a7,c)||(e[c]=a.value)}let f=("svg"===a.schema.space?a3:a2)(b.tagName,e,a9(a,b.childNodes));if(ba(a,b,f),"template"===f.tagName){let c=b.sourceCodeLocation,d=c&&c.startTag&&bb(c.startTag),e=c&&c.endTag&&bb(c.endTag),g=a8(a,b.content);d&&e&&a.file&&(g.position={start:d.end,end:e.start}),f.content=g}return a.schema=c,f}(a,b)}}function a9(a,b){let c=-1,d=[];for(;++c<b.length;){let e=a8(a,b[c]);d.push(e)}return d}function ba(a,b,c){if("sourceCodeLocation"in b&&b.sourceCodeLocation&&a.file){let d=function(a,b,c){let d=bb(c);if("element"===b.type){let e=b.children[b.children.length-1];if(d&&!c.endTag&&e&&e.position&&e.position.end&&(d.end=Object.assign({},e.position.end)),a.verbose){let d,e={};if(c.attrs)for(d in c.attrs)a6.call(c.attrs,d)&&(e[aX(a.schema,d).property]=bb(c.attrs[d]));c.startTag;let f=bb(c.startTag),g=c.endTag?bb(c.endTag):void 0,h={opening:f};g&&(h.closing=g),h.properties=e,b.data={position:h}}}return d}(a,c,b.sourceCodeLocation);d&&(a.location=!0,c.position=d)}}function bb(a){let b=bc({line:a.startLine,column:a.startCol,offset:a.startOffset}),c=bc({line:a.endLine,column:a.endCol,offset:a.endOffset});return b||c?{start:b,end:c}:void 0}function bc(a){return a.line&&a.column?a:void 0}let bd={}.hasOwnProperty;function be(a,b){let c=b||{};function d(b,...c){let e=d.invalid,f=d.handlers;if(b&&bd.call(b,a)){let c=String(b[a]);e=bd.call(f,c)?f[c]:d.unknown}if(e)return e.call(this,b,...c)}return d.handlers=c.handlers||{},d.invalid=c.invalid,d.unknown=c.unknown,d}let bf={}.hasOwnProperty,bg=be("type",{handlers:{root:function(a,b){let c={nodeName:"#document",mode:(a.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return c.childNodes=bh(a.children,c,b),bi(a,c),c},element:function(a,b){var c,d;let e,f,g=b;"element"===a.type&&"svg"===a.tagName.toLowerCase()&&"html"===b.space&&(g=aQ);let h=[];if(a.properties){for(e in a.properties)if("children"!==e&&bf.call(a.properties,e)){let b=function(a,b,c){let d=aX(a,b);if(!1===c||null==c||"number"==typeof c&&Number.isNaN(c)||!c&&d.boolean)return;Array.isArray(c)&&(c=d.commaSeparated?aS(c):a_(c));let e={name:d.attribute,value:!0===c?"":String(c)};if(d.space&&"html"!==d.space&&"svg"!==d.space){let a=e.name.indexOf(":");a<0?e.prefix="":(e.name=e.name.slice(a+1),e.prefix=d.attribute.slice(0,a)),e.namespace=a5[d.space]}return e}(g,e,a.properties[e]);b&&h.push(b)}}let i=g.space,j={nodeName:a.tagName,tagName:a.tagName,attrs:h,namespaceURI:a5[i],childNodes:[],parentNode:null};return j.childNodes=bh(a.children,j,g),bi(a,j),"template"===a.tagName&&a.content&&(c=a.content,d=g,(f={nodeName:"#document-fragment",childNodes:[]}).childNodes=bh(c.children,f,d),bi(c,f),j.content=f),j},text:function(a){let b={nodeName:"#text",value:a.value,parentNode:null};return bi(a,b),b},comment:function(a){let b={nodeName:"#comment",data:a.value,parentNode:null};return bi(a,b),b},doctype:function(a){let b={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return bi(a,b),b}}});function bh(a,b,c){let d=-1,e=[];if(a)for(;++d<a.length;){let f=bg(a[d],c);f.parentNode=b,e.push(f)}return e}function bi(a,b){let c=a.position;c&&c.start&&c.end&&(c.start.offset,c.end.offset,b.sourceCodeLocation={startLine:c.start.line,startCol:c.start.column,startOffset:c.start.offset,endLine:c.end.line,endCol:c.end.column,endOffset:c.end.offset})}let bj=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],bk=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(e=t||(t={}))[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let bl="[CDATA[",bm="doctype",bn="script";function bo(a){return a>=55296&&a<=57343}function bp(a){return 32!==a&&10!==a&&13!==a&&9!==a&&12!==a&&a>=1&&a<=31||a>=127&&a<=159}function bq(a){return a>=64976&&a<=65007||bk.has(a)}(f=u||(u={})).controlCharacterInInputStream="control-character-in-input-stream",f.noncharacterInInputStream="noncharacter-in-input-stream",f.surrogateInInputStream="surrogate-in-input-stream",f.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",f.endTagWithAttributes="end-tag-with-attributes",f.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",f.unexpectedSolidusInTag="unexpected-solidus-in-tag",f.unexpectedNullCharacter="unexpected-null-character",f.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",f.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",f.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",f.missingEndTagName="missing-end-tag-name",f.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",f.unknownNamedCharacterReference="unknown-named-character-reference",f.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",f.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",f.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",f.eofBeforeTagName="eof-before-tag-name",f.eofInTag="eof-in-tag",f.missingAttributeValue="missing-attribute-value",f.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",f.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",f.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",f.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",f.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",f.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",f.missingDoctypePublicIdentifier="missing-doctype-public-identifier",f.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",f.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",f.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",f.cdataInHtmlContent="cdata-in-html-content",f.incorrectlyOpenedComment="incorrectly-opened-comment",f.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",f.eofInDoctype="eof-in-doctype",f.nestedComment="nested-comment",f.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",f.eofInComment="eof-in-comment",f.incorrectlyClosedComment="incorrectly-closed-comment",f.eofInCdata="eof-in-cdata",f.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",f.nullCharacterReference="null-character-reference",f.surrogateCharacterReference="surrogate-character-reference",f.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",f.controlCharacterReference="control-character-reference",f.noncharacterCharacterReference="noncharacter-character-reference",f.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",f.missingDoctypeName="missing-doctype-name",f.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",f.duplicateAttribute="duplicate-attribute",f.nonConformingDoctype="non-conforming-doctype",f.missingDoctype="missing-doctype",f.misplacedDoctype="misplaced-doctype",f.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",f.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",f.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",f.openElementsLeftAfterEof="open-elements-left-after-eof",f.abandonedHeadElementChild="abandoned-head-element-child",f.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",f.nestedNoscriptInHead="nested-noscript-in-head",f.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class br{constructor(a){this.handler=a,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(a,b){let{line:c,col:d,offset:e}=this,f=d+b,g=e+b;return{code:a,startLine:c,endLine:c,startCol:f,endCol:f,startOffset:g,endOffset:g}}_err(a){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(a,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(a){if(this.pos!==this.html.length-1){let b=this.html.charCodeAt(this.pos+1);if(b>=56320&&b<=57343)return this.pos++,this._addGap(),(a-55296)*1024+9216+b}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,t.EOF;return this._err(u.surrogateInInputStream),a}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(a,b){this.html.length>0?this.html+=a:this.html=a,this.endOfChunkHit=!1,this.lastChunkWritten=b}insertHtmlAtCurrentPos(a){this.html=this.html.substring(0,this.pos+1)+a+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(a,b){if(this.pos+a.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(b)return this.html.startsWith(a,this.pos);for(let b=0;b<a.length;b++)if((32|this.html.charCodeAt(this.pos+b))!==a.charCodeAt(b))return!1;return!0}peek(a){let b=this.pos+a;if(b>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,t.EOF;let c=this.html.charCodeAt(b);return c===t.CARRIAGE_RETURN?t.LINE_FEED:c}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,t.EOF;let a=this.html.charCodeAt(this.pos);return a===t.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,t.LINE_FEED):a===t.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,bo(a)&&(a=this._processSurrogate(a)),null===this.handler.onParseError||a>31&&a<127||a===t.LINE_FEED||a===t.CARRIAGE_RETURN||a>159&&a<64976||this._checkForProblematicCharacters(a),a)}_checkForProblematicCharacters(a){bp(a)?this._err(u.controlCharacterInInputStream):bq(a)&&this._err(u.noncharacterInInputStream)}retreat(a){for(this.pos-=a;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function bs(a,b){for(let c=a.attrs.length-1;c>=0;c--)if(a.attrs[c].name===b)return a.attrs[c].value;return null}(g=v||(v={}))[g.CHARACTER=0]="CHARACTER",g[g.NULL_CHARACTER=1]="NULL_CHARACTER",g[g.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",g[g.START_TAG=3]="START_TAG",g[g.END_TAG=4]="END_TAG",g[g.COMMENT=5]="COMMENT",g[g.DOCTYPE=6]="DOCTYPE",g[g.EOF=7]="EOF",g[g.HIBERNATION=8]="HIBERNATION";let bt=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegra\xecȹoɴ\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2JTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦\xeberyThi\xeetedĀGLଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻\xd3䃓Āiyීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬืde耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCACBEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbbpArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;eᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fgcostuvwឍឝឳេ៕៛ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t\xbbpƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ\0\0aĀ;t䀬;䁀ƀ;fl戁\xeeᅠeĀmxent\xbbe\xf3ɍǧ\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍r\xf2ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴo\xf4ĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0pro\xf8r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xedistĀ;sடr;쀀\uD835\uDD2BȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lan\xf4i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lle\xecl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;cⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀\uD835\uDD2Cͯ\0\0\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨr\xf2᪀Āirⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀\xb6;l䂶le\xecЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴\xefrel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⋢⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2a\xf2Ց;怏oustĀ;a㈞掱che\xbbmid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫwar;椪lig耻\xdf䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xebƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8im\xbbኬs\xf0ኞĀas㚺㚮\xf0rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(a=>a.charCodeAt(0))),bu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function bv(a){return a>=w.ZERO&&a<=w.NINE}(h=w||(w={}))[h.NUM=35]="NUM",h[h.SEMI=59]="SEMI",h[h.EQUALS=61]="EQUALS",h[h.ZERO=48]="ZERO",h[h.NINE=57]="NINE",h[h.LOWER_A=97]="LOWER_A",h[h.LOWER_F=102]="LOWER_F",h[h.LOWER_X=120]="LOWER_X",h[h.LOWER_Z=122]="LOWER_Z",h[h.UPPER_A=65]="UPPER_A",h[h.UPPER_F=70]="UPPER_F",h[h.UPPER_Z=90]="UPPER_Z",(i=x||(x={}))[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE",(j=y||(y={}))[j.EntityStart=0]="EntityStart",j[j.NumericStart=1]="NumericStart",j[j.NumericDecimal=2]="NumericDecimal",j[j.NumericHex=3]="NumericHex",j[j.NamedEntity=4]="NamedEntity",(k=z||(z={}))[k.Legacy=0]="Legacy",k[k.Strict=1]="Strict",k[k.Attribute=2]="Attribute";class bw{constructor(a,b,c){this.decodeTree=a,this.emitCodePoint=b,this.errors=c,this.state=y.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=z.Strict}startEntity(a){this.decodeMode=a,this.state=y.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(a,b){switch(this.state){case y.EntityStart:if(a.charCodeAt(b)===w.NUM)return this.state=y.NumericStart,this.consumed+=1,this.stateNumericStart(a,b+1);return this.state=y.NamedEntity,this.stateNamedEntity(a,b);case y.NumericStart:return this.stateNumericStart(a,b);case y.NumericDecimal:return this.stateNumericDecimal(a,b);case y.NumericHex:return this.stateNumericHex(a,b);case y.NamedEntity:return this.stateNamedEntity(a,b)}}stateNumericStart(a,b){return b>=a.length?-1:(32|a.charCodeAt(b))===w.LOWER_X?(this.state=y.NumericHex,this.consumed+=1,this.stateNumericHex(a,b+1)):(this.state=y.NumericDecimal,this.stateNumericDecimal(a,b))}addToNumericResult(a,b,c,d){if(b!==c){let e=c-b;this.result=this.result*Math.pow(d,e)+Number.parseInt(a.substr(b,e),d),this.consumed+=e}}stateNumericHex(a,b){let c=b;for(;b<a.length;){var d;let e=a.charCodeAt(b);if(!bv(e)&&(!((d=e)>=w.UPPER_A)||!(d<=w.UPPER_F))&&(!(d>=w.LOWER_A)||!(d<=w.LOWER_F)))return this.addToNumericResult(a,c,b,16),this.emitNumericEntity(e,3);b+=1}return this.addToNumericResult(a,c,b,16),-1}stateNumericDecimal(a,b){let c=b;for(;b<a.length;){let d=a.charCodeAt(b);if(!bv(d))return this.addToNumericResult(a,c,b,10),this.emitNumericEntity(d,2);b+=1}return this.addToNumericResult(a,c,b,10),-1}emitNumericEntity(a,b){var c,d,e;if(this.consumed<=b)return null==(c=this.errors)||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(a===w.SEMI)this.consumed+=1;else if(this.decodeMode===z.Strict)return 0;return this.emitCodePoint((d=this.result)>=55296&&d<=57343||d>1114111?65533:null!=(e=bu.get(d))?e:d,this.consumed),this.errors&&(a!==w.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(a,b){let{decodeTree:c}=this,d=c[this.treeIndex],e=(d&x.VALUE_LENGTH)>>14;for(;b<a.length;b++,this.excess++){let f=a.charCodeAt(b);if(this.treeIndex=function(a,b,c,d){let e=(b&x.BRANCH_LENGTH)>>7,f=b&x.JUMP_TABLE;if(0===e)return 0!==f&&d===f?c:-1;if(f){let b=d-f;return b<0||b>=e?-1:a[c+b]-1}let g=c,h=g+e-1;for(;g<=h;){let b=g+h>>>1,c=a[b];if(c<d)g=b+1;else{if(!(c>d))return a[b+e];h=b-1}}return -1}(c,d,this.treeIndex+Math.max(1,e),f),this.treeIndex<0)return 0===this.result||this.decodeMode===z.Attribute&&(0===e||function(a){var b;return a===w.EQUALS||(b=a)>=w.UPPER_A&&b<=w.UPPER_Z||b>=w.LOWER_A&&b<=w.LOWER_Z||bv(b)}(f))?0:this.emitNotTerminatedNamedEntity();if(0!=(e=((d=c[this.treeIndex])&x.VALUE_LENGTH)>>14)){if(f===w.SEMI)return this.emitNamedEntityData(this.treeIndex,e,this.consumed+this.excess);this.decodeMode!==z.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var a;let{result:b,decodeTree:c}=this,d=(c[b]&x.VALUE_LENGTH)>>14;return this.emitNamedEntityData(b,d,this.consumed),null==(a=this.errors)||a.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(a,b,c){let{decodeTree:d}=this;return this.emitCodePoint(1===b?d[a]&~x.VALUE_LENGTH:d[a+1],c),3===b&&this.emitCodePoint(d[a+2],c),c}end(){var a;switch(this.state){case y.NamedEntity:return 0!==this.result&&(this.decodeMode!==z.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case y.NumericDecimal:return this.emitNumericEntity(0,2);case y.NumericHex:return this.emitNumericEntity(0,3);case y.NumericStart:return null==(a=this.errors)||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case y.EntityStart:return 0}}}(l=A||(A={})).HTML="http://www.w3.org/1999/xhtml",l.MATHML="http://www.w3.org/1998/Math/MathML",l.SVG="http://www.w3.org/2000/svg",l.XLINK="http://www.w3.org/1999/xlink",l.XML="http://www.w3.org/XML/1998/namespace",l.XMLNS="http://www.w3.org/2000/xmlns/",(m=B||(B={})).TYPE="type",m.ACTION="action",m.ENCODING="encoding",m.PROMPT="prompt",m.NAME="name",m.COLOR="color",m.FACE="face",m.SIZE="size",(n=C||(C={})).NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks",(o=D||(D={})).A="a",o.ADDRESS="address",o.ANNOTATION_XML="annotation-xml",o.APPLET="applet",o.AREA="area",o.ARTICLE="article",o.ASIDE="aside",o.B="b",o.BASE="base",o.BASEFONT="basefont",o.BGSOUND="bgsound",o.BIG="big",o.BLOCKQUOTE="blockquote",o.BODY="body",o.BR="br",o.BUTTON="button",o.CAPTION="caption",o.CENTER="center",o.CODE="code",o.COL="col",o.COLGROUP="colgroup",o.DD="dd",o.DESC="desc",o.DETAILS="details",o.DIALOG="dialog",o.DIR="dir",o.DIV="div",o.DL="dl",o.DT="dt",o.EM="em",o.EMBED="embed",o.FIELDSET="fieldset",o.FIGCAPTION="figcaption",o.FIGURE="figure",o.FONT="font",o.FOOTER="footer",o.FOREIGN_OBJECT="foreignObject",o.FORM="form",o.FRAME="frame",o.FRAMESET="frameset",o.H1="h1",o.H2="h2",o.H3="h3",o.H4="h4",o.H5="h5",o.H6="h6",o.HEAD="head",o.HEADER="header",o.HGROUP="hgroup",o.HR="hr",o.HTML="html",o.I="i",o.IMG="img",o.IMAGE="image",o.INPUT="input",o.IFRAME="iframe",o.KEYGEN="keygen",o.LABEL="label",o.LI="li",o.LINK="link",o.LISTING="listing",o.MAIN="main",o.MALIGNMARK="malignmark",o.MARQUEE="marquee",o.MATH="math",o.MENU="menu",o.META="meta",o.MGLYPH="mglyph",o.MI="mi",o.MO="mo",o.MN="mn",o.MS="ms",o.MTEXT="mtext",o.NAV="nav",o.NOBR="nobr",o.NOFRAMES="noframes",o.NOEMBED="noembed",o.NOSCRIPT="noscript",o.OBJECT="object",o.OL="ol",o.OPTGROUP="optgroup",o.OPTION="option",o.P="p",o.PARAM="param",o.PLAINTEXT="plaintext",o.PRE="pre",o.RB="rb",o.RP="rp",o.RT="rt",o.RTC="rtc",o.RUBY="ruby",o.S="s",o.SCRIPT="script",o.SEARCH="search",o.SECTION="section",o.SELECT="select",o.SOURCE="source",o.SMALL="small",o.SPAN="span",o.STRIKE="strike",o.STRONG="strong",o.STYLE="style",o.SUB="sub",o.SUMMARY="summary",o.SUP="sup",o.TABLE="table",o.TBODY="tbody",o.TEMPLATE="template",o.TEXTAREA="textarea",o.TFOOT="tfoot",o.TD="td",o.TH="th",o.THEAD="thead",o.TITLE="title",o.TR="tr",o.TRACK="track",o.TT="tt",o.U="u",o.UL="ul",o.SVG="svg",o.VAR="var",o.WBR="wbr",o.XMP="xmp",(p=E||(E={}))[p.UNKNOWN=0]="UNKNOWN",p[p.A=1]="A",p[p.ADDRESS=2]="ADDRESS",p[p.ANNOTATION_XML=3]="ANNOTATION_XML",p[p.APPLET=4]="APPLET",p[p.AREA=5]="AREA",p[p.ARTICLE=6]="ARTICLE",p[p.ASIDE=7]="ASIDE",p[p.B=8]="B",p[p.BASE=9]="BASE",p[p.BASEFONT=10]="BASEFONT",p[p.BGSOUND=11]="BGSOUND",p[p.BIG=12]="BIG",p[p.BLOCKQUOTE=13]="BLOCKQUOTE",p[p.BODY=14]="BODY",p[p.BR=15]="BR",p[p.BUTTON=16]="BUTTON",p[p.CAPTION=17]="CAPTION",p[p.CENTER=18]="CENTER",p[p.CODE=19]="CODE",p[p.COL=20]="COL",p[p.COLGROUP=21]="COLGROUP",p[p.DD=22]="DD",p[p.DESC=23]="DESC",p[p.DETAILS=24]="DETAILS",p[p.DIALOG=25]="DIALOG",p[p.DIR=26]="DIR",p[p.DIV=27]="DIV",p[p.DL=28]="DL",p[p.DT=29]="DT",p[p.EM=30]="EM",p[p.EMBED=31]="EMBED",p[p.FIELDSET=32]="FIELDSET",p[p.FIGCAPTION=33]="FIGCAPTION",p[p.FIGURE=34]="FIGURE",p[p.FONT=35]="FONT",p[p.FOOTER=36]="FOOTER",p[p.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",p[p.FORM=38]="FORM",p[p.FRAME=39]="FRAME",p[p.FRAMESET=40]="FRAMESET",p[p.H1=41]="H1",p[p.H2=42]="H2",p[p.H3=43]="H3",p[p.H4=44]="H4",p[p.H5=45]="H5",p[p.H6=46]="H6",p[p.HEAD=47]="HEAD",p[p.HEADER=48]="HEADER",p[p.HGROUP=49]="HGROUP",p[p.HR=50]="HR",p[p.HTML=51]="HTML",p[p.I=52]="I",p[p.IMG=53]="IMG",p[p.IMAGE=54]="IMAGE",p[p.INPUT=55]="INPUT",p[p.IFRAME=56]="IFRAME",p[p.KEYGEN=57]="KEYGEN",p[p.LABEL=58]="LABEL",p[p.LI=59]="LI",p[p.LINK=60]="LINK",p[p.LISTING=61]="LISTING",p[p.MAIN=62]="MAIN",p[p.MALIGNMARK=63]="MALIGNMARK",p[p.MARQUEE=64]="MARQUEE",p[p.MATH=65]="MATH",p[p.MENU=66]="MENU",p[p.META=67]="META",p[p.MGLYPH=68]="MGLYPH",p[p.MI=69]="MI",p[p.MO=70]="MO",p[p.MN=71]="MN",p[p.MS=72]="MS",p[p.MTEXT=73]="MTEXT",p[p.NAV=74]="NAV",p[p.NOBR=75]="NOBR",p[p.NOFRAMES=76]="NOFRAMES",p[p.NOEMBED=77]="NOEMBED",p[p.NOSCRIPT=78]="NOSCRIPT",p[p.OBJECT=79]="OBJECT",p[p.OL=80]="OL",p[p.OPTGROUP=81]="OPTGROUP",p[p.OPTION=82]="OPTION",p[p.P=83]="P",p[p.PARAM=84]="PARAM",p[p.PLAINTEXT=85]="PLAINTEXT",p[p.PRE=86]="PRE",p[p.RB=87]="RB",p[p.RP=88]="RP",p[p.RT=89]="RT",p[p.RTC=90]="RTC",p[p.RUBY=91]="RUBY",p[p.S=92]="S",p[p.SCRIPT=93]="SCRIPT",p[p.SEARCH=94]="SEARCH",p[p.SECTION=95]="SECTION",p[p.SELECT=96]="SELECT",p[p.SOURCE=97]="SOURCE",p[p.SMALL=98]="SMALL",p[p.SPAN=99]="SPAN",p[p.STRIKE=100]="STRIKE",p[p.STRONG=101]="STRONG",p[p.STYLE=102]="STYLE",p[p.SUB=103]="SUB",p[p.SUMMARY=104]="SUMMARY",p[p.SUP=105]="SUP",p[p.TABLE=106]="TABLE",p[p.TBODY=107]="TBODY",p[p.TEMPLATE=108]="TEMPLATE",p[p.TEXTAREA=109]="TEXTAREA",p[p.TFOOT=110]="TFOOT",p[p.TD=111]="TD",p[p.TH=112]="TH",p[p.THEAD=113]="THEAD",p[p.TITLE=114]="TITLE",p[p.TR=115]="TR",p[p.TRACK=116]="TRACK",p[p.TT=117]="TT",p[p.U=118]="U",p[p.UL=119]="UL",p[p.SVG=120]="SVG",p[p.VAR=121]="VAR",p[p.WBR=122]="WBR",p[p.XMP=123]="XMP";let bx=new Map([[D.A,E.A],[D.ADDRESS,E.ADDRESS],[D.ANNOTATION_XML,E.ANNOTATION_XML],[D.APPLET,E.APPLET],[D.AREA,E.AREA],[D.ARTICLE,E.ARTICLE],[D.ASIDE,E.ASIDE],[D.B,E.B],[D.BASE,E.BASE],[D.BASEFONT,E.BASEFONT],[D.BGSOUND,E.BGSOUND],[D.BIG,E.BIG],[D.BLOCKQUOTE,E.BLOCKQUOTE],[D.BODY,E.BODY],[D.BR,E.BR],[D.BUTTON,E.BUTTON],[D.CAPTION,E.CAPTION],[D.CENTER,E.CENTER],[D.CODE,E.CODE],[D.COL,E.COL],[D.COLGROUP,E.COLGROUP],[D.DD,E.DD],[D.DESC,E.DESC],[D.DETAILS,E.DETAILS],[D.DIALOG,E.DIALOG],[D.DIR,E.DIR],[D.DIV,E.DIV],[D.DL,E.DL],[D.DT,E.DT],[D.EM,E.EM],[D.EMBED,E.EMBED],[D.FIELDSET,E.FIELDSET],[D.FIGCAPTION,E.FIGCAPTION],[D.FIGURE,E.FIGURE],[D.FONT,E.FONT],[D.FOOTER,E.FOOTER],[D.FOREIGN_OBJECT,E.FOREIGN_OBJECT],[D.FORM,E.FORM],[D.FRAME,E.FRAME],[D.FRAMESET,E.FRAMESET],[D.H1,E.H1],[D.H2,E.H2],[D.H3,E.H3],[D.H4,E.H4],[D.H5,E.H5],[D.H6,E.H6],[D.HEAD,E.HEAD],[D.HEADER,E.HEADER],[D.HGROUP,E.HGROUP],[D.HR,E.HR],[D.HTML,E.HTML],[D.I,E.I],[D.IMG,E.IMG],[D.IMAGE,E.IMAGE],[D.INPUT,E.INPUT],[D.IFRAME,E.IFRAME],[D.KEYGEN,E.KEYGEN],[D.LABEL,E.LABEL],[D.LI,E.LI],[D.LINK,E.LINK],[D.LISTING,E.LISTING],[D.MAIN,E.MAIN],[D.MALIGNMARK,E.MALIGNMARK],[D.MARQUEE,E.MARQUEE],[D.MATH,E.MATH],[D.MENU,E.MENU],[D.META,E.META],[D.MGLYPH,E.MGLYPH],[D.MI,E.MI],[D.MO,E.MO],[D.MN,E.MN],[D.MS,E.MS],[D.MTEXT,E.MTEXT],[D.NAV,E.NAV],[D.NOBR,E.NOBR],[D.NOFRAMES,E.NOFRAMES],[D.NOEMBED,E.NOEMBED],[D.NOSCRIPT,E.NOSCRIPT],[D.OBJECT,E.OBJECT],[D.OL,E.OL],[D.OPTGROUP,E.OPTGROUP],[D.OPTION,E.OPTION],[D.P,E.P],[D.PARAM,E.PARAM],[D.PLAINTEXT,E.PLAINTEXT],[D.PRE,E.PRE],[D.RB,E.RB],[D.RP,E.RP],[D.RT,E.RT],[D.RTC,E.RTC],[D.RUBY,E.RUBY],[D.S,E.S],[D.SCRIPT,E.SCRIPT],[D.SEARCH,E.SEARCH],[D.SECTION,E.SECTION],[D.SELECT,E.SELECT],[D.SOURCE,E.SOURCE],[D.SMALL,E.SMALL],[D.SPAN,E.SPAN],[D.STRIKE,E.STRIKE],[D.STRONG,E.STRONG],[D.STYLE,E.STYLE],[D.SUB,E.SUB],[D.SUMMARY,E.SUMMARY],[D.SUP,E.SUP],[D.TABLE,E.TABLE],[D.TBODY,E.TBODY],[D.TEMPLATE,E.TEMPLATE],[D.TEXTAREA,E.TEXTAREA],[D.TFOOT,E.TFOOT],[D.TD,E.TD],[D.TH,E.TH],[D.THEAD,E.THEAD],[D.TITLE,E.TITLE],[D.TR,E.TR],[D.TRACK,E.TRACK],[D.TT,E.TT],[D.U,E.U],[D.UL,E.UL],[D.SVG,E.SVG],[D.VAR,E.VAR],[D.WBR,E.WBR],[D.XMP,E.XMP]]);function by(a){var b;return null!=(b=bx.get(a))?b:E.UNKNOWN}let bz=E,bA={[A.HTML]:new Set([bz.ADDRESS,bz.APPLET,bz.AREA,bz.ARTICLE,bz.ASIDE,bz.BASE,bz.BASEFONT,bz.BGSOUND,bz.BLOCKQUOTE,bz.BODY,bz.BR,bz.BUTTON,bz.CAPTION,bz.CENTER,bz.COL,bz.COLGROUP,bz.DD,bz.DETAILS,bz.DIR,bz.DIV,bz.DL,bz.DT,bz.EMBED,bz.FIELDSET,bz.FIGCAPTION,bz.FIGURE,bz.FOOTER,bz.FORM,bz.FRAME,bz.FRAMESET,bz.H1,bz.H2,bz.H3,bz.H4,bz.H5,bz.H6,bz.HEAD,bz.HEADER,bz.HGROUP,bz.HR,bz.HTML,bz.IFRAME,bz.IMG,bz.INPUT,bz.LI,bz.LINK,bz.LISTING,bz.MAIN,bz.MARQUEE,bz.MENU,bz.META,bz.NAV,bz.NOEMBED,bz.NOFRAMES,bz.NOSCRIPT,bz.OBJECT,bz.OL,bz.P,bz.PARAM,bz.PLAINTEXT,bz.PRE,bz.SCRIPT,bz.SECTION,bz.SELECT,bz.SOURCE,bz.STYLE,bz.SUMMARY,bz.TABLE,bz.TBODY,bz.TD,bz.TEMPLATE,bz.TEXTAREA,bz.TFOOT,bz.TH,bz.THEAD,bz.TITLE,bz.TR,bz.TRACK,bz.UL,bz.WBR,bz.XMP]),[A.MATHML]:new Set([bz.MI,bz.MO,bz.MN,bz.MS,bz.MTEXT,bz.ANNOTATION_XML]),[A.SVG]:new Set([bz.TITLE,bz.FOREIGN_OBJECT,bz.DESC]),[A.XLINK]:new Set,[A.XML]:new Set,[A.XMLNS]:new Set},bB=new Set([bz.H1,bz.H2,bz.H3,bz.H4,bz.H5,bz.H6]);D.STYLE,D.SCRIPT,D.XMP,D.IFRAME,D.NOEMBED,D.NOFRAMES,D.PLAINTEXT,(q=F||(F={}))[q.DATA=0]="DATA",q[q.RCDATA=1]="RCDATA",q[q.RAWTEXT=2]="RAWTEXT",q[q.SCRIPT_DATA=3]="SCRIPT_DATA",q[q.PLAINTEXT=4]="PLAINTEXT",q[q.TAG_OPEN=5]="TAG_OPEN",q[q.END_TAG_OPEN=6]="END_TAG_OPEN",q[q.TAG_NAME=7]="TAG_NAME",q[q.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",q[q.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",q[q.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",q[q.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",q[q.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",q[q.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",q[q.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",q[q.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",q[q.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",q[q.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",q[q.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",q[q.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",q[q.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",q[q.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",q[q.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",q[q.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",q[q.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",q[q.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",q[q.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",q[q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",q[q.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",q[q.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",q[q.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",q[q.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",q[q.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",q[q.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",q[q.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",q[q.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",q[q.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",q[q.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",q[q.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",q[q.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",q[q.BOGUS_COMMENT=40]="BOGUS_COMMENT",q[q.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",q[q.COMMENT_START=42]="COMMENT_START",q[q.COMMENT_START_DASH=43]="COMMENT_START_DASH",q[q.COMMENT=44]="COMMENT",q[q.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",q[q.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",q[q.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",q[q.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",q[q.COMMENT_END_DASH=49]="COMMENT_END_DASH",q[q.COMMENT_END=50]="COMMENT_END",q[q.COMMENT_END_BANG=51]="COMMENT_END_BANG",q[q.DOCTYPE=52]="DOCTYPE",q[q.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",q[q.DOCTYPE_NAME=54]="DOCTYPE_NAME",q[q.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",q[q.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",q[q.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",q[q.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",q[q.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",q[q.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",q[q.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",q[q.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",q[q.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",q[q.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",q[q.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",q[q.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",q[q.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",q[q.CDATA_SECTION=68]="CDATA_SECTION",q[q.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",q[q.CDATA_SECTION_END=70]="CDATA_SECTION_END",q[q.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",q[q.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let bC={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function bD(a){return a>=t.LATIN_CAPITAL_A&&a<=t.LATIN_CAPITAL_Z}function bE(a){return a>=t.LATIN_SMALL_A&&a<=t.LATIN_SMALL_Z||bD(a)}function bF(a){return bE(a)||a>=t.DIGIT_0&&a<=t.DIGIT_9}function bG(a){return a===t.SPACE||a===t.LINE_FEED||a===t.TABULATION||a===t.FORM_FEED}function bH(a){return bG(a)||a===t.SOLIDUS||a===t.GREATER_THAN_SIGN}class bI{constructor(a,b){this.options=a,this.handler=b,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new br(b),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new bw(bt,(a,b)=>{this.preprocessor.pos=this.entityStartPos+b-1,this._flushCodePointConsumedAsCharacterReference(a)},b.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(u.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:a=>{this._err(u.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+a)},validateNumericCharacterReference:a=>{let b=function(a){if(a===t.NULL)return u.nullCharacterReference;if(a>1114111)return u.characterReferenceOutsideUnicodeRange;if(bo(a))return u.surrogateCharacterReference;if(bq(a))return u.noncharacterCharacterReference;if(bp(a)||a===t.CARRIAGE_RETURN)return u.controlCharacterReference;return null}(a);b&&this._err(b,1)}}:void 0)}_err(a,b=0){var c,d;null==(d=(c=this.handler).onParseError)||d.call(c,this.preprocessor.getError(a,b))}getCurrentLocation(a){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-a,startOffset:this.preprocessor.offset-a,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let a=this._consume();this._ensureHibernation()||this._callState(a)}this.inLoop=!1}}pause(){this.paused=!0}resume(a){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==a||a())}write(a,b,c){this.active=!0,this.preprocessor.write(a,b),this._runParsingLoop(),this.paused||null==c||c()}insertHtmlAtCurrentPos(a){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(a),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(a){this.consumedAfterSnapshot+=a;for(let b=0;b<a;b++)this.preprocessor.advance()}_consumeSequenceIfMatch(a,b){return!!this.preprocessor.startsWith(a,b)&&(this._advanceBy(a.length-1),!0)}_createStartTagToken(){this.currentToken={type:v.START_TAG,tagName:"",tagID:E.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:v.END_TAG,tagName:"",tagID:E.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(a){this.currentToken={type:v.COMMENT,data:"",location:this.getCurrentLocation(a)}}_createDoctypeToken(a){this.currentToken={type:v.DOCTYPE,name:a,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(a,b){this.currentCharacterToken={type:a,chars:b,location:this.currentLocation}}_createAttr(a){this.currentAttr={name:a,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var a,b;let c=this.currentToken;null===bs(c,this.currentAttr.name)?(c.attrs.push(this.currentAttr),c.location&&this.currentLocation&&((null!=(a=(b=c.location).attrs)?a:b.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(u.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(a){this._emitCurrentCharacterToken(a.location),this.currentToken=null,a.location&&(a.location.endLine=this.preprocessor.line,a.location.endCol=this.preprocessor.col+1,a.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let a=this.currentToken;this.prepareToken(a),a.tagID=by(a.tagName),a.type===v.START_TAG?(this.lastStartTagName=a.tagName,this.handler.onStartTag(a)):(a.attrs.length>0&&this._err(u.endTagWithAttributes),a.selfClosing&&this._err(u.endTagWithTrailingSolidus),this.handler.onEndTag(a)),this.preprocessor.dropParsedChunk()}emitCurrentComment(a){this.prepareToken(a),this.handler.onComment(a),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(a){this.prepareToken(a),this.handler.onDoctype(a),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(a){if(this.currentCharacterToken){switch(a&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=a.startLine,this.currentCharacterToken.location.endCol=a.startCol,this.currentCharacterToken.location.endOffset=a.startOffset),this.currentCharacterToken.type){case v.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case v.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case v.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let a=this.getCurrentLocation(0);a&&(a.endLine=a.startLine,a.endCol=a.startCol,a.endOffset=a.startOffset),this._emitCurrentCharacterToken(a),this.handler.onEof({type:v.EOF,location:a}),this.active=!1}_appendCharToCurrentCharacterToken(a,b){if(this.currentCharacterToken)if(this.currentCharacterToken.type===a){this.currentCharacterToken.chars+=b;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(a,b)}_emitCodePoint(a){let b=bG(a)?v.WHITESPACE_CHARACTER:a===t.NULL?v.NULL_CHARACTER:v.CHARACTER;this._appendCharToCurrentCharacterToken(b,String.fromCodePoint(a))}_emitChars(a){this._appendCharToCurrentCharacterToken(v.CHARACTER,a)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?z.Attribute:z.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(a){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(a):this._emitCodePoint(a)}_callState(a){switch(this.state){case F.DATA:this._stateData(a);break;case F.RCDATA:this._stateRcdata(a);break;case F.RAWTEXT:this._stateRawtext(a);break;case F.SCRIPT_DATA:this._stateScriptData(a);break;case F.PLAINTEXT:this._statePlaintext(a);break;case F.TAG_OPEN:this._stateTagOpen(a);break;case F.END_TAG_OPEN:this._stateEndTagOpen(a);break;case F.TAG_NAME:this._stateTagName(a);break;case F.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(a);break;case F.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(a);break;case F.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(a);break;case F.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(a);break;case F.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(a);break;case F.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(a);break;case F.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(a);break;case F.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(a);break;case F.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(a);break;case F.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(a);break;case F.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(a);break;case F.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(a);break;case F.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(a);break;case F.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(a);break;case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(a);break;case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(a);break;case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(a);break;case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(a);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(a);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(a);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(a);break;case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(a);break;case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(a);break;case F.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(a);break;case F.ATTRIBUTE_NAME:this._stateAttributeName(a);break;case F.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(a);break;case F.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(a);break;case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(a);break;case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(a);break;case F.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(a);break;case F.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(a);break;case F.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(a);break;case F.BOGUS_COMMENT:this._stateBogusComment(a);break;case F.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(a);break;case F.COMMENT_START:this._stateCommentStart(a);break;case F.COMMENT_START_DASH:this._stateCommentStartDash(a);break;case F.COMMENT:this._stateComment(a);break;case F.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(a);break;case F.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(a);break;case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(a);break;case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(a);break;case F.COMMENT_END_DASH:this._stateCommentEndDash(a);break;case F.COMMENT_END:this._stateCommentEnd(a);break;case F.COMMENT_END_BANG:this._stateCommentEndBang(a);break;case F.DOCTYPE:this._stateDoctype(a);break;case F.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(a);break;case F.DOCTYPE_NAME:this._stateDoctypeName(a);break;case F.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(a);break;case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(a);break;case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(a);break;case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(a);break;case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(a);break;case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(a);break;case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(a);break;case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(a);break;case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(a);break;case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(a);break;case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(a);break;case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(a);break;case F.BOGUS_DOCTYPE:this._stateBogusDoctype(a);break;case F.CDATA_SECTION:this._stateCdataSection(a);break;case F.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(a);break;case F.CDATA_SECTION_END:this._stateCdataSectionEnd(a);break;case F.CHARACTER_REFERENCE:this._stateCharacterReference();break;case F.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(a);break;default:throw Error("Unknown state")}}_stateData(a){switch(a){case t.LESS_THAN_SIGN:this.state=F.TAG_OPEN;break;case t.AMPERSAND:this._startCharacterReference();break;case t.NULL:this._err(u.unexpectedNullCharacter),this._emitCodePoint(a);break;case t.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateRcdata(a){switch(a){case t.AMPERSAND:this._startCharacterReference();break;case t.LESS_THAN_SIGN:this.state=F.RCDATA_LESS_THAN_SIGN;break;case t.NULL:this._err(u.unexpectedNullCharacter),this._emitChars("�");break;case t.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateRawtext(a){switch(a){case t.LESS_THAN_SIGN:this.state=F.RAWTEXT_LESS_THAN_SIGN;break;case t.NULL:this._err(u.unexpectedNullCharacter),this._emitChars("�");break;case t.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptData(a){switch(a){case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break;case t.NULL:this._err(u.unexpectedNullCharacter),this._emitChars("�");break;case t.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_statePlaintext(a){switch(a){case t.NULL:this._err(u.unexpectedNullCharacter),this._emitChars("�");break;case t.EOF:this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateTagOpen(a){if(bE(a))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(a);else switch(a){case t.EXCLAMATION_MARK:this.state=F.MARKUP_DECLARATION_OPEN;break;case t.SOLIDUS:this.state=F.END_TAG_OPEN;break;case t.QUESTION_MARK:this._err(u.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(a);break;case t.EOF:this._err(u.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(u.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(a)}}_stateEndTagOpen(a){if(bE(a))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(a);else switch(a){case t.GREATER_THAN_SIGN:this._err(u.missingEndTagName),this.state=F.DATA;break;case t.EOF:this._err(u.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(u.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(a)}}_stateTagName(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this.state=F.BEFORE_ATTRIBUTE_NAME;break;case t.SOLIDUS:this.state=F.SELF_CLOSING_START_TAG;break;case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentTagToken();break;case t.NULL:this._err(u.unexpectedNullCharacter),b.tagName+="�";break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:b.tagName+=String.fromCodePoint(bD(a)?a+32:a)}}_stateRcdataLessThanSign(a){a===t.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(a))}_stateRcdataEndTagOpen(a){bE(a)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(a)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(a))}handleSpecialEndTag(a){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case t.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case t.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(a))}_stateRawtextLessThanSign(a){a===t.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(a))}_stateRawtextEndTagOpen(a){bE(a)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(a)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(a))}_stateRawtextEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(a))}_stateScriptDataLessThanSign(a){switch(a){case t.SOLIDUS:this.state=F.SCRIPT_DATA_END_TAG_OPEN;break;case t.EXCLAMATION_MARK:this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(a)}}_stateScriptDataEndTagOpen(a){bE(a)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(a)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscapeStart(a){a===t.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscapeStartDash(a){a===t.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(a))}_stateScriptDataEscaped(a){switch(a){case t.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case t.NULL:this._err(u.unexpectedNullCharacter),this._emitChars("�");break;case t.EOF:this._err(u.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptDataEscapedDash(a){switch(a){case t.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case t.NULL:this._err(u.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case t.EOF:this._err(u.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataEscapedDashDash(a){switch(a){case t.HYPHEN_MINUS:this._emitChars("-");break;case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case t.GREATER_THAN_SIGN:this.state=F.SCRIPT_DATA,this._emitChars(">");break;case t.NULL:this._err(u.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case t.EOF:this._err(u.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataEscapedLessThanSign(a){a===t.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:bE(a)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(a)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataEscapedEndTagOpen(a){bE(a)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(a)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataEscapedEndTagName(a){this.handleSpecialEndTag(a)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataDoubleEscapeStart(a){if(this.preprocessor.startsWith(bn,!1)&&bH(this.preprocessor.peek(bn.length))){this._emitCodePoint(a);for(let a=0;a<bn.length;a++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(a))}_stateScriptDataDoubleEscaped(a){switch(a){case t.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case t.NULL:this._err(u.unexpectedNullCharacter),this._emitChars("�");break;case t.EOF:this._err(u.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedDash(a){switch(a){case t.HYPHEN_MINUS:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case t.NULL:this._err(u.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case t.EOF:this._err(u.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedDashDash(a){switch(a){case t.HYPHEN_MINUS:this._emitChars("-");break;case t.LESS_THAN_SIGN:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case t.GREATER_THAN_SIGN:this.state=F.SCRIPT_DATA,this._emitChars(">");break;case t.NULL:this._err(u.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case t.EOF:this._err(u.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(a)}}_stateScriptDataDoubleEscapedLessThanSign(a){a===t.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(a))}_stateScriptDataDoubleEscapeEnd(a){if(this.preprocessor.startsWith(bn,!1)&&bH(this.preprocessor.peek(bn.length))){this._emitCodePoint(a);for(let a=0;a<bn.length;a++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(a))}_stateBeforeAttributeName(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.SOLIDUS:case t.GREATER_THAN_SIGN:case t.EOF:this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(a);break;case t.EQUALS_SIGN:this._err(u.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(a)}}_stateAttributeName(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:case t.SOLIDUS:case t.GREATER_THAN_SIGN:case t.EOF:this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(a);break;case t.EQUALS_SIGN:this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break;case t.QUOTATION_MARK:case t.APOSTROPHE:case t.LESS_THAN_SIGN:this._err(u.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(a);break;case t.NULL:this._err(u.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(bD(a)?a+32:a)}}_stateAfterAttributeName(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.SOLIDUS:this.state=F.SELF_CLOSING_START_TAG;break;case t.EQUALS_SIGN:this.state=F.BEFORE_ATTRIBUTE_VALUE;break;case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentTagToken();break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(a)}}_stateBeforeAttributeValue(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.QUOTATION_MARK:this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case t.APOSTROPHE:this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case t.GREATER_THAN_SIGN:this._err(u.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break;default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(a)}}_stateAttributeValueDoubleQuoted(a){switch(a){case t.QUOTATION_MARK:this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case t.AMPERSAND:this._startCharacterReference();break;case t.NULL:this._err(u.unexpectedNullCharacter),this.currentAttr.value+="�";break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAttributeValueSingleQuoted(a){switch(a){case t.APOSTROPHE:this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case t.AMPERSAND:this._startCharacterReference();break;case t.NULL:this._err(u.unexpectedNullCharacter),this.currentAttr.value+="�";break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAttributeValueUnquoted(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break;case t.AMPERSAND:this._startCharacterReference();break;case t.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break;case t.NULL:this._err(u.unexpectedNullCharacter),this.currentAttr.value+="�";break;case t.QUOTATION_MARK:case t.APOSTROPHE:case t.LESS_THAN_SIGN:case t.EQUALS_SIGN:case t.GRAVE_ACCENT:this._err(u.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(a);break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(a)}}_stateAfterAttributeValueQuoted(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break;case t.SOLIDUS:this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break;case t.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:this._err(u.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(a)}}_stateSelfClosingStartTag(a){switch(a){case t.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break;case t.EOF:this._err(u.eofInTag),this._emitEOFToken();break;default:this._err(u.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(a)}}_stateBogusComment(a){let b=this.currentToken;switch(a){case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentComment(b);break;case t.EOF:this.emitCurrentComment(b),this._emitEOFToken();break;case t.NULL:this._err(u.unexpectedNullCharacter),b.data+="�";break;default:b.data+=String.fromCodePoint(a)}}_stateMarkupDeclarationOpen(a){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(bm,!1)?(this.currentLocation=this.getCurrentLocation(bm.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(bl,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(u.cdataInHtmlContent),this._createCommentToken(bl.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(u.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(a))}_stateCommentStart(a){switch(a){case t.HYPHEN_MINUS:this.state=F.COMMENT_START_DASH;break;case t.GREATER_THAN_SIGN:{this._err(u.abruptClosingOfEmptyComment),this.state=F.DATA;let a=this.currentToken;this.emitCurrentComment(a);break}default:this.state=F.COMMENT,this._stateComment(a)}}_stateCommentStartDash(a){let b=this.currentToken;switch(a){case t.HYPHEN_MINUS:this.state=F.COMMENT_END;break;case t.GREATER_THAN_SIGN:this._err(u.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(b);break;case t.EOF:this._err(u.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="-",this.state=F.COMMENT,this._stateComment(a)}}_stateComment(a){let b=this.currentToken;switch(a){case t.HYPHEN_MINUS:this.state=F.COMMENT_END_DASH;break;case t.LESS_THAN_SIGN:b.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break;case t.NULL:this._err(u.unexpectedNullCharacter),b.data+="�";break;case t.EOF:this._err(u.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+=String.fromCodePoint(a)}}_stateCommentLessThanSign(a){let b=this.currentToken;switch(a){case t.EXCLAMATION_MARK:b.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break;case t.LESS_THAN_SIGN:b.data+="<";break;default:this.state=F.COMMENT,this._stateComment(a)}}_stateCommentLessThanSignBang(a){a===t.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(a))}_stateCommentLessThanSignBangDash(a){a===t.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(a))}_stateCommentLessThanSignBangDashDash(a){a!==t.GREATER_THAN_SIGN&&a!==t.EOF&&this._err(u.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(a)}_stateCommentEndDash(a){let b=this.currentToken;switch(a){case t.HYPHEN_MINUS:this.state=F.COMMENT_END;break;case t.EOF:this._err(u.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="-",this.state=F.COMMENT,this._stateComment(a)}}_stateCommentEnd(a){let b=this.currentToken;switch(a){case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentComment(b);break;case t.EXCLAMATION_MARK:this.state=F.COMMENT_END_BANG;break;case t.HYPHEN_MINUS:b.data+="-";break;case t.EOF:this._err(u.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="--",this.state=F.COMMENT,this._stateComment(a)}}_stateCommentEndBang(a){let b=this.currentToken;switch(a){case t.HYPHEN_MINUS:b.data+="--!",this.state=F.COMMENT_END_DASH;break;case t.GREATER_THAN_SIGN:this._err(u.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(b);break;case t.EOF:this._err(u.eofInComment),this.emitCurrentComment(b),this._emitEOFToken();break;default:b.data+="--!",this.state=F.COMMENT,this._stateComment(a)}}_stateDoctype(a){switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this.state=F.BEFORE_DOCTYPE_NAME;break;case t.GREATER_THAN_SIGN:this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(a);break;case t.EOF:{this._err(u.eofInDoctype),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._err(u.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(a)}}_stateBeforeDoctypeName(a){if(bD(a))this._createDoctypeToken(String.fromCharCode(a+32)),this.state=F.DOCTYPE_NAME;else switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.NULL:this._err(u.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=F.DOCTYPE_NAME;break;case t.GREATER_THAN_SIGN:{this._err(u.missingDoctypeName),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this.state=F.DATA;break}case t.EOF:{this._err(u.eofInDoctype),this._createDoctypeToken(null);let a=this.currentToken;a.forceQuirks=!0,this.emitCurrentDoctype(a),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(a)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this.state=F.AFTER_DOCTYPE_NAME;break;case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.NULL:this._err(u.unexpectedNullCharacter),b.name+="�";break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.name+=String.fromCodePoint(bD(a)?a+32:a)}}_stateAfterDoctypeName(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(u.invalidCharacterSequenceAfterDoctypeName),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a))}}_stateAfterDoctypePublicKeyword(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case t.QUOTATION_MARK:this._err(u.missingWhitespaceAfterDoctypePublicKeyword),b.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case t.APOSTROPHE:this._err(u.missingWhitespaceAfterDoctypePublicKeyword),b.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case t.GREATER_THAN_SIGN:this._err(u.missingDoctypePublicIdentifier),b.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.missingQuoteBeforeDoctypePublicIdentifier),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBeforeDoctypePublicIdentifier(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.QUOTATION_MARK:b.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case t.APOSTROPHE:b.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case t.GREATER_THAN_SIGN:this._err(u.missingDoctypePublicIdentifier),b.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.missingQuoteBeforeDoctypePublicIdentifier),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateDoctypePublicIdentifierDoubleQuoted(a){let b=this.currentToken;switch(a){case t.QUOTATION_MARK:this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case t.NULL:this._err(u.unexpectedNullCharacter),b.publicId+="�";break;case t.GREATER_THAN_SIGN:this._err(u.abruptDoctypePublicIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.publicId+=String.fromCodePoint(a)}}_stateDoctypePublicIdentifierSingleQuoted(a){let b=this.currentToken;switch(a){case t.APOSTROPHE:this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case t.NULL:this._err(u.unexpectedNullCharacter),b.publicId+="�";break;case t.GREATER_THAN_SIGN:this._err(u.abruptDoctypePublicIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.publicId+=String.fromCodePoint(a)}}_stateAfterDoctypePublicIdentifier(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case t.GREATER_THAN_SIGN:this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.QUOTATION_MARK:this._err(u.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case t.APOSTROPHE:this._err(u.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBetweenDoctypePublicAndSystemIdentifiers(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.QUOTATION_MARK:b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case t.APOSTROPHE:b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateAfterDoctypeSystemKeyword(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case t.QUOTATION_MARK:this._err(u.missingWhitespaceAfterDoctypeSystemKeyword),b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case t.APOSTROPHE:this._err(u.missingWhitespaceAfterDoctypeSystemKeyword),b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case t.GREATER_THAN_SIGN:this._err(u.missingDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBeforeDoctypeSystemIdentifier(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.QUOTATION_MARK:b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case t.APOSTROPHE:b.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case t.GREATER_THAN_SIGN:this._err(u.missingDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(b);break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.missingQuoteBeforeDoctypeSystemIdentifier),b.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateDoctypeSystemIdentifierDoubleQuoted(a){let b=this.currentToken;switch(a){case t.QUOTATION_MARK:this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case t.NULL:this._err(u.unexpectedNullCharacter),b.systemId+="�";break;case t.GREATER_THAN_SIGN:this._err(u.abruptDoctypeSystemIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.systemId+=String.fromCodePoint(a)}}_stateDoctypeSystemIdentifierSingleQuoted(a){let b=this.currentToken;switch(a){case t.APOSTROPHE:this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case t.NULL:this._err(u.unexpectedNullCharacter),b.systemId+="�";break;case t.GREATER_THAN_SIGN:this._err(u.abruptDoctypeSystemIdentifier),b.forceQuirks=!0,this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:b.systemId+=String.fromCodePoint(a)}}_stateAfterDoctypeSystemIdentifier(a){let b=this.currentToken;switch(a){case t.SPACE:case t.LINE_FEED:case t.TABULATION:case t.FORM_FEED:break;case t.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.EOF:this._err(u.eofInDoctype),b.forceQuirks=!0,this.emitCurrentDoctype(b),this._emitEOFToken();break;default:this._err(u.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(a)}}_stateBogusDoctype(a){let b=this.currentToken;switch(a){case t.GREATER_THAN_SIGN:this.emitCurrentDoctype(b),this.state=F.DATA;break;case t.NULL:this._err(u.unexpectedNullCharacter);break;case t.EOF:this.emitCurrentDoctype(b),this._emitEOFToken()}}_stateCdataSection(a){switch(a){case t.RIGHT_SQUARE_BRACKET:this.state=F.CDATA_SECTION_BRACKET;break;case t.EOF:this._err(u.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(a)}}_stateCdataSectionBracket(a){a===t.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(a))}_stateCdataSectionEnd(a){switch(a){case t.GREATER_THAN_SIGN:this.state=F.DATA;break;case t.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(a)}}_stateCharacterReference(){let a=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(a<0)if(this.preprocessor.lastChunkWritten)a=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}0===a?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(t.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&bF(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(a){bF(a)?this._flushCodePointConsumedAsCharacterReference(a):(a===t.SEMICOLON&&this._err(u.unknownNamedCharacterReference),this.state=this.returnState,this._callState(a))}}let bJ=new Set([E.DD,E.DT,E.LI,E.OPTGROUP,E.OPTION,E.P,E.RB,E.RP,E.RT,E.RTC]),bK=new Set([...bJ,E.CAPTION,E.COLGROUP,E.TBODY,E.TD,E.TFOOT,E.TH,E.THEAD,E.TR]),bL=new Set([E.APPLET,E.CAPTION,E.HTML,E.MARQUEE,E.OBJECT,E.TABLE,E.TD,E.TEMPLATE,E.TH]),bM=new Set([...bL,E.OL,E.UL]),bN=new Set([...bL,E.BUTTON]),bO=new Set([E.ANNOTATION_XML,E.MI,E.MN,E.MO,E.MS,E.MTEXT]),bP=new Set([E.DESC,E.FOREIGN_OBJECT,E.TITLE]),bQ=new Set([E.TR,E.TEMPLATE,E.HTML]),bR=new Set([E.TBODY,E.TFOOT,E.THEAD,E.TEMPLATE,E.HTML]),bS=new Set([E.TABLE,E.TEMPLATE,E.HTML]),bT=new Set([E.TD,E.TH]);class bU{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(a,b,c){this.treeAdapter=b,this.handler=c,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=E.UNKNOWN,this.current=a}_indexOf(a){return this.items.lastIndexOf(a,this.stackTop)}_isInTemplate(){return this.currentTagId===E.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===A.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(a,b){this.stackTop++,this.items[this.stackTop]=a,this.current=a,this.tagIDs[this.stackTop]=b,this.currentTagId=b,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(a,b,!0)}pop(){let a=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,!0)}replace(a,b){let c=this._indexOf(a);this.items[c]=b,c===this.stackTop&&(this.current=b)}insertAfter(a,b,c){let d=this._indexOf(a)+1;this.items.splice(d,0,b),this.tagIDs.splice(d,0,c),this.stackTop++,d===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,d===this.stackTop)}popUntilTagNamePopped(a){let b=this.stackTop+1;do b=this.tagIDs.lastIndexOf(a,b-1);while(b>0&&this.treeAdapter.getNamespaceURI(this.items[b])!==A.HTML);this.shortenToLength(Math.max(b,0))}shortenToLength(a){for(;this.stackTop>=a;){let b=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(b,this.stackTop<a)}}popUntilElementPopped(a){let b=this._indexOf(a);this.shortenToLength(Math.max(b,0))}popUntilPopped(a,b){let c=this._indexOfTagNames(a,b);this.shortenToLength(Math.max(c,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(bB,A.HTML)}popUntilTableCellPopped(){this.popUntilPopped(bT,A.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(a,b){for(let c=this.stackTop;c>=0;c--)if(a.has(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===b)return c;return -1}clearBackTo(a,b){let c=this._indexOfTagNames(a,b);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(bS,A.HTML)}clearBackToTableBodyContext(){this.clearBackTo(bR,A.HTML)}clearBackToTableRowContext(){this.clearBackTo(bQ,A.HTML)}remove(a){let b=this._indexOf(a);b>=0&&(b===this.stackTop?this.pop():(this.items.splice(b,1),this.tagIDs.splice(b,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(a,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===E.BODY?this.items[1]:null}contains(a){return this._indexOf(a)>-1}getCommonAncestor(a){let b=this._indexOf(a)-1;return b>=0?this.items[b]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===E.HTML}hasInDynamicScope(a,b){for(let c=this.stackTop;c>=0;c--){let d=this.tagIDs[c];switch(this.treeAdapter.getNamespaceURI(this.items[c])){case A.HTML:if(d===a)return!0;if(b.has(d))return!1;break;case A.SVG:if(bP.has(d))return!1;break;case A.MATHML:if(bO.has(d))return!1}}return!0}hasInScope(a){return this.hasInDynamicScope(a,bL)}hasInListItemScope(a){return this.hasInDynamicScope(a,bM)}hasInButtonScope(a){return this.hasInDynamicScope(a,bN)}hasNumberedHeaderInScope(){for(let a=this.stackTop;a>=0;a--){let b=this.tagIDs[a];switch(this.treeAdapter.getNamespaceURI(this.items[a])){case A.HTML:if(bB.has(b))return!0;if(bL.has(b))return!1;break;case A.SVG:if(bP.has(b))return!1;break;case A.MATHML:if(bO.has(b))return!1}}return!0}hasInTableScope(a){for(let b=this.stackTop;b>=0;b--)if(this.treeAdapter.getNamespaceURI(this.items[b])===A.HTML)switch(this.tagIDs[b]){case a:return!0;case E.TABLE:case E.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let a=this.stackTop;a>=0;a--)if(this.treeAdapter.getNamespaceURI(this.items[a])===A.HTML)switch(this.tagIDs[a]){case E.TBODY:case E.THEAD:case E.TFOOT:return!0;case E.TABLE:case E.HTML:return!1}return!0}hasInSelectScope(a){for(let b=this.stackTop;b>=0;b--)if(this.treeAdapter.getNamespaceURI(this.items[b])===A.HTML)switch(this.tagIDs[b]){case a:return!0;case E.OPTION:case E.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&bJ.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&bK.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(a){for(;void 0!==this.currentTagId&&this.currentTagId!==a&&bK.has(this.currentTagId);)this.pop()}}(r=G||(G={}))[r.Marker=0]="Marker",r[r.Element=1]="Element";let bV={type:G.Marker};class bW{constructor(a){this.treeAdapter=a,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(a,b){let c=[],d=b.length,e=this.treeAdapter.getTagName(a),f=this.treeAdapter.getNamespaceURI(a);for(let a=0;a<this.entries.length;a++){let b=this.entries[a];if(b.type===G.Marker)break;let{element:g}=b;if(this.treeAdapter.getTagName(g)===e&&this.treeAdapter.getNamespaceURI(g)===f){let b=this.treeAdapter.getAttrList(g);b.length===d&&c.push({idx:a,attrs:b})}}return c}_ensureNoahArkCondition(a){if(this.entries.length<3)return;let b=this.treeAdapter.getAttrList(a),c=this._getNoahArkConditionCandidates(a,b);if(c.length<3)return;let d=new Map(b.map(a=>[a.name,a.value])),e=0;for(let a=0;a<c.length;a++){let b=c[a];b.attrs.every(a=>d.get(a.name)===a.value)&&(e+=1)>=3&&this.entries.splice(b.idx,1)}}insertMarker(){this.entries.unshift(bV)}pushElement(a,b){this._ensureNoahArkCondition(a),this.entries.unshift({type:G.Element,element:a,token:b})}insertElementAfterBookmark(a,b){let c=this.entries.indexOf(this.bookmark);this.entries.splice(c,0,{type:G.Element,element:a,token:b})}removeEntry(a){let b=this.entries.indexOf(a);-1!==b&&this.entries.splice(b,1)}clearToLastMarker(){let a=this.entries.indexOf(bV);-1===a?this.entries.length=0:this.entries.splice(0,a+1)}getElementEntryInScopeWithTagName(a){let b=this.entries.find(b=>b.type===G.Marker||this.treeAdapter.getTagName(b.element)===a);return b&&b.type===G.Element?b:null}getElementEntry(a){return this.entries.find(b=>b.type===G.Element&&b.element===a)}}let bX={createDocument:()=>({nodeName:"#document",mode:C.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(a,b,c)=>({nodeName:a,tagName:a,attrs:c,namespaceURI:b,childNodes:[],parentNode:null}),createCommentNode:a=>({nodeName:"#comment",data:a,parentNode:null}),createTextNode:a=>({nodeName:"#text",value:a,parentNode:null}),appendChild(a,b){a.childNodes.push(b),b.parentNode=a},insertBefore(a,b,c){let d=a.childNodes.indexOf(c);a.childNodes.splice(d,0,b),b.parentNode=a},setTemplateContent(a,b){a.content=b},getTemplateContent:a=>a.content,setDocumentType(a,b,c,d){let e=a.childNodes.find(a=>"#documentType"===a.nodeName);e?(e.name=b,e.publicId=c,e.systemId=d):bX.appendChild(a,{nodeName:"#documentType",name:b,publicId:c,systemId:d,parentNode:null})},setDocumentMode(a,b){a.mode=b},getDocumentMode:a=>a.mode,detachNode(a){if(a.parentNode){let b=a.parentNode.childNodes.indexOf(a);a.parentNode.childNodes.splice(b,1),a.parentNode=null}},insertText(a,b){if(a.childNodes.length>0){let c=a.childNodes[a.childNodes.length-1];if(bX.isTextNode(c)){c.value+=b;return}}bX.appendChild(a,bX.createTextNode(b))},insertTextBefore(a,b,c){let d=a.childNodes[a.childNodes.indexOf(c)-1];d&&bX.isTextNode(d)?d.value+=b:bX.insertBefore(a,bX.createTextNode(b),c)},adoptAttributes(a,b){let c=new Set(a.attrs.map(a=>a.name));for(let d=0;d<b.length;d++)c.has(b[d].name)||a.attrs.push(b[d])},getFirstChild:a=>a.childNodes[0],getChildNodes:a=>a.childNodes,getParentNode:a=>a.parentNode,getAttrList:a=>a.attrs,getTagName:a=>a.tagName,getNamespaceURI:a=>a.namespaceURI,getTextNodeContent:a=>a.value,getCommentNodeContent:a=>a.data,getDocumentTypeNodeName:a=>a.name,getDocumentTypeNodePublicId:a=>a.publicId,getDocumentTypeNodeSystemId:a=>a.systemId,isTextNode:a=>"#text"===a.nodeName,isCommentNode:a=>"#comment"===a.nodeName,isDocumentTypeNode:a=>"#documentType"===a.nodeName,isElementNode:a=>Object.prototype.hasOwnProperty.call(a,"tagName"),setNodeSourceCodeLocation(a,b){a.sourceCodeLocation=b},getNodeSourceCodeLocation:a=>a.sourceCodeLocation,updateNodeSourceCodeLocation(a,b){a.sourceCodeLocation={...a.sourceCodeLocation,...b}}},bY="html",bZ=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],b$=[...bZ,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],b_=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),b0=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],b1=[...b0,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function b2(a,b){return b.some(b=>a.startsWith(b))}let b3=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(a=>[a.toLowerCase(),a])),b4=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:A.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:A.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:A.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:A.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:A.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:A.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:A.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:A.XML}],["xml:space",{prefix:"xml",name:"space",namespace:A.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:A.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:A.XMLNS}]]),b5=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(a=>[a.toLowerCase(),a])),b6=new Set([E.B,E.BIG,E.BLOCKQUOTE,E.BODY,E.BR,E.CENTER,E.CODE,E.DD,E.DIV,E.DL,E.DT,E.EM,E.EMBED,E.H1,E.H2,E.H3,E.H4,E.H5,E.H6,E.HEAD,E.HR,E.I,E.IMG,E.LI,E.LISTING,E.MENU,E.META,E.NOBR,E.OL,E.P,E.PRE,E.RUBY,E.S,E.SMALL,E.SPAN,E.STRONG,E.STRIKE,E.SUB,E.SUP,E.TABLE,E.TT,E.U,E.UL,E.VAR]);function b7(a){for(let b=0;b<a.attrs.length;b++)if("definitionurl"===a.attrs[b].name){a.attrs[b].name="definitionURL";break}}function b8(a){for(let b=0;b<a.attrs.length;b++){let c=b3.get(a.attrs[b].name);null!=c&&(a.attrs[b].name=c)}}function b9(a){for(let b=0;b<a.attrs.length;b++){let c=b4.get(a.attrs[b].name);c&&(a.attrs[b].prefix=c.prefix,a.attrs[b].name=c.name,a.attrs[b].namespace=c.namespace)}}(s=H||(H={}))[s.INITIAL=0]="INITIAL",s[s.BEFORE_HTML=1]="BEFORE_HTML",s[s.BEFORE_HEAD=2]="BEFORE_HEAD",s[s.IN_HEAD=3]="IN_HEAD",s[s.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",s[s.AFTER_HEAD=5]="AFTER_HEAD",s[s.IN_BODY=6]="IN_BODY",s[s.TEXT=7]="TEXT",s[s.IN_TABLE=8]="IN_TABLE",s[s.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",s[s.IN_CAPTION=10]="IN_CAPTION",s[s.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",s[s.IN_TABLE_BODY=12]="IN_TABLE_BODY",s[s.IN_ROW=13]="IN_ROW",s[s.IN_CELL=14]="IN_CELL",s[s.IN_SELECT=15]="IN_SELECT",s[s.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",s[s.IN_TEMPLATE=17]="IN_TEMPLATE",s[s.AFTER_BODY=18]="AFTER_BODY",s[s.IN_FRAMESET=19]="IN_FRAMESET",s[s.AFTER_FRAMESET=20]="AFTER_FRAMESET",s[s.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",s[s.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let ca={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},cb=new Set([E.TABLE,E.TBODY,E.TFOOT,E.THEAD,E.TR]),cc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:bX,onParseError:null};class cd{constructor(a,b,c=null,d=null){this.fragmentContext=c,this.scriptHandler=d,this.currentToken=null,this.stopped=!1,this.insertionMode=H.INITIAL,this.originalInsertionMode=H.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...cc,...a},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=b?b:this.treeAdapter.createDocument(),this.tokenizer=new bI(this.options,this),this.activeFormattingElements=new bW(this.treeAdapter),this.fragmentContextID=c?by(this.treeAdapter.getTagName(c)):E.UNKNOWN,this._setContextModes(null!=c?c:this.document,this.fragmentContextID),this.openElements=new bU(this.document,this.treeAdapter,this)}static parse(a,b){let c=new this(b);return c.tokenizer.write(a,!0),c.document}static getFragmentParser(a,b){let c={...cc,...b};null!=a||(a=c.treeAdapter.createElement(D.TEMPLATE,A.HTML,[]));let d=c.treeAdapter.createElement("documentmock",A.HTML,[]),e=new this(c,d,a);return e.fragmentContextID===E.TEMPLATE&&e.tmplInsertionModeStack.unshift(H.IN_TEMPLATE),e._initTokenizerForFragmentParsing(),e._insertFakeRootElement(),e._resetInsertionMode(),e._findFormInFragmentContext(),e}getFragment(){let a=this.treeAdapter.getFirstChild(this.document),b=this.treeAdapter.createDocumentFragment();return this._adoptNodes(a,b),b}_err(a,b,c){var d;if(!this.onParseError)return;let e=null!=(d=a.location)?d:ca,f={code:b,startLine:e.startLine,startCol:e.startCol,startOffset:e.startOffset,endLine:c?e.startLine:e.endLine,endCol:c?e.startCol:e.endCol,endOffset:c?e.startOffset:e.endOffset};this.onParseError(f)}onItemPush(a,b,c){var d,e;null==(e=(d=this.treeAdapter).onItemPush)||e.call(d,a),c&&this.openElements.stackTop>0&&this._setContextModes(a,b)}onItemPop(a,b){var c,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(a,this.currentToken),null==(d=(c=this.treeAdapter).onItemPop)||d.call(c,a,this.openElements.current),b){let a,b;0===this.openElements.stackTop&&this.fragmentContext?(a=this.fragmentContext,b=this.fragmentContextID):{current:a,currentTagId:b}=this.openElements,this._setContextModes(a,b)}}_setContextModes(a,b){let c=a===this.document||a&&this.treeAdapter.getNamespaceURI(a)===A.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&void 0!==a&&void 0!==b&&!this._isIntegrationPoint(b,a)}_switchToTextParsing(a,b){this._insertElement(a,A.HTML),this.tokenizer.state=b,this.originalInsertionMode=this.insertionMode,this.insertionMode=H.TEXT}switchToPlaintextParsing(){this.insertionMode=H.TEXT,this.originalInsertionMode=H.IN_BODY,this.tokenizer.state=bC.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let a=this.fragmentContext;for(;a;){if(this.treeAdapter.getTagName(a)===D.FORM){this.formElement=a;break}a=this.treeAdapter.getParentNode(a)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===A.HTML)switch(this.fragmentContextID){case E.TITLE:case E.TEXTAREA:this.tokenizer.state=bC.RCDATA;break;case E.STYLE:case E.XMP:case E.IFRAME:case E.NOEMBED:case E.NOFRAMES:case E.NOSCRIPT:this.tokenizer.state=bC.RAWTEXT;break;case E.SCRIPT:this.tokenizer.state=bC.SCRIPT_DATA;break;case E.PLAINTEXT:this.tokenizer.state=bC.PLAINTEXT}}_setDocumentType(a){let b=a.name||"",c=a.publicId||"",d=a.systemId||"";if(this.treeAdapter.setDocumentType(this.document,b,c,d),a.location){let b=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));b&&this.treeAdapter.setNodeSourceCodeLocation(b,a.location)}}_attachElementToTree(a,b){if(this.options.sourceCodeLocationInfo){let c=b&&{...b,startTag:b};this.treeAdapter.setNodeSourceCodeLocation(a,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(a);else{let b=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=b?b:this.document,a)}}_appendElement(a,b){let c=this.treeAdapter.createElement(a.tagName,b,a.attrs);this._attachElementToTree(c,a.location)}_insertElement(a,b){let c=this.treeAdapter.createElement(a.tagName,b,a.attrs);this._attachElementToTree(c,a.location),this.openElements.push(c,a.tagID)}_insertFakeElement(a,b){let c=this.treeAdapter.createElement(a,A.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,b)}_insertTemplate(a){let b=this.treeAdapter.createElement(a.tagName,A.HTML,a.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(b,c),this._attachElementToTree(b,a.location),this.openElements.push(b,a.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,null)}_insertFakeRootElement(){let a=this.treeAdapter.createElement(D.HTML,A.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,null),this.treeAdapter.appendChild(this.openElements.current,a),this.openElements.push(a,E.HTML)}_appendCommentNode(a,b){let c=this.treeAdapter.createCommentNode(a.data);this.treeAdapter.appendChild(b,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,a.location)}_insertCharacters(a){let b,c;if(this._shouldFosterParentOnInsertion()?({parent:b,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(b,a.chars,c):this.treeAdapter.insertText(b,a.chars)):(b=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(b,a.chars)),!a.location)return;let d=this.treeAdapter.getChildNodes(b),e=c?d.lastIndexOf(c):d.length,f=d[e-1];if(this.treeAdapter.getNodeSourceCodeLocation(f)){let{endLine:b,endCol:c,endOffset:d}=a.location;this.treeAdapter.updateNodeSourceCodeLocation(f,{endLine:b,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(f,a.location)}_adoptNodes(a,b){for(let c=this.treeAdapter.getFirstChild(a);c;c=this.treeAdapter.getFirstChild(a))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(b,c)}_setEndLocation(a,b){if(this.treeAdapter.getNodeSourceCodeLocation(a)&&b.location){let c=b.location,d=this.treeAdapter.getTagName(a),e=b.type===v.END_TAG&&d===b.tagName?{endTag:{...c},endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(a,e)}}shouldProcessStartTagTokenInForeignContent(a){let b,c;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(b=this.fragmentContext,c=this.fragmentContextID):{current:b,currentTagId:c}=this.openElements,(a.tagID!==E.SVG||this.treeAdapter.getTagName(b)!==D.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(b)!==A.MATHML)&&(this.tokenizer.inForeignNode||(a.tagID===E.MGLYPH||a.tagID===E.MALIGNMARK)&&void 0!==c&&!this._isIntegrationPoint(c,b,A.HTML)))}_processToken(a){switch(a.type){case v.CHARACTER:this.onCharacter(a);break;case v.NULL_CHARACTER:this.onNullCharacter(a);break;case v.COMMENT:this.onComment(a);break;case v.DOCTYPE:this.onDoctype(a);break;case v.START_TAG:this._processStartTag(a);break;case v.END_TAG:this.onEndTag(a);break;case v.EOF:this.onEof(a);break;case v.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(a)}}_isIntegrationPoint(a,b,c){let d=this.treeAdapter.getNamespaceURI(b),e=this.treeAdapter.getAttrList(b);return(!c||c===A.HTML)&&function(a,b,c){if(b===A.MATHML&&a===E.ANNOTATION_XML){for(let a=0;a<c.length;a++)if(c[a].name===B.ENCODING){let b=c[a].value.toLowerCase();return"text/html"===b||"application/xhtml+xml"===b}}return b===A.SVG&&(a===E.FOREIGN_OBJECT||a===E.DESC||a===E.TITLE)}(a,d,e)||(!c||c===A.MATHML)&&d===A.MATHML&&(a===E.MI||a===E.MO||a===E.MN||a===E.MS||a===E.MTEXT)}_reconstructActiveFormattingElements(){let a=this.activeFormattingElements.entries.length;if(a){let b=this.activeFormattingElements.entries.findIndex(a=>a.type===G.Marker||this.openElements.contains(a.element)),c=-1===b?a-1:b-1;for(let a=c;a>=0;a--){let b=this.activeFormattingElements.entries[a];this._insertElement(b.token,this.treeAdapter.getNamespaceURI(b.element)),b.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=H.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(E.P),this.openElements.popUntilTagNamePopped(E.P)}_resetInsertionMode(){for(let a=this.openElements.stackTop;a>=0;a--)switch(0===a&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[a]){case E.TR:this.insertionMode=H.IN_ROW;return;case E.TBODY:case E.THEAD:case E.TFOOT:this.insertionMode=H.IN_TABLE_BODY;return;case E.CAPTION:this.insertionMode=H.IN_CAPTION;return;case E.COLGROUP:this.insertionMode=H.IN_COLUMN_GROUP;return;case E.TABLE:this.insertionMode=H.IN_TABLE;return;case E.BODY:this.insertionMode=H.IN_BODY;return;case E.FRAMESET:this.insertionMode=H.IN_FRAMESET;return;case E.SELECT:return void this._resetInsertionModeForSelect(a);case E.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case E.HTML:this.insertionMode=this.headElement?H.AFTER_HEAD:H.BEFORE_HEAD;return;case E.TD:case E.TH:if(a>0){this.insertionMode=H.IN_CELL;return}break;case E.HEAD:if(a>0){this.insertionMode=H.IN_HEAD;return}}this.insertionMode=H.IN_BODY}_resetInsertionModeForSelect(a){if(a>0)for(let b=a-1;b>0;b--){let a=this.openElements.tagIDs[b];if(a===E.TEMPLATE)break;if(a===E.TABLE){this.insertionMode=H.IN_SELECT_IN_TABLE;return}}this.insertionMode=H.IN_SELECT}_isElementCausesFosterParenting(a){return cb.has(a)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let a=this.openElements.stackTop;a>=0;a--){let b=this.openElements.items[a];switch(this.openElements.tagIDs[a]){case E.TEMPLATE:if(this.treeAdapter.getNamespaceURI(b)===A.HTML)return{parent:this.treeAdapter.getTemplateContent(b),beforeElement:null};break;case E.TABLE:{let c=this.treeAdapter.getParentNode(b);if(c)return{parent:c,beforeElement:b};return{parent:this.openElements.items[a-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(a){let b=this._findFosterParentingLocation();b.beforeElement?this.treeAdapter.insertBefore(b.parent,a,b.beforeElement):this.treeAdapter.appendChild(b.parent,a)}_isSpecialElement(a,b){return bA[this.treeAdapter.getNamespaceURI(a)].has(b)}onCharacter(a){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var b,c;return void(b=this,c=a,b._insertCharacters(c),b.framesetOk=!1)}switch(this.insertionMode){case H.INITIAL:ch(this,a);break;case H.BEFORE_HTML:ci(this,a);break;case H.BEFORE_HEAD:cj(this,a);break;case H.IN_HEAD:cm(this,a);break;case H.IN_HEAD_NO_SCRIPT:cn(this,a);break;case H.AFTER_HEAD:co(this,a);break;case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:cr(this,a);break;case H.TEXT:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:this._insertCharacters(a);break;case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:cA(this,a);break;case H.IN_TABLE_TEXT:cF(this,a);break;case H.IN_COLUMN_GROUP:cJ(this,a);break;case H.AFTER_BODY:cS(this,a);break;case H.AFTER_AFTER_BODY:cT(this,a)}}onNullCharacter(a){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var b,c;return void(b=this,(c=a).chars="�",b._insertCharacters(c))}switch(this.insertionMode){case H.INITIAL:ch(this,a);break;case H.BEFORE_HTML:ci(this,a);break;case H.BEFORE_HEAD:cj(this,a);break;case H.IN_HEAD:cm(this,a);break;case H.IN_HEAD_NO_SCRIPT:cn(this,a);break;case H.AFTER_HEAD:co(this,a);break;case H.TEXT:this._insertCharacters(a);break;case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:cA(this,a);break;case H.IN_COLUMN_GROUP:cJ(this,a);break;case H.AFTER_BODY:cS(this,a);break;case H.AFTER_AFTER_BODY:cT(this,a)}}onComment(a){var b,c,d,e;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void cf(this,a);switch(this.insertionMode){case H.INITIAL:case H.BEFORE_HTML:case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_TEMPLATE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:cf(this,a);break;case H.IN_TABLE_TEXT:cG(this,a);break;case H.AFTER_BODY:b=this,c=a,b._appendCommentNode(c,b.openElements.items[0]);break;case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:d=this,e=a,d._appendCommentNode(e,d.document)}}onDoctype(a){switch(this.skipNextNewLine=!1,this.insertionMode){case H.INITIAL:!function(a,b){a._setDocumentType(b);let c=b.forceQuirks?C.QUIRKS:function(a){if(a.name!==bY)return C.QUIRKS;let{systemId:b}=a;if(b&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===b.toLowerCase())return C.QUIRKS;let{publicId:c}=a;if(null!==c){if(c=c.toLowerCase(),b_.has(c))return C.QUIRKS;let a=null===b?b$:bZ;if(b2(c,a))return C.QUIRKS;if(b2(c,a=null===b?b0:b1))return C.LIMITED_QUIRKS}return C.NO_QUIRKS}(b);(b.name!==bY||null!==b.publicId||null!==b.systemId&&"about:legacy-compat"!==b.systemId)&&a._err(b,u.nonConformingDoctype),a.treeAdapter.setDocumentMode(a.document,c),a.insertionMode=H.BEFORE_HTML}(this,a);break;case H.BEFORE_HEAD:case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:this._err(a,u.misplacedDoctype);break;case H.IN_TABLE_TEXT:cG(this,a)}}onStartTag(a){this.skipNextNewLine=!1,this.currentToken=a,this._processStartTag(a),a.selfClosing&&!a.ackSelfClosing&&this._err(a,u.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(a){this.shouldProcessStartTagTokenInForeignContent(a)?function(a,b){let c;if((c=b.tagID)===E.FONT&&b.attrs.some(({name:a})=>a===B.COLOR||a===B.SIZE||a===B.FACE)||b6.has(c))cU(a),a._startTagOutsideForeignContent(b);else{let c=a._getAdjustedCurrentElement(),d=a.treeAdapter.getNamespaceURI(c);if(d===A.MATHML)b7(b);else if(d===A.SVG){let a;null!=(a=b5.get(b.tagName))&&(b.tagName=a,b.tagID=by(b.tagName)),b8(b)}b9(b),b.selfClosing?a._appendElement(b,d):a._insertElement(b,d),b.ackSelfClosing=!0}}(this,a):this._startTagOutsideForeignContent(a)}_startTagOutsideForeignContent(a){switch(this.insertionMode){case H.INITIAL:ch(this,a);break;case H.BEFORE_HTML:b=this,(c=a).tagID===E.HTML?(b._insertElement(c,A.HTML),b.insertionMode=H.BEFORE_HEAD):ci(b,c);break;case H.BEFORE_HEAD:var b,c,d,e,f,g,h,i,j,k,l,m,n=this,o=a;switch(o.tagID){case E.HTML:cw(n,o);break;case E.HEAD:n._insertElement(o,A.HTML),n.headElement=n.openElements.current,n.insertionMode=H.IN_HEAD;break;default:cj(n,o)}break;case H.IN_HEAD:ck(this,a);break;case H.IN_HEAD_NO_SCRIPT:var p=this,q=a;switch(q.tagID){case E.HTML:cw(p,q);break;case E.BASEFONT:case E.BGSOUND:case E.HEAD:case E.LINK:case E.META:case E.NOFRAMES:case E.STYLE:ck(p,q);break;case E.NOSCRIPT:p._err(q,u.nestedNoscriptInHead);break;default:cn(p,q)}break;case H.AFTER_HEAD:var r=this,s=a;switch(s.tagID){case E.HTML:cw(r,s);break;case E.BODY:r._insertElement(s,A.HTML),r.framesetOk=!1,r.insertionMode=H.IN_BODY;break;case E.FRAMESET:r._insertElement(s,A.HTML),r.insertionMode=H.IN_FRAMESET;break;case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:case E.NOFRAMES:case E.SCRIPT:case E.STYLE:case E.TEMPLATE:case E.TITLE:r._err(s,u.abandonedHeadElementChild),r.openElements.push(r.headElement,E.HEAD),ck(r,s),r.openElements.remove(r.headElement);break;case E.HEAD:r._err(s,u.misplacedStartTagForHeadElement);break;default:co(r,s)}break;case H.IN_BODY:cw(this,a);break;case H.IN_TABLE:cB(this,a);break;case H.IN_TABLE_TEXT:cG(this,a);break;case H.IN_CAPTION:let t;d=this,t=(e=a).tagID,cH.has(t)?d.openElements.hasInTableScope(E.CAPTION)&&(d.openElements.generateImpliedEndTags(),d.openElements.popUntilTagNamePopped(E.CAPTION),d.activeFormattingElements.clearToLastMarker(),d.insertionMode=H.IN_TABLE,cB(d,e)):cw(d,e);break;case H.IN_COLUMN_GROUP:cI(this,a);break;case H.IN_TABLE_BODY:cK(this,a);break;case H.IN_ROW:cM(this,a);break;case H.IN_CELL:let v;f=this,v=(g=a).tagID,cH.has(v)?(f.openElements.hasInTableScope(E.TD)||f.openElements.hasInTableScope(E.TH))&&(f._closeTableCell(),cM(f,g)):cw(f,g);break;case H.IN_SELECT:cO(this,a);break;case H.IN_SELECT_IN_TABLE:let w;h=this,(w=(i=a).tagID)===E.CAPTION||w===E.TABLE||w===E.TBODY||w===E.TFOOT||w===E.THEAD||w===E.TR||w===E.TD||w===E.TH?(h.openElements.popUntilTagNamePopped(E.SELECT),h._resetInsertionMode(),h._processStartTag(i)):cO(h,i);break;case H.IN_TEMPLATE:var x=this,y=a;switch(y.tagID){case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:case E.NOFRAMES:case E.SCRIPT:case E.STYLE:case E.TEMPLATE:case E.TITLE:ck(x,y);break;case E.CAPTION:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:x.tmplInsertionModeStack[0]=H.IN_TABLE,x.insertionMode=H.IN_TABLE,cB(x,y);break;case E.COL:x.tmplInsertionModeStack[0]=H.IN_COLUMN_GROUP,x.insertionMode=H.IN_COLUMN_GROUP,cI(x,y);break;case E.TR:x.tmplInsertionModeStack[0]=H.IN_TABLE_BODY,x.insertionMode=H.IN_TABLE_BODY,cK(x,y);break;case E.TD:case E.TH:x.tmplInsertionModeStack[0]=H.IN_ROW,x.insertionMode=H.IN_ROW,cM(x,y);break;default:x.tmplInsertionModeStack[0]=H.IN_BODY,x.insertionMode=H.IN_BODY,cw(x,y)}break;case H.AFTER_BODY:j=this,(k=a).tagID===E.HTML?cw(j,k):cS(j,k);break;case H.IN_FRAMESET:var z=this,B=a;switch(B.tagID){case E.HTML:cw(z,B);break;case E.FRAMESET:z._insertElement(B,A.HTML);break;case E.FRAME:z._appendElement(B,A.HTML),B.ackSelfClosing=!0;break;case E.NOFRAMES:ck(z,B)}break;case H.AFTER_FRAMESET:var C=this,D=a;switch(D.tagID){case E.HTML:cw(C,D);break;case E.NOFRAMES:ck(C,D)}break;case H.AFTER_AFTER_BODY:l=this,(m=a).tagID===E.HTML?cw(l,m):cT(l,m);break;case H.AFTER_AFTER_FRAMESET:var F=this,G=a;switch(G.tagID){case E.HTML:cw(F,G);break;case E.NOFRAMES:ck(F,G)}}}onEndTag(a){this.skipNextNewLine=!1,this.currentToken=a,this.currentNotInHTML?function(a,b){if(b.tagID===E.P||b.tagID===E.BR){cU(a),a._endTagOutsideForeignContent(b);return}for(let c=a.openElements.stackTop;c>0;c--){let d=a.openElements.items[c];if(a.treeAdapter.getNamespaceURI(d)===A.HTML){a._endTagOutsideForeignContent(b);break}let e=a.treeAdapter.getTagName(d);if(e.toLowerCase()===b.tagName){b.tagName=e,a.openElements.shortenToLength(c);break}}}(this,a):this._endTagOutsideForeignContent(a)}_endTagOutsideForeignContent(a){switch(this.insertionMode){case H.INITIAL:ch(this,a);break;case H.BEFORE_HTML:let b;d=this,((b=(e=a).tagID)===E.HTML||b===E.HEAD||b===E.BODY||b===E.BR)&&ci(d,e);break;case H.BEFORE_HEAD:let c;f=this,(c=(g=a).tagID)===E.HEAD||c===E.BODY||c===E.HTML||c===E.BR?cj(f,g):f._err(g,u.endTagWithoutMatchingOpenElement);break;case H.IN_HEAD:var d,e,f,g,h,i,j,k,l,m,n,o,p=this,q=a;switch(q.tagID){case E.HEAD:p.openElements.pop(),p.insertionMode=H.AFTER_HEAD;break;case E.BODY:case E.BR:case E.HTML:cm(p,q);break;case E.TEMPLATE:cl(p,q);break;default:p._err(q,u.endTagWithoutMatchingOpenElement)}break;case H.IN_HEAD_NO_SCRIPT:var r=this,s=a;switch(s.tagID){case E.NOSCRIPT:r.openElements.pop(),r.insertionMode=H.IN_HEAD;break;case E.BR:cn(r,s);break;default:r._err(s,u.endTagWithoutMatchingOpenElement)}break;case H.AFTER_HEAD:var t=this,v=a;switch(v.tagID){case E.BODY:case E.HTML:case E.BR:co(t,v);break;case E.TEMPLATE:cl(t,v);break;default:t._err(v,u.endTagWithoutMatchingOpenElement)}break;case H.IN_BODY:cy(this,a);break;case H.TEXT:h=this,a.tagID===E.SCRIPT&&(null==(i=h.scriptHandler)||i.call(h,h.openElements.current)),h.openElements.pop(),h.insertionMode=h.originalInsertionMode;break;case H.IN_TABLE:cC(this,a);break;case H.IN_TABLE_TEXT:cG(this,a);break;case H.IN_CAPTION:var w=this,x=a;let y=x.tagID;switch(y){case E.CAPTION:case E.TABLE:w.openElements.hasInTableScope(E.CAPTION)&&(w.openElements.generateImpliedEndTags(),w.openElements.popUntilTagNamePopped(E.CAPTION),w.activeFormattingElements.clearToLastMarker(),w.insertionMode=H.IN_TABLE,y===E.TABLE&&cC(w,x));break;case E.BODY:case E.COL:case E.COLGROUP:case E.HTML:case E.TBODY:case E.TD:case E.TFOOT:case E.TH:case E.THEAD:case E.TR:break;default:cy(w,x)}break;case H.IN_COLUMN_GROUP:var z=this,A=a;switch(A.tagID){case E.COLGROUP:z.openElements.currentTagId===E.COLGROUP&&(z.openElements.pop(),z.insertionMode=H.IN_TABLE);break;case E.TEMPLATE:cl(z,A);break;case E.COL:break;default:cJ(z,A)}break;case H.IN_TABLE_BODY:cL(this,a);break;case H.IN_ROW:cN(this,a);break;case H.IN_CELL:var B=this,C=a;let D=C.tagID;switch(D){case E.TD:case E.TH:B.openElements.hasInTableScope(D)&&(B.openElements.generateImpliedEndTags(),B.openElements.popUntilTagNamePopped(D),B.activeFormattingElements.clearToLastMarker(),B.insertionMode=H.IN_ROW);break;case E.TABLE:case E.TBODY:case E.TFOOT:case E.THEAD:case E.TR:B.openElements.hasInTableScope(D)&&(B._closeTableCell(),cN(B,C));break;case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:break;default:cy(B,C)}break;case H.IN_SELECT:cP(this,a);break;case H.IN_SELECT_IN_TABLE:let F;j=this,(F=(k=a).tagID)===E.CAPTION||F===E.TABLE||F===E.TBODY||F===E.TFOOT||F===E.THEAD||F===E.TR||F===E.TD||F===E.TH?j.openElements.hasInTableScope(F)&&(j.openElements.popUntilTagNamePopped(E.SELECT),j._resetInsertionMode(),j.onEndTag(k)):cP(j,k);break;case H.IN_TEMPLATE:l=this,(m=a).tagID===E.TEMPLATE&&cl(l,m);break;case H.AFTER_BODY:cR(this,a);break;case H.IN_FRAMESET:n=this,a.tagID===E.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),n.fragmentContext||n.openElements.currentTagId===E.FRAMESET||(n.insertionMode=H.AFTER_FRAMESET));break;case H.AFTER_FRAMESET:o=this,a.tagID===E.HTML&&(o.insertionMode=H.AFTER_AFTER_FRAMESET);break;case H.AFTER_AFTER_BODY:cT(this,a)}}onEof(a){switch(this.insertionMode){case H.INITIAL:ch(this,a);break;case H.BEFORE_HTML:ci(this,a);break;case H.BEFORE_HEAD:cj(this,a);break;case H.IN_HEAD:cm(this,a);break;case H.IN_HEAD_NO_SCRIPT:cn(this,a);break;case H.AFTER_HEAD:co(this,a);break;case H.IN_BODY:case H.IN_TABLE:case H.IN_CAPTION:case H.IN_COLUMN_GROUP:case H.IN_TABLE_BODY:case H.IN_ROW:case H.IN_CELL:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:cz(this,a);break;case H.TEXT:var b,c;b=this,c=a,b._err(c,u.eofInElementThatCanContainOnlyText),b.openElements.pop(),b.insertionMode=b.originalInsertionMode,b.onEof(c);break;case H.IN_TABLE_TEXT:cG(this,a);break;case H.IN_TEMPLATE:cQ(this,a);break;case H.AFTER_BODY:case H.IN_FRAMESET:case H.AFTER_FRAMESET:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:cg(this,a)}}onWhitespaceCharacter(a){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,a.chars.charCodeAt(0)===t.LINE_FEED)){if(1===a.chars.length)return;a.chars=a.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(a);switch(this.insertionMode){case H.IN_HEAD:case H.IN_HEAD_NO_SCRIPT:case H.AFTER_HEAD:case H.TEXT:case H.IN_COLUMN_GROUP:case H.IN_SELECT:case H.IN_SELECT_IN_TABLE:case H.IN_FRAMESET:case H.AFTER_FRAMESET:this._insertCharacters(a);break;case H.IN_BODY:case H.IN_CAPTION:case H.IN_CELL:case H.IN_TEMPLATE:case H.AFTER_BODY:case H.AFTER_AFTER_BODY:case H.AFTER_AFTER_FRAMESET:cq(this,a);break;case H.IN_TABLE:case H.IN_TABLE_BODY:case H.IN_ROW:cA(this,a);break;case H.IN_TABLE_TEXT:cE(this,a)}}}function ce(a,b){for(let c=0;c<8;c++){let c=function(a,b){let c=a.activeFormattingElements.getElementEntryInScopeWithTagName(b.tagName);return c?a.openElements.contains(c.element)?a.openElements.hasInScope(b.tagID)||(c=null):(a.activeFormattingElements.removeEntry(c),c=null):cx(a,b),c}(a,b);if(!c)break;let d=function(a,b){let c=null,d=a.openElements.stackTop;for(;d>=0;d--){let e=a.openElements.items[d];if(e===b.element)break;a._isSpecialElement(e,a.openElements.tagIDs[d])&&(c=e)}return c||(a.openElements.shortenToLength(Math.max(d,0)),a.activeFormattingElements.removeEntry(b)),c}(a,c);if(!d)break;a.activeFormattingElements.bookmark=c;let e=function(a,b,c){let d=b,e=a.openElements.getCommonAncestor(b);for(let f=0,g=e;g!==c;f++,g=e){e=a.openElements.getCommonAncestor(g);let c=a.activeFormattingElements.getElementEntry(g),h=c&&f>=3;!c||h?(h&&a.activeFormattingElements.removeEntry(c),a.openElements.remove(g)):(g=function(a,b){let c=a.treeAdapter.getNamespaceURI(b.element),d=a.treeAdapter.createElement(b.token.tagName,c,b.token.attrs);return a.openElements.replace(b.element,d),b.element=d,d}(a,c),d===b&&(a.activeFormattingElements.bookmark=c),a.treeAdapter.detachNode(d),a.treeAdapter.appendChild(g,d),d=g)}return d}(a,d,c.element),f=a.openElements.getCommonAncestor(c.element);a.treeAdapter.detachNode(e),f&&function(a,b,c){let d=by(a.treeAdapter.getTagName(b));if(a._isElementCausesFosterParenting(d))a._fosterParentElement(c);else{let e=a.treeAdapter.getNamespaceURI(b);d===E.TEMPLATE&&e===A.HTML&&(b=a.treeAdapter.getTemplateContent(b)),a.treeAdapter.appendChild(b,c)}}(a,f,e),function(a,b,c){let d=a.treeAdapter.getNamespaceURI(c.element),{token:e}=c,f=a.treeAdapter.createElement(e.tagName,d,e.attrs);a._adoptNodes(b,f),a.treeAdapter.appendChild(b,f),a.activeFormattingElements.insertElementAfterBookmark(f,e),a.activeFormattingElements.removeEntry(c),a.openElements.remove(c.element),a.openElements.insertAfter(b,f,e.tagID)}(a,d,c)}}function cf(a,b){a._appendCommentNode(b,a.openElements.currentTmplContentOrNode)}function cg(a,b){if(a.stopped=!0,b.location){let c=2*!a.fragmentContext;for(let d=a.openElements.stackTop;d>=c;d--)a._setEndLocation(a.openElements.items[d],b);if(!a.fragmentContext&&a.openElements.stackTop>=0){let c=a.openElements.items[0],d=a.treeAdapter.getNodeSourceCodeLocation(c);if(d&&!d.endTag&&(a._setEndLocation(c,b),a.openElements.stackTop>=1)){let c=a.openElements.items[1],d=a.treeAdapter.getNodeSourceCodeLocation(c);d&&!d.endTag&&a._setEndLocation(c,b)}}}}function ch(a,b){a._err(b,u.missingDoctype,!0),a.treeAdapter.setDocumentMode(a.document,C.QUIRKS),a.insertionMode=H.BEFORE_HTML,a._processToken(b)}function ci(a,b){a._insertFakeRootElement(),a.insertionMode=H.BEFORE_HEAD,a._processToken(b)}function cj(a,b){a._insertFakeElement(D.HEAD,E.HEAD),a.headElement=a.openElements.current,a.insertionMode=H.IN_HEAD,a._processToken(b)}function ck(a,b){switch(b.tagID){case E.HTML:cw(a,b);break;case E.BASE:case E.BASEFONT:case E.BGSOUND:case E.LINK:case E.META:a._appendElement(b,A.HTML),b.ackSelfClosing=!0;break;case E.TITLE:a._switchToTextParsing(b,bC.RCDATA);break;case E.NOSCRIPT:a.options.scriptingEnabled?a._switchToTextParsing(b,bC.RAWTEXT):(a._insertElement(b,A.HTML),a.insertionMode=H.IN_HEAD_NO_SCRIPT);break;case E.NOFRAMES:case E.STYLE:a._switchToTextParsing(b,bC.RAWTEXT);break;case E.SCRIPT:a._switchToTextParsing(b,bC.SCRIPT_DATA);break;case E.TEMPLATE:a._insertTemplate(b),a.activeFormattingElements.insertMarker(),a.framesetOk=!1,a.insertionMode=H.IN_TEMPLATE,a.tmplInsertionModeStack.unshift(H.IN_TEMPLATE);break;case E.HEAD:a._err(b,u.misplacedStartTagForHeadElement);break;default:cm(a,b)}}function cl(a,b){a.openElements.tmplCount>0?(a.openElements.generateImpliedEndTagsThoroughly(),a.openElements.currentTagId!==E.TEMPLATE&&a._err(b,u.closingOfElementWithOpenChildElements),a.openElements.popUntilTagNamePopped(E.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a.tmplInsertionModeStack.shift(),a._resetInsertionMode()):a._err(b,u.endTagWithoutMatchingOpenElement)}function cm(a,b){a.openElements.pop(),a.insertionMode=H.AFTER_HEAD,a._processToken(b)}function cn(a,b){let c=b.type===v.EOF?u.openElementsLeftAfterEof:u.disallowedContentInNoscriptInHead;a._err(b,c),a.openElements.pop(),a.insertionMode=H.IN_HEAD,a._processToken(b)}function co(a,b){a._insertFakeElement(D.BODY,E.BODY),a.insertionMode=H.IN_BODY,cp(a,b)}function cp(a,b){switch(b.type){case v.CHARACTER:cr(a,b);break;case v.WHITESPACE_CHARACTER:cq(a,b);break;case v.COMMENT:cf(a,b);break;case v.START_TAG:cw(a,b);break;case v.END_TAG:cy(a,b);break;case v.EOF:cz(a,b)}}function cq(a,b){a._reconstructActiveFormattingElements(),a._insertCharacters(b)}function cr(a,b){a._reconstructActiveFormattingElements(),a._insertCharacters(b),a.framesetOk=!1}function cs(a,b){a._reconstructActiveFormattingElements(),a._appendElement(b,A.HTML),a.framesetOk=!1,b.ackSelfClosing=!0}function ct(a){let b=bs(a,B.TYPE);return null!=b&&"hidden"===b.toLowerCase()}function cu(a,b){a._switchToTextParsing(b,bC.RAWTEXT)}function cv(a,b){a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML)}function cw(a,b){switch(b.tagID){case E.I:case E.S:case E.B:case E.U:case E.EM:case E.TT:case E.BIG:case E.CODE:case E.FONT:case E.SMALL:case E.STRIKE:case E.STRONG:a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case E.A:let c;(c=a.activeFormattingElements.getElementEntryInScopeWithTagName(D.A))&&(ce(a,b),a.openElements.remove(c.element),a.activeFormattingElements.removeEntry(c)),a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case E.H1:case E.H2:case E.H3:case E.H4:case E.H5:case E.H6:a.openElements.hasInButtonScope(E.P)&&a._closePElement(),void 0!==a.openElements.currentTagId&&bB.has(a.openElements.currentTagId)&&a.openElements.pop(),a._insertElement(b,A.HTML);break;case E.P:case E.DL:case E.OL:case E.UL:case E.DIV:case E.DIR:case E.NAV:case E.MAIN:case E.MENU:case E.ASIDE:case E.CENTER:case E.FIGURE:case E.FOOTER:case E.HEADER:case E.HGROUP:case E.DIALOG:case E.DETAILS:case E.ADDRESS:case E.ARTICLE:case E.SEARCH:case E.SECTION:case E.SUMMARY:case E.FIELDSET:case E.BLOCKQUOTE:case E.FIGCAPTION:a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._insertElement(b,A.HTML);break;case E.LI:case E.DD:case E.DT:a.framesetOk=!1;let d=b.tagID;for(let b=a.openElements.stackTop;b>=0;b--){let c=a.openElements.tagIDs[b];if(d===E.LI&&c===E.LI||(d===E.DD||d===E.DT)&&(c===E.DD||c===E.DT)){a.openElements.generateImpliedEndTagsWithExclusion(c),a.openElements.popUntilTagNamePopped(c);break}if(c!==E.ADDRESS&&c!==E.DIV&&c!==E.P&&a._isSpecialElement(a.openElements.items[b],c))break}a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._insertElement(b,A.HTML);break;case E.BR:case E.IMG:case E.WBR:case E.AREA:case E.EMBED:case E.KEYGEN:cs(a,b);break;case E.HR:a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._appendElement(b,A.HTML),a.framesetOk=!1,b.ackSelfClosing=!0;break;case E.RB:case E.RTC:a.openElements.hasInScope(E.RUBY)&&a.openElements.generateImpliedEndTags(),a._insertElement(b,A.HTML);break;case E.RT:case E.RP:a.openElements.hasInScope(E.RUBY)&&a.openElements.generateImpliedEndTagsWithExclusion(E.RTC),a._insertElement(b,A.HTML);break;case E.PRE:case E.LISTING:a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._insertElement(b,A.HTML),a.skipNextNewLine=!0,a.framesetOk=!1;break;case E.XMP:a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._reconstructActiveFormattingElements(),a.framesetOk=!1,a._switchToTextParsing(b,bC.RAWTEXT);break;case E.SVG:a._reconstructActiveFormattingElements(),b8(b),b9(b),b.selfClosing?a._appendElement(b,A.SVG):a._insertElement(b,A.SVG),b.ackSelfClosing=!0;break;case E.HTML:0===a.openElements.tmplCount&&a.treeAdapter.adoptAttributes(a.openElements.items[0],b.attrs);break;case E.BASE:case E.LINK:case E.META:case E.STYLE:case E.TITLE:case E.SCRIPT:case E.BGSOUND:case E.BASEFONT:case E.TEMPLATE:ck(a,b);break;case E.BODY:let e;(e=a.openElements.tryPeekProperlyNestedBodyElement())&&0===a.openElements.tmplCount&&(a.framesetOk=!1,a.treeAdapter.adoptAttributes(e,b.attrs));break;case E.FORM:let f;f=a.openElements.tmplCount>0,(!a.formElement||f)&&(a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._insertElement(b,A.HTML),f||(a.formElement=a.openElements.current));break;case E.NOBR:a._reconstructActiveFormattingElements(),a.openElements.hasInScope(E.NOBR)&&(ce(a,b),a._reconstructActiveFormattingElements()),a._insertElement(b,A.HTML),a.activeFormattingElements.pushElement(a.openElements.current,b);break;case E.MATH:a._reconstructActiveFormattingElements(),b7(b),b9(b),b.selfClosing?a._appendElement(b,A.MATHML):a._insertElement(b,A.MATHML),b.ackSelfClosing=!0;break;case E.TABLE:a.treeAdapter.getDocumentMode(a.document)!==C.QUIRKS&&a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._insertElement(b,A.HTML),a.framesetOk=!1,a.insertionMode=H.IN_TABLE;break;case E.INPUT:a._reconstructActiveFormattingElements(),a._appendElement(b,A.HTML),ct(b)||(a.framesetOk=!1),b.ackSelfClosing=!0;break;case E.PARAM:case E.TRACK:case E.SOURCE:a._appendElement(b,A.HTML),b.ackSelfClosing=!0;break;case E.IMAGE:b.tagName=D.IMG,b.tagID=E.IMG,cs(a,b);break;case E.BUTTON:a.openElements.hasInScope(E.BUTTON)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(E.BUTTON)),a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML),a.framesetOk=!1;break;case E.APPLET:case E.OBJECT:case E.MARQUEE:a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML),a.activeFormattingElements.insertMarker(),a.framesetOk=!1;break;case E.IFRAME:a.framesetOk=!1,a._switchToTextParsing(b,bC.RAWTEXT);break;case E.SELECT:a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML),a.framesetOk=!1,a.insertionMode=a.insertionMode===H.IN_TABLE||a.insertionMode===H.IN_CAPTION||a.insertionMode===H.IN_TABLE_BODY||a.insertionMode===H.IN_ROW||a.insertionMode===H.IN_CELL?H.IN_SELECT_IN_TABLE:H.IN_SELECT;break;case E.OPTION:case E.OPTGROUP:a.openElements.currentTagId===E.OPTION&&a.openElements.pop(),a._reconstructActiveFormattingElements(),a._insertElement(b,A.HTML);break;case E.NOEMBED:case E.NOFRAMES:cu(a,b);break;case E.FRAMESET:let g;g=a.openElements.tryPeekProperlyNestedBodyElement(),a.framesetOk&&g&&(a.treeAdapter.detachNode(g),a.openElements.popAllUpToHtmlElement(),a._insertElement(b,A.HTML),a.insertionMode=H.IN_FRAMESET);break;case E.TEXTAREA:a._insertElement(b,A.HTML),a.skipNextNewLine=!0,a.tokenizer.state=bC.RCDATA,a.originalInsertionMode=a.insertionMode,a.framesetOk=!1,a.insertionMode=H.TEXT;break;case E.NOSCRIPT:a.options.scriptingEnabled?cu(a,b):cv(a,b);break;case E.PLAINTEXT:a.openElements.hasInButtonScope(E.P)&&a._closePElement(),a._insertElement(b,A.HTML),a.tokenizer.state=bC.PLAINTEXT;break;case E.COL:case E.TH:case E.TD:case E.TR:case E.HEAD:case E.FRAME:case E.TBODY:case E.TFOOT:case E.THEAD:case E.CAPTION:case E.COLGROUP:break;default:cv(a,b)}}function cx(a,b){let c=b.tagName,d=b.tagID;for(let b=a.openElements.stackTop;b>0;b--){let e=a.openElements.items[b],f=a.openElements.tagIDs[b];if(d===f&&(d!==E.UNKNOWN||a.treeAdapter.getTagName(e)===c)){a.openElements.generateImpliedEndTagsWithExclusion(d),a.openElements.stackTop>=b&&a.openElements.shortenToLength(b);break}if(a._isSpecialElement(e,f))break}}function cy(a,b){switch(b.tagID){case E.A:case E.B:case E.I:case E.S:case E.U:case E.EM:case E.TT:case E.BIG:case E.CODE:case E.FONT:case E.NOBR:case E.SMALL:case E.STRIKE:case E.STRONG:ce(a,b);break;case E.P:a.openElements.hasInButtonScope(E.P)||a._insertFakeElement(D.P,E.P),a._closePElement();break;case E.DL:case E.UL:case E.OL:case E.DIR:case E.DIV:case E.NAV:case E.PRE:case E.MAIN:case E.MENU:case E.ASIDE:case E.BUTTON:case E.CENTER:case E.FIGURE:case E.FOOTER:case E.HEADER:case E.HGROUP:case E.DIALOG:case E.ADDRESS:case E.ARTICLE:case E.DETAILS:case E.SEARCH:case E.SECTION:case E.SUMMARY:case E.LISTING:case E.FIELDSET:case E.BLOCKQUOTE:case E.FIGCAPTION:let c;c=b.tagID,a.openElements.hasInScope(c)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(c));break;case E.LI:a.openElements.hasInListItemScope(E.LI)&&(a.openElements.generateImpliedEndTagsWithExclusion(E.LI),a.openElements.popUntilTagNamePopped(E.LI));break;case E.DD:case E.DT:let d;d=b.tagID,a.openElements.hasInScope(d)&&(a.openElements.generateImpliedEndTagsWithExclusion(d),a.openElements.popUntilTagNamePopped(d));break;case E.H1:case E.H2:case E.H3:case E.H4:case E.H5:case E.H6:a.openElements.hasNumberedHeaderInScope()&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilNumberedHeaderPopped());break;case E.BR:a._reconstructActiveFormattingElements(),a._insertFakeElement(D.BR,E.BR),a.openElements.pop(),a.framesetOk=!1;break;case E.BODY:if(a.openElements.hasInScope(E.BODY)&&(a.insertionMode=H.AFTER_BODY,a.options.sourceCodeLocationInfo)){let c=a.openElements.tryPeekProperlyNestedBodyElement();c&&a._setEndLocation(c,b)}break;case E.HTML:a.openElements.hasInScope(E.BODY)&&(a.insertionMode=H.AFTER_BODY,cR(a,b));break;case E.FORM:!function(a){let b=a.openElements.tmplCount>0,{formElement:c}=a;b||(a.formElement=null),(c||b)&&a.openElements.hasInScope(E.FORM)&&(a.openElements.generateImpliedEndTags(),b?a.openElements.popUntilTagNamePopped(E.FORM):c&&a.openElements.remove(c))}(a);break;case E.APPLET:case E.OBJECT:case E.MARQUEE:let e;e=b.tagID,a.openElements.hasInScope(e)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(e),a.activeFormattingElements.clearToLastMarker());break;case E.TEMPLATE:cl(a,b);break;default:cx(a,b)}}function cz(a,b){a.tmplInsertionModeStack.length>0?cQ(a,b):cg(a,b)}function cA(a,b){if(void 0!==a.openElements.currentTagId&&cb.has(a.openElements.currentTagId))switch(a.pendingCharacterTokens.length=0,a.hasNonWhitespacePendingCharacterToken=!1,a.originalInsertionMode=a.insertionMode,a.insertionMode=H.IN_TABLE_TEXT,b.type){case v.CHARACTER:cF(a,b);break;case v.WHITESPACE_CHARACTER:cE(a,b)}else cD(a,b)}function cB(a,b){switch(b.tagID){case E.TD:case E.TH:case E.TR:a.openElements.clearBackToTableContext(),a._insertFakeElement(D.TBODY,E.TBODY),a.insertionMode=H.IN_TABLE_BODY,cK(a,b);break;case E.STYLE:case E.SCRIPT:case E.TEMPLATE:ck(a,b);break;case E.COL:a.openElements.clearBackToTableContext(),a._insertFakeElement(D.COLGROUP,E.COLGROUP),a.insertionMode=H.IN_COLUMN_GROUP,cI(a,b);break;case E.FORM:a.formElement||0!==a.openElements.tmplCount||(a._insertElement(b,A.HTML),a.formElement=a.openElements.current,a.openElements.pop());break;case E.TABLE:a.openElements.hasInTableScope(E.TABLE)&&(a.openElements.popUntilTagNamePopped(E.TABLE),a._resetInsertionMode(),a._processStartTag(b));break;case E.TBODY:case E.TFOOT:case E.THEAD:a.openElements.clearBackToTableContext(),a._insertElement(b,A.HTML),a.insertionMode=H.IN_TABLE_BODY;break;case E.INPUT:ct(b)?a._appendElement(b,A.HTML):cD(a,b),b.ackSelfClosing=!0;break;case E.CAPTION:a.openElements.clearBackToTableContext(),a.activeFormattingElements.insertMarker(),a._insertElement(b,A.HTML),a.insertionMode=H.IN_CAPTION;break;case E.COLGROUP:a.openElements.clearBackToTableContext(),a._insertElement(b,A.HTML),a.insertionMode=H.IN_COLUMN_GROUP;break;default:cD(a,b)}}function cC(a,b){switch(b.tagID){case E.TABLE:a.openElements.hasInTableScope(E.TABLE)&&(a.openElements.popUntilTagNamePopped(E.TABLE),a._resetInsertionMode());break;case E.TEMPLATE:cl(a,b);break;case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TBODY:case E.TD:case E.TFOOT:case E.TH:case E.THEAD:case E.TR:break;default:cD(a,b)}}function cD(a,b){let c=a.fosterParentingEnabled;a.fosterParentingEnabled=!0,cp(a,b),a.fosterParentingEnabled=c}function cE(a,b){a.pendingCharacterTokens.push(b)}function cF(a,b){a.pendingCharacterTokens.push(b),a.hasNonWhitespacePendingCharacterToken=!0}function cG(a,b){let c=0;if(a.hasNonWhitespacePendingCharacterToken)for(;c<a.pendingCharacterTokens.length;c++)cD(a,a.pendingCharacterTokens[c]);else for(;c<a.pendingCharacterTokens.length;c++)a._insertCharacters(a.pendingCharacterTokens[c]);a.insertionMode=a.originalInsertionMode,a._processToken(b)}let cH=new Set([E.CAPTION,E.COL,E.COLGROUP,E.TBODY,E.TD,E.TFOOT,E.TH,E.THEAD,E.TR]);function cI(a,b){switch(b.tagID){case E.HTML:cw(a,b);break;case E.COL:a._appendElement(b,A.HTML),b.ackSelfClosing=!0;break;case E.TEMPLATE:ck(a,b);break;default:cJ(a,b)}}function cJ(a,b){a.openElements.currentTagId===E.COLGROUP&&(a.openElements.pop(),a.insertionMode=H.IN_TABLE,a._processToken(b))}function cK(a,b){switch(b.tagID){case E.TR:a.openElements.clearBackToTableBodyContext(),a._insertElement(b,A.HTML),a.insertionMode=H.IN_ROW;break;case E.TH:case E.TD:a.openElements.clearBackToTableBodyContext(),a._insertFakeElement(D.TR,E.TR),a.insertionMode=H.IN_ROW,cM(a,b);break;case E.CAPTION:case E.COL:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:a.openElements.hasTableBodyContextInTableScope()&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE,cB(a,b));break;default:cB(a,b)}}function cL(a,b){let c=b.tagID;switch(b.tagID){case E.TBODY:case E.TFOOT:case E.THEAD:a.openElements.hasInTableScope(c)&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE);break;case E.TABLE:a.openElements.hasTableBodyContextInTableScope()&&(a.openElements.clearBackToTableBodyContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE,cC(a,b));break;case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TD:case E.TH:case E.TR:break;default:cC(a,b)}}function cM(a,b){switch(b.tagID){case E.TH:case E.TD:a.openElements.clearBackToTableRowContext(),a._insertElement(b,A.HTML),a.insertionMode=H.IN_CELL,a.activeFormattingElements.insertMarker();break;case E.CAPTION:case E.COL:case E.COLGROUP:case E.TBODY:case E.TFOOT:case E.THEAD:case E.TR:a.openElements.hasInTableScope(E.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE_BODY,cK(a,b));break;default:cB(a,b)}}function cN(a,b){switch(b.tagID){case E.TR:a.openElements.hasInTableScope(E.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE_BODY);break;case E.TABLE:a.openElements.hasInTableScope(E.TR)&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE_BODY,cL(a,b));break;case E.TBODY:case E.TFOOT:case E.THEAD:(a.openElements.hasInTableScope(b.tagID)||a.openElements.hasInTableScope(E.TR))&&(a.openElements.clearBackToTableRowContext(),a.openElements.pop(),a.insertionMode=H.IN_TABLE_BODY,cL(a,b));break;case E.BODY:case E.CAPTION:case E.COL:case E.COLGROUP:case E.HTML:case E.TD:case E.TH:break;default:cC(a,b)}}function cO(a,b){switch(b.tagID){case E.HTML:cw(a,b);break;case E.OPTION:a.openElements.currentTagId===E.OPTION&&a.openElements.pop(),a._insertElement(b,A.HTML);break;case E.OPTGROUP:a.openElements.currentTagId===E.OPTION&&a.openElements.pop(),a.openElements.currentTagId===E.OPTGROUP&&a.openElements.pop(),a._insertElement(b,A.HTML);break;case E.HR:a.openElements.currentTagId===E.OPTION&&a.openElements.pop(),a.openElements.currentTagId===E.OPTGROUP&&a.openElements.pop(),a._appendElement(b,A.HTML),b.ackSelfClosing=!0;break;case E.INPUT:case E.KEYGEN:case E.TEXTAREA:case E.SELECT:a.openElements.hasInSelectScope(E.SELECT)&&(a.openElements.popUntilTagNamePopped(E.SELECT),a._resetInsertionMode(),b.tagID!==E.SELECT&&a._processStartTag(b));break;case E.SCRIPT:case E.TEMPLATE:ck(a,b)}}function cP(a,b){switch(b.tagID){case E.OPTGROUP:a.openElements.stackTop>0&&a.openElements.currentTagId===E.OPTION&&a.openElements.tagIDs[a.openElements.stackTop-1]===E.OPTGROUP&&a.openElements.pop(),a.openElements.currentTagId===E.OPTGROUP&&a.openElements.pop();break;case E.OPTION:a.openElements.currentTagId===E.OPTION&&a.openElements.pop();break;case E.SELECT:a.openElements.hasInSelectScope(E.SELECT)&&(a.openElements.popUntilTagNamePopped(E.SELECT),a._resetInsertionMode());break;case E.TEMPLATE:cl(a,b)}}function cQ(a,b){a.openElements.tmplCount>0?(a.openElements.popUntilTagNamePopped(E.TEMPLATE),a.activeFormattingElements.clearToLastMarker(),a.tmplInsertionModeStack.shift(),a._resetInsertionMode(),a.onEof(b)):cg(a,b)}function cR(a,b){var c;if(b.tagID===E.HTML){if(a.fragmentContext||(a.insertionMode=H.AFTER_AFTER_BODY),a.options.sourceCodeLocationInfo&&a.openElements.tagIDs[0]===E.HTML){a._setEndLocation(a.openElements.items[0],b);let d=a.openElements.items[1];!d||(null==(c=a.treeAdapter.getNodeSourceCodeLocation(d))?void 0:c.endTag)||a._setEndLocation(d,b)}}else cS(a,b)}function cS(a,b){a.insertionMode=H.IN_BODY,cp(a,b)}function cT(a,b){a.insertionMode=H.IN_BODY,cp(a,b)}function cU(a){for(;a.treeAdapter.getNamespaceURI(a.openElements.current)!==A.HTML&&void 0!==a.openElements.currentTagId&&!a._isIntegrationPoint(a.openElements.currentTagId,a.openElements.current);)a.openElements.pop()}String.prototype.codePointAt,D.AREA,D.BASE,D.BASEFONT,D.BGSOUND,D.BR,D.COL,D.EMBED,D.FRAME,D.HR,D.IMG,D.INPUT,D.KEYGEN,D.LINK,D.META,D.PARAM,D.SOURCE,D.TRACK,D.WBR;let cV=cX("end"),cW=cX("start");function cX(a){return function(b){let c=b&&b.position&&b.position[a]||{};if("number"==typeof c.line&&c.line>0&&"number"==typeof c.column&&c.column>0)return{line:c.line,column:c.column,offset:"number"==typeof c.offset&&c.offset>-1?c.offset:void 0}}}let cY=function(a){var b,c;if(null==a)return c$;if("function"==typeof a)return cZ(a);if("object"==typeof a){return Array.isArray(a)?function(a){let b=[],c=-1;for(;++c<a.length;)b[c]=cY(a[c]);return cZ(function(...a){let c=-1;for(;++c<b.length;)if(b[c].apply(this,a))return!0;return!1})}(a):(b=a,cZ(function(a){let c;for(c in b)if(a[c]!==b[c])return!1;return!0}))}if("string"==typeof a){return c=a,cZ(function(a){return a&&a.type===c})}throw Error("Expected function, string, or object as test")};function cZ(a){return function(b,c,d){return!!(function(a){return null!==a&&"object"==typeof a&&"type"in a}(b)&&a.call(this,b,"number"==typeof c?c:void 0,d||void 0))}}function c$(){return!0}let c_=[],c0=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,c1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),c2={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function c3(a,b){var c,d,e,f,g,h,i;let j,k,l,m,n,o,p,q,r=!!((j="root"===(i=a).type?i.children[0]:i)&&("doctype"===j.type||"element"===j.type&&"html"===j.tagName.toLowerCase())),s=be("type",{handlers:{root:c5,element:c6,text:c7,comment:c9,doctype:c8,raw:da},unknown:db}),t={parser:r?new cd(c2):cd.getFragmentParser(void 0,c2),handle(a){s(a,t)},stitches:!1,options:b||{}};s(a,t),dc(t,cW());let u=(c=r?t.parser.document:t.parser.getFragment(),a8({file:(k={file:t.options.file}).file||void 0,location:!1,schema:"svg"===k.space?aQ:aP,verbose:k.verbose||!1},c));return(t.stitches&&(d="comment",e=function(a,b,c){if(a.value.stitch&&c&&void 0!==b)return c.children[b]=a.value.stitch,b},m=d,n=e,l=void 0,f=m,g=function(a,b){let c=b[b.length-1],d=c?c.children.indexOf(a):void 0;return n(a,d,c)},h=l,"function"==typeof f&&"function"!=typeof g?(h=g,g=f):o=f,p=cY(o),q=h?-1:1,(function a(b,c,d){let e=b&&"object"==typeof b?b:{};if("string"==typeof e.type){let a="string"==typeof e.tagName?e.tagName:"string"==typeof e.name?e.name:void 0;Object.defineProperty(i,"name",{value:"node (\x1b[33m"+b.type+(a?"<"+a+">":"")+"\x1b[39m)"})}return i;function i(){var e;let i,j,k,l=c_;if((!f||p(b,c,d[d.length-1]||void 0))&&!1===(l=Array.isArray(e=g(b,d))?e:"number"==typeof e?[!0,e]:null==e?c_:[e])[0])return l;if("children"in b&&b.children&&b.children&&"skip"!==l[0])for(j=(h?b.children.length:-1)+q,k=d.concat(b);j>-1&&j<b.children.length;){if(!1===(i=a(b.children[j],j,k)())[0])return i;j="number"==typeof i[1]?i[1]:j+q}return l}})(u,void 0,[])()),"root"===u.type&&1===u.children.length&&u.children[0].type===a.type)?u.children[0]:u}function c4(a,b){let c=-1;if(a)for(;++c<a.length;)b.handle(a[c])}function c5(a,b){c4(a.children,b)}function c6(a,b){(function(a,b){let c=a.tagName.toLowerCase();if(b.parser.tokenizer.state===bC.PLAINTEXT)return;dc(b,cW(a));let d=b.parser.openElements.current,e="namespaceURI"in d?d.namespaceURI:a5.html;e===a5.html&&"svg"===c&&(e=a5.svg);let f=bg({...a,children:[]},"svg"===({space:e===a5.svg?"svg":"html"}).space?aQ:aP),g={type:v.START_TAG,tagName:c,tagID:by(c),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in f?f.attrs:[],location:de(a)};b.parser.currentToken=g,b.parser._processToken(b.parser.currentToken),b.parser.tokenizer.lastStartTagName=c})(a,b),c4(a.children,b),function(a,b){let c=a.tagName.toLowerCase();if(!b.parser.tokenizer.inForeignNode&&bj.includes(c)||b.parser.tokenizer.state===bC.PLAINTEXT)return;dc(b,cV(a));let d={type:v.END_TAG,tagName:c,tagID:by(c),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:de(a)};b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken),c===b.parser.tokenizer.lastStartTagName&&(b.parser.tokenizer.state===bC.RCDATA||b.parser.tokenizer.state===bC.RAWTEXT||b.parser.tokenizer.state===bC.SCRIPT_DATA)&&(b.parser.tokenizer.state=bC.DATA)}(a,b)}function c7(a,b){b.parser.tokenizer.state>4&&(b.parser.tokenizer.state=0);let c={type:v.CHARACTER,chars:a.value,location:de(a)};dc(b,cW(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function c8(a,b){let c={type:v.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:de(a)};dc(b,cW(a)),b.parser.currentToken=c,b.parser._processToken(b.parser.currentToken)}function c9(a,b){let c=a.value,d={type:v.COMMENT,data:c,location:de(a)};dc(b,cW(a)),b.parser.currentToken=d,b.parser._processToken(b.parser.currentToken)}function da(a,b){if(b.parser.tokenizer.preprocessor.html="",b.parser.tokenizer.preprocessor.pos=-1,b.parser.tokenizer.preprocessor.lastGapPos=-2,b.parser.tokenizer.preprocessor.gapStack=[],b.parser.tokenizer.preprocessor.skipNextNewLine=!1,b.parser.tokenizer.preprocessor.lastChunkWritten=!1,b.parser.tokenizer.preprocessor.endOfChunkHit=!1,b.parser.tokenizer.preprocessor.isEol=!1,dd(b,cW(a)),b.parser.tokenizer.write(b.options.tagfilter?a.value.replace(c0,"<$1$2"):a.value,!1),b.parser.tokenizer._runParsingLoop(),72===b.parser.tokenizer.state||78===b.parser.tokenizer.state){b.parser.tokenizer.preprocessor.lastChunkWritten=!0;let a=b.parser.tokenizer._consume();b.parser.tokenizer._callState(a)}}function db(a,b){if(b.options.passThrough&&b.options.passThrough.includes(a.type)){var c;let d;b.stitches=!0,d="children"in(c=a)?aq({...c,children:[]}):aq(c),"children"in a&&"children"in d&&(d.children=c3({type:"root",children:a.children},b.options).children),c9({type:"comment",value:{stitch:d}},b)}else{let b="";throw c1.has(a.type)&&(b=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+a.type+"` node"+b)}}function dc(a,b){dd(a,b);let c=a.parser.tokenizer.currentCharacterToken;c&&c.location&&(c.location.endLine=a.parser.tokenizer.preprocessor.line,c.location.endCol=a.parser.tokenizer.preprocessor.col+1,c.location.endOffset=a.parser.tokenizer.preprocessor.offset+1,a.parser.currentToken=c,a.parser._processToken(a.parser.currentToken)),a.parser.tokenizer.paused=!1,a.parser.tokenizer.inLoop=!1,a.parser.tokenizer.active=!1,a.parser.tokenizer.returnState=bC.DATA,a.parser.tokenizer.charRefCode=-1,a.parser.tokenizer.consumedAfterSnapshot=-1,a.parser.tokenizer.currentLocation=null,a.parser.tokenizer.currentCharacterToken=null,a.parser.tokenizer.currentToken=null,a.parser.tokenizer.currentAttr={name:"",value:""}}function dd(a,b){if(b&&void 0!==b.offset){let c={startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:-1,endCol:-1,endOffset:-1};a.parser.tokenizer.preprocessor.lineStartPos=-b.column+1,a.parser.tokenizer.preprocessor.droppedBufferSize=b.offset,a.parser.tokenizer.preprocessor.line=b.line,a.parser.tokenizer.currentLocation=c}}function de(a){let b=cW(a)||{line:void 0,column:void 0,offset:void 0},c=cV(a)||{line:void 0,column:void 0,offset:void 0};return{startLine:b.line,startCol:b.column,startOffset:b.offset,endLine:c.line,endCol:c.column,endOffset:c.offset}}let df=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],dg={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...df,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...df],h2:[["className","sr-only"]],img:[...df,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...df,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...df],table:[...df],ul:[...df,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},dh={}.hasOwnProperty;function di(a,b){if(b&&"object"==typeof b)switch("string"==typeof b.type?b.type:""){case"comment":var c,d,e=a,f=b;if(e.schema.allowComments){let a="string"==typeof f.value?f.value:"",b=a.indexOf("--\x3e"),c={type:"comment",value:b<0?a:a.slice(0,b)};return dm(c,f),c}return;case"doctype":var g=a,h=b;if(g.schema.allowDoctypes){let a={type:"doctype"};return dm(a,h),a}return;case"element":return function(a,b){let c="string"==typeof b.tagName?b.tagName:"";a.stack.push(c);let d=dj(a,b.children),e=function(a,b){let c,d=a.stack[a.stack.length-1],e=a.schema.attributes,f=a.schema.required,g=e&&dh.call(e,d)?e[d]:void 0,h=e&&dh.call(e,"*")?e["*"]:void 0,i=b&&"object"==typeof b?b:{},j={};for(c in i)if(dh.call(i,c)){let b=i[c],d=dk(a,dn(g,c),c,b);null==d&&(d=dk(a,dn(h,c),c,b)),null!=d&&(j[c]=d)}if(f&&dh.call(f,d)){let a=f[d];for(c in a)dh.call(a,c)&&!dh.call(j,c)&&(j[c]=a[c])}return j}(a,b.properties);a.stack.pop();let f=!1;if(c&&"*"!==c&&(!a.schema.tagNames||a.schema.tagNames.includes(c))&&(f=!0,a.schema.ancestors&&dh.call(a.schema.ancestors,c))){let b=a.schema.ancestors[c],d=-1;for(f=!1;++d<b.length;)a.stack.includes(b[d])&&(f=!0)}if(!f)return a.schema.strip&&!a.schema.strip.includes(c)?d:void 0;let g={type:"element",tagName:c,properties:e,children:d};return dm(g,b),g}(a,b);case"root":let i;return dm(i={type:"root",children:dj(a,(c=b).children)},c),i;case"text":let j;return dm(j={type:"text",value:"string"==typeof(d=b).value?d.value:""},d),j}}function dj(a,b){let c=[];if(Array.isArray(b)){let d=-1;for(;++d<b.length;){let e=di(a,b[d]);e&&(Array.isArray(e)?c.push(...e):c.push(e))}}return c}function dk(a,b,c,d){return b?Array.isArray(d)?function(a,b,c,d){let e=-1,f=[];for(;++e<d.length;){let g=dl(a,b,c,d[e]);("number"==typeof g||"string"==typeof g)&&f.push(g)}return f}(a,b,c,d):dl(a,b,c,d):void 0}function dl(a,b,c,d){if(("boolean"==typeof d||"number"==typeof d||"string"==typeof d)&&function(a,b,c){let d=a.schema.protocols&&dh.call(a.schema.protocols,b)?a.schema.protocols[b]:void 0;if(!d||0===d.length)return!0;let e=String(c),f=e.indexOf(":"),g=e.indexOf("?"),h=e.indexOf("#"),i=e.indexOf("/");if(f<0||i>-1&&f>i||g>-1&&f>g||h>-1&&f>h)return!0;let j=-1;for(;++j<d.length;){let a=d[j];if(f===a.length&&e.slice(0,a.length)===a)return!0}return!1}(a,c,d)){if("object"==typeof b&&b.length>1){let a=!1,c=0;for(;++c<b.length;){let e=b[c];if(e&&"object"==typeof e&&"flags"in e){if(e.test(String(d))){a=!0;break}}else if(e===d){a=!0;break}}if(!a)return}return a.schema.clobber&&a.schema.clobberPrefix&&a.schema.clobber.includes(c)?a.schema.clobberPrefix+d:d}}function dm(a,b){let c=function(a){let b=cW(a),c=cV(a);if(b&&c)return{start:b,end:c}}(b);b.data&&(a.data=aq(b.data)),c&&(a.position=c)}function dn(a,b){let c,d=-1;if(a)for(;++d<a.length;){let e=a[d],f="string"==typeof e?e:e[0];if(f===b)return e;"data*"===f&&(c=e)}if(b.length>4&&"data"===b.slice(0,4).toLowerCase())return c}let dp=/["&'<>`]/g,dq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ds=/[|\\{}()[\]^$+*?.]/g,dt=new WeakMap,du=/[\dA-Fa-f]/,dv=/\d/,dw=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],dx={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},dy=["cent","copy","divide","gt","lt","not","para","times"],dz={}.hasOwnProperty,dA={};for(d in dx)dz.call(dx,d)&&(dA[dx[d]]=d);let dB=/[^\dA-Za-z]/;function dC(a,b,c){var d,e;let f,g,h=(d=c.omitOptionalSemicolons,f="&#x"+a.toString(16).toUpperCase(),d&&b&&!du.test(String.fromCharCode(b))?f:f+";");if((c.useNamedReferences||c.useShortestReferences)&&(g=function(a,b,c,d){let e=String.fromCharCode(a);if(dz.call(dA,e)){let a=dA[e],f="&"+a;return c&&dw.includes(a)&&!dy.includes(a)&&(!d||b&&61!==b&&dB.test(String.fromCharCode(b)))?f:f+";"}return""}(a,b,c.omitOptionalSemicolons,c.attribute)),(c.useShortestReferences||!g)&&c.useShortestReferences){let d,f=(e=c.omitOptionalSemicolons,d="&#"+String(a),e&&b&&!dv.test(String.fromCharCode(b))?d:d+";");f.length<h.length&&(h=f)}return g&&(!c.useShortestReferences||g.length<h.length)?g:h}function dD(a,b){let c;var d,e=a,f=Object.assign({format:dC},b);if(e=e.replace(f.subset?(d=f.subset,(c=dt.get(d))||(c=function(a){let b=[],c=-1;for(;++c<a.length;)b.push(a[c].replace(ds,"\\$&"));return RegExp("(?:"+b.join("|")+")","g")}(d),dt.set(d,c)),c):dp,g),f.subset||f.escapeOnly)return e;return e.replace(dq,function(a,b,c){return f.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,c.charCodeAt(b+2),f)}).replace(dr,g);function g(a,b,c){return f.format(a.charCodeAt(0),c.charCodeAt(b+1),f)}}let dE=/^>|^->|<!--|-->|--!>|<!-$/g,dF=[">"],dG=["<",">"];function dH(a,b){let c=String(a);if("string"!=typeof b)throw TypeError("Expected character");let d=0,e=c.indexOf(b);for(;-1!==e;)d++,e=c.indexOf(b,e+b.length);return d}let dI=/[ \t\n\f\r]/g;function dJ(a){return"object"==typeof a?"text"===a.type&&dK(a.value):dK(a)}function dK(a){return""===a.replace(dI,"")}let dL=dO(1),dM=dO(-1),dN=[];function dO(a){return function(b,c,d){let e=b?b.children:dN,f=(c||0)+a,g=e[f];if(!d)for(;g&&dJ(g);)f+=a,g=e[f];return g}}let dP={}.hasOwnProperty;function dQ(a){return function(b,c,d){return dP.call(a,b.tagName)&&a[b.tagName](b,c,d)}}let dR=dQ({body:function(a,b,c){let d=dL(c,b);return!d||"comment"!==d.type},caption:dS,colgroup:dS,dd:function(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&("dt"===d.tagName||"dd"===d.tagName)},dt:function(a,b,c){let d=dL(c,b);return!!(d&&"element"===d.type&&("dt"===d.tagName||"dd"===d.tagName))},head:dS,html:function(a,b,c){let d=dL(c,b);return!d||"comment"!==d.type},li:function(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&"li"===d.tagName},optgroup:function(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&"optgroup"===d.tagName},option:function(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&("option"===d.tagName||"optgroup"===d.tagName)},p:function(a,b,c){let d=dL(c,b);return d?"element"===d.type&&("address"===d.tagName||"article"===d.tagName||"aside"===d.tagName||"blockquote"===d.tagName||"details"===d.tagName||"div"===d.tagName||"dl"===d.tagName||"fieldset"===d.tagName||"figcaption"===d.tagName||"figure"===d.tagName||"footer"===d.tagName||"form"===d.tagName||"h1"===d.tagName||"h2"===d.tagName||"h3"===d.tagName||"h4"===d.tagName||"h5"===d.tagName||"h6"===d.tagName||"header"===d.tagName||"hgroup"===d.tagName||"hr"===d.tagName||"main"===d.tagName||"menu"===d.tagName||"nav"===d.tagName||"ol"===d.tagName||"p"===d.tagName||"pre"===d.tagName||"section"===d.tagName||"table"===d.tagName||"ul"===d.tagName):!c||"element"!==c.type||"a"!==c.tagName&&"audio"!==c.tagName&&"del"!==c.tagName&&"ins"!==c.tagName&&"map"!==c.tagName&&"noscript"!==c.tagName&&"video"!==c.tagName},rp:dT,rt:dT,tbody:function(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&("tbody"===d.tagName||"tfoot"===d.tagName)},td:dU,tfoot:function(a,b,c){return!dL(c,b)},th:dU,thead:function(a,b,c){let d=dL(c,b);return!!(d&&"element"===d.type&&("tbody"===d.tagName||"tfoot"===d.tagName))},tr:function(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&"tr"===d.tagName}});function dS(a,b,c){let d=dL(c,b,!0);return!d||"comment"!==d.type&&!("text"===d.type&&dJ(d.value.charAt(0)))}function dT(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&("rp"===d.tagName||"rt"===d.tagName)}function dU(a,b,c){let d=dL(c,b);return!d||"element"===d.type&&("td"===d.tagName||"th"===d.tagName)}let dV=dQ({body:function(a){let b=dL(a,-1,!0);return!b||"comment"!==b.type&&!("text"===b.type&&dJ(b.value.charAt(0)))&&("element"!==b.type||"meta"!==b.tagName&&"link"!==b.tagName&&"script"!==b.tagName&&"style"!==b.tagName&&"template"!==b.tagName)},colgroup:function(a,b,c){let d=dM(c,b),e=dL(a,-1,!0);return!(c&&d&&"element"===d.type&&"colgroup"===d.tagName&&dR(d,c.children.indexOf(d),c))&&!!(e&&"element"===e.type&&"col"===e.tagName)},head:function(a){let b=new Set;for(let c of a.children)if("element"===c.type&&("base"===c.tagName||"title"===c.tagName)){if(b.has(c.tagName))return!1;b.add(c.tagName)}let c=a.children[0];return!c||"element"===c.type},html:function(a){let b=dL(a,-1);return!b||"comment"!==b.type},tbody:function(a,b,c){let d=dM(c,b),e=dL(a,-1);return!(c&&d&&"element"===d.type&&("thead"===d.tagName||"tbody"===d.tagName)&&dR(d,c.children.indexOf(d),c))&&!!(e&&"element"===e.type&&"tr"===e.tagName)}}),dW={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},dX=["<","&"];function dY(a,b,c,d){return c&&"element"===c.type&&("script"===c.tagName||"style"===c.tagName)?a.value:dD(a.value,Object.assign({},d.settings.characterReferences,{subset:dX}))}let dZ=be("type",{invalid:function(a){throw Error("Expected node, not `"+a+"`")},unknown:function(a){throw Error("Cannot compile unknown node `"+a.type+"`")},handlers:{comment:function(a,b,c,d){return d.settings.bogusComments?"<?"+dD(a.value,Object.assign({},d.settings.characterReferences,{subset:dF}))+">":"\x3c!--"+a.value.replace(dE,function(a){return dD(a,Object.assign({},d.settings.characterReferences,{subset:dG}))})+"--\x3e"},doctype:function(a,b,c,d){return"<!"+(d.settings.upperDoctype?"DOCTYPE":"doctype")+(d.settings.tightDoctype?"":" ")+"html>"},element:function(a,b,c,d){let e,f=d.schema,g="svg"!==f.space&&d.settings.omitOptionalTags,h="svg"===f.space?d.settings.closeEmptyElements:d.settings.voids.includes(a.tagName.toLowerCase()),i=[];"html"===f.space&&"svg"===a.tagName&&(d.schema=aQ);let j=function(a,b){let c,d=[],e=-1;if(b){for(c in b)if(null!==b[c]&&void 0!==b[c]){let e=function(a,b,c){let d,e=aX(a.schema,b),f=a.settings.allowParseErrors&&"html"===a.schema.space?0:1,g=+!a.settings.allowDangerousCharacters,h=a.quote;if(e.overloadedBoolean&&(c===e.attribute||""===c)?c=!0:(e.boolean||e.overloadedBoolean)&&("string"!=typeof c||c===e.attribute||""===c)&&(c=!!c),null==c||!1===c||"number"==typeof c&&Number.isNaN(c))return"";let i=dD(e.attribute,Object.assign({},a.settings.characterReferences,{subset:dW.name[f][g]}));return!0===c||(c=Array.isArray(c)?(e.commaSeparated?aS:a_)(c,{padLeft:!a.settings.tightCommaSeparatedLists}):String(c),a.settings.collapseEmptyAttributes&&!c)?i:(a.settings.preferUnquoted&&(d=dD(c,Object.assign({},a.settings.characterReferences,{attribute:!0,subset:dW.unquoted[f][g]}))),d!==c&&(a.settings.quoteSmart&&dH(c,h)>dH(c,a.alternative)&&(h=a.alternative),d=h+dD(c,Object.assign({},a.settings.characterReferences,{subset:("'"===h?dW.single:dW.double)[f][g],attribute:!0}))+h),i+(d?"="+d:d))}(a,c,b[c]);e&&d.push(e)}}for(;++e<d.length;){let b=a.settings.tightAttributes?d[e].charAt(d[e].length-1):void 0;e!==d.length-1&&'"'!==b&&"'"!==b&&(d[e]+=" ")}return d.join("")}(d,a.properties),k=d.all("html"===f.space&&"template"===a.tagName?a.content:a);return d.schema=f,k&&(h=!1),!j&&g&&dV(a,b,c)||(i.push("<",a.tagName,j?" "+j:""),h&&("svg"===f.space||d.settings.closeSelfClosing)&&(e=j.charAt(j.length-1),(!d.settings.tightSelfClosing||"/"===e||e&&'"'!==e&&"'"!==e)&&i.push(" "),i.push("/")),i.push(">")),i.push(k),h||g&&dR(a,b,c)||i.push("</"+a.tagName+">"),i.join("")},raw:function(a,b,c,d){return d.settings.allowDangerousHtml?a.value:dY(a,b,c,d)},root:function(a,b,c,d){return d.all(a)},text:dY}}),d$={},d_={},d0=[];function d1(a,b,c){return dZ(a,b,c,this)}function d2(a){let b=[],c=a&&a.children||d0,d=-1;for(;++d<c.length;)b[d]=this.one(c[d],d,a);return b.join("")}var d3=c(91652);class d4 extends Error{constructor(a,b,c){super(b),this.code=a,this.status=c,this.name="FilePreviewError"}}let d5=ac().use(function(a){return function(b,c){return c3(b,{...a,file:c})}}).use(function(a){return function(b){let c,d;return c={type:"root",children:[]},(d=di({schema:a?{...dg,...a}:dg,stack:[]},b))&&(Array.isArray(d)?1===d.length?c=d[0]:c.children=d:c=d),c}},{...dg,protocols:{...dg.protocols,src:["data"],href:[]}}).use(function(a){let b={...this.data("settings"),...a};this.compiler=function(a){let c=b||d$,d=c.quote||'"';if('"'!==d&&"'"!==d)throw Error("Invalid quote `"+d+"`, expected `'` or `\"`");return({one:d1,all:d2,settings:{omitOptionalTags:c.omitOptionalTags||!1,allowParseErrors:c.allowParseErrors||!1,allowDangerousCharacters:c.allowDangerousCharacters||!1,quoteSmart:c.quoteSmart||!1,preferUnquoted:c.preferUnquoted||!1,tightAttributes:c.tightAttributes||!1,upperDoctype:c.upperDoctype||!1,tightDoctype:c.tightDoctype||!1,bogusComments:c.bogusComments||!1,tightCommaSeparatedLists:c.tightCommaSeparatedLists||!1,tightSelfClosing:c.tightSelfClosing||!1,collapseEmptyAttributes:c.collapseEmptyAttributes||!1,allowDangerousHtml:c.allowDangerousHtml||!1,voids:c.voids||bj,characterReferences:c.characterReferences||d_,closeSelfClosing:c.closeSelfClosing||!1,closeEmptyElements:c.closeEmptyElements||!1},schema:"svg"===c.space?aQ:aP,quote:d,alternative:'"'===d?"'":'"'}).one(Array.isArray(a)?{type:"root",children:a}:a,void 0,void 0)}});function d6(a){return`${a.dev}:${a.ino}:${a.size}:${a.mtimeNs}:${a.ctimeNs}`}async function d7(a,b,c){var d,e;let f,g;if("docx"!==(0,d3.GO)(a))throw new d4("preview_unavailable","Preview not available for this file type",400);let h=(0,K.openSync)(a,K.constants.O_RDONLY|K.constants.O_NOFOLLOW);try{let a=(0,K.fstatSync)(h,{bigint:!0});if(!a.isFile())throw new d4("not_a_file","Not a file",400);if(g=d6(a),void 0!==b&&b!==g)throw new d4("stale_revision","File changed; reload before continuing",409);if(a.size>BigInt(d3.jL))throw new d4("docx_too_large","DOCX too large for preview (>10MB)",413);f=Buffer.allocUnsafe(Number(a.size));let c=0;for(;c<f.length;){let a=(0,K.readSync)(h,f,c,f.length-c,c);if(!a)throw new d4("stale_revision","File changed during read",409);c+=a}if(d6((0,K.fstatSync)(h,{bigint:!0}))!==g)throw new d4("stale_revision","File changed during read",409)}finally{(0,K.closeSync)(h)}let i=await J.convertToHtml({buffer:f},{externalFileAccess:!1,convertImage:J.images.dataUri});if(void 0!==c&&Buffer.byteLength(i.value,"utf8")>c)throw new d4("preview_too_large","Rendered document is too large for preview",413);let j=d5.runSync({type:"root",children:[{type:"raw",value:i.value}]}),k=[j];for(;k.length;){let a=k.pop();if("children"in a&&Array.isArray(a.children)&&k.push(...a.children),"element"===a.type){let b=a.properties.src;"string"!=typeof b||/^data:image\/(?:png|jpeg|gif|webp|bmp|tiff);base64,[A-Za-z0-9+/]*={0,2}$/i.test(b)||delete a.properties.src;let c=a.properties.href;"string"!=typeof c||c.startsWith("#")||delete a.properties.href}}let l=(d=d5.stringify(j),e=(0,L.basename)(a),`<!doctype html>
|
|
5
|
+
<html>
|
|
6
|
+
<head>
|
|
7
|
+
<meta charset="utf-8">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
<style>
|
|
10
|
+
:root { color-scheme: light; }
|
|
11
|
+
html, body { margin: 0; min-height: 100%; background: #eef1f5; color: #171717; }
|
|
12
|
+
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 28px; }
|
|
13
|
+
main {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
max-width: 840px;
|
|
16
|
+
min-height: calc(100vh - 56px);
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
padding: 56px 64px;
|
|
19
|
+
background: #fff;
|
|
20
|
+
box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
|
|
21
|
+
}
|
|
22
|
+
.file-title {
|
|
23
|
+
margin: 0 0 28px;
|
|
24
|
+
padding-bottom: 10px;
|
|
25
|
+
border-bottom: 1px solid #e5e7eb;
|
|
26
|
+
color: #6b7280;
|
|
27
|
+
font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
28
|
+
word-break: break-word;
|
|
29
|
+
}
|
|
30
|
+
h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 1.1em 0 0.45em; color: #111827; }
|
|
31
|
+
p { margin: 0.65em 0; line-height: 1.7; }
|
|
32
|
+
table { border-collapse: collapse; max-width: 100%; margin: 1em 0; }
|
|
33
|
+
th, td { border: 1px solid #d1d5db; padding: 6px 9px; vertical-align: top; }
|
|
34
|
+
img { max-width: 100%; height: auto; }
|
|
35
|
+
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
36
|
+
a { color: #2563eb; }
|
|
37
|
+
@media (max-width: 720px) {
|
|
38
|
+
body { padding: 0; background: #fff; }
|
|
39
|
+
main { min-height: 100vh; padding: 28px 22px; box-shadow: none; }
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
42
|
+
</head>
|
|
43
|
+
<body>
|
|
44
|
+
<main>
|
|
45
|
+
<div class="file-title">${e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</div>
|
|
46
|
+
${d}
|
|
47
|
+
</main>
|
|
48
|
+
</body>
|
|
49
|
+
</html>`);if(void 0!==c&&Buffer.byteLength(l,"utf8")>c)throw new d4("preview_too_large","Rendered document is too large for preview",413);try{if(d6((0,K.statSync)(a,{bigint:!0}))!==g)throw new d4("stale_revision","File changed during conversion",409)}catch(a){if(a instanceof d4)throw a;throw new d4("stale_revision","File changed during conversion",409)}return{revision:g,html:l}}},20577:a=>{"use strict";"u"<typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?a.exports={nextTick:function(a,b,c,d){if("function"!=typeof a)throw TypeError('"callback" argument must be a function');var e,f,g=arguments.length;switch(g){case 0:case 1:return process.nextTick(a);case 2:return process.nextTick(function(){a.call(null,b)});case 3:return process.nextTick(function(){a.call(null,b,c)});case 4:return process.nextTick(function(){a.call(null,b,c,d)});default:for(e=Array(g-1),f=0;f<e.length;)e[f++]=arguments[f];return process.nextTick(function(){a.apply(null,e)})}}}:a.exports=process},20710:(a,b,c)=>{"use strict";var d=c(65695);let e=a=>"bigint"==typeof a||Number.isInteger(a),f=(a,b,c,{intAsBigInt:d})=>d?BigInt(a):parseInt(a.substring(b),c);function g(a,b,c){let{value:f}=a;return e(f)&&f>=0?c+f.toString(b):d.stringifyNumber(a)}b.int={identify:e,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(a,b,c)=>f(a,0,10,c),stringify:d.stringifyNumber},b.intHex={identify:a=>e(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(a,b,c)=>f(a,2,16,c),stringify:a=>g(a,16,"0x")},b.intOct={identify:a=>e(a)&&a>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(a,b,c)=>f(a,2,8,c),stringify:a=>g(a,8,"0o")}},20795:(a,b,c)=>{"use strict";var d=c(26701),e=c(69273),f=c(51490);function g(a){return"bigint"==typeof a||Number.isInteger(a)}let h=({value:a})=>JSON.stringify(a),i=[{identify:a=>"string"==typeof a,default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify:h},{identify:a=>null==a,createNode:()=>new d.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:h},{identify:a=>"boolean"==typeof a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:a=>"true"===a,stringify:h},{identify:g,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(a,b,{intAsBigInt:c})=>c?BigInt(a):parseInt(a,10),stringify:({value:a})=>g(a)?a.toString():JSON.stringify(a)},{identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:a=>parseFloat(a),stringify:h}];b.schema=[e.map,f.seq].concat(i,{default:!0,tag:"",test:/^/,resolve:(a,b)=>(b(`Unresolved plain scalar ${JSON.stringify(a)}`),a)})},21476:(a,b,c)=>{"use strict";var d=c(76281);b.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},b.DEFLATE=c(30137)},21609:a=>{"use strict";function b(a){return"/"===a.charAt(0)}function c(a){var b=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(a),c=b[1]||"",d=!!(c&&":"!==c.charAt(1));return!!(b[2]||d)}a.exports="win32"===process.platform?c:b,a.exports.posix=b,a.exports.win32=c},21667:a=>{"use strict";a.exports=function(a){var b=!1,c=[];function d(){this._trace=new d.CapturedTrace(e())}function e(){var a=c.length-1;if(a>=0)return c[a]}return a.prototype._promiseCreated=function(){},a.prototype._pushContext=function(){},a.prototype._popContext=function(){return null},a._peekContext=a.prototype._peekContext=function(){},d.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,c.push(this._trace))},d.prototype._popContext=function(){if(void 0!==this._trace){var a=c.pop(),b=a._promiseCreated;return a._promiseCreated=null,b}return null},d.CapturedTrace=null,d.create=function(){if(b)return new d},d.deactivateLongStackTraces=function(){},d.activateLongStackTraces=function(){var c=a.prototype._pushContext,f=a.prototype._popContext,g=a._peekContext,h=a.prototype._peekContext,i=a.prototype._promiseCreated;d.deactivateLongStackTraces=function(){a.prototype._pushContext=c,a.prototype._popContext=f,a._peekContext=g,a.prototype._peekContext=h,a.prototype._promiseCreated=i,b=!1},b=!0,a.prototype._pushContext=d.prototype._pushContext,a.prototype._popContext=d.prototype._popContext,a._peekContext=a.prototype._peekContext=e,a.prototype._promiseCreated=function(){var a=this._peekContext();a&&null==a._promiseCreated&&(a._promiseCreated=this)}},d}},21906:(a,b,c)=>{"use strict";var d=c(40831),e=c(58952),f=c(84127),g=c(56222),h=c(30212),i=c(21476),j=c(49642),k=function(a){for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)&&i[b].magic===a)return i[b];return null};function l(a,b){this.options=a,this.loadOptions=b}l.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(b=k(this.compressionMethod)))throw Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===a&&(this.dosPermissions=63&this.externalFileAttributes),3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<e;)b=a.readInt(2),c=a.readInt(2),d=a.readData(c),this.extraFields[b]={id:b,length:c,value:d};a.setIndex(e)},handleUTF8:function(){var a=j.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(null!==b)this.fileNameStr=b;else{var c=e.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(c)}var d=this.findExtraFieldUnicodeComment();if(null!==d)this.fileCommentStr=d;else{var f=e.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileName)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var b=d(a.value);return 1!==b.readInt(1)||g(this.fileComment)!==b.readInt(4)?null:h.utf8decode(b.readData(a.length-5))}return null}},a.exports=l},22362:(a,b,c)=>{function d(a){return Object.prototype.toString.call(a)}b.isArray=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===d(a)},b.isBoolean=function(a){return"boolean"==typeof a},b.isNull=function(a){return null===a},b.isNullOrUndefined=function(a){return null==a},b.isNumber=function(a){return"number"==typeof a},b.isString=function(a){return"string"==typeof a},b.isSymbol=function(a){return"symbol"==typeof a},b.isUndefined=function(a){return void 0===a},b.isRegExp=function(a){return"[object RegExp]"===d(a)},b.isObject=function(a){return"object"==typeof a&&null!==a},b.isDate=function(a){return"[object Date]"===d(a)},b.isError=function(a){return"[object Error]"===d(a)||a instanceof Error},b.isFunction=function(a){return"function"==typeof a},b.isPrimitive=function(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a},b.isBuffer=c(79428).Buffer.isBuffer},22418:function(a,b,c){"use strict";var d,e,f=c(3987),g="u"<typeof navigator,h={e:{}},i="u">typeof self?self:"u">typeof window?window:"u">typeof global?global:void 0!==this?this:null;function j(){try{var a=e;return e=null,a.apply(this,arguments)}catch(a){return h.e=a,h}}function k(a){return null==a||!0===a||!1===a||"string"==typeof a||"number"==typeof a}function l(a,b,c){return k(a)||f.defineProperty(a,b,{value:c,configurable:!0,enumerable:!1,writable:!0}),a}var m=function(){var a=[Array.prototype,Object.prototype,Function.prototype],b=function(b){for(var c=0;c<a.length;++c)if(a[c]===b)return!0;return!1};if(f.isES5){var c=Object.getOwnPropertyNames;return function(a){for(var d,e=[],g=Object.create(null);null!=a&&!b(a);){try{d=c(a)}catch(a){break}for(var h=0;h<d.length;++h){var i=d[h];if(!g[i]){g[i]=!0;var j=Object.getOwnPropertyDescriptor(a,i);null!=j&&null==j.get&&null==j.set&&e.push(i)}}a=f.getPrototypeOf(a)}return e}}var d={}.hasOwnProperty;return function(c){if(b(c))return[];var e=[];a:for(var f in c)if(d.call(c,f))e.push(f);else{for(var g=0;g<a.length;++g)if(d.call(a[g],f))continue a;e.push(f)}return e}}(),n=/this\s*\.\s*\S+\s*=/,o=/^[a-z$_][a-z$_0-9]*$/i;function p(a){try{return a+""}catch(a){return"[no string representation]"}}function q(a){return null!==a&&"object"==typeof a&&"string"==typeof a.message&&"string"==typeof a.name}function r(a){return q(a)&&f.propertyIsWritable(a,"stack")}var s="stack"in Error()?function(a){return r(a)?a:Error(p(a))}:function(a){if(r(a))return a;try{throw Error(p(a))}catch(a){return a}};function t(a){return({}).toString.call(a)}var u=function(a){return f.isArray(a)?a:null};if("u">typeof Symbol&&Symbol.iterator){var v="function"==typeof Array.from?function(a){return Array.from(a)}:function(a){for(var b,c=[],d=a[Symbol.iterator]();!(b=d.next()).done;)c.push(b.value);return c};u=function(a){return f.isArray(a)?a:null!=a&&"function"==typeof a[Symbol.iterator]?v(a):null}}var w="u">typeof process&&"[object process]"===t(process).toLowerCase(),x="u">typeof process&&void 0!==process.env,y={isClass:function(a){try{if("function"==typeof a){var b=f.names(a.prototype),c=f.isES5&&b.length>1,d=b.length>0&&(1!==b.length||"constructor"!==b[0]),e=n.test(a+"")&&f.names(a).length>0;if(c||d||e)return!0}return!1}catch(a){return!1}},isIdentifier:function(a){return o.test(a)},inheritedDataKeys:m,getDataPropertyOrDefault:function(a,b,c){if(!f.isES5)return({}).hasOwnProperty.call(a,b)?a[b]:void 0;var d=Object.getOwnPropertyDescriptor(a,b);if(null!=d)return null==d.get&&null==d.set?d.value:c},thrower:function(a){throw a},isArray:f.isArray,asArray:u,notEnumerableProp:l,isPrimitive:k,isObject:function(a){return"function"==typeof a||"object"==typeof a&&null!==a},isError:q,canEvaluate:g,errorObj:h,tryCatch:function(a){return e=a,j},inherits:function(a,b){var c={}.hasOwnProperty;function d(){for(var d in this.constructor=a,this.constructor$=b,b.prototype)c.call(b.prototype,d)&&"$"!==d.charAt(d.length-1)&&(this[d+"$"]=b.prototype[d])}return d.prototype=b.prototype,a.prototype=new d,a.prototype},withAppended:function(a,b){var c,d=a.length,e=Array(d+1);for(c=0;c<d;++c)e[c]=a[c];return e[c]=b,e},maybeWrapAsError:function(a){return k(a)?Error(p(a)):a},toFastProperties:function(a){function b(){}b.prototype=a;for(var c=8;c--;)new b;return a},filledRange:function(a,b,c){for(var d=Array(a),e=0;e<a;++e)d[e]=b+e+c;return d},toString:p,canAttachTrace:r,ensureErrorObject:s,originatesFromRejection:function(a){return null!=a&&(a instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===a.isOperational)},markAsOriginatingFromRejection:function(a){try{l(a,"isOperational",!0)}catch(a){}},classString:t,copyDescriptors:function(a,b,c){for(var d=f.names(a),e=0;e<d.length;++e){var g=d[e];if(c(g))try{f.defineProperty(b,g,f.getDescriptor(a,g))}catch(a){}}},hasDevTools:"u">typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:w,hasEnvVariables:x,env:function(a){return x?process.env[a]:void 0},global:i,getNativePromise:function(){if("function"==typeof Promise)try{var a=new Promise(function(){});if("[object Promise]"===({}).toString.call(a))return Promise}catch(a){}},domainBind:function(a,b){return a.bind(b)}};y.isRecentNode=y.isNode&&(0===(d=process.versions.node.split(".").map(Number))[0]&&d[1]>10||d[0]>0),y.isNode&&y.toFastProperties(process);try{throw Error()}catch(a){y.lastLineError=a}a.exports=y},22899:(a,b,c)=>{"use strict";var d=c(56073),e=c(69167),f=c(75034),g=c(19272),h=c(32010),i=Object.prototype.toString;function j(a){if(!(this instanceof j))return new j(a);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});var b,c=this.options;c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var k=d.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(0!==k)throw Error(g[k]);if(c.header&&d.deflateSetHeader(this.strm,c.header),c.dictionary){if(b="string"==typeof c.dictionary?f.string2buf(c.dictionary):"[object ArrayBuffer]"===i.call(c.dictionary)?new Uint8Array(c.dictionary):c.dictionary,0!==(k=d.deflateSetDictionary(this.strm,b)))throw Error(g[k]);this._dict_set=!0}}function k(a,b){var c=new j(b);if(c.push(a,!0),c.err)throw c.msg||g[c.err];return c.result}j.prototype.push=function(a,b){var c,g,h=this.strm,j=this.options.chunkSize;if(this.ended)return!1;g=b===~~b?b:4*(!0===b),"string"==typeof a?h.input=f.string2buf(a):"[object ArrayBuffer]"===i.call(a)?h.input=new Uint8Array(a):h.input=a,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new e.Buf8(j),h.next_out=0,h.avail_out=j),1!==(c=d.deflate(h,g))&&0!==c)return this.onEnd(c),this.ended=!0,!1;(0===h.avail_out||0===h.avail_in&&(4===g||2===g))&&("string"===this.options.to?this.onData(f.buf2binstring(e.shrinkBuf(h.output,h.next_out))):this.onData(e.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==c);return 4===g?(c=d.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,0===c):(2===g&&(this.onEnd(0),h.avail_out=0),!0)},j.prototype.onData=function(a){this.chunks.push(a)},j.prototype.onEnd=function(a){0===a&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Deflate=j,b.deflate=k,b.deflateRaw=function(a,b){return(b=b||{}).raw=!0,k(a,b)},b.gzip=function(a,b){return(b=b||{}).gzip=!0,k(a,b)}},23342:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281);function f(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}d.inherits(f,e),f.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},a.exports=f},23435:(a,b,c)=>{var d=c(16734),e=c(90050);b.writer=function(a){return"markdown"===(a=a||{}).outputFormat?e.writer():d.writer(a)}},23896:(a,b,c)=>{"use strict";a.exports=function(a){var b=c(22418),d=c(3987).keys,e=b.tryCatch,f=b.errorObj;return function(c,g,h){return function(i){var j=h._boundValue();b:for(var k=0;k<c.length;++k){var l=c[k];if(l===Error||null!=l&&l.prototype instanceof Error){if(i instanceof l)return e(g).call(j,i)}else if("function"==typeof l){var m=e(l).call(j,i);if(m===f)return m;if(m)return e(g).call(j,i)}else if(b.isObject(i)){for(var n=d(l),o=0;o<n.length;++o){var p=n[o];if(l[p]!=i[p])continue b}return e(g).call(j,i)}}return a}}}},24083:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p=function(a,b){for(var c in b)q.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},q={}.hasOwnProperty;i=c(2286),j=c(72240),b=c(92293),d=c(96321),l=c(16426),n=c(77632),o=c(46107),m=c(11781),k=c(16646),e=c(54107),f=c(9774),g=c(4907),h=c(54968),a.exports=function(a){function c(a,b){c.__super__.constructor.call(this,b),this.stream=a}return p(c,a),c.prototype.document=function(a){var b,c,e,f,g,h,l,n;for(c=0,f=(h=a.children).length;c<f;c++)(b=h[c]).isLastRootNode=!1;for(a.children[a.children.length-1].isLastRootNode=!0,l=a.children,n=[],e=0,g=l.length;e<g;e++)if(!((b=l[e])instanceof k))switch(!1){case!(b instanceof i):n.push(this.declaration(b));break;case!(b instanceof j):n.push(this.docType(b));break;case!(b instanceof d):n.push(this.comment(b));break;case!(b instanceof m):n.push(this.processingInstruction(b));break;default:n.push(this.element(b))}return n},c.prototype.attribute=function(a){return this.stream.write(" "+a.name+'="'+a.value+'"')},c.prototype.cdata=function(a,b){return this.stream.write(this.space(b)+"<![CDATA["+a.text+"]]>"+this.endline(a))},c.prototype.comment=function(a,b){return this.stream.write(this.space(b)+"\x3c!-- "+a.text+" --\x3e"+this.endline(a))},c.prototype.declaration=function(a,b){return this.stream.write(this.space(b)),this.stream.write('<?xml version="'+a.version+'"'),null!=a.encoding&&this.stream.write(' encoding="'+a.encoding+'"'),null!=a.standalone&&this.stream.write(' standalone="'+a.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(a))},c.prototype.docType=function(a,c){var i,j,k,l;if(c||(c=0),this.stream.write(this.space(c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a)),j=0,k=(l=a.children).length;j<k;j++)switch(i=l[j],!1){case!(i instanceof e):this.dtdAttList(i,c+1);break;case!(i instanceof f):this.dtdElement(i,c+1);break;case!(i instanceof g):this.dtdEntity(i,c+1);break;case!(i instanceof h):this.dtdNotation(i,c+1);break;case!(i instanceof b):this.cdata(i,c+1);break;case!(i instanceof d):this.comment(i,c+1);break;case!(i instanceof m):this.processingInstruction(i,c+1);break;default:throw Error("Unknown DTD node type: "+i.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(a))},c.prototype.element=function(a,c){var e,f,g,h,i,j,p,r;for(i in c||(c=0),r=this.space(c),this.stream.write(r+"<"+a.name),j=a.attributes)q.call(j,i)&&(e=j[i],this.attribute(e));if(0===a.children.length||a.children.every(function(a){return""===a.value}))this.allowEmpty?this.stream.write("></"+a.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===a.children.length&&null!=a.children[0].value)this.stream.write(">"),this.stream.write(a.children[0].value),this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.newline),g=0,h=(p=a.children).length;g<h;g++)switch(f=p[g],!1){case!(f instanceof b):this.cdata(f,c+1);break;case!(f instanceof d):this.comment(f,c+1);break;case!(f instanceof l):this.element(f,c+1);break;case!(f instanceof n):this.raw(f,c+1);break;case!(f instanceof o):this.text(f,c+1);break;case!(f instanceof m):this.processingInstruction(f,c+1);break;case!(f instanceof k):break;default:throw Error("Unknown XML node type: "+f.constructor.name)}this.stream.write(r+"</"+a.name+">")}return this.stream.write(this.endline(a))},c.prototype.processingInstruction=function(a,b){return this.stream.write(this.space(b)+"<?"+a.target),a.value&&this.stream.write(" "+a.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(a))},c.prototype.raw=function(a,b){return this.stream.write(this.space(b)+a.value+this.endline(a))},c.prototype.text=function(a,b){return this.stream.write(this.space(b)+a.value+this.endline(a))},c.prototype.dtdAttList=function(a,b){return this.stream.write(this.space(b)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType),"#DEFAULT"!==a.defaultValueType&&this.stream.write(" "+a.defaultValueType),a.defaultValue&&this.stream.write(' "'+a.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdElement=function(a,b){return this.stream.write(this.space(b)+"<!ELEMENT "+a.name+" "+a.value),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdEntity=function(a,b){return this.stream.write(this.space(b)+"<!ENTITY"),a.pe&&this.stream.write(" %"),this.stream.write(" "+a.name),a.value?this.stream.write(' "'+a.value+'"'):(a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.nData&&this.stream.write(" NDATA "+a.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.dtdNotation=function(a,b){return this.stream.write(this.space(b)+"<!NOTATION "+a.name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.pubID?this.stream.write(' PUBLIC "'+a.pubID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(a))},c.prototype.endline=function(a){return a.isLastRootNode?"":this.newline},c}(c(72884))}).call(this)},25105:(a,b,c)=>{var d=c(84906),e=c(1906),f=c(65869),g=c(89281),h=c(59076);b.token=function(a,b){var c=void 0!==b;return function(d){var e=d.head();return e&&e.name===a&&(!c||e.value===b)?f.success(e.value,d.tail(),e.source):n(d,m({name:a,value:b}))}},b.tokenOfType=function(a){return b.token(a)},b.firstOf=function(a,b){return d.isArray(b)||(b=Array.prototype.slice.call(arguments,1)),function(c){return h.fromArray(b).map(function(a){return a(c)}).filter(function(a){return a.isSuccess()||a.isError()}).first()||n(c,a)}},b.then=function(a,b){return function(c){var d=a(c);return d.map||console.log(d),d.map(b)}},b.sequence=function(){var a=Array.prototype.slice.call(arguments,0),c=function(c){var e=d.foldl(a,function(a,b){var d=a.result,e=a.hasCut;if(!d.isSuccess())return{result:d,hasCut:e};var g=b(d.remaining());if(g.isCut())return{result:d,hasCut:!0};if(g.isSuccess()){var h=b.isCaptured?d.value().withValue(b,g.value()):d.value(),i=g.remaining(),j=c.to(i);return{result:f.success(h,i,j),hasCut:e}}return e?{result:f.error(g.errors(),g.remaining()),hasCut:e}:{result:g,hasCut:e}},{result:f.success(new i,c),hasCut:!1}).result,g=c.to(e.remaining());return e.map(function(a){return a.withValue(b.sequence.source,g)})};function e(a){return a.isCaptured}return c.head=function(){var f=d.find(a,e);return b.then(c,b.sequence.extract(f))},c.map=function(a){return b.then(c,function(b){return a.apply(this,b.toArray())})},c};var i=function(a,b){this._values=a||{},this._valuesArray=b||[]};i.prototype.withValue=function(a,b){if(a.captureName&&a.captureName in this._values)throw Error('Cannot add second value for capture "'+a.captureName+'"');var c=d.clone(this._values);return c[a.captureName]=b,new i(c,this._valuesArray.concat([b]))},i.prototype.get=function(a){if(a.captureName in this._values)return this._values[a.captureName];throw Error('No value for capture "'+a.captureName+'"')},i.prototype.toArray=function(){return this._valuesArray},b.sequence.capture=function(a,b){var c=function(){return a.apply(this,arguments)};return c.captureName=b,c.isCaptured=!0,c},b.sequence.extract=function(a){return function(b){return b.get(a)}},b.sequence.applyValues=function(a){var b=Array.prototype.slice.call(arguments,1);return function(c){var d=b.map(function(a){return c.get(a)});return a.apply(this,d)}},b.sequence.source={captureName:"☃source☃"},b.sequence.cut=function(){return function(a){return f.cut(a)}},b.optional=function(a){return function(b){var c=a(b);return c.isSuccess()?c.map(e.some):c.isFailure()?f.success(e.none,b):c}},b.zeroOrMoreWithSeparator=function(a,b){return l(a,b,!1)},b.oneOrMoreWithSeparator=function(a,b){return l(a,b,!0)};var j=b.zeroOrMore=function(a){return function(b){for(var c,d=[];(c=a(b))&&c.isSuccess();)b=c.remaining(),d.push(c.value());return c.isError()?c:f.success(d,b)}};function k(a){return f.success(null,a)}b.oneOrMore=function(a){return b.oneOrMoreWithSeparator(a,k)};var l=function(a,c,d){return function(e){var g=a(e);if(g.isSuccess()){var h=b.sequence.capture(a,"main"),i=j(b.then(b.sequence(c,h),b.sequence.extract(h)))(g.remaining());return f.success([g.value()].concat(i.value()),i.remaining())}return d||g.isError()?g:f.success([],e)}};b.leftAssociative=function(a,c,d){var e=(e=d?[{func:d,rule:c}]:c).map(function(a){return b.then(a.rule,function(b){return function(c,d){return a.func(c,b,d)}})}),g=b.firstOf.apply(null,["rules"].concat(e));return function(b){var c=a(b);if(!c.isSuccess())return c;for(var d=g(c.remaining());d.isSuccess();){var e=d.remaining(),h=b.to(d.remaining()),i=d.value();d=g((c=f.success(i(c.value(),h),e,h)).remaining())}return d.isError()?d:c}},b.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)},b.nonConsuming=function(a){return function(b){return a(b).changeRemaining(b)}};var m=function(a){return a.value?a.name+' "'+a.value+'"':a.name};function n(a,b){var c,d=a.head();return c=d?g.error({expected:b,actual:m(d),location:d.source}):g.error({expected:b,actual:"end of tokens"}),f.failure([c],a)}},25276:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{k6:()=>q,th:()=>r});var e=c(73024),f=c(76760),g=c(58500),h=c(56219),i=c(29071),j=a([h]);h=(j.then?(await j)():j)[0];let s=BigInt("0x4f4d502d4c4f434b"),t=BigInt("0x50492d46494c454c"),u=(0,i.A)();async function k(a){let{h64:b}=await u,c=b(a,s).toString(16).padStart(16,"0"),d=b(a,t).toString(16).padStart(16,"0");return`omp-file-lock-${c}${d}`}function l(a,b){return Error(`${a} failed with native error ${b}`)}async function m(a){let b=function(){let a=[...{arm:["/lib/arm-linux-gnueabihf/libc.so.6","/usr/lib/arm-linux-gnueabihf/libc.so.6","/lib/libc.musl-armhf.so.1"],arm64:["/lib/aarch64-linux-gnu/libc.so.6","/usr/lib/aarch64-linux-gnu/libc.so.6","/lib64/libc.so.6","/lib/libc.musl-aarch64.so.1"],ia32:["/lib/i386-linux-gnu/libc.so.6","/usr/lib/i386-linux-gnu/libc.so.6","/lib32/libc.so.6","/lib/libc.musl-i386.so.1"],loong64:["/lib/loongarch64-linux-gnu/libc.so.6","/usr/lib/loongarch64-linux-gnu/libc.so.6","/lib64/libc.so.6","/lib/libc.musl-loongarch64.so.1"],riscv64:["/lib/riscv64-linux-gnu/libc.so.6","/usr/lib/riscv64-linux-gnu/libc.so.6","/lib64/libc.so.6","/lib/libc.musl-riscv64.so.1"],x64:["/lib/x86_64-linux-gnu/libc.so.6","/usr/lib/x86_64-linux-gnu/libc.so.6","/lib64/libc.so.6","/lib/libc.musl-x86_64.so.1"]}[process.arch]??[],"/lib/libc.so.6","/usr/lib/libc.so.6"].find(e.existsSync);if(!a)throw Error(`Native OMP file locks do not support Linux ${process.arch} without a trusted libc path`);return h.default.load(a)}(),c=b.func("int socket(int domain, int type, int protocol)"),d=b.func("int bind(int socket, const void *address, uint32_t address_len)"),f=b.func("int close(int fd)"),g=await k(a),i=Buffer.from(g,"utf8"),j=Buffer.alloc(3+i.length);return j.writeUInt16LE(1,0),i.copy(j,3),()=>{let a=c(1,524290,0);if(a<0)throw l("socket",h.default.errno());if(0===d(a,j,j.length))return{release(){if(0!==f(a))throw l("close",h.default.errno())}};let b=h.default.errno();if(0!==f(a))throw l("close",h.default.errno());if(b===h.default.os.errno.EADDRINUSE)return null;throw l("bind",b)}}async function n(a){let b=h.default.load("kernel32.dll"),c=b.func("void __stdcall SetLastError(uint32_t code)"),d=b.func("void * __stdcall CreateMutexW(void *attributes, int initial_owner, str16 name)"),e=b.func("uint32_t __stdcall GetLastError(void)"),f=b.func("int __stdcall CloseHandle(void *handle)"),g=`Global\\${await k(a)}`;return()=>{c(0);let a=d(null,0,g),b=e();if(null===a)throw l("CreateMutexW",b);if(183===b){if(0===f(a))throw l("CloseHandle",e());return null}return{release(){if(0===f(a))throw l("CloseHandle",e())}}}}async function o(a){if("linux"===process.platform)return m(a);if("darwin"===process.platform){let b,c,d,e;return c=(b=h.default.load("/usr/lib/libSystem.B.dylib")).func("int open(const char *path, int flags, ...)"),d=b.func("int flock(int fd, int operation)"),e=b.func("int close(int fd)"),()=>{let b=c(a,0x1000202,"uint",384);if(b<0)throw l("open",h.default.errno());if(0===d(b,6))return{release(){if(0!==e(b))throw l("close",h.default.errno())}};let f=h.default.errno();if(0!==e(b))throw l("close",h.default.errno());if(f===h.default.os.errno.EWOULDBLOCK||f===h.default.os.errno.EAGAIN)return null;throw l("flock",f)}}if("win32"===process.platform)return n(a);throw Error(`Native OMP file locks do not support ${process.platform}`)}async function p(a,b,c){let d=`${f.resolve(a)}.lock`,e=await o(d);for(let a=0;a<c.attempts;a+=1){let d=e();if(d)try{return await b()}finally{d.release()}a+1<c.attempts&&await c.sleep(c.retryDelayMs)}throw Error(`Failed to acquire lock for ${a} after ${c.attempts} attempts`)}function q(a){let b,c=f.resolve(a);try{b=(0,e.lstatSync)(c).isSymbolicLink()}catch(a){if(a instanceof Error&&"code"in a&&"ENOENT"===a.code)return c;throw a}return b?(0,e.realpathSync)(c):c}function r(a,b){return p(a,b,{attempts:50,retryDelayMs:100,sleep:g.setTimeout})}d()}catch(a){d(a)}})},26092:(a,b,c)=>{b.Tt=function(a){return a=a||{},d.extend({},f,a,{customStyleMap:g(a.styleMap),readStyleMap:function(){var a=this.customStyleMap;return this.includeEmbeddedStyleMap&&(a=a.concat(g(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(a=a.concat(e)),a}})};var d=c(84906),e=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],f={externalFileAccess:!1,transformDocument:function(a){return a},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function g(a){return a?d.isString(a)?a.split("\n").map(function(a){return a.trim()}).filter(function(a){return""!==a&&"#"!==a.charAt(0)}):a:[]}},26466:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{RB:()=>z,Sn:()=>x,eU:()=>t,hH:()=>A,x4:()=>y});var e=c(29021),f=c(33873),g=c.n(f),h=c(71217),i=c(92226),j=c(2904),k=c(87390),l=c(83739),m=c(84435),n=a([j]);function o(a){return"string"==typeof a&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a)}j=(n.then?(await n)():n)[0];let B={task:{description:"General-purpose subagent with full capabilities for delegated multi-step tasks",model:"@task",thinkingLevel:"auto",spawns:["*"],tools:["read","write","edit","bash"],systemPrompt:"General-purpose coding agent with full capabilities. Implement requested changes carefully and verify them before finishing."},scout:{description:"MUST be used for exploratory codebase research, rapid code analysis, and broad pattern searches. Fast read-only scout returning compressed context for handoff.",model:"@smol",thinkingLevel:"medium",tools:["read","grep","glob","web_search"],systemPrompt:"Explore the codebase and return concise, evidence-backed findings. Do not modify files."},reviewer:{description:"Code review specialist for quality/security analysis",model:"@slow",spawns:["scout"],tools:["read","grep","glob","bash","lsp","web_search","ast_grep"],systemPrompt:"Review code for correctness, security, maintainability, and regressions with concrete findings."},"security-reviewer":{description:"Read-only security specialist for evidence-backed repository vulnerability discovery",model:"@slow",tools:["read","grep","glob","lsp","ast_grep"],systemPrompt:"Discover potential security vulnerabilities and return concrete evidence and remediation guidance."},sonic:{description:"Low-reasoning agent for strictly mechanical updates or data collection only",model:"@smol",thinkingLevel:"medium",tools:["read","write","edit"],systemPrompt:"Perform strictly mechanical updates and data collection accurately with minimal overhead."}};function p(a,b,c){let d=a.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/),e=d?d[1]:"",f=d?a.slice(d[0].length):a,i=(0,h.Tp)(e);if(i.errors.length>0)throw Error(`YAML parse error in ${b}: ${i.errors[0].message}`);let j=i.toJS(),k=j&&"object"==typeof j&&!Array.isArray(j)?j:{},l=String(k.name||g().basename(b,".md"));if(!o(l))throw Error(`Invalid agent identifier "${l}" in ${b}`);return{...k,name:l,description:String(k.description||""),tools:Array.isArray(k.tools)?k.tools.map(String):void 0,model:"string"==typeof k.model||Array.isArray(k.model)?k.model:void 0,prewalk:"boolean"==typeof k.prewalk||"string"==typeof k.prewalk?k.prewalk:void 0,advisor:"boolean"==typeof k.advisor||"string"==typeof k.advisor?k.advisor:void 0,thinkingLevel:"string"==typeof k.thinkingLevel?k.thinkingLevel:void 0,blocking:"boolean"==typeof k.blocking?k.blocking:void 0,systemPrompt:String(k.systemPrompt??f.trim()),source:c,filePath:b,isShadowed:!1}}async function q(a,b,c){try{let d=await e.promises.readdir(a,{withFileTypes:!0}),f=[];for(let h of d)if(h.isFile()&&h.name.endsWith(".md")){let d=g().join(a,h.name);try{let a=await e.promises.readFile(d,"utf8");f.push(p(a,d,b))}catch(a){c.push({path:d,error:a instanceof Error?a.message:String(a)})}}return f}catch(d){let b=d&&"object"==typeof d&&"code"in d?d.code:void 0;return"ENOENT"!==b&&c.push({path:a,error:d instanceof Error?d.message:String(d)}),[]}}function r(a){let b=g().resolve(a);for(;;){let a=g().join(b,".omp","agents"),c=g().join(b,".omp");if((0,e.existsSync)(a)||(0,e.existsSync)(c)){if(!(0,l.o4)((0,l.SW)(a),new Set([(0,l.SW)(b)])))throw Error(`Access denied to project agents directory: ${a}`);return a}let d=g().dirname(b);if(d===b)return null;b=d}}function s(){return g().join((0,i.$M)(),"agents")}async function t(a=process.cwd()){let b=[],c=r(a),d=s(),e=[];for(let a of(c&&e.push({dir:c,source:"project"}),e.push({dir:d,source:"user"}),(process.env.OMP_EXTENSION_DIRS||"").split(g().delimiter).filter(Boolean)))e.push({dir:g().join(a,"agents"),source:"extension"});let f=[];for(let{dir:a,source:c}of e){let d=await q(a,c,b);f.push(...d)}for(let[a,b]of Object.entries(B))f.push({name:a,model:b.model,thinkingLevel:b.thinkingLevel,spawns:b.spawns,description:b.description||"",tools:b.tools,systemPrompt:b.systemPrompt||"",source:"bundled",isShadowed:!1});let h=new Set,i=[],k={};try{k=(0,j.rk)().settings.task||{}}catch{}let l=k.agentModelOverrides||{},m=k.agentPrewalk||{},n=k.agentAdvisor||{},o=new Set(Array.isArray(k.disabledAgents)?k.disabledAgents:[]);for(let a of f){let b=!h.has(a.name);if(h.add(a.name),a.isShadowed=!b,b){if(a.name in l&&(a.overrideModel=l[a.name]),a.name in m){let b=m[a.name];a.prewalkOverride="on"===b||"off"!==b&&b}if(a.name in n){let b=n[a.name];a.advisorOverride="on"===b||"off"!==b&&b}o.has(a.name)&&(a.disabled=!0),i.push(a)}}return{agents:i,projectRoot:c?g().dirname(g().dirname(c)):void 0,...b.length>0?{diagnostics:b}:{}}}async function u(a){let b,c;if("user"===a.scope)c=(0,l.SW)((0,i.$M)()),b=s();else{let d=a.cwd||process.cwd(),f=await (0,k.mc)();if(!(0,k.B7)(d,f))throw Error(`Access denied to project path: ${d}`);if(b=r(d)||g().join(g().resolve(d),".omp","agents"),c=await e.promises.realpath(g().dirname(g().dirname(b))),!(0,k.B7)(c,f))throw Error(`Access denied to project root: ${c}`)}let d=(0,l.SW)(b);if(!(0,l.o4)(d,new Set([c])))throw Error(`Access denied to agents directory: ${b}`);return d}async function v(a){if(!o(a.name))throw Error(`Invalid agent identifier: "${a.name}"`);let b=await u(a),c=(0,l.SW)(g().join(b,`${a.name}.md`));if(!(0,l.o4)(c,new Set([b])))throw Error(`Access denied to target agent file: ${c}`);return await e.promises.mkdir(b,{recursive:!0}),c}function w(a){let b={name:a.name,description:a.description};for(let[c,d]of(a.tools&&a.tools.length>0&&(b.tools=a.tools),void 0!==a.model&&(b.model=a.model),void 0!==a.thinkingLevel&&(b.thinkingLevel=a.thinkingLevel),void 0!==a.prewalk&&(b.prewalk=a.prewalk),void 0!==a.advisor&&(b.advisor=a.advisor),Object.entries(a)))"name"===c||"description"===c||"tools"===c||"model"===c||"thinkingLevel"===c||"prewalk"===c||"advisor"===c||"systemPrompt"===c||["scope","cwd","source","filePath","isShadowed","overrideModel","prewalkOverride","advisorOverride","disabled"].includes(c)||void 0===d||(b[c]=d);let c=(0,h.As)(b).trim(),d=(a.systemPrompt||"").trim();return`---
|
|
50
|
+
${c}
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
${d}
|
|
54
|
+
`}async function x(a){let b=await v(a);if((0,e.existsSync)(b))throw Error(`Agent "${a.name}" already exists in ${a.scope} scope`);let c=w(a);return(0,m.D)(b,c),b}async function y(a){let b=await v(a);if(!(0,e.existsSync)(b))throw Error(`Agent "${a.name}" not found in ${a.scope} scope`);let c=await e.promises.readFile(b,"utf8"),d=p(c,b,a.scope),f=w({...d,name:a.name,description:a.description??d.description,tools:a.tools??d.tools,model:a.model??d.model,thinkingLevel:a.thinkingLevel??d.thinkingLevel,blocking:a.blocking??d.blocking,prewalk:a.prewalk??d.prewalk,advisor:a.advisor??d.advisor,systemPrompt:a.systemPrompt??d.systemPrompt});return(0,m.D)(b,f),b}async function z(a){let b=await v(a);if(!(0,e.existsSync)(b))throw Error(`Agent "${a.name}" not found in ${a.scope} scope`);await e.promises.unlink(b)}async function A(a){let b=await u(a);await e.promises.mkdir(b,{recursive:!0});let c=0;for(let[d,f]of Object.entries(B)){let h=g().join(b,`${d}.md`);if(!a.force&&(0,e.existsSync)(h))continue;let i=w({name:d,model:f.model,thinkingLevel:f.thinkingLevel,spawns:f.spawns,description:f.description||"",tools:f.tools,systemPrompt:f.systemPrompt||""});(0,m.D)(h,i),c++}return{targetDir:b,count:c}}d()}catch(a){d(a)}})},26701:(a,b,c)=>{"use strict";var d=c(73315),e=c(26957),f=c(49443);class g extends e.NodeBase{constructor(a){super(d.SCALAR),this.value=a}toJSON(a,b){return b?.keep?this.value:f.toJS(this.value,a,b)}toString(){return String(this.value)}}g.BLOCK_FOLDED="BLOCK_FOLDED",g.BLOCK_LITERAL="BLOCK_LITERAL",g.PLAIN="PLAIN",g.QUOTE_DOUBLE="QUOTE_DOUBLE",g.QUOTE_SINGLE="QUOTE_SINGLE",b.Scalar=g,b.isScalarValue=a=>!a||"function"!=typeof a&&"object"!=typeof a},26720:(a,b,c)=>{"use strict";var d=c(26701);function e({value:a,source:b},c){let d=a?f:g;return b&&d.test.test(b)?b:a?c.options.trueStr:c.options.falseStr}let f={identify:a=>!0===a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new d.Scalar(!0),stringify:e},g={identify:a=>!1===a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new d.Scalar(!1),stringify:e};b.falseTag=g,b.trueTag=f},26932:(a,b,c)=>{var d=c(67708);function e(a,b){b.forEach(function(b){var c,d;c=a,f[(d=b).type](c,d)})}b.freshElement=d.freshElement,b.nonFreshElement=d.nonFreshElement,b.elementWithTag=d.elementWithTag,b.text=d.text,b.forceWrite=d.forceWrite,b.simplify=c(62117);var f={element:function(a,b){d.isVoidElement(b)?a.selfClosing(b.tag.tagName,b.tag.attributes):(a.open(b.tag.tagName,b.tag.attributes),e(a,b.children),a.close(b.tag.tagName))},text:function(a,b){a.text(b.value)},forceWrite:function(){}};b.write=e},26957:(a,b,c)=>{"use strict";var d=c(83989),e=c(73315),f=c(49443);class g{constructor(a){Object.defineProperty(this,e.NODE_TYPE,{value:a})}clone(){let a=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(a.range=this.range.slice()),a}toJS(a,{mapAsMap:b,maxAliasCount:c,onAnchor:g,reviver:h}={}){if(!e.isDocument(a))throw TypeError("A document argument is required");let i={anchors:new Map,doc:a,keep:!0,mapAsMap:!0===b,mapKeyWarned:!1,maxAliasCount:"number"==typeof c?c:100},j=f.toJS(this,"",i);if("function"==typeof g)for(let{count:a,res:b}of i.anchors.values())g(b,a);return"function"==typeof h?d.applyReviver(h,{"":j},"",j):j}}b.NodeBase=g},26980:(a,b,c)=>{"use strict";function d(a){let b=0;for(let c=0;c<a.length;c++)"/"===a[c]&&b++;return b}function e(a){let b=new Set;for(let c of a){let a=c.indexOf("/");for(;-1!==a;)b.add(c.slice(0,a)),a=c.indexOf("/",a+1)}let c=[];for(let a of b)c.push({path:a,isDir:!0});for(let b of a)b&&c.push({path:b,isDir:!1});return c.sort((a,b)=>d(a.path)-d(b.path)||a.path.localeCompare(b.path)),c}function f(a,b){if(!a)return!0;let c=0;for(let d=0;d<b.length&&c<a.length;d++)b[d]===a[c]&&c++;return c===a.length}function g(a,b,c=20){let e=b.toLowerCase();if(!e)return a.slice(0,c);let h=[];for(let b of a){let a=function(a,b){let c=a.path.toLowerCase(),d=0;if(b.includes("/"))c===b?d=100:c.startsWith(b)?d=80:c.includes(b)?d=50:f(b,c)&&(d=10);else{let a=c.lastIndexOf("/"),e=-1===a?c:c.slice(a+1);e===b?d=100:e.startsWith(b)?d=80:e.includes(b)?d=50:c.includes(b)?d=30:f(b,c)&&(d=10)}return a.isDir&&d>0&&(d+=10),d}(b,e);a>0&&h.push({entry:b,score:a})}return h.sort((a,b)=>b.score-a.score||d(a.entry.path)-d(b.entry.path)||a.entry.path.localeCompare(b.entry.path)),h.slice(0,c).map(a=>a.entry)}c.d(b,{R7:()=>g,Yh:()=>e})},27387:(a,b,c)=>{"use strict";var d=c(26701);let e={identify:a=>"boolean"==typeof a,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:a=>new d.Scalar("t"===a[0]||"T"===a[0]),stringify:({source:a,value:b},c)=>a&&e.test.test(a)&&b===("t"===a[0]||"T"===a[0])?a:b?c.options.trueStr:c.options.falseStr};b.boolTag=e},27572:(a,b,c)=>{"use strict";c.d(b,{Kj:()=>d});let d=[{name:"goal",descriptionKey:"chatInput.cmdGoal",argumentHintKey:"chatInput.cmdGoalArg",requiresArgs:!0,buildPrompt:a=>`Work toward this goal for the rest of the session:
|
|
55
|
+
|
|
56
|
+
${a}
|
|
57
|
+
|
|
58
|
+
Treat it as the objective to prioritize when deciding what to do next.`},{name:"plan",descriptionKey:"chatInput.cmdPlan",argumentHintKey:"chatInput.cmdPlanArg",requiresArgs:!0,buildPrompt:a=>`Create a plan for this task before doing anything else:
|
|
59
|
+
|
|
60
|
+
${a}
|
|
61
|
+
|
|
62
|
+
Think it through step by step, list concrete steps, and state what you will verify when done.`},{name:"review",descriptionKey:"chatInput.cmdReview",argumentHintKey:"chatInput.cmdReviewArg",requiresArgs:!1,buildPrompt:a=>a?`Review ${a} for bugs, security issues, and opportunities to simplify. Summarize what you find, then fix anything clearly wrong.`:"Review the current project state and recent changes for bugs, security issues, and opportunities to simplify. Summarize what you find, then fix anything clearly wrong."},{name:"fix",descriptionKey:"chatInput.cmdFix",argumentHintKey:"chatInput.cmdFixArg",requiresArgs:!0,buildPrompt:a=>`Fix this issue:
|
|
63
|
+
|
|
64
|
+
${a}
|
|
65
|
+
|
|
66
|
+
Reproduce the problem, apply the smallest correct fix, and verify it works before finishing.`},{name:"test",descriptionKey:"chatInput.cmdTest",argumentHintKey:"chatInput.cmdTestArg",requiresArgs:!0,buildPrompt:a=>`Write tests for ${a}. Follow the project's test conventions, cover the important behavior and edge cases, and run the tests to confirm they pass.`},{name:"explain",descriptionKey:"chatInput.cmdExplain",argumentHintKey:"chatInput.cmdExplainArg",requiresArgs:!0,buildPrompt:a=>`Explain ${a} concisely: what it does, how it works, and the key details worth knowing.`},{name:"simplify",descriptionKey:"chatInput.cmdSimplify",argumentHintKey:"chatInput.cmdSimplifyArg",requiresArgs:!0,buildPrompt:a=>`Simplify ${a}. Remove unnecessary complexity while preserving behavior, keep the change focused, and verify nothing breaks.`},{name:"commit",descriptionKey:"chatInput.cmdCommit",argumentHintKey:"chatInput.cmdCommitArg",requiresArgs:!1,buildPrompt:a=>a?`Stage the relevant files and commit the current changes with this message: ${JSON.stringify(a)}. Run the project's checks first so the commit is green.`:"Stage the relevant files and commit the current changes with a clear conventional commit message. Run the project's checks first so the commit is green."}];d.map(a=>[a.name,a])},29047:(a,b,c)=>{"use strict";c.d(b,{TN:()=>k,iw:()=>i,t0:()=>h,zV:()=>j});var d=c(73024),e=c(48161),f=c(76760),g=c(33335);class h extends Error{constructor(a,b,c,d){super(b),this.code=a,this.latencyMs=c,this.issues=d,this.name="ModelVerificationError"}}function i(a){let b="object"!=typeof a||null===a||Array.isArray(a)?{}:a,c="providerName"in b&&"string"==typeof b.providerName?b.providerName.trim():"";if(!c)throw new h("provider_name_required","providerName is required");if(!("provider"in b)||"object"!=typeof b.provider||null===b.provider||Array.isArray(b.provider))throw new h("provider_required","provider is required");if(!("model"in b)||"object"!=typeof b.model||null===b.model||Array.isArray(b.model))throw new h("model_required","model is required");let d="id"in b.model&&"string"==typeof b.model.id?b.model.id.trim():"";if(!d)throw new h("model_id_required","Model ID is required");let e={providers:{[c]:{...b.provider,models:[{...b.model,id:d}]}}};try{(0,g.Jz)(e)}catch(a){throw new h("models_config_invalid",a instanceof g.Cc?a.message:"Invalid models configuration",void 0,a instanceof g.Cc?a.issues:void 0)}return{providerName:c,modelId:d,candidate:e}}function j(a){let b=(0,d.mkdtempSync)((0,f.join)((0,e.tmpdir)(),"ompgui-model-test-"));try{return(0,d.writeFileSync)((0,f.join)(b,"models.yml"),(0,g.v7)(a),{encoding:"utf8",mode:384}),b}catch(a){throw(0,d.rmSync)(b,{recursive:!0,force:!0}),a}}async function k(a){let b=Date.now(),{providerName:c,modelId:d}=i(a);return{ok:!0,latencyMs:Date.now()-b,responseText:`${c}/${d} has valid configuration (configuration only; no provider connection attempted)`}}},29071:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});let d=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function e(){return function(a){let{exports:{mem:b,xxh32:c,xxh64:d,init32:e,update32:f,digest32:g,init64:h,update64:i,digest64:j}}=a,k=new Uint8Array(b.buffer);function l(a,c){if(b.buffer.byteLength<a+c){let d=Math.ceil((a+c-b.buffer.byteLength)/65536);b.grow(d),k=new Uint8Array(b.buffer)}}function m(a,b,c,d,e,f){l(a);let g=new Uint8Array(a);return k.set(g),c(0,b),g.set(k.subarray(0,a)),{update(b){let c;return k.set(g),"string"==typeof b?(l(3*b.length,a),c=q.encodeInto(b,k.subarray(a)).written):(l(b.byteLength,a),k.set(b,a),c=b.byteLength),d(0,a,c),g.set(k.subarray(0,a)),this},digest:()=>(k.set(g),f(e(0)))}}function n(a){return a>>>0}let o=2n**64n-1n;function p(a){return a&o}let q=new TextEncoder,r=0,s=0n;function t(a,b=r){return l(3*a.length,0),n(c(0,q.encodeInto(a,k).written,b))}function u(a,b=s){return l(3*a.length,0),p(d(0,q.encodeInto(a,k).written,b))}return{h32:t,h32ToString:(a,b=r)=>t(a,b).toString(16).padStart(8,"0"),h32Raw:(a,b=r)=>(l(a.byteLength,0),k.set(a),n(c(0,a.byteLength,b))),create32:(a=r)=>m(48,a,e,f,g,n),h64:u,h64ToString:(a,b=s)=>u(a,b).toString(16).padStart(16,"0"),h64Raw:(a,b=s)=>(l(a.byteLength,0),k.set(a),p(d(0,a.byteLength,b))),create64:(a=s)=>m(88,a,h,i,j,p)}}((await WebAssembly.instantiate(d)).instance)}},30137:(a,b,c)=>{"use strict";var d="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Uint32Array,e=c(32778),f=c(58952),g=c(76281),h=d?"uint8array":"array";function i(a,b){g.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}b.magic="\b\0",f.inherits(i,g),i.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(f.transformTo(h,a.data),!1)},i.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},b.compressWorker=function(a){return new i("Deflate",a)},b.uncompressWorker=function(){return new i("Inflate",{})}},30212:(a,b,c)=>{"use strict";for(var d=c(58952),e=c(49642),f=c(39531),g=c(76281),h=Array(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1;var j=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f<h;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(d=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),f++),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=e.uint8array?new Uint8Array(i):Array(i),g=0,f=0;g<i;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(d=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),f++),c<128?b[g++]=c:(c<2048?b[g++]=192|c>>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},k=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+h[a[c]]>b?c:b},l=function(a){var b,c,e,f,g=a.length,i=Array(2*g);for(c=0,b=0;b<g;){if((e=a[b++])<128){i[c++]=e;continue}if((f=h[e])>4){i[c++]=65533,b+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&b<g;)e=e<<6|63&a[b++],f--;if(f>1){i[c++]=65533;continue}e<65536?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};function m(){g.call(this,"utf-8 decode"),this.leftOver=null}function n(){g.call(this,"utf-8 encode")}b.utf8encode=function(a){return e.nodebuffer?f.newBufferFrom(a,"utf-8"):j(a)},b.utf8decode=function(a){return e.nodebuffer?d.transformTo("nodebuffer",a).toString("utf-8"):l(a=d.transformTo(e.uint8array?"uint8array":"array",a))},d.inherits(m,g),m.prototype.processChunk=function(a){var c=d.transformTo(e.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var f=c;(c=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),c.set(f,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=k(c),h=c;g!==c.length&&(e.uint8array?(h=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(h=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:b.utf8decode(h),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:b.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},b.Utf8DecodeWorker=m,d.inherits(n,g),n.prototype.processChunk=function(a){this.push({data:b.utf8encode(a.data),meta:a.meta})},b.Utf8EncodeWorker=n},30444:(a,b,c)=>{var d=c(79428),e=d.Buffer;function f(a,b){for(var c in a)b[c]=a[c]}function g(a,b,c){return e(a,b,c)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?a.exports=d:(f(d,b),b.Buffer=g),f(e,g),g.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return e(a,b,c)},g.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var d=e(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},g.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return e(a)},g.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d.SlowBuffer(a)}},30598:(a,b,c)=>{"use strict";var d=c(70752),e=c(8878),f=c(66273),g=c(73315),h=c(37521),i=c(26701);function j(a,b){let c=g.isScalar(b)?b.value:b;for(let d of a)if(g.isPair(d)&&(d.key===b||d.key===c||g.isScalar(d.key)&&d.key.value===c))return d}class k extends f.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(a){super(g.MAP,a),this.items=[]}static from(a,b,c){let{keepUndefined:d,replacer:e}=c,f=new this(a),g=(a,g)=>{if("function"==typeof e)g=e.call(b,a,g);else if(Array.isArray(e)&&!e.includes(a))return;(void 0!==g||d)&&f.items.push(h.createPair(a,g,c))};if(b instanceof Map)for(let[a,c]of b)g(a,c);else if(b&&"object"==typeof b)for(let a of Object.keys(b))g(a,b[a]);return"function"==typeof a.sortMapEntries&&f.items.sort(a.sortMapEntries),f}add(a,b){let c;c=g.isPair(a)?a:a&&"object"==typeof a&&"key"in a?new h.Pair(a.key,a.value):new h.Pair(a,a?.value);let d=j(this.items,c.key),e=this.schema?.sortMapEntries;if(d){if(!b)throw Error(`Key ${c.key} already set`);g.isScalar(d.value)&&i.isScalarValue(c.value)?d.value.value=c.value:d.value=c.value}else if(e){let a=this.items.findIndex(a=>0>e(c,a));-1===a?this.items.push(c):this.items.splice(a,0,c)}else this.items.push(c)}delete(a){let b=j(this.items,a);return!!b&&this.items.splice(this.items.indexOf(b),1).length>0}get(a,b){let c=j(this.items,a),d=c?.value;return(!b&&g.isScalar(d)?d.value:d)??void 0}has(a){return!!j(this.items,a)}set(a,b){this.add(new h.Pair(a,b),!0)}toJSON(a,b,c){let d=c?new c:b?.mapAsMap?new Map:{};for(let a of(b?.onCreate&&b.onCreate(d),this.items))e.addPairToJSMap(b,d,a);return d}toString(a,b,c){if(!a)return JSON.stringify(this);for(let a of this.items)if(!g.isPair(a))throw Error(`Map items must all be pairs; found ${JSON.stringify(a)} instead`);return!a.allNullValues&&this.hasAllNullValues(!1)&&(a=Object.assign({},a,{allNullValues:!0})),d.stringifyCollection(this,a,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:a.indent||"",onChompKeep:c,onComment:b})}}b.YAMLMap=k,b.findPair=j},30666:(a,b,c)=>{"use strict";var d=c(26701);let e={identify:a=>null==a,createNode:()=>new d.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new d.Scalar(null),stringify:({source:a},b)=>"string"==typeof a&&e.test.test(a)?a:b.options.nullStr};b.nullTag=e},31991:(a,b)=>{"use strict";function c(a){switch(a.type){case"block-scalar":{let b="";for(let d of a.props)b+=c(d);return b+a.source}case"block-map":case"block-seq":{let b="";for(let c of a.items)b+=d(c);return b}case"flow-collection":{let b=a.start.source;for(let c of a.items)b+=d(c);for(let c of a.end)b+=c.source;return b}case"document":{let b=d(a);if(a.end)for(let c of a.end)b+=c.source;return b}default:{let b=a.source;if("end"in a&&a.end)for(let c of a.end)b+=c.source;return b}}}function d({start:a,key:b,sep:e,value:f}){let g="";for(let b of a)g+=b.source;if(b&&(g+=c(b)),e)for(let a of e)g+=a.source;return f&&(g+=c(f)),g}b.stringify=a=>"type"in a?c(a):d(a)},32010:a=>{"use strict";a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},32171:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Fy:()=>n,JK:()=>l});var e=c(88250),f=c(96515),g=c(28672),h=c(52676),i=c(2904),j=a([i]);function k(a){if(void 0!==a){if("global"===a||"project"===a)return a;throw new i.Le("invalid_scope","scope must be global or project",[{path:"scope",message:"Unsupported settings scope"}])}}async function l(a={}){let b=k(a.scope);if(void 0!==a.cwd&&"string"!=typeof a.cwd)throw new i.Le("invalid_scope","cwd must be a string",[{path:"cwd",message:"Expected a string"}]);return(0,i.tB)(b,a.cwd)}async function m(a){let b=function(a){if(!(0,g.u4)(a.settings))return;let b=a.settings.enabledModels;return Array.isArray(b)&&b.every(a=>"string"==typeof a)?b:void 0}(a);if(b?.length)try{let a=await (0,h.runUtilityCommand)({type:"get_available_models"},12e4);if(!Array.isArray(a.models))return;let c=a.models.filter(a=>"object"==typeof a&&null!==a&&"string"==typeof a.id&&"string"==typeof a.provider);(0,f.c)(b,c)}catch(a){if(a instanceof Error&&a.message.startsWith("Ambiguous enabledModels entry"))throw new i.Le("invalid_settings",a.message,[{path:"enabledModels",message:a.message}])}}async function n(a){if(!(0,g.u4)(a))throw new i.Le("invalid_update","Settings update must be an object",[{path:"$",message:"Expected an object"}]);let b={...void 0!==a.settings?{settings:a.settings}:{},...void 0!==a.scope?{scope:k(a.scope)}:{},...void 0!==a.cwd?{cwd:a.cwd}:{},...void 0!==a.reset?{reset:a.reset}:{},...void 0!==a.secrets?{secrets:a.secrets}:{},...void 0!==a.confirm?{confirm:a.confirm}:{}};if(void 0!==a.cwd&&"string"!=typeof a.cwd)throw new i.Le("invalid_scope","cwd must be a string",[{path:"cwd",message:"Expected a string"}]);await m(b);let{snapshot:c,registryInvalidated:d}=await (0,i.Ee)(b);return d&&((0,e.kn)(),(0,h.j)()),{...c,success:!0,application:{mode:d?"runtime-refresh":"new-session",restartRequired:!1}}}i=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},32232:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=c(43823).TypeError,i=c(22418),j=i.errorObj,k=i.tryCatch,l=[];function m(b,c,e,f){if(g.cancellation()){var h=new a(d),i=this._finallyPromise=new a(d);this._promise=h.lastly(function(){return i}),h._captureStackTrace(),h._setOnCancel(this)}else(this._promise=new a(d))._captureStackTrace();this._stack=f,this._generatorFunction=b,this._receiver=c,this._generator=void 0,this._yieldHandlers="function"==typeof e?[e].concat(l):l,this._yieldedPromise=null,this._cancellationPhase=!1}i.inherits(m,f),m.prototype._isResolved=function(){return null===this._promise},m.prototype._cleanup=function(){this._promise=this._generator=null,g.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},m.prototype._promiseCancelled=function(){if(!this._isResolved()){var b;if(void 0!==this._generator.return)this._promise._pushContext(),b=k(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var c=new a.CancellationError("generator .return() sentinel");a.coroutine.returnSentinel=c,this._promise._attachExtraTrace(c),this._promise._pushContext(),b=k(this._generator.throw).call(this._generator,c),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(b)}},m.prototype._promiseFulfilled=function(a){this._yieldedPromise=null,this._promise._pushContext();var b=k(this._generator.next).call(this._generator,a);this._promise._popContext(),this._continue(b)},m.prototype._promiseRejected=function(a){this._yieldedPromise=null,this._promise._attachExtraTrace(a),this._promise._pushContext();var b=k(this._generator.throw).call(this._generator,a);this._promise._popContext(),this._continue(b)},m.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof a){var b=this._yieldedPromise;this._yieldedPromise=null,b.cancel()}},m.prototype.promise=function(){return this._promise},m.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},m.prototype._continue=function(b){var c=this._promise;if(b===j)return(this._cleanup(),this._cancellationPhase)?c.cancel():c._rejectCallback(b.e,!1);var d=b.value;if(!0===b.done)return(this._cleanup(),this._cancellationPhase)?c.cancel():c._resolveCallback(d);var f=e(d,this._promise);if(!(f instanceof a)&&null===(f=function(b,c,d){for(var f=0;f<c.length;++f){d._pushContext();var g=k(c[f])(b);if(d._popContext(),g===j){d._pushContext();var h=a.reject(j.e);return d._popContext(),h}var i=e(g,d);if(i instanceof a)return i}return null}(f,this._yieldHandlers,this._promise)))return void this._promiseRejected(new h("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",d)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));var g=(f=f._target())._bitField;(0x3010000&g)==0?(this._yieldedPromise=f,f._proxy(this,null)):(0x2000000&g)!=0?a._async.invoke(this._promiseFulfilled,this,f._value()):(0x1000000&g)!=0?a._async.invoke(this._promiseRejected,this,f._reason()):this._promiseCancelled()},a.coroutine=function(a,b){if("function"!=typeof a)throw new h("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var c=Object(b).yieldHandler,d=Error().stack;return function(){var b=a.apply(this,arguments),e=new m(void 0,void 0,c,d),f=e.promise();return e._generator=b,e._promiseFulfilled(void 0),f}},a.coroutine.addYieldHandler=function(a){if("function"!=typeof a)throw new h("expecting a function but got "+i.classString(a));l.push(a)},a.spawn=function(c){if(g.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof c)return b("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var d=new m(c,this),e=d.promise();return d._run(a.spawn),e}}},32778:(a,b,c)=>{"use strict";var d=c(69167).assign,e=c(22899),f=c(43631),g=c(53308),h={};d(h,e,f,g),a.exports=h},33239:(a,b,c)=>{"use strict";c.d(b,{Jw:()=>n,y9:()=>w,pM:()=>l,Sb:()=>q,Ss:()=>t});var d=c(29021),e=c(21820),f=c(33873),g=c(71217),h=c(92226);function i(a){try{let b=JSON.parse((0,d.readFileSync)(a,"utf8"));return b.skills&&"object"==typeof b.skills?b.skills:{}}catch{return{}}}function j(a,b){let c=(0,f.relative)((0,f.resolve)(b),(0,f.resolve)(a));return""!==c&&".."!==c&&!c.startsWith(`..${f.sep}`)&&!(0,f.isAbsolute)(c)}function k(a,b,c){var d;let e=function(a,b){if(a[b])return a[b];let c=b.toLowerCase(),d=Object.keys(a).find(a=>a.toLowerCase()===c);return d?a[d]:void 0}(a,b);if(!e||"string"!=typeof e.source||!e.source.trim())return;let f="string"==typeof e.sourceType?e.sourceType:void 0,g=(d=e.source.trim(),"github"!==f?d.replace(/\/$/,""):d.replace(/^git\+/,"").replace(/^https?:\/\/github\.com\//,"").replace(/^git@github\.com:/,"").replace(/\.git$/,"").replace(/\/$/,""));if(!g)return;let h="string"==typeof e.skillPath?e.skillPath:void 0,i="string"==typeof e.ref?e.ref:void 0,j="global"===c?e.skillFolderHash:e.computedHash,k="string"==typeof j&&j?j:void 0,l="github"===f&&/^[\w.-]+\/[\w.-]+$/.test(g);return{package:`${g}@${b}`,scope:c,source:g,sourceType:f,skillsShUrl:"local"===f?void 0:function(a,b){if(!a||a.includes("://")||a.startsWith("git@"))return;let c=a.split("/").filter(Boolean).map(encodeURIComponent).join("/");if(c)return`https://skills.sh/${c}/${encodeURIComponent(b)}`}(g,b),...h&&{skillPath:h},...i&&{ref:i},...k&&{versionHash:k},canCheckForUpdates:!!(l&&h&&k&&("global"===c||!i))}}function l(a){let b=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/.exec(a);if(!b)return{frontmatter:{},body:a};try{let c=(0,g.qg)(b[1]);return{frontmatter:c&&"object"==typeof c&&!Array.isArray(c)?c:{},body:a.slice(b[0].length)}}catch{return{frontmatter:{},body:a.slice(b[0].length)}}}function m(a){let b=(0,e.homedir)(),c=(0,h.$M)(),g=function(a){let b=(0,e.homedir)(),c=[],g=f.resolve(a);for(;c.push(g),!(0,d.existsSync)(f.join(g,".git"))&&g!==b;){let a=f.dirname(g);if(a===g)break;g=a}return c}(a),i=g.filter(a=>a!==b),j=[];for(let a of i)j.push({dir:f.join(a,".omp","skills"),source:".omp",scope:"project",requireDescription:!0});j.push({dir:f.join(c,"skills"),source:".omp",scope:"user",requireDescription:!0});let k=process.env.CLAUDE_CONFIG_DIR||f.join(b,".claude");for(let a of(j.push({dir:f.join(k,"skills"),source:".claude",scope:"user"}),i))j.push({dir:f.join(a,".claude","skills"),source:".claude",scope:"project"});for(let a of i)j.push({dir:f.join(a,".agent","skills"),source:".agents",scope:"project"}),j.push({dir:f.join(a,".agents","skills"),source:".agents",scope:"project"});j.push({dir:f.join(b,".agent","skills"),source:".agents",scope:"user"}),j.push({dir:f.join(b,".agents","skills"),source:".agents",scope:"user"}),j.push({dir:f.join(b,".codex","skills"),source:".codex",scope:"user"}),j.push({dir:f.join(a,".codex","skills"),source:".codex",scope:"project"});let l=g[g.length-1];return j.push({dir:f.join(l,".github","skills"),source:".github",scope:"project",requireDescription:!0}),j.push({dir:f.join(c,"managed-skills"),source:"managed",scope:"user",requireDescription:!0}),j}function n(a){return m(a??(0,e.homedir)()).map(a=>a.dir)}let o=["disable-model-invocation","disableModelInvocation","hide"],p=o[0];function q(a){return o.some(b=>{var c;return!0===(c=a[b])||"true"===c})}let r=/^---\r?\n([\s\S]*?)\r?\n---(\r?\n|$)/,s=RegExp(`^(?:${o.join("|")})[ \\t]*:.*$`);function t(a,b){let c,d=r.exec(a);if(!d)return b?`---
|
|
67
|
+
${p}: true
|
|
68
|
+
---
|
|
69
|
+
${a}`:a;let e=d[0].includes("\r\n")?"\r\n":"\n",f=d[1].split(/\r?\n/),g=f.reduce((a,b,c)=>(s.test(b)&&a.push(c),a),[]);if(b)if(0===g.length)c=[`${p}: true`,...f];else{let a=g[0],b=/^([\w-]+)/.exec(f[a])?.[1]??p;c=f.map((c,d)=>d===a?`${b}: true`:c).filter((b,c)=>c===a||!g.includes(c))}else{if(0===g.length)return a;c=f.filter((a,b)=>!g.includes(b))}return`---${e}${c.join(e)}${e}---${d[2]}`+a.slice(d[0].length)}async function u(a,b){let c;try{let b=Reflect.get(d.promises,"readdir");c=await b(a.dir,{withFileTypes:!0})}catch(c){return"ENOENT"!==c.code&&b.push({type:"warning",message:`Failed to read skills directory: ${String(c)}`,path:a.dir}),[]}let e=[];return await Promise.all(c.map(async c=>{let g;if(c.name.startsWith(".")||!c.isDirectory()&&!c.isSymbolicLink())return;let h=f.join(a.dir,c.name,"SKILL.md");try{g=await d.promises.readFile(h,"utf8")}catch(a){"ENOENT"!==a.code&&b.push({type:"warning",message:"Failed to read skill file",path:h});return}let{frontmatter:i}=l(g);if(!1===i.enabled)return;let j="string"==typeof i.description?i.description:"";if(a.requireDescription&&!j)return;let k=i.name,m="string"==typeof k&&k.trim()?k.trim():c.name;e.push({name:m,description:j,filePath:h,baseDir:f.join(a.dir,c.name),disableModelInvocation:q(i),sourceInfo:{source:a.source,scope:a.scope}})})),e}async function v(a){let b=[],c=new Map;for(let d of m(a))for(let a of(await u(d,b)))c.has(a.name)||c.set(a.name,a);return{skills:[...c.values()].sort((a,b)=>{let c=a.name.toLowerCase().localeCompare(b.name.toLowerCase());return 0!==c?c:a.filePath.localeCompare(b.filePath)}),diagnostics:b}}async function w(a){let{skills:b,diagnostics:c}=await v(a);return{skills:function(a,{cwd:b,agentDir:c,globalLockPath:g=function(a={}){let b=a.homeDir??(0,e.homedir)(),c=a.xdgStateHome??(void 0===a.homeDir?process.env.XDG_STATE_HOME:void 0);return c?(0,f.join)(c,"skills",".skill-lock.json"):(0,f.join)(b,".agents",".skill-lock.json")}(),projectLockPath:h=(0,f.join)(b,"skills-lock.json")}){let l=i(g),m=i(h),n=[(0,f.join)(c,"skills"),(0,f.join)((0,e.homedir)(),".agents","skills")],o=[(0,f.join)(b,".omp","skills"),(0,f.join)(b,".agents","skills")];return a.map(a=>{if(!(0,d.existsSync)(a.filePath))return a;let b=n.some(b=>j(a.filePath,b))?k(l,a.name,"global"):o.some(b=>j(a.filePath,b))?k(m,a.name,"project"):void 0;return b?{...a,install:b}:a})}(b,{cwd:a,agentDir:(0,h.$M)()}),diagnostics:c}}},33335:(a,b,c)=>{"use strict";c.d(b,{Cc:()=>k,F3:()=>t,IX:()=>A,Iy:()=>u,Jz:()=>o,YM:()=>j,hH:()=>w,kx:()=>p,v7:()=>z});var d=c(29021),e=c(33873),f=c(84435),g=c(71217),h=c(92226),i=c(28672);let j="models_config_invalid";class k extends Error{constructor(a){const b=a.length>0?a:[{path:"",message:"Invalid models configuration"}];super(b.map(a=>a.path?`${a.path} ${a.message}`:a.message).join("; ")),this.code=j,this.name="ModelsConfigValidationError",this.issues=b}}function l(a,b,c){a.push({path:b,message:c})}function m(a){if("string"!=typeof a||""===a.trim())return!1;try{let b=new URL(a);return("http:"===b.protocol||"https:"===b.protocol)&&b.hostname.length>0}catch{return!1}}function n(a,b,c){(!(0,i.u4)(a)||Object.values(a).some(a=>"string"!=typeof a))&&l(c,b,"must map header names to strings")}function o(a){let b=[];if(!(0,i.u4)(a))throw new k([{path:"",message:"must be an object"}]);let c=v(a).providers,d=void 0===c?{}:c;if((0,i.u4)(d))for(let[a,c]of Object.entries(d)){let d=`providers.${a}`;if(!(0,i.u4)(c)){l(b,d,"must be an object");continue}if(void 0===c.baseUrl||m(c.baseUrl)||l(b,`${d}.baseUrl`,"must be a valid HTTP(S) URL"),void 0!==c.api&&("string"!=typeof c.api||""===c.api.trim())&&l(b,`${d}.api`,"must be a non-empty API identifier"),void 0!==c.auth&&"none"!==c.auth&&"apiKey"!==c.auth&&"oauth"!==c.auth&&l(b,`${d}.auth`,"must be one of apiKey, none, or oauth"),void 0!==c.apiKey&&"string"!=typeof c.apiKey&&l(b,`${d}.apiKey`,"must be a string"),void 0!==c.headers&&n(c.headers,`${d}.headers`,b),void 0!==c.models&&!Array.isArray(c.models)){l(b,`${d}.models`,"must be an array");continue}let e=Array.isArray(c.models)?c.models:[],f=new Map;for(let[a,g]of(e.length>0&&(("string"!=typeof c.baseUrl||""===c.baseUrl.trim())&&l(b,`${d}.baseUrl`,"is required when defining custom models"),"apiKey"===(c.auth??"apiKey")&&("string"!=typeof c.apiKey||""===c.apiKey.trim())&&l(b,`${d}.apiKey`,"is required when defining custom models unless auth is none or oauth")),e.entries())){let e=`${d}.models[${a}]`;if(!(0,i.u4)(g)){l(b,e,"must be an object");continue}if("string"!=typeof g.id||""===g.id.trim())l(b,`${e}.id`,"is required");else{let c=f.get(g.id);void 0!==c?l(b,`${e}.id`,`duplicates the model id at index ${c}`):f.set(g.id,a)}for(let a of(void 0===g.baseUrl||m(g.baseUrl)||l(b,`${e}.baseUrl`,"must be a valid HTTP(S) URL"),void 0!==g.api&&("string"!=typeof g.api||""===g.api.trim())&&l(b,`${e}.api`,"must be a non-empty API identifier"),("string"!=typeof c.api||""===c.api.trim())&&("string"!=typeof g.api||""===g.api.trim())&&l(b,`${e}.api`,"must be specified at provider or model level"),["contextWindow","maxTokens"]))void 0!==g[a]&&("number"!=typeof g[a]||!Number.isFinite(g[a])||g[a]<=0)&&l(b,`${e}.${a}`,"must be a positive finite number");if(void 0!==g.headers&&n(g.headers,`${e}.headers`,b),void 0!==g.cost)if((0,i.u4)(g.cost))for(let a of["input","output","cacheRead","cacheWrite"]){let c=g.cost[a];void 0===c?l(b,`${e}.cost.${a}`,"is required (cost needs input, output, cacheRead, and cacheWrite)"):("number"!=typeof c||!Number.isFinite(c)||c<0)&&l(b,`${e}.cost.${a}`,"must be a finite non-negative number")}else l(b,`${e}.cost`,"must be an object")}}else l(b,"providers","must be an object");if(b.length>0)throw new k(b)}function p(a){let b={...a,providers:{}};for(let[c,d]of Object.entries(a.providers??{})){if(!(0,i.u4)(d)){b.providers[c]=d;continue}let a={...d},e="string"==typeof d.apiKey&&d.apiKey.length>0,f=(0,i.u4)(d.headers)&&Object.keys(d.headers).length>0;delete a.apiKey,delete a.headers,a.originalName=c,Array.isArray(d.models)&&(a.models=d.models.map(a=>{if(!(0,i.u4)(a))return a;let b={...a};return delete b.headers,"string"==typeof a.id?b.originalId=a.id:delete b.originalId,b})),a.apiKeyConfigured=e,a.headersConfigured=f,b.providers[c]=a}return b}function q(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function r(a){if(!(0,i.u4)(a))return a;let b={...a};return delete b.originalId,b}function s(a){if(!(0,i.u4)(a))return a;let b={...a};return delete b.originalName,delete b.apiKeyConfigured,delete b.headersConfigured,Array.isArray(b.models)&&(b.models=b.models.map(r)),b}function t(a,b,c){if("full"!==c&&"partial"!==c)throw new k([{path:"mode",message:"must be full or partial"}]);let d="full"===c?{...b,providers:{}}:{...a,...b,providers:{}},e=(0,i.u4)(a.providers)?a.providers:{},f=q(b,"providers"),g=f?b.providers:void 0;if(f&&!(0,i.u4)(g))return d.providers=g,d;if(!f&&"partial"===c)return d.providers=Object.fromEntries(Object.entries(e).map(([a,b])=>[a,s(b)])),(0,i.u4)(a.providers)||(d.providers=a.providers),d;let h=(0,i.u4)(g)?Object.entries(g):[],j=[],m=[],n=new Map;for(let[a,b]of h){let d,f=`providers.${a}`;if((0,i.u4)(b)&&q(b,"originalName")){let a=b.originalName;"string"!=typeof a?l(j,`${f}.originalName`,"must be a string identifying an existing provider"):q(e,a)?d=a:l(j,`${f}.originalName`,"must identify a provider in the current configuration")}else q(e,a)&&(d=a);if(void 0!==d){let b=n.get(d);void 0!==b?l(j,`${f}.originalName`,`duplicates the provider identity used by providers.${b}`):n.set(d,a),"partial"===c&&d!==a&&q(e,a)&&l(j,f,"rename conflicts with an existing provider; choose an unused name")}m.push({targetName:a,incoming:b,sourceName:d,previous:void 0!==d&&(0,i.u4)(e[d])?e[d]:void 0})}let o="partial"===c?Object.fromEntries(Object.entries(e).map(([a,b])=>[a,s(b)])):{};for(let{targetName:a,incoming:b,sourceName:d,previous:e}of m){if(!(0,i.u4)(b)){"partial"===c&&void 0!==d&&d!==a&&delete o[d],o[a]=b;continue}"partial"===c&&void 0!==d&&d!==a&&delete o[d];let f=e?s(e):{},g={..."partial"===c?f:{},...b};q(b,"apiKey")&&void 0!==b.apiKey?null===b.apiKey?delete g.apiKey:g.apiKey=b.apiKey:e&&q(e,"apiKey")?g.apiKey=e.apiKey:delete g.apiKey,q(b,"headers")&&void 0!==b.headers?null===b.headers?delete g.headers:g.headers=b.headers:e&&q(e,"headers")?g.headers=e.headers:delete g.headers,Array.isArray(b.models)?g.models=function(a,b,c,d,e){let f=Array.isArray(a)?a:[],g=new Map,h=new Set;for(let a of f)(0,i.u4)(a)&&"string"==typeof a.id&&(h.has(a.id)||(g.has(a.id)?(g.delete(a.id),h.add(a.id)):g.set(a.id,a)));let j=new Map,k=new Map;return b.map((a,b)=>{let f,m=`${d}[${b}]`;if(!(0,i.u4)(a))return a;if(q(a,"originalId")){let b=a.originalId;"string"!=typeof b?l(e,`${m}.originalId`,"must be a string identifying an existing model"):h.has(b)?l(e,`${m}.originalId`,"must identify exactly one existing model"):g.has(b)?f=b:l(e,`${m}.originalId`,"must identify an existing model in the current configuration")}else"string"==typeof a.id&&(h.has(a.id)?l(e,`${m}.id`,"matches multiple existing models; supply originalId"):g.has(a.id)&&(f=a.id));let n=void 0===f?void 0:g.get(f);if(void 0!==f){let c=j.get(f);void 0!==c?l(e,q(a,"originalId")?`${m}.originalId`:`${m}.id`,`duplicates the existing model identified at index ${c}`):j.set(f,b)}let o={..."partial"===c&&n?r(n):{},...a};if(delete o.originalId,q(a,"headers")&&void 0!==a.headers?null===a.headers?delete o.headers:o.headers=a.headers:n&&q(n,"headers")?o.headers=n.headers:void 0===o.headers&&delete o.headers,"string"==typeof o.id){let a=k.get(o.id);void 0!==a?l(e,`${m}.id`,`duplicates the model id at index ${a}`):k.set(o.id,b)}return o})}(e?.models,b.models,c,`providers.${a}.models`,j):"full"!==c||q(b,"models")&&void 0!==b.models?"partial"===c&&q(b,"models")&&void 0===b.models&&(e&&q(e,"models")?g.models=f.models:delete g.models):delete g.models,o[a]=s(g)}if(j.length>0)throw new k(j);return d.providers=o,d}class u extends Error{constructor(a,b){super(`${a} is not valid YAML: ${b}`),this.name="ModelsConfigParseError",this.path=a,this.detail=b}}function v(a){if(!(0,i.u4)(a.providers))return a;let b=Object.fromEntries(Object.entries(a.providers).map(([a,b])=>{if(!(0,i.u4)(b)||!Array.isArray(b.models))return[a,b];let c=b.models.filter(a=>!(0,i.u4)(a)||"string"!=typeof a.id||a.id.trim().length>0);return[a,{...b,models:c}]}));return{...a,providers:b}}function w(){let a,b=(0,h.OK)();if(!(0,d.existsSync)(b))return{path:b,exists:!1,config:{providers:{}}};try{a=(0,d.readFileSync)(b,"utf8")}catch(a){return{path:b,exists:!0,config:{providers:{}},parseError:String(a)}}let c=(0,g.Tp)(a);if(c.errors.length>0)return{path:b,exists:!0,source:a,config:{providers:{}},parseError:c.errors[0].message};let e=c.toJS();return null==e?{path:b,exists:!0,source:a,config:{providers:{}}}:(0,i.u4)(e)?{path:b,exists:!0,source:a,config:v(e)}:{path:b,exists:!0,source:a,config:{providers:{}},parseError:"the top level of models.yml must be a mapping"}}function x(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function y(a){return(0,g.jn)(a)&&("string"==typeof a.value||"number"==typeof a.value)?String(a.value):"string"==typeof a?a:void 0}function z(a,b){if(void 0===b||""===b.trim())return(0,g.As)(a);let c=(0,g.Tp)(b);return c.errors.length>0?(0,g.As)(a):((0,g.jh)(c.contents)?!function a(b,c,d){if((0,g.jh)(c)&&x(d)){let e=new Map(Object.entries(d).filter(([,a])=>void 0!==a));for(let[d,f]of(c.items=c.items.filter(a=>{let b=y(a.key);return void 0===b||e.has(b)}),e)){let e=c.items.find(a=>y(a.key)===d);e?e.value=a(b,e.value,f):c.set(b.createNode(d),b.createNode(f))}return c}if((0,g.oP)(c)&&Array.isArray(d)){let e=[...c.items],f=new Map;for(let a of e){let b=function(a){if(!(0,g.jh)(a))return;let b=a.get("id");return"string"==typeof b?b:void 0}(a);void 0===b||f.has(b)||f.set(b,a)}return c.items=d.map((c,d)=>{let g,h=x(c)&&"string"==typeof c.id?c.id:void 0;return void 0!==h?void 0!==(g=f.get(h))&&f.delete(h):g=e[d],a(b,g,c)}),c}if((0,g.jn)(c)&&!x(d)&&!Array.isArray(d)&&typeof c.value==typeof d)return c.value=d,c;let e=b.createNode(d);return c&&e&&"object"==typeof c&&"object"==typeof e&&(null!=c.comment&&(e.comment=c.comment),null!=c.commentBefore&&(e.commentBefore=c.commentBefore),c.spaceBefore&&(e.spaceBefore=c.spaceBefore)),e}(c,c.contents,a):c.contents=c.createNode(a),c.toString())}function A(a,b={}){let c=w();if(c.parseError&&!b.overwriteUnparseable)throw new u(c.path,c.parseError);let g=z(v(a),c.parseError?void 0:c.source),h=(0,e.dirname)(c.path);(0,d.existsSync)(h)||(0,d.mkdirSync)(h,{recursive:!0}),(0,f.D)(c.path,g)}},33602:(a,b,c)=>{"use strict";c.d(b,{p:()=>f});let d=null;function e(a){let b=a.match(/^v?(\d+)\.(\d+)\.(\d+)(-.+)?$/);return b?{parts:b.slice(1,4).map(Number),prerelease:!!b[4]}:null}async function f(a=!1){if(!a&&d&&Date.now()-d.checkedAt<36e5)return d.status;let b="0.7.11",c="ompgui update";try{let a=await fetch(`https://registry.npmjs.org/${encodeURIComponent("ompgui")}/latest`,{cache:"no-store",signal:AbortSignal.timeout(5e3)}),f=a.ok?await a.json():null,g="string"==typeof f?.version?f.version:null,h=!a.ok||null===g,i={currentVersion:b,availableVersion:g,updateAvailable:!!(g&&function(a,b){let c=e(a),d=e(b);if(!c||!d)return!1;for(let a=0;a<c.parts.length;a+=1)if(c.parts[a]!==d.parts[a])return c.parts[a]>d.parts[a];return!c.prerelease&&d.prerelease}(g,b)),updateCommand:c,lookupFailed:h};return h||(d={checkedAt:Date.now(),status:i}),i}catch{return{currentVersion:b,availableVersion:null,updateAvailable:!1,updateCommand:c,lookupFailed:!0}}}},33824:(a,b,c)=>{"use strict";var d=c(73315),e=c(69273),f=c(51490),g=c(57422),h=c(45538);let i=(a,b)=>a.key<b.key?-1:+(a.key>b.key);class j{constructor({compat:a,customTags:b,merge:c,resolveKnownTags:j,schema:k,sortMapEntries:l,toStringDefaults:m}){this.compat=Array.isArray(a)?h.getTags(a,"compat"):a?h.getTags(null,a):null,this.name="string"==typeof k&&k||"core",this.knownTags=j?h.coreKnownTags:{},this.tags=h.getTags(b,this.name,c),this.toStringOptions=m??null,Object.defineProperty(this,d.MAP,{value:e.map}),Object.defineProperty(this,d.SCALAR,{value:g.string}),Object.defineProperty(this,d.SEQ,{value:f.seq}),this.sortMapEntries="function"==typeof l?l:!0===l?i:null}clone(){let a=Object.create(j.prototype,Object.getOwnPropertyDescriptors(this));return a.tags=this.tags.slice(),a}}b.Schema=j},33840:(a,b,c)=>{var d=c(60828),e=c(49472),f=c(57009),g=c(12868),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){return a.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function m(a){this.options=a||{locator:{}}}function n(){this.cdata=!1}function o(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function p(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function q(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function r(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}m.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new n,g=c.errorHandler,h=c.locator,j=c.xmlns||{},m=/\/x?html?$/.test(b),o=m?f.HTML_ENTITIES:f.XML_ENTITIES;h&&e.setDocumentLocator(h),d.errorHandler=function(a,b,c){if(!a){if(b instanceof n)return b;a=b}var d={},e=a instanceof Function;function f(b){var f=a[b];!f&&e&&(f=2==a.length?function(c){a(b,c)}:a),d[b]=f&&function(a){f("[xmldom "+b+"] "+a+p(c))}||function(){}}return c=c||{},f("warning"),f("error"),f("fatalError"),d}(g,e,h),d.domBuilder=c.domBuilder||e,m&&(j[""]=i.HTML),j.xml=j.xml||i.XML;var q=c.normalizeLineEndings||l;return a&&"string"==typeof a?d.parse(q(a),j,o):d.errorHandler.error("invalid doc source"),e.doc},n.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;r(this,f),this.currentElement=f,this.locator&&o(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&o(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&o(this.locator,c),r(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=q.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&o(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=q.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&o(this.locator,d),r(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&o(this.locator,e),r(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning] "+a,p(this.locator))},error:function(a){console.error("[xmldom error] "+a,p(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){n.prototype[a]=function(){return null}}),b.DOMParser=m},35504:(a,b,c)=>{"use strict";var d=c(69167),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(a,b,c,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new d.Buf16(16),K=new d.Buf16(16),L=null,M=0;for(x=0;x<=15;x++)J[x]=0;for(y=0;y<i;y++)J[b[c+y]]++;for(B=w,A=15;A>=1&&0===J[A];A--);if(B>A&&(B=A),0===A)return j[k++]=0x1400000,j[k++]=0x1400000,m.bits=1,0;for(z=1;z<A&&0===J[z];z++);for(B<z&&(B=z),E=1,x=1;x<=15;x++)if(E<<=1,(E-=J[x])<0)return -1;if(E>0&&(0===a||1!==A))return -1;for(K[1]=0,x=1;x<15;x++)K[x+1]=K[x]+J[x];for(y=0;y<i;y++)0!==b[c+y]&&(l[K[b[c+y]]++]=y);if(0===a?(H=L=l,s=19):1===a?(H=e,I-=257,L=f,M-=257,s=256):(H=g,L=h,s=-1),G=0,y=0,x=z,r=k,C=B,D=0,p=-1,q=(F=1<<B)-1,1===a&&F>852||2===a&&F>592)return 1;for(;;){t=x-D,l[y]<s?(u=0,v=l[y]):l[y]>s?(u=L[M+l[y]],v=H[I+l[y]]):(u=96,v=0),n=1<<x-D,z=o=1<<C;do j[r+(G>>D)+(o-=n)]=t<<24|u<<16|v;while(0!==o);for(n=1<<x-1;G&n;)n>>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[c+l[y]]}if(x>B&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);C+D<A&&!((E-=J[C+D])<=0);)C++,E<<=1;if(F+=1<<C,1===a&&F>852||2===a&&F>592)return 1;j[p=G&q]=B<<24|C<<16|r-k}}return 0!==G&&(j[r+G]=x-D<<24|4194304),m.bits=B,0}},35527:(a,b,c)=>{"use strict";var d=c(22418),e=d.maybeWrapAsError,f=c(43823).OperationalError,g=c(3987),h=/^(?:name|message|stack|cause)$/;a.exports=function(a,b){return function(c,i){if(null!==a){if(c){var j=function(a){if(a instanceof Error&&g.getPrototypeOf(a)===Error.prototype){(b=new f(a)).name=a.name,b.message=a.message,b.stack=a.stack;for(var b,c=g.keys(a),e=0;e<c.length;++e){var i=c[e];h.test(i)||(b[i]=a[i])}return b}return d.markAsOriginatingFromRejection(a),a}(e(c));a._attachExtraTrace(j),a._reject(j)}else if(b){for(var k=arguments.length,l=Array(Math.max(k-1,0)),m=1;m<k;++m)l[m-1]=arguments[m];a._fulfill(l)}else a._fulfill(i);a=null}}}},35976:(a,b,c)=>{var d=c(18403);b.Element=d.Element,b.element=d.element,b.emptyElement=d.emptyElement,b.text=d.text,b.readString=c(11457).readString,b.writeString=c(93134).writeString},36148:(a,b,c)=>{"use strict";c.d(b,{w:()=>f});var d=c(29021),e=c.n(d);function f(a,b){if(a.isDirectory())return!0;if(a.isFile())return!1;try{return e().statSync(b).isDirectory()}catch{return null}}},36503:(a,b,c)=>{"use strict";c.d(b,{qc:()=>k});var d=c(77598),e=c(73024),f=c(48161),g=c(76760),h=c(18437);class i extends Error{constructor(a,b){super(b),this.code=a}}class j{constructor(a=Date.now,b=setTimeout,c=clearTimeout,d=(0,f.tmpdir)()){this.now=a,this.schedule=b,this.unschedule=c,this.root=d,this.images=new Map,this.reservedBytes=0}remove(a){this.images.get(a.id)===a&&(a.cancelled=!0,(0,e.rmSync)(a.directory,{recursive:!0,force:!0}),this.unschedule(a.timer),this.images.delete(a.id),this.reservedBytes-=a.size)}expire(){for(let a of this.images.values())(a.cancelled||a.expires<=this.now())&&this.remove(a)}owned(a,b){this.expire();let c="string"==typeof b?this.images.get(b):void 0;if(!c||c.deviceId!==a||c.claimed||c.cancelled)throw new i("invalid_attachment","Attachment is unavailable");return c}begin(a,b,c){if(this.expire(),"string"!=typeof b||!/^image\/[A-Za-z0-9.+-]{1,100}$/.test(b))throw new i("invalid_images","An image MIME type is required");if("number"!=typeof c||!Number.isSafeInteger(c)||c<1||c>h.Mt)throw new i("invalid_images",`Each image must be 1 byte to ${h.Mt/1048576}MiB`);let f=0;for(let b of this.images.values())b.deviceId===a&&f++;if(f>=h.ZQ||this.reservedBytes+c>0x20000000||this.images.size>=1024)throw new i("attachment_quota","Attachment staging quota exceeded");let j=(0,d.randomUUID)(),k=(0,e.mkdtempSync)((0,g.join)(this.root,"ompgui-relay-attachment-")),l=(0,g.join)(k,"image");try{(0,e.closeSync)((0,e.openSync)(l,"wx",384))}catch(a){throw(0,e.rmSync)(k,{recursive:!0,force:!0}),a}let m=this.schedule(()=>{let a=this.images.get(j);if(a)try{this.remove(a)}catch{}},9e5);return m.unref?.(),this.images.set(j,{id:j,deviceId:a,directory:k,path:l,mimeType:b,size:c,offset:0,complete:!1,claimed:!1,cancelled:!1,expires:this.now()+9e5,timer:m}),this.reservedBytes+=c,{attachmentId:j,maxChunkBytes:65536}}chunk(a,b,c,d){let f=this.owned(a,b);if(f.complete||c!==f.offset)throw new i("invalid_offset","Attachment chunks must be sequential");if("string"!=typeof d||d.length>4*Math.ceil(65536/3))throw new i("invalid_chunk","Attachment chunk is too large or malformed");let g=(0,h.Si)(d);if(null===g||g<1||g>65536||f.offset+g>f.size)throw new i("invalid_chunk","Attachment chunk exceeds declared size or chunk limit");let j=Buffer.from(d,"base64");if(j.toString("base64")!==d)throw new i("invalid_chunk","Attachment chunk must be canonical base64");let k=(0,e.openSync)(f.path,"r+");try{let a=0;for(;a<j.length;){let b=(0,e.writeSync)(k,j,a,j.length-a,f.offset+a);if(0===b)throw new i("attachment_write_failed","Attachment storage write failed");a+=b}f.offset+=j.length}catch(a){throw(0,e.closeSync)(k),this.remove(f),a}return(0,e.closeSync)(k),{nextOffset:f.offset}}complete(a,b){let c=this.owned(a,b);if(c.offset!==c.size)throw new i("incomplete_attachment","Attachment byte count does not match declared size");return c.complete=!0,{attachmentId:c.id}}abort(a,b){return this.remove(this.owned(a,b)),{aborted:!0}}claim(a,b){if(!Array.isArray(b)||b.length>h.ZQ||b.some(a=>"string"!=typeof a)||new Set(b).size!==b.length)throw new i("invalid_attachment",`attachmentIds must contain at most ${h.ZQ} unique IDs`);let c=b.map(b=>this.owned(a,b));for(let a of c)if(!a.complete)throw new i("incomplete_attachment","Attachment upload is incomplete");for(let a of c)a.claimed=!0;return{materialize:()=>(this.expire(),c.map(a=>{if(a.cancelled||this.images.get(a.id)!==a)throw new i("invalid_attachment","Attachment expired or was cancelled");let b=(0,e.readFileSync)(a.path);if(b.length!==a.size)throw new i("invalid_attachment","Attachment byte count changed");return{type:"image",mimeType:a.mimeType,data:b.toString("base64")}})),dispose:()=>{for(let a of c)this.remove(a)}}}cleanupDevice(a){for(let b of this.images.values())if(b.deviceId===a)try{this.remove(b)}catch{}}}let k=new j},36911:a=>{"use strict";function b(a){this._capacity=a,this._length=0,this._front=0}b.prototype._willBeOverCapacity=function(a){return this._capacity<a},b.prototype._pushOne=function(a){var b=this.length();this._checkCapacity(b+1),this[this._front+b&this._capacity-1]=a,this._length=b+1},b.prototype.push=function(a,b,c){var d=this.length()+3;if(this._willBeOverCapacity(d)){this._pushOne(a),this._pushOne(b),this._pushOne(c);return}var e=this._front+d-3;this._checkCapacity(d);var f=this._capacity-1;this[e+0&f]=a,this[e+1&f]=b,this[e+2&f]=c,this._length=d},b.prototype.shift=function(){var a=this._front,b=this[a];return this[a]=void 0,this._front=a+1&this._capacity-1,this._length--,b},b.prototype.length=function(){return this._length},b.prototype._checkCapacity=function(a){this._capacity<a&&this._resizeTo(this._capacity<<1)},b.prototype._resizeTo=function(a){var b=this._capacity;this._capacity=a,!function(a,b,c,d){for(var e=0;e<d;++e)b[e+c]=a[e+0],a[e+0]=void 0}(this,this,b,this._front+this._length&b-1)},a.exports=b},37012:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f,g=c(22418),h=g.isObject,i=c(3987);"function"==typeof Map&&(f=Map);var j=function(){var a=0,b=0;function c(c,d){this[a]=c,this[a+b]=d,a++}return function(d){b=d.size,a=0;var e=Array(2*d.size);return d.forEach(c,e),e}}(),k=function(a){for(var b=new f,c=a.length/2|0,d=0;d<c;++d){var e=a[c+d],g=a[d];b.set(e,g)}return b};function l(a){var b,c=!1;if(void 0!==f&&a instanceof f)b=j(a),c=!0;else{var d=i.keys(a),e=d.length;b=Array(2*e);for(var g=0;g<e;++g){var h=d[g];b[g]=a[h],b[g+e]=h}}this.constructor$(b),this._isMap=c,this._init$(void 0,-3)}function m(b){var c,f=d(b);return h(f)?(c=f instanceof a?f._then(a.props,void 0,void 0,void 0,void 0):new l(f).promise(),f instanceof a&&c._propagateFrom(f,2),c):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}g.inherits(l,b),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(a,b){var c;if(this._values[b]=a,++this._totalResolved>=this._length){if(this._isMap)c=k(this._values);else{c={};for(var d=this.length(),e=0,f=this.length();e<f;++e)c[this._values[e+d]]=this._values[e]}return this._resolve(c),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(a){return a>>1},a.prototype.props=function(){return m(this)},a.props=function(a){return m(a)}}},37054:(a,b,c)=>{"use strict";var d=c(71397),e=c(62325),f=c(50099);b.resolveBlockSeq=function({composeNode:a,composeEmptyNode:b},c,g,h,i){let j=new(i?.nodeClass??d.YAMLSeq)(c.schema);c.atRoot&&(c.atRoot=!1),c.atKey&&(c.atKey=!1);let k=g.offset,l=null;for(let{start:d,value:i}of g.items){let m=e.resolveProps(d,{indicator:"seq-item-ind",next:i,offset:k,onError:h,parentIndent:g.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||i)i?.type==="block-seq"?h(m.end,"BAD_INDENT","All sequence items must start at the same column"):h(k,"MISSING_CHAR","Sequence item without - indicator");else{l=m.end,m.comment&&(j.comment=m.comment);continue}let n=i?a(c,i,m,h):b(c,m.end,d,null,m,h);c.schema.compat&&f.flowIndentCheck(g.indent,i,h),k=n.range[2],j.items.push(n)}return j.range=[g.offset,k,l??k],j}},37278:(a,b)=>{b.readContentTypesFromXml=function(a){var b={},c={};return a.children.forEach(function(a){if("content-types:Default"===a.name&&(b[a.attributes.Extension]=a.attributes.ContentType),"content-types:Override"===a.name){var d=a.attributes.PartName;"/"===d.charAt(0)&&(d=d.substring(1)),c[d]=a.attributes.ContentType}}),d(c,b)};var c={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};function d(a,b){return{findContentType:function(d){var e=a[d];if(e)return e;var f=d.split("."),g=f[f.length-1];if(b.hasOwnProperty(g))return b[g];var h=c[g.toLowerCase()];return h?"image/"+h:null}}}b.defaultContentTypes=d({},{})},37369:(a,b,c)=>{"use strict";var d,e,f=c(69167),g=c(62231),h=c(59757),i=c(86159),j=c(35504);function k(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=1,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new f.Buf32(852),b.distcode=b.distdyn=new f.Buf32(592),b.sane=1,b.back=-1,0):-2}function n(a){var b;return a&&a.state?((b=a.state).wsize=0,b.whave=0,b.wnext=0,m(a)):-2}function o(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15))?-2:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,n(a)):-2}function p(a,b){var c,d;return a?(a.state=d=new l,d.window=null,0!==(c=o(a,b))&&(a.state=null),c):-2}var q=!0;function r(a,b,c,d){var e,g=a.state;return null===g.window&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new f.Buf8(g.wsize)),d>=g.wsize?(f.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((e=g.wsize-g.wnext)>d&&(e=d),f.arraySet(g.window,b,c-d,e,g.wnext),(d-=e)?(f.arraySet(g.window,b,c-d,d,0),g.wnext=d,g.whave=g.wsize):(g.wnext+=e,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=e))),0}b.inflateReset=n,b.inflateReset2=o,b.inflateResetKeep=m,b.inflateInit=function(a){return p(a,15)},b.inflateInit2=p,b.inflate=function(a,b){var c,l,m,n,o,p,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=0,L=new f.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!a||!a.state||!a.output||!a.input&&0!==a.avail_in)return -2;12===(c=a.state).mode&&(c.mode=13),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,v=p,w=s,H=0;c:for(;;)switch(c.mode){case 1:if(0===c.wrap){c.mode=13;break}for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(2&c.wrap&&35615===t){c.check=0,L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0),t=0,u=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&t)<<8)+(t>>8))%31){a.msg="incorrect header check",c.mode=30;break}if((15&t)!=8){a.msg="unknown compression method",c.mode=30;break}if(t>>>=4,u-=4,G=(15&t)+8,0===c.wbits)c.wbits=G;else if(G>c.wbits){a.msg="invalid window size",c.mode=30;break}c.dmax=1<<G,a.adler=c.check=1,c.mode=512&t?10:12,t=0,u=0;break;case 2:for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(c.flags=t,(255&c.flags)!=8){a.msg="unknown compression method",c.mode=30;break}if(57344&c.flags){a.msg="unknown header flags set",c.mode=30;break}c.head&&(c.head.text=t>>8&1),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=3;case 3:for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.head&&(c.head.time=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,L[2]=t>>>16&255,L[3]=t>>>24&255,c.check=h(c.check,L,4,0)),t=0,u=0,c.mode=4;case 4:for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.head&&(c.head.xflags=255&t,c.head.os=t>>8),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=5;case 5:if(1024&c.flags){for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.length=t,c.head&&(c.head.extra_len=t),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&((x=c.length)>p&&(x=p),x&&(c.head&&(G=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),f.arraySet(c.head.extra,l,n,x,G)),512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,c.length-=x),c.length))break c;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(0===p)break c;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.name+=String.fromCharCode(G));while(G&&x<p);if(512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,G)break c}else c.head&&(c.head.name=null);c.length=0,c.mode=8;case 8:if(4096&c.flags){if(0===p)break c;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.comment+=String.fromCharCode(G));while(G&&x<p);if(512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,G)break c}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(512&c.flags){for(;u<16;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t!==(65535&c.check)){a.msg="header crc mismatch",c.mode=30;break}t=0,u=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=12;break;case 10:for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}a.adler=c.check=k(t),t=0,u=0,c.mode=11;case 11:if(0===c.havedict)return a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,2;a.adler=c.check=1,c.mode=12;case 12:if(5===b||6===b)break c;case 13:if(c.last){t>>>=7&u,u-=7&u,c.mode=27;break}for(;u<3;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}switch(c.last=1&t,u-=1,3&(t>>>=1)){case 0:c.mode=14;break;case 1:if(!function(a){if(q){var b;for(d=new f.Buf32(512),e=new f.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(j(1,a.lens,0,288,d,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;j(2,a.lens,0,32,e,0,a.work,{bits:5}),q=!1}a.lencode=d,a.lenbits=9,a.distcode=e,a.distbits=5}(c),c.mode=20,6===b){t>>>=2,u-=2;break c}break;case 2:c.mode=17;break;case 3:a.msg="invalid block type",c.mode=30}t>>>=2,u-=2;break;case 14:for(t>>>=7&u,u-=7&u;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if((65535&t)!=(t>>>16^65535)){a.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&t,t=0,u=0,c.mode=15,6===b)break c;case 15:c.mode=16;case 16:if(x=c.length){if(x>p&&(x=p),x>s&&(x=s),0===x)break c;f.arraySet(m,l,n,x,o),p-=x,n+=x,s-=x,o+=x,c.length-=x;break}c.mode=12;break;case 17:for(;u<14;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(c.nlen=(31&t)+257,u-=5,c.ndist=(31&(t>>>=5))+1,u-=5,c.ncode=(15&(t>>>=5))+4,t>>>=4,u-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have<c.ncode;){for(;u<3;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.lens[M[c.have++]]=7&t,t>>>=3,u-=3}for(;c.have<19;)c.lens[M[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,I={bits:c.lenbits},H=j(0,c.lens,0,19,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;A=(K=c.lencode[t&(1<<c.lenbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(C<16)t>>>=A,u-=A,c.lens[c.have++]=C;else{if(16===C){for(J=A+2;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t>>>=A,u-=A,0===c.have){a.msg="invalid bit length repeat",c.mode=30;break}G=c.lens[c.have-1],x=3+(3&t),t>>>=2,u-=2}else if(17===C){for(J=A+3;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=A,u-=A,G=0,x=3+(7&t),t>>>=3,u-=3}else{for(J=A+7;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=A,u-=A,G=0,x=11+(127&t),t>>>=7,u-=7}if(c.have+x>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=30;break}for(;x--;)c.lens[c.have++]=G}}if(30===c.mode)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,I={bits:c.lenbits},H=j(1,c.lens,0,c.nlen,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,I={bits:c.distbits},H=j(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,I),c.distbits=I.bits,H){a.msg="invalid distances set",c.mode=30;break}if(c.mode=20,6===b)break c;case 20:c.mode=21;case 21:if(p>=6&&s>=258){a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,i(a,w),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,12===c.mode&&(c.back=-1);break}for(c.back=0;A=(K=c.lencode[t&(1<<c.lenbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(B&&(240&B)==0){for(D=A,E=B,F=C;A=(K=c.lencode[F+((t&(1<<D+E)-1)>>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,c.length=C,0===B){c.mode=26;break}if(32&B){c.back=-1,c.mode=12;break}if(64&B){a.msg="invalid literal/length code",c.mode=30;break}c.extra=15&B,c.mode=22;case 22:if(c.extra){for(J=c.extra;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.length+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;A=(K=c.distcode[t&(1<<c.distbits)-1])>>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if((240&B)==0){for(D=A,E=B,F=C;A=(K=c.distcode[F+((t&(1<<D+E)-1)>>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}t>>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,64&B){a.msg="invalid distance code",c.mode=30;break}c.offset=C,c.extra=15&B,c.mode=24;case 24:if(c.extra){for(J=c.extra;u<J;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}c.offset+=t&(1<<c.extra)-1,t>>>=c.extra,u-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(0===s)break c;if(x=w-s,c.offset>x){if((x=c.offset-x)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=30;break}x>c.wnext?(x-=c.wnext,y=c.wsize-x):y=c.wnext-x,x>c.length&&(x=c.length),z=c.window}else z=m,y=o-c.offset,x=c.length;x>s&&(x=s),s-=x,c.length-=x;do m[o++]=z[y++];while(--x);0===c.length&&(c.mode=21);break;case 26:if(0===s)break c;m[o++]=c.length,s--,c.mode=21;break;case 27:if(c.wrap){for(;u<32;){if(0===p)break c;p--,t|=l[n++]<<u,u+=8}if(w-=s,a.total_out+=w,c.total+=w,w&&(a.adler=c.check=c.flags?h(c.check,m,w,o-w):g(c.check,m,w,o-w)),w=s,(c.flags?t:k(t))!==c.check){a.msg="incorrect data check",c.mode=30;break}t=0,u=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;u<32;){if(0===p)break c;p--,t+=l[n++]<<u,u+=8}if(t!==(0|c.total)){a.msg="incorrect length check",c.mode=30;break}t=0,u=0}c.mode=29;case 29:H=1;break c;case 30:H=-3;break c;case 31:return -4;default:return -2}return(a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,(c.wsize||w!==a.avail_out&&c.mode<30&&(c.mode<27||4!==b))&&r(a,a.output,a.next_out,w-a.avail_out))?(c.mode=31,-4):(v-=a.avail_in,w-=a.avail_out,a.total_in+=v,a.total_out+=w,c.total+=w,c.wrap&&w&&(a.adler=c.check=c.flags?h(c.check,m,w,a.next_out-w):g(c.check,m,w,a.next_out-w)),a.data_type=c.bits+64*!!c.last+128*(12===c.mode)+256*(20===c.mode||15===c.mode),(0===v&&0===w||4===b)&&0===H&&(H=-5),H)},b.inflateEnd=function(a){if(!a||!a.state)return -2;var b=a.state;return b.window&&(b.window=null),a.state=null,0},b.inflateGetHeader=function(a,b){var c;return a&&a.state&&(2&(c=a.state).wrap)!=0?(c.head=b,b.done=!1,0):-2},b.inflateSetDictionary=function(a,b){var c,d=b.length;return a&&a.state&&(0===(c=a.state).wrap||11===c.mode)?11===c.mode&&g(1,b,d,0)!==c.check?-3:r(a,b,d,d)?(c.mode=31,-4):(c.havedict=1,0):-2},b.inflateInfo="pako inflate (from Nodeca project)"},37427:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{CW:()=>t,Zk:()=>p,aZ:()=>q,bU:()=>u,pG:()=>s,wP:()=>r});var e=c(73024),f=c(77598),g=c(76760),h=c(87390),i=c(92226),j=c(44500),k=c(12144),l=c(7561),m=c(82043),n=c(98122),o=a([k,n]);async function p(a){let b,c,d=await (0,m.os)(a);if(!d)throw new n.uY("not_found","Session not found");let f=(0,m.eP)(d),h=f?.id??a,i=f?.parentSession;if(i){let a=await (0,m.u1)(i);if(a)b=i,c=a;else{let a=await (0,m.os)(i);a&&(b=a,c=i)}}let o=(0,l.$)(d),p=(0,g.dirname)(d),q=[];try{for(let a of(0,e.readdirSync)(p).filter(a=>a.endsWith(".jsonl")&&(0,l.$)((0,g.join)(p,a))!==o)){let d,f,m,n,r=(0,g.join)(p,a);try{if((0,e.statSync)(r).size>j.ni){let b=a,c=!1;try{let a=(0,e.openSync)(r,"r");try{let d=Buffer.alloc(65536),f=(0,e.readSync)(a,d,0,d.length,0),g=d.toString("utf8",0,f).split("\n"),i=+!!(0,j.U1)(g[0]??""),k=JSON.parse(g[i]??"{}");"object"==typeof k&&null!==k&&!Array.isArray(k)&&"type"in k&&"session"===k.type&&("id"in k&&"string"==typeof k.id&&(b=k.id),"parentSession"in k&&"string"==typeof k.parentSession&&(c=k.parentSession===h||(0,l.$)(k.parentSession)===o))}finally{(0,e.closeSync)(a)}}catch{}c&&q.push({id:b,reason:"session_child_too_large"});continue}}catch{continue}try{d=(0,e.readFileSync)(r,"utf8").split("\n"),f=+!!(0,j.U1)(d[0]??"");let a=JSON.parse(d[f]);if("object"!=typeof a||null===a||Array.isArray(a))continue;for(let[b,c]of(m={},Object.entries(a)))m[b]=c;if("session"!==m.type||"string"!=typeof m.parentSession||!m.parentSession||!(n=(0,l.$)(m.parentSession)===o)&&m.parentSession!==h)continue}catch{continue}let s="string"==typeof m.id?m.id:void 0;if(s&&(0,k.A4)(s)?.isAlive?.()){q.push({id:s,reason:"session_child_live"});continue}m.parentSession=n?b??i:c??i,d[f]=JSON.stringify(m);try{(0,j.sv)(r,d.join("\n"),"reparent")}catch{q.push({id:s??a,reason:"session_child_rewrite_failed"})}}}catch{}return await (0,k.A4)(a)?.destroyAndWait?.(),(0,j.XS)(d),(0,m.BR)(a),(0,m.mD)(),q.length>0?{id:a,skippedChildren:q}:{id:a}}async function q(a){let b=await (0,m.os)(a);if(!b)throw new n.uY("not_found","Session not found");if((await (0,m.dQ)()).some(b=>b.parentSessionId===a))throw new n.uY("session_has_children","Archive child sessions before archiving this session");return await (0,k.A4)(a)?.destroyAndWait?.(),(0,j.a8)(b),(0,m.BR)(a),(0,m.mD)(),{id:a}}async function r(a,b){let c=b.trim();if(!c)throw new n.uY("invalid_name","name is required");let d=!1,e=(0,k.A4)(a);if(e?.isAlive?.()&&"function"==typeof e.send)try{await e.send({type:"set_session_name",name:c}),d=!0}catch{}if(!d){let b=await (0,m.os)(a);if(!b)throw new n.uY("not_found","Session not found");(0,j.Bm)(b,c,"user")}return(0,m.mD)(),{id:a,name:c}}async function s(){return(await (0,j.Uk)()).map(a=>({key:a.key,...a.name?{name:a.name}:{},...a.id?{id:a.id}:{},...a.cwd?{cwd:a.cwd}:{},archivedAt:a.modified}))}async function t(a){try{let b=await (0,j.O0)(a);return(0,m.BR)(b.id),(0,m.mD)(),{id:b.id}}catch(a){if(a instanceof j.De)throw new n.uY(a.code,a.message);throw a}}async function u(a,b){let c,d=a.trim();if(!d||d.length>200||d.includes("/")||d.includes("\\"))throw new n.uY("invalid_file_name","Invalid file name");if(!b.trim())throw new n.uY("invalid_content","Empty session file");if(Buffer.byteLength(b,"utf8")>0xa00000)throw new n.uY("invalid_content","Session file is too large (max 10 MB)");let k=b.split(/\r?\n/).filter(a=>a.trim().length>0),l=(0,f.randomUUID)(),o=[];for(let a of k){let b;try{b=JSON.parse(a)}catch{throw new n.uY("invalid_session_file","Not a valid omp session file (malformed JSON line)")}if("object"==typeof b&&null!==b&&!Array.isArray(b)&&"type"in b){if("session"===b.type&&"cwd"in b&&"string"==typeof b.cwd&&(c=b.cwd),"session"===b.type){o.push(JSON.stringify({...b,id:l}));continue}if("message"===b.type&&"message"in b){let a=b.message;if("object"==typeof a&&null!==a&&!Array.isArray(a)&&"role"in a&&"bashExecution"===a.role){let c={};for(let[b,d]of Object.entries(a))"fullOutputPath"!==b&&(c[b]=d);o.push(JSON.stringify({...b,message:c}));continue}}}o.push(a)}if(!c)throw new n.uY("invalid_session_file","Not a valid omp session file (missing session header with cwd)");let p=await (0,h.mc)();if(!(0,h.B7)(c,p))throw new n.uY("import_cwd_not_authorized","Imported session workspace is not authorized");let q=(0,g.join)((0,i.tE)(),(0,i._8)(c));(0,e.mkdirSync)(q,{recursive:!0});let r=(0,g.join)(q,`${new Date().toISOString().replace(/[:.]/g,"-")}_${(0,f.randomUUID)()}.jsonl`);return(0,e.writeFileSync)(r,o.join("\n")+"\n","utf8"),(0,m.mD)(),(0,j.I3)(),{id:l,cwd:c}}[k,n]=o.then?(await o)():o,d()}catch(a){d(a)}})},37492:(a,b,c)=>{var d=c(77880);b.w=function a(b){if("text"===b.type)return b.value;if(b.type===d.types.tab)return" ";var c="paragraph"===b.type?"\n\n":"";return(b.children||[]).map(a).join("")+c}},37521:(a,b,c)=>{"use strict";var d=c(10878),e=c(66560),f=c(8878),g=c(73315);class h{constructor(a,b=null){Object.defineProperty(this,g.NODE_TYPE,{value:g.PAIR}),this.key=a,this.value=b}clone(a){let{key:b,value:c}=this;return g.isNode(b)&&(b=b.clone(a)),g.isNode(c)&&(c=c.clone(a)),new h(b,c)}toJSON(a,b){let c=b?.mapAsMap?new Map:{};return f.addPairToJSMap(b,c,this)}toString(a,b,c){return a?.doc?e.stringifyPair(this,a,b,c):JSON.stringify(this)}}b.Pair=h,b.createPair=function(a,b,c){return new h(d.createNode(a,void 0,c),d.createNode(b,void 0,c))}},37857:a=>{"use strict";a.exports=function(a,b){var c=a.reduce,d=a.all;function e(){return d(this)}a.prototype.each=function(a){return c(this,a,b,0)._then(e,void 0,void 0,this,void 0)},a.prototype.mapSeries=function(a){return c(this,a,b,b)},a.each=function(a,d){return c(a,d,b,0)._then(e,void 0,void 0,a,void 0)},a.mapSeries=function(a,d){return c(a,d,b,b)}}},38015:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{attachRelayGateway:()=>m});var e=c(37067),f=c(44708),g=c(90303),h=c(53e3),i=a([g]);function j(){return globalThis.__ompguiRelayConnectionCount??0}function k(a){globalThis.__ompguiRelayConnectionCount=a}function l(a){let b=a.prototype.emit;function c(a,...d){if("upgrade"===a){let a=d[0];if((0,h.dm)(a.url))return!function(a,b,c){let d;if(!(0,h.dm)(a.url))return b.destroy();if(!function(a){let b=a.headers["sec-fetch-site"];if("cross-site"===b)return!1;let c=a.headers.origin;if(!c)return!0;let d=a.headers.host;if(!d)return!1;try{return new URL(c).host===d}catch{return!1}}(a)){b.write("HTTP/1.1 403 Forbidden\r\nConnection: close\r\n\r\n"),b.destroy();return}if(j()>=8){b.write("HTTP/1.1 503 Service Unavailable\r\nConnection: close\r\n\r\n"),b.destroy();return}let e=!1,f=null,i=(0,h.b$)(a,b,{onText:a=>f?.onText(a),onClose:()=>{clearInterval(d),d=void 0,e&&(e=!1,k(Math.max(0,j()-1))),f?.onClose()}});i&&(e=!0,k(j()+1),d=setInterval(()=>i.ping(),3e4),d.unref?.(),f=(0,g.d)(i),c.length>0&&i.feed(c))}(a,d[1],d[2]??Buffer.alloc(0)),!0}return b.call(this,a,...d)}b.__ompguiRelay||(c.__ompguiRelay=!0,a.prototype.emit=c)}function m(){globalThis.__ompguiRelayGatewayAttached||(globalThis.__ompguiRelayGatewayAttached=!0,l(e.Server),l(f.Server))}g=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},38141:(a,b)=>{"use strict";let c=Symbol("break visit"),d=Symbol("skip children"),e=Symbol("remove item");function f(a,b){"type"in a&&"document"===a.type&&(a={start:a.start,value:a.value}),function a(b,d,f){let g=f(d,b);if("symbol"==typeof g)return g;for(let h of["key","value"]){let i=d[h];if(i&&"items"in i){for(let d=0;d<i.items.length;++d){let g=a(Object.freeze(b.concat([[h,d]])),i.items[d],f);if("number"==typeof g)d=g-1;else{if(g===c)return c;g===e&&(i.items.splice(d,1),d-=1)}}"function"==typeof g&&"key"===h&&(g=g(d,b))}}return"function"==typeof g?g(d,b):g}(Object.freeze([]),a,b)}f.BREAK=c,f.SKIP=d,f.REMOVE=e,f.itemAtPath=(a,b)=>{let c=a;for(let[a,d]of b){let b=c?.[a];if(!b||!("items"in b))return;c=b.items[d]}return c},f.parentCollection=(a,b)=>{let c=f.itemAtPath(a,b.slice(0,-1)),d=b[b.length-1][0],e=c?.[d];if(e&&"items"in e)return e;throw Error("Parent collection not found")},b.visit=f},38418:(a,b,c)=>{"use strict";var d,e,f=c(20577);a.exports=s;var g=c(39629);s.ReadableState=r,c(94735).EventEmitter;var h=function(a,b){return a.listeners(b).length},i=c(47040),j=c(30444).Buffer,k=("u">typeof global?global:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){},l=Object.create(c(22362));l.inherits=c(50843);var m=c(28354),n=void 0;n=m&&m.debuglog?m.debuglog("stream"):function(){};var o=c(51394),p=c(15434);l.inherits(s,i);var q=["error","close","destroy","pause","resume"];function r(a,b){d=d||c(71848),a=a||{};var f=b instanceof d;this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode);var g=a.highWaterMark,h=a.readableHighWaterMark,i=this.objectMode?16:16384;g||0===g?this.highWaterMark=g:f&&(h||0===h)?this.highWaterMark=h:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(e||(e=c(47399).I),this.decoder=new e(a.encoding),this.encoding=a.encoding)}function s(a){if(d=d||c(71848),!(this instanceof s))return new s(a);this._readableState=new r(a,this),this.readable=!0,a&&("function"==typeof a.read&&(this._read=a.read),"function"==typeof a.destroy&&(this._destroy=a.destroy)),i.call(this)}function t(a,b,c,d,e){var f,g,h,i=a._readableState;return null===b?(i.reading=!1,function(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,w(a)}}(a,i)):(e||(h=function(a,b){var c;return j.isBuffer(b)||b instanceof k||"string"==typeof b||void 0===b||a.objectMode||(c=TypeError("Invalid non-string/buffer chunk")),c}(i,b)),h)?a.emit("error",h):i.objectMode||b&&b.length>0?("string"==typeof b||i.objectMode||Object.getPrototypeOf(b)===j.prototype||(g=b,b=j.from(g)),d?i.endEmitted?a.emit("error",Error("stream.unshift() after end event")):u(a,i,b,!0):i.ended?a.emit("error",Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!c?(b=i.decoder.write(b),i.objectMode||0!==b.length?u(a,i,b,!1):y(a,i)):u(a,i,b,!1))):d||(i.reading=!1),!(f=i).ended&&(f.needReadable||f.length<f.highWaterMark||0===f.length)}function u(a,b,c,d){b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,d?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&w(a)),y(a,b)}function v(a,b){var c;if(a<=0||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!=a)if(b.flowing&&b.length)return b.buffer.head.data.length;else return b.length;return(a>b.highWaterMark&&((c=a)>=8388608?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++),b.highWaterMark=c),a<=b.length)?a:b.ended?b.length:(b.needReadable=!0,0)}function w(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?f.nextTick(x,a):x(a))}function x(a){n("emit readable"),a.emit("readable"),C(a)}function y(a,b){b.readingMore||(b.readingMore=!0,f.nextTick(z,a,b))}function z(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length<b.highWaterMark&&(n("maybeReadMore read 0"),a.read(0),c!==b.length);)c=b.length;b.readingMore=!1}function A(a){n("readable nexttick read 0"),a.read(0)}function B(a,b){b.reading||(n("resume read 0"),a.read(0)),b.resumeScheduled=!1,b.awaitDrain=0,a.emit("resume"),C(a),b.flowing&&!b.reading&&a.read(0)}function C(a){var b=a._readableState;for(n("flow",b.flowing);b.flowing&&null!==a.read(););}function D(a,b){var c,d,e,f,g;return 0===b.length?null:(b.objectMode?c=b.buffer.shift():!a||a>=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):(d=a,e=b.buffer,f=b.decoder,d<e.head.data.length?(g=e.head.data.slice(0,d),e.head.data=e.head.data.slice(d)):g=d===e.head.data.length?e.shift():f?function(a,b){var c=b.head,d=1,e=c.data;for(a-=e.length;c=c.next;){var f=c.data,g=a>f.length?f.length:a;if(g===f.length?e+=f:e+=f.slice(0,a),0==(a-=g)){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}(d,e):function(a,b){var c=j.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),0==(a-=g)){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}(d,e),c=g),c)}function E(a){var b=a._readableState;if(b.length>0)throw Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,f.nextTick(F,b,a))}function F(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function G(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return -1}Object.defineProperty(s.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(a){this._readableState&&(this._readableState.destroyed=a)}}),s.prototype.destroy=p.destroy,s.prototype._undestroy=p.undestroy,s.prototype._destroy=function(a,b){this.push(null),b(a)},s.prototype.push=function(a,b){var c,d=this._readableState;return d.objectMode?c=!0:"string"==typeof a&&((b=b||d.defaultEncoding)!==d.encoding&&(a=j.from(a,b),b=""),c=!0),t(this,a,b,!1,c)},s.prototype.unshift=function(a){return t(this,a,null,!0,!1)},s.prototype.isPaused=function(){return!1===this._readableState.flowing},s.prototype.setEncoding=function(a){return e||(e=c(47399).I),this._readableState.decoder=new e(a),this._readableState.encoding=a,this},s.prototype.read=function(a){n("read",a),a=parseInt(a,10);var b,c=this._readableState,d=a;if(0!==a&&(c.emittedReadable=!1),0===a&&c.needReadable&&(c.length>=c.highWaterMark||c.ended))return n("read: emitReadable",c.length,c.ended),0===c.length&&c.ended?E(this):w(this),null;if(0===(a=v(a,c))&&c.ended)return 0===c.length&&E(this),null;var e=c.needReadable;return n("need readable",e),(0===c.length||c.length-a<c.highWaterMark)&&n("length less than watermark",e=!0),c.ended||c.reading?n("reading or ended",e=!1):e&&(n("do read"),c.reading=!0,c.sync=!0,0===c.length&&(c.needReadable=!0),this._read(c.highWaterMark),c.sync=!1,c.reading||(a=v(d,c))),null===(b=a>0?D(a,c):null)?(c.needReadable=!0,a=0):c.length-=a,0===c.length&&(c.ended||(c.needReadable=!0),d!==a&&c.ended&&E(this)),null!==b&&this.emit("data",b),b},s.prototype._read=function(a){this.emit("error",Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){var c,d=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=a;break;case 1:e.pipes=[e.pipes,a];break;default:e.pipes.push(a)}e.pipesCount+=1,n("pipe count=%d opts=%j",e.pipesCount,b);var i=b&&!1===b.end||a===process.stdout||a===process.stderr?s:j;function j(){n("onend"),a.end()}e.endEmitted?f.nextTick(i):d.once("end",i),a.on("unpipe",function b(c,f){n("onunpipe"),c===d&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,n("cleanup"),a.removeListener("close",q),a.removeListener("finish",r),a.removeListener("drain",k),a.removeListener("error",p),a.removeListener("unpipe",b),d.removeListener("end",j),d.removeListener("end",s),d.removeListener("data",o),l=!0,e.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&k())});var k=(c=d,function(){var a=c._readableState;n("pipeOnDrain",a.awaitDrain),a.awaitDrain&&a.awaitDrain--,0===a.awaitDrain&&h(c,"data")&&(a.flowing=!0,C(c))});a.on("drain",k);var l=!1,m=!1;function o(b){n("ondata"),m=!1,!1!==a.write(b)||m||((1===e.pipesCount&&e.pipes===a||e.pipesCount>1&&-1!==G(e.pipes,a))&&!l&&(n("false write response, pause",e.awaitDrain),e.awaitDrain++,m=!0),d.pause())}function p(b){n("onerror",b),s(),a.removeListener("error",p),0===h(a,"error")&&a.emit("error",b)}function q(){a.removeListener("finish",r),s()}function r(){n("onfinish"),a.removeListener("close",q),s()}function s(){n("unpipe"),d.unpipe(a)}return d.on("data",o),!function(a,b,c){if("function"==typeof a.prependListener)return a.prependListener(b,c);a._events&&a._events[b]?g(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c)}(a,"error",p),a.once("close",q),a.once("finish",r),a.emit("pipe",d),e.flowing||(n("pipe resume"),d.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes||(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c)),this;if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f<e;f++)d[f].emit("unpipe",this,{hasUnpiped:!1});return this}var g=G(b.pipes,a);return -1===g||(b.pipes.splice(g,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this,c)),this},s.prototype.on=function(a,b){var c=i.prototype.on.call(this,a,b);if("data"===a)!1!==this._readableState.flowing&&this.resume();else if("readable"===a){var d=this._readableState;d.endEmitted||d.readableListening||(d.readableListening=d.needReadable=!0,d.emittedReadable=!1,d.reading?d.length&&w(this):f.nextTick(A,this))}return c},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var a,b,c=this._readableState;return c.flowing||(n("resume"),c.flowing=!0,a=this,(b=c).resumeScheduled||(b.resumeScheduled=!0,f.nextTick(B,a,b))),this},s.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(a){var b=this,c=this._readableState,d=!1;for(var e in a.on("end",function(){if(n("wrapped end"),c.decoder&&!c.ended){var a=c.decoder.end();a&&a.length&&b.push(a)}b.push(null)}),a.on("data",function(e){n("wrapped data"),c.decoder&&(e=c.decoder.write(e)),c.objectMode&&null==e||(c.objectMode||e&&e.length)&&(b.push(e)||(d=!0,a.pause()))}),a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));for(var f=0;f<q.length;f++)a.on(q[f],this.emit.bind(this,q[f]));return this._read=function(b){n("wrapped _read",b),d&&(d=!1,a.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=D},38475:(a,b,c)=>{"use strict";c.d(b,{v:()=>f});let d=/^[a-zA-Z]:[\\/]/,e=/^\/\//;function f(a){let b=a.replace(/\\/g,"/"),c=d.test(b)||e.test(b);return b=b.replace(/\/{2,}/g,"/").replace(/\/+$/,""),c?b.toLowerCase():b}},38721:(a,b,c)=>{"use strict";var d=c(95241),e=c(67681),f=c(12244),g=c(62325);b.composeDoc=function(a,b,{offset:c,start:h,value:i,end:j},k){let l=Object.assign({_directives:b},a),m=new d.Document(void 0,l),n={atKey:!1,atRoot:!0,directives:m.directives,options:m.options,schema:m.schema},o=g.resolveProps(h,{indicator:"doc-start",next:i??j?.[0],offset:c,onError:k,parentIndent:0,startOnNewline:!0});o.found&&(m.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!o.hasNewline&&k(o.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),m.contents=i?e.composeNode(n,i,o,k):e.composeEmptyNode(n,o.end,h,null,o,k);let p=m.contents.range[2],q=f.resolveEnd(j,p,!1,k);return q.comment&&(m.comment=q.comment),m.range=[c,p,q.offset],m}},38731:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{DC:()=>w});var e=c(51671),f=c(2904),g=c(32171),h=c(9704),i=c(33602),j=c(12144),k=c(57710),l=c(78098),m=a([f,g,j]);[f,g,j]=m.then?(await m)():m;let x=["usage.get","omp.check","app.check","omp.restart","devices.list","devices.revoke","systemPrompt.get","settings.get","settings.update","update"];class y extends Error{constructor(a,b,c,d){super(b),this.name="SystemRequestError",this.code=a,void 0!==c&&(this.details=c),void 0!==d&&(this.status=d)}}let z=/^d_[A-Za-z0-9_-]{16,64}$/;function n(a,b){if(void 0!==a){if("boolean"!=typeof a)throw new y("invalid_args",`${b} must be a boolean`);return a}}async function o(a){let b=n(a.refresh,"refresh")??!1,c=await (0,k.yh)(b);if(c.ok){var d;let a;return a={generatedAt:(d=c.payload).generatedAt,reports:d.reports,accountsWithoutUsage:d.accountsWithoutUsage,disabledCredentials:d.disabledCredentials,capacity:d.capacity,cached:d.cached},void 0!==d.emptyReason&&(a.emptyReason=d.emptyReason),a}throw new y((0,k.Fx)(c.status),c.error,void 0,c.status)}async function p(){try{var a;return{currentVersion:(a=await (0,h.U)()).currentVersion,availableVersion:a.availableVersion,updateAvailable:a.updateAvailable,updateCommand:a.updateCommand}}catch(a){throw new y("omp_check_failed",a instanceof Error?a.message:String(a))}}async function q(a){var b;let c=n(a.force,"force")??!1;return{currentVersion:(b=await (0,i.p)(c)).currentVersion,availableVersion:b.availableVersion,updateAvailable:b.updateAvailable,updateCommand:b.updateCommand,lookupFailed:b.lookupFailed}}async function r(a){if(!0!==a.confirm)throw new y("confirm_required","omp.restart requires {confirm:true}");try{(0,e.YT)();let a=await (0,j.Te)();return{success:!0,sessionsRestarted:a}}catch(a){throw new y("restart_failed",a instanceof Error?a.message:String(a))}}async function s(a){let b=function(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>128)throw new y("invalid_args","sessionId is required");return b}(a.sessionId),c=(0,j.A4)(b);if(!c)throw new y("session_not_running","Session is not running");try{let a=await c.send({type:"get_state"});if("object"!=typeof a||null===a||Array.isArray(a))throw new y("system_prompt_failed","Session state unavailable");let d="systemPrompt"in a&&"string"==typeof a.systemPrompt?a.systemPrompt:"";return{sessionId:b,systemPrompt:d}}catch(a){if(a instanceof y)throw a;throw new y("system_prompt_failed",a instanceof Error?a.message:String(a))}}function t(a,b){return a instanceof f.Le?new y(a.code,a.message,a.issues.length?{issues:a.issues}:void 0,400):new y(b,"Settings operation failed",void 0,400)}async function u(a){try{return{...await (0,g.JK)(a)}}catch(a){throw t(a,"settings_read_failed")}}async function v(a){try{return{...await (0,g.Fy)(a)}}catch(a){throw t(a,"settings_write_failed")}}async function w(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new y("invalid_args","args must be an object");switch(function(a){if(!x.includes(a))throw new y("unknown_action",`Unknown system action "${a}"`);return a}(a)){case"usage.get":return o(b);case"omp.check":return p();case"app.check":return q(b);case"omp.restart":return r(b);case"devices.list":return{devices:(0,l.Rm)().map(a=>({id:a.id,label:a.label,createdAt:a.createdAt,lastSeenAt:a.lastSeenAt}))};case"devices.revoke":let d=function(a){let b="string"==typeof a?a.trim():"";if(!b||b.length>128||!z.test(b))throw new y("invalid_args","deviceId must be a valid device id");return b}(b.deviceId);if(!(0,l.AY)(d))throw new y("device_not_found",`Unknown device "${d}"`);return{revoked:!0,deviceId:d,self:d===c.deviceId};case"systemPrompt.get":return s(b);case"settings.get":return u(b);case"settings.update":return v(b);case"update":throw new y("update_disabled","Automatic self-updating is disabled. Run 'omp update' in your terminal.",{command:"omp update"},400)}}d()}catch(a){d(a)}})},38843:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(35976);b.writeStyleMap=function(a,b){var c,d,e,j;return a.write(g,b),(c=a,d="word/_rels/document.xml.rels",j="{"+(e="http://schemas.openxmlformats.org/package/2006/relationships")+"}Relationship",c.read(d,"utf8").then(f.readString).then(function(a){return i(a.children,j,"Id",{Id:"rMammothStyleMap",Type:"http://schemas.zwobble.org/mammoth/style-map",Target:h}),c.write(d,f.writeString(a,{"":e}))})).then(function(){var b,c,d,e;return b=a,c="[Content_Types].xml",e="{"+(d="http://schemas.openxmlformats.org/package/2006/content-types")+"}Override",b.read(c,"utf8").then(f.readString).then(function(a){return i(a.children,e,"PartName",{PartName:h,ContentType:"text/prs.mammoth.style-map"}),b.write(c,f.writeString(a,{"":d}))})})},b.readStyleMap=function(a){return a.exists(g)?a.read(g,"utf8"):e.resolve(null)};var g="mammoth/style-map",h="/"+g;function i(a,b,c,e){var g=d.find(a,function(a){return a.name===b&&a.attributes[c]===e[c]});g?g.attributes=e:a.push(f.element(b,e))}},39531:a=>{"use strict";a.exports={isNode:"u">typeof Buffer,newBufferFrom:function(a,b){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,b);if("number"==typeof a)throw Error('The "data" argument must not be a number');return new Buffer(a,b)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var b=new Buffer(a);return b.fill(0),b},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},39629:a=>{var b={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==b.call(a)}},40542:(a,b,c)=>{"use strict";var d=c(26701),e=c(12244);function f(a){let b,c;try{b=RegExp("(.*?)(?<![ ])[ ]*\r?\n","sy"),c=RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n","sy")}catch{b=/(.*?)[ \t]*\r?\n/sy,c=/[ \t]*(.*?)[ \t]*\r?\n/sy}let d=b.exec(a);if(!d)return a;let e=d[1],f=" ",g=b.lastIndex;for(c.lastIndex=g;d=c.exec(a);)""===d[1]?"\n"===f?e+=f:f="\n":(e+=f+d[1],f=" "),g=c.lastIndex;let h=/[ \t]*(.*)/sy;return h.lastIndex=g,d=h.exec(a),e+f+(d?.[1]??"")}let g={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"\x85",_:"\xa0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};b.resolveFlowScalar=function(a,b,c){let h,i,{offset:j,type:k,source:l,end:m}=a,n=(a,b,d)=>c(j+a,b,d);switch(k){case"scalar":h=d.Scalar.PLAIN,i=function(a,b){let c="";switch(a[0]){case" ":c="a tab character";break;case",":c="flow indicator character ,";break;case"%":c="directive indicator character %";break;case"|":case">":c=`block scalar indicator ${a[0]}`;break;case"@":case"`":c=`reserved character ${a[0]}`}return c&&b(0,"BAD_SCALAR_START",`Plain value cannot start with ${c}`),f(a)}(l,n);break;case"single-quoted-scalar":var o,p;h=d.Scalar.QUOTE_SINGLE,o=l,p=n,("'"!==o[o.length-1]||1===o.length)&&p(o.length,"MISSING_CHAR","Missing closing 'quote"),i=f(o.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":h=d.Scalar.QUOTE_DOUBLE,i=function(a,b){let c="";for(let d=1;d<a.length-1;++d){let e=a[d];if("\r"!==e||"\n"!==a[d+1])if("\n"===e){let{fold:b,offset:e}=function(a,b){let c="",d=a[b+1];for(;(" "===d||" "===d||"\n"===d||"\r"===d)&&("\r"!==d||"\n"===a[b+2]);)"\n"===d&&(c+="\n"),b+=1,d=a[b+1];return c||(c=" "),{fold:c,offset:b}}(a,d);c+=b,d=e}else if("\\"===e){let e=a[++d],f=g[e];if(f)c+=f;else if("\n"===e)for(e=a[d+1];" "===e||" "===e;)e=a[++d+1];else if("\r"===e&&"\n"===a[d+1])for(e=a[++d+1];" "===e||" "===e;)e=a[++d+1];else if("x"===e||"u"===e||"U"===e){let f="x"===e?2:"u"===e?4:8;c+=function(a,b,c,d){let e=a.substr(b,c),f=e.length===c&&/^[0-9a-fA-F]+$/.test(e)?parseInt(e,16):NaN;try{return String.fromCodePoint(f)}catch{let e=a.substr(b-2,c+2);return d(b-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${e}`),e}}(a,d+1,f,b),d+=f}else{let e=a.substr(d-1,2);b(d-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${e}`),c+=e}}else if(" "===e||" "===e){let b=d,f=a[d+1];for(;" "===f||" "===f;)f=a[++d+1];"\n"!==f&&("\r"!==f||"\n"!==a[d+2])&&(c+=d>b?a.slice(b,d+1):e)}else c+=e}return('"'!==a[a.length-1]||1===a.length)&&b(a.length,"MISSING_CHAR",'Missing closing "quote'),c}(l,n);break;default:return c(a,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${k}`),{value:"",type:null,comment:"",range:[j,j+l.length,j+l.length]}}let q=j+l.length,r=e.resolveEnd(m,q,b,c);return{value:i,type:h,comment:r.comment,range:[j,q,r.offset]}}},40686:(a,b)=>{"use strict";class c extends Error{constructor(a,b,c,d){super(),this.name=a,this.code=c,this.message=d,this.pos=b}}class d extends c{constructor(a,b,c){super("YAMLParseError",a,b,c)}}class e extends c{constructor(a,b,c){super("YAMLWarning",a,b,c)}}b.YAMLError=c,b.YAMLParseError=d,b.YAMLWarning=e,b.prettifyError=(a,b)=>c=>{if(-1===c.pos[0])return;c.linePos=c.pos.map(a=>b.linePos(a));let{line:d,col:e}=c.linePos[0];c.message+=` at line ${d}, column ${e}`;let f=e-1,g=a.substring(b.lineStarts[d-1],b.lineStarts[d]).replace(/[\n\r]+$/,"");if(f>=60&&g.length>80){let a=Math.min(f-39,g.length-79);g="…"+g.substring(a),f-=a-1}if(g.length>80&&(g=g.substring(0,79)+"…"),d>1&&/^ *$/.test(g.substring(0,f))){let c=a.substring(b.lineStarts[d-2],b.lineStarts[d-1]);c.length>80&&(c=c.substring(0,79)+"…\n"),g=c+g}if(/[^ ]/.test(g)){let a=1,b=c.linePos[1];b?.line===d&&b.col>e&&(a=Math.max(1,Math.min(b.col-e,80-f)));let h=" ".repeat(f)+"^".repeat(a);c.message+=`:
|
|
70
|
+
|
|
71
|
+
${g}
|
|
72
|
+
${h}
|
|
73
|
+
`}}},40787:a=>{a.exports=function(a,b,c){this.name=a,this.value=b,c&&(this.source=c)}},40831:(a,b,c)=>{"use strict";var d=c(58952),e=c(49642),f=c(98308),g=c(55165),h=c(788),i=c(69217);a.exports=function(a){var b=d.getTypeOf(a);return(d.checkSupport(b),"string"!==b||e.uint8array)?"nodebuffer"===b?new h(a):e.uint8array?new i(d.transformTo("uint8array",a)):new f(d.transformTo("array",a)):new g(a)}},41017:(a,b,c)=>{var d=c(61457);b.Parser=function(a){return{parseTokens:function(a,b){return a(new d(b))}}}},41067:(a,b,c)=>{"use strict";var d=c(76281),e=c(58952);function f(a){d.call(this,"ConvertWorker to "+a),this.destType=a}e.inherits(f,d),f.prototype.processChunk=function(a){this.push({data:e.transformTo(this.destType,a.data),meta:a.meta})},a.exports=f},41079:(a,b,c)=>{"use strict";var d=c(79428),e=c(26701),f=c(93051);b.binary={identify:a=>a instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(a,b){if("function"==typeof d.Buffer)return d.Buffer.from(a,"base64");if("function"!=typeof atob)return b("This environment does not support reading binary tags; either Buffer or atob is required"),a;{let b=atob(a.replace(/[\n\r]/g,"")),c=new Uint8Array(b.length);for(let a=0;a<b.length;++a)c[a]=b.charCodeAt(a);return c}},stringify({comment:a,type:b,value:c},g,h,i){let j;if(!c)return"";if("function"==typeof d.Buffer)j=c instanceof d.Buffer?c.toString("base64"):d.Buffer.from(c.buffer).toString("base64");else if("function"==typeof btoa){let a="";for(let b=0;b<c.length;++b)a+=String.fromCharCode(c[b]);j=btoa(a)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(b??(b=e.Scalar.BLOCK_LITERAL),b!==e.Scalar.QUOTE_DOUBLE){let a=Math.max(g.options.lineWidth-g.indent.length,g.options.minContentWidth),c=Math.ceil(j.length/a),d=Array(c);for(let b=0,e=0;b<c;++b,e+=a)d[b]=j.substr(e,a);j=d.join(b===e.Scalar.BLOCK_LITERAL?"\n":" ")}return f.stringifyString({comment:a,type:b,value:j},g,h,i)}}},41845:(a,b,c)=>{var d=c(81408).RegexTokeniser;b.t=function(a){var b="(?:[a-zA-Z\\-_]|\\\\.)";return new d([{name:"identifier",regex:RegExp("("+b+"(?:"+b+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:RegExp(e+"'")},{name:"unterminated-string",regex:new RegExp(e)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]).tokenise(a)};var e="'((?:\\\\.|[^'])*)"},42291:(a,b,c)=>{b.read=function(a,b,c){b=b||{};var g=new q({externalFileAccess:(c=c||{}).externalFileAccess,relativeToFile:b.path});return d.props({contentTypes:w(a),partPaths:r(a),docxFile:a,files:g}).also(function(b){var c;return{styles:(c=a,t({filename:b.partPaths.styles,readElement:n.readStylesXml,defaultValue:n.defaultStyles})(c))}}).also(function(b){var c,d,e;return{numbering:(c=a,d=b.partPaths.numbering,e=b.styles,t({filename:d,readElement:function(a){return m.readNumberingXml(a,{styles:e})},defaultValue:m.defaultNumbering})(c))}}).also(function(a){return{footnotes:u(a.partPaths.footnotes,a,function(a,b){return b?o.createFootnotesReader(a)(b):new f([])}),endnotes:u(a.partPaths.endnotes,a,function(a,b){return b?o.createEndnotesReader(a)(b):new f([])}),comments:u(a.partPaths.comments,a,function(a,b){return b?p.createCommentsReader(a)(b):new f([])})}}).also(function(a){return{notes:a.footnotes.flatMap(function(b){return a.endnotes.map(function(a){return new e.Notes(b.concat(a))})})}}).then(function(a){return u(a.partPaths.mainDocument,a,function(b,c){return a.notes.flatMap(function(d){return a.comments.flatMap(function(a){return new j({bodyReader:b,notes:d,comments:a}).convertXmlToDocument(c)})})})})},b._findPartPaths=r;var d=c(9920),e=c(77880),f=c(6560).Result,g=c(94117),h=c(1789).V,i=c(85045).M,j=c(19572).O,k=c(96632),l=c(37278),m=c(89584),n=c(49387),o=c(4398),p=c(60891),q=c(87720).s;function r(a){return x(a).then(function(b){var c=s({docxFile:a,relationships:b,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!a.exists(c))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return t({filename:v(c),readElement:k.readRelationships,defaultValue:k.defaultValue})(a).then(function(b){function d(d){return s({docxFile:a,relationships:b,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+d,basePath:g.splitPath(c).dirname,fallbackPath:"word/"+d+".xml"})}return{mainDocument:c,comments:d("comments"),endnotes:d("endnotes"),footnotes:d("footnotes"),numbering:d("numbering"),styles:d("styles")}})})}function s(a){var b=a.docxFile,c=a.relationships,d=a.relationshipType,e=a.basePath,f=a.fallbackPath,h=c.findTargetsByType(d).map(function(a){var b;return"/"===(b=g.joinPath(e,a)).substring(0,1)?b.substring(1):b}).filter(function(a){return b.exists(a)});return 0===h.length?f:h[0]}function t(a){return function(b){return h(b,a.filename).then(function(b){return b?a.readElement(b):a.defaultValue})}}function u(a,b,c){return t({filename:v(a),readElement:k.readRelationships,defaultValue:k.defaultValue})(b.docxFile).then(function(d){var e=new i({relationships:d,contentTypes:b.contentTypes,docxFile:b.docxFile,numbering:b.numbering,styles:b.styles,files:b.files});return h(b.docxFile,a).then(function(a){return c(e,a)})})}function v(a){var b=g.splitPath(a);return g.joinPath(b.dirname,"_rels",b.basename+".rels")}var w=t({filename:"[Content_Types].xml",readElement:l.readContentTypesFromXml,defaultValue:l.defaultContentTypes}),x=t({filename:"_rels/.rels",readElement:k.readRelationships,defaultValue:k.defaultValue})},43351:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{eB:()=>p,f:()=>v});var e=c(77598),f=c(73024),g=c(76760),h=c.n(g),i=c(87390),j=c(52103),k=c(98122),l=c(4186),m=a([k,l]);function n(a){let b=0;for(let c of u.values())c.deviceId===a&&b++;if(u.size>=128||b>=16)throw new k.uY("transfer_quota","File transfer quota exceeded")}[k,l]=m.then?(await m)():m;let u=new Map;function o(a){let b=u.get(a);if(b&&(u.delete(a),clearTimeout(b.timer),"upload"===b.kind)){l.Z7.delete(b.temp);try{b.fd>=0&&(0,f.closeSync)(b.fd)}catch{}b.fd=-1;try{(0,f.unlinkSync)(b.temp)}catch(a){a instanceof Error&&"code"in a&&"ENOENT"===a.code||console.warn("Relay upload staging cleanup failed",a)}}}function p(a){for(let[b,c]of u)(void 0===a||c.deviceId===a)&&o(b)}function q(a,b,c=!1){let d=a[b];if(void 0!==d||!c){if("string"!=typeof d||"text"!==b&&"query"!==b&&"data"!==b&&0===d.length||d.includes("\0"))throw new k.uY("invalid_args",`Invalid ${b}`);return d}}function r(a,b,c=!1,d=Number.MAX_SAFE_INTEGER){let e=a[b];if(void 0!==e||!c){if("number"!=typeof e||!Number.isSafeInteger(e)||e<0||e>d)throw new k.uY("invalid_args",`Invalid ${b}`);return e}}function s(a,b,c){let d=u.get(a);if(!d||d.deviceId!==b||d.kind!==c)throw new k.uY("transfer_not_found","File transfer not found");if(Date.now()>=d.expiresAt)throw o(a),new k.uY("transfer_expired","File transfer expired");return d}async function t(a,b){let c=await (0,i.mc)();if(!(0,i.B7)(a,c))throw new k.uY("path_not_allowed","Upload directory is not allowed");let d=(0,f.realpathSync)(a);if(d!==a||!(0,f.lstatSync)(d).isDirectory())throw new k.uY("path_not_allowed","Upload directory changed");let e=h().join(d,b),g=(0,j.Gu)(d,[b]);if(g.nonReplaceable.length)throw new k.uY("invalid_target","Upload destination must be a regular file, not a directory or symlink");if(g.conflicts.length&&!(0,i.B7)(e,c))throw new k.uY("path_not_allowed","Upload destination is not allowed");return e}let v=async(a,b,c)=>{switch(a){case"list":return{...await (0,l.Hh)(q(b,"path",!0),r(b,"offset",!0),r(b,"limit",!0))};case"search":return{...await (0,l.Qt)(q(b,"cwd"),q(b,"query"),r(b,"offset",!0),r(b,"limit",!0))};case"meta":return{...await (0,l.Fg)(q(b,"path"))};case"preview":return{...await (0,l.Ak)(q(b,"path"),q(b,"revision",!0))};case"read":return{...await (0,l.m4)(q(b,"path"))};case"readChunk":return{...await (0,l.ps)(q(b,"path"),q(b,"revision"),r(b,"offset"),r(b,"length",!0,131072))};case"write":if(void 0!==b.createIfMissing&&"boolean"!=typeof b.createIfMissing)throw new k.uY("invalid_args","Invalid createIfMissing");return{...await (0,l.pB)(q(b,"path"),q(b,"text"),q(b,"revision",!0),q(b,"baseContentHash",!0),b.createIfMissing)};case"gitStatus":return{...await (0,l.gO)(q(b,"cwd"),r(b,"offset",!0),r(b,"limit",!0))};case"gitDiff":return{...await (0,l.v)(q(b,"cwd"),q(b,"path"))};case"uploadBegin":{let a=q(b,"file");if((0,j.SI)([a]))throw new k.uY("invalid_args","Invalid upload file name");let d=r(b,"size",!1,0x1900000),g=(0,j.Ey)(q(b,"conflict",!0)??null);if(!g)throw new k.uY("invalid_args","Invalid conflict strategy");let i=(0,f.realpathSync)(await (0,l.cK)(q(b,"dir"))),m=await t(i,a);if((0,j.Gu)(i,[a]).conflicts.length&&"overwrite"!==g){if("skip"===g)return{skipped:!0,path:m,name:a,bytes:d};throw Object.assign(new k.uY("upload_conflict","Upload destination already exists"),{details:{conflicts:[a]}})}c.assertActive?.(),n(c.deviceId);let p=(0,e.randomUUID)(),s=h().join(i,`.relay-upload-${(0,e.randomUUID)()}.tmp`),v=(0,f.openSync)(s,"wx",384);l.Z7.add(s);let w=Date.now()+3e5,x=setTimeout(()=>{o(p)},3e5);return x.unref(),u.set(p,{kind:"upload",deviceId:c.deviceId,expiresAt:w,timer:x,path:m,directory:i,name:a,temp:s,fd:v,size:d,received:0,conflict:g}),{transferId:p,path:m,name:a,bytes:d,size:d,chunkSize:131072,expiresAt:w}}case"uploadChunk":case"uploadComplete":case"uploadAbort":{let d=q(b,"transferId"),e=s(d,c.deviceId,"upload");if("upload"!==e.kind)throw new k.uY("transfer_not_found","Upload not found");try{if("uploadAbort"===a)return o(d),{aborted:!0};if("uploadChunk"===a){let a=r(b,"offset"),c=q(b,"data");if(a!==e.received)throw new k.uY("invalid_offset","Upload chunks must be sequential");if(c.length>4*Math.ceil(131072/3)||!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c))throw new k.uY("invalid_chunk","Invalid base64 upload chunk");let g=Buffer.from(c,"base64");if(g.toString("base64")!==c||0===g.length||g.length>131072||e.received+g.length>e.size)throw new k.uY("invalid_chunk","Invalid upload chunk size or encoding");let h=0;for(;h<g.length;){let a=(0,f.writeSync)(e.fd,g,h,g.length-h,e.received+h);if(0===a)throw new k.uY("upload_failed","Upload write made no progress");h+=a}return e.received+=h,{transferId:d,received:e.received,nextOffset:e.received,complete:e.received===e.size}}if(e.received!==e.size)throw new k.uY("size_mismatch","Upload is incomplete");let g=q(b,"sha256",!0);if(void 0!==g&&(!/^[a-fA-F0-9]{64}$/.test(g)||(0,l.Tg)(e.temp).toLowerCase()!==g.toLowerCase()))throw new k.uY("hash_mismatch","Upload checksum mismatch");await t(e.directory,e.name),s(d,c.deviceId,"upload");let h=(0,j.Gu)(e.directory,[e.name]);if(h.conflicts.length&&"overwrite"!==e.conflict){if("skip"===e.conflict)return o(d),{skipped:!0,path:e.path,name:e.name,bytes:e.size};throw Object.assign(new k.uY("upload_conflict","Upload destination already exists"),{details:{conflicts:[e.name]}})}if(h.conflicts.length&&(0,f.fchmodSync)(e.fd,4095&(0,f.lstatSync)(e.path).mode),(0,f.fsyncSync)(e.fd),(0,f.closeSync)(e.fd),e.fd=-1,h.conflicts.length&&"overwrite"===e.conflict)(0,f.renameSync)(e.temp,e.path);else{try{(0,f.linkSync)(e.temp,e.path)}catch(a){if(a instanceof Error&&"code"in a&&"EEXIST"===a.code){if((0,j.Gu)(e.directory,[e.name]).nonReplaceable.length)throw new k.uY("invalid_target","Upload destination must be a regular file, not a directory or symlink");if("skip"===e.conflict)return o(d),{skipped:!0,path:e.path,name:e.name,bytes:e.size};throw Object.assign(new k.uY("upload_conflict","Upload destination already exists"),{details:{conflicts:[e.name]}})}throw a}(0,f.unlinkSync)(e.temp)}let i=(0,f.openSync)(e.directory,f.constants.O_RDONLY);try{(0,f.fsyncSync)(i)}finally{(0,f.closeSync)(i)}return o(d),{path:e.path,name:e.name,bytes:e.size,revision:(0,l.Vs)(e.path),contentHash:(0,l.Tg)(e.path)}}catch(a){if(o(d),a instanceof k.uY)throw a;throw new k.uY("upload_failed","File upload failed")}}case"downloadBegin":{let a=await (0,l.cK)(q(b,"path")),d=await (0,l.Fg)(a);if("file"!==d.kind)throw new k.uY("invalid_target","Download target must be a file");if(d.size>0x6400000)throw new k.uY("file_too_large","Download exceeds 100 MiB");c.assertActive?.(),n(c.deviceId);let f=(0,e.randomUUID)(),g=Date.now()+3e5,h=setTimeout(()=>{o(f)},3e5);return h.unref(),u.set(f,{kind:"download",deviceId:c.deviceId,expiresAt:g,timer:h,path:a,size:d.size,revision:d.revision}),{...d,transferId:f,bytes:d.size,chunkSize:131072,expiresAt:g}}case"downloadChunk":case"downloadClose":{let d=q(b,"transferId");if("downloadClose"===a&&!u.has(d))return{closed:!0};let e=s(d,c.deviceId,"download");if("download"!==e.kind)throw new k.uY("transfer_not_found","Download not found");try{let g;if("downloadClose"===a)return o(d),{closed:!0};let h=r(b,"offset"),i=r(b,"length",!0,131072)??131072;if(0===i||h>e.size)throw new k.uY("invalid_offset","Invalid download range");if(await (0,l.cK)(e.path),s(d,c.deviceId,"download"),(0,l.Vs)(e.path)!==e.revision)throw new k.uY("stale_revision","Download file changed");let j=(0,f.openSync)(e.path,f.constants.O_RDONLY|f.constants.O_NOFOLLOW);try{if(!(0,f.fstatSync)(j).isFile())throw new k.uY("invalid_target","Download target must be a file");g=Buffer.alloc(Math.min(i,e.size-h));let a=0;for(;a<g.length;){let b=(0,f.readSync)(j,g,a,g.length-a,h+a);if(!b)throw new k.uY("stale_revision","Download file changed");a+=b}let b=(0,f.fstatSync)(j),c=(0,f.lstatSync)(e.path);if(b.dev!==c.dev||b.ino!==c.ino||b.size!==e.size||(0,l.Vs)(e.path)!==e.revision)throw new k.uY("stale_revision","Download file changed")}finally{(0,f.closeSync)(j)}let m=h+g.length;return m===e.size&&o(d),{transferId:d,path:e.path,revision:e.revision,offset:h,data:g.toString("base64"),nextOffset:m,complete:m===e.size}}catch(a){if(o(d),a instanceof k.uY)throw a;throw new k.uY("download_failed","File download failed")}}default:throw new k.uY("unknown_action","Unknown files action")}};d()}catch(a){d(a)}})},43631:(a,b,c)=>{"use strict";var d=c(37369),e=c(69167),f=c(75034),g=c(53308),h=c(19272),i=c(32010),j=c(57792),k=Object.prototype.toString;function l(a){if(!(this instanceof l))return new l(a);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(a&&a.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(15&b.windowBits)==0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var c=d.inflateInit2(this.strm,b.windowBits);if(c!==g.Z_OK||(this.header=new j,d.inflateGetHeader(this.strm,this.header),b.dictionary&&("string"==typeof b.dictionary?b.dictionary=f.string2buf(b.dictionary):"[object ArrayBuffer]"===k.call(b.dictionary)&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw)&&(c=d.inflateSetDictionary(this.strm,b.dictionary))!==g.Z_OK))throw Error(h[c])}function m(a,b){var c=new l(b);if(c.push(a,!0),c.err)throw c.msg||h[c.err];return c.result}l.prototype.push=function(a,b){var c,h,i,j,l,m=this.strm,n=this.options.chunkSize,o=this.options.dictionary,p=!1;if(this.ended)return!1;h=b===~~b?b:!0===b?g.Z_FINISH:g.Z_NO_FLUSH,"string"==typeof a?m.input=f.binstring2buf(a):"[object ArrayBuffer]"===k.call(a)?m.input=new Uint8Array(a):m.input=a,m.next_in=0,m.avail_in=m.input.length;do{if(0===m.avail_out&&(m.output=new e.Buf8(n),m.next_out=0,m.avail_out=n),(c=d.inflate(m,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&o&&(c=d.inflateSetDictionary(this.strm,o)),c===g.Z_BUF_ERROR&&!0===p&&(c=g.Z_OK,p=!1),c!==g.Z_STREAM_END&&c!==g.Z_OK)return this.onEnd(c),this.ended=!0,!1;m.next_out&&(0===m.avail_out||c===g.Z_STREAM_END||0===m.avail_in&&(h===g.Z_FINISH||h===g.Z_SYNC_FLUSH))&&("string"===this.options.to?(i=f.utf8border(m.output,m.next_out),j=m.next_out-i,l=f.buf2string(m.output,i),m.next_out=j,m.avail_out=n-j,j&&e.arraySet(m.output,m.output,i,j,0),this.onData(l)):this.onData(e.shrinkBuf(m.output,m.next_out))),0===m.avail_in&&0===m.avail_out&&(p=!0)}while((m.avail_in>0||0===m.avail_out)&&c!==g.Z_STREAM_END);return(c===g.Z_STREAM_END&&(h=g.Z_FINISH),h===g.Z_FINISH)?(c=d.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===g.Z_OK):(h===g.Z_SYNC_FLUSH&&(this.onEnd(g.Z_OK),m.avail_out=0),!0)},l.prototype.onData=function(a){this.chunks.push(a)},l.prototype.onEnd=function(a){a===g.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Inflate=l,b.inflate=m,b.inflateRaw=function(a,b){return(b=b||{}).raw=!0,m(a,b)},b.ungzip=m},43823:(a,b,c)=>{"use strict";var d,e,f=c(3987),g=f.freeze,h=c(22418),i=h.inherits,j=h.notEnumerableProp;function k(a,b){function c(d){if(!(this instanceof c))return new c(d);j(this,"message","string"==typeof d?d:b),j(this,"name",a),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return i(c,Error),c}var l=k("Warning","warning"),m=k("CancellationError","cancellation error"),n=k("TimeoutError","timeout error"),o=k("AggregateError","aggregate error");try{d=TypeError,e=RangeError}catch(a){d=k("TypeError","type error"),e=k("RangeError","range error")}for(var p="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),q=0;q<p.length;++q)"function"==typeof Array.prototype[p[q]]&&(o.prototype[p[q]]=Array.prototype[p[q]]);f.defineProperty(o.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),o.prototype.isOperational=!0;var r=0;function s(a){if(!(this instanceof s))return new s(a);j(this,"name","OperationalError"),j(this,"message",a),this.cause=a,this.isOperational=!0,a instanceof Error?(j(this,"message",a.message),j(this,"stack",a.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}o.prototype.toString=function(){var a=Array(4*r+1).join(" "),b="\n"+a+"AggregateError of:\n";a=Array(4*++r+1).join(" ");for(var c=0;c<this.length;++c){for(var d=this[c]===this?"[Circular AggregateError]":this[c]+"",e=d.split("\n"),f=0;f<e.length;++f)e[f]=a+e[f];b+=(d=e.join("\n"))+"\n"}return r--,b},i(s,Error);var t=Error.__BluebirdErrorTypes__;t||(t=g({CancellationError:m,TimeoutError:n,OperationalError:s,RejectionError:s,AggregateError:o}),f.defineProperty(Error,"__BluebirdErrorTypes__",{value:t,writable:!1,enumerable:!1,configurable:!1})),a.exports={Error:Error,TypeError:d,RangeError:e,CancellationError:t.CancellationError,OperationalError:t.OperationalError,TimeoutError:t.TimeoutError,AggregateError:t.AggregateError,Warning:l}},44559:(a,b,c)=>{"use strict";var d=c(2063);function e(a){switch(a){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let f=new Set("0123456789ABCDEFabcdef"),g=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),h=new Set(",[]{}"),i=new Set(" ,[]{}\n\r "),j=a=>!a||i.has(a);class k{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(a,b=!1){if(a){if("string"!=typeof a)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+a:a,this.lineEndPos=null}this.atEnd=!b;let c=this.next??"stream";for(;c&&(b||this.hasChars(1));)c=yield*this.parseNext(c)}atLineEnd(){let a=this.pos,b=this.buffer[a];for(;" "===b||" "===b;)b=this.buffer[++a];return!b||"#"===b||"\n"===b||"\r"===b&&"\n"===this.buffer[a+1]}charAt(a){return this.buffer[this.pos+a]}continueScalar(a){let b=this.buffer[a];if(this.indentNext>0){let c=0;for(;" "===b;)b=this.buffer[++c+a];if("\r"===b){let b=this.buffer[c+a+1];if("\n"===b||!b&&!this.atEnd)return a+c+1}return"\n"!==b&&!(c>=this.indentNext)&&(b||this.atEnd)?-1:a+c}if("-"===b||"."===b){let b=this.buffer.substr(a,3);if(("---"===b||"..."===b)&&e(this.buffer[a+3]))return -1}return a}getLine(){let a=this.lineEndPos;return(("number"!=typeof a||-1!==a&&a<this.pos)&&(a=this.buffer.indexOf("\n",this.pos),this.lineEndPos=a),-1===a)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[a-1]&&(a-=1),this.buffer.substring(this.pos,a))}hasChars(a){return this.pos+a<=this.buffer.length}setNext(a){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=a,null}peek(a){return this.buffer.substr(this.pos,a)}*parseNext(a){switch(a){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let a=this.getLine();if(null===a)return this.setNext("stream");if(a[0]===d.BOM&&(yield*this.pushCount(1),a=a.substring(1)),"%"===a[0]){let b=a.length,c=a.indexOf("#");for(;-1!==c;){let d=a[c-1];if(" "===d||" "===d){b=c-1;break}c=a.indexOf("#",c+1)}for(;;){let c=a[b-1];if(" "===c||" "===c)b-=1;else break}let d=(yield*this.pushCount(b))+(yield*this.pushSpaces(!0));return yield*this.pushCount(a.length-d),this.pushNewline(),"stream"}if(this.atLineEnd()){let b=yield*this.pushSpaces(!0);return yield*this.pushCount(a.length-b),yield*this.pushNewline(),"stream"}return yield d.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let a=this.charAt(0);if(!a&&!this.atEnd)return this.setNext("line-start");if("-"===a||"."===a){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let a=this.peek(3);if(("---"===a||"..."===a)&&e(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===a?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!e(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[a,b]=this.peek(2);if(!b&&!this.atEnd)return this.setNext("block-start");if(("-"===a||"?"===a||":"===a)&&e(b)){let a=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=a,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let a=this.getLine();if(null===a)return this.setNext("doc");let b=yield*this.pushIndicators();switch(a[b]){case"#":yield*this.pushCount(a.length-b);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(j),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return b+=yield*this.parseBlockScalarHeader(),b+=yield*this.pushSpaces(!0),yield*this.pushCount(a.length-b),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let a,b,c=-1;do(a=yield*this.pushNewline())>0?(b=yield*this.pushSpaces(!1),this.indentValue=c=b):b=0,b+=yield*this.pushSpaces(!0);while(a+b>0);let f=this.getLine();if(null===f)return this.setNext("flow");if((-1!==c&&c<this.indentNext&&"#"!==f[0]||0===c&&(f.startsWith("---")||f.startsWith("..."))&&e(f[3]))&&(c!==this.indentNext-1||1!==this.flowLevel||"]"!==f[0]&&"}"!==f[0]))return this.flowLevel=0,yield d.FLOW_END,yield*this.parseLineStart();let g=0;for(;","===f[g];)g+=yield*this.pushCount(1),g+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(f[g+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(f.length-g),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(j),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||e(a)||","===a)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let a=this.charAt(0),b=this.buffer.indexOf(a,this.pos+1);if("'"===a)for(;-1!==b&&"'"===this.buffer[b+1];)b=this.buffer.indexOf("'",b+2);else for(;-1!==b;){let a=0;for(;"\\"===this.buffer[b-1-a];)a+=1;if(a%2==0)break;b=this.buffer.indexOf('"',b+1)}let c=this.buffer.substring(0,b),d=c.indexOf("\n",this.pos);if(-1!==d){for(;-1!==d;){let a=this.continueScalar(d+1);if(-1===a)break;d=c.indexOf("\n",a)}-1!==d&&(b=d-("\r"===c[d-1]?2:1))}if(-1===b){if(!this.atEnd)return this.setNext("quoted-scalar");b=this.buffer.length}return yield*this.pushToIndex(b+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let a=this.pos;for(;;){let b=this.buffer[++a];if("+"===b)this.blockScalarKeep=!0;else if(b>"0"&&b<="9")this.blockScalarIndent=Number(b)-1;else if("-"!==b)break}return yield*this.pushUntil(a=>e(a)||"#"===a)}*parseBlockScalar(){let a,b=this.pos-1,c=0;d:for(let d=this.pos;a=this.buffer[d];++d)switch(a){case" ":c+=1;break;case"\n":b=d,c=0;break;case"\r":{let a=this.buffer[d+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if("\n"===a)break}default:break d}if(!a&&!this.atEnd)return this.setNext("block-scalar");if(c>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=c:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let a=this.continueScalar(b+1);if(-1===a)break;b=this.buffer.indexOf("\n",a)}while(-1!==b);if(-1===b){if(!this.atEnd)return this.setNext("block-scalar");b=this.buffer.length}}let e=b+1;for(a=this.buffer[e];" "===a;)a=this.buffer[++e];if(" "===a){for(;" "===a||" "===a||"\r"===a||"\n"===a;)a=this.buffer[++e];b=e-1}else if(!this.blockScalarKeep)for(;;){let a=b-1,d=this.buffer[a];"\r"===d&&(d=this.buffer[--a]);let e=a;for(;" "===d;)d=this.buffer[--a];if("\n"===d&&a>=this.pos&&a+1+c>e)b=a;else break}return yield d.SCALAR,yield*this.pushToIndex(b+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let a,b=this.flowLevel>0,c=this.pos-1,f=this.pos-1;for(;a=this.buffer[++f];)if(":"===a){let a=this.buffer[f+1];if(e(a)||b&&h.has(a))break;c=f}else if(e(a)){let d=this.buffer[f+1];if("\r"===a&&("\n"===d?(f+=1,a="\n",d=this.buffer[f+1]):c=f),"#"===d||b&&h.has(d))break;if("\n"===a){let a=this.continueScalar(f+1);if(-1===a)break;f=Math.max(f,a-2)}}else{if(b&&h.has(a))break;c=f}return a||this.atEnd?(yield d.SCALAR,yield*this.pushToIndex(c+1,!0),b?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(a){return a>0?(yield this.buffer.substr(this.pos,a),this.pos+=a,a):0}*pushToIndex(a,b){let c=this.buffer.slice(this.pos,a);return c?(yield c,this.pos+=c.length,c.length):(b&&(yield""),0)}*pushIndicators(){let a=0;for(;;){switch(this.charAt(0)){case"!":a+=yield*this.pushTag(),a+=yield*this.pushSpaces(!0);continue;case"&":a+=yield*this.pushUntil(j),a+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let b=this.flowLevel>0,c=this.charAt(1);if(e(c)||b&&h.has(c)){b?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,a+=yield*this.pushCount(1),a+=yield*this.pushSpaces(!0);continue}}}break}return a}*pushTag(){if("<"===this.charAt(1)){let a=this.pos+2,b=this.buffer[a];for(;!e(b)&&">"!==b;)b=this.buffer[++a];return yield*this.pushToIndex(">"===b?a+1:a,!1)}{let a=this.pos+1,b=this.buffer[a];for(;b;)if(g.has(b))b=this.buffer[++a];else if("%"===b&&f.has(this.buffer[a+1])&&f.has(this.buffer[a+2]))b=this.buffer[a+=3];else break;return yield*this.pushToIndex(a,!1)}}*pushNewline(){let a=this.buffer[this.pos];return"\n"===a?yield*this.pushCount(1):"\r"===a&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(a){let b,c=this.pos-1;do b=this.buffer[++c];while(" "===b||a&&" "===b);let d=c-this.pos;return d>0&&(yield this.buffer.substr(this.pos,d),this.pos=c),d}*pushUntil(a){let b=this.pos,c=this.buffer[b];for(;!a(c);)c=this.buffer[++b];return yield*this.pushToIndex(b,!1)}}b.Lexer=k},45538:(a,b,c)=>{"use strict";var d=c(69273),e=c(30666),f=c(51490),g=c(57422),h=c(27387),i=c(88075),j=c(20710),k=c(61462),l=c(20795),m=c(41079),n=c(16892),o=c(67539),p=c(84183),q=c(46785),r=c(97332),s=c(9972);let t=new Map([["core",k.schema],["failsafe",[d.map,f.seq,g.string]],["json",l.schema],["yaml11",q.schema],["yaml-1.1",q.schema]]),u={binary:m.binary,bool:h.boolTag,float:i.float,floatExp:i.floatExp,floatNaN:i.floatNaN,floatTime:s.floatTime,int:j.int,intHex:j.intHex,intOct:j.intOct,intTime:s.intTime,map:d.map,merge:n.merge,null:e.nullTag,omap:o.omap,pairs:p.pairs,seq:f.seq,set:r.set,timestamp:s.timestamp};b.coreKnownTags={"tag:yaml.org,2002:binary":m.binary,"tag:yaml.org,2002:merge":n.merge,"tag:yaml.org,2002:omap":o.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":r.set,"tag:yaml.org,2002:timestamp":s.timestamp},b.getTags=function(a,b,c){let d=t.get(b);if(d&&!a)return c&&!d.includes(n.merge)?d.concat(n.merge):d.slice();let e=d;if(!e)if(Array.isArray(a))e=[];else{let a=Array.from(t.keys()).filter(a=>"yaml11"!==a).map(a=>JSON.stringify(a)).join(", ");throw Error(`Unknown schema "${b}"; use one of ${a} or define customTags array`)}if(Array.isArray(a))for(let b of a)e=e.concat(b);else"function"==typeof a&&(e=a(e.slice()));return c&&(e=e.concat(n.merge)),e.reduce((a,b)=>{let c="string"==typeof b?u[b]:b;if(!c){let a=JSON.stringify(b),c=Object.keys(u).map(a=>JSON.stringify(a)).join(", ");throw Error(`Unknown custom tag ${a}; use one of ${c}`)}return a.includes(c)||a.push(c),a},[])}},45644:(a,b,c)=>{"use strict";var d=c(58952),e=c(49642),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";b.encode=function(a){for(var b,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l<a.length;)n=m-l,o?(b=a[l++],c=l<m?a[l++]:0,e=l<m?a[l++]:0):(b=a.charCodeAt(l++),c=l<m?a.charCodeAt(l++):0,e=l<m?a.charCodeAt(l++):0),g=b>>2,h=(3&b)<<4|c>>4,i=n>1?(15&c)<<2|e>>6:64,j=n>2?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));return k.join("")},b.decode=function(a){var b,c,d,g,h,i,j,k,l=0,m=0,n="data:";if(a.substr(0,n.length)===n)throw Error("Invalid base64 input, it looks like a data url.");var o=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===f.charAt(64)&&o--,a.charAt(a.length-2)===f.charAt(64)&&o--,o%1!=0)throw Error("Invalid base64 input, bad content length.");for(k=e.uint8array?new Uint8Array(0|o):Array(0|o);l<a.length;)g=f.indexOf(a.charAt(l++)),h=f.indexOf(a.charAt(l++)),i=f.indexOf(a.charAt(l++)),j=f.indexOf(a.charAt(l++)),b=g<<2|h>>4,c=(15&h)<<4|i>>2,d=(3&i)<<6|j,k[m++]=b,64!==i&&(k[m++]=c),64!==j&&(k[m++]=d);return k}},46107:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(b)}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).text(this)},c}(c(8142))}).call(this)},46785:(a,b,c)=>{"use strict";var d=c(69273),e=c(30666),f=c(51490),g=c(57422),h=c(41079),i=c(26720),j=c(58586),k=c(18143),l=c(16892),m=c(67539),n=c(84183),o=c(97332),p=c(9972);b.schema=[d.map,f.seq,g.string,e.nullTag,i.trueTag,i.falseTag,k.intBin,k.intOct,k.int,k.intHex,j.floatNaN,j.floatExp,j.float,h.binary,l.merge,m.omap,n.pairs,o.set,p.intTime,p.floatTime,p.timestamp]},47040:(a,b,c)=>{a.exports=c(27910)},47279:(a,b,c)=>{"use strict";var d=c(14732),e=c(98658),f=c(30212),g=c(84127),h=c(76281),i=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}};i.prototype={internalStream:function(a){var b=null,c="string";try{if(!a)throw Error("No output type specified.");c=a.toLowerCase();var e="string"===c||"text"===c;("binarystring"===c||"text"===c)&&(c="string"),b=this._decompressWorker();var g=!this._dataBinary;g&&!e&&(b=b.pipe(new f.Utf8EncodeWorker)),!g&&e&&(b=b.pipe(new f.Utf8DecodeWorker))}catch(a){(b=new h("error")).error(a)}return new d(b,c,"")},async:function(a,b){return this.internalStream(a).accumulate(b)},nodeStream:function(a,b){return this.internalStream(a||"nodebuffer").toNodejsStream(b)},_compressWorker:function(a,b){if(this._data instanceof g&&this._data.compression.magic===a.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new f.Utf8EncodeWorker)),g.createWorkerFrom(c,a,b)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof h?this._data:new e(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l<j.length;l++)i.prototype[j[l]]=k;a.exports=i},47399:(a,b,c)=>{"use strict";var d=c(62213).Buffer,e=d.isEncoding||function(a){switch((a=""+a)&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(a){var b;switch(this.encoding=function(a){var b=function(a){var b;if(!a)return"utf8";for(;;)switch(a){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return a;default:if(b)return;a=(""+a).toLowerCase(),b=!0}}(a);if("string"!=typeof b&&(d.isEncoding===e||!e(a)))throw Error("Unknown encoding: "+a);return b||a}(a),this.encoding){case"utf16le":this.text=i,this.end=j,b=4;break;case"utf8":this.fillLast=h,b=4;break;case"base64":this.text=k,this.end=l,b=3;break;default:this.write=m,this.end=n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(b)}function g(a){return a<=127?0:a>>5==6?2:a>>4==14?3:a>>3==30?4:a>>6==2?-1:-2}function h(a){var b=this.lastTotal-this.lastNeed,c=function(a,b){if((192&b[0])!=128)return a.lastNeed=0,"�";if(a.lastNeed>1&&b.length>1){if((192&b[1])!=128)return a.lastNeed=1,"�";if(a.lastNeed>2&&b.length>2&&(192&b[2])!=128)return a.lastNeed=2,"�"}}(this,a);return void 0!==c?c:this.lastNeed<=a.length?(a.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(a.copy(this.lastChar,b,0,a.length),this.lastNeed-=a.length)}function i(a,b){if((a.length-b)%2==0){var c=a.toString("utf16le",b);if(c){var d=c.charCodeAt(c.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",b,a.length-1)}function j(a){var b=a&&a.length?this.write(a):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,c)}return b}function k(a,b){var c=(a.length-b)%3;return 0===c?a.toString("base64",b):(this.lastNeed=3-c,this.lastTotal=3,1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",b,a.length-c))}function l(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function m(a){return a.toString(this.encoding)}function n(a){return a&&a.length?this.write(a):""}b.I=f,f.prototype.write=function(a){var b,c;if(0===a.length)return"";if(this.lastNeed){if(void 0===(b=this.fillLast(a)))return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c<a.length?b?b+this.text(a,c):this.text(a,c):b||""},f.prototype.end=function(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+"�":b},f.prototype.text=function(a,b){var c=function(a,b,c){var d=b.length-1;if(d<c)return 0;var e=g(b[d]);return e>=0?(e>0&&(a.lastNeed=e-1),e):--d<c||-2===e?0:(e=g(b[d]))>=0?(e>0&&(a.lastNeed=e-2),e):--d<c||-2===e?0:(e=g(b[d]))>=0?(e>0&&(2===e?e=0:a.lastNeed=e-3),e):0}(this,a,b);if(!this.lastNeed)return a.toString("utf8",b);this.lastTotal=c;var d=a.length-(c-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",b,d)},f.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length}},47413:(a,b)=>{"use strict";let c="block",d="quoted";function e(a,b,c){let d=b,e=b+1,f=a[e];for(;" "===f||" "===f;)if(b<e+c)f=a[++b];else{do f=a[++b];while(f&&"\n"!==f);d=b,f=a[e=b+1]}return d}b.FOLD_BLOCK=c,b.FOLD_FLOW="flow",b.FOLD_QUOTED=d,b.foldFlowLines=function(a,b,f="flow",{indentAtStart:g,lineWidth:h=80,minContentWidth:i=20,onFold:j,onOverflow:k}={}){let l,m,n;if(!h||h<0)return a;h<i&&(i=0);let o=Math.max(1+i,1+h-b.length);if(a.length<=o)return a;let p=[],q={},r=h-b.length;"number"==typeof g&&(g>h-Math.max(2,i)?p.push(0):r=h-g);let s=!1,t=-1,u=-1,v=-1;for(f===c&&-1!==(t=e(a,t,b.length))&&(r=t+o);n=a[t+=1];){if(f===d&&"\\"===n){switch(u=t,a[t+1]){case"x":t+=3;break;case"u":t+=5;break;case"U":t+=9;break;default:t+=1}v=t}if("\n"===n)f===c&&(t=e(a,t,b.length)),r=t+b.length+o,l=void 0;else{if(" "===n&&m&&" "!==m&&"\n"!==m&&" "!==m){let b=a[t+1];b&&" "!==b&&"\n"!==b&&" "!==b&&(l=t)}if(t>=r)if(l)p.push(l),r=l+o,l=void 0;else if(f===d){for(;" "===m||" "===m;)m=n,n=a[t+=1],s=!0;let b=t>v+1?t-2:u-1;if(q[b])return a;p.push(b),q[b]=!0,r=b+o,l=void 0}else s=!0}m=n}if(s&&k&&k(),0===p.length)return a;j&&j();let w=a.slice(0,p[0]);for(let c=0;c<p.length;++c){let e=p[c],g=p[c+1]||a.length;0===e?w=`
|
|
74
|
+
${b}${a.slice(0,g)}`:(f===d&&q[e]&&(w+=`${a[e]}\\`),w+=`
|
|
75
|
+
${b}${a.slice(e+1,g)}`)}return w}},47713:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(77880),g=c(19435),h=c(6560),i=c(55388),j=c(26932),k=c(23435);function l(a,b){var c,l,q=1,r=[],s=[],t=void 0===(a=d.extend({ignoreEmptyParagraphs:!0},a)).idPrefix?"":a.idPrefix,u=a.ignoreEmptyParagraphs,v=g.topLevelElement("p"),w=a.styleMap||[];function x(a,b,c){return o(a,function(a){return y(a,b,c)})}function y(a,b,c){if(!c)throw Error("options not set");var d=H[a.type];return d?d(a,b,c):[]}function z(a,b){var c=A({type:a});return c||(b?g.element(b,{},{fresh:!1}):g.empty)}function A(a,b){var c=B(a);return c?c.to:b}function B(a){for(var b=0;b<w.length;b++)if(w[b].from.matches(a))return w[b]}function C(a){var b;return b=a.noteType,t+(b+"-"+a.noteId)}function D(a){return E(a.noteType,a.noteId)}function E(a,b){return t+(a+"-ref-"+b)}var F=g.elements([g.element("table",{},{fresh:!0})]);function G(a,b,c){var d=a.label,e=a.comment,f=x(e.body,b,c).concat([j.nonFreshElement("p",{},[j.text(" "),j.freshElement("a",{href:"#"+E("comment",e.commentId)},[j.text("↑")])])]);return[j.freshElement("dt",{id:t+("comment-"+e.commentId)},[j.text("Comment "+d)]),j.freshElement("dd",{},f)]}var H={document:function(a,b,c){var d=x(a.children,b,c),e=x(r.map(function(b){return a.notes.resolve(b)}),b,c);return d.concat([j.freshElement("ol",{},e),j.freshElement("dl",{},o(s,function(a){return G(a,b,c)}))])},paragraph:function(a,b,c){var d,e,f;return(d=a,e=b,(f=B(d))?f.to:(d.styleId&&e.push(n("paragraph",d)),v)).wrap(function(){var d=x(a.children,b,c);return u?d:[j.forceWrite].concat(d)})},run:function(a,b,c){var d=function(){return x(a.children,b,c)},e=[];if(null!==a.highlight){var h=A({type:"highlight",color:a.highlight});h&&e.push(h)}a.isSmallCaps&&e.push(z("smallCaps")),a.isAllCaps&&e.push(z("allCaps")),a.isStrikethrough&&e.push(z("strikethrough","s")),a.isUnderline&&e.push(z("underline")),a.verticalAlignment===f.verticalAlignment.subscript&&e.push(g.element("sub",{},{fresh:!1})),a.verticalAlignment===f.verticalAlignment.superscript&&e.push(g.element("sup",{},{fresh:!1})),a.isItalic&&e.push(z("italic","em")),a.isBold&&e.push(z("bold","strong"));var i=g.empty,j=B(a);return j?i=j.to:a.styleId&&b.push(n("run",a)),e.push(i),e.forEach(function(a){d=a.wrap.bind(a,d)}),d()},text:function(a,b,c){return[j.text(a.value)]},tab:function(a,b,c){return[j.text(" ")]},hyperlink:function(a,b,c){var d={href:a.anchor?"#"+(t+a.anchor):a.href};null!=a.targetFrame&&(d.target=a.targetFrame);var e=x(a.children,b,c);return[j.nonFreshElement("a",d,e)]},checkbox:function(a){var b={type:"checkbox"};return a.checked&&(b.checked="checked"),[j.freshElement("input",b)]},bookmarkStart:function(a,b,c){return[j.freshElement("a",{id:t+a.name},[j.forceWrite])]},noteReference:function(a,b,c){r.push(a);var d=j.freshElement("a",{href:"#"+C(a),id:D(a)},[j.text("["+q+++"]")]);return[j.freshElement("sup",{},[d])]},note:function(a,b,c){var d=x(a.body,b,c),e=j.elementWithTag(g.element("p",{},{fresh:!1}),[j.text(" "),j.freshElement("a",{href:"#"+D(a)},[j.text("↑")])]),f=d.concat([e]);return j.freshElement("li",{id:C(a)},f)},commentReference:function(a,c,d){return A(a,g.ignore).wrap(function(){var c=b[a.commentId],d=s.length+1,e="["+p(c)+d+"]";return s.push({label:e,comment:c}),[j.freshElement("a",{href:"#"+t+("comment-"+a.commentId),id:E("comment",a.commentId)},[j.text(e)])]})},comment:G,image:(c=(l=a.convertImage||i.dataUri,function(a,b){return e.attempt(function(){return l(a,b)}).caught(function(a){return b.push(h.error(a)),[]})}),function(a,b,d){return[{type:"deferred",id:m++,value:function(){return c(a,b,d)}}]}),table:function(a,b,c){return A(a,F).wrap(function(){var e=a,g=b,h=c,i,k=d.findIndex(e.children,function(a){return!a.type===f.types.tableRow||!a.isHeader});if(-1===k&&(k=e.children.length),0===k)i=x(e.children,g,d.extend({},h,{isTableHeader:!1}));else{var l=x(e.children.slice(0,k),g,d.extend({},h,{isTableHeader:!0})),m=x(e.children.slice(k),g,d.extend({},h,{isTableHeader:!1}));i=[j.freshElement("thead",{},l),j.freshElement("tbody",{},m)]}return[j.forceWrite].concat(i)})},tableRow:function(a,b,c){var d=x(a.children,b,c);return[j.freshElement("tr",{},[j.forceWrite].concat(d))]},tableCell:function(a,b,c){var d=c.isTableHeader?"th":"td",e=x(a.children,b,c),f={};return 1!==a.colSpan&&(f.colspan=a.colSpan.toString()),1!==a.rowSpan&&(f.rowspan=a.rowSpan.toString()),[j.freshElement(d,f,[j.forceWrite].concat(e))]},break:function(a,b,c){var d,e;return((e=B(d=a))?e.to:"line"===d.breakType?g.topLevelElement("br"):g.empty).wrap(function(){return[]})}};return{convertToHtml:function(b){var c=[],f=y(b,c,{}),g=[];!function a(b,c){b.forEach(function(b){c(b),b.children&&a(b.children,c)})}(f,function(a){"deferred"===a.type&&g.push(a)});var i={};return e.mapSeries(g,function(a){return a.value().then(function(b){i[a.id]=b})}).then(function(){var b=k.writer({prettyPrint:a.prettyPrint,outputFormat:a.outputFormat});return j.write(b,j.simplify(function a(b){return o(b,function(b){return"deferred"===b.type?i[b.id]:b.children?[d.extend({},b,{children:a(b.children)})]:[b]})}(f))),new h.Result(b.asString(),c)})}}}b.w=function(a){return{convertToHtml:function(b){return new l(a,d.indexBy(b.type===f.types.document?b.comments:[],"commentId")).convertToHtml(b)}}};var m=1;function n(a,b){return h.warning("Unrecognised "+a+" style: '"+b.styleName+"' (Style ID: "+b.styleId+")")}function o(a,b){return d.flatten(a.map(b),!0)}var p=function(a){return a.authorInitials||""}},48514:function(a){(function(){a.exports=function(){function a(a,b,c){if(this.options=a.options,this.stringify=a.stringify,this.parent=a,null==b)throw Error("Missing attribute name. "+this.debugInfo(b));if(null==c)throw Error("Missing attribute value. "+this.debugInfo(b));this.name=this.stringify.attName(b),this.value=this.stringify.attValue(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(a){return this.options.writer.set(a).attribute(this)},a.prototype.debugInfo=function(a){return null==(a=a||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+a+"}, parent: <"+this.parent.name+">"},a}()}).call(this)},48575:(a,b,c)=>{var d,e,f,g,h,i,j=c(84906),k=c(81408),l=c(53968),m=c(19435),n=c(41845).t,o=c(6560);b._T=function(a){return function(a,b){var c=n(b),d=k.Parser().parseTokens(a,c);return d.isSuccess()?o.success(d.value()):new o.Result(null,[o.warning("Did not understand this style mapping, so ignored it: "+b+"\n"+d.errors().map(x).join("\n"))])}(y,a)};var p=k.rules.then(k.rules.tokenOfType("identifier"),t),q=k.rules.tokenOfType("integer"),r=k.rules.then(k.rules.tokenOfType("string"),t),s={n:"\n",r:"\r",t:" "};function t(a){return a.replace(/\\(.)/g,function(a,b){return s[b]||b})}var u=k.rules.sequence(k.rules.tokenOfType("open-square-bracket"),k.rules.sequence.cut(),k.rules.sequence.capture(p),k.rules.tokenOfType("equals"),k.rules.sequence.capture(r),k.rules.tokenOfType("close-square-bracket")).map(function(a,b){return{name:a,value:b,append:!1}}),v=k.rules.sequence(k.rules.tokenOfType("dot"),k.rules.sequence.cut(),k.rules.sequence.capture(p)).map(function(a){return{name:"class",value:a,append:!0}}),w=k.rules.firstOf("attribute or class",u,v);function x(a){return"Error was at character number "+a.characterNumber()+": Expected "+a.expected+" but got "+a.actual}var y=k.rules.sequence(k.rules.sequence.capture(function(){var a=k.rules.sequence,b=function(a,b){return k.rules.then(k.rules.token("identifier",a),function(){return b})},c=b("p",l.paragraph),d=b("r",l.run),e=k.rules.firstOf("p or r or table",c,d),f=k.rules.sequence(k.rules.tokenOfType("dot"),k.rules.sequence.cut(),k.rules.sequence.capture(p)).map(function(a){return{styleId:a}}),g=k.rules.firstOf("style name matcher",k.rules.then(k.rules.sequence(k.rules.tokenOfType("equals"),k.rules.sequence.cut(),k.rules.sequence.capture(r)).head(),function(a){return{styleName:l.equalTo(a)}}),k.rules.then(k.rules.sequence(k.rules.tokenOfType("startsWith"),k.rules.sequence.cut(),k.rules.sequence.capture(r)).head(),function(a){return{styleName:l.startsWith(a)}})),h=k.rules.sequence(k.rules.tokenOfType("open-square-bracket"),k.rules.sequence.cut(),k.rules.token("identifier","style-name"),k.rules.sequence.capture(g),k.rules.tokenOfType("close-square-bracket")).head(),i=k.rules.firstOf("list type",b("ordered-list",{isOrdered:!0}),b("unordered-list",{isOrdered:!1})),m=a(k.rules.tokenOfType("colon"),a.capture(i),a.cut(),k.rules.tokenOfType("open-paren"),a.capture(q),k.rules.tokenOfType("close-paren")).map(function(a,b){return{list:{isOrdered:a.isOrdered,levelIndex:b-1}}});function n(a){var b=k.rules.firstOf.apply(k.rules.firstOf,["matcher suffix"].concat(a)),c=k.rules.zeroOrMore(b);return k.rules.then(c,function(a){var b={};return a.forEach(function(a){j.extend(b,a)}),b})}var o=a(a.capture(e),a.capture(n([f,h,m]))).map(function(a,b){return a(b)}),s=a(k.rules.token("identifier","table"),a.capture(n([f,h]))).map(function(a){return l.table(a)}),t=b("b",l.bold),u=b("i",l.italic),v=b("u",l.underline),w=b("strike",l.strikethrough),x=b("all-caps",l.allCaps),y=b("small-caps",l.smallCaps),z=a(k.rules.token("identifier","highlight"),k.rules.sequence.capture(k.rules.optional(k.rules.sequence(k.rules.tokenOfType("open-square-bracket"),k.rules.sequence.cut(),k.rules.token("identifier","color"),k.rules.tokenOfType("equals"),k.rules.sequence.capture(r),k.rules.tokenOfType("close-square-bracket")).head()))).map(function(a){return l.highlight({color:a.valueOrElse(void 0)})}),A=b("comment-reference",l.commentReference),B=a(k.rules.token("identifier","br"),a.cut(),k.rules.tokenOfType("open-square-bracket"),k.rules.token("identifier","type"),k.rules.tokenOfType("equals"),a.capture(r),k.rules.tokenOfType("close-square-bracket")).map(function(a){switch(a){case"line":return l.lineBreak;case"page":return l.pageBreak;case"column":return l.columnBreak}});return k.rules.firstOf("element type",o,s,t,u,v,w,x,y,z,A,B)}()),k.rules.tokenOfType("whitespace"),k.rules.tokenOfType("arrow"),k.rules.sequence.capture(k.rules.optional(k.rules.sequence(k.rules.tokenOfType("whitespace"),k.rules.sequence.capture((d=k.rules.sequence.capture,e=k.rules.tokenOfType("whitespace"),f=k.rules.then(k.rules.optional(k.rules.sequence(k.rules.tokenOfType("colon"),k.rules.token("identifier","fresh"))),function(a){return a.map(function(){return!0}).valueOrElse(!1)}),g=k.rules.then(k.rules.optional(k.rules.sequence(k.rules.tokenOfType("colon"),k.rules.token("identifier","separator"),k.rules.tokenOfType("open-paren"),d(r),k.rules.tokenOfType("close-paren")).head()),function(a){return a.valueOrElse("")}),h=k.rules.oneOrMoreWithSeparator(p,k.rules.tokenOfType("choice")),i=k.rules.sequence(d(h),d(k.rules.zeroOrMore(w)),d(f),d(g)).map(function(a,b,c,d){var e={},f={};return b.forEach(function(a){a.append&&e[a.name]?e[a.name]+=" "+a.value:e[a.name]=a.value}),c&&(f.fresh=!0),d&&(f.separator=d),m.element(a,e,f)}),k.rules.firstOf("html path",k.rules.then(k.rules.tokenOfType("bang"),function(){return m.ignore}),k.rules.then(k.rules.zeroOrMoreWithSeparator(i,k.rules.sequence(e,k.rules.tokenOfType("gt"),e)),m.elements))))).head())),k.rules.tokenOfType("end")).map(function(a,b){return{from:a,to:b.valueOrElse(m.empty)}})},48631:(a,b,c)=>{"use strict";function d(){if(!(this instanceof d))return new d;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new d;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a}}d.prototype=c(64092),d.prototype.loadAsync=c(19173),d.support=c(49642),d.defaults=c(75875),d.version="3.10.1",d.loadAsync=function(a,b){return new d().loadAsync(a,b)},d.external=c(13420),a.exports=d},49358:(a,b,c)=>{"use strict";var d,e,f=c(20577);function g(a){var b=this;this.next=null,this.entry=null,this.finish=function(){var c=b,d=a,e=c.entry;for(c.entry=null;e;){var f=e.callback;d.pendingcb--,f(void 0),e=e.next}d.corkedRequestsFree.next=c}}a.exports=q;var h=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:f.nextTick;q.WritableState=p;var i=Object.create(c(22362));i.inherits=c(50843);var j={deprecate:c(14233)},k=c(47040),l=c(30444).Buffer,m=("u">typeof global?global:"u">typeof window?window:"u">typeof self?self:{}).Uint8Array||function(){},n=c(15434);function o(){}function p(a,b){d=d||c(71848),a=a||{};var e=b instanceof d;this.objectMode=!!a.objectMode,e&&(this.objectMode=this.objectMode||!!a.writableObjectMode);var i=a.highWaterMark,j=a.writableHighWaterMark,k=this.objectMode?16:16384;i||0===i?this.highWaterMark=i:e&&(j||0===j)?this.highWaterMark=j:this.highWaterMark=k,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===a.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){!function(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0,b)--c.pendingcb,d?(f.nextTick(e,b),f.nextTick(w,a,c),a._writableState.errorEmitted=!0,a.emit("error",b)):(e(b),a._writableState.errorEmitted=!0,a.emit("error",b),w(a,c));else{var g=u(c);g||c.corked||c.bufferProcessing||!c.bufferedRequest||t(a,c),d?h(s,a,c,g,e):s(a,c,g,e)}}(b,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}i.inherits(q,k),p.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b};try{Object.defineProperty(p.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(a){}function q(a){if(d=d||c(71848),!e.call(q,this)&&!(this instanceof d))return new q(a);this._writableState=new p(a,this),this.writable=!0,a&&("function"==typeof a.write&&(this._write=a.write),"function"==typeof a.writev&&(this._writev=a.writev),"function"==typeof a.destroy&&(this._destroy=a.destroy),"function"==typeof a.final&&(this._final=a.final)),k.call(this)}function r(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function s(a,b,c,d){var e,f;c||(e=a,0===(f=b).length&&f.needDrain&&(f.needDrain=!1,e.emit("drain"))),b.pendingcb--,d(),w(a,b)}function t(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=Array(b.bufferedRequestCount),e=b.corkedRequestsFree;e.entry=c;for(var f=0,h=!0;c;)d[f]=c,c.isBuf||(h=!1),c=c.next,f+=1;d.allBuffers=h,r(a,b,!0,b.length,d,"",e.finish),b.pendingcb++,b.lastBufferedRequest=null,e.next?(b.corkedRequestsFree=e.next,e.next=null):b.corkedRequestsFree=new g(b),b.bufferedRequestCount=0}else{for(;c;){var i=c.chunk,j=c.encoding,k=c.callback,l=b.objectMode?1:i.length;if(r(a,b,!1,l,i,j,k),c=c.next,b.bufferedRequestCount--,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequest=c,b.bufferProcessing=!1}function u(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function v(a,b){a._final(function(c){b.pendingcb--,c&&a.emit("error",c),b.prefinished=!0,a.emit("prefinish"),w(a,b)})}function w(a,b){var c=u(b);return c&&(b.prefinished||b.finalCalled||("function"==typeof a._final?(b.pendingcb++,b.finalCalled=!0,f.nextTick(v,a,b)):(b.prefinished=!0,a.emit("prefinish"))),0===b.pendingcb&&(b.finished=!0,a.emit("finish"))),c}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(e=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(a){return!!e.call(this,a)||this===q&&a&&a._writableState instanceof p}})):e=function(a){return a instanceof this},q.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},q.prototype.write=function(a,b,c){var d,e,g,h,i,j,k,n,p=this._writableState,q=!1,s=!p.objectMode&&(d=a,l.isBuffer(d)||d instanceof m);return(s&&!l.isBuffer(a)&&(e=a,a=l.from(e)),"function"==typeof b&&(c=b,b=null),s?b="buffer":b||(b=p.defaultEncoding),"function"!=typeof c&&(c=o),p.ended)?(g=c,h=Error("write after end"),this.emit("error",h),f.nextTick(g,h)):(s||(i=a,j=c,k=!0,n=!1,null===i?n=TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||p.objectMode||(n=TypeError("Invalid non-string/buffer chunk")),n&&(this.emit("error",n),f.nextTick(j,n),k=!1),k))&&(p.pendingcb++,q=function(a,b,c,d,e,f){if(!c){var g,h,i=(g=d,h=e,b.objectMode||!1===b.decodeStrings||"string"!=typeof g||(g=l.from(g,h)),g);d!==i&&(c=!0,e="buffer",d=i)}var j=b.objectMode?1:d.length;b.length+=j;var k=b.length<b.highWaterMark;if(k||(b.needDrain=!0),b.writing||b.corked){var m=b.lastBufferedRequest;b.lastBufferedRequest={chunk:d,encoding:e,isBuf:c,callback:f,next:null},m?m.next=b.lastBufferedRequest:b.bufferedRequest=b.lastBufferedRequest,b.bufferedRequestCount+=1}else r(a,b,!1,j,d,e,f);return k}(this,p,s,a,b,c)),q},q.prototype.cork=function(){var a=this._writableState;a.corked++},q.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.bufferProcessing||!a.bufferedRequest||t(this,a))},q.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),q.prototype._write=function(a,b,c){c(Error("_write() is not implemented"))},q.prototype._writev=null,q.prototype.end=function(a,b,c){var d,e,g,h=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!=a&&this.write(a,b),h.corked&&(h.corked=1,this.uncork()),h.ending||(d=this,e=h,g=c,e.ending=!0,w(d,e),g&&(e.finished?f.nextTick(g):d.once("finish",g)),e.ended=!0,d.writable=!1)},Object.defineProperty(q.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(a){this._writableState&&(this._writableState.destroyed=a)}}),q.prototype.destroy=n.destroy,q.prototype._undestroy=n.undestroy,q.prototype._destroy=function(a,b){this.end(),b(a)}},49387:(a,b)=>{function c(a,b,c,d){return{findParagraphStyleById:function(b){return a[b]},findCharacterStyleById:function(a){return b[a]},findTableStyleById:function(a){return c[a]},findNumberingStyleById:function(a){return d[a]}}}function d(a){return a.attributes["w:styleId"]}b.readStylesXml=function(a){var b={},e={},f={},g={},h={paragraph:b,character:e,table:f,numbering:g};return a.getElementsByTagName("w:style").forEach(function(a){var b,c,e,f,g,i,j="numbering"===(c=(b=a).attributes["w:type"])?(e=c,g=d(f=b),{type:e,numId:f.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"],styleId:g}):{type:c,styleId:d(b),name:(i=b.first("w:name"))?i.attributes["w:val"]:null},k=h[j.type];k&&void 0===k[j.styleId]&&(k[j.styleId]=j)}),new c(b,e,f,g)},b.Styles=c,b.defaultStyles=new c({},{}),c.EMPTY=new c({},{},{},{})},49443:(a,b,c)=>{"use strict";var d=c(73315);b.toJS=function a(b,c,e){if(Array.isArray(b))return b.map((b,c)=>a(b,String(c),e));if(b&&"function"==typeof b.toJSON){if(!e||!d.hasAnchor(b))return b.toJSON(c,e);let a={aliasCount:0,count:1,res:void 0};e.anchors.set(b,a),e.onCreate=b=>{a.res=b,delete e.onCreate};let f=b.toJSON(c,e);return e.onCreate&&e.onCreate(f),f}return"bigint"!=typeof b||e?.keep?b:Number(b)}},49472:(a,b,c)=>{var d=c(60828),e=d.find,f=d.NAMESPACE,g=d.tagNamePattern;function h(a){return""!==a}function i(a,b){return a.hasOwnProperty(b)||(a[b]=!0),a}function j(a){return a?Object.keys((a?a.split(/[\t\n\f\r ]+/).filter(h):[]).reduce(i,{})):[]}function k(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function l(a,b){var c=a.prototype;if(!(c instanceof b)){function d(){}d.prototype=b.prototype,k(c,d=new d),a.prototype=c=d}c.constructor!=a&&("function"!=typeof a&&console.error("unknown Class:"+a),c.constructor=a)}var m={},n=m.ELEMENT_NODE=1,o=m.ATTRIBUTE_NODE=2,p=m.TEXT_NODE=3,q=m.CDATA_SECTION_NODE=4,r=m.ENTITY_REFERENCE_NODE=5,s=m.ENTITY_NODE=6,t=m.PROCESSING_INSTRUCTION_NODE=7,u=m.COMMENT_NODE=8,v=m.DOCUMENT_NODE=9,w=m.DOCUMENT_TYPE_NODE=10,x=m.DOCUMENT_FRAGMENT_NODE=11,y=m.NOTATION_NODE=12,z={},A={};A[1]="Index size error",z.INDEX_SIZE_ERR=1,A[2]="DOMString size error",z.DOMSTRING_SIZE_ERR=2;var B=(A[3]="Hierarchy request error",z.HIERARCHY_REQUEST_ERR=3);A[4]="Wrong document",z.WRONG_DOCUMENT_ERR=4;var C=(A[5]="Invalid character",z.INVALID_CHARACTER_ERR=5);A[6]="No data allowed",z.NO_DATA_ALLOWED_ERR=6,A[7]="No modification allowed",z.NO_MODIFICATION_ALLOWED_ERR=7;var D=(A[8]="Not found",z.NOT_FOUND_ERR=8);A[9]="Not supported",z.NOT_SUPPORTED_ERR=9;var E=(A[10]="Attribute in use",z.INUSE_ATTRIBUTE_ERR=10),F=(A[11]="Invalid state",z.INVALID_STATE_ERR=11);function G(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,A[a]),this.message=A[a],Error.captureStackTrace&&Error.captureStackTrace(this,G);return c.code=a,b&&(this.message=this.message+": "+b),c}function H(){}function I(a,b){this._node=a,this._refresh=b,J(this)}function J(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!==b){var c=a._refresh(a._node);if(av(a,"length",c.length),!a.$$length||c.length<a.$$length)for(var d=c.length;d in a;d++)Object.prototype.hasOwnProperty.call(a,d)&&delete a[d];k(c,a),a._inc=b}}function K(){this._nameIndex=Object.create(null)}function L(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function M(a,b){a._nameIndex[b.nodeName]===b&&delete a._nameIndex[b.nodeName]}function N(a,b,c,d){if(d?(b[L(b,d)]=c,M(b,d)):b[b.length++]=c,b._nameIndex[c.nodeName]=c,a){c.ownerElement=a;var e,g,h,i=a.ownerDocument;i&&(d&&V(i,a,d),e=i,g=a,h=c,e&&e._inc++,h.namespaceURI===f.XMLNS&&(g._nsMap[h.prefix?h.localName:""]=h.value))}}function O(a,b,c){var d=L(b,c);if(d>=0){for(var e=b.length-1;d<e;)b[d]=b[++d];if(b.length=e,M(b,c),a){var f=a.ownerDocument;f&&(V(f,a,c),c.ownerElement=null)}}else throw new G(D,Error(a.tagName+"@"+c))}function P(){}function Q(){}function R(a){return"<"==a&&"<"||">"==a&&">"||"&"==a&&"&"||'"'==a&&"""||"&#"+a.charCodeAt()+";"}function S(a,b){return T(a,null,{enter:function(a){return!b(a)||T.STOP}})===T.STOP}function T(a,b,c){for(var d=[{node:a,context:b,phase:T.ENTER}];d.length>0;){var e=d.pop();if(e.phase===T.ENTER){var f=c.enter(e.node,e.context);if(f===T.STOP)return T.STOP;if(d.push({node:e.node,context:f,phase:T.EXIT}),null==f)continue;for(var g=e.node.lastChild;g;)d.push({node:g,context:f,phase:T.ENTER}),g=g.previousSibling}else c.exit&&c.exit(e.node,e.context)}}function U(){this.ownerDocument=this}function V(a,b,c,d){a&&a._inc++,c.namespaceURI===f.XMLNS&&delete b._nsMap[c.prefix?c.localName:""]}function W(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f,delete d[d.length]}}}function X(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,b.parentNode=null,b.previousSibling=null,b.nextSibling=null,W(a.ownerDocument,a),b}function Y(a){return a&&a.nodeType===Q.DOCUMENT_TYPE_NODE}function Z(a){return a&&a.nodeType===Q.ELEMENT_NODE}function $(a){return a&&a.nodeType===Q.TEXT_NODE}function _(a,b){var c=a.childNodes||[];if(e(c,Z)||Y(b))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function aa(a,b){var c=a.childNodes||[];if(e(c,function(a){return Z(a)&&a!==b}))return!1;var d=e(c,Y);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function ab(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!aa(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!aa(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,function(a){return Y(a)&&a!==c}))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element")}}function ac(a,b,c,d){if(!(a&&(a.nodeType===Q.DOCUMENT_NODE||a.nodeType===Q.DOCUMENT_FRAGMENT_NODE||a.nodeType===Q.ELEMENT_NODE)))throw new G(B,"Unexpected parent node type "+a.nodeType);if(c&&c.parentNode!==a)throw new G(D,"child not in parent");if(!(b&&(Z(b)||$(b)||Y(b)||b.nodeType===Q.DOCUMENT_FRAGMENT_NODE||b.nodeType===Q.COMMENT_NODE||b.nodeType===Q.PROCESSING_INSTRUCTION_NODE))||Y(b)&&a.nodeType!==Q.DOCUMENT_NODE)throw new G(B,"Unexpected node type "+b.nodeType+" for parent node type "+a.nodeType);a.nodeType===Q.DOCUMENT_NODE&&(d||function(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===Q.DOCUMENT_FRAGMENT_NODE){var g=f.filter(Z);if(g.length>1||e(f,$))throw new G(B,"More than one element or text in fragment");if(1===g.length&&!_(a,c))throw new G(B,"Element in fragment can not be inserted before doctype")}if(Z(b)&&!_(a,c))throw new G(B,"Only one element can be added and only after doctype");if(Y(b)){if(e(d,Y))throw new G(B,"Only one doctype is allowed");var h=e(d,Z);if(c&&d.indexOf(h)<d.indexOf(c))throw new G(B,"Doctype can only be inserted before an element");if(!c&&h)throw new G(B,"Doctype can not be appended since element is present")}})(a,b,c);var f=b.parentNode;if(f&&f.removeChild(b),b.nodeType===x){var g=b.firstChild;if(null==g)return b;var h=b.lastChild}else g=h=b;var i=c?c.previousSibling:a.lastChild;g.previousSibling=i,h.nextSibling=c,i?i.nextSibling=g:a.firstChild=g,null==c?a.lastChild=h:c.previousSibling=h;do g.parentNode=a,ad(g,a.ownerDocument||a);while(g!==h&&(g=g.nextSibling));return W(a.ownerDocument||a,a),b.nodeType==x&&(b.firstChild=b.lastChild=null),b}function ad(a,b){if(a.ownerDocument!==b){if(a.ownerDocument=b,a.nodeType===n&&a.attributes)for(var c=0;c<a.attributes.length;c++){var d=a.attributes.item(c);d&&(d.ownerDocument=b)}for(var e=a.firstChild;e;)ad(e,b),e=e.nextSibling}}function ae(){this._nsMap={}}function af(){}function ag(){}function ah(){}function ai(){}function aj(){}function ak(){}function al(){}function am(){}function an(){}function ao(){}function ap(){}function aq(){}function ar(a,b,c){var d=!!c&&!!c.requireWellFormed,e=[],f=9==this.nodeType&&this.documentElement||this,g=f.prefix,h=f.namespaceURI;if(h&&null==g){var g=f.lookupPrefix(h);if(null==g)var i=[{namespace:h,prefix:null}]}return au(this,e,a,b,i,d),e.join("")}function as(a,b,c){var d=a.prefix||"",e=a.namespaceURI;if(!e||"xml"===d&&e===f.XML||e===f.XMLNS)return!1;for(var g=c.length;g--;){var h=c[g];if(h.prefix===d)return h.namespace!==e}return!0}function at(a,b,c,d){if(d&&!g.test(b))throw new G(F,'The attribute name "'+b+'" is not a valid XML QName');a.push(" ",b,'="',c.replace(/[<>&"\t\n\r]/g,R),'"')}function au(a,b,c,d,e,h){e||(e=[]),T(a,{ns:e,isHTML:c},{enter:function(a,c){var e=c.ns,i=c.isHTML;if(d){if(!(a=d(a)))return null;if("string"==typeof a)return b.push(a),null}switch(a.nodeType){case n:var j,k=a.attributes,l=k.length,m=a.tagName;i=f.isHTML(a.namespaceURI)||i;var s=m;if(!i&&!a.prefix&&a.namespaceURI){for(var y=0;y<k.length;y++)if("xmlns"===k.item(y).name){j=k.item(y).value;break}if(!j)for(var z=e.length-1;z>=0;z--){var A=e[z];if(""===A.prefix&&A.namespace===a.namespaceURI){j=A.namespace;break}}if(j!==a.namespaceURI)for(var z=e.length-1;z>=0;z--){var A=e[z];if(A.namespace===a.namespaceURI){A.prefix&&(s=A.prefix+":"+m);break}}}if(h&&!g.test(s))throw new G(F,'The element name "'+s+'" is not a valid XML QName');b.push("<",s);for(var B=e.slice(),C=0;C<l;C++){var D=k.item(C);"xmlns"==D.prefix?B.push({prefix:D.localName,namespace:D.value}):"xmlns"==D.nodeName&&B.push({prefix:"",namespace:D.value})}for(var C=0;C<l;C++){var D=k.item(C);if(as(D,i,B)){var E=D.prefix||"",H=D.namespaceURI;at(b,E?"xmlns:"+E:"xmlns",H,h),B.push({prefix:E,namespace:H})}var I=d?d(D):D;I&&("string"==typeof I?b.push(I):at(b,I.name,I.value,h))}if(m===s&&as(a,i,B)){var J=a.prefix||"",H=a.namespaceURI;at(b,J?"xmlns:"+J:"xmlns",H,h),B.push({prefix:J,namespace:H})}var K=a.firstChild;if(!K&&(!i||/^(?:meta|link|img|br|hr|input)$/i.test(m)))return b.push("/>"),null;if(b.push(">"),i&&/^script$/i.test(m)){for(;K;)K.data?b.push(K.data):au(K,b,i,d,B.slice(),h),K=K.nextSibling;return b.push("</",m,">"),null}return{ns:B,isHTML:i,tag:s};case v:case x:return{ns:e.slice(),isHTML:i,tag:null};case o:return at(b,a.name,a.value,h),null;case p:return b.push(a.data.replace(/[<&>]/g,R)),null;case q:if(h&&-1!==a.data.indexOf("]]>"))throw new G(F,'The CDATASection data contains "]]>"');return b.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case u:if(h&&-1!==a.data.indexOf("--\x3e"))throw new G(F,'The comment node data contains "--\x3e"');return b.push("\x3c!--",a.data,"--\x3e"),null;case w:if(h){if(!g.test(a.name))throw new G(F,'The doctype name "'+a.name+'" is not a valid XML Name');if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new G(F,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new G(F,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&-1!==a.internalSubset.indexOf("]>"))throw new G(F,'DocumentType internalSubset contains "]>"')}var L=a.publicId,M=a.systemId;if(b.push("<!DOCTYPE ",a.name),L)b.push(" PUBLIC ",L),M&&"."!=M&&b.push(" ",M),b.push(">");else if(M&&"."!=M)b.push(" SYSTEM ",M,">");else{var N=a.internalSubset;N&&b.push(" [",N,"]"),b.push(">")}return null;case t:if(h){if(!g.test(a.target)||-1!==a.target.indexOf(":")||"xml"===a.target.toLowerCase())throw new G(F,'The processing instruction target "'+a.target+'" is not a valid XML NCName or is reserved');if(-1!==a.data.indexOf("?>"))throw new G(F,'The ProcessingInstruction data contains "?>"')}return b.push("<?",a.target," ",a.data,"?>"),null;case r:if(h&&!g.test(a.nodeName))throw new G(F,'The entity reference name "'+a.nodeName+'" is not a valid XML Name');return b.push("&",a.nodeName,";"),null;default:return b.push("??",a.nodeName),null}},exit:function(a,c){c&&c.tag&&b.push("</",c.tag,">")}})}function av(a,b,c){a[b]=c}A[12]="Syntax error",z.SYNTAX_ERR=12,A[13]="Invalid modification",z.INVALID_MODIFICATION_ERR=13,A[14]="Invalid namespace",z.NAMESPACE_ERR=14,A[15]="Invalid access",z.INVALID_ACCESS_ERR=15,G.prototype=Error.prototype,k(z,G),H.prototype={length:0,item:function(a){return a>=0&&a<this.length?this[a]:null},toString:function(a,b,c){for(var d=!!c&&!!c.requireWellFormed,e=[],f=0;f<this.length;f++)au(this[f],e,a,b,null,d);return e.join("")},filter:function(a){return Array.prototype.filter.call(this,a)},indexOf:function(a){return Array.prototype.indexOf.call(this,a)}},I.prototype.item=function(a){return J(this),this[a]||null},l(I,H),K.prototype={length:0,item:H.prototype.item,getNamedItem:function(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new G(E);var c=this._nameIndex[a.nodeName];return N(this._ownerElement,this,a,c),c},setNamedItemNS:function(a){var b,c=a.ownerElement;if(c&&c!=this._ownerElement)throw new G(E);return b=this.getNamedItemNS(a.namespaceURI,a.localName),N(this._ownerElement,this,a,b),b},removeNamedItem:function(a){var b=this.getNamedItem(a);return O(this._ownerElement,this,b),b},removeNamedItemNS:function(a,b){var c=this.getNamedItemNS(a,b);return O(this._ownerElement,this,c),c},getNamedItemNS:function(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},P.prototype={hasFeature:function(a,b){return!0},createDocument:function(a,b,c){var d=new U;if(d.implementation=this,d.childNodes=new H,d.doctype=c||null,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function(a,b,c){var d=new ak;return d.name=a,d.nodeName=a,d.publicId=b||"",d.systemId=c||"",d}},Q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(a,b){return ac(this,a,b)},replaceChild:function(a,b){ac(this,a,b,ab),b&&this.removeChild(b)},removeChild:function(a){return X(this,a)},appendChild:function(a){return this.insertBefore(a,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(a){return function a(b,c,d){var e;return T(c,null,{enter:function(c,f){var g=new c.constructor;for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){var i=c[h];"object"!=typeof i&&i!=g[h]&&(g[h]=i)}c.childNodes&&(g.childNodes=new H),g.ownerDocument=b;var j=d;switch(g.nodeType){case n:var k=c.attributes,l=g.attributes=new K,m=k.length;l._ownerElement=g;for(var p=0;p<m;p++)g.setAttributeNode(a(b,k.item(p),!0));break;case o:j=!0}return null!==f?f.appendChild(g):e=g,j?g:null}}),e}(this.ownerDocument||this,this,a)},normalize:function(){T(this,null,{enter:function(a){for(var b=a.firstChild;b;){var c=b.nextSibling;if(null!==c&&c.nodeType===p&&b.nodeType===p){for(var d=[],e=c;null!==e&&e.nodeType===p;)d.push(e.data),e=e.nextSibling;for(var f=b.nextSibling;f!==e;){var g=f.nextSibling;f.parentNode=null,f.previousSibling=null,f.nextSibling=null,f=g}b.nextSibling=e,null!==e?e.previousSibling=b:a.lastChild=b,b.appendData(d.join("")),W(a.ownerDocument,a),b=e}else b=c}return!0}})},isSupported:function(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(a){for(var b=this;b;){var c=b._nsMap;if(c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)&&c[d]===a)return d}b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function(a){for(var b=this;b;){var c=b._nsMap;if(c&&Object.prototype.hasOwnProperty.call(c,a))return c[a];b=b.nodeType==o?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function(a){return null==this.lookupPrefix(a)}},k(m,Q),k(m,Q.prototype),T.STOP=Symbol("walkDOM.STOP"),T.ENTER=0,T.EXIT=1,U.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(a,b){if(a.nodeType==x){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return ac(this,a,b),ad(a,this),null===this.documentElement&&a.nodeType===n&&(this.documentElement=a),a},removeChild:function(a){return this.documentElement==a&&(this.documentElement=null),X(this,a)},replaceChild:function(a,b){ac(this,a,b,ab),ad(a,this),b&&this.removeChild(b),Z(a)&&(this.documentElement=a)},importNode:function(a,b){var c,d,e,f;return c=this,d=a,e=b,T(d,null,{enter:function(a,b){var d=a.cloneNode(!1);return d.ownerDocument=c,d.parentNode=null,null===b?f=d:b.appendChild(d),a.nodeType===o||e?d:null}}),f},getElementById:function(a){var b=null;return S(this.documentElement,function(c){if(c.nodeType==n&&c.getAttribute("id")==a)return b=c,!0}),b},getElementsByClassName:function(a){var b=j(a);return new I(this,function(c){var d=[];return b.length>0&&S(c.documentElement,function(e){if(e!==c&&e.nodeType===n){var f=e.getAttribute("class");if(f){var g=a===f;if(!g){var h=j(f);g=b.every(function(a){return h&&-1!==h.indexOf(a)})}g&&d.push(e)}}}),d})},createElement:function(a){var b=new ae;return b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.localName=a,b.childNodes=new H,(b.attributes=new K)._ownerElement=b,b},createDocumentFragment:function(){var a=new ao;return a.ownerDocument=this,a.childNodes=new H,a},createTextNode:function(a){var b=new ah;return b.ownerDocument=this,b.appendData(a),b},createComment:function(a){var b=new ai;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function(a){if(-1!==a.indexOf("]]>"))throw new G(C,'data contains "]]>"');var b=new aj;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function(a,b){var c=new ap;return c.ownerDocument=this,c.tagName=c.nodeName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function(a){var b=new af;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function(a){if(!g.test(a))throw new G(C,'not a valid xml name "'+a+'"');var b=new an;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function(a,b){var c=new ae,d=b.split(":"),e=c.attributes=new K;return c.childNodes=new H,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function(a,b){var c=new af,d=b.split(":");return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},l(U,Q),ae.prototype={nodeType:n,hasAttribute:function(a){return null!=this.getAttributeNode(a)},getAttribute:function(a){var b=this.getAttributeNode(a);return b&&b.value||""},getAttributeNode:function(a){return this.attributes.getNamedItem(a)},setAttribute:function(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function(a){return a.nodeType===x?this.insertBefore(a,null):(a.parentNode&&a.parentNode.removeChild(a),a.parentNode=this,a.previousSibling=this.lastChild,a.nextSibling=null,a.previousSibling?a.previousSibling.nextSibling=a:this.firstChild=a,this.lastChild=a,W(this.ownerDocument,this,a),ad(a,this.ownerDocument||this),a)},setAttributeNode:function(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function(a,b){return null!=this.getAttributeNodeNS(a,b)},getAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||""},setAttributeNS:function(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function(a){return new I(this,function(b){var c=[];return S(b,function(d){d!==b&&d.nodeType==n&&("*"===a||d.tagName==a)&&c.push(d)}),c})},getElementsByTagNameNS:function(a,b){return new I(this,function(c){var d=[];return S(c,function(e){e!==c&&e.nodeType===n&&("*"===a||e.namespaceURI===a)&&("*"===b||e.localName==b)&&d.push(e)}),d})}},U.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,l(ae,Q),af.prototype.nodeType=o,l(af,Q),ag.prototype={data:"",substringData:function(a,b){return this.data.substring(a,a+b)},appendData:function(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function(a,b){this.replaceData(a,0,b)},appendChild:function(a){throw Error(A[B])},deleteData:function(a,b){this.replaceData(a,b,"")},replaceData:function(a,b,c){c=this.data.substring(0,a)+c+this.data.substring(a+b),this.nodeValue=this.data=c,this.length=c.length}},l(ag,Q),ah.prototype={nodeName:"#text",nodeType:p,splitText:function(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},l(ah,ag),ai.prototype={nodeName:"#comment",nodeType:u},l(ai,ag),aj.prototype={nodeName:"#cdata-section",nodeType:q},l(aj,ag),ak.prototype.nodeType=w,l(ak,Q),al.prototype.nodeType=y,l(al,Q),am.prototype.nodeType=s,l(am,Q),an.prototype.nodeType=r,l(an,Q),ao.prototype.nodeName="#document-fragment",ao.prototype.nodeType=x,l(ao,Q),ap.prototype.nodeType=t,l(ap,Q),aq.prototype.serializeToString=function(a,b,c,d){return ar.call(a,b,c,d)},Q.prototype.toString=ar;try{Object.defineProperty&&(Object.defineProperty(I.prototype,"length",{get:function(){return J(this),this.$$length}}),Object.defineProperty(Q.prototype,"textContent",{get:function(){if(this.nodeType===n||this.nodeType===x){var a=[];return T(this,null,{enter:function(b){return b.nodeType===n||b.nodeType===x||(b.nodeType===t||b.nodeType===u?null:void a.push(b.nodeValue))}}),a.join("")}return this.nodeValue},set:function(a){switch(this.nodeType){case n:case x:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),av=function(a,b,c){a["$$"+b]=c})}catch(a){}b.DocumentType=ak,b.DOMException=G,b.DOMImplementation=P,b.Element=ae,b.Node=Q,b.NodeList=H,b.walkDOM=T,b.XMLSerializer=aq},49505:(a,b)=>{"use strict";b.LOCAL_FILE_HEADER="PK\x03\x04",b.CENTRAL_FILE_HEADER="PK\x01\x02",b.CENTRAL_DIRECTORY_END="PK\x05\x06",b.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",b.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",b.DATA_DESCRIPTOR="PK\x07\b"},49620:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{B7:()=>O,G0:()=>z,_r:()=>Q});var e=c(21820),f=c(29047),g=c(19628),h=c(88250),i=c(99689),j=c(96515),k=c(33335),l=c(15601),m=c(80803),n=c(52676),o=c(2904),p=a([l,o]);[l,o]=p.then?(await p)():p;let R=["catalog.get","catalog.search","roles.get","roles.set","registry.get","registry.set","providers.enable","providers.get","providers.update","providers.validate","providers.test","providers.connectivity","fallback.get","fallback.set","auth.providers","auth.login.start","auth.login.poll","auth.login.confirm","auth.login.cancel","auth.apikey.get","auth.apikey.set","auth.apikey.remove","auth.logout"];class S extends Error{constructor(a,b,c,d){super(b),this.name="ModelsRequestError",this.code=a,void 0!==c&&(this.details=c),void 0!==d&&(this.status=d)}}let T=["--no-session","--no-extensions","--no-skills","--no-lsp"],U="ompgui cannot manage stored API keys. Run `omp` in a terminal and use /login (or /logout), set the provider's environment variable (e.g. OPENAI_API_KEY), or configure an apiKey on a custom provider in ~/.omp/agent/models.yml.";function q(a,b="provider"){let c=("string"==typeof a?a:void 0)?.trim();if(!c||c.length>128||/\s/.test(c))throw new S("invalid_provider",`${b} must be a non-empty id without whitespace`);return c}function r(a){let b=("string"==typeof a?a:void 0)?.trim();if(!b||b.length>320)throw new S("login_token_required","token is required");return b}function s(a,b){if(void 0===a)return;if(!Array.isArray(a))throw new S("invalid_args",`${b} must contain non-empty strings`);let c=[];for(let d of a){if("string"!=typeof d||!d.trim())throw new S("invalid_args",`${b} must contain non-empty strings`);c.push(d)}return c}function t(a){try{return Buffer.byteLength(JSON.stringify(a),"utf8")}catch{throw new S("invalid_args","config must be JSON-serializable")}}function u(a){return a instanceof k.Cc?new S(k.YM,"Invalid models configuration",{issues:a.issues}):new S(k.YM,"Invalid models configuration")}let V=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function v(a){return a.reasoning?["off",...a.thinking?.efforts??[]]:["off"]}function w(a){return"object"==typeof a&&null!==a&&"id"in a&&"string"==typeof a.id&&"provider"in a&&"string"==typeof a.provider}function x(a){return"object"==typeof a&&null!==a&&"id"in a&&"string"==typeof a.id&&"name"in a&&"string"==typeof a.name&&"authenticated"in a&&"boolean"==typeof a.authenticated}function y(a){let b="name"in a&&"string"==typeof a.name&&a.name.trim().length>0?a.name:a.id,c={id:a.id,provider:a.provider,name:b};if("reasoning"in a&&"boolean"==typeof a.reasoning&&(c.reasoning=a.reasoning),"thinking"in a){let b=a.thinking;if("object"==typeof b&&null!==b&&!Array.isArray(b)){let a="efforts"in b&&Array.isArray(b.efforts)&&b.efforts.every(a=>"string"==typeof a)?b.efforts:void 0;void 0!==a&&(c.thinking={efforts:a})}}return"contextWindow"in a&&"number"==typeof a.contextWindow&&(c.contextWindow=a.contextWindow),"kind"in a&&"string"==typeof a.kind&&(c.kind=a.kind),"webSearch"in a&&"string"==typeof a.webSearch&&(c.webSearch=a.webSearch),c}async function z(a={}){let b,c,d=a.includeKindModels?(0,l.TF)():void 0;try{let a=await (0,n.runUtilityCommand)({type:"get_available_models"},12e4);b=Array.isArray(a.models)?a.models.filter(w).map(y):[]}catch{return{models:[],defaultModel:null,connectedProviders:[],unavailable:!0}}let e=[];try{let a=await (0,n.runUtilityCommand)({type:"get_login_providers"},3e4);e=Array.isArray(a.providers)?a.providers.filter(x).map(a=>({id:a.id,name:a.name,available:!("available"in a)||"boolean"!=typeof a.available||a.available,authenticated:a.authenticated})):[]}catch{e=[]}try{c=(0,l.zn)()}catch{c=new Set}let f={};for(let a of b)f[`${a.provider}:${a.id}`]=v(a);let g=b.map(a=>({id:a.id,name:a.name,provider:a.provider,thinkingLevels:v(a),supportsFastMode:"anthropic"===a.provider||"openai"===a.provider||"google"===a.provider,...void 0!==a.kind?{kind:a.kind}:{},...void 0!==a.webSearch?{webSearch:a.webSearch}:{},..."number"==typeof a.contextWindow&&Number.isFinite(a.contextWindow)&&a.contextWindow>0?{contextWindow:a.contextWindow}:{}})).sort((a,b)=>V.compare(a.name||a.id,b.name||b.id)||V.compare(a.provider,b.provider)||V.compare(a.id,b.id)),h=e.filter(a=>a.authenticated).map(a=>({id:a.id,name:a.name,disabled:c.has(a.id)})),i=null;try{let a=await (0,n.runUtilityCommand)({type:"get_state"},3e4),c=a.model?.provider,d=a.model?.id;c&&d&&b.some(a=>a.provider===c&&a.id===d)&&(i={provider:c,modelId:d})}catch{}let j=d?await d:void 0;return{models:g,...j?{kindModels:j}:{},defaultModel:i,thinkingLevels:f,connectedProviders:h}}function A(a){let b={};return void 0!==a.enabledModels&&(b.enabledModels=a.enabledModels),void 0!==a.disabledProviders&&(b.disabledProviders=a.disabledProviders),void 0!==a.modelProviderOrder&&(b.modelProviderOrder=a.modelProviderOrder),void 0!==a.registryHasScopedEntries&&(b.registryHasScopedEntries=a.registryHasScopedEntries),b}async function B(a){let b,c={},d=s(a.enabledModels,"enabledModels"),e=s(a.disabledProviders,"disabledProviders"),f=s(a.modelProviderOrder,"modelProviderOrder");if(void 0!==d&&(c.enabledModels=d),void 0!==e&&(c.disabledProviders=e),void 0!==f&&(c.modelProviderOrder=f),void 0===c.enabledModels&&void 0===c.disabledProviders&&void 0===c.modelProviderOrder)throw new S("invalid_args","registry.set requires at least one of enabledModels, disabledProviders, modelProviderOrder");if(void 0!==d&&d.length>0)try{let a=await (0,n.runUtilityCommand)({type:"get_available_models"},12e4);Array.isArray(a.models)&&(0,j.c)(d,a.models.filter(w))}catch(a){if(a instanceof Error&&a.message.startsWith("Ambiguous enabledModels entry"))throw a}try{b=await (0,o.WD)(c)}catch(a){throw new S("registry_write_failed",a instanceof Error?a.message:String(a))}return(0,h.kn)(),(0,n.j)(),{settings:A(b),path:(0,o.rk)().path}}function C(a){let b=a.config;if("object"!=typeof b||null===b||Array.isArray(b))throw new S(k.YM,"Invalid models configuration",{issues:[{path:"",message:"must be an object"}]});return b}async function D(a){try{return await (0,f.TN)(a)}catch(a){if(!(a instanceof f.t0))throw a;if("models_config_invalid"===a.code)throw new S(k.YM,"Invalid models configuration",a.issues?{issues:a.issues}:void 0);throw new S("invalid_args","model_id_required"===a.code?"model.id is required":a.message)}}function E(a){let b=a.retry??{},c={chains:b.fallbackChains??{}};return void 0!==b.enabled&&(c.enabled=b.enabled),void 0!==b.maxRetries&&(c.maxRetries=b.maxRetries),void 0!==b.modelFallback&&(c.modelFallback=b.modelFallback),void 0!==b.fallbackRevertPolicy&&(c.revertPolicy=b.fallbackRevertPolicy),c}async function F(a){let b={},c=!1;if(void 0!==a.chains){if("object"!=typeof a.chains||null===a.chains||Array.isArray(a.chains))throw new S("invalid_args","chains must be an object");let d={};for(let[b,c]of Object.entries(a.chains)){if(!b.trim()||!Array.isArray(c)||c.some(a=>"string"!=typeof a||!a.trim()))throw new S("invalid_args","fallback chains require non-empty role and model selectors");let a=[];for(let b of c)"string"==typeof b&&a.push(b);d[b]=a}b.fallbackChains=d,c=!0}if(void 0!==a.enabled){if("boolean"!=typeof a.enabled)throw new S("invalid_args","enabled must be a boolean");b.enabled=a.enabled,c=!0}if(void 0!==a.maxRetries){if("number"!=typeof a.maxRetries||!Number.isInteger(a.maxRetries)||a.maxRetries<0||a.maxRetries>20)throw new S("invalid_args","maxRetries must be an integer between 0 and 20");b.maxRetries=a.maxRetries,c=!0}if(void 0!==a.modelFallback){if("boolean"!=typeof a.modelFallback)throw new S("invalid_args","modelFallback must be a boolean");b.modelFallback=a.modelFallback,c=!0}if(void 0!==a.revertPolicy){if("cooldown-expiry"!==a.revertPolicy&&"never"!==a.revertPolicy)throw new S("invalid_args","revertPolicy must be cooldown-expiry or never");b.fallbackRevertPolicy=a.revertPolicy,c=!0}if(!c)throw new S("invalid_args","fallback.set requires at least one of chains, enabled, maxRetries, modelFallback, revertPolicy");try{let a=await (0,o.$l)(()=>({retry:b}));return{retry:E(a)}}catch(a){if(a instanceof S)throw a;throw new S("fallback_write_failed",a instanceof Error?a.message:String(a))}}async function G(){try{let a=await (0,n.runUtilityCommand)({type:"get_login_providers"},3e4);return{providers:(Array.isArray(a.providers)?a.providers.filter(x).filter(a=>!("available"in a)||!1!==a.available):[]).map(a=>({id:a.id,name:a.name,loggedIn:a.authenticated}))}}catch(a){throw new S("auth_failed",a instanceof Error?a.message:String(a))}}async function H(a){let b=q(a);try{let{models:a}=await (0,n.runUtilityCommand)({type:"get_available_models"},12e4),{providers:c}=await (0,n.runUtilityCommand)({type:"get_login_providers"},3e4),d=c.find(a=>a.id===b),e=a.filter(a=>a.provider===b).length;return{provider:b,displayName:d?.name??b,configured:e>0||d?.authenticated===!0,models:e}}catch(a){throw new S("auth_failed",a instanceof Error?a.message:String(a))}}let W=new Map;function I(){let a=Date.now();for(let[b,c]of W)if(a-c.createdAt>9e5){try{c.proc?.dispose()}catch{}W.delete(b)}}async function J(a){let b=a.proc;if(!b){a.phase="error",a.error="Login process is unavailable";return}try{let c=await b.waitReady(6e4);await b.negotiateProtocol(c),await b.sendCommand({type:"login",providerId:a.provider},9e5),await (0,l.LQ)(a.provider),(0,h.kn)(),(0,n.j)(),a.phase="success"}catch(b){a.phase="error",a.error=b instanceof Error?b.message:String(b)}finally{try{await b.dispose()}catch{}a.proc=null,a.pendingInputId=null}}function K(a){let b=a?.deviceId;if("string"!=typeof b||!b)throw new S("unauthorized","device is required");return b}function L(a,b,c){I();let d=W.get(a);if(!d)throw new S("login_no_pending","No pending login for token");if(d.provider!==b)throw new S("login_token_mismatch","Token does not match provider");if(d.deviceId!==c)throw new S("login_device_mismatch","Login belongs to another device");return d}async function M(a,b){let c=q(a.provider),d=r(a.token),e=L(d,c,K(b));W.delete(d);try{await e.proc?.dispose()}catch{}return{cancelled:!0,provider:c}}async function N(a,b){W.delete(b);try{await a.proc?.dispose()}catch{}}async function O(a){let b=0;for(let[c,d]of[...W])d.deviceId===a&&(await N(d,c),b+=1);return b}async function P(a){if("object"!=typeof a.roles||null===a.roles||Array.isArray(a.roles))throw new S("invalid_args","roles must be an object");let b={};for(let[c,d]of Object.entries(a.roles)){if("string"!=typeof d)continue;let a=c.trim(),e=d.trim();0===a.length||a.length>128||0===e.length||e.length>512||(b[a]=e)}try{await (0,l._B)(b)}catch(a){throw new S("roles_write_failed",a instanceof Error?a.message:String(a))}return(0,h.kn)(),{roles:b}}async function Q(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new S("invalid_args","args must be an object");if("object"!=typeof c||null===c)throw new S("unauthorized","device is required");switch(function(a){for(let b of R)if(b===a)return b;throw new S("unknown_action",`Unknown models action "${a}"`)}(a)){case"catalog.get":return z({includeKindModels:!0});case"catalog.search":try{return{...await (0,i.s)({query:b.query,provider:b.provider,baseUrl:b.baseUrl,limit:b.limit})}}catch(a){if(a instanceof i.h)throw new S(a.code,a.message,void 0,a.status);throw new S("catalog_unavailable","The public model catalog is unavailable. Try again later.",void 0,502)}case"roles.get":try{let a=(0,l.$I)();return{path:a.path,roles:a.roles}}catch(a){throw new S("roles_read_failed",a instanceof Error?a.message:String(a))}case"roles.set":return P(b);case"registry.get":try{let a=(0,o.rk)();return{path:a.path,settings:A(a.settings)}}catch(a){throw new S("registry_read_failed",a instanceof Error?a.message:String(a))}case"registry.set":return B(b);case"providers.enable":{let a=q(b.provider);try{await (0,l.LQ)(a)}catch(a){throw new S("provider_enable_failed",a instanceof Error?a.message:String(a))}return(0,h.kn)(),(0,n.j)(),{provider:a}}case"providers.get":let d;return(d=(0,k.hH)()).parseError?{providers:{},parseError:"models.yml contains invalid YAML; fix it by hand and reload",path:d.path,exists:d.exists,code:"models_config_unparseable"}:{...(0,k.kx)(d.config),path:d.path,exists:d.exists};case"providers.update":return function(a){let b,c=C(a);if(t(c)>524288)throw new S("config_too_large","models configuration exceeds 512KiB");let d=void 0===a.mode||"partial"===a.mode?"partial":"full"===a.mode?"full":null;if(null===d)throw new S("invalid_args","mode must be full or partial");let e=void 0!==a.overwrite&&!0===a.overwrite;if(void 0!==a.overwrite&&"boolean"!=typeof a.overwrite)throw new S("invalid_args","overwrite must be a boolean");let f=(0,k.hH)();try{b=(0,k.F3)(f.config,c,d),(0,k.Jz)(b)}catch(a){throw u(a)}try{(0,k.IX)(b,{overwriteUnparseable:e})}catch(a){if(a instanceof k.Iy)throw new S("models_config_unparseable","models.yml is not valid YAML — fix it by hand; ompgui will not overwrite it");throw new S("models_config_write_failed",a instanceof Error?a.message:String(a))}return(0,h.kn)(),(0,n.j)(),{success:!0,path:f.path}}(b);case"providers.validate":let j=C(b);if(t(j)>524288)throw new S("config_too_large","models configuration exceeds 512KiB");try{(0,k.Jz)(j)}catch(a){throw u(a)}return{ok:!0};case"providers.test":return D(b);case"providers.connectivity":if(!0!==b.confirm)throw new S("connectivity_confirmation_required","Explicit confirmation is required for a live connectivity check");if(t(b)>524288)throw new S("config_too_large","models configuration exceeds 512KiB");if("function"!=typeof c.assertActive)throw new S("unauthorized","Active device authorization is required");try{c.assertActive();let a=await (0,g.E)(b,{assertActive:()=>{if("function"!=typeof c.assertActive)throw new f.t0("connectivity_cancelled","Connectivity request authorization expired");c.assertActive()},signal:c.signal});return c.assertActive(),{ok:a.ok,latencyMs:a.latencyMs,responseText:a.responseText,...a.usage?{usage:a.usage}:{}}}catch(a){if(a instanceof f.t0)throw new S(a.code,"models_config_invalid"===a.code?"Invalid models configuration":a.message,void 0===a.latencyMs?void 0:{latencyMs:a.latencyMs});throw new S("connectivity_failed","Model connectivity check failed")}case"fallback.get":try{let a=(0,o.rk)();return E(a.settings)}catch(a){throw new S("fallback_read_failed",a instanceof Error?a.message:String(a))}case"fallback.set":return F(b);case"auth.providers":return G();case"auth.login.start":return function(a,b){let c=q(a),d=K(b);if(I(),W.size>=32)throw new S("auth_busy","Too many pending logins; cancel one and retry");let f=`${c}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,g={provider:c,deviceId:d,proc:null,createdAt:Date.now(),phase:"waiting",pendingInputId:null,bufferedValue:null};try{let a=new m.X({cwd:(0,e.homedir)(),extraArgs:T,onFrame:a=>{if("extension_ui_request"!==a.type)return;let b=a.method;if("open_url"===b)g.phase="auth",g.url=String(a.url??""),g.instructions="string"==typeof a.instructions?a.instructions:null;else if("input"===b){let b=String(a.id);if(null!==g.bufferedValue){let a=g.bufferedValue;g.bufferedValue=null,g.proc?.sendFrame({type:"extension_ui_response",id:b,value:a})}else g.pendingInputId=b,g.phase="prompt",g.message="string"==typeof a.title&&a.title?a.title:"Enter the authorization code",g.placeholder="string"==typeof a.placeholder?a.placeholder:null}else"notify"===b?("string"==typeof a.message&&(g.message=a.message),"waiting"===g.phase&&(g.phase="progress")):"cancel"===b&&null!==g.pendingInputId&&a.targetId===g.pendingInputId&&(g.pendingInputId=null,"prompt"===g.phase&&(g.phase=g.url?"auth":"waiting"))}});g.proc=a}catch(a){throw new S("auth_failed",a instanceof Error?a.message:String(a))}return W.set(f,g),J(g),{provider:c,token:f}}(b.provider,c);case"auth.login.poll":let p,s,v,w;return p=q(b.provider),s=r(b.token),v=L(s,p,K(c)),w={provider:v.provider,phase:v.phase,token:s},void 0!==v.url&&(w.url=v.url),void 0!==v.instructions&&null!==v.instructions&&(w.instructions=v.instructions),void 0!==v.message&&(w.message=v.message),void 0!==v.placeholder&&null!==v.placeholder&&(w.placeholder=v.placeholder),void 0!==v.error&&(w.error=v.error),w;case"auth.login.confirm":return function(a,b){let c=q(a.provider),d=r(a.token),e=L(d,c,K(b));if("success"===e.phase||"error"===e.phase||"cancelled"===e.phase)throw new S("login_not_pending","Login is no longer pending");let f="string"==typeof a.code?a.code:void 0;if(!f||!f.trim()||f.length>4096)throw new S("login_code_required","code is required");if(null!==e.pendingInputId&&e.proc){let a=e.pendingInputId;return e.pendingInputId=null,e.proc.sendFrame({type:"extension_ui_response",id:a,value:f}),{ok:!0,buffered:!1}}return e.bufferedValue=f,{ok:!0,buffered:!0}}(b,c);case"auth.login.cancel":return M(b,c);case"auth.apikey.get":return H(b.provider);case"auth.apikey.set":throw new S("api_key_store_unsupported",`Cannot store an API key for "${q(b.provider)}" from ompgui. ${U}`,void 0,501);case"auth.apikey.remove":throw new S("api_key_remove_unsupported",`Cannot remove the API key for "${q(b.provider)}" from ompgui. ${U}`,void 0,501);case"auth.logout":throw new S("logout_unsupported",`ompgui cannot disconnect "${q(b.provider)}": omp exposes no logout command outside its own UI. ompgui cannot disconnect this provider: omp exposes no logout command outside its own UI. Run \`omp\` in a terminal and use /logout to remove the credential.`,void 0,501)}}d()}catch(a){d(a)}})},49642:(a,b,c)=>{"use strict";if(b.base64=!0,b.array=!0,b.string=!0,b.arraybuffer="u">typeof ArrayBuffer&&"u">typeof Uint8Array,b.nodebuffer="u">typeof Buffer,b.uint8array="u">typeof Uint8Array,"u"<typeof ArrayBuffer)b.blob=!1;else{var d=new ArrayBuffer(0);try{b.blob=0===new Blob([d],{type:"application/zip"}).size}catch(a){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(d),b.blob=0===e.getBlob("application/zip").size}catch(a){b.blob=!1}}}try{b.nodestream=!!c(18092).Readable}catch(a){b.nodestream=!1}},50099:(a,b,c)=>{"use strict";var d=c(12093);b.flowIndentCheck=function(a,b,c){if(b?.type==="flow-collection"){let e=b.end[0];e.indent===a&&("]"===e.source||"}"===e.source)&&d.containsNewline(b)&&c(e,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}},50105:(a,b,c)=>{var d=c(84906);function e(a,b){return f(function(c){return c.type===a?b(c):c})}function f(a){return function b(c){if(c.children){var e=d.map(c.children,b);c=d.extend(c,{children:e})}return a(c)}}function g(a){var b=[];return function a(b,c){b.children&&b.children.forEach(function(b){a(b,c),c(b)})}(a,function(a){b.push(a)}),b}b.paragraph=function(a){return e("paragraph",a)},b.run=function(a){return e("run",a)},b._elements=f,b._elementsOfType=e,b.getDescendantsOfType=function(a,b){return g(a).filter(function(a){return a.type===b})},b.getDescendants=g},50843:(a,b,c)=>{try{var d=c(28354);if("function"!=typeof d.inherits)throw"";a.exports=d.inherits}catch(b){a.exports=c(1434)}},51394:(a,b,c)=>{"use strict";var d=c(30444).Buffer,e=c(28354);a.exports=function(){function a(){if(!(this instanceof a))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},a.prototype.unshift=function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length},a.prototype.shift=function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c},a.prototype.concat=function(a){if(0===this.length)return d.alloc(0);for(var b,c,e=d.allocUnsafe(a>>>0),f=this.head,g=0;f;)b=f.data,c=g,b.copy(e,c),g+=f.data.length,f=f.next;return e},a}(),e&&e.inspect&&e.inspect.custom&&(a.exports.prototype[e.inspect.custom]=function(){var a=e.inspect({length:this.length});return this.constructor.name+" "+a})},51490:(a,b,c)=>{"use strict";var d=c(73315),e=c(71397);b.seq={collection:"seq",default:!0,nodeClass:e.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:(a,b)=>(d.isSeq(a)||b("Expected a sequence for this tag"),a),createNode:(a,b,c)=>e.YAMLSeq.from(a,b,c)}},51998:(a,b,c)=>{var d=c(84906),e=c(42291),f=c(38843),g=c(47713).w,h=c(37492).w,i=c(48575)._T,j=c(26092).Tt,k=c(93012),l=c(6560).Result;function m(a,b){return b=j(b),k.openZip(a).tap(function(a){return f.readStyleMap(a).then(function(a){b.embeddedStyleMap=a})}).then(function(c){return e.read(c,a,b).then(function(a){return a.map(b.transformDocument)}).then(function(a){var c,e,f,h,j;return c=a,h=(f=(e=b).readStyleMap(),l.combine((f||[]).map(i)).map(function(a){return a.filter(function(a){return!!a})})),j=new g(d.extend({},e,{styleMap:h.value})),c.flatMapThen(function(a){return h.flatMapThen(function(b){return j.convertToHtml(a)})})})})}b.convertToHtml=function(a,b){return m(a,b)},b.convertToMarkdown=function(a,b){var c=Object.create(b||{});return c.outputFormat="markdown",m(a,c)},b.convert=m,b.extractRawText=function(a){return k.openZip(a).then(e.read).then(function(a){return a.map(h)})},b.images=c(55388),b.transforms=c(50105),b.underline=c(64798),b.embedStyleMap=function(a,b){return k.openZip(a).tap(function(a){return f.writeStyleMap(a,b)}).then(function(a){return a.toArrayBuffer()}).then(function(a){return{toArrayBuffer:function(){return a},toBuffer:function(){return Buffer.from(a)}}})},b.readEmbeddedStyleMap=function(a){return k.openZip(a).then(f.readStyleMap)},b.styleMapping=function(){throw Error("Use a raw string instead of mammoth.styleMapping e.g. \"p[style-name='Title'] => h1\" instead of mammoth.styleMapping(\"p[style-name='Title'] => h1\")")}},52103:(a,b,c)=>{"use strict";c.d(b,{Ey:()=>i,Gu:()=>k,SI:()=>j});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f);let h=new Set(["error","overwrite","skip"]);function i(a){let b=a??"error";return h.has(b)?b:null}function j(a){if(0===a.length)return"No files selected";let b=new Set;for(let c of a){if(!c||"."===c||".."===c||c.includes("\0"))return`Invalid file name: ${c||"(empty)"}`;if(c.includes("/")||c.includes("\\")||g().basename(c)!==c)return`File names must not contain a path: ${c}`;let a="win32"===process.platform?c.toLocaleLowerCase():c;if(b.has(a))return`Duplicate file name in upload: ${c}`;b.add(a)}return null}function k(a,b){let c=[],d=[];for(let f of b){let b,h=g().join(a,f);try{b=e().lstatSync(h)}catch(a){if("ENOENT"===a.code)continue;throw a}c.push(f),(!b.isFile()||b.isSymbolicLink())&&d.push(f)}return{conflicts:c,nonReplaceable:d}}},52257:(a,b,c)=>{"use strict";c.d(b,{CU:()=>l,S7:()=>u});var d=c(79646),e=c(79748),f=c(21820),g=c(33873),h=c(28354);let i=process.env.SKILLS_API_URL||"https://skills.sh",j=(0,h.promisify)(d.execFile);class k extends Error{constructor(a){super(`HTTP ${a}`),this.status=a}}function l(a){let b=n(a.skillPath??""),c=b?`${a.source}/${b}`:a.source,d=a.ref?`#${encodeURIComponent(a.ref)}`:"",e=["skills","add",`${c}${d}`,"--skill",m(a.package),"-y","--agent","universal"];return"global"===a.scope&&e.push("-g"),e}function m(a){let b=a.lastIndexOf("@");return b>=0?a.slice(b+1):a}function n(a){let b=a.replace(/\\/g,"/");return b.toLowerCase().endsWith("/skill.md")?b=b.slice(0,-9):b.toLowerCase().endsWith("skill.md")&&(b=b.slice(0,-8)),b.replace(/\/$/,"")}function o(a,b,c,d){return{package:a.package,scope:a.scope,state:b,currentVersion:a.versionHash,latestVersion:c,message:d}}async function p(a,b,c){let d=await b(a,{cache:"no-store",headers:c,signal:AbortSignal.timeout(15e3)});if(!d.ok)throw new k(d.status);return d.json()}async function q(a){let b=`https://github.com/${a.source}.git`,c=a.ref||"HEAD",d=n(a.skillPath),h=await (0,e.mkdtemp)((0,g.join)((0,f.tmpdir)(),"omp-web-skill-check-"));try{await j("git",["init","--bare",h],{timeout:3e4}),await j("git",[`--git-dir=${h}`,"fetch","--depth=1","--filter=blob:none","--no-tags",b,c],{timeout:3e4});let a=d?`FETCH_HEAD:${d}`:"FETCH_HEAD^{tree}",{stdout:e}=await j("git",[`--git-dir=${h}`,"rev-parse",a],{timeout:3e4}),f=e.trim();if(!/^[0-9a-f]{40}$/i.test(f))throw Error("Invalid Git tree hash");return f}finally{await (0,e.rm)(h,{recursive:!0,force:!0})}}async function r(a,b){let c,d=a.ref||"HEAD",e=`https://api.github.com/repos/${a.source}/git/trees/${encodeURIComponent(d)}?recursive=1`,f={Accept:"application/vnd.github.v3+json","User-Agent":"omp-web"};b.githubToken&&(f.Authorization=`Bearer ${b.githubToken}`);let g=n(a.skillPath);try{let a=await p(e,b.fetcher,f);if(c="string"!=typeof a.sha||g?void 0:a.sha,g&&Array.isArray(a.tree)){let b=a.tree.find(a=>"tree"===a.type&&a.path===g);b&&"string"==typeof b.sha&&(c=b.sha)}}catch(d){if(!(d instanceof k)||![401,403,429].includes(d.status))throw d;c=await b.resolveGitTreeHash(a)}return c?o(a,c===a.versionHash?"up-to-date":"update-available",c):o(a,"error",void 0,"Remote skill path was not found.")}async function s(a,b){let[c,d]=a.source.split("/"),e=m(a.package).toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,""),f=`${b.skillsApiBase}/api/download/${encodeURIComponent(c)}/${encodeURIComponent(d)}/${encodeURIComponent(e)}`,g=await p(f,b.fetcher),h="string"==typeof g.hash?g.hash:void 0;return h?o(a,h===a.versionHash?"up-to-date":"update-available",h):o(a,"error",void 0,"skills.sh did not return a version hash.")}async function t(a,b={}){if(!a.canCheckForUpdates||!a.versionHash||!a.skillPath)return o(a,"unsupported",void 0,"This lock entry cannot be checked automatically.");let c={...b,fetcher:b.fetcher??fetch,skillsApiBase:b.skillsApiBase??i,resolveGitTreeHash:b.resolveGitTreeHash??q};try{return"global"===a.scope?await r(a,c):await s(a,c)}catch(b){return o(a,"error",void 0,b instanceof Error?b.message:String(b))}}async function u(a,b={}){let c=b.fetcher??fetch,d=new Map,e=async(a,b)=>{let e=d.get(a);return e||(e=c(a,b),d.set(a,e)),(await e).clone()};return Promise.all(a.map(a=>t(a,{...b,fetcher:e})))}},53e3:(a,b,c)=>{"use strict";c.d(b,{b$:()=>i,dm:()=>f});var d=c(77598),e=c(96851);function f(a){return!!a&&"/relay"===a.split("?")[0]}function g(a,b){let c,d=b.length;return d<126?((c=Buffer.alloc(2))[0]=128|a,c[1]=d):d<=65535?((c=Buffer.alloc(4))[0]=128|a,c[1]=126,c.writeUInt16BE(d,2)):((c=Buffer.alloc(10))[0]=128|a,c[1]=127,c.writeUInt32BE(0,2),c.writeUInt32BE(d,6)),Buffer.concat([c,b])}class h{get bufferedAmount(){return this.socket.writableLength}constructor(a,b,c=e.BY){this.socket=a,this.handlers=b,this.maxPayload=c,this.buffer=Buffer.alloc(0),this.closed=!1,this.sentClose=!1,this.socket.on("data",a=>this.onData(a)),this.socket.on("end",()=>this.handlePeerClose()),this.socket.on("close",()=>this.handlePeerClose()),this.socket.on("error",()=>this.handlePeerClose())}feed(a){this.onData(a)}sendText(a){if(this.closed||!this.socket.writable)return!1;let b=Buffer.from(a,"utf8");return!(b.length>this.maxPayload)&&this.writeFrame(g(1,b))}ping(){!this.closed&&this.socket.writable&&this.writeFrame(g(9,Buffer.alloc(0)))}close(a=1e3,b=""){if(this.sentClose)return;this.sentClose=!0;let c=Buffer.from(b.slice(0,120),"utf8"),d=Buffer.alloc(2+c.length);d.writeUInt16BE(a,0),c.copy(d,2);try{this.socket.write(g(8,d))}catch{}this.closed=!0;try{this.socket.end()}catch{}this.handlers.onClose()}writeFrame(a){try{if(this.bufferedAmount+a.length>1e6)return!1;return this.socket.write(a),!0}catch{return this.handlePeerClose(),!1}}onData(a){if(!this.closed)for(this.buffer=0===this.buffer.length?Buffer.from(a):Buffer.concat([this.buffer,a]);;){let a=function(a,b=e.BY){if(a.length<2)return{status:"need_more"};let c=a[0],d=a[1],f=(128&c)!=0,g=15&c,h=127&d;if(0!=(112&c))return{status:"error",code:1002,reason:"RSV bits must be 0"};if((128&d)==0)return{status:"error",code:1002,reason:"Client frames must be masked"};if(!f)return{status:"error",code:1003,reason:"Fragmented frames are not supported"};if(1!==g&&8!==g&&9!==g&&10!==g)return{status:"error",code:1003,reason:"Unsupported opcode"};let i=2;if(126===h){if(a.length<4)return{status:"need_more"};h=a.readUInt16BE(2),i=4}else if(127===h){if(a.length<10)return{status:"need_more"};let c=a.readUInt32BE(2),d=a.readUInt32BE(6);if(0!==c||d>b)return{status:"error",code:1009,reason:"Frame is too large"};h=d,i=10}if(h>b)return{status:"error",code:1009,reason:"Frame is too large"};if((8===g||9===g||10===g)&&h>125)return{status:"error",code:1002,reason:"Control frame is too large"};let j=i+4+h;if(a.length<j)return{status:"need_more"};let k=a.subarray(i,i+4),l=Buffer.from(a.subarray(i+4,j));for(let a=0;a<l.length;a+=1)l[a]^=k[3&a];return{status:"ok",frame:{fin:f,opcode:g,payload:l},rest:a.subarray(j)}}(this.buffer,this.maxPayload);if("need_more"===a.status){this.buffer.length>this.maxPayload+14&&this.close(1009,"Frame is too large");return}if("error"===a.status)return void this.close(a.code,a.reason);if(this.buffer=a.rest,this.dispatch(a.frame),this.closed)return}}dispatch(a){switch(a.opcode){case 1:{let b=a.payload.toString("utf8");if(Buffer.byteLength(b,"utf8")!==a.payload.length)return void this.close(1007,"Text frame is not valid UTF-8");this.handlers.onText(b);return}case 8:this.close(1e3,"");return;case 9:this.writeFrame(g(10,a.payload));return;case 10:return;default:this.close(1003,"Unsupported opcode")}}handlePeerClose(){this.closed||(this.closed=!0,this.sentClose=!0,this.handlers.onClose())}}function i(a,b,c){let e=function(a){if("websocket"!==String(a.headers.upgrade??"").toLowerCase())return null;let b=String(a.headers.connection??"");if(!/\bupgrade\b/i.test(b)||"13"!==String(a.headers["sec-websocket-version"]??""))return null;let c=a.headers["sec-websocket-key"];return"string"!=typeof c||c.length<16||c.length>128?null:c}(a);if(!e)return b.write("HTTP/1.1 400 Bad Request\r\nConnection: close\r\n\r\n"),b.destroy(),null;let f=(0,d.createHash)("sha1").update(e+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11").digest("base64");return b.write(`HTTP/1.1 101 Switching Protocols\r
|
|
76
|
+
Upgrade: websocket\r
|
|
77
|
+
Connection: Upgrade\r
|
|
78
|
+
Sec-WebSocket-Accept: ${f}\r
|
|
79
|
+
\r
|
|
80
|
+
`),new h(b,c)}},53308:a=>{"use strict";a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},53309:function(a,b,c){(function(){var b,d,e,f,g,h,i;g=(i=c(54117)).assign,h=i.isFunction,b=c(12965),d=c(60302),f=c(80224),e=c(24083),a.exports.create=function(a,c,d,e){var f,h;if(null==a)throw Error("Root element needs a name.");return h=(f=new b(e=g({},c,d,e))).element(a),e.headless||(f.declaration(e),(null!=e.pubID||null!=e.sysID)&&f.doctype(e)),h},a.exports.begin=function(a,c,e){var f;return(h(a)&&(c=(f=[a,c])[0],e=f[1],a={}),c)?new d(a,c,e):new b(a)},a.exports.stringWriter=function(a){return new f(a)},a.exports.streamWriter=function(a,b){return new e(a,b)}}).call(this)},53899:(a,b,c)=>{"use strict";c.d(b,{K:()=>d});let d=[{path:"defaultThinkingLevel",category:"models",group:"Thinking",label:{en:"Thinking Level",ko:"사고 수준"},description:{en:"Reasoning depth for thinking-capable models",ko:"사고 지원 모델의 추론 깊이"},kind:"enum",scope:"both",defaultValue:"high",choices:["minimal","low","medium","high","xhigh","max","auto"]},{path:"externalThinking",category:"models",group:"Thinking",label:{en:"External Thinking",ko:"외부 사고"},description:{en:"Private scratchpad; not shown to user. Disables supported GPT, Claude, and Gemini reasoning",ko:"사용자에게 표시되지 않는 비공개 메모장입니다. 지원되는 GPT, Claude, Gemini 추론을 비활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"model.loopGuard.checkAssistantContent",category:"models",group:"Thinking",label:{en:"Loop Guard Scan Prose",ko:"루프 가드 본문 검사"},description:{en:"Apply loop guard to assistant prose messages in addition to thinking logs",ko:"사고 로그뿐 아니라 어시스턴트 본문 메시지에도 루프 가드를 적용합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when model.loopGuard.enabled is on.",ko:"model.loopGuard.enabled가 켜진 경우 적용됩니다."}},{path:"model.loopGuard.enabled",category:"models",group:"Thinking",label:{en:"Loop Guard",ko:"루프 가드"},description:{en:"Enable automatic stream loop detection for model reasoning and prose",ko:"모델의 추론 및 본문에서 스트림 루프를 자동 감지합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"model.loopGuard.toolCallReminder",category:"models",group:"Thinking",label:{en:"Loop Guard Tool-Call Reminder",ko:"루프 가드 도구 호출 알림"},description:{en:"When a Gemini reasoning stream emits many consecutive planning headers without calling a tool, interrupt it and inject a reminder to issue a tool call (requires Loop Guard)",ko:"Gemini 추론 스트림이 도구 호출 없이 연속된 계획 헤더를 많이 생성하면 중단하고 도구 호출 알림을 삽입합니다(Loop Guard 필요)."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when model.loopGuard.enabled is on.",ko:"model.loopGuard.enabled가 켜진 경우 적용됩니다."}},{path:"model.toolCallLoopGuard.enabled",category:"models",group:"Thinking",label:{en:"Tool-Call Loop Guard",ko:"도구 호출 루프 가드"},description:{en:"Detect consecutive identical tool calls across turns and inject a corrective steer",ko:"턴 간에 연속으로 동일한 도구가 호출되면 감지하여 수정 지시를 삽입합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"model.toolCallLoopGuard.exemptTools",category:"models",group:"Thinking",label:{en:"Tool-Call Loop Exempt Tools",ko:"도구 호출 루프 제외 도구"},description:{en:"Tool names that may repeat consecutively without triggering the cross-turn loop guard",ko:"턴 간 루프 가드를 트리거하지 않고 연속으로 반복할 수 있는 도구 이름입니다."},kind:"array",scope:"both",defaultValue:["wait"],items:"string",appliesTo:{en:"Applies when model.toolCallLoopGuard.enabled is on.",ko:"model.toolCallLoopGuard.enabled가 켜진 경우 적용됩니다."}},{path:"model.toolCallLoopGuard.threshold",category:"models",group:"Thinking",label:{en:"Tool-Call Loop Threshold",ko:"도구 호출 루프 임계값"},description:{en:"Consecutive identical tool calls required before the corrective steer is injected",ko:"수정 지시를 삽입하기 전까지 허용할 연속된 동일 도구 호출 횟수입니다."},kind:"number",scope:"both",defaultValue:5,integer:!0,appliesTo:{en:"Applies when model.toolCallLoopGuard.enabled is on.",ko:"model.toolCallLoopGuard.enabled가 켜진 경우 적용됩니다."}},{path:"omitThinking",category:"models",group:"Thinking",label:{en:"Omit Thinking summaries",ko:"사고 요약 생략"},description:{en:"Instruct upstream providers to completely omit thinking summaries from responses (where supported)",ko:"지원되는 경우 업스트림 제공자가 응답에서 사고 요약을 완전히 생략하도록 지시합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"providers.autoThinkingMaxEffort",category:"models",group:"Thinking",label:{en:"Auto Thinking Ceiling",ko:"자동 사고 상한"},description:{en:"Highest effort the `auto` classifier may resolve. `xhigh` keeps the classifier one tier below the top, so only an explicit `ultrathink` reaches `max`; `max` lets a turn the classifier judges exceptional bill the top tier on models that expose it.",ko:"`auto` 분류기가 선택할 수 있는 최대 노력 수준입니다. `xhigh`는 분류기를 최상위보다 한 단계 아래로 제한하므로 명시적인 `ultrathink`만 `max`에 도달합니다. `max`는 분류기가 예외적이라고 판단한 턴에 해당 단계를 지원하는 모델의 최상위 요금을 적용할 수 있게 합니다."},kind:"enum",scope:"both",defaultValue:"xhigh",choices:["xhigh","max"],appliesTo:{en:"Applies when defaultThinkingLevel is auto.",ko:"defaultThinkingLevel이 auto인 경우 적용됩니다."}},{path:"disabledProviders",category:"models",group:"Disabled Providers",label:{en:"Disabled Providers",ko:"비활성화된 제공자"},description:{en:"Providers that are disabled.",ko:"비활성화된 제공자 목록입니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"enabledProviders",category:"models",group:"Enabled Providers",label:{en:"Enabled Providers",ko:"활성화된 제공자"},description:{en:"Providers that are enabled.",ko:"활성화된 제공자 목록입니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"enabledModels",category:"models",group:"Enabled Models",label:{en:"Enabled Models",ko:"활성화된 모델"},description:{en:"Models that are enabled.",ko:"활성화된 모델 목록입니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"extendedContext",category:"models",group:"General",label:{en:"Extended Context",ko:"확장 컨텍스트"},description:{en:"Use larger context windows where supported; may incur premium pricing. Off keeps default or standard-pricing windows",ko:"지원되는 경우 더 큰 컨텍스트 창을 사용합니다. 프리미엄 요금이 부과될 수 있습니다. 끄면 기본 또는 표준 요금 컨텍스트 창을 유지합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"images.autoResize",category:"models",group:"Images",label:{en:"Auto-Resize Images",ko:"이미지 자동 크기 조정"},description:{en:"Resize large images to 2000x2000 max for better model compatibility",ko:"모델 호환성을 높이기 위해 큰 이미지의 최대 크기를 2000x2000으로 조정합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"images.blockImages",category:"models",group:"Images",label:{en:"Block Images",ko:"이미지 차단"},description:{en:"Prevent images from being sent to LLM providers",ko:"이미지가 LLM 제공자에게 전송되지 않도록 합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"images.urls.credentials",category:"models",group:"Images",label:{en:"Credentials",ko:"자격 증명"},description:{en:"Write-only map from image URL backend ids to backend credential name/value objects.",ko:"이미지 URL 백엔드 ID를 해당 백엔드의 자격 증명 이름/값 객체에 매핑하는 쓰기 전용 설정입니다."},kind:"object",scope:"global",recordValues:"json",secret:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies to images.urls.enabled.",ko:"images.urls.enabled에 적용됩니다."}},{path:"images.urls.options",category:"models",group:"Images",label:{en:"Options",ko:"옵션"},description:{en:"Maps each image URL backend id to that backend's structured option object.",ko:"각 이미지 URL 백엔드 ID를 해당 백엔드의 구조화된 옵션 객체에 매핑합니다."},kind:"object",scope:"global",defaultValue:{},recordValues:"json",admin:!0,confirmation:!0,appliesTo:{en:"Applies to images.urls.enabled.",ko:"images.urls.enabled에 적용됩니다."}},{path:"images.describeForTextModels",category:"models",group:"Vision",label:{en:"Describe Images for Text Models",ko:"텍스트 모델용 이미지 설명"},description:{en:"When an image is attached to a model without vision support, save it under local:// and inject a description from a vision-capable model instead of dropping it",ko:"비전 미지원 모델에 이미지가 첨부되면 이미지를 삭제하는 대신 local:// 아래에 저장하고 비전 지원 모델이 생성한 설명을 삽입합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"images.urls.backends",category:"models",group:"Vision",label:{en:"Image URL Backends",ko:"이미지 URL 백엔드"},description:{en:"Ordered destinations tried when publishing images for provider access",ko:"제공자 접근을 위해 이미지를 게시할 때 순서대로 시도할 대상입니다."},kind:"array",scope:"global",defaultValue:["provider-files","tailscale","cloudflared","litterbox"],choices:["imgur","imageshack","flickr","chevereto","vgyme","dropbox","ftp","onedrive","google-drive","puush","box","amazon-s3","google-cloud-storage","azure-storage","backblaze-b2","owncloud","mediafire","sendspace","localhostr","lambda","pomf","uguu","seafile","s-ul","lobfile","transfer-sh","plik","shared-folder","catbox","litterbox","0x0","tmpfiles","discord","provider-files","direct","cloudflared","ngrok","tailscale","ssh","command","localhost-run","pinggy","devtunnel","zrok","bore","named-cloudflared","r2","tigris","minio","garage"],items:"string",admin:!0,confirmation:!0,appliesTo:{en:"Applies to images.urls.enabled.",ko:"images.urls.enabled에 적용됩니다."}},{path:"images.urls.bindHost",category:"models",group:"Vision",label:{en:"Image URL Bind Host",ko:"이미지 URL 바인드 호스트"},description:{en:"Host the blob server binds to; loopback for tunnels, 0.0.0.0 for direct serving",ko:"블롭 서버가 바인딩할 호스트입니다. 터널에는 loopback, 직접 제공에는 0.0.0.0을 사용합니다."},kind:"string",scope:"global",defaultValue:"127.0.0.1",admin:!0,confirmation:!0,appliesTo:{en:"Applies to locally hosted direct and tunnel image URL backends.",ko:"로컬에서 호스팅되는 direct 및 터널 이미지 URL 백엔드에 적용됩니다."}},{path:"images.urls.command",category:"models",group:"Vision",label:{en:"Image Upload Command",ko:"이미지 업로드 명령"},description:{en:"Argv template for the command backend; {file} is the image path, {mime}/{ext} optional. The last URL printed on stdout is used (e.g. pasta -b -f {file})",ko:"명령 백엔드용 Argv 템플릿입니다. {file}은 이미지 경로이며 {mime}/{ext}는 선택 사항입니다. stdout에 출력된 마지막 URL을 사용합니다(예: pasta -b -f {file})."},kind:"string",scope:"global",admin:!0,confirmation:!0,appliesTo:{en:"Applies when the command image URL backend is selected.",ko:"command 이미지 URL 백엔드를 선택한 경우 적용됩니다."}},{path:"images.urls.enabled",category:"models",group:"Vision",label:{en:"Serve Images as URLs",ko:"이미지를 URL로 제공"},description:{en:"Publish outgoing images through the configured backend chain and send URL-fetching providers short URLs instead of inline base64. Falls back to inline automatically when every backend or a provider fetch fails",ko:"설정된 백엔드 체인을 통해 발신 이미지를 게시하고, URL을 가져올 수 있는 제공자에게 inline base64 대신 짧은 URL을 전송합니다. 모든 백엔드 또는 제공자의 가져오기가 실패하면 자동으로 inline 방식으로 대체합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0},{path:"images.urls.publicBaseUrl",category:"models",group:"Vision",label:{en:"Image URL Public Base",ko:"이미지 URL 공개 베이스"},description:{en:"Externally reachable base URL fronting the blob server (required for ssh, optional for direct)",ko:"블롭 서버 앞단에서 외부 접근이 가능한 베이스 URL입니다(ssh에는 필수, 직접 제공에는 선택 사항)."},kind:"string",scope:"global",admin:!0,confirmation:!0,appliesTo:{en:"Required by the ssh backend and optional for the direct backend.",ko:"ssh 백엔드에는 필수이며 direct 백엔드에는 선택 사항입니다."}},{path:"images.urls.sshRemotePort",category:"models",group:"Vision",label:{en:"Image URL SSH Remote Port",ko:"이미지 URL SSH 원격 포트"},description:{en:"Remote listen port of the ssh reverse forward that your web server proxies to",ko:"웹 서버가 프록시하는 ssh 역방향 포워딩의 원격 수신 포트입니다."},kind:"number",scope:"global",defaultValue:8787,integer:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies when the ssh image URL backend is selected.",ko:"ssh 이미지 URL 백엔드를 선택한 경우 적용됩니다."}},{path:"images.urls.sshTarget",category:"models",group:"Vision",label:{en:"Image URL SSH Target",ko:"이미지 URL SSH 대상"},description:{en:"user@host destination for the ssh reverse forward",ko:"ssh 역방향 포워딩의 user@host 대상입니다."},kind:"string",scope:"global",admin:!0,confirmation:!0,appliesTo:{en:"Applies when the ssh image URL backend is selected.",ko:"ssh 이미지 URL 백엔드를 선택한 경우 적용됩니다."}},{path:"images.urls.ttlHours",category:"models",group:"Vision",label:{en:"Image URL Lifetime (hours)",ko:"이미지 URL 수명(hours)"},description:{en:"Serving window for locally hosted image URLs, measured from the last time a conversation sent them; resuming a conversation re-arms the window at the same link. 0 keeps links alive while the broker runs",ko:"로컬 호스팅 이미지 URL의 제공 기간으로, 대화에서 마지막으로 전송한 시점부터 측정합니다. 대화를 재개하면 같은 링크의 제공 기간이 다시 시작됩니다. 0이면 브로커가 실행되는 동안 링크를 유지합니다."},kind:"number",scope:"both",defaultValue:72,admin:!0,confirmation:!0,appliesTo:{en:"Applies to images.urls.enabled.",ko:"images.urls.enabled에 적용됩니다."}},{path:"images.questionTimeoutMs",category:"models",group:"Execution",label:{en:"Image Question Timeout",ko:"이미지 질문 제한 시간"},description:{en:"Per-request timeout for the vision-model call behind read's ?q= image questions, in milliseconds. A stalled provider fails fast with a timeout error instead of blocking until manual abort. Set to 0 to disable the timeout.",ko:"read의 ?q= 이미지 질문에 사용되는 비전 모델 호출의 요청별 제한 시간(ms)입니다. 제공자가 응답하지 않으면 수동 중단까지 차단하는 대신 제한 시간 오류로 빠르게 실패합니다. 제한 시간을 비활성화하려면 0으로 설정하세요."},kind:"number",scope:"both",defaultValue:3e5,integer:!0},{path:"includeModelInPrompt",category:"models",group:"Prompt",label:{en:"Include Model in Prompt",ko:"프롬프트에 모델 포함"},description:{en:"Surface the active model identifier in the system prompt so the agent knows which model it is",ko:"에이전트가 사용 중인 모델을 알 수 있도록 활성 모델 식별자를 시스템 프롬프트에 표시합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"inlineToolDescriptors",category:"models",group:"Prompt",label:{en:"Inline Tool Descriptors",ko:"인라인 도구 설명자"},description:{en:"Render full tool descriptors in the system prompt and strip top-level/nested descriptions from provider tool schemas so descriptor text is sent once. Auto enables this for Gemini models and disables it otherwise",ko:"전체 도구 설명자를 시스템 프롬프트에 렌더링하고 제공자 도구 스키마의 최상위 및 중첩 설명을 제거하여 설명자 텍스트가 한 번만 전송되게 합니다. Gemini 모델에는 자동으로 활성화되고 그 외 모델에는 비활성화됩니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","on","off"]},{path:"modelRoleStorage",category:"models",group:"Prompt",label:{en:"Model Role Storage",ko:"모델 역할 저장 위치"},description:{en:"Where model selector role assignments are saved",ko:"모델 선택기의 역할 할당을 저장할 위치입니다."},kind:"enum",scope:"both",defaultValue:"global",choices:["global","project"]},{path:"minP",category:"models",group:"Sampling",label:{en:"Min P",ko:"최소 P"},description:{en:"Minimum probability threshold (0-1, -1 = provider default)",ko:"최소 확률 임계값(0-1, -1 = 제공자 기본값)"},kind:"number",scope:"both",defaultValue:-1,integer:!1,min:-1,max:1,step:.01},{path:"presencePenalty",category:"models",group:"Sampling",label:{en:"Presence Penalty",ko:"존재 페널티"},description:{en:"Penalty for introducing already-present tokens (-1 = provider default)",ko:"이미 존재하는 토큰을 도입할 때 적용하는 페널티입니다(-1 = 제공자 기본값)."},kind:"number",scope:"both",defaultValue:-1,integer:!1},{path:"repetitionPenalty",category:"models",group:"Sampling",label:{en:"Repetition Penalty",ko:"반복 페널티"},description:{en:"Penalty for repeated tokens (-1 = provider default)",ko:"반복 토큰에 적용할 페널티(-1 = 제공자 기본값)"},kind:"number",scope:"both",defaultValue:-1,integer:!1},{path:"temperature",category:"models",group:"Sampling",label:{en:"Temperature",ko:"온도"},description:{en:"Sampling temperature (0 = deterministic, 1 = creative, -1 = provider default)",ko:"샘플링 온도(0 = 결정적, 1 = 창의적, -1 = 제공자 기본값)"},kind:"number",scope:"both",defaultValue:-1,integer:!1},{path:"textVerbosity",category:"models",group:"Sampling",label:{en:"Text Verbosity",ko:"텍스트 상세도"},description:{en:"OpenAI Responses and Codex response verbosity (low, medium, or high)",ko:"OpenAI Responses 및 Codex 응답 상세도(low, medium 또는 high)"},kind:"enum",scope:"both",defaultValue:"medium",choices:["low","medium","high"]},{path:"tier.advisor",category:"models",group:"Sampling",label:{en:"Service Tier —\x80\x94 Advisor",ko:"서비스 티어 — Advisor"},description:{en:"Service Tier for the advisor model. None = standard processing; Inherit = match the main agent's live per-family tiers; pick a value to apply it to the advisor model's family.",ko:"advisor 모델의 Service Tier입니다. None = 표준 처리, Inherit = 기본 에이전트의 실시간 제품군별 티어와 일치. 값을 선택하면 advisor 모델의 제품군에 적용됩니다."},kind:"enum",scope:"both",defaultValue:"none",choices:["inherit","none","auto","default","flex","scale","priority","ultrafast"],appliesTo:{en:"Applies to advisor provider models.",ko:"advisor 제공자 모델에 적용됩니다."}},{path:"tier.anthropic",category:"models",group:"Sampling",label:{en:"Service Tier —\x80\x94 Anthropic",ko:"서비스 티어 — Anthropic"},description:{en:'Processing tier for Claude requests. `priority` realizes fast mode (`speed: "fast"`) on supported direct Anthropic models; ignored on Bedrock/Vertex Claude and via OpenRouter.',ko:'Claude 요청의 처리 티어입니다. `priority`는 지원되는 Anthropic 직접 연결 모델에서 빠른 모드(`speed: "fast"`)를 사용합니다. Bedrock/Vertex Claude 및 OpenRouter를 통한 요청에서는 무시됩니다.'},kind:"enum",scope:"both",defaultValue:"none",choices:["none","priority"],appliesTo:{en:"Applies to anthropic provider models.",ko:"anthropic 제공자 모델에 적용됩니다."}},{path:"tier.google",category:"models",group:"Sampling",label:{en:"Service Tier —\x80\x94 Google",ko:"서비스 티어 — Google"},description:{en:"Processing tier for Gemini (Google AI Studio + Vertex) requests, and Google-family models routed via OpenRouter (none = omit). Sent as the top-level `serviceTier` field.",ko:"Gemini(Google AI Studio + Vertex) 요청 및 OpenRouter를 통해 라우팅되는 Google 제품군 모델의 처리 티어입니다(none = 생략). 최상위 `serviceTier` 필드로 전송됩니다."},kind:"enum",scope:"both",defaultValue:"none",choices:["none","flex","priority"],appliesTo:{en:"Applies to google provider models.",ko:"google 제공자 모델에 적용됩니다."}},{path:"tier.openai",category:"models",group:"Sampling",label:{en:"Service Tier —\x80\x94 OpenAI",ko:"서비스 티어 — OpenAI"},description:{en:"Processing tier for OpenAI / OpenAI-Codex requests, and OpenAI-family models routed via OpenRouter (none = omit). Sent as `service_tier`.",ko:"OpenAI / OpenAI-Codex 요청 및 OpenRouter를 통해 라우팅되는 OpenAI 제품군 모델의 처리 티어입니다(none = 생략). `service_tier`로 전송됩니다."},kind:"enum",scope:"both",defaultValue:"none",choices:["none","auto","default","flex","scale","priority","ultrafast"],appliesTo:{en:"Applies to openai provider models.",ko:"openai 제공자 모델에 적용됩니다."}},{path:"tier.subagent",category:"models",group:"Sampling",label:{en:"Service Tier —\x80\x94 Subagent",ko:"서비스 티어 — 서브에이전트"},description:{en:"Service Tier for spawned task/eval subagents. Inherit = match the main agent's live per-family tiers (tracks /fast); pick a value to apply it to whichever family the subagent's model belongs to.",ko:"생성된 task/eval 서브에이전트의 Service Tier입니다. Inherit = 기본 에이전트의 실시간 제품군별 티어와 일치(/fast 추적). 값을 선택하면 서브에이전트 모델이 속한 제품군에 적용됩니다."},kind:"enum",scope:"both",defaultValue:"inherit",choices:["inherit","none","auto","default","flex","scale","priority","ultrafast"],appliesTo:{en:"Applies to subagent provider models.",ko:"subagent 제공자 모델에 적용됩니다."}},{path:"topK",category:"models",group:"Sampling",label:{en:"Top K",ko:"Top K"},description:{en:"Sample from top-K tokens (-1 = provider default)",ko:"상위 K개 토큰에서 샘플링(-1 = 제공자 기본값)"},kind:"number",scope:"both",defaultValue:-1,integer:!0},{path:"topP",category:"models",group:"Sampling",label:{en:"Top P",ko:"Top P"},description:{en:"Nucleus sampling cutoff (0-1, -1 = provider default)",ko:"핵 샘플링 임계값(0-1, -1 = 제공자 기본값)"},kind:"number",scope:"both",defaultValue:-1,integer:!1,min:-1,max:1,step:.01},{path:"modelProviderOrder",category:"models",group:"Model Provider Order",label:{en:"Model Provider Order",ko:"모델 제공자 순서"},description:{en:"Sets the ordered list of model providers.",ko:"모델 제공자의 순서 목록을 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"modelRoles",category:"models",group:"Model Roles",label:{en:"Model Roles",ko:"모델 역할"},description:{en:"Maps each model role name to a model selector.",ko:"각 모델 역할 이름을 모델 선택자에 매핑합니다."},kind:"object",scope:"both",defaultValue:{},recordValues:"model-role"},{path:"modelTags",category:"models",group:"Model Tags",label:{en:"Model Tags",ko:"모델 태그"},description:{en:"Maps each tag id to an object with a required name and optional color and hidden flag.",ko:"각 태그 ID를 필수 name과 선택적 color 및 hidden 플래그가 있는 객체에 매핑합니다."},kind:"object",scope:"both",defaultValue:{},recordValues:"json"},{path:"providers.fetch",category:"models",group:"Services",label:{en:"Fetch Provider",ko:"Fetch 제공자"},description:{en:"Reader backend priority for the fetch/read URL tool",ko:"fetch/read URL 도구의 리더 백엔드 우선순위입니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","native","trafilatura","lynx","parallel","firecrawl","jina"],appliesTo:{en:"Applies to URL reads performed by the fetch/read tool.",ko:"fetch/read 도구가 수행하는 URL 읽기에 적용됩니다."}},{path:"providers.maxInFlightRequests",category:"models",group:"Services",label:{en:"Max In-Flight Requests",ko:"최대 동시 처리 요청 수"},description:{en:'Maximum concurrent LLM requests per provider id (for example "openai" or "anthropic"), shared across local OMP processes with this config root. Omitted providers are unlimited.',ko:'제공자 id별 최대 동시 LLM 요청 수입니다(예: "openai" 또는 "anthropic"). 이 구성 루트를 사용하는 로컬 OMP 프로세스 간에 공유됩니다. 생략된 제공자는 무제한입니다.'},kind:"object",scope:"both",defaultValue:{},recordValues:"json",appliesTo:{en:"Applies to the matching model provider or provider feature.",ko:"해당 모델 제공자 또는 제공자 기능에 적용됩니다."}},{path:"providers.openai-codex.codeMode",category:"models",group:"Services",label:{en:"Codex Code Mode",ko:"Codex 코드 모드"},description:{en:"Route Codex code_mode_only models (GPT-5.6) through eval. The direct tools are eval, ask, todo, yield, think, checkpoint, and rewind. Use eval cells for other session tools. Mirrors codex-rs Code Mode. 'auto' follows the model catalog flag.",ko:"Codex code_mode_only 모델(GPT-5.6)을 eval을 통해 실행합니다. 직접 도구는 eval, ask, todo, yield, think, checkpoint, rewind이며 그 밖의 세션 도구는 eval 셀에서 사용합니다. codex-rs Code Mode와 동일하게 동작하며 'auto'는 모델 카탈로그 플래그를 따릅니다."},kind:"enum",scope:"both",defaultValue:"off",choices:["off","on","auto"],appliesTo:{en:"Applies to openai-codex provider models.",ko:"openai-codex 제공자 모델에 적용됩니다."}},{path:"providers.anthropic.slowMode",category:"models",group:"Services",label:{en:"Anthropic Slow Mode",ko:"Anthropic 저속 모드"},description:{en:"When a Claude subscription hits its session limit and Anthropic offers low priority, continue at low priority after any wrap-up allowance (auto). Same setting as /slow on Anthropic.",ko:"Claude 구독이 세션 한도에 도달하고 Anthropic이 낮은 우선순위 처리를 제공하면 마무리 허용량을 쓴 뒤 낮은 우선순위로 계속 진행합니다(auto). Anthropic에서 /slow와 같은 설정입니다."},kind:"enum",scope:"both",defaultValue:"off",choices:["off","auto"],appliesTo:{en:"Applies to first-party Anthropic Claude subscription accounts.",ko:"Anthropic 자사 Claude 구독 계정에 적용됩니다."}},{path:"providers.webSearchTimeoutSeconds",category:"models",group:"Services",label:{en:"Web Search Timeout",ko:"웹 검색 시간 초과"},description:{en:"Hard timeout for each provider's search transport before web_search advances to the next fallback, in seconds (maximum 300)",ko:"web_search가 다음 대체 제공자로 넘어가기 전까지 각 제공자의 검색 전송에 적용할 강제 시간 제한(초)입니다(최대 300)."},kind:"number",scope:"both",defaultValue:60,max:300,appliesTo:{en:"Applies to each web search provider attempt.",ko:"각 웹 검색 제공자 시도에 적용됩니다."}},{path:"providers.streamFirstEventTimeoutSeconds",category:"models",group:"Timeouts",label:{en:"Stream First Event Timeout",ko:"스트림 첫 이벤트 시간 초과"},description:{en:"Seconds to wait for the first model stream event; -1 uses provider/env defaults, 0 disables the watchdog",ko:"첫 모델 스트림 이벤트를 기다릴 시간(초)입니다. -1은 제공자/env 기본값을 사용하고, 0은 감시 기능을 비활성화합니다."},kind:"number",scope:"both",defaultValue:-1,appliesTo:{en:"Applies to the matching model provider or provider feature.",ko:"해당 모델 제공자 또는 제공자 기능에 적용됩니다."}},{path:"providers.streamIdleTimeoutSeconds",category:"models",group:"Timeouts",label:{en:"Stream Idle Timeout",ko:"스트림 유휴 시간 초과"},description:{en:"Seconds a model stream may stay silent between events; -1 uses provider/env defaults, 0 disables the watchdog",ko:"모델 스트림이 이벤트 사이에 응답 없이 유지될 수 있는 시간(초)입니다. -1은 제공자/env 기본값을 사용하고, 0은 감시 기능을 비활성화합니다."},kind:"number",scope:"both",defaultValue:-1,appliesTo:{en:"Applies to the matching model provider or provider feature.",ko:"해당 모델 제공자 또는 제공자 기능에 적용됩니다."}},{path:"providers.cacheRetention",category:"models",group:"Protocol",label:{en:"Prompt Cache Retention",ko:"프롬프트 캐시 보존"},description:{en:"Prompt-cache retention forwarded to providers that support it (Anthropic, Bedrock, OpenRouter, OpenAI)",ko:"지원하는 제공자(Anthropic, Bedrock, OpenRouter, OpenAI)에 전달할 프롬프트 캐시 보존 기간입니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","short","long","none"]},{path:"providers.cacheWarming",category:"models",group:"Protocol",label:{en:"Cache Warming",ko:"캐시 예열"},description:{en:"Re-send the last request with a one-token output budget shortly before its prompt-cache entry expires",ko:"프롬프트 캐시 항목이 만료되기 직전에 출력 예산 1토큰으로 마지막 요청을 다시 보냅니다."},kind:"enum",scope:"both",defaultValue:"idle",choices:["off","streaming","idle"]},{path:"provider.appendOnlyContext",category:"models",group:"Protocol",label:{en:"Append-Only Context",ko:"추가 전용 컨텍스트"},description:{en:"Cache system prompt + tool specs and keep an append-only message log so provider prefix caches (DeepSeek, Xiaomi/SGLang, Anthropic) hit at maximum rate. Auto enables for known prefix-cache providers.",ko:"시스템 프롬프트와 도구 명세를 캐시하고 메시지 로그를 추가 전용으로 유지하여 제공자 접두사 캐시(DeepSeek, Xiaomi/SGLang, Anthropic)의 적중률을 최대화합니다. Auto는 알려진 접두사 캐시 제공자에서 활성화합니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","on","off"]},{path:"providers.openaiWebsockets",category:"models",group:"Protocol",label:{en:"OpenAI WebSockets",ko:"OpenAI WebSocket"},description:{en:"Websocket policy for OpenAI Codex models (auto uses model defaults, on forces, off disables)",ko:"OpenAI Codex 모델의 WebSocket 정책입니다(auto는 모델 기본값 사용, on은 강제 사용, off는 비활성화)."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","off","on"]},{path:"providers.openaiLiveSteering",category:"models",group:"Protocol",label:{en:"OpenAI Live Steering",ko:"OpenAI 실시간 조정"},description:{en:"Deliver messages typed while a GPT-6 response streams into that response over the Codex WebSocket, instead of waiting for the next tool boundary",ko:"GPT-6 응답이 스트리밍되는 동안 입력한 메시지를 다음 도구 경계까지 기다리지 않고 Codex WebSocket을 통해 해당 응답에 바로 전달합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to OpenAI Codex models over WebSocket.",ko:"WebSocket을 사용하는 OpenAI Codex 모델에 적용됩니다."}},{path:"thinkingBudgets.high",category:"models",group:"Thinking Budgets",label:{en:"High",ko:"높음"},description:{en:"Token budget for the high thinking level.",ko:"high 사고 수준의 토큰 예산입니다."},kind:"number",scope:"both",defaultValue:16384,integer:!0},{path:"thinkingBudgets.low",category:"models",group:"Thinking Budgets",label:{en:"Low",ko:"낮음"},description:{en:"Token budget for the low thinking level.",ko:"low 사고 수준의 토큰 예산입니다."},kind:"number",scope:"both",defaultValue:2048,integer:!0},{path:"thinkingBudgets.max",category:"models",group:"Thinking Budgets",label:{en:"Max",ko:"최대"},description:{en:"Token budget for the maximum thinking level.",ko:"maximum 사고 수준의 토큰 예산입니다."},kind:"number",scope:"both",defaultValue:32768,integer:!0},{path:"thinkingBudgets.medium",category:"models",group:"Thinking Budgets",label:{en:"Medium",ko:"중간"},description:{en:"Token budget for the medium thinking level.",ko:"medium 사고 수준의 토큰 예산입니다."},kind:"number",scope:"both",defaultValue:8192,integer:!0},{path:"thinkingBudgets.minimal",category:"models",group:"Thinking Budgets",label:{en:"Minimal",ko:"최소"},description:{en:"Token budget for the minimal thinking level.",ko:"minimal 사고 수준의 토큰 예산입니다."},kind:"number",scope:"both",defaultValue:1024,integer:!0},{path:"thinkingBudgets.xhigh",category:"models",group:"Thinking Budgets",label:{en:"Xhigh",ko:"매우 높음"},description:{en:"Token budget for the xhigh thinking level.",ko:"xhigh 사고 수준의 토큰 예산입니다."},kind:"number",scope:"both",defaultValue:32768,integer:!0},{path:"autolearn.autoContinue",category:"intelligence",group:"Auto-Learn",label:{en:"Auto-run capture at stop",ko:"중지 시 캡처 자동 실행"},description:{en:"When on, auto-run one private capture turn at stop (uses extra tokens). When off, only standing auto-learn guidance remains.",ko:"켜면 중지 시 비공개 캡처 턴을 한 번 자동 실행합니다(추가 토큰 사용). 끄면 상시 자동 학습 지침만 유지됩니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"autolearn.enabled",category:"intelligence",group:"Auto-Learn",label:{en:"Auto-Learn (experimental)",ko:"자동 학습(실험적)"},description:{en:"After the agent stops, nudge it to capture lessons to memory and create/enhance isolated managed skills",ko:"에이전트가 중지된 후 학습 내용을 메모리에 기록하고 격리된 관리형 스킬을 생성하거나 개선하도록 유도합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"autolearn.minToolCalls",category:"intelligence",group:"Autolearn",label:{en:"Min Tool Calls",ko:"최소 도구 호출 수"},description:{en:"Minimum number of tool calls for automatic learning.",ko:"자동 학습을 위한 최소 도구 호출 횟수입니다."},kind:"number",scope:"both",defaultValue:5,integer:!0},{path:"compaction.asyncEnabled",category:"intelligence",group:"Compaction",label:{en:"Async Compaction",ko:"비동기 압축"},description:{en:"Speculatively summarize in the background as context nears the compaction threshold, then splice the ready result in when the threshold is crossed",ko:"컨텍스트가 압축 임곗값에 가까워지면 백그라운드에서 미리 요약하고, 임곗값을 넘을 때 준비된 결과를 삽입합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.autoContinue",category:"intelligence",group:"Compaction",label:{en:"Auto Continue",ko:"자동 계속"},description:{en:"Whether to continue automatically after compaction.",ko:"압축 후 자동으로 계속할지 여부입니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.dropUseless",category:"intelligence",group:"Compaction",label:{en:"Elide Uneventful Results",ko:"무의미한 결과 생략"},description:{en:"Prune tool results flagged contextually useless (no matches, timed-out waits) once consumed (cache-aware)",ko:"컨텍스트상 불필요하다고 표시된 도구 결과(일치 항목 없음, 대기 시간 초과)를 사용 후 제거합니다(캐시 인식)."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.enabled",category:"intelligence",group:"Compaction",label:{en:"Auto-Compact",ko:"자동 압축"},description:{en:"Automatically compact context when it gets too large",ko:"컨텍스트가 너무 커지면 자동으로 압축합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"compaction.experimentalContextManagement",category:"intelligence",group:"Compaction",label:{en:"Notes-backed context windows (experimental)",ko:"메모 기반 컨텍스트 창(실험적)"},description:{en:"Keep persistent notes and searchable raw history across context windows. Restart to update available tools.",ko:"컨텍스트 창이 바뀌어도 영구 메모와 검색 가능한 원시 기록을 유지합니다. 사용 가능한 도구를 업데이트하려면 다시 시작하세요."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.handoffSaveToDisk",category:"intelligence",group:"Compaction",label:{en:"Save Handoff Docs",ko:"인계 문서 저장"},description:{en:"Save generated handoff documents to markdown files for the auto-handoff flow",ko:"자동 인계 흐름에서 생성된 인계 문서를 Markdown 파일로 저장합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.idleEnabled",category:"intelligence",group:"Compaction",label:{en:"Idle Compaction",ko:"유휴 압축"},description:{en:"Compact context while idle when token count exceeds threshold",ko:"토큰 수가 임곗값을 초과하면 유휴 상태에서 컨텍스트를 압축합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.idleThresholdTokens",category:"intelligence",group:"Compaction",label:{en:"Idle Compaction Threshold",ko:"유휴 압축 임곗값"},description:{en:"Token count above which idle compaction triggers",ko:"유휴 압축을 시작할 토큰 수 임곗값입니다."},kind:"number",scope:"both",defaultValue:2e5,integer:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.idleTimeoutSeconds",category:"intelligence",group:"Compaction",label:{en:"Idle Compaction Delay",ko:"유휴 압축 지연 시간"},description:{en:"Seconds to wait while idle before compacting",ko:"압축 전 유휴 상태로 대기할 시간(초)입니다."},kind:"number",scope:"both",defaultValue:300,integer:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.keepRecentTokens",category:"intelligence",group:"Compaction",label:{en:"Keep Recent Tokens",ko:"최근 토큰 유지"},description:{en:"Number of recent tokens to keep during compaction.",ko:"압축 중 유지할 최근 토큰 수입니다."},kind:"number",scope:"both",defaultValue:2e4,integer:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.methodOrder",category:"intelligence",group:"Compaction",label:{en:"Compaction Method Order",ko:"압축 방식 순서"},description:{en:"Preferred fallback order for automatic context maintenance; unavailable or failed methods advance to the next choice",ko:"자동 컨텍스트 유지 관리의 선호 대체 순서입니다. 사용할 수 없거나 실패한 방식은 건너뛰고 다음 방식을 사용합니다."},kind:"array",scope:"both",defaultValue:["remote","snapcompact","handoff","shake","soft"],choices:["remote","snapcompact","handoff","soft","shake"],items:"string",appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"snapcompact.systemPrompt",category:"intelligence",group:"Compaction",label:{en:"Snapcompact System Prompt",ko:"Snapcompact 시스템 프롬프트"},description:{en:"Experimental: render selected system prompt text as dense PNG image(s) and attach to the first user message (vision models only). Saves tokens; loses prompt caching for imaged text.",ko:"실험 기능: 선택한 시스템 프롬프트 텍스트를 고밀도 PNG 이미지로 렌더링해 첫 사용자 메시지에 첨부합니다(비전 모델 전용). 토큰은 절약되지만 이미지로 바뀐 텍스트는 프롬프트 캐시를 쓸 수 없습니다."},kind:"enum",scope:"both",defaultValue:"none",choices:["none","agents-md","all"],appliesTo:{en:"Vision-capable models only.",ko:"비전 지원 모델에만 적용됩니다."}},{path:"snapcompact.toolResults",category:"intelligence",group:"Compaction",label:{en:"Snapcompact Tool Results",ko:"Snapcompact 도구 결과"},description:{en:"Experimental: render large historical tool results as dense PNG image(s) instead of text (vision models only). Saves tokens on accumulated read/search output.",ko:"실험 기능: 이전의 큰 도구 결과를 텍스트 대신 고밀도 PNG 이미지로 렌더링합니다(비전 모델 전용). 누적된 read/검색 출력의 토큰을 절약합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Vision-capable models only.",ko:"비전 지원 모델에만 적용됩니다."}},{path:"snapcompact.shape",category:"intelligence",group:"Compaction",label:{en:"Snapcompact Shape",ko:"Snapcompact 형태"},description:{en:"Frame shape snapcompact prints text with (compaction archive and inline imaging). Auto picks a shape tuned for the current model.",ko:"snapcompact가 텍스트를 출력할 프레임 형태입니다(압축 아카이브 및 인라인 이미지화). auto는 현재 모델에 맞춘 형태를 선택합니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","8x8r-bw","8x8r-sent","8x8u-bw","8x8u-sent","6x6u-bw","6x6u-sent","5x8-bw","5x8-sent","6x12-dim","8x13-bw","8on16-bw","8on22-bw","11on16-bw","silver16-bw","doc-8on16-bw","doc-8on16-sent","doc-8on16-sent-dim"]},{path:"compaction.midTurnEnabled",category:"intelligence",group:"Compaction",label:{en:"Mid-Turn Compaction",ko:"턴 도중 압축"},description:{en:"Check thresholds at safe mid-turn tool-loop boundaries before the next provider request",ko:"다음 제공자 요청 전에 안전한 턴 도중 도구 루프 경계에서 임곗값을 확인합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.remoteEndpoint",category:"intelligence",group:"Compaction",label:{en:"Remote Endpoint",ko:"원격 엔드포인트"},description:{en:"Remote endpoint used for compaction. The active model credential is sent to this endpoint.",ko:"압축에 사용하는 원격 엔드포인트입니다. 활성 모델의 자격 증명이 이 엔드포인트로 전송됩니다."},kind:"string",scope:"global",admin:!0,confirmation:!0,appliesTo:{en:"Applies when compaction.methodOrder includes remote.",ko:"compaction.methodOrder에 remote가 포함된 경우 적용됩니다."}},{path:"compaction.remoteStreamingV2Enabled",category:"intelligence",group:"Compaction",label:{en:"Remote Compaction V2",ko:"원격 압축 V2"},description:{en:"Use Responses streaming compaction for compatible remote compaction models",ko:"호환되는 원격 압축 모델에 Responses 스트리밍 압축 사용"},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when compaction.methodOrder includes remote.",ko:"compaction.methodOrder에 remote가 포함된 경우 적용됩니다."}},{path:"compaction.reserveTokens",category:"intelligence",group:"Compaction",label:{en:"Reserve Tokens",ko:"예약 토큰"},description:{en:"Number of tokens to reserve during compaction.",ko:"압축 중 예약할 토큰 수입니다."},kind:"number",scope:"both",integer:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.supersedeReads",category:"intelligence",group:"Compaction",label:{en:"Supersede Stale Reads",ko:"오래된 읽기 대체"},description:{en:"Prune older read results when the same file is read again (cache-aware, runs every turn)",ko:"같은 파일을 다시 읽을 때 이전 읽기 결과를 제거합니다(캐시 인식, 매 턴 실행)."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.thresholdPercent",category:"intelligence",group:"Compaction",label:{en:"Compaction Threshold",ko:"압축 임계값"},description:{en:"Percent threshold for context maintenance; set to Default to use legacy reserve-based behavior",ko:"컨텍스트 유지를 위한 백분율 임계값입니다. 기존 예약 기반 동작을 사용하려면 Default로 설정하세요."},kind:"number",scope:"both",defaultValue:-1,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.thresholdTokens",category:"intelligence",group:"Compaction",label:{en:"Compaction Token Limit",ko:"압축 토큰 한도"},description:{en:"Fixed token limit for context maintenance; overrides percentage if set",ko:"컨텍스트 유지를 위한 고정 토큰 한도입니다. 설정하면 백분율보다 우선합니다."},kind:"number",scope:"both",defaultValue:-1,integer:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"compaction.v2RetainedMessageBudget",category:"intelligence",group:"Compaction",label:{en:"V2 Retained Message Budget",ko:"V2 보존 메시지 예산"},description:{en:"Retained message budget for compaction version 2.",ko:"압축 버전 2의 보존 메시지 예산입니다."},kind:"number",scope:"both",defaultValue:64e3,integer:!0,appliesTo:{en:"Applies to compaction.enabled.",ko:"compaction.enabled에 적용됩니다."}},{path:"contextPromotion.enabled",category:"intelligence",group:"General",label:{en:"Auto-Promote Context",ko:"컨텍스트 자동 확장"},description:{en:"Promote to a larger-context model on context overflow instead of compacting",ko:"컨텍스트가 초과되면 압축 대신 더 큰 컨텍스트 모델로 전환합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"memory.backend",category:"intelligence",group:"General",label:{en:"Memory Backend",ko:"메모리 백엔드"},description:{en:"Off, local summary pipeline, Mnemopi SQLite, Hindsight remote memory, or Sharpshooter",ko:"끄기, 로컬 요약 파이프라인, Mnemopi SQLite, Hindsight 원격 메모리 또는 Sharpshooter"},kind:"enum",scope:"both",defaultValue:"off",choices:["off","local","hindsight","mnemopi","sharpshooter"]},{path:"goal.continuationModes",category:"intelligence",group:"Modes",label:{en:"Goal Continuation Modes",ko:"목표 계속 모드"},description:{en:"Run modes where active goals may auto-continue between turns",ko:"활성 목표가 턴 사이에 자동으로 계속될 수 있는 실행 모드"},kind:"array",scope:"both",defaultValue:["interactive"],items:"string"},{path:"goal.enabled",category:"intelligence",group:"Modes",label:{en:"Goal Mode",ko:"목표 모드"},description:{en:"Enable per-session goal mode and the hidden goal tool",ko:"세션별 목표 모드와 숨겨진 goal 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"title.refreshOnReplan",category:"intelligence",group:"Modes",label:{en:"Refresh Title on Replan",ko:"재계획 시 제목 새로 고침"},description:{en:"Refresh generated session titles after todo init replans unless the title was set by the user",ko:"할 일 초기화로 재계획한 뒤 자동 생성된 세션 제목을 새로 고칩니다. 사용자가 직접 지정한 제목은 유지합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"hindsight.apiToken",category:"intelligence",group:"Hindsight",label:{en:"Hindsight API Token",ko:"Hindsight API 토큰"},description:{en:"Bearer token for authenticated Hindsight servers",ko:"인증된 Hindsight 서버용 Bearer 토큰"},kind:"string",scope:"global",secret:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.apiUrl",category:"intelligence",group:"Hindsight",label:{en:"Hindsight API URL",ko:"Hindsight API URL"},description:{en:"Hindsight server URL (Cloud or self-hosted)",ko:"Hindsight 서버 URL(Cloud 또는 자체 호스팅)"},kind:"string",scope:"global",defaultValue:"http://localhost:8888",admin:!0,confirmation:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.autoRecall",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Auto Recall",ko:"Hindsight 자동 회상"},description:{en:"Recall memories on the first turn of each session",ko:"각 세션의 첫 번째 턴에 메모리를 회상합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.autoRetain",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Auto Retain",ko:"Hindsight 자동 보존"},description:{en:"Retain transcript every N turns and at session boundaries",ko:"N턴마다 그리고 세션 경계에서 대화 기록을 보존합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.bankId",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Bank ID",ko:"Hindsight Bank ID"},description:{en:"Memory bank identifier (default: project name)",ko:"메모리 bank 식별자(기본값: 프로젝트 이름)"},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.bankIdPrefix",category:"intelligence",group:"Hindsight",label:{en:"Bank ID Prefix",ko:"Bank ID 접두사"},description:{en:"Prefix for Hindsight bank IDs.",ko:"Hindsight 뱅크 ID의 접두사입니다."},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.bankMission",category:"intelligence",group:"Hindsight",label:{en:"Bank Mission",ko:"Bank 미션"},description:{en:"Mission configured for the Hindsight bank.",ko:"Hindsight 뱅크에 구성된 미션입니다."},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.mentalModelAutoSeed",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Mental Model Auto-Seed",ko:"Hindsight 멘탈 모델 자동 시드"},description:{en:"At session start, create any built-in mental models (project-conventions, project-decisions, user-preferences) that do not yet exist on the bank.",ko:"세션 시작 시 bank에 아직 없는 기본 제공 멘탈 모델(project-conventions, project-decisions, user-preferences)을 생성합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.mentalModelMaxRenderChars",category:"intelligence",group:"Hindsight",label:{en:"Mental Model Max Render Chars",ko:"멘탈 모델 최대 렌더링 문자 수"},description:{en:"Maximum number of characters for rendering the mental model.",ko:"멘탈 모델 렌더링의 최대 문자 수입니다."},kind:"number",scope:"both",defaultValue:16e3,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.mentalModelsEnabled",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Mental Models",ko:"Hindsight 멘탈 모델"},description:{en:"Read curated reflect summaries (mental models) into developer instructions at boot. Loads existing models on the bank — does not write. Pair with hindsight.mentalModelAutoSeed to also auto-create the built-in seed set.",ko:"부팅 시 선별된 reflect 요약(멘탈 모델)을 개발자 지침에 불러옵니다. bank의 기존 모델만 로드하며 쓰지는 않습니다. 기본 제공 시드 세트도 자동 생성하려면 hindsight.mentalModelAutoSeed와 함께 사용하세요."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.recallBudget",category:"intelligence",group:"Hindsight",label:{en:"Recall Budget",ko:"회상 예산"},description:{en:"Budget level selected for recall.",ko:"회상에 선택된 예산 수준입니다."},kind:"enum",scope:"both",defaultValue:"mid",choices:["low","mid","high"],appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.recallContextTurns",category:"intelligence",group:"Hindsight",label:{en:"Recall Context Turns",ko:"회상 컨텍스트 턴"},description:{en:"Number of context turns used for recall.",ko:"회상에 사용하는 컨텍스트 턴 수입니다."},kind:"number",scope:"both",defaultValue:1,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.recallMaxQueryChars",category:"intelligence",group:"Hindsight",label:{en:"Recall Max Query Chars",ko:"회상 쿼리 최대 문자 수"},description:{en:"Maximum number of characters in a recall query.",ko:"회상 쿼리의 최대 문자 수입니다."},kind:"number",scope:"both",defaultValue:800,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.recallMaxTokens",category:"intelligence",group:"Hindsight",label:{en:"Recall Max Tokens",ko:"회상 최대 토큰 수"},description:{en:"Maximum number of tokens for recall.",ko:"회상의 최대 토큰 수입니다."},kind:"number",scope:"both",defaultValue:1024,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.recallTimeoutMs",category:"intelligence",group:"Hindsight",label:{en:"Recall Timeout Ms",ko:"회상 제한 시간(Ms)"},description:{en:"Recall timeout in milliseconds.",ko:"회상 제한 시간(밀리초)입니다."},kind:"number",scope:"both",defaultValue:3e4,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.recallTypes",category:"intelligence",group:"Hindsight",label:{en:"Recall Types",ko:"회상 유형"},description:{en:"Types of information included in recall.",ko:"회상에 포함할 정보 유형입니다."},kind:"array",scope:"both",defaultValue:["world","experience"],items:"string",appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.reflectTimeoutMs",category:"intelligence",group:"Hindsight",label:{en:"Reflect Timeout Ms",ko:"성찰 제한 시간(Ms)"},description:{en:"Reflection timeout in milliseconds.",ko:"성찰 제한 시간(밀리초)입니다."},kind:"number",scope:"both",defaultValue:12e4,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.requestTimeoutMs",category:"intelligence",group:"Hindsight",label:{en:"Request Timeout Ms",ko:"요청 제한 시간(Ms)"},description:{en:"Hindsight request timeout in milliseconds.",ko:"Hindsight 요청 제한 시간(밀리초)입니다."},kind:"number",scope:"both",defaultValue:3e4,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.retainContext",category:"intelligence",group:"Hindsight",label:{en:"Retain Context",ko:"컨텍스트 보존"},description:{en:"Context value used for retention.",ko:"보존에 사용하는 컨텍스트 값입니다."},kind:"string",scope:"both",defaultValue:"omp",appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.retainEveryNTurns",category:"intelligence",group:"Hindsight",label:{en:"Retain Every Nturns",ko:"N턴마다 보존"},description:{en:"Number of turns between retention operations.",ko:"보존 작업 사이의 턴 수입니다."},kind:"number",scope:"both",defaultValue:3,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.retainMission",category:"intelligence",group:"Hindsight",label:{en:"Retain Mission",ko:"미션 보존"},description:{en:"Mission used for retention.",ko:"보존에 사용하는 미션입니다."},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.retainMode",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Retain Mode",ko:"Hindsight 보존 모드"},description:{en:"full-session = upsert one document per session, last-turn = chunked",ko:"full-session = 세션당 문서 하나를 upsert, last-turn = 청크 단위"},kind:"enum",scope:"both",defaultValue:"full-session",choices:["full-session","last-turn"],appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.retainOverlapTurns",category:"intelligence",group:"Hindsight",label:{en:"Retain Overlap Turns",ko:"보존 중첩 턴"},description:{en:"Number of overlapping turns retained between retention operations.",ko:"보존 작업 간에 유지할 중첩 턴 수입니다."},kind:"number",scope:"both",defaultValue:2,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.retainTimeoutMs",category:"intelligence",group:"Hindsight",label:{en:"Retain Timeout Ms",ko:"보존 제한 시간(Ms)"},description:{en:"Retention timeout in milliseconds.",ko:"보존 제한 시간(밀리초)입니다."},kind:"number",scope:"both",defaultValue:6e4,integer:!0,appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"hindsight.scoping",category:"intelligence",group:"Hindsight",label:{en:"Hindsight Scoping",ko:"Hindsight 범위"},description:{en:"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = shared bank with project tags so global + project memories merge on recall",ko:"global = 하나의 공유 뱅크, per-project = cwd별 격리된 뱅크, per-project-tagged = 프로젝트 태그가 있는 공유 뱅크로, 회상 시 전역 메모리와 프로젝트 메모리를 병합"},kind:"enum",scope:"both",defaultValue:"per-project-tagged",choices:["global","per-project","per-project-tagged"],appliesTo:{en:"Applies to memory.backend = hindsight.",ko:"memory.backend = hindsight에 적용됩니다."}},{path:"mnemopi.autoRecall",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Auto Recall",ko:"Mnemopi 자동 회상"},description:{en:"Recall local memories into the first turn of each session",ko:"각 세션의 첫 번째 턴에 로컬 메모리를 회상합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.autoRetain",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Auto Retain",ko:"Mnemopi 자동 보존"},description:{en:"Retain completed conversation turns into local Mnemopi memory",ko:"완료된 대화 턴을 로컬 Mnemopi 메모리에 보존합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.bank",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Bank",ko:"Mnemopi 뱅크"},description:{en:"Optional shared bank base name. Per-project modes derive project-local banks from it.",ko:"선택 사항인 공유 뱅크 기본 이름입니다. 프로젝트별 모드는 이 이름에서 프로젝트 로컬 뱅크를 파생합니다."},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.dbPath",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi DB Path",ko:"Mnemopi DB 경로"},description:{en:"Optional SQLite DB path. Defaults to the agent memories directory.",ko:"선택 사항인 SQLite DB 경로입니다. 기본값은 에이전트 메모리 디렉터리입니다."},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.embeddingApiKey",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Embedding API Key",ko:"Mnemopi 임베딩 API 키"},description:{en:"Optional embedding API key passed to Mnemopi",ko:"Mnemopi에 전달할 선택 사항인 임베딩 API 키입니다."},kind:"string",scope:"global",secret:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies when Mnemopi embeddings use an authenticated API.",ko:"Mnemopi 임베딩이 인증된 API를 사용할 때 적용됩니다."}},{path:"mnemopi.embeddingApiUrl",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Embedding API URL",ko:"Mnemopi 임베딩 API URL"},description:{en:"Optional OpenAI-compatible embedding endpoint passed to Mnemopi",ko:"Mnemopi에 전달할 선택 사항인 OpenAI 호환 임베딩 엔드포인트입니다."},kind:"string",scope:"global",admin:!0,confirmation:!0,appliesTo:{en:"Applies when Mnemopi uses a remote embedding endpoint.",ko:"Mnemopi가 원격 임베딩 엔드포인트를 사용할 때 적용됩니다."}},{path:"mnemopi.embeddingModel",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Embedding Model",ko:"Mnemopi 임베딩 모델"},description:{en:"Advanced: explicit embedding model id that overrides the variant. Leave empty to use mnemopi.embeddingVariant.",ko:"고급: variant를 재정의할 명시적 임베딩 모델 id입니다. mnemopi.embeddingVariant를 사용하려면 비워 두세요."},kind:"string",scope:"both",appliesTo:{en:"Applies when Mnemopi embeddings are enabled.",ko:"Mnemopi 임베딩이 활성화된 경우 적용됩니다."}},{path:"mnemopi.embeddingVariant",category:"intelligence",group:"Mnemopi",label:{en:"Embedding variant",ko:"임베딩 변형"},description:{en:"Local embedding model family. en = stronger English model; multilingual = cross-language model. Changing this rebuilds existing memory embeddings on next start.",ko:"로컬 임베딩 모델 계열입니다. en = 더 강력한 영어 모델, multilingual = 언어 간 모델입니다. 변경하면 다음 시작 시 기존 메모리 임베딩을 재구축합니다."},kind:"enum",scope:"both",defaultValue:"en",choices:["en","multilingual"],appliesTo:{en:"Applies when Mnemopi embeddings are enabled.",ko:"Mnemopi 임베딩이 활성화된 경우 적용됩니다."}},{path:"mnemopi.enhancedRecall",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Enhanced Recall",ko:"Mnemopi 향상된 회상"},description:{en:"Enable the tiered query result cache for repeated and similar recall queries",ko:"반복되거나 유사한 회상 쿼리에 계층형 쿼리 결과 캐시를 사용합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.injectionTokenLimit",category:"intelligence",group:"Mnemopi",label:{en:"Injection Token Limit",ko:"삽입 토큰 한도"},description:{en:"Token limit for Mnemopi injection.",ko:"Mnemopi 주입의 토큰 제한입니다."},kind:"number",scope:"both",defaultValue:5e3,integer:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.llmApiKey",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi LLM API Key",ko:"Mnemopi LLM API 키"},description:{en:"Optional LLM API key for Mnemopi remote mode",ko:"Mnemopi 원격 모드용 선택적 LLM API 키입니다."},kind:"string",scope:"global",secret:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies when mnemopi.llmMode uses an authenticated remote model.",ko:"mnemopi.llmMode가 인증된 원격 모델을 사용할 때 적용됩니다."}},{path:"mnemopi.llmBaseUrl",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi LLM Base URL",ko:"Mnemopi LLM 기본 URL"},description:{en:"Optional OpenAI-compatible LLM endpoint for Mnemopi remote mode",ko:"Mnemopi 원격 모드용 선택적 OpenAI 호환 LLM 엔드포인트입니다."},kind:"string",scope:"global",admin:!0,confirmation:!0,appliesTo:{en:"Applies when mnemopi.llmMode is remote.",ko:"mnemopi.llmMode가 remote인 경우 적용됩니다."}},{path:"mnemopi.llmMode",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi LLM Mode",ko:"Mnemopi LLM 모드"},description:{en:"Use no LLM, the online tiny model (the TINY role from /models, else @smol), or a remote OpenAI-compatible endpoint",ko:"LLM을 사용하지 않거나, 온라인 소형 모델(/models의 TINY 역할, 없으면 @smol) 또는 원격 OpenAI 호환 엔드포인트를 사용합니다."},kind:"enum",scope:"both",defaultValue:"smol",choices:["none","smol","remote"],appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.llmModel",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi LLM Model",ko:"Mnemopi LLM 모델"},description:{en:"Optional LLM model name for Mnemopi remote mode",ko:"Mnemopi 원격 모드용 선택적 LLM 모델 이름입니다."},kind:"string",scope:"both",appliesTo:{en:"Applies when Mnemopi LLM enrichment is enabled.",ko:"Mnemopi LLM 보강이 활성화된 경우 적용됩니다."}},{path:"mnemopi.noEmbeddings",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Disable Embeddings",ko:"Mnemopi 임베딩 비활성화"},description:{en:"Force deterministic FTS-only recall instead of vector embeddings",ko:"벡터 임베딩 대신 결정론적 FTS 전용 회상을 강제합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.polyphonicRecall",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Polyphonic Recall",ko:"Mnemopi 다중 회상"},description:{en:"Enable 4-voice recall (vector, graph, fact, temporal) fused with reciprocal rank fusion",ko:"상호 순위 융합으로 결합된 4개 보이스 회상(벡터, 그래프, 사실, 시간)을 사용합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.proactiveLinking",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Proactive Linking",ko:"Mnemopi 선제적 연결"},description:{en:"Ingest new memories into the episodic graph as they are stored, linking them to related entities and memories",ko:"새 메모리를 저장할 때 에피소드 그래프에 수집하여 관련 엔터티 및 메모리와 연결합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.recallContextTurns",category:"intelligence",group:"Mnemopi",label:{en:"Recall Context Turns",ko:"회상 컨텍스트 턴 수"},description:{en:"Number of context turns used for Mnemopi recall.",ko:"Mnemopi 회상에 사용하는 컨텍스트 턴 수입니다."},kind:"number",scope:"both",defaultValue:3,integer:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.recallLimit",category:"intelligence",group:"Mnemopi",label:{en:"Recall Limit",ko:"회상 한도"},description:{en:"Limit on the number of Mnemopi recall results.",ko:"Mnemopi 회상 결과 수의 제한입니다."},kind:"number",scope:"both",defaultValue:8,integer:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.recallMaxQueryChars",category:"intelligence",group:"Mnemopi",label:{en:"Recall Max Query Chars",ko:"회상 쿼리 최대 문자 수"},description:{en:"Maximum number of characters in a Mnemopi recall query.",ko:"Mnemopi 회상 쿼리의 최대 문자 수입니다."},kind:"number",scope:"both",defaultValue:4e3,integer:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.retainEveryNTurns",category:"intelligence",group:"Mnemopi",label:{en:"Retain Every Nturns",ko:"N턴마다 보존"},description:{en:"Sets the Mnemopi retention interval in turns.",ko:"Mnemopi 유지 간격을 턴 단위로 설정합니다."},kind:"number",scope:"both",defaultValue:4,integer:!0,appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"mnemopi.scoping",category:"intelligence",group:"Mnemopi",label:{en:"Mnemopi Scoping",ko:"Mnemopi 범위 지정"},description:{en:"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = project-local writes plus global recall visibility",ko:"global = 하나의 공유 뱅크, per-project = cwd별로 격리된 뱅크, per-project-tagged = 프로젝트 로컬 쓰기 및 전역 회상 가시성입니다."},kind:"enum",scope:"both",defaultValue:"per-project",choices:["global","per-project","per-project-tagged"],appliesTo:{en:"Applies to memory.backend = mnemopi.",ko:"memory.backend = mnemopi에 적용됩니다."}},{path:"sharpshooter.injectionTokenLimit",category:"intelligence",group:"Sharpshooter",label:{en:"Injection Token Limit",ko:"주입 토큰 한도"},description:{en:"Sets the Sharpshooter injection limit in tokens.",ko:"Sharpshooter 삽입 한도를 토큰 단위로 설정합니다."},kind:"number",scope:"both",defaultValue:15e3,integer:!0,appliesTo:{en:"Applies to memory.backend = sharpshooter.",ko:"memory.backend = sharpshooter에 적용됩니다."}},{path:"sharpshooter.intervalMinutes",category:"intelligence",group:"Sharpshooter",label:{en:"Interval Minutes",ko:"간격(분)"},description:{en:"Sets the Sharpshooter interval in minutes.",ko:"Sharpshooter 간격을 분 단위로 설정합니다."},kind:"number",scope:"both",defaultValue:5,appliesTo:{en:"Applies to memory.backend = sharpshooter.",ko:"memory.backend = sharpshooter에 적용됩니다."}},{path:"sharpshooter.model",category:"intelligence",group:"Sharpshooter",label:{en:"Sharpshooter Model",ko:"Sharpshooter 모델"},description:{en:"Model selector for extraction/consolidation, empty = smol role",ko:"추출/통합용 모델 선택자입니다. 비어 있으면 smol 역할을 사용합니다."},kind:"string",scope:"both",appliesTo:{en:"Applies to memory.backend = sharpshooter.",ko:"memory.backend = sharpshooter에 적용됩니다."}},{path:"advisor.enabled",category:"agents",group:"Advisor",label:{en:"Enable Advisor",ko:"Advisor 활성화"},description:{en:"Pair a second model (assigned to the 'advisor' role) that passively reviews each turn and injects notes.",ko:"'advisor' 역할에 할당된 두 번째 모델을 연결해 각 턴을 수동으로 검토하고 메모를 추가합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"advisor.immuneTurns",category:"agents",group:"Advisor",label:{en:"Advisor Immune Turns",ko:"Advisor 중단 면제 턴"},description:{en:"After an advisor concern or blocker interrupts, route further concerns/blockers non-interruptingly for this many primary turns.",ko:"Advisor의 우려 사항이나 차단 요소로 중단된 후, 지정한 기본 턴 수 동안 추가 우려 사항과 차단 요소를 중단 없이 전달합니다."},kind:"number",scope:"both",defaultValue:3,integer:!0,appliesTo:{en:"Applies to advisor.enabled.",ko:"advisor.enabled에 적용됩니다."}},{path:"advisor.maxNotesPerUpdate",category:"agents",group:"Advisor",label:{en:"Advisor Max Notes Per Update",ko:"Advisor 업데이트당 최대 메모 수"},description:{en:"Maximum non-blocker advice notes accepted per advisor prompt update (1–32; UI offers 1–5 quick picks). Blockers are exempt.",ko:"Advisor 프롬프트 업데이트당 허용할 비차단 조언 메모의 최대 개수입니다(1–32; UI에서는 1–5 빠른 선택 제공). 차단 요소는 제외됩니다."},kind:"number",scope:"both",defaultValue:4,integer:!0,min:1,max:32,step:1,appliesTo:{en:"Applies to advisor.enabled.",ko:"advisor.enabled에 적용됩니다."}},{path:"advisor.syncBacklog",category:"agents",group:"Advisor",label:{en:"Advisor Sync Backlog",ko:"Advisor 동기화 지연 턴"},description:{en:"Pause the main agent for up to 30 seconds if the advisor falls behind by this many turns. Off disables catch-up delays.",ko:"Advisor가 지정한 턴 수만큼 뒤처지면 기본 에이전트를 최대 30초 동안 일시 중지합니다. Off로 설정하면 따라잡기 지연이 비활성화됩니다."},kind:"enum",scope:"both",defaultValue:"off",choices:["off","1","3","5"],appliesTo:{en:"Applies to advisor.enabled.",ko:"advisor.enabled에 적용됩니다."}},{path:"branchSummary.enabled",category:"agents",group:"General",label:{en:"Branch Summaries",ko:"브랜치 요약"},description:{en:"Prompt to summarize when leaving a branch",ko:"브랜치를 떠날 때 요약하도록 요청합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"followUpMode",category:"agents",group:"Input",label:{en:"Follow-Up Mode",ko:"후속 모드"},description:{en:"How to drain follow-up messages after a turn completes",ko:"턴 완료 후 후속 메시지를 처리하는 방식"},kind:"enum",scope:"both",defaultValue:"one-at-a-time",choices:["all","one-at-a-time"]},{path:"interruptMode",category:"agents",group:"Input",label:{en:"Interrupt Mode",ko:"중단 모드"},description:{en:"When steering messages interrupt tool execution",ko:"지시 메시지가 도구 실행을 중단하는 방식을 설정합니다."},kind:"enum",scope:"both",defaultValue:"immediate",choices:["immediate","wait"]},{path:"steeringMode",category:"agents",group:"Input",label:{en:"Steering Mode",ko:"조정 모드"},description:{en:"How to process queued messages while agent is working",ko:"에이전트가 작업 중일 때 대기열의 메시지를 처리하는 방식을 설정합니다."},kind:"enum",scope:"both",defaultValue:"one-at-a-time",choices:["all","one-at-a-time"]},{path:"includeWorkspaceTree",category:"agents",group:"Prompt",label:{en:"Include Workspace Tree",ko:"워크스페이스 트리 포함"},description:{en:"Render the workspace directory tree in the system prompt. WARNING: This can bust prompt caching across sessions when files are modified.",ko:"시스템 프롬프트에 워크스페이스 디렉터리 트리를 렌더링합니다. 경고: 파일이 수정되면 세션 간 프롬프트 캐싱이 무효화될 수 있습니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"personality",category:"agents",group:"Prompt",label:{en:"Personality",ko:"성격"},description:{en:"Communication style rendered into the system prompt's personality block",ko:"시스템 프롬프트의 성격 블록에 반영되는 커뮤니케이션 스타일입니다."},kind:"enum",scope:"both",defaultValue:"default",choices:["default","friendly","pragmatic","none"]},{path:"prewalk.enabled",category:"agents",group:"Prewalk",label:{en:"Enable Prewalk",ko:"Prewalk 사용"},description:{en:"Start on the active model, then switch to a fast/cheap model (default the 'smol' role) at the first edit/write after the plan nudge's todo list exists — the strong model plans, commits the todos, and starts the implementation before handing off. Overridable per session with --prewalk / --no-prewalk.",ko:"활성 모델로 시작한 후 계획 유도의 할 일 목록이 생성된 뒤 처음 편집하거나 쓸 때 빠르고 저렴한 모델(기본값은 'smol' 역할)로 전환합니다. 강력한 모델이 계획하고 할 일을 확정한 후 구현을 시작하고 인계합니다. 세션별로 --prewalk / --no-prewalk를 사용해 재정의할 수 있습니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"task.agentAdvisor",category:"agents",group:"Task",label:{en:"Agent Advisor",ko:"에이전트 어드바이저"},description:{en:"Per-agent advisor overrides: use 'on', 'off', or an advisor model selector for each agent name.",ko:"에이전트 이름별 어드바이저 재정의입니다. 각 값에 'on', 'off' 또는 어드바이저 모델 선택자를 사용합니다."},kind:"object",scope:"both",defaultValue:{},recordValues:"boolean-string",appliesTo:{en:"Applies per named task agent.",ko:"이름이 지정된 task 에이전트별로 적용됩니다."}},{path:"task.agentModelOverrides",category:"agents",group:"Task",label:{en:"Agent Model Overrides",ko:"에이전트 모델 재정의"},description:{en:"Configures task agent model overrides.",ko:"작업 에이전트의 모델 재정의를 구성합니다."},kind:"object",scope:"both",defaultValue:{},recordValues:"string-or-string-array",appliesTo:{en:"Applies per named task agent; each value is one model selector or an ordered selector list.",ko:"이름이 지정된 task 에이전트별로 적용되며 각 값은 하나의 모델 선택자 또는 순서가 있는 선택자 목록입니다."}},{path:"task.agentPrewalk",category:"agents",group:"Task",label:{en:"Agent Prewalk",ko:"에이전트 사전 탐색"},description:{en:"Per-agent prewalk overrides: use 'on', 'off', or a handoff model selector for each agent name.",ko:"에이전트 이름별 prewalk 재정의입니다. 각 값에 'on', 'off' 또는 인계할 모델 선택자를 사용합니다."},kind:"object",scope:"both",defaultValue:{},recordValues:"boolean-string",appliesTo:{en:"Applies per named task agent.",ko:"이름이 지정된 task 에이전트별로 적용됩니다."}},{path:"task.disabledAgents",category:"agents",group:"Task",label:{en:"Disabled Agents",ko:"비활성화된 에이전트"},description:{en:"Sets the list of disabled task agents.",ko:"비활성화할 작업 에이전트 목록을 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"task.agentIdleTtlMs",category:"agents",group:"Subagents",label:{en:"Agent Idle TTL",ko:"에이전트 유휴 TTL"},description:{en:"How long an idle subagent stays live in memory before being parked to disk (ms). Parked agents are revived automatically when messaged or resumed. 0 keeps idle agents live until exit.",ko:"유휴 하위 에이전트를 디스크에 보관하기 전에 메모리에서 활성 상태로 유지할 시간(ms)입니다. 보관된 에이전트는 메시지를 받거나 재개될 때 자동으로 복원됩니다. 0은 종료할 때까지 유휴 에이전트를 활성 상태로 유지합니다."},kind:"number",scope:"both",defaultValue:42e4,integer:!0},{path:"task.batch",category:"agents",group:"Subagents",label:{en:"Batch Task Calls",ko:"작업 호출 일괄 처리"},description:{en:"Switch the task tool to its batch shape: one call carries { context, tasks[] } — one subagent per item, with an optional per-item agent (defaulting to the session spawn-policy agent), per-item isolation, and a required shared context prepended to every assignment. With async.enabled=true, each spawn runs as an independent background agent with the normal idle/parked lifecycle; otherwise the call blocks for merged results. Disable to restore the flat single-spawn schema.",ko:"task 도구를 일괄 처리 형식으로 전환합니다. 한 번의 호출에 { context, tasks[] }를 전달하며, 항목마다 하나의 하위 에이전트와 선택적 agent를 지정할 수 있습니다. agent의 기본값은 세션 생성 정책의 에이전트이며, 항목별 격리와 모든 할당 앞에 추가되는 필수 공유 컨텍스트가 적용됩니다. async.enabled=true이면 각 생성 작업이 일반적인 유휴/보관 수명 주기를 따르는 독립 백그라운드 에이전트로 실행됩니다. 그렇지 않으면 병합된 결과가 나올 때까지 호출이 차단됩니다. 비활성화하면 평면형 단일 생성 스키마로 복원됩니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"task.speculativeLaunch",category:"agents",group:"Subagents",label:{en:"Speculative Task Launch",ko:"작업 선행 실행"},description:{en:"Start each batch subagent as soon as its tasks[] item finishes streaming instead of waiting for the whole task call. Launched agents are aborted if the finished call fails validation, is blocked, or its arguments change. Requires auto-allowed task approval and no extension tool lifecycle handlers.",ko:"전체 task 호출을 기다리지 않고 각 tasks[] 항목의 스트리밍이 끝나는 즉시 해당 일괄 하위 에이전트를 시작합니다. 완료된 호출이 유효성 검사에 실패하거나 차단되거나 인수가 바뀌면 이미 시작된 에이전트는 중단됩니다. task 승인이 자동 허용이어야 하며 확장 도구 수명 주기 핸들러가 없어야 합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when task.batch is on.",ko:"task.batch가 켜진 경우 적용됩니다."}},{path:"task.eager",category:"agents",group:"Subagents",label:{en:"Prefer Task Delegation",ko:"작업 위임 우선"},description:{en:"How strongly to push delegating work to subagents",ko:"하위 에이전트에 작업을 위임하도록 유도할 강도를 설정합니다."},kind:"enum",scope:"both",defaultValue:"default",choices:["default","preferred","always"]},{path:"task.enableEffort",category:"agents",group:"Subagents",label:{en:"Per-Task Effort",ko:"작업별 노력 수준"},description:{en:"Expose the optional effort parameter on task spawns, allowing callers to override each subagent's thinking level",ko:"작업 생성 시 선택적 effort 매개변수를 노출하여 호출자가 각 하위 에이전트의 사고 수준을 재정의할 수 있도록 합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"task.enableLsp",category:"agents",group:"Subagents",label:{en:"LSP in Subagents",ko:"하위 에이전트에서 LSP 사용"},description:{en:"Allow subagents spawned via the task tool to use the lsp tool. Off by default to keep subagents cheap; enable when LSP-aware delegation is worth the extra tokens.",ko:"task 도구로 생성된 하위 에이전트가 lsp 도구를 사용할 수 있도록 합니다. 하위 에이전트의 비용을 낮추기 위해 기본적으로 꺼져 있습니다. 추가 토큰을 사용하더라도 LSP 기반 위임이 유용할 때 활성화하세요."},kind:"boolean",scope:"both",defaultValue:!1},{path:"task.maxConcurrency",category:"agents",group:"Subagents",label:{en:"Max Concurrent Tasks",ko:"최대 동시 작업 수"},description:{en:"Maximum number of subagents running concurrently; 0 means unlimited.",ko:"동시에 실행할 수 있는 최대 하위 에이전트 수입니다. 0은 무제한을 의미합니다."},kind:"number",scope:"both",defaultValue:32,integer:!0,min:0,step:1},{path:"task.maxEffort",category:"agents",group:"Subagents",label:{en:"Maximum Per-Spawn Effort",ko:"생성당 최대 작업량"},description:{en:"Maximum reasoning effort allowed for the task tool's per-spawn effort hint. Lower values prevent callers from escalating subagents above this ceiling; the default preserves the model's full range.",ko:"task 도구의 생성당 작업량 힌트에 허용되는 최대 추론 작업량입니다. 값을 낮추면 호출자가 서브에이전트의 작업량을 이 한도보다 높일 수 없습니다. 기본값은 모델의 전체 범위를 유지합니다."},kind:"enum",scope:"both",defaultValue:"max",choices:["minimal","low","medium","high","xhigh","max"]},{path:"task.maxRecursionDepth",category:"agents",group:"Subagents",label:{en:"Max Task Recursion",ko:"최대 작업 재귀 깊이"},description:{en:"How many levels deep subagents can spawn their own subagents",ko:"서브에이전트가 자체 서브에이전트를 생성할 수 있는 최대 단계 수"},kind:"number",scope:"both",defaultValue:2,integer:!0},{path:"task.maxRuntimeMs",category:"agents",group:"Subagents",label:{en:"Max Subagent Runtime",ko:"최대 서브에이전트 실행 시간"},description:{en:"Hard wall-clock limit per subagent (ms). 0 disables it. Defense-in-depth against provider-side stream hangs that escape the inference-layer watchdog; triggers a normal subagent abort with a 'timed out' reason.",ko:"서브에이전트당 엄격한 실제 시간 제한(ms)입니다. 0이면 비활성화됩니다. 추론 계층 감시를 벗어난 제공자 측 스트림 중단에 대비한 심층 방어 기능이며, 'timed out' 사유로 서브에이전트를 정상 중단합니다."},kind:"number",scope:"both",defaultValue:0,integer:!0},{path:"task.prewalk",category:"agents",group:"Subagents",label:{en:"Generic Task Prewalk",ko:"일반 작업 사전 실행"},description:{en:"Arm prewalk for the bundled generic `task` subagent: it starts on its resolved model, plans and begins the implementation, then hands off to the 'smol' role at its first edit/write. Per-agent overrides (task.agentPrewalk, configured from the /agents hub) and user agent `prewalk` frontmatter apply regardless of this toggle.",ko:"번들 generic `task` 서브에이전트의 사전 실행을 준비합니다. 확인된 모델에서 시작해 계획을 세우고 구현을 시작한 뒤, 처음 편집/쓰기를 수행할 때 'smol' 역할로 넘깁니다. 에이전트별 재정의(task.agentPrewalk, /agents 허브에서 구성)와 사용자 에이전트의 `prewalk` frontmatter는 이 설정과 관계없이 적용됩니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"task.softRequestBudget",category:"agents",group:"Subagents",label:{en:"Soft Subagent Request Budget",ko:"서브에이전트 소프트 요청 예산"},description:{en:"Soft per-subagent request budget (assistant requests per run). Crossing it injects a wrap-up steering notice (see task.softRequestBudgetNotice); at 1.5x the budget the run is force-stopped and the agent must yield its partial findings. 0 disables the guard. Bundled scout/sonic agents cap out at a lower built-in budget, so a value below that cap still applies to them.",ko:"서브에이전트별 소프트 요청 예산(실행당 어시스턴트 요청 수)입니다. 초과하면 마무리를 유도하는 안내가 삽입됩니다(task.softRequestBudgetNotice 참조). 예산의 1.5x에 도달하면 실행이 강제 중지되고 에이전트는 부분 결과를 제출해야 합니다. 0이면 보호 기능이 비활성화됩니다. 번들 scout/sonic 에이전트에는 더 낮은 기본 제공 한도가 있으므로, 이 한도보다 낮은 값도 해당 에이전트에 적용됩니다."},kind:"number",scope:"both",defaultValue:200,integer:!0},{path:"task.softRequestBudgetNotice",category:"agents",group:"Subagents",label:{en:"Soft Request Budget Notice",ko:"소프트 요청 예산 알림"},description:{en:"Inject one steering notice when a subagent crosses its soft request budget, asking it to wrap up before the 1.5x forced-yield stop.",ko:"서브에이전트가 소프트 요청 예산을 초과하면 1.5x 강제 제출 중지 전에 마무리하도록 유도하는 안내를 한 번 삽입합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"task.isolation.apply",category:"agents",group:"Isolation",label:{en:"Apply Isolated Changes",ko:"격리된 변경 사항 적용"},description:{en:"Automatically apply successful isolated task changes to the parent checkout; disable to retain patch or branch artifacts",ko:"성공한 격리 작업의 변경 사항을 상위 체크아웃에 자동 적용합니다. 비활성화하면 패치 또는 브랜치 아티팩트를 유지합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"task.isolation.commits",category:"agents",group:"Isolation",label:{en:"Isolation Commit Style",ko:"격리 커밋 스타일"},description:{en:"Commit message style for nested repo changes (generic or AI-generated)",ko:"중첩 저장소 변경 사항의 커밋 메시지 스타일(generic 또는 AI-generated)"},kind:"enum",scope:"both",defaultValue:"generic",choices:["generic","ai"]},{path:"task.isolation.enabled",category:"agents",group:"Isolation",label:{en:"Isolate Subagents",ko:"서브에이전트 격리"},description:{en:"Run subagents in an isolated copy of the checkout and integrate their changes afterwards",ko:"체크아웃의 격리된 복사본에서 서브에이전트를 실행한 후 변경 사항을 통합합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"task.isolation.merge",category:"agents",group:"Isolation",label:{en:"Isolation Merge Strategy",ko:"격리 병합 전략"},description:{en:"How isolated task changes are integrated (patch apply or branch merge)",ko:"격리 작업의 변경 사항을 통합하는 방식(패치 적용 또는 브랜치 병합)"},kind:"enum",scope:"both",defaultValue:"patch",choices:["patch","branch"]},{path:"todo.eager",category:"agents",group:"Todos",label:{en:"Create Todos Automatically",ko:"할 일 자동 생성"},description:{en:"How strongly to push automatic todo-list creation after the first message",ko:"첫 메시지 후 할 일 목록 자동 생성을 얼마나 강하게 유도할지 설정합니다."},kind:"enum",scope:"both",defaultValue:"default",choices:["default","preferred","always"]},{path:"todo.reminders",category:"agents",group:"Todos",label:{en:"Todo Reminders",ko:"할 일 알림"},description:{en:"Remind the agent to complete todos before stopping",ko:"에이전트가 중지하기 전에 할 일을 완료하도록 알립니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"todo.remindersMax",category:"agents",group:"Todos",label:{en:"Todo Reminder Limit",ko:"할 일 알림 한도"},description:{en:"Maximum number of todo reminders before giving up",ko:"포기하기 전까지 표시할 최대 할 일 알림 수"},kind:"number",scope:"both",defaultValue:3,integer:!0},{path:"todo.enabled",category:"agents",group:"Available Tools",label:{en:"Todos",ko:"할 일"},description:{en:"Enable the todo tool for task tracking",ko:"작업 추적을 위한 todo 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"magicKeywords.enabled",category:"agents",group:"Magic Keywords",label:{en:"Magic Keywords",ko:"매직 키워드"},description:{en:"Enable hidden notices for standalone ultrathink, orchestrate, workflowz, jevify keywords",ko:"단독으로 입력한 ultrathink, orchestrate, workflowz, jevify 키워드에 숨겨진 안내를 추가합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"magicKeywords.ultrathink",category:"agents",group:"Magic Keywords",label:{en:"Ultrathink Keyword",ko:"Ultrathink 키워드"},description:{en:"Let standalone ultrathink request maximum automatic thinking and append its hidden notice",ko:"단독으로 입력한 ultrathink가 최대 자동 사고를 요청하고 숨겨진 안내를 추가하도록 합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when magicKeywords.enabled is on.",ko:"magicKeywords.enabled가 켜진 경우 적용됩니다."}},{path:"magicKeywords.orchestrate",category:"agents",group:"Magic Keywords",label:{en:"Orchestrate Keyword",ko:"Orchestrate 키워드"},description:{en:"Let standalone orchestrate append its hidden multi-agent orchestration notice",ko:"단독으로 입력한 orchestrate가 숨겨진 다중 에이전트 오케스트레이션 안내를 추가하도록 합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when magicKeywords.enabled is on and the task tool is available.",ko:"magicKeywords.enabled가 켜져 있고 task 도구를 사용할 수 있을 때 적용됩니다."}},{path:"magicKeywords.workflow",category:"agents",group:"Magic Keywords",label:{en:"Workflow Keyword",ko:"Workflow 키워드"},description:{en:"Let standalone workflowz append its hidden eval workflow notice",ko:"단독으로 입력한 workflowz가 숨겨진 eval 워크플로 안내를 추가하도록 합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when magicKeywords.enabled is on and the task and eval tools are available.",ko:"magicKeywords.enabled가 켜져 있고 task 및 eval 도구를 사용할 수 있을 때 적용됩니다."}},{path:"magicKeywords.jevify",category:"agents",group:"Magic Keywords",label:{en:"Jevify Keyword",ko:"Jevify 키워드"},description:{en:"Let standalone jevify append its hidden bulk-judge classification notice",ko:"단독으로 입력한 jevify가 숨겨진 일괄 판정 분류 안내를 추가하도록 합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when magicKeywords.enabled is on and the eval tool is available.",ko:"magicKeywords.enabled가 켜져 있고 eval 도구를 사용할 수 있을 때 적용됩니다."}},{path:"ask.enabled",category:"tools",group:"Available Tools",label:{en:"Ask",ko:"질문"},description:{en:"Enable the ask tool for interactive user questions",ko:"대화형 사용자 질문을 위한 ask 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"ask.timeout",category:"tools",group:"Notifications",label:{en:"Ask Timeout",ko:"질문 제한 시간"},description:{en:"Auto-select the recommended ask option after this many seconds (0 disables)",ko:"지정한 시간(초)이 지나면 ask 도구의 권장 옵션을 자동으로 선택합니다(0은 비활성화)."},kind:"number",scope:"both",defaultValue:0,integer:!0,appliesTo:{en:"Applies when ask.enabled is on; ignored in plan mode.",ko:"ask.enabled가 켜진 경우 적용되며 계획 모드에서는 무시됩니다."}},{path:"astEdit.enabled",category:"tools",group:"Available Tools",label:{en:"AST Edit",ko:"AST 편집"},description:{en:"Enable the ast_edit tool for structural AST rewrites",ko:"구조적 AST 재작성을 위한 ast_edit 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"astGrep.enabled",category:"tools",group:"Available Tools",label:{en:"AST Grep",ko:"AST 검색"},description:{en:"Enable the ast_grep tool for structural AST search",ko:"구조적 AST 검색을 위한 ast_grep 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"browser.enabled",category:"tools",group:"Available Tools",label:{en:"Browser",ko:"브라우저"},description:{en:"Enable the browser eval prelude for scripted Chromium automation (Puppeteer)",ko:"스크립트 기반 Chromium 자동화(Puppeteer)를 위한 브라우저 eval 프렐류드를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"computer.enabled",category:"tools",group:"Available Tools",label:{en:"Computer",ko:"컴퓨터"},description:{en:"Enable the scriptable host-desktop eval prelude (screenshots, input, accessibility)",ko:"스크립팅 가능한 호스트 데스크톱 eval 프렐류드(스크린샷, 입력, 접근성)를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0},{path:"debug.enabled",category:"tools",group:"Available Tools",label:{en:"Debug",ko:"디버그"},description:{en:"Enable the debug tool for DAP-based debugging",ko:"DAP 기반 디버깅용 디버그 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"fetch.enabled",category:"tools",group:"Available Tools",label:{en:"Read URLs",ko:"URL 읽기"},description:{en:"Allow the read tool to fetch and process URLs",ko:"read 도구가 URL을 가져와 처리하도록 허용합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"generate_image.enabled",category:"tools",group:"Available Tools",label:{en:"Generate Image",ko:"이미지 생성"},description:{en:"Enable the generate_image tool (text-to-image generation and editing). Exposed as an xd:// device when tools.xdev is on.",ko:"generate_image 도구(텍스트 기반 이미지 생성 및 편집)를 활성화합니다. tools.xdev가 켜져 있으면 xd:// 장치로 노출됩니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"speechgen.enabled",category:"tools",group:"Available Tools",label:{en:"Speech Generation",ko:"음성 생성"},description:{en:"Enable the tts tool for on-device (Kokoro) or xAI Grok Voice speech-file synthesis",ko:"온디바이스(Kokoro) 또는 xAI Grok Voice로 음성 파일을 합성하는 tts 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"speech.enabled",category:"tools",group:"Speech",label:{en:"Speech Vocalization",ko:"음성 읽기"},description:{en:"Speak the assistant's output aloud through the speakers as it streams",ko:"어시스턴트 출력이 스트리밍되는 동안 스피커로 소리 내어 읽어 줍니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"In ompgui (RPC) sessions only ask-tool questions are spoken, on the host machine's speakers.",ko:"ompgui(RPC) 세션에서는 ask 도구 질문만 호스트 기기의 스피커로 읽어 줍니다."}},{path:"speech.voice",category:"tools",group:"Speech",label:{en:"Speech Vocalization Voice",ko:"음성 읽기 목소리"},description:{en:"Kokoro voice used when speaking the assistant's output aloud",ko:"어시스턴트 출력을 소리 내어 읽을 때 사용할 Kokoro 목소리입니다."},kind:"enum",scope:"both",defaultValue:"af_heart",choices:["af_heart","af_bella","af_nicole","af_aoede","af_kore","af_sarah","am_michael","am_fenrir","am_puck","bf_emma","bm_george","bm_fable"],appliesTo:{en:"Applies when speech.enabled is on.",ko:"speech.enabled가 켜진 경우 적용됩니다."}},{path:"speech.enhanced",category:"tools",group:"Speech",label:{en:"Enhanced Speech Rewriting",ko:"향상된 음성 변환"},description:{en:"Rewrite assistant output into natural spoken prose with the tiny/smol model before synthesis (describes code, drops links and markdown). Falls back to mechanical cleanup on failure",ko:"합성하기 전에 tiny/smol 모델로 어시스턴트 출력을 자연스러운 구어체로 다시 씁니다(코드는 설명하고 링크와 마크다운은 제거). 실패하면 기계적 정리로 대체합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies when speech.enabled is on.",ko:"speech.enabled가 켜진 경우 적용됩니다."}},{path:"github.enabled",category:"tools",group:"Available Tools",label:{en:"GitHub CLI",ko:"GitHub CLI"},description:{en:"Enable the github tool (op-based dispatch for repository, issue, pull request, diff, search, checkout, push, and Actions watch workflows)",ko:"github 도구를 활성화합니다(저장소, 이슈, 풀 리퀘스트, diff, 검색, checkout, push 및 Actions watch 워크플로를 위한 작업 기반 디스패치)."},kind:"boolean",scope:"both",defaultValue:!1},{path:"github.cache.enabled",category:"tools",group:"GitHub",label:{en:"GitHub View Cache",ko:"GitHub 조회 캐시"},description:{en:"Cache rendered issue/PR view output in ~/.omp/cache/github-cache.db so repeated reads are free",ko:"렌더링된 이슈/PR 조회 결과를 ~/.omp/cache/github-cache.db에 캐시하여 반복 조회 비용을 없앱니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when github.enabled is on.",ko:"github.enabled가 켜진 경우 적용됩니다."}},{path:"github.cache.softTtlSec",category:"tools",group:"GitHub",label:{en:"GitHub Cache Soft TTL",ko:"GitHub 캐시 소프트 TTL"},description:{en:"Within this window, cached issue/PR view rows are returned directly (seconds; default 5 minutes)",ko:"이 기간 안에는 캐시된 이슈/PR 조회 결과를 바로 반환합니다(초 단위, 기본값 5분)."},kind:"number",scope:"both",defaultValue:300,integer:!0,appliesTo:{en:"Applies when github.cache.enabled is on.",ko:"github.cache.enabled가 켜진 경우 적용됩니다."}},{path:"github.cache.hardTtlSec",category:"tools",group:"GitHub",label:{en:"GitHub Cache Hard TTL",ko:"GitHub 캐시 하드 TTL"},description:{en:"Past the soft TTL the cached row is returned and refreshed in the background; past the hard TTL it is dropped (seconds; default 7 days)",ko:"소프트 TTL이 지나면 캐시 항목을 반환하면서 백그라운드에서 새로 고치고, 하드 TTL이 지나면 삭제합니다(초 단위, 기본값 7일)."},kind:"number",scope:"both",defaultValue:604800,integer:!0,appliesTo:{en:"Applies when github.cache.enabled is on.",ko:"github.cache.enabled가 켜진 경우 적용됩니다."}},{path:"glob.enabled",category:"tools",group:"Available Tools",label:{en:"Glob",ko:"Glob"},description:{en:"Enable the glob tool for glob-based file lookup",ko:"glob 기반 파일 검색용 glob 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"grep.enabled",category:"tools",group:"Available Tools",label:{en:"Grep",ko:"Grep"},description:{en:"Enable the grep tool for regex content search",ko:"정규식 콘텐츠 검색용 grep 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"grep.contextBefore",category:"tools",group:"Grep & Browser",label:{en:"Grep Context Before",ko:"Grep 앞쪽 컨텍스트"},description:{en:"Lines of context before each grep match",ko:"각 grep 일치 항목 앞에 표시할 컨텍스트 줄 수입니다."},kind:"number",scope:"both",defaultValue:1,integer:!0},{path:"grep.contextAfter",category:"tools",group:"Grep & Browser",label:{en:"Grep Context After",ko:"Grep 뒤쪽 컨텍스트"},description:{en:"Lines of context after each grep match",ko:"각 grep 일치 항목 뒤에 표시할 컨텍스트 줄 수입니다."},kind:"number",scope:"both",defaultValue:3,integer:!0},{path:"find.enabled",category:"tools",group:"Available Tools",label:{en:"Find (semantic grep)",ko:"Find(의미 기반 검색)"},description:{en:"Enable the find tool: natural-language search for files and line ranges, judged by the judge model role. Auto enables it only when the judge role resolves to a native TypeSafe jev model",ko:"자연어로 파일과 줄 범위를 검색하고 judge 모델 역할이 판정하는 find 도구를 활성화합니다. auto는 judge 역할이 네이티브 TypeSafe jev 모델로 확인될 때만 활성화합니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","on","off"],appliesTo:{en:"Auto requires the judge model role to resolve to a native TypeSafe jev model.",ko:"auto는 judge 모델 역할이 네이티브 TypeSafe jev 모델로 확인될 때만 활성화됩니다."}},{path:"async.enabled",category:"tools",group:"Execution",label:{en:"Async Execution",ko:"비동기 실행"},description:{en:"Enable async bash commands and background task execution",ko:"비동기 bash 명령과 백그라운드 작업 실행을 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"tools.abortOnFabricatedResult",category:"tools",group:"Execution",label:{en:"Abort On Fabricated Tool Result",ko:"조작된 도구 결과 감지 시 중단"},description:{en:"With in-band tool calls, stop the model immediately when it starts hallucinating a tool result mid-turn. Disable to let the model finish generating and discard the fabricated continuation instead.",ko:"인밴드 도구 호출에서 모델이 응답 도중 도구 결과를 환각하기 시작하면 즉시 중지합니다. 비활성화하면 모델이 생성을 마칠 때까지 기다린 후 조작된 후속 내용을 폐기합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"tools.intentTracing",category:"tools",group:"Execution",label:{en:"Intent Tracing",ko:"의도 추적"},description:{en:"Ask the agent to describe the intent of each tool call before executing it",ko:"각 도구 호출을 실행하기 전에 에이전트가 호출 의도를 설명하도록 합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"tools.maxTimeout",category:"tools",group:"Execution",label:{en:"Max Tool Timeout",ko:"최대 도구 시간 제한"},description:{en:"Maximum timeout in seconds the agent can set for any tool (0 = no limit)",ko:"에이전트가 도구에 설정할 수 있는 최대 시간 제한(초)(0 = 제한 없음)"},kind:"number",scope:"both",defaultValue:0,integer:!0},{path:"extensionHandlers.toolCallTimeoutMs",category:"tools",group:"Extensions",label:{en:"Tool Call Handler Timeout (ms)",ko:"도구 호출 핸들러 제한 시간(ms)"},description:{en:"Positive finite active-work timeout for extension tool_call handlers; invalid values use 30000ms, and time awaiting OMP-owned dialogs does not count",ko:"확장 tool_call 핸들러의 실제 작업 제한 시간(양의 유한값)입니다. 잘못된 값은 30000ms를 사용하며 OMP 대화 상자를 기다리는 시간은 포함되지 않습니다."},kind:"number",scope:"both",defaultValue:3e4,integer:!0},{path:"async.maxJobs",category:"tools",group:"Async",label:{en:"Max Jobs",ko:"최대 작업 수"},description:{en:"Maximum number of asynchronous jobs.",ko:"비동기 작업의 최대 개수입니다."},kind:"number",scope:"both",defaultValue:100,integer:!0},{path:"bash.allowCompoundCommands",category:"tools",group:"Bash",label:{en:"Allow Compound Commands",ko:"복합 명령 허용"},description:{en:"Evaluate literal && chains per command; unmatched commands use normal bash approval policy and mode",ko:"리터럴 && 체인을 명령별로 평가합니다. 일치하지 않는 명령에는 일반 bash 승인 정책과 모드를 적용합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0,appliesTo:{en:"Applies to bash.enabled.",ko:"bash.enabled에 적용됩니다."}},{path:"bash.autoBackground.enabled",category:"tools",group:"Bash",label:{en:"Bash Auto-Background",ko:"Bash 자동 백그라운드 실행"},description:{en:"Automatically background long-running bash commands and deliver the result later",ko:"오래 실행되는 bash 명령을 자동으로 백그라운드에서 실행하고 결과를 나중에 전달합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,appliesTo:{en:"Applies to bash.enabled.",ko:"bash.enabled에 적용됩니다."}},{path:"bash.autoBackground.thresholdMs",category:"tools",group:"Bash",label:{en:"Threshold Ms",ko:"임곗값(ms)"},description:{en:"Threshold in milliseconds for automatically backgrounding Bash execution.",ko:"Bash 실행을 자동으로 백그라운드 처리하기 위한 임계값(밀리초)입니다."},kind:"number",scope:"both",defaultValue:6e4,integer:!0,admin:!0,appliesTo:{en:"Applies to bash.enabled.",ko:"bash.enabled에 적용됩니다."}},{path:"bash.direnv",category:"tools",group:"Bash",label:{en:"direnv Auto-Load",ko:"direnv 자동 로드"},description:{en:"Auto-load a repo's direnv/devenv `.envrc` into the bash session so devenv tools and env vars are present without manual `direnv exec`. Honors direnv's allow list: an `.envrc` you haven't `direnv allow`ed is never executed",ko:"저장소의 direnv/devenv `.envrc`를 bash 세션에 자동으로 로드하여 수동 `direnv exec` 없이 devenv 도구와 환경 변수를 사용합니다. direnv 허용 목록을 따르므로 `direnv allow`하지 않은 `.envrc`는 실행되지 않습니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","off"],admin:!0,appliesTo:{en:"Applies to bash.enabled.",ko:"bash.enabled에 적용됩니다."}},{path:"bash.direnvLoadTimeoutMs",category:"tools",group:"Bash",label:{en:"direnv Load Timeout (ms)",ko:"direnv 로드 제한 시간(ms)"},description:{en:"Max wait for the first `direnv export` (a cold devenv shell can be slow); on timeout the session runs without the direnv env",ko:"첫 `direnv export`를 기다리는 최대 시간입니다(초기 devenv 셸은 느릴 수 있음). 시간 초과 시 direnv 환경 없이 세션을 실행합니다."},kind:"number",scope:"both",defaultValue:3e4,integer:!0,admin:!0,appliesTo:{en:"Applies to bash.enabled.",ko:"bash.enabled에 적용됩니다."}},{path:"bash.enabled",category:"tools",group:"Bash",label:{en:"Bash",ko:"Bash"},description:{en:"Enable the bash tool for shell command execution",ko:"셸 명령 실행을 위한 bash 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"bash.patterns",category:"tools",group:"Bash",label:{en:"Bash Approval Patterns",ko:"Bash 승인 패턴"},description:{en:"Ordered bash command approval rules. Each item has match and approval fields; only '*' wildcards are supported.",ko:"순서대로 적용되는 bash 명령 승인 규칙입니다. 각 항목에는 match와 approval 필드가 있으며, '*' 와일드카드만 지원됩니다."},kind:"array",scope:"both",defaultValue:[],items:"object",admin:!0,confirmation:!0,appliesTo:{en:"Applies to bash.enabled.",ko:"bash.enabled에 적용됩니다."}},{path:"bashInterceptor.enabled",category:"tools",group:"Bash",label:{en:"Bash Interceptor",ko:"Bash 인터셉터"},description:{en:"Block shell commands that have dedicated tools",ko:"전용 도구가 있는 셸 명령을 차단합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0},{path:"shellMinimizer.enabled",category:"tools",group:"Bash",label:{en:"Shell Minimizer",ko:"셸 출력 최소화"},description:{en:"Compress verbose shell output (git, npm, cargo, etc.) before returning it to the agent",ko:"에이전트에 반환하기 전에 상세한 셸 출력(git, npm, cargo 등)을 압축합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0},{path:"shellMinimizer.sourceOutlineLevel",category:"tools",group:"Bash",label:{en:"Shell Minimizer Source Outline",ko:"셸 최소화 소스 개요"},description:{en:"Source outline mode for cat/read of source files: default or aggressive",ko:"소스 파일을 cat/read할 때 사용할 소스 개요 모드: default 또는 aggressive"},kind:"enum",scope:"both",defaultValue:"default",choices:["default","aggressive"],admin:!0},{path:"bashInterceptor.patterns",category:"tools",group:"Bash Interceptor",label:{en:"Patterns",ko:"패턴"},description:{en:"Patterns used by the Bash interceptor, with the corresponding tool and message for each pattern.",ko:"Bash 인터셉터가 사용하는 패턴과 각 패턴에 대응하는 도구 및 메시지입니다."},kind:"array",scope:"both",defaultValue:[{pattern:"^\\s*(cat|head|tail|less|more)\\s+",tool:"read",message:"Use the `read` tool instead of cat/head/tail. It provides better context and handles binary files."},{pattern:"^\\s*(grep|rg|ripgrep|ag|ack)\\s+",tool:"grep",message:"Use the `grep` tool instead of grep/rg. It respects .gitignore and provides structured output."},{pattern:"^\\s*(find|fd|locate)\\s+.*(-name|-iname|-type|--type|-glob)",tool:"glob",message:"Use the `glob` tool instead of find/fd. It respects .gitignore and is faster for glob patterns."},{pattern:"^\\s*sed\\s+(-i|--in-place)",tool:"edit",message:"Use the `edit` tool instead of sed -i. It provides diff preview and fuzzy matching."},{pattern:"^\\s*perl\\s+.*-[pn]?i",tool:"edit",message:"Use the `edit` tool instead of perl -i. It provides diff preview and fuzzy matching."},{pattern:"^\\s*awk\\s+.*-i\\s+inplace",tool:"edit",message:"Use the `edit` tool instead of awk -i inplace. It provides diff preview and fuzzy matching."},{pattern:"^\\s*(echo|printf|cat\\s*<<)\\s+(?:(?:[^\"'>]|\"[^\"]*\"|'[^']*')|(?<!\\|)>{1,2}\\|?\\s*(?:\"/dev/(?:null|tty|stdout|stderr)\"|'/dev/(?:null|tty|stdout|stderr)'|/dev/(?:null|tty|stdout|stderr))(?:[\\s;&|]|$))*(?<!\\|)>{1,2}\\|?\\s*(?!(?:\"/dev/(?:null|tty|stdout|stderr)\"|'/dev/(?:null|tty|stdout|stderr)'|/dev/(?:null|tty|stdout|stderr))(?:[\\s;&|]|$))[$\\w./~\"'-]",tool:"write",message:"Use the `write` tool instead of echo/cat redirection. It handles encoding and provides confirmation."},{pattern:"^\\s*nohup\\s+|(?<!&)\\&\\s*$",tool:"bash",message:"Use `bash` with `name` instead of nohup or background shell syntax so the service stays observable and managed."},{pattern:"^\\s*(?:(?:bun|npm|pnpm|yarn)\\s+(?:run\\s+)?(?:dev|start)(?:\\s|$)|(?:vite|next\\s+dev|nuxt\\s+dev|nodemon|lldb|gdb|tail\\s+-f)(?:\\s|$)|docker\\s+compose\\s+up(?!.*(?:\\s-d(?:\\s|$)|--detach))(?:\\s|$))",tool:"bash",message:"Use `bash` with `name` for services, watchers, and debuggers; inspect with `read proc://<name>`."},{pattern:"^\\s*(?:(?:bun|npm|pnpm|yarn)\\s+(?:run\\s+)?\\S+|cargo\\s+watch|watchexec|pytest|vitest|jest|tsc)(?:.|\\n)*(?:--watch|-w)(?:\\s|$)",tool:"bash",message:"Use `bash` with `name` for watch mode so its output, input, and lifecycle stay managed."}],items:"object",admin:!0,confirmation:!0},{path:"browser.cdpUrl",category:"tools",group:"Grep & Browser",label:{en:"Browser CDP URL",ko:"브라우저 CDP URL"},description:{en:"Default HTTP CDP discovery endpoint (for example http://127.0.0.1:9222) to attach to instead of launching a browser. Explicit app.cdp_url or app.path on the tool call take precedence.",ko:"브라우저를 실행하는 대신 연결할 기본 HTTP CDP 검색 엔드포인트입니다(예: http://127.0.0.1:9222). 도구 호출에 명시된 app.cdp_url 또는 app.path가 우선합니다."},kind:"string",scope:"both",admin:!0,confirmation:!0,appliesTo:{en:"Applies when Browser Relay is off; attaches to the configured CDP host instead of launching Chromium.",ko:"브라우저 릴레이가 꺼져 있을 때 적용되며 Chromium을 실행하는 대신 설정된 CDP 호스트에 연결합니다."}},{path:"browser.freezeOnTurnEnd",category:"tools",group:"Grep & Browser",label:{en:"Freeze Browser Tabs On Turn End",ko:"턴 종료 시 브라우저 탭 정지"},description:{en:"Freeze OMP-owned headless browser tabs when a turn settles so animated pages stop burning CPU/GPU while idle. Tabs unfreeze automatically on next use; pass persist:true on open to opt a tab out.",ko:"턴이 완료되면 OMP 소유의 헤드리스 브라우저 탭을 정지하여 유휴 상태에서 애니메이션 페이지가 CPU/GPU를 소모하지 않게 합니다. 다음 사용 시 자동으로 재개되며, open에 persist:true를 전달하면 해당 탭을 제외할 수 있습니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,appliesTo:{en:"Applies only to OMP-launched headless browser tabs.",ko:"OMP가 실행한 헤드리스 브라우저 탭에만 적용됩니다."}},{path:"browser.headless",category:"tools",group:"Grep & Browser",label:{en:"Headless Browser",ko:"헤드리스 브라우저"},description:{en:"Launch browser in headless mode (disable to show browser UI)",ko:"브라우저를 헤드리스 모드로 실행합니다(브라우저 UI를 표시하려면 비활성화)."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies only when OMP launches Chromium itself.",ko:"OMP가 Chromium을 직접 실행할 때만 적용됩니다."}},{path:"browser.idleCloseSec",category:"tools",group:"Grep & Browser",label:{en:"Browser Idle Close Timeout",ko:"브라우저 유휴 종료 시간"},description:{en:"Close OMP-owned headless browser tabs idle longer than this many seconds (0 = never; session dispose still reaps). Applies only to OMP-launched headless tabs, never relay/CDP/spawned browsers or other sessions' tabs.",ko:"지정한 초보다 오래 유휴 상태인 OMP 소유의 헤드리스 브라우저 탭을 닫습니다(0 = 닫지 않음, 세션 폐기 시에는 정리됨). OMP가 실행한 헤드리스 탭에만 적용되며 relay/CDP/별도 생성 브라우저나 다른 세션의 탭에는 적용되지 않습니다."},kind:"number",scope:"both",defaultValue:1800,admin:!0,appliesTo:{en:"Applies only to OMP-launched headless browser tabs.",ko:"OMP가 실행한 헤드리스 브라우저 탭에만 적용됩니다."}},{path:"browser.relay",category:"tools",group:"Grep & Browser",label:{en:"Browser Relay",ko:"브라우저 릴레이"},description:{en:"Drive your own Chrome tabs through the omp browser relay. Install the extension once (`omp browser-relay install`); the relay server auto-starts when the browser prelude needs it. Takes precedence over Browser CDP URL; set PI_BROWSER_RELAY=0 or PI_BROWSER_RELAY=1 to override.",ko:"omp 브라우저 릴레이를 통해 사용자의 Chrome 탭을 제어합니다. 확장 프로그램을 한 번 설치하세요(`omp browser-relay install`). 브라우저 프렐류드에서 필요할 때 릴레이 서버가 자동으로 시작됩니다. 브라우저 CDP URL보다 우선하며, PI_BROWSER_RELAY=0 또는 PI_BROWSER_RELAY=1로 재정의할 수 있습니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0,appliesTo:{en:"Applies to browser automation and takes precedence over Browser CDP URL.",ko:"브라우저 자동화에 적용되며 브라우저 CDP URL보다 우선합니다."}},{path:"browser.relayUrl",category:"tools",group:"Grep & Browser",label:{en:"Browser Relay URL",ko:"브라우저 릴레이 URL"},description:{en:"omp browser relay endpoint (default http://127.0.0.1:9224).",ko:"omp 브라우저 릴레이 엔드포인트입니다(기본값 http://127.0.0.1:9224)."},kind:"string",scope:"both",admin:!0,confirmation:!0,appliesTo:{en:"Applies when Browser Relay is enabled.",ko:"브라우저 릴레이가 활성화된 경우 적용됩니다."}},{path:"browser.screenshotDir",category:"tools",group:"Grep & Browser",label:{en:"Screenshot Directory",ko:"스크린샷 디렉터리"},description:{en:"Directory to save screenshots. If unset, screenshots go to a temp file. Supports ~. Examples: ~/Downloads, ~/Desktop, /sdcard/Download (Android)",ko:"스크린샷을 저장할 디렉터리입니다. 설정하지 않으면 임시 파일에 저장됩니다. ~를 지원합니다. 예: ~/Downloads, ~/Desktop, /sdcard/Download (Android)"},kind:"string",scope:"both",admin:!0,appliesTo:{en:"Applies to browser.enabled.",ko:"browser.enabled에 적용됩니다."}},{path:"computer.display",category:"tools",group:"Computer",label:{en:"Computer Display",ko:"컴퓨터 디스플레이"},description:{en:"Composite all displays or select a native display id",ko:"모든 디스플레이를 합성하거나 네이티브 디스플레이 id를 선택합니다."},kind:"string",scope:"both",defaultValue:"all",admin:!0,confirmation:!0,appliesTo:{en:"Applies to computer.enabled.",ko:"computer.enabled에 적용됩니다."}},{path:"computer.maxHeight",category:"tools",group:"Computer",label:{en:"Computer Screenshot Height",ko:"컴퓨터 스크린샷 높이"},description:{en:"Maximum composite screenshot height in pixels",ko:"합성 스크린샷의 최대 높이(픽셀)"},kind:"number",scope:"both",defaultValue:2400,integer:!0,admin:!0,appliesTo:{en:"Applies to computer.enabled.",ko:"computer.enabled에 적용됩니다."}},{path:"computer.maxWidth",category:"tools",group:"Computer",label:{en:"Computer Screenshot Width",ko:"컴퓨터 스크린샷 너비"},description:{en:"Maximum composite screenshot width in pixels",ko:"합성 스크린샷의 최대 너비(픽셀)"},kind:"number",scope:"both",defaultValue:3840,integer:!0,admin:!0,appliesTo:{en:"Applies to computer.enabled.",ko:"computer.enabled에 적용됩니다."}},{path:"edit.autoRepair.enabled",category:"tools",group:"Editing",label:{en:"Auto-Repair Parse Regressions",ko:"구문 분석 오류 자동 복구"},description:{en:"When an edit breaks a file's AST parse, ask the smol model to fix the broken region (validated by re-parse; falls back to a warning)",ko:"편집으로 파일의 AST 구문 분석이 깨지면 smol 모델에 손상된 영역의 수정을 요청합니다(재분석으로 검증하며, 실패 시 경고로 대체)."},kind:"boolean",scope:"both",defaultValue:!1},{path:"edit.blockAutoGenerated",category:"tools",group:"Editing",label:{en:"Block Auto-Generated Files",ko:"자동 생성 파일 차단"},description:{en:"Prevent editing of files that appear to be auto-generated (protoc, sqlc, swagger, etc.)",ko:"자동 생성된 것으로 보이는 파일(protoc, sqlc, swagger 등)의 편집을 방지합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"edit.enforceSeenLines",category:"tools",group:"Editing",label:{en:"Enforce Seen-Line Guard",ko:"확인된 줄 보호 적용"},description:{en:"Reject edits anchored on lines a prior read/search never displayed in full",ko:"이전 읽기/검색에서 전체가 표시되지 않은 줄을 기준으로 한 편집을 거부합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"edit.fuzzyMatch",category:"tools",group:"Editing",label:{en:"Fuzzy Match",ko:"퍼지 일치"},description:{en:"Accept high-confidence fuzzy matches for whitespace differences",ko:"공백 차이에 대해 신뢰도가 높은 퍼지 일치를 허용합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"edit.fuzzyThreshold",category:"tools",group:"Editing",label:{en:"Fuzzy Match Threshold",ko:"퍼지 일치 임계값"},description:{en:"Similarity threshold (0-1) for accepting fuzzy matches",ko:"퍼지 일치를 허용할 유사도 임계값(0-1)"},kind:"number",scope:"both",defaultValue:.95,integer:!1,min:0,max:1,step:.01},{path:"edit.mode",category:"tools",group:"Editing",label:{en:"Edit Mode",ko:"편집 모드"},description:{en:"Select the edit tool variant (replace, patch, hashline, or apply_patch)",ko:"편집 도구 변형을 선택합니다(replace, patch, hashline 또는 apply_patch)."},kind:"enum",scope:"both",defaultValue:"hashline",choices:["apply_patch","hashline","patch","replace","sloppy"]},{path:"edit.streamingAbort",category:"tools",group:"Editing",label:{en:"Abort on Failed Preview",ko:"미리보기 실패 시 중단"},description:{en:"Abort streaming edit tool calls when patch preview fails",ko:"패치 미리보기가 실패하면 스트리밍 중인 edit 도구 호출을 중단합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"edit.recoverInlineEdits",category:"tools",group:"Editing",label:{en:"Recover Inline Edit Payloads",ko:"인라인 편집 내용 복구"},description:{en:"Execute edit payloads the model emits as plain text by converting them into edit tool calls",ko:"모델이 일반 텍스트로 출력한 편집 내용을 edit 도구 호출로 변환하여 실행합니다."},kind:"boolean",scope:"both",defaultValue:!0,appliesTo:{en:"Applies when edit.mode is sloppy.",ko:"edit.mode가 sloppy인 경우 적용됩니다."}},{path:"eval.autoBackground.enabled",category:"tools",group:"Eval & Runtimes",label:{en:"Eval Auto-Background",ko:"Eval 자동 백그라운드"},description:{en:"Automatically background long-running eval cells and deliver the result later",ko:"오래 실행되는 eval 셀을 자동으로 백그라운드로 전환하고 결과를 나중에 전달합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,appliesTo:{en:"Applies to the matching eval backend.",ko:"해당 eval 백엔드에 적용됩니다."}},{path:"eval.js",category:"tools",group:"Eval & Runtimes",label:{en:"JavaScript Eval Backend",ko:"JavaScript Eval 백엔드"},description:{en:"Allow the eval tool to dispatch JavaScript cells to the in-process runtime",ko:"eval 도구가 JavaScript 셀을 인프로세스 런타임으로 전달하도록 허용합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"eval.py",category:"tools",group:"Eval & Runtimes",label:{en:"Python Eval Backend",ko:"Python Eval 백엔드"},description:{en:"Allow the eval tool to dispatch Python cells to the IPython kernel",ko:"eval 도구가 Python 셀을 IPython 커널로 전달하도록 허용합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"eval.tools.enabled",category:"tools",group:"Eval & Runtimes",label:{en:"Eval-Defined Tools",ko:"Eval 정의 도구"},description:{en:"Let eval cells define tools (@tool in Python, tool(fn) in JS) that task, agent(), and workpool() subagents can call",ko:"eval 셀이 task, agent(), workpool() 하위 에이전트에서 호출할 수 있는 도구(Python의 @tool, JS의 tool(fn))를 정의하도록 허용합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,appliesTo:{en:"Applies to the matching eval backend.",ko:"해당 eval 백엔드에 적용됩니다."}},{path:"eval.workpool.freshAgents",category:"tools",group:"Eval & Runtimes",label:{en:"Fresh Workpool Agents",ko:"새 Workpool 에이전트"},description:{en:"Spawn a new subagent for every workpool item instead of reusing workers or batching queued items",ko:"워커를 재사용하거나 대기 항목을 일괄 처리하는 대신 각 workpool 항목마다 새 하위 에이전트를 생성합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,appliesTo:{en:"Applies to the matching eval backend.",ko:"해당 eval 백엔드에 적용됩니다."}},{path:"python.interpreter",category:"tools",group:"Eval & Runtimes",label:{en:"Python Interpreter",ko:"Python 인터프리터"},description:{en:"Optional path to an exact Python executable. When set, automatic Python runtime discovery is skipped.",ko:"정확한 Python 실행 파일의 선택적 경로입니다. 설정하면 Python 런타임 자동 검색을 건너뜁니다."},kind:"string",scope:"both",defaultValue:"",admin:!0,confirmation:!0},{path:"python.kernelMode",category:"tools",group:"Eval & Runtimes",label:{en:"Python Kernel Mode",ko:"Python 커널 모드"},description:{en:"Keep the IPython kernel alive across eval calls or start fresh each time",ko:"eval 호출 간에 IPython 커널을 유지하거나 매번 새로 시작합니다."},kind:"enum",scope:"both",defaultValue:"session",choices:["session","per-call"]},{path:"eval.autoBackground.thresholdMs",category:"tools",group:"Eval",label:{en:"Threshold Ms",ko:"임계값 Ms"},description:{en:"Threshold in milliseconds for automatically backgrounding evaluation.",ko:"평가를 자동으로 백그라운드 처리하기 위한 임계값(밀리초)입니다."},kind:"number",scope:"both",defaultValue:6e4,integer:!0,admin:!0,appliesTo:{en:"Applies to the matching eval backend.",ko:"해당 eval 백엔드에 적용됩니다."}},{path:"exa.enabled",category:"tools",group:"Services",label:{en:"Exa",ko:"Exa"},description:{en:"Enable the Exa web search provider",ko:"Exa 웹 검색 제공자를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"exa.searchDelayMs",category:"tools",group:"Services",label:{en:"Exa Search Delay",ko:"Exa 검색 지연"},description:{en:"Minimum delay between Exa web search requests in milliseconds; set 0 to disable pacing",ko:"Exa 웹 검색 요청 사이의 최소 지연 시간(밀리초)입니다. 속도 제한을 비활성화하려면 0으로 설정하세요."},kind:"number",scope:"both",defaultValue:1e3,integer:!0},{path:"searxng.endpoint",category:"tools",group:"Services",label:{en:"SearXNG Endpoint",ko:"SearXNG 엔드포인트"},description:{en:"Base URL of a self-hosted SearXNG instance used for web search",ko:"웹 검색에 사용할 자체 호스팅 SearXNG 인스턴스의 기본 URL입니다."},kind:"string",scope:"global",admin:!0,confirmation:!0},{path:"lsp.diagnosticsDeduplicate",category:"tools",group:"LSP",label:{en:"Deduplicate Diagnostics",ko:"진단 중복 제거"},description:{en:"Suppress post-edit LSP diagnostics already shown for a file; only surface new or changed ones",ko:"파일에 대해 이미 표시된 편집 후 LSP 진단을 숨기고 새 항목이나 변경된 항목만 표시합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"lsp.diagnosticsOnEdit",category:"tools",group:"LSP",label:{en:"Diagnostics on Edit",ko:"편집 시 진단"},description:{en:"Return LSP diagnostics after editing code files",ko:"코드 파일을 편집한 후 LSP 진단을 반환합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"lsp.diagnosticsOnWrite",category:"tools",group:"LSP",label:{en:"Diagnostics on Write",ko:"쓰기 시 진단"},description:{en:"Return LSP diagnostics after writing code files",ko:"코드 파일을 쓴 후 LSP 진단을 반환합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"lsp.enabled",category:"tools",group:"LSP",label:{en:"LSP",ko:"LSP"},description:{en:"Enable the lsp tool for code intelligence (definitions, references, diagnostics, rename)",ko:"코드 인텔리전스(정의, 참조, 진단, 이름 변경)를 위한 lsp 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"lsp.formatOnWrite",category:"tools",group:"LSP",label:{en:"Format on Write",ko:"쓰기 시 포맷"},description:{en:"Automatically format code files using LSP after writing",ko:"코드 파일을 쓴 후 LSP를 사용해 자동으로 포맷합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"lsp.lazy",category:"tools",group:"LSP",label:{en:"Lazy LSP Startup",ko:"지연 LSP 시작"},description:{en:"Start language servers on first use (lsp tool or editing a matching file type) instead of at session startup",ko:"세션 시작 시가 아니라 처음 사용할 때(lsp 도구 사용 또는 일치하는 파일 형식 편집 시) 언어 서버를 시작합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"lsp.shared",category:"tools",group:"LSP",label:{en:"Shared Language Servers",ko:"공유 언어 서버"},description:{en:"Share one language server per project across omp instances via the daemon broker (falls back to private servers when unavailable)",ko:"데몬 브로커를 통해 여러 omp 인스턴스가 프로젝트당 하나의 언어 서버를 공유합니다(사용할 수 없으면 전용 서버로 대체)."},kind:"boolean",scope:"both",defaultValue:!0},{path:"read.defaultLimit",category:"tools",group:"Reading",label:{en:"Default Read Limit",ko:"기본 읽기 한도"},description:{en:"Default number of lines returned when agent calls read without a limit",ko:"에이전트가 한도를 지정하지 않고 read를 호출할 때 반환할 기본 줄 수입니다."},kind:"number",scope:"both",defaultValue:300,integer:!0},{path:"read.summarize.enabled",category:"tools",group:"Read Summaries",label:{en:"Read Summaries",ko:"읽기 요약"},description:{en:"Return structural code summaries when read is called without an explicit selector",ko:"명시적인 선택자 없이 read를 호출하면 구조화된 코드 요약을 반환합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"read.summarize.minBodyLines",category:"tools",group:"Read Summaries",label:{en:"Read Summary Body Lines",ko:"읽기 요약 본문 줄 수"},description:{en:"Minimum multiline body or literal length before read summaries collapse it",ko:"읽기 요약에서 여러 줄 본문 또는 리터럴을 접기 위한 최소 길이입니다."},kind:"number",scope:"both",defaultValue:4,integer:!0},{path:"read.summarize.minCommentLines",category:"tools",group:"Read Summaries",label:{en:"Read Summary Comment Lines",ko:"읽기 요약 주석 줄 수"},description:{en:"Minimum multiline block comment length before read summaries collapse it",ko:"읽기 요약에서 여러 줄 블록 주석을 접기 위한 최소 길이입니다."},kind:"number",scope:"both",defaultValue:6,integer:!0},{path:"read.summarize.minTotalLines",category:"tools",group:"Read Summaries",label:{en:"Read Summary Minimum File Length",ko:"읽기 요약 최소 파일 길이"},description:{en:"Files with fewer total lines are read verbatim instead of structurally summarized",ko:"전체 줄 수가 이 값보다 적은 파일은 구조적으로 요약하지 않고 원문 그대로 읽습니다."},kind:"number",scope:"both",defaultValue:100,integer:!0},{path:"read.summarize.prose",category:"tools",group:"Read Summaries",label:{en:"Prose Summaries",ko:"본문 요약"},description:{en:"Return structural summaries for Markdown and plain text reads",ko:"Markdown 및 일반 텍스트를 읽을 때 구조화된 요약을 반환합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"read.summarize.unfoldLimit",category:"tools",group:"Read Summaries",label:{en:"Read Summary Unfold Ceiling",ko:"읽기 요약 펼치기 상한"},description:{en:"Hard ceiling on summary size while BFS-unfolding. An unfold whose revealed lines would exceed this is skipped (that span stays folded) and unfolding continues with the remaining spans.",ko:"BFS 방식으로 펼칠 때의 요약 크기 상한입니다. 펼쳐서 표시되는 줄이 이 값을 초과하면 해당 범위는 접힌 상태로 건너뛰고 나머지 범위를 계속 펼칩니다."},kind:"number",scope:"both",defaultValue:100,integer:!0},{path:"read.summarize.unfoldUntil",category:"tools",group:"Read Summaries",label:{en:"Read Summary Unfold Target",ko:"읽기 요약 펼치기 목표"},description:{en:"BFS-unfold elidable spans until the summary is at least this many visible lines. 0 keeps only the outermost elisions.",ko:"요약의 표시 줄 수가 최소한 이 값에 도달할 때까지 생략 가능한 범위를 BFS 방식으로 펼칩니다. 0은 가장 바깥쪽 생략만 유지합니다."},kind:"number",scope:"both",defaultValue:50,integer:!0},{path:"searxng.basicPassword",category:"tools",group:"Searxng",label:{en:"Basic Password",ko:"기본 인증 비밀번호"},description:{en:"Configures the password credential for SearXNG basic authentication.",ko:"SearXNG 기본 인증의 비밀번호 자격 증명을 구성합니다."},kind:"string",scope:"global",secret:!0,admin:!0,confirmation:!0},{path:"searxng.basicUsername",category:"tools",group:"Searxng",label:{en:"Basic Username",ko:"기본 인증 사용자 이름"},description:{en:"Configures the username credential for SearXNG basic authentication.",ko:"SearXNG 기본 인증의 사용자 이름 자격 증명을 구성합니다."},kind:"string",scope:"both"},{path:"searxng.categories",category:"tools",group:"Searxng",label:{en:"Categories",ko:"카테고리"},description:{en:"Sets the SearXNG search categories.",ko:"SearXNG 검색 카테고리를 설정합니다."},kind:"string",scope:"both"},{path:"searxng.engines",category:"tools",group:"Searxng",label:{en:"Engines",ko:"검색 엔진"},description:{en:"Sets the SearXNG search engines.",ko:"SearXNG 검색 엔진을 설정합니다."},kind:"string",scope:"both"},{path:"searxng.language",category:"tools",group:"Searxng",label:{en:"Language",ko:"언어"},description:{en:"Sets the SearXNG search language.",ko:"SearXNG 검색 언어를 설정합니다."},kind:"string",scope:"both"},{path:"searxng.safesearch",category:"tools",group:"Searxng",label:{en:"Safe Search",ko:"안전 검색"},description:{en:"SearXNG safe-search level: 0 is off, 1 is moderate, and 2 is strict.",ko:"SearXNG 안전 검색 수준입니다. 0은 끄기, 1은 보통, 2는 엄격입니다."},kind:"number",scope:"both",integer:!0,min:0,max:2,step:1},{path:"searxng.token",category:"tools",group:"Searxng",label:{en:"Token",ko:"토큰"},description:{en:"Configures the SearXNG token credential.",ko:"SearXNG 토큰 자격 증명을 구성합니다."},kind:"string",scope:"global",secret:!0,admin:!0,confirmation:!0},{path:"shellMinimizer.except",category:"tools",group:"Shell Minimizer",label:{en:"Except",ko:"제외 항목"},description:{en:"Sets the shell minimizer exception list.",ko:"셸 최소화 도구의 예외 목록을 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string",admin:!0},{path:"shellMinimizer.maxCaptureBytes",category:"tools",group:"Shell Minimizer",label:{en:"Max Capture Bytes",ko:"최대 캡처 바이트"},description:{en:"Sets the maximum shell minimizer capture size in bytes.",ko:"셸 최소화 도구의 최대 캡처 크기를 바이트 단위로 설정합니다."},kind:"number",scope:"both",defaultValue:4194304,integer:!0,admin:!0},{path:"shellMinimizer.only",category:"tools",group:"Shell Minimizer",label:{en:"Only",ko:"적용 대상"},description:{en:"Sets the shell minimizer inclusion-only list.",ko:"셸 최소화 도구의 전용 포함 목록을 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string",admin:!0},{path:"skills.customDirectories",category:"tools",group:"Skills",label:{en:"Custom Directories",ko:"사용자 지정 디렉터리"},description:{en:"Sets the custom skill directories.",ko:"사용자 지정 스킬 디렉터리를 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"skills.enableAgentsProject",category:"tools",group:"Skills",label:{en:"Enable Agents Project",ko:"Agents 프로젝트 활성화"},description:{en:"Enables the Agents project skill source.",ko:"Agents 프로젝트 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"skills.enableAgentsUser",category:"tools",group:"Skills",label:{en:"Enable Agents User",ko:"Agents 사용자 활성화"},description:{en:"Enables the Agents user skill source.",ko:"Agents 사용자 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"skills.enableClaudeProject",category:"tools",group:"Skills",label:{en:"Enable Claude Project",ko:"Claude 프로젝트 활성화"},description:{en:"Enables the Claude project skill source.",ko:"Claude 프로젝트 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"skills.enableClaudeUser",category:"tools",group:"Skills",label:{en:"Enable Claude User",ko:"Claude 사용자 활성화"},description:{en:"Enables the Claude user skill source.",ko:"Claude 사용자 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"skills.enableCodexUser",category:"tools",group:"Skills",label:{en:"Enable Codex User",ko:"Codex 사용자 활성화"},description:{en:"Enables the Codex user skill source.",ko:"Codex 사용자 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"skills.enablePiProject",category:"tools",group:"Skills",label:{en:"Enable Pi Project",ko:"Pi 프로젝트 활성화"},description:{en:"Enables the Pi project skill source.",ko:"Pi 프로젝트 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"skills.enablePiUser",category:"tools",group:"Skills",label:{en:"Enable Pi User",ko:"Pi 사용자 활성화"},description:{en:"Enables the Pi user skill source.",ko:"Pi 사용자 스킬 소스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"skills.enabled",category:"tools",group:"Skills",label:{en:"Enabled",ko:"활성화"},description:{en:"Enables skill support.",ko:"스킬 지원을 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"skills.ignoredSkills",category:"tools",group:"Skills",label:{en:"Ignored Skills",ko:"무시할 스킬"},description:{en:"Sets the list of ignored skills.",ko:"무시할 스킬 목록을 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"skills.includeSkills",category:"tools",group:"Skills",label:{en:"Include Skills",ko:"포함할 스킬"},description:{en:"Sets the list of included skills.",ko:"포함할 스킬 목록을 설정합니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"skills.enableSkillCommands",category:"tools",group:"Commands & Skills",label:{en:"Skill Commands",ko:"스킬 명령어"},description:{en:"Register skills as /skill:name commands",ko:"스킬을 /skill:name 명령어로 등록합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"tools.approval",category:"tools",group:"Approvals",label:{en:"Tool Approval Policies",ko:"도구 승인 정책"},description:{en:"Per-tool approval policies. Set to 'allow' to auto-approve, 'prompt' to require confirmation, or 'deny' to block. Overrides are honored in every approval mode.",ko:"도구별 승인 정책입니다. 자동 승인하려면 'allow', 확인을 요구하려면 'prompt', 차단하려면 'deny'로 설정합니다. 재정의는 모든 승인 모드에서 적용됩니다."},kind:"object",scope:"both",defaultValue:{},recordValues:"approval",admin:!0,confirmation:!0},{path:"tools.approvalMode",category:"tools",group:"Approvals",label:{en:"Tool Approval",ko:"도구 승인"},description:{en:"Default approval behavior for tool calls. 'Always ask' auto-approves read-only tools only. 'Write' auto-approves read and workspace-write tools. 'Yolo' auto-approves all tiers; user policy may still prompt or block.",ko:"도구 호출의 기본 승인 동작입니다. 'Always ask'는 읽기 전용 도구만 자동 승인합니다. 'Write'는 읽기 및 워크스페이스 쓰기 도구를 자동 승인합니다. 'Yolo'는 모든 티어를 자동 승인하지만 사용자 정책에 따라 확인하거나 차단할 수 있습니다."},kind:"enum",scope:"both",defaultValue:"yolo",choices:["always-ask","write","yolo"],admin:!0,confirmation:!0},{path:"tools.artifactHeadBytes",category:"tools",group:"Output Limits",label:{en:"Artifact Head Size (KB)",ko:"아티팩트 앞부분 크기(KB)"},description:{en:"Amount of head content kept inline alongside the tail when output spills to artifact (middle elision). 0 disables — keep tail only.",ko:"출력이 아티팩트로 넘쳐 저장될 때 끝부분과 함께 인라인으로 유지할 앞부분 콘텐츠의 양입니다(중간 생략). 0이면 비활성화되어 끝부분만 유지합니다."},kind:"number",scope:"both",defaultValue:20,integer:!0},{path:"tools.artifactSpillThreshold",category:"tools",group:"Output Limits",label:{en:"Artifact Spill Threshold (KB)",ko:"아티팩트 분리 저장 임계값(KB)"},description:{en:"Tool output above this size is saved as an artifact; tail is kept inline",ko:"이 크기를 초과하는 도구 출력은 아티팩트로 저장하고 끝부분은 인라인으로 유지합니다."},kind:"number",scope:"both",defaultValue:50,integer:!0},{path:"tools.artifactTailBytes",category:"tools",group:"Output Limits",label:{en:"Artifact Tail Size (KB)",ko:"아티팩트 끝부분 크기(KB)"},description:{en:"Amount of tail content kept inline when output spills to artifact",ko:"출력이 아티팩트로 넘쳐 저장될 때 인라인으로 유지할 끝부분 콘텐츠의 양"},kind:"number",scope:"both",defaultValue:20,integer:!0},{path:"tools.outputMaxColumns",category:"tools",group:"Output Limits",label:{en:"Output Column Cap",ko:"출력 열 상한"},description:{en:"Per-line byte cap for streaming tool outputs (bash, python, js eval) and `read`. Lines wider than this are ellipsis-truncated; remaining bytes up to the next newline are dropped. 0 disables.",ko:"스트리밍 도구 출력(bash, python, js eval)과 `read`의 줄당 바이트 상한입니다. 이보다 긴 줄은 말줄임표로 잘리고 다음 줄바꿈까지 남은 바이트는 버려집니다. 0은 비활성화입니다."},kind:"number",scope:"both",defaultValue:768,integer:!0},{path:"tools.artifactTailLines",category:"tools",group:"Output Limits",label:{en:"Artifact Tail Lines",ko:"아티팩트 끝부분 줄 수"},description:{en:"Maximum lines of tail content kept inline when output spills to artifact",ko:"출력이 아티팩트로 넘어갈 때 인라인으로 유지할 끝부분의 최대 줄 수입니다."},kind:"number",scope:"both",defaultValue:500,integer:!0},{path:"tools.format",category:"tools",group:"Experimental",label:{en:"Tool Calling Mode",ko:"도구 호출 모드"},description:{en:"Controls how tools are exposed to the model. Auto uses provider-native tool calls unless the selected model is marked as not supporting them, then falls back to the GLM owned dialect. Native forces provider-native tools; the other values force the named owned dialect. Applies on session start.",ko:"도구가 모델에 제공되는 방식을 제어합니다. Auto는 선택한 모델이 지원하지 않는 것으로 표시되지 않는 한 제공자 네이티브 도구 호출을 사용하며, 지원하지 않으면 GLM 자체 관리 방언으로 대체합니다. Native는 제공자 네이티브 도구를 강제하고, 다른 값은 해당 이름의 자체 관리 방언을 강제합니다. 세션 시작 시 적용됩니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","native","glm","hermes","kimi","xml","anthropic","deepseek","harmony","qwen3","gemini","gemma","minimax"]},{path:"tools.xdev",category:"tools",group:"Discovery & MCP",label:{en:"xd:// Tools",ko:"xd:// 도구"},description:{en:"Mount rarely-used (discoverable) tools under xd:// device URLs driven via read/write instead of shipping their schemas on every request. Sessions whose explicit tool list grants read but omits write mount devices through a device-only write transport (filesystem writes stay rejected). Disable to expose every enabled tool top-level.",ko:"자주 사용하지 않는 검색 가능 도구를 요청마다 스키마로 전송하는 대신 read/write로 구동되는 xd:// 장치 URL 아래에 마운트합니다. 명시적 도구 목록에서 read는 허용하지만 write는 제외한 세션은 장치 전용 쓰기 전송을 통해 장치를 마운트합니다(파일 시스템 쓰기는 계속 거부됨). 비활성화하면 활성화된 모든 도구를 최상위에 노출합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"tools.xdevDocs",category:"tools",group:"Discovery & MCP",label:{en:"xd:// Prompt Docs",ko:"xd:// 프롬프트 문서"},description:{en:"Choose which mounted-device docs and schemas are inlined in the system prompt. Built-ins keeps core tools inline while MCP and extension tools stay on-demand.",ko:"시스템 프롬프트에 인라인으로 포함할 마운트된 장치 문서와 스키마를 선택합니다. Built-ins는 핵심 도구를 인라인으로 유지하고 MCP 및 확장 도구는 필요할 때만 제공합니다."},kind:"enum",scope:"both",defaultValue:"catalog",choices:["inline","builtins","catalog"]},{path:"tools.xdevInlineDevices",category:"tools",group:"Discovery & MCP",label:{en:"xd:// Inline Devices",ko:"xd:// 인라인 장치"},description:{en:"When xd:// Prompt Docs is Built-ins Only, inline dynamic devices whose names match these glob patterns (for example mcp__context_mode_*). Catalog Only ignores this setting.",ko:"xd:// Prompt Docs가 Built-ins Only일 때 이름이 이 glob 패턴과 일치하는 동적 장치를 인라인으로 포함합니다(예: mcp__context_mode_*). Catalog Only에서는 이 설정을 무시합니다."},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"ttsr.builtinRules",category:"tools",group:"Rules (TTSR)",label:{en:"Built-in Rules",ko:"기본 제공 규칙"},description:{en:"Load the default rules shipped with the agent (override individually with ttsr.disabledRules)",ko:"에이전트와 함께 제공되는 기본 규칙을 불러옵니다(ttsr.disabledRules로 개별 재정의)."},kind:"boolean",scope:"both",defaultValue:!0},{path:"ttsr.contextMode",category:"tools",group:"Rules (TTSR)",label:{en:"TTSR Context Mode",ko:"TTSR 컨텍스트 모드"},description:{en:"What to do with partial output when TTSR triggers",ko:"TTSR이 트리거될 때 부분 출력을 처리하는 방식"},kind:"enum",scope:"both",defaultValue:"discard",choices:["discard","keep"]},{path:"ttsr.disabledRules",category:"tools",group:"Rules (TTSR)",label:{en:"Disabled Rules",ko:"비활성화된 규칙"},description:{en:"Rule names to ignore entirely (applies to bundled defaults and your own rules)",ko:"완전히 무시할 규칙 이름(번들 기본 규칙과 사용자 규칙에 적용)"},kind:"array",scope:"both",defaultValue:[],items:"string"},{path:"ttsr.enabled",category:"tools",group:"Rules (TTSR)",label:{en:"TTSR",ko:"TTSR"},description:{en:"Interrupt the agent mid-stream when output matches rule patterns (Time-Traveling Stream Rules)",ko:"출력이 규칙 패턴과 일치하면 스트리밍 도중 에이전트를 중단합니다(Time-Traveling Stream Rules)."},kind:"boolean",scope:"both",defaultValue:!0},{path:"ttsr.judge",category:"tools",group:"Rules (TTSR)",label:{en:"Judged Rules",ko:"판정 규칙"},description:{en:"Ask the judge model role each `question` rule about completed replies, reasoning, and tool calls; a yes injects the rule as a warning",ko:"완료된 응답, 추론, 도구 호출에 대해 judge 모델 역할에 각 `question` 규칙을 묻고, 해당된다고 판정하면 규칙을 경고로 삽입합니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","on","off"],appliesTo:{en:"Auto requires the judge model role to resolve to a native TypeSafe jev model.",ko:"auto는 judge 모델 역할이 네이티브 TypeSafe jev 모델로 확인될 때만 활성화됩니다."}},{path:"ttsr.interruptMode",category:"tools",group:"Rules (TTSR)",label:{en:"TTSR Interrupt Mode",ko:"TTSR 중단 모드"},description:{en:"When to interrupt mid-stream vs inject warning after completion",ko:"스트리밍 도중 중단할 시점과 완료 후 경고를 삽입할 시점을 설정합니다."},kind:"enum",scope:"both",defaultValue:"always",choices:["never","prose-only","tool-only","always"]},{path:"ttsr.repeatGap",category:"tools",group:"Rules (TTSR)",label:{en:"TTSR Repeat Gap",ko:"TTSR 반복 간격"},description:{en:"Messages before a rule can trigger again",ko:"규칙이 다시 트리거되기 전에 필요한 메시지 수"},kind:"number",scope:"both",defaultValue:10,integer:!0},{path:"ttsr.repeatMode",category:"tools",group:"Rules (TTSR)",label:{en:"TTSR Repeat Mode",ko:"TTSR 반복 모드"},description:{en:"How rules can repeat: once per session or after a message gap",ko:"규칙 반복 방식: 세션당 한 번 또는 메시지 간격 후 반복"},kind:"enum",scope:"both",defaultValue:"once",choices:["once","after-gap"]},{path:"checkpoint.enabled",category:"safety",group:"Available Tools",label:{en:"Checkpoint/Rewind",ko:"체크포인트/되돌리기"},description:{en:"Enable the checkpoint and rewind tools for context checkpointing",ko:"컨텍스트 체크포인트를 위한 checkpoint 및 rewind 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"security.enabled",category:"safety",group:"Available Tools",label:{en:"Security",ko:"보안"},description:{en:"Enable OMP-native security scan planning, execution, and the read-only security:// resource namespace",ko:"OMP 네이티브 보안 검사의 계획 및 실행과 읽기 전용 security:// 리소스 네임스페이스를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"codexResets.autoRedeem",category:"safety",group:"Services",label:{en:"Codex Auto-Redeem Saved Resets",ko:"저장된 Codex 리셋 자동 사용"},description:{en:"Spend saved Codex rate-limit resets automatically: restore an account blocked by an exhausted 5h or weekly window when a turn is stuck and no other account can take over, and salvage credits that are about to expire. unset asks before the first spend, yes spends without prompting, and no disables both checks.",ko:"저장된 Codex 사용량 제한 리셋을 자동으로 사용합니다. 턴이 멈추고 대신 사용할 계정이 없을 때 소진된 5h 또는 주간 제한으로 차단된 계정을 복원하고, 곧 만료될 크레딧을 회수합니다. unset은 처음 사용하기 전에 확인하고, yes는 확인 없이 사용하며, no는 두 검사를 모두 비활성화합니다."},kind:"enum",scope:"both",defaultValue:"unset",choices:["unset","yes","no"],admin:!0,confirmation:!0},{path:"codexResets.keepCredits",category:"safety",group:"Services",label:{en:"Codex Auto-Redeem Reserve",ko:"Codex 자동 사용 예비량"},description:{en:"Never auto-spend below this many saved resets (0 = the last credit may be spent automatically). Credits about to expire are exempt — a reserved credit that expires preserves nothing.",ko:"저장된 리셋이 지정한 개수 미만이 되도록 자동 사용하지 않습니다(0 = 마지막 크레딧도 자동 사용 가능). 곧 만료될 크레딧은 예외입니다. 만료되는 크레딧을 남겨 두어도 보존되지 않습니다."},kind:"number",scope:"both",defaultValue:0,integer:!0},{path:"codexResets.minBlockedMinutes",category:"safety",group:"Services",label:{en:"Codex Auto-Redeem Min Block",ko:"Codex 자동 사용 최소 차단 시간"},description:{en:"Only auto-redeem when the natural unblock — the latest reset among the exhausted 5h/weekly windows — is at least this many minutes away (don't spend a scarce credit to save a short wait). Raise it (e.g. 360) to ignore 5h-only blocks.",ko:"자연 해제 시점, 즉 소진된 5h/주간 제한 중 가장 늦은 리셋까지 지정한 분 이상 남은 경우에만 자동 사용합니다(짧은 대기 시간을 줄이려고 희소한 크레딧을 쓰지 않음). 5h 제한만 발생한 경우를 무시하려면 값을 높이세요(예: 360)."},kind:"number",scope:"both",defaultValue:60},{path:"codexResets.salvageHorizonHours",category:"safety",group:"Services",label:{en:"Codex Reset Salvage Horizon",ko:"Codex 리셋 회수 기한"},description:{en:"Spend a saved Codex reset automatically when it would otherwise expire within this many hours and either chat window (5h or weekly) has meaningful usage to restore (0 disables expiry salvage).",ko:"저장된 Codex 리셋이 지정한 시간 내에 만료될 예정이고 두 채팅 제한(5h 또는 주간) 중 하나에 복원할 만한 사용량이 있으면 자동으로 사용합니다(0은 만료 회수 비활성화)."},kind:"number",scope:"both",defaultValue:12},{path:"claudeResets.autoRedeem",category:"safety",group:"Services",label:{en:"Claude Auto-Redeem Resets",ko:"Claude 리셋 자동 사용"},description:{en:"Spend eligible Claude Cedar or Juniper resets automatically. Cedar is spent only for covered limits; Juniper can only recover a sole 5-hour block. unset asks before the first spend, yes spends without prompting, and no disables blocked recovery and expiry salvage.",ko:"사용 가능한 Claude Cedar 또는 Juniper 리셋을 자동으로 사용합니다. Cedar는 적용 대상 한도에만 사용되며 Juniper는 단독 5시간 차단만 복구할 수 있습니다. unset은 처음 사용하기 전에 확인하고, yes는 묻지 않고 사용하며, no는 차단 복구와 만료 회수를 모두 비활성화합니다."},kind:"enum",scope:"both",defaultValue:"unset",choices:["unset","yes","no"],admin:!0,confirmation:!0},{path:"claudeResets.keepCredits",category:"safety",group:"Services",label:{en:"Claude Auto-Redeem Reserve",ko:"Claude 자동 사용 예비량"},description:{en:"Keep at least this many Claude resets banked (0 allows the last eligible reset to be spent automatically). The reserve also applies to expiry salvage.",ko:"Claude 리셋을 최소 지정한 개수만큼 남겨 둡니다(0이면 마지막 사용 가능 리셋도 자동 사용). 이 예비량은 만료 회수에도 적용됩니다."},kind:"number",scope:"both",defaultValue:0,integer:!0},{path:"claudeResets.minBlockedMinutes",category:"safety",group:"Services",label:{en:"Claude Auto-Redeem Min Block",ko:"Claude 자동 사용 최소 차단 시간"},description:{en:"Only auto-redeem when the natural unblock — the latest reset among the exhausted covered windows — is at least this many minutes away. A 5-hour-only reset is never used for a weekly or model-scoped block.",ko:"자연 해제 시점, 즉 소진된 적용 대상 제한 중 가장 늦은 리셋까지 지정한 분 이상 남은 경우에만 자동 사용합니다. 5시간 전용 리셋은 주간 또는 모델별 차단에 사용되지 않습니다."},kind:"number",scope:"both",defaultValue:60},{path:"claudeResets.salvageHorizonHours",category:"safety",group:"Services",label:{en:"Claude Reset Salvage Horizon",ko:"Claude 리셋 회수 기한"},description:{en:"Use a server-selected Cedar reset within this many hours of expiry only when its covered windows have meaningful usage to restore and the grant permits early use or a covered window is exhausted (0 disables salvage).",ko:"서버가 선택한 Cedar 리셋이 지정한 시간 내에 만료될 예정이고, 적용 대상 제한에 복원할 만한 사용량이 있으며, 조기 사용이 허용되거나 적용 대상 제한이 소진된 경우에만 사용합니다(0은 회수 비활성화)."},kind:"number",scope:"both",defaultValue:12},{path:"isolation.backend",category:"safety",group:"Isolation",label:{en:"Isolation Backend",ko:"격리 백엔드"},description:{en:"Backend used for subagent isolation and worktree cloning",ko:"하위 에이전트 격리 및 worktree 복제에 사용할 백엔드입니다."},kind:"enum",scope:"both",defaultValue:"auto",choices:["auto","apfs","btrfs","zfs","reflink","overlayfs","projfs","block-clone","rcopy"],admin:!0,confirmation:!0},{path:"worktree.base",category:"safety",group:"Isolation",label:{en:"Worktree Base Directory",ko:"Worktree 기본 디렉터리"},description:{en:"Base directory for agent-managed worktrees — task-isolation copies, `github` PR checkouts, and `omp worktree` cleanup all live here. Unset uses ~/.omp/wt. Must be an absolute or ~-relative path; relative paths are ignored. The OMP_WORKTREE_DIR env var overrides this.",ko:"에이전트가 관리하는 worktree의 기본 디렉터리입니다. 작업 격리 복사본, `github` PR 체크아웃 및 `omp worktree` 정리가 모두 여기에 저장됩니다. 설정하지 않으면 ~/.omp/wt를 사용합니다. 절대 경로 또는 ~ 기준 경로여야 하며 상대 경로는 무시됩니다. OMP_WORKTREE_DIR 환경 변수가 이 설정을 재정의합니다."},kind:"string",scope:"both",admin:!0,confirmation:!0},{path:"worktree.clone",category:"safety",group:"Isolation",label:{en:"Clone Checkout into Worktrees",ko:"체크아웃을 Worktree로 복제"},description:{en:"New worktrees from `github pr_checkout` and `git worktree add` in bash start as a copy-on-write clone of the current checkout so ignored build artifacts (node_modules, target) carry over; falls back to a plain checkout when the filesystem cannot clone",ko:"bash의 `github pr_checkout` 및 `git worktree add`로 만드는 새 worktree를 현재 체크아웃의 copy-on-write 복제본으로 시작하여 무시된 빌드 아티팩트(node_modules, target)를 이어받습니다. 파일 시스템에서 복제할 수 없으면 일반 체크아웃으로 대체합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"worktree.cleanSource",category:"safety",group:"Isolation",label:{en:"Clean Source Checkout on /wt",ko:"/wt 실행 시 원본 체크아웃 정리"},description:{en:"When creating a worktree with `/wt`, reset tracked changes and remove untracked files from the original checkout after carrying them over",ko:"`/wt`로 worktree를 만들 때 변경 사항을 옮긴 뒤 원본 체크아웃의 추적 중인 변경 사항을 되돌리고 추적되지 않은 파일을 삭제합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0,appliesTo:{en:"Applies to the /wt (/worktree) slash command.",ko:"/wt(/worktree) 슬래시 명령에 적용됩니다."}},{path:"retry.baseDelayMs",category:"safety",group:"Retry",label:{en:"Base Delay Ms",ko:"기본 지연 시간(ms)"},description:{en:"Sets the base retry delay in milliseconds.",ko:"재시도의 기본 지연 시간을 밀리초 단위로 설정합니다."},kind:"number",scope:"both",defaultValue:500,integer:!0},{path:"retry.enabled",category:"safety",group:"Retry",label:{en:"Enabled",ko:"활성화"},description:{en:"Enables retry handling.",ko:"재시도 처리를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"retry.fallbackChains",category:"safety",group:"Retry & Fallback",label:{en:"Retry Fallback Chains",ko:"재시도 대체 체인"},description:{en:'JSON object mapping model roles, model selectors ("provider/model-id"), or provider wildcards ("provider/*") to ordered fallback selectors, e.g. {"default":["openai/gpt-4o-mini"],"google-antigravity/*":["google/*","google-vertex/*"]}. Model-oriented keys apply whenever that model/provider is active, regardless of role; a "provider/*" entry keeps the failing model\'s id and swaps the provider. An id-prefixed wildcard ("openrouter/google/*") re-prefixes the failing model\'s bare id (google-antigravity/gemini-x -> openrouter/google/gemini-x) and, used as a key, matches only that provider\'s ids under the prefix.',ko:'모델 역할, 모델 선택자("provider/model-id") 또는 제공자 와일드카드("provider/*")를 순서가 지정된 대체 선택자에 매핑하는 JSON 객체입니다. 예: {"default":["openai/gpt-4o-mini"],"google-antigravity/*":["google/*","google-vertex/*"]}. 모델 중심 키는 역할과 관계없이 해당 모델/제공자가 활성 상태일 때 적용됩니다. "provider/*" 항목은 실패한 모델의 id를 유지하면서 제공자만 바꿉니다. id 접두사 와일드카드("openrouter/google/*")는 실패한 모델의 접두사 없는 id에 새 접두사를 붙이며(google-antigravity/gemini-x -> openrouter/google/gemini-x), 키로 사용하면 해당 제공자에서 접두사 아래의 id만 일치시킵니다.'},kind:"object",scope:"both",defaultValue:{},recordValues:"string-array"},{path:"retry.fallbackRevertPolicy",category:"safety",group:"Retry & Fallback",label:{en:"Fallback Revert Policy",ko:"대체 모델 복귀 정책"},description:{en:"When to return to the primary model after a fallback",ko:"대체 모델 사용 후 기본 모델로 돌아갈 시점을 설정합니다."},kind:"enum",scope:"both",defaultValue:"cooldown-expiry",choices:["cooldown-expiry","never"]},{path:"retry.maxDelayMs",category:"safety",group:"Retry & Fallback",label:{en:"Max Retry Delay",ko:"최대 재시도 지연 시간"},description:{en:"Maximum wait between retries, in ms. When the provider asks us to wait longer than this and no credential or model fallback succeeds, the request fails fast instead of sleeping (e.g. 3-hour Anthropic rate-limit windows). 0 disables the ceiling — to let the session auto-resume through provider-stated quota resets.",ko:"재시도 사이의 최대 대기 시간(ms)입니다. 제공자가 이보다 긴 대기를 요청하고 자격 증명이나 모델 대체가 성공하지 않으면, 대기하지 않고 요청이 즉시 실패합니다(예: Anthropic의 3-hour 사용량 제한 구간). 0은 상한을 비활성화하여 제공자가 명시한 할당량 초기화 후 세션이 자동으로 재개되도록 합니다."},kind:"number",scope:"both",defaultValue:3e5,integer:!0},{path:"retry.maxRetries",category:"safety",group:"Retry & Fallback",label:{en:"Retry Attempts",ko:"재시도 횟수"},description:{en:"Maximum retry attempts on API errors",ko:"API 오류 발생 시 최대 재시도 횟수입니다."},kind:"number",scope:"both",defaultValue:10,integer:!0},{path:"retry.modelFallback",category:"safety",group:"Retry & Fallback",label:{en:"Retry Model Fallback",ko:"재시도 시 모델 대체"},description:{en:"Allow retry recovery to switch to configured fallback models",ko:"재시도 복구 중 설정된 대체 모델로 전환할 수 있도록 합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"providers.anthropic.serverSideFallback",category:"safety",group:"Retry & Fallback",label:{en:"Anthropic Server-Side Fallback (Fable 5)",ko:"Anthropic 서버 측 대체(Fable 5)"},description:{en:"When a Claude Fable 5 / Mythos 5 request is blocked by Anthropic's safety classifier, retry it on Claude Opus 5 server-side (Anthropic `server-side-fallback-2026-06-01` beta). Opt-in — leaving this off preserves the pre-fallback behavior for every request.",ko:"Claude Fable 5 / Mythos 5 요청이 Anthropic 안전 분류기에 의해 차단되면 서버 측에서 Claude Opus 5로 다시 시도합니다(Anthropic `server-side-fallback-2026-06-01` 베타). 선택 사항이며 끄면 모든 요청에서 기존 동작을 유지합니다."},kind:"boolean",scope:"both",defaultValue:!1,appliesTo:{en:"Applies to Anthropic models that declare server-side fallback models.",ko:"서버 측 대체 모델을 선언한 Anthropic 모델에 적용됩니다."}},{path:"retry.usageAwareFallback",category:"safety",group:"Retry & Fallback",label:{en:"Usage-Aware Fallback",ko:"사용량 기반 대체"},description:{en:"Use reliable coding-plan quota reports to prefer same-provider accounts, then configured fallback models, before a hard usage limit. Ordinary configured API keys are excluded.",ko:"신뢰할 수 있는 코딩 플랜 할당량 보고서를 사용하여 엄격한 사용량 한도에 도달하기 전에 동일 제공자의 계정을 우선한 다음 설정된 대체 모델을 사용합니다. 일반적으로 설정된 API 키는 제외됩니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"retry.usageReservePct",category:"safety",group:"Retry & Fallback",label:{en:"Reserve Margin",ko:"예비 여유율"},description:{en:"Treat a coding-plan model as near its limit below this remaining percentage. Unknown or unmapped usage keeps the primary model.",ko:"코딩 플랜 모델의 남은 비율이 이 값 미만이면 한도에 가까운 것으로 간주합니다. 사용량을 알 수 없거나 매핑되지 않은 경우 기본 모델을 유지합니다."},kind:"number",scope:"both",defaultValue:10},{path:"retry.usageReservePolicy",category:"safety",group:"Retry & Fallback",label:{en:"Reserve Policy",ko:"예비 여유 정책"},description:{en:"What to do when every same-provider coding-plan account is inside the reserve margin.",ko:"동일 제공자의 모든 코딩 플랜 계정이 예비 여유 범위에 있을 때 수행할 작업입니다."},kind:"enum",scope:"both",defaultValue:"confirm",choices:["confirm","auto","fail-closed"]},{path:"retry.waitForUsageReset",category:"safety",group:"Retry & Fallback",label:{en:"Wait For Usage Reset",ko:"사용량 초기화 대기"},description:{en:"When a provider reports usage-limit exhaustion with a reset time (5-hour or weekly quota windows on any provider), sleep until the reset instead of failing fast past retry.maxDelayMs. Waits are abortable (Esc) but also hold subagents, so leave off for unattended runs.",ko:"제공자가 초기화 시간과 함께 사용량 한도 소진을 보고하면(모든 제공자의 5-hour 또는 주간 할당량 구간), retry.maxDelayMs를 초과하여 즉시 실패하는 대신 초기화될 때까지 대기합니다. 대기는 중단할 수 있지만(Esc) 하위 에이전트도 대기시키므로 무인 실행에서는 비활성화하세요."},kind:"boolean",scope:"both",defaultValue:!1},{path:"secrets.enabled",category:"safety",group:"Privacy",label:{en:"Hide Secrets",ko:"비밀 정보 숨기기"},description:{en:"Obfuscate configured secrets and redact credential-shaped tokens before sending to AI providers",ko:"설정된 비밀 정보를 난독화하고 자격 증명 형태의 토큰을 AI 제공자에게 보내기 전에 가립니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0},{path:"telemetry.otlpExportEnabled",category:"safety",group:"Privacy",label:{en:"OTLP Telemetry Export",ko:"OTLP 원격 측정 내보내기"},description:{en:"Allow OMP to export traces, logs, and metrics using OTEL_* endpoints. Changes take effect on the next launch.",ko:"OMP가 OTEL_* 엔드포인트로 트레이스, 로그, 메트릭을 내보내도록 허용합니다. 변경 사항은 다음 실행부터 적용됩니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"auth.broker.token",category:"system",group:"Auth",label:{en:"Token",ko:"토큰"},description:{en:"Authentication token configured for the broker.",ko:"브로커에 구성된 인증 토큰입니다."},kind:"string",scope:"global",secret:!0,admin:!0,confirmation:!0,appliesTo:{en:"Applies when auth.broker.url points to a broker that requires a token.",ko:"auth.broker.url이 토큰이 필요한 브로커를 가리킬 때 적용됩니다."}},{path:"auth.broker.url",category:"system",group:"Auth",label:{en:"URL",ko:"URL"},description:{en:"URL of the authentication broker.",ko:"인증 브로커의 URL입니다."},kind:"string",scope:"global",admin:!0,confirmation:!0},{path:"commands.enableClaudeProject",category:"system",group:"Commands & Skills",label:{en:"Claude Project Commands",ko:"Claude 프로젝트 명령"},description:{en:"Load commands from .claude/commands/",ko:".claude/commands/에서 명령을 로드합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"commands.enableClaudeUser",category:"system",group:"Commands & Skills",label:{en:"Claude User Commands",ko:"Claude 사용자 명령"},description:{en:"Load commands from ~/.claude/commands/",ko:"~/.claude/commands/에서 명령을 로드합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0},{path:"commands.enableOpencodeProject",category:"system",group:"Commands & Skills",label:{en:"OpenCode Project Commands",ko:"OpenCode 프로젝트 명령"},description:{en:"Load commands from .opencode/commands/",ko:".opencode/commands/에서 명령을 로드합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"commands.enableOpencodeUser",category:"system",group:"Commands & Skills",label:{en:"OpenCode User Commands",ko:"OpenCode 사용자 명령"},description:{en:"Load commands from ~/.config/opencode/commands/",ko:"~/.config/opencode/commands/에서 명령을 로드합니다."},kind:"boolean",scope:"both",defaultValue:!1,admin:!0,confirmation:!0},{path:"features.unexpectedStopDetection",category:"system",group:"Agent",label:{en:"Unexpected Stops",ko:"예기치 않은 중단"},description:{en:"Automatically recover when the assistant stops without a visible message. Smart also classifies text-only stops with a small model.",ko:"어시스턴트가 표시되는 메시지 없이 중단되면 자동으로 복구합니다. Smart는 소형 모델로 텍스트만 있는 중단도 분류합니다."},kind:"enum",scope:"both",defaultValue:"mechanical",choices:["none","mechanical","smart"]},{path:"gc.coldArchiveAfterDays",category:"system",group:"Gc",label:{en:"Cold Archive After Days",ko:"콜드 아카이브 전환 일수"},description:{en:"Number of days after which items are cold-archived.",ko:"항목을 콜드 아카이브하기까지의 일수입니다."},kind:"number",scope:"both",defaultValue:30,integer:!0},{path:"gc.retainNewestGlobal",category:"system",group:"Gc",label:{en:"Retain Newest Global",ko:"전체 최신 항목 보존"},description:{en:"Number of newest items to retain globally.",ko:"전역적으로 유지할 최신 항목 수입니다."},kind:"number",scope:"both",defaultValue:20,integer:!0},{path:"gc.retainNewestPerCwd",category:"system",group:"Gc",label:{en:"Retain Newest Per Cwd",ko:"Cwd별 최신 항목 보존"},description:{en:"Number of newest items to retain per current working directory.",ko:"현재 작업 디렉터리별로 유지할 최신 항목 수입니다."},kind:"number",scope:"both",defaultValue:10,integer:!0},{path:"launch.enabled",category:"system",group:"Available Tools",label:{en:"Launch",ko:"Launch"},description:{en:"Enable the launch tool for supervising shared long-running project processes",ko:"공유 장기 실행 프로젝트 프로세스를 감독하는 launch 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"vault.enabled",category:"system",group:"Available Tools",label:{en:"Obsidian Vault",ko:"Obsidian Vault"},description:{en:"Enable the vault:// internal URL for reading and editing Obsidian vault content via the Obsidian CLI. When disabled, vault:// resolution is refused and the vault:// entry is omitted from the system prompt.",ko:"Obsidian CLI를 통해 Obsidian vault 콘텐츠를 읽고 편집할 수 있도록 vault:// 내부 URL을 활성화합니다. 비활성화하면 vault:// 해석이 거부되고 시스템 프롬프트에서 vault:// 항목이 제외됩니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"web_search.enabled",category:"system",group:"Available Tools",label:{en:"Web Search",ko:"웹 검색"},description:{en:"Enable the web_search tool for live web results",ko:"실시간 웹 결과를 위한 web_search 도구를 활성화합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"mcp.enableProjectConfig",category:"system",group:"Discovery & MCP",label:{en:"MCP Project Config",ko:"MCP 프로젝트 설정"},description:{en:"Load .mcp.json/mcp.json from project root",ko:"프로젝트 루트에서 .mcp.json/mcp.json을 불러옵니다."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"mcp.startupTimeoutMs",category:"system",group:"Discovery & MCP",label:{en:"MCP Startup Window",ko:"MCP 시작 대기 시간"},description:{en:"Wait this many milliseconds for initial MCP tool discovery; 0 waits until connections settle",ko:"초기 MCP 도구 검색을 기다릴 시간(ms)입니다. 0이면 연결이 안정될 때까지 기다립니다."},kind:"number",scope:"both",defaultValue:250,integer:!0},{path:"mcp.notificationDebounceMs",category:"system",group:"Discovery & MCP",label:{en:"MCP Notification Debounce",ko:"MCP 알림 디바운스"},description:{en:"Debounce window in milliseconds for MCP resource updates before injecting them into the conversation",ko:"MCP 리소스 업데이트를 대화에 삽입하기 전 적용할 디바운스 시간(ms)입니다."},kind:"number",scope:"both",defaultValue:500,integer:!0},{path:"mcp.notifications",category:"system",group:"Discovery & MCP",label:{en:"MCP Update Injection",ko:"MCP 업데이트 삽입"},description:{en:"Inject MCP resource updates into the agent conversation",ko:"MCP 리소스 업데이트를 에이전트 대화에 삽입합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"marketplace.autoUpdate",category:"system",group:"Startup & Updates",label:{en:"Marketplace Auto-Update",ko:"마켓플레이스 자동 업데이트"},description:{en:"Check for plugin updates on startup",ko:"시작할 때 플러그인 업데이트를 확인합니다."},kind:"enum",scope:"both",defaultValue:"notify",choices:["off","notify","auto"],admin:!0,confirmation:!0,appliesTo:{en:"auto installs plugin updates without prompting.",ko:"auto는 확인 없이 플러그인 업데이트를 설치합니다."}},{path:"update.channel",category:"system",group:"Startup & Updates",label:{en:"Update Channel",ko:"업데이트 채널"},description:{en:"Update channel used by omp update and the startup update check",ko:"omp update와 시작 시 업데이트 확인에 사용할 업데이트 채널입니다."},kind:"enum",scope:"global",defaultValue:"stable",choices:["stable","canary"],admin:!0,confirmation:!0},{path:"share.serverUrl",category:"system",group:"Share",label:{en:"Share Server",ko:"공유 서버"},description:{en:"Share viewer/upload base used by /share (encrypted blob upload + viewer; links are <base>/<id>#<key>)",ko:"/share가 사용하는 공유 뷰어/업로드 기본 주소입니다(암호화된 blob 업로드 및 뷰어, 링크 형식은 <base>/<id>#<key>)."},kind:"string",scope:"global",defaultValue:"https://my.omp.sh/s",admin:!0,confirmation:!0},{path:"share.store",category:"system",group:"Share",label:{en:"Share Store",ko:"공유 저장소"},description:{en:"Where /share uploads the encrypted session blob",ko:"/share가 암호화된 세션 blob을 업로드할 위치입니다."},kind:"enum",scope:"both",defaultValue:"blob",choices:["blob","gist"]},{path:"share.redactSecrets",category:"system",group:"Share",label:{en:"Share Secret Redaction",ko:"공유 시 비밀 정보 가리기"},description:{en:"Run the secret obfuscator over /share snapshots before upload (uses the secrets.* config)",ko:"/share 스냅샷을 업로드하기 전에 비밀 정보 난독화를 적용합니다(secrets.* 설정 사용)."},kind:"boolean",scope:"both",defaultValue:!0,admin:!0,confirmation:!0},{path:"plan.autosave",category:"system",group:"Plan",label:{en:"Autosave",ko:"자동 저장"},description:{en:"Automatically save approved plans to disk when plan mode completes",ko:"계획 모드가 완료되면 승인된 계획을 디스크에 자동 저장합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"plan.autosaveDir",category:"system",group:"Plan",label:{en:"Autosave Dir",ko:"자동 저장 디렉터리"},description:{en:"Directory for autosaved plans. Supports ~, absolute, and cwd-relative paths. Empty uses <project>/.omp/plans/.",ko:"자동 저장된 계획의 디렉터리입니다. ~, 절대 경로 및 cwd 기준 상대 경로를 지원합니다. 비워 두면 <project>/.omp/plans/를 사용합니다."},kind:"string",scope:"both",admin:!0},{path:"plan.defaultOnStartup",category:"system",group:"Modes",label:{en:"Start in Plan Mode",ko:"계획 모드로 시작"},description:{en:"Automatically enter plan mode at the start of every new session",ko:"새 세션을 시작할 때마다 자동으로 계획 모드에 진입합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"plan.enabled",category:"system",group:"Modes",label:{en:"Plan Mode",ko:"계획 모드"},description:{en:"Enable plan mode for read-only exploration and planning before execution",ko:"실행 전에 읽기 전용 탐색과 계획을 위한 계획 모드를 사용합니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"power.sleepPrevention",category:"system",group:"Power",label:{en:"Sleep Prevention",ko:"절전 방지"},description:{en:"Prevent the system sleeping during active sessions. Each level is cumulative — it adds the flags of all lower levels.",ko:"활성 세션 중 시스템이 절전 모드로 전환되지 않도록 합니다. 각 단계는 누적되며 모든 하위 단계의 플래그가 추가됩니다."},kind:"enum",scope:"both",defaultValue:"idle",choices:["off","idle","display","system"],admin:!0,confirmation:!0},{path:"readLineNumbers",category:"system",group:"Reading",label:{en:"Line Numbers",ko:"줄 번호"},description:{en:"Prepend line numbers to read tool output by default",ko:"기본적으로 read 도구 출력 앞에 줄 번호를 추가합니다."},kind:"boolean",scope:"both",defaultValue:!1},{path:"shellPath",category:"system",group:"Shell Path",label:{en:"Shell Path",ko:"셸 경로"},description:{en:"Sets the shell executable path.",ko:"셸 실행 파일 경로를 설정합니다."},kind:"string",scope:"both",admin:!0,confirmation:!0},{path:"skillful",category:"system",group:"Prompt",label:{en:"List Skills in Prompt",ko:"프롬프트에 스킬 목록 표시"},description:{en:"List available skills in the system prompt; disable to save context and toggle per-session with /skillful",ko:"시스템 프롬프트에 사용 가능한 스킬을 나열합니다. 컨텍스트를 절약하려면 비활성화하고 세션별로 /skillful을 사용해 전환할 수 있습니다."},kind:"boolean",scope:"both",defaultValue:!0},{path:"workspace.additionalDirectories",category:"system",group:"General",label:{en:"Additional Workspace Dirs",ko:"추가 워크스페이스 디렉터리"},description:{en:"Extra workspace directories added to every session as additional roots (multi-root workspace). Managed live via /add-dir and /remove-dir. Paths resolve relative to cwd; absolute paths recommended. The agent is told these roots exist and can read/grep/glob them.",ko:"모든 세션에 추가 루트로 포함할 워크스페이스 디렉터리입니다(다중 루트 워크스페이스). /add-dir 및 /remove-dir로 실시간 관리합니다. 경로는 cwd를 기준으로 해석되며 절대 경로를 권장합니다. 에이전트는 이러한 루트의 존재를 안내받고 read/grep/glob할 수 있습니다."},kind:"array",scope:"both",defaultValue:[],items:"string",admin:!0,confirmation:!0}]},53933:(a,b,c)=>{"use strict";var d=c(76281),e=c(56222);function f(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c(58952).inherits(f,d),f.prototype.processChunk=function(a){this.streamInfo.crc32=e(a.data,this.streamInfo.crc32||0),this.push(a)},a.exports=f},53968:(a,b)=>{function c(a,b){b=b||{},this._elementType=a,this._styleId=b.styleId,this._styleName=b.styleName,b.list&&(this._listIndex=b.list.levelIndex,this._listIsOrdered=b.list.isOrdered)}function d(a){a=a||{},this._color=a.color}function e(a){a=a||{},this._breakType=a.breakType}function f(a,b){return a.toUpperCase()===b.toUpperCase()}function g(a,b){return 0===b.toUpperCase().indexOf(a.toUpperCase())}b.paragraph=function(a){return new c("paragraph",a)},b.run=function(a){return new c("run",a)},b.table=function(a){return new c("table",a)},b.bold=new c("bold"),b.italic=new c("italic"),b.underline=new c("underline"),b.strikethrough=new c("strikethrough"),b.allCaps=new c("allCaps"),b.smallCaps=new c("smallCaps"),b.highlight=function(a){return new d(a)},b.commentReference=new c("commentReference"),b.lineBreak=new e({breakType:"line"}),b.pageBreak=new e({breakType:"page"}),b.columnBreak=new e({breakType:"column"}),b.equalTo=function(a){return{operator:f,operand:a}},b.startsWith=function(a){return{operator:g,operand:a}},c.prototype.matches=function(a){var b,c,d;return a.type===this._elementType&&(void 0===this._styleId||a.styleId===this._styleId)&&(void 0===this._styleName||a.styleName&&this._styleName.operator(this._styleName.operand,a.styleName))&&(void 0===this._listIndex||(b=a,c=this._listIndex,d=this._listIsOrdered,b.numbering&&b.numbering.level==c&&b.numbering.isOrdered==d))&&(void 0===this._breakType||this._breakType===a.breakType)},d.prototype.matches=function(a){return"highlight"===a.type&&(void 0===this._color||a.color===this._color)},e.prototype.matches=function(a){return"break"===a.type&&(void 0===this._breakType||a.breakType===this._breakType)}},54107:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d,e,f,g){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing DTD element name. "+this.debugInfo());if(null==d)throw Error("Missing DTD attribute name. "+this.debugInfo(b));if(!e)throw Error("Missing DTD attribute type. "+this.debugInfo(b));if(!f)throw Error("Missing DTD attribute default. "+this.debugInfo(b));if(0!==f.indexOf("#")&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(b));if(g&&!f.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(b));this.elementName=this.stringify.eleName(b),this.attributeName=this.stringify.attName(d),this.attributeType=this.stringify.dtdAttType(e),this.defaultValue=this.stringify.dtdAttDefault(g),this.defaultValueType=f}return b(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdAttList(this)},c}(c(8142))}).call(this)},54117:function(a){(function(){var b,c,d,e=[].slice,f={}.hasOwnProperty;c=function(a){return!!a&&"[object Function]"===Object.prototype.toString.call(a)},d=function(a){var b;return!!a&&("function"==(b=typeof a)||"object"===b)},b=function(a){return c(Array.isArray)?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)},a.exports.assign=function(){var a,b,d,g,h,i;if(i=arguments[0],h=2<=arguments.length?e.call(arguments,1):[],c(Object.assign))Object.assign.apply(null,arguments);else for(a=0,d=h.length;a<d;a++)if(null!=(g=h[a]))for(b in g)f.call(g,b)&&(i[b]=g[b]);return i},a.exports.isFunction=c,a.exports.isObject=d,a.exports.isArray=b,a.exports.isEmpty=function(a){var c;if(b(a))return!a.length;for(c in a)if(f.call(a,c))return!1;return!0},a.exports.isPlainObject=function(a){var b,c;return d(a)&&(c=Object.getPrototypeOf(a))&&(b=c.constructor)&&"function"==typeof b&&b instanceof b&&Function.prototype.toString.call(b)===Function.prototype.toString.call(Object)},a.exports.getValue=function(a){return c(a.valueOf)?a.valueOf():a}}).call(this)},54968:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b,d){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing DTD notation name. "+this.debugInfo(b));if(!d.pubID&&!d.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(b));this.name=this.stringify.eleName(b),null!=d.pubID&&(this.pubID=this.stringify.dtdPubID(d.pubID)),null!=d.sysID&&(this.sysID=this.stringify.dtdSysID(d.sysID))}return b(c,a),c.prototype.toString=function(a){return this.options.writer.set(a).dtdNotation(this)},c}(c(8142))}).call(this)},55165:(a,b,c)=>{"use strict";var d=c(10558);function e(a){d.call(this,a)}c(58952).inherits(e,d),e.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},e.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},e.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},55388:(a,b,c)=>{var d=c(84906),e=c(9920),f=c(26932);function g(a){return function(b,c){return e.when(a(b)).then(function(a){var c={};return b.altText&&(c.alt=b.altText),d.extend(c,a),[f.freshElement("img",c)]})}}b.imgElement=g,b.inline=b.imgElement,b.dataUri=g(function(a){return a.readAsBase64String().then(function(b){return{src:"data:"+a.contentType+";base64,"+b}})})},55578:(a,b,c)=>{"use strict";var d=c(19771),e=c(2063),f=c(44559);function g(a,b){for(let c=0;c<a.length;++c)if(a[c].type===b)return!0;return!1}function h(a){for(let b=0;b<a.length;++b)switch(a[b].type){case"space":case"comment":case"newline":break;default:return b}return -1}function i(a){switch(a?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function j(a){switch(a.type){case"document":return a.start;case"block-map":{let b=a.items[a.items.length-1];return b.sep??b.start}case"block-seq":return a.items[a.items.length-1].start;default:return[]}}function k(a){if(0===a.length)return[];let b=a.length;d:for(;--b>=0;)switch(a[b].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break d}for(;a[++b]?.type==="space";);return a.splice(b,a.length)}function l(a,b){if(b.length<1e5)Array.prototype.push.apply(a,b);else for(let c=0;c<b.length;++c)a.push(b[c])}function m(a){if("flow-seq-start"===a.start.type)for(let b of a.items)!b.sep||b.value||g(b.start,"explicit-key-ind")||g(b.sep,"map-value-ind")||(b.key&&(b.value=b.key),delete b.key,i(b.value)?b.value.end?l(b.value.end,b.sep):b.value.end=b.sep:l(b.start,b.sep),delete b.sep)}class n{constructor(a){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new f.Lexer,this.onNewLine=a}*parse(a,b=!1){for(let c of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(a,b)))yield*this.next(c);b||(yield*this.end())}*next(a){if(this.source=a,d.env.LOG_TOKENS&&console.log("|",e.prettyToken(a)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=a.length;return}let b=e.tokenType(a);if(b)if("scalar"===b)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=b,yield*this.step(),b){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+a.length);break;case"space":this.atNewLine&&" "===a[0]&&(this.indent+=a.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=a.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=a.length}else{let b=`Not a YAML token: ${a}`;yield*this.pop({type:"error",offset:this.offset,message:b,source:a}),this.offset+=a.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let a=this.peek(1);if("doc-end"===this.type&&a?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!a)return yield*this.stream();switch(a.type){case"document":return yield*this.document(a);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(a);case"block-scalar":return yield*this.blockScalar(a);case"block-map":return yield*this.blockMap(a);case"block-seq":return yield*this.blockSequence(a);case"flow-collection":return yield*this.flowCollection(a);case"doc-end":return yield*this.documentEnd(a)}yield*this.pop()}peek(a){return this.stack[this.stack.length-a]}*pop(a){let b=a??this.stack.pop();if(b)if(0===this.stack.length)yield b;else{let a=this.peek(1);switch("block-scalar"===b.type?b.indent="indent"in a?a.indent:0:"flow-collection"===b.type&&"document"===a.type&&(b.indent=0),"flow-collection"===b.type&&m(b),a.type){case"document":a.value=b;break;case"block-scalar":a.props.push(b);break;case"block-map":{let c=a.items[a.items.length-1];if(c.value){a.items.push({start:[],key:b,sep:[]}),this.onKeyLine=!0;return}if(c.sep)c.value=b;else{Object.assign(c,{key:b,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{let c=a.items[a.items.length-1];c.value?a.items.push({start:[],value:b}):c.value=b;break}case"flow-collection":{let c=a.items[a.items.length-1];!c||c.value?a.items.push({start:[],key:b,sep:[]}):c.sep?c.value=b:Object.assign(c,{key:b,sep:[]});return}default:yield*this.pop(),yield*this.pop(b)}if(("document"===a.type||"block-map"===a.type||"block-seq"===a.type)&&("block-map"===b.type||"block-seq"===b.type)){let c=b.items[b.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&-1===h(c.start)&&(0===b.indent||c.start.every(a=>"comment"!==a.type||a.indent<b.indent))&&("document"===a.type?a.end=c.start:a.items.push({start:c.start}),b.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let a={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&a.start.push(this.sourceToken),this.stack.push(a);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(a){if(a.value)return yield*this.lineEnd(a);switch(this.type){case"doc-start":-1!==h(a.start)?(yield*this.pop(),yield*this.step()):a.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":a.start.push(this.sourceToken);return}let b=this.startBlockValue(a);b?this.stack.push(b):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(a){if("map-value-ind"===this.type){let b,c=k(j(this.peek(2)));a.end?((b=a.end).push(this.sourceToken),delete a.end):b=[this.sourceToken];let d={type:"block-map",offset:a.offset,indent:a.indent,items:[{start:c,key:a,sep:b}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=d}else yield*this.lineEnd(a)}*blockScalar(a){switch(this.type){case"space":case"comment":case"newline":a.props.push(this.sourceToken);return;case"scalar":if(a.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let a=this.source.indexOf("\n")+1;for(;0!==a;)this.onNewLine(this.offset+a),a=this.source.indexOf("\n",a)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(a){let b=a.items[a.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,b.value){let c="end"in b.value?b.value.end:void 0,d=Array.isArray(c)?c[c.length-1]:void 0;d?.type==="comment"?c?.push(this.sourceToken):a.items.push({start:[this.sourceToken]})}else b.sep?b.sep.push(this.sourceToken):b.start.push(this.sourceToken);return;case"space":case"comment":if(b.value)a.items.push({start:[this.sourceToken]});else if(b.sep)b.sep.push(this.sourceToken);else{if(this.atIndentedComment(b.start,a.indent)){let c=a.items[a.items.length-2],d=c?.value?.end;if(Array.isArray(d)){l(d,b.start),d.push(this.sourceToken),a.items.pop();return}}b.start.push(this.sourceToken)}return}if(this.indent>=a.indent){let c=!this.onKeyLine&&this.indent===a.indent,d=c&&(b.sep||b.explicitKey)&&"seq-item-ind"!==this.type,e=[];if(d&&b.sep&&!b.value){let c=[];for(let d=0;d<b.sep.length;++d){let e=b.sep[d];switch(e.type){case"newline":c.push(d);break;case"space":break;case"comment":e.indent>a.indent&&(c.length=0);break;default:c.length=0}}c.length>=2&&(e=b.sep.splice(c[1]))}switch(this.type){case"anchor":case"tag":d||b.value?(e.push(this.sourceToken),a.items.push({start:e}),this.onKeyLine=!0):b.sep?b.sep.push(this.sourceToken):b.start.push(this.sourceToken);return;case"explicit-key-ind":b.sep||b.explicitKey?d||b.value?(e.push(this.sourceToken),a.items.push({start:e,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(b.start.push(this.sourceToken),b.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(b.explicitKey)if(b.sep)if(b.value)a.items.push({start:[],key:null,sep:[this.sourceToken]});else if(g(b.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]});else if(i(b.key)&&!g(b.sep,"newline")){let a=k(b.start),c=b.key,d=b.sep;d.push(this.sourceToken),delete b.key,delete b.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:c,sep:d}]})}else e.length>0?b.sep=b.sep.concat(e,this.sourceToken):b.sep.push(this.sourceToken);else if(g(b.start,"newline"))Object.assign(b,{key:null,sep:[this.sourceToken]});else{let a=k(b.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else b.sep?b.value||d?a.items.push({start:e,key:null,sep:[this.sourceToken]}):g(b.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):b.sep.push(this.sourceToken):Object.assign(b,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let c=this.flowScalar(this.type);d||b.value?(a.items.push({start:e,key:c,sep:[]}),this.onKeyLine=!0):b.sep?this.stack.push(c):(Object.assign(b,{key:c,sep:[]}),this.onKeyLine=!0);return}default:{let d=this.startBlockValue(a);if(d){if("block-seq"===d.type){if(!b.explicitKey&&b.sep&&!g(b.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else c&&a.items.push({start:e});this.stack.push(d);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(a){let b=a.items[a.items.length-1];switch(this.type){case"newline":if(b.value){let c="end"in b.value?b.value.end:void 0,d=Array.isArray(c)?c[c.length-1]:void 0;d?.type==="comment"?c?.push(this.sourceToken):a.items.push({start:[this.sourceToken]})}else b.start.push(this.sourceToken);return;case"space":case"comment":if(b.value)a.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(b.start,a.indent)){let c=a.items[a.items.length-2],d=c?.value?.end;if(Array.isArray(d)){l(d,b.start),d.push(this.sourceToken),a.items.pop();return}}b.start.push(this.sourceToken)}return;case"anchor":case"tag":if(b.value||this.indent<=a.indent)break;b.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==a.indent)break;b.value||g(b.start,"seq-item-ind")?a.items.push({start:[this.sourceToken]}):b.start.push(this.sourceToken);return}if(this.indent>a.indent){let b=this.startBlockValue(a);if(b)return void this.stack.push(b)}yield*this.pop(),yield*this.step()}*flowCollection(a){let b=a.items[a.items.length-1];if("flow-error-end"===this.type){let a;do yield*this.pop(),a=this.peek(1);while(a?.type==="flow-collection")}else if(0===a.end.length){switch(this.type){case"comma":case"explicit-key-ind":!b||b.sep?a.items.push({start:[this.sourceToken]}):b.start.push(this.sourceToken);return;case"map-value-ind":!b||b.value?a.items.push({start:[],key:null,sep:[this.sourceToken]}):b.sep?b.sep.push(this.sourceToken):Object.assign(b,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!b||b.value?a.items.push({start:[this.sourceToken]}):b.sep?b.sep.push(this.sourceToken):b.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let c=this.flowScalar(this.type);!b||b.value?a.items.push({start:[],key:c,sep:[]}):b.sep?this.stack.push(c):Object.assign(b,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":a.end.push(this.sourceToken);return}let c=this.startBlockValue(a);c?this.stack.push(c):(yield*this.pop(),yield*this.step())}else{let b=this.peek(2);if("block-map"!==b.type||("map-value-ind"!==this.type||b.indent!==a.indent)&&("newline"!==this.type||b.items[b.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==b.type){let c=k(j(b));m(a);let d=a.end.splice(1,a.end.length);d.push(this.sourceToken);let e={type:"block-map",offset:a.offset,indent:a.indent,items:[{start:c,key:a,sep:d}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=e}else yield*this.lineEnd(a);else yield*this.pop(),yield*this.step()}}flowScalar(a){if(this.onNewLine){let a=this.source.indexOf("\n")+1;for(;0!==a;)this.onNewLine(this.offset+a),a=this.source.indexOf("\n",a)+1}return{type:a,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(a){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let b=k(j(a));return b.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:b,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let b=k(j(a));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:b,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(a,b){return"comment"===this.type&&!(this.indent<=b)&&a.every(a=>"newline"===a.type||"space"===a.type)}*documentEnd(a){"doc-mode"!==this.type&&(a.end?a.end.push(this.sourceToken):a.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(a){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:a.end?a.end.push(this.sourceToken):a.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}b.Parser=n},56073:(a,b,c)=>{"use strict";var d,e=c(69167),f=c(14835),g=c(62231),h=c(59757),i=c(19272),j=573;function k(a,b){return a.msg=i[b],b}function l(a){return(a<<1)-9*(a>4)}function m(a){for(var b=a.length;--b>=0;)a[b]=0}function n(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(e.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function o(a,b){f._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,n(a.strm)}function p(a,b){a.pending_buf[a.pending++]=b}function q(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function r(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+258,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do{if(j[(c=b)+g]!==o||j[c+g-1]!==n||j[c]!==j[f]||j[++c]!==j[f+1])continue;f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&f<m);if(d=258-(m-f),f=m-258,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!=--e);return g<=a.lookahead?g:a.lookahead}function s(a){var b,c,d,f,i,j=a.w_size;do{if(f=a.window_size-a.lookahead-a.strstart,a.strstart>=j+(j-262)){e.arraySet(a.window,a.window,j,j,0),a.match_start-=j,a.strstart-=j,a.block_start-=j,b=c=a.hash_size;do d=a.head[--b],a.head[b]=d>=j?d-j:0;while(--c);b=c=j;do d=a.prev[--b],a.prev[b]=d>=j?d-j:0;while(--c);f+=j}if(0===a.strm.avail_in)break;if(c=function(a,b,c,d){var f=a.avail_in;return(f>d&&(f=d),0===f)?0:(a.avail_in-=f,e.arraySet(b,a.input,a.next_in,f,c),1===a.state.wrap?a.adler=g(a.adler,b,f,c):2===a.state.wrap&&(a.adler=h(a.adler,b,f,c)),a.next_in+=f,a.total_in+=f,f)}(a.strm,a.window,a.strstart+a.lookahead,f),a.lookahead+=c,a.lookahead+a.insert>=3)for(i=a.strstart-a.insert,a.ins_h=a.window[i],a.ins_h=(a.ins_h<<a.hash_shift^a.window[i+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[i+3-1])&a.hash_mask,a.prev[i&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=i,i++,a.insert--,!(a.lookahead+a.insert<3)););}while(a.lookahead<262&&0!==a.strm.avail_in)}function t(a,b){for(var c,d;;){if(a.lookahead<262){if(s(a),a.lookahead<262&&0===b)return 1;if(0===a.lookahead)break}if(c=0,a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),0!==c&&a.strstart-c<=a.w_size-262&&(a.match_length=r(a,c)),a.match_length>=3)if(d=f._tr_tally(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!=--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=a.strstart<2?a.strstart:2,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}function u(a,b){for(var c,d,e;;){if(a.lookahead<262){if(s(a),a.lookahead<262&&0===b)return 1;if(0===a.lookahead)break}if(c=0,a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=2,0!==c&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-262&&(a.match_length=r(a,c),a.match_length<=5&&(1===a.strategy||3===a.match_length&&a.strstart-a.match_start>4096)&&(a.match_length=2)),a.prev_length>=3&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-3,d=f._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-3),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(0!=--a.prev_length);if(a.match_available=0,a.match_length=2,a.strstart++,d&&(o(a,!1),0===a.strm.avail_out))return 1}else if(a.match_available){if((d=f._tr_tally(a,0,a.window[a.strstart-1]))&&o(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return 1}else a.match_available=1,a.strstart++,a.lookahead--}return(a.match_available&&(d=f._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<2?a.strstart:2,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}function v(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(2*j),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=2,(b=a.state).pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?42:113,a.adler=+(2!==b.wrap),b.last_flush=0,f._tr_init(b),0):k(a,-2)}function y(a){var b,c=x(a);return 0===c&&((b=a.state).window_size=2*b.w_size,m(b.head),b.max_lazy_match=d[b.level].max_lazy,b.good_match=d[b.level].good_length,b.nice_match=d[b.level].nice_length,b.max_chain_length=d[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0),c}function z(a,b,c,d,f,g){if(!a)return -2;var h=1;if(-1===b&&(b=6),d<0?(h=0,d=-d):d>15&&(h=2,d-=16),f<1||f>9||8!==c||d<8||d>15||b<0||b>9||g<0||g>4)return k(a,-2);8===d&&(d=9);var i=new w;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=d,i.w_size=1<<i.w_bits,i.w_mask=i.w_size-1,i.hash_bits=f+7,i.hash_size=1<<i.hash_bits,i.hash_mask=i.hash_size-1,i.hash_shift=~~((i.hash_bits+3-1)/3),i.window=new e.Buf8(2*i.w_size),i.head=new e.Buf16(i.hash_size),i.prev=new e.Buf16(i.w_size),i.lit_bufsize=1<<f+6,i.pending_buf_size=4*i.lit_bufsize,i.pending_buf=new e.Buf8(i.pending_buf_size),i.d_buf=+i.lit_bufsize,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,y(a)}d=[new v(0,0,0,0,function(a,b){var c=65535;for(65535>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(s(a),0===a.lookahead&&0===b)return 1;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,o(a,!1),0===a.strm.avail_out)||a.strstart-a.block_start>=a.w_size-262&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:(a.strstart>a.block_start&&(o(a,!1),a.strm.avail_out),1)}),new v(4,4,8,4,t),new v(4,5,16,8,t),new v(4,6,32,32,t),new v(4,4,16,16,u),new v(8,16,32,32,u),new v(8,16,128,128,u),new v(8,32,128,256,u),new v(32,128,258,1024,u),new v(32,258,258,4096,u)],b.deflateInit=function(a,b){return z(a,b,8,15,8,0)},b.deflateInit2=z,b.deflateReset=y,b.deflateResetKeep=x,b.deflateSetHeader=function(a,b){return a&&a.state&&2===a.state.wrap?(a.state.gzhead=b,0):-2},b.deflate=function(a,b){if(!a||!a.state||b>5||b<0)return a?k(a,-2):-2;if(e=a.state,!a.output||!a.input&&0!==a.avail_in||666===e.status&&4!==b)return k(a,0===a.avail_out?-5:-2);if(e.strm=a,c=e.last_flush,e.last_flush=b,42===e.status)if(2===e.wrap)a.adler=0,p(e,31),p(e,139),p(e,8),e.gzhead?(p(e,+!!e.gzhead.text+2*!!e.gzhead.hcrc+4*!!e.gzhead.extra+8*!!e.gzhead.name+16*!!e.gzhead.comment),p(e,255&e.gzhead.time),p(e,e.gzhead.time>>8&255),p(e,e.gzhead.time>>16&255),p(e,e.gzhead.time>>24&255),p(e,9===e.level?2:4*(e.strategy>=2||e.level<2)),p(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(p(e,255&e.gzhead.extra.length),p(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(a.adler=h(a.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(p(e,0),p(e,0),p(e,0),p(e,0),p(e,0),p(e,9===e.level?2:4*(e.strategy>=2||e.level<2)),p(e,3),e.status=113);else{var c,e,g,i,j=8+(e.w_bits-8<<4)<<8;j|=(e.strategy>=2||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(j|=32),j+=31-j%31,e.status=113,q(e,j),0!==e.strstart&&(q(e,a.adler>>>16),q(e,65535&a.adler)),a.adler=1}if(69===e.status)if(e.gzhead.extra){for(g=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending!==e.pending_buf_size));)p(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,p(e,i)}while(0!==i);e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,p(e,i)}while(0!==i);e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&n(a),e.pending+2<=e.pending_buf_size&&(p(e,255&a.adler),p(e,a.adler>>8&255),a.adler=0,e.status=113)):e.status=113),0!==e.pending){if(n(a),0===a.avail_out)return e.last_flush=-1,0}else if(0===a.avail_in&&l(b)<=l(c)&&4!==b)return k(a,-5);if(666===e.status&&0!==a.avail_in)return k(a,-5);if(0!==a.avail_in||0!==e.lookahead||0!==b&&666!==e.status){var r=2===e.strategy?function(a,b){for(var c;;){if(0===a.lookahead&&(s(a),0===a.lookahead)){if(0===b)return 1;break}if(a.match_length=0,c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}(e,b):3===e.strategy?function(a,b){for(var c,d,e,g,h=a.window;;){if(a.lookahead<=258){if(s(a),a.lookahead<=258&&0===b)return 1;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=3&&a.strstart>0&&(d=h[e=a.strstart-1])===h[++e]&&d===h[++e]&&d===h[++e]){g=a.strstart+258;do;while(d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&e<g);a.match_length=258-(g-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=3?(c=f._tr_tally(a,1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}(e,b):d[e.level].func(e,b);if((3===r||4===r)&&(e.status=666),1===r||3===r)return 0===a.avail_out&&(e.last_flush=-1),0;if(2===r&&(1===b?f._tr_align(e):5!==b&&(f._tr_stored_block(e,0,0,!1),3===b&&(m(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),n(a),0===a.avail_out))return e.last_flush=-1,0}return 4!==b?0:e.wrap<=0?1:(2===e.wrap?(p(e,255&a.adler),p(e,a.adler>>8&255),p(e,a.adler>>16&255),p(e,a.adler>>24&255),p(e,255&a.total_in),p(e,a.total_in>>8&255),p(e,a.total_in>>16&255),p(e,a.total_in>>24&255)):(q(e,a.adler>>>16),q(e,65535&a.adler)),n(a),e.wrap>0&&(e.wrap=-e.wrap),+(0===e.pending))},b.deflateEnd=function(a){var b;return a&&a.state?42!==(b=a.state.status)&&69!==b&&73!==b&&91!==b&&103!==b&&113!==b&&666!==b?k(a,-2):(a.state=null,113===b?k(a,-3):0):-2},b.deflateSetDictionary=function(a,b){var c,d,f,h,i,j,k,l,n=b.length;if(!a||!a.state||2===(h=(c=a.state).wrap)||1===h&&42!==c.status||c.lookahead)return -2;for(1===h&&(a.adler=g(a.adler,b,n,0)),c.wrap=0,n>=c.w_size&&(0===h&&(m(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new e.Buf8(c.w_size),e.arraySet(l,b,n-c.w_size,c.w_size,0),b=l,n=c.w_size),i=a.avail_in,j=a.next_in,k=a.input,a.avail_in=n,a.next_in=0,a.input=b,s(c);c.lookahead>=3;){d=c.strstart,f=c.lookahead-2;do c.ins_h=(c.ins_h<<c.hash_shift^c.window[d+3-1])&c.hash_mask,c.prev[d&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=d,d++;while(--f);c.strstart=d,c.lookahead=2,s(c)}return c.strstart+=c.lookahead,c.block_start=c.strstart,c.insert=c.lookahead,c.lookahead=0,c.match_length=c.prev_length=2,c.match_available=0,a.next_in=j,a.input=k,a.avail_in=i,c.wrap=h,0},b.deflateInfo="pako deflate (from Nodeca project)"},56222:(a,b,c)=>{"use strict";var d=c(58952),e=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();a.exports=function(a,b){return void 0!==a&&a.length?"string"!==d.getTypeOf(a)?function(a,b,c){var d=0+c;a^=-1;for(var f=0;f<d;f++)a=a>>>8^e[(a^b[f])&255];return -1^a}(0|b,a,a.length):function(a,b,c){var d=0+c;a^=-1;for(var f=0;f<d;f++)a=a>>>8^e[(a^b.charCodeAt(f))&255];return -1^a}(0|b,a,a.length):0}},57009:(a,b,c)=>{"use strict";var d=c(60828).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",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:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",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:"\xa6",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:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",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:"\xa9",copy:"\xa9",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:"\xa4",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:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",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:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",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:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",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:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",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:"\xbd",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:"\xcd",iacute:"\xed",ic:"",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",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:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",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:"\xab",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:"\xaf",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:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",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:"\xa0",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:"\n",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:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",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:"\xd1",ntilde:"\xf1",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:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",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:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",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:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",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:"\xbb",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:"\xae",reg:"\xae",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:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",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:"\xaf",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:"\xb9",sup2:"\xb2",sup3:"\xb3",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:"\xdf",Tab:" ",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:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",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:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",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:"\xdc",uuml:"\xfc",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:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",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:""}),b.entityMap=b.HTML_ENTITIES},57422:(a,b,c)=>{"use strict";var d=c(93051);b.string={identify:a=>"string"==typeof a,default:!0,tag:"tag:yaml.org,2002:str",resolve:a=>a,stringify:(a,b,c,e)=>(b=Object.assign({actualString:!0},b),d.stringifyString(a,b,c,e))}},57710:(a,b,c)=>{"use strict";c.d(b,{Fx:()=>i,yh:()=>j});var d=c(51671),e=c(92226);let f=new Set(["daily","30d","24h"]);function g(a,b){let c="string"==typeof a?a.trim():"";if("5h"===c||"7d"===c||"monthly"===c||"30d"===c||"daily"===c)return"30d"===c?"monthly":"daily"===c?"5h":c;if("number"==typeof b&&Number.isFinite(b)){if(6e4>=Math.abs(b-18e6))return"5h";if(6e4>=Math.abs(b-6048e5))return"7d";if(36e5>=Math.abs(b-2592e6))return"monthly";if(6e4>=Math.abs(b-864e5))return"5h"}}function h(a){let b=a.window,c=a.scope;if(!b&&!c?.windowId)return a;let d=g(c?.windowId)??g(b?.id)??g(void 0,b?.durationMs);if(!d)return a;let e={...c};(c.windowId||b?.id)&&(e.windowId=d);let h=b;if(b){let a=b.label,c=null==a||""===a.trim()||f.has(a)||a===b.id;h={...b,id:d,...c?{label:d}:{}}}return{...a,scope:e,...h?{window:h}:{}}}function i(a){switch(a){case 503:return"omp_not_found";case 501:return"usage_not_supported";default:return"usage_fetch_failed"}}async function j(a=!1,b){let c=(0,e.$M)(),f=globalThis.__ompgui_shared_usage;f&&f.scope===c||(f={scope:c,state:{}},globalThis.__ompgui_shared_usage=f);let g=b?void 0:{...process.env};try{return await k(f.state,a,{...b??{fetch:()=>l({env:g}),invalidate:()=>(0,d.eG)(["usage","invalidate"],{timeout:15e3,env:g})},ttlMs:6e4})}catch(a){return{ok:!1,status:502,error:a instanceof Error?a.message:String(a)}}}async function k(a,b,c){let d=c.now??Date.now;if(b){if(a.refreshFlight)return a.refreshFlight;let b=(a.refreshGeneration??0)+1;a.refreshGeneration=b,a.entry=null,a.readFlight=null;let e=(async()=>{try{await c.invalidate()}catch{}let e=await c.fetch();return e.ok&&(a.entry={at:d(),payload:e.payload}),a.latestRefresh={generation:b,result:e},e})();a.refreshFlight=e;try{return await e}finally{a.refreshFlight===e&&(a.refreshFlight=null)}}if(a.refreshFlight)return a.refreshFlight;if(a.entry&&d()-a.entry.at<c.ttlMs)return{ok:!0,payload:{...a.entry.payload,cached:!0}};let e=a.refreshGeneration??0,f=a.readFlight;f||(a.readFlight=f={generation:e,promise:c.fetch()});try{let b=await f.promise,c=a.refreshGeneration??0;if(f.generation!==c){if(a.refreshFlight)return a.refreshFlight;let d=a.latestRefresh;if(d?.generation===c)return d.result;return b}return b.ok&&(a.entry={at:d(),payload:b.payload}),b}finally{a.readFlight===f&&(a.readFlight=null)}}async function l(a={}){let b,c=a.executor??((b,c)=>(0,d.eG)(b,{...c,env:a.env}));if(!a.executor&&!(0,d.resolveOmpBin)())return{ok:!1,status:503,error:"omp binary not found"};try{b=(await c(["usage","--json"],{timeout:3e4})).stdout}catch(c){let a=c instanceof Error?c.message:String(c),b=a.toLowerCase();if(b.includes("unknown command")||b.includes("unknown flag")||b.includes("unrecognized command")||b.includes("unrecognized option")||b.includes("invalid command")||/error:\s*(unknown|unrecognized)\s+(command|option|flag)/i.test(a)||/\bcommand not found\b/i.test(a))return{ok:!1,status:501,error:"usage command not supported by installed omp version"};return{ok:!1,status:502,error:a}}if(!b||!b.trim())return{ok:!1,status:501,error:"usage command not supported by installed omp version"};let e=(0,d.nH)(b);if(!e||"object"!=typeof e)return{ok:!1,status:501,error:"usage command not supported by installed omp version"};let f=(Array.isArray(e.reports)?e.reports:[]).map(a=>Array.isArray(a.limits)?{...a,limits:a.limits.map(h)}:a),i=Array.isArray(e.accountsWithoutUsage)?e.accountsWithoutUsage:[],j=Array.isArray(e.disabledCredentials)?e.disabledCredentials:[],k=function(a){let b={};for(let[c,d]of Object.entries(a)){if(!Array.isArray(d)){b[c]=d;continue}let a=new Map,e=[];for(let b of d){let c=g(b.window,b.durationMs);if(!c){e.push(b);continue}let d=!function(a,b){let c="string"==typeof a?a.trim():"";return"daily"===c||"5h"!==c&&"7d"!==c&&"monthly"!==c&&"30d"!==c&&"number"==typeof b&&Number.isFinite(b)&&6e4>=Math.abs(b-864e5)}(b.window,b.durationMs)?b.durationMs:18e6,f=a.get(c);if(!f){a.set(c,{...b,window:c,...void 0!==d?{durationMs:d}:{}});continue}a.set(c,{...f,accounts:f.accounts+b.accounts,usedAccounts:f.usedAccounts+b.usedAccounts,remainingAccounts:f.remainingAccounts+b.remainingAccounts,durationMs:function(a,b,c){if("5h"===a){if(void 0!==b&&6e4>=Math.abs(b-18e6))return b;if(void 0!==c&&6e4>=Math.abs(c-18e6))return c}return b??c}(c,f.durationMs,d)})}b[c]=[...a.values(),...e]}return b}(e.capacity&&"object"==typeof e.capacity?e.capacity:{}),m="number"==typeof e.generatedAt?e.generatedAt:Date.now(),n="no-credentials"===e.emptyReason||0===f.length&&0===i.length&&0===j.length?"no-credentials":void 0;return{ok:!0,payload:{generatedAt:m,reports:f,accountsWithoutUsage:i,disabledCredentials:j,capacity:k,cached:!1,...n?{emptyReason:n}:{}}}}},57792:a=>{"use strict";a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},58586:(a,b,c)=>{"use strict";var d=c(26701),e=c(65695);let f={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a=>"nan"===a.slice(-3).toLowerCase()?NaN:"-"===a[0]?-1/0:1/0,stringify:e.stringifyNumber};b.float={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(a){let b=new d.Scalar(parseFloat(a.replace(/_/g,""))),c=a.indexOf(".");if(-1!==c){let d=a.substring(c+1).replace(/_/g,"");"0"===d[d.length-1]&&(b.minFractionDigits=d.length)}return b},stringify:e.stringifyNumber},b.floatExp={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:a=>parseFloat(a.replace(/_/g,"")),stringify(a){let b=Number(a.value);return isFinite(b)?b.toExponential():e.stringifyNumber(a)}},b.floatNaN=f},58952:(a,b,c)=>{"use strict";var d=c(49642),e=c(45644),f=c(39531),g=c(13420);function h(a){return a}function i(a,b){for(var c=0;c<a.length;++c)b[c]=255&a.charCodeAt(c);return b}c(62028),b.newBlob=function(a,c){b.checkSupport("blob");try{return new Blob([a],{type:c})}catch(b){try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(a),d.getBlob(c)}catch(a){throw Error("Bug : can't construct the Blob.")}}};var j={stringifyByChunk:function(a,b,c){var d=[],e=0,f=a.length;if(f<=c)return String.fromCharCode.apply(null,a);for(;e<f;)"array"===b||"nodebuffer"===b?d.push(String.fromCharCode.apply(null,a.slice(e,Math.min(e+c,f)))):d.push(String.fromCharCode.apply(null,a.subarray(e,Math.min(e+c,f)))),e+=c;return d.join("")},stringifyByChar:function(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b},applyCanBeUsed:{uint8array:function(){try{return d.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(a){return!1}}(),nodebuffer:function(){try{return d.nodebuffer&&1===String.fromCharCode.apply(null,f.allocBuffer(1)).length}catch(a){return!1}}()}};function k(a){var c=65536,d=b.getTypeOf(a),e=!0;if("uint8array"===d?e=j.applyCanBeUsed.uint8array:"nodebuffer"===d&&(e=j.applyCanBeUsed.nodebuffer),e)for(;c>1;)try{return j.stringifyByChunk(a,d,c)}catch(a){c=Math.floor(c/2)}return j.stringifyByChar(a)}function l(a,b){for(var c=0;c<a.length;c++)b[c]=a[c];return b}b.applyFromCharCode=k;var m={};m.string={string:h,array:function(a){return i(a,Array(a.length))},arraybuffer:function(a){return m.string.uint8array(a).buffer},uint8array:function(a){return i(a,new Uint8Array(a.length))},nodebuffer:function(a){return i(a,f.allocBuffer(a.length))}},m.array={string:k,array:h,arraybuffer:function(a){return new Uint8Array(a).buffer},uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return f.newBufferFrom(a)}},m.arraybuffer={string:function(a){return k(new Uint8Array(a))},array:function(a){return l(new Uint8Array(a),Array(a.byteLength))},arraybuffer:h,uint8array:function(a){return new Uint8Array(a)},nodebuffer:function(a){return f.newBufferFrom(new Uint8Array(a))}},m.uint8array={string:k,array:function(a){return l(a,Array(a.length))},arraybuffer:function(a){return a.buffer},uint8array:h,nodebuffer:function(a){return f.newBufferFrom(a)}},m.nodebuffer={string:k,array:function(a){return l(a,Array(a.length))},arraybuffer:function(a){return m.nodebuffer.uint8array(a).buffer},uint8array:function(a){return l(a,new Uint8Array(a.length))},nodebuffer:h},b.transformTo=function(a,c){return(c||(c=""),a)?(b.checkSupport(a),m[b.getTypeOf(c)][a](c)):c},b.resolve=function(a){for(var b=a.split("/"),c=[],d=0;d<b.length;d++){var e=b[d];"."!==e&&(""!==e||0===d||d===b.length-1)&&(".."===e?c.pop():c.push(e))}return c.join("/")},b.getTypeOf=function(a){return"string"==typeof a?"string":"[object Array]"===Object.prototype.toString.call(a)?"array":d.nodebuffer&&f.isBuffer(a)?"nodebuffer":d.uint8array&&a instanceof Uint8Array?"uint8array":d.arraybuffer&&a instanceof ArrayBuffer?"arraybuffer":void 0},b.checkSupport=function(a){if(!d[a.toLowerCase()])throw Error(a+" is not supported by this platform")},b.MAX_VALUE_16BITS=65535,b.MAX_VALUE_32BITS=-1,b.pretty=function(a){var b,c,d="";for(c=0;c<(a||"").length;c++)d+="\\x"+((b=a.charCodeAt(c))<16?"0":"")+b.toString(16).toUpperCase();return d},b.delay=function(a,b,c){setImmediate(function(){a.apply(c||null,b||[])})},b.inherits=function(a,b){var c=function(){};c.prototype=b.prototype,a.prototype=new c},b.extend=function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])Object.prototype.hasOwnProperty.call(arguments[a],b)&&void 0===c[b]&&(c[b]=arguments[a][b]);return c},b.prepareContent=function(a,c,f,h,j){return g.Promise.resolve(c).then(function(a){return d.blob&&(a instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(a)))&&"u">typeof FileReader?new g.Promise(function(b,c){var d=new FileReader;d.onload=function(a){b(a.target.result)},d.onerror=function(a){c(a.target.error)},d.readAsArrayBuffer(a)}):a}).then(function(c){var k,l,m=b.getTypeOf(c);return m?("arraybuffer"===m?c=b.transformTo("uint8array",c):"string"===m&&(j?c=e.decode(c):f&&!0!==h&&(k=c,l=null,l=d.uint8array?new Uint8Array(k.length):Array(k.length),c=i(k,l))),c):g.Promise.reject(Error("Can't read the data of '"+a+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},59076:(a,b)=>{b.fromArray=function(a){var b=0,d=function(){return b<a.length};return new c({hasNext:d,next:function(){if(d())return a[b++];throw Error("No more elements")}})};var c=function(a){this._iterator=a};c.prototype.map=function(a){var b=this._iterator;return new c({hasNext:function(){return b.hasNext()},next:function(){return a(b.next())}})},c.prototype.filter=function(a){var b,d=this._iterator,e=!1,f=!1,g=function(){if(!e)for(e=!0,f=!1;d.hasNext()&&!f;)f=a(b=d.next())};return new c({hasNext:function(){return g(),f},next:function(){return g(),e=!1,b}})},c.prototype.first=function(){var a=this._iterator;return this._iterator.hasNext()?a.next():null},c.prototype.toArray=function(){for(var a=[];this._iterator.hasNext();)a.push(this._iterator.next());return a}},59673:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f){var g=c(22418),h=g.tryCatch;a.method=function(c){if("function"!=typeof c)throw new a.TypeError("expecting a function but got "+g.classString(c));return function(){var d=new a(b);d._captureStackTrace(),d._pushContext();var e=h(c).apply(this,arguments),g=d._popContext();return f.checkForgottenReturns(e,g,"Promise.method",d),d._resolveFromSyncValue(e),d}},a.attempt=a.try=function(c){if("function"!=typeof c)return e("expecting a function but got "+g.classString(c));var d,i=new a(b);if(i._captureStackTrace(),i._pushContext(),arguments.length>1){f.deprecated("calling Promise.try with more than 1 argument");var j=arguments[1],k=arguments[2];d=g.isArray(j)?h(c).apply(k,j):h(c).call(k,j)}else d=h(c)();var l=i._popContext();return f.checkForgottenReturns(d,l,"Promise.try",i),i._resolveFromSyncValue(d),i},a.prototype._resolveFromSyncValue=function(a){a===g.errorObj?this._rejectCallback(a.e,!1):this._resolveCallback(a,!0)}}},59757:a=>{"use strict";var b=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();a.exports=function(a,c,d,e){var f=e+d;a^=-1;for(var g=e;g<f;g++)a=a>>>8^b[(a^c[g])&255];return -1^a}},60302:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w={}.hasOwnProperty;t=(v=c(54117)).isObject,s=v.isFunction,u=v.isPlainObject,r=v.getValue,l=c(16426),d=c(92293),e=c(96321),n=c(77632),q=c(46107),m=c(11781),j=c(2286),k=c(72240),f=c(54107),h=c(4907),g=c(9774),i=c(54968),b=c(48514),p=c(83172),o=c(80224),a.exports=function(){function a(a,b,c){var d;this.name="?xml",a||(a={}),a.writer?u(a.writer)&&(d=a.writer,a.writer=new o(d)):a.writer=new o(a),this.options=a,this.writer=a.writer,this.stringify=new p(a),this.onDataCallback=b||function(){},this.onEndCallback=c||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return a.prototype.node=function(a,b,c){var d,e;if(null==a)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(a));return this.openCurrent(),a=r(a),null===b&&null==c&&(b=(d=[{},null])[0],c=d[1]),null==b&&(b={}),t(b=r(b))||(c=(e=[b,c])[0],b=e[1]),this.currentNode=new l(this,a,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=c&&this.text(c),this},a.prototype.element=function(a,b,c){return this.currentNode&&this.currentNode instanceof k?this.dtdElement.apply(this,arguments):this.node(a,b,c)},a.prototype.attribute=function(a,c){var d,e;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(a));if(null!=a&&(a=r(a)),t(a))for(d in a)w.call(a,d)&&(e=a[d],this.attribute(d,e));else s(c)&&(c=c.apply()),this.options.skipNullAttributes&&null==c||(this.currentNode.attributes[a]=new b(this,a,c));return this},a.prototype.text=function(a){var b;return this.openCurrent(),b=new q(this,a),this.onData(this.writer.text(b,this.currentLevel+1),this.currentLevel+1),this},a.prototype.cdata=function(a){var b;return this.openCurrent(),b=new d(this,a),this.onData(this.writer.cdata(b,this.currentLevel+1),this.currentLevel+1),this},a.prototype.comment=function(a){var b;return this.openCurrent(),b=new e(this,a),this.onData(this.writer.comment(b,this.currentLevel+1),this.currentLevel+1),this},a.prototype.raw=function(a){var b;return this.openCurrent(),b=new n(this,a),this.onData(this.writer.raw(b,this.currentLevel+1),this.currentLevel+1),this},a.prototype.instruction=function(a,b){var c,d,e,f,g;if(this.openCurrent(),null!=a&&(a=r(a)),null!=b&&(b=r(b)),Array.isArray(a))for(c=0,f=a.length;c<f;c++)d=a[c],this.instruction(d);else if(t(a))for(d in a)w.call(a,d)&&(e=a[d],this.instruction(d,e));else s(b)&&(b=b.apply()),g=new m(this,a,b),this.onData(this.writer.processingInstruction(g,this.currentLevel+1),this.currentLevel+1);return this},a.prototype.declaration=function(a,b,c){var d;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return d=new j(this,a,b,c),this.onData(this.writer.declaration(d,this.currentLevel+1),this.currentLevel+1),this},a.prototype.doctype=function(a,b,c){if(this.openCurrent(),null==a)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new k(this,b,c),this.currentNode.rootNodeName=a,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},a.prototype.dtdElement=function(a,b){var c;return this.openCurrent(),c=new g(this,a,b),this.onData(this.writer.dtdElement(c,this.currentLevel+1),this.currentLevel+1),this},a.prototype.attList=function(a,b,c,d,e){var g;return this.openCurrent(),g=new f(this,a,b,c,d,e),this.onData(this.writer.dtdAttList(g,this.currentLevel+1),this.currentLevel+1),this},a.prototype.entity=function(a,b){var c;return this.openCurrent(),c=new h(this,!1,a,b),this.onData(this.writer.dtdEntity(c,this.currentLevel+1),this.currentLevel+1),this},a.prototype.pEntity=function(a,b){var c;return this.openCurrent(),c=new h(this,!0,a,b),this.onData(this.writer.dtdEntity(c,this.currentLevel+1),this.currentLevel+1),this},a.prototype.notation=function(a,b){var c;return this.openCurrent(),c=new i(this,a,b),this.onData(this.writer.dtdNotation(c,this.currentLevel+1),this.currentLevel+1),this},a.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},a.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},a.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},a.prototype.openNode=function(a){if(!a.isOpen)return!this.root&&0===this.currentLevel&&a instanceof l&&(this.root=a),this.onData(this.writer.openNode(a,this.currentLevel),this.currentLevel),a.isOpen=!0},a.prototype.closeNode=function(a){if(!a.isClosed)return this.onData(this.writer.closeNode(a,this.currentLevel),this.currentLevel),a.isClosed=!0},a.prototype.onData=function(a,b){return this.documentStarted=!0,this.onDataCallback(a,b+1)},a.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},a.prototype.debugInfo=function(a){return null==a?"":"node: <"+a+">"},a.prototype.ele=function(){return this.element.apply(this,arguments)},a.prototype.nod=function(a,b,c){return this.node(a,b,c)},a.prototype.txt=function(a){return this.text(a)},a.prototype.dat=function(a){return this.cdata(a)},a.prototype.com=function(a){return this.comment(a)},a.prototype.ins=function(a,b){return this.instruction(a,b)},a.prototype.dec=function(a,b,c){return this.declaration(a,b,c)},a.prototype.dtd=function(a,b,c){return this.doctype(a,b,c)},a.prototype.e=function(a,b,c){return this.element(a,b,c)},a.prototype.n=function(a,b,c){return this.node(a,b,c)},a.prototype.t=function(a){return this.text(a)},a.prototype.d=function(a){return this.cdata(a)},a.prototype.c=function(a){return this.comment(a)},a.prototype.r=function(a){return this.raw(a)},a.prototype.i=function(a,b){return this.instruction(a,b)},a.prototype.att=function(){return this.currentNode&&this.currentNode instanceof k?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.a=function(){return this.currentNode&&this.currentNode instanceof k?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},a.prototype.ent=function(a,b){return this.entity(a,b)},a.prototype.pent=function(a,b){return this.pEntity(a,b)},a.prototype.not=function(a,b){return this.notation(a,b)},a}()}).call(this)},60828:(a,b)=>{"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),f=/[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]/,g=RegExp("[\\-\\.0-9"+f.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),h=RegExp("^"+f.source+g.source+"*(?::"+f.source+g.source+"*)?$");b.assign=function(a,b){if(null===a||"object"!=typeof a)throw TypeError("target is not an object");for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a},b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e,b.nameStartChar=f,b.nameChar=g,b.tagNamePattern=h},60891:(a,b,c)=>{var d=c(77880),e=c(6560).Result;b.createCommentsReader=function(a){function b(b){var c=b.attributes["w:id"];function e(a){return(b.attributes[a]||"").trim()||null}return a.readXmlElements(b.children).map(function(a){return d.comment({commentId:c,body:a,authorName:e("w:author"),authorInitials:e("w:initials")})})}return function(a){return e.combine(a.getElementsByTagName("w:comment").map(b))}}},61457:a=>{var b=a.exports=function(a,b){this._tokens=a,this._startIndex=b||0};b.prototype.head=function(){return this._tokens[this._startIndex]},b.prototype.tail=function(a){return new b(this._tokens,this._startIndex+1)},b.prototype.toArray=function(){return this._tokens.slice(this._startIndex)},b.prototype.end=function(){return this._tokens[this._tokens.length-1]},b.prototype.to=function(a){var b=this.head().source,c=a.head()||a.end();return b.to(c.source)}},61462:(a,b,c)=>{"use strict";var d=c(69273),e=c(30666),f=c(51490),g=c(57422),h=c(27387),i=c(88075),j=c(20710);b.schema=[d.map,f.seq,g.string,e.nullTag,h.boolTag,j.intOct,j.int,j.intHex,i.floatNaN,i.floatExp,i.float]},61764:(a,b,c)=>{"use strict";a.exports=function(a,b){var d,e,f,g=a._getDomain,h=a._async,i=c(43823).Warning,j=c(22418),k=j.canAttachTrace,l=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,m=/\((?:timers\.js):\d+:\d+\)/,n=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,o=null,p=null,q=!1,r=!!(0!=j.env("BLUEBIRD_DEBUG")&&(j.env("BLUEBIRD_DEBUG")||"development"===j.env("NODE_ENV"))),s=!!(0!=j.env("BLUEBIRD_WARNINGS")&&(r||j.env("BLUEBIRD_WARNINGS"))),t=!!(0!=j.env("BLUEBIRD_LONG_STACK_TRACES")&&(r||j.env("BLUEBIRD_LONG_STACK_TRACES"))),u=0!=j.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(s||!!j.env("BLUEBIRD_W_FORGOTTEN_RETURN"));a.prototype.suppressUnhandledRejections=function(){var a=this._target();a._bitField=-1048577&a._bitField|524288},a.prototype._ensurePossibleRejectionHandled=function(){(524288&this._bitField)==0&&(this._setRejectionIsUnhandled(),h.invokeLater(this._notifyUnhandledRejection,this,void 0))},a.prototype._notifyUnhandledRejectionIsHandled=function(){Q("rejectionHandled",d,void 0,this)},a.prototype._setReturnedNonUndefined=function(){this._bitField=0x10000000|this._bitField},a.prototype._returnedNonUndefined=function(){return(0x10000000&this._bitField)!=0},a.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var a=this._settledValue();this._setUnhandledRejectionIsNotified(),Q("unhandledRejection",e,a,this)}},a.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},a.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},a.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},a.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},a.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},a.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},a.prototype._warn=function(a,b,c){return M(a,b,c||this)},a.onPossiblyUnhandledRejection=function(a){var b=g();e="function"==typeof a?null===b?a:j.domainBind(b,a):void 0},a.onUnhandledRejectionHandled=function(a){var b=g();d="function"==typeof a?null===b?a:j.domainBind(b,a):void 0};var v=function(){};a.longStackTraces=function(){if(h.haveItemsQueued()&&!Y.longStackTraces)throw Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!Y.longStackTraces&&S()){var c=a.prototype._captureStackTrace,d=a.prototype._attachExtraTrace;Y.longStackTraces=!0,v=function(){if(h.haveItemsQueued()&&!Y.longStackTraces)throw Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");a.prototype._captureStackTrace=c,a.prototype._attachExtraTrace=d,b.deactivateLongStackTraces(),h.enableTrampoline(),Y.longStackTraces=!1},a.prototype._captureStackTrace=K,a.prototype._attachExtraTrace=L,b.activateLongStackTraces(),h.disableTrampolineIfNecessary()}},a.hasLongStackTraces=function(){return Y.longStackTraces&&S()};var w=function(){try{if("function"==typeof CustomEvent){var a=new CustomEvent("CustomEvent");return j.global.dispatchEvent(a),function(a,b){var c=new CustomEvent(a.toLowerCase(),{detail:b,cancelable:!0});return!j.global.dispatchEvent(c)}}if("function"==typeof Event){var a=new Event("CustomEvent");return j.global.dispatchEvent(a),function(a,b){var c=new Event(a.toLowerCase(),{cancelable:!0});return c.detail=b,!j.global.dispatchEvent(c)}}var a=document.createEvent("CustomEvent");return a.initCustomEvent("testingtheevent",!1,!0,{}),j.global.dispatchEvent(a),function(a,b){var c=document.createEvent("CustomEvent");return c.initCustomEvent(a.toLowerCase(),!1,!0,b),!j.global.dispatchEvent(c)}}catch(a){}return function(){return!1}}(),x=j.isNode?function(){return process.emit.apply(process,arguments)}:j.global?function(a){var b="on"+a.toLowerCase(),c=j.global[b];return!!c&&(c.apply(j.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function y(a,b){return{promise:b}}var z={promiseCreated:y,promiseFulfilled:y,promiseRejected:y,promiseResolved:y,promiseCancelled:y,promiseChained:function(a,b,c){return{promise:b,child:c}},warning:function(a,b){return{warning:b}},unhandledRejection:function(a,b,c){return{reason:b,promise:c}},rejectionHandled:y},A=function(a){var b=!1;try{b=x.apply(null,arguments)}catch(a){h.throwLater(a),b=!0}var c=!1;try{c=w(a,z[a].apply(null,arguments))}catch(a){h.throwLater(a),c=!0}return c||b};function B(){return!1}function C(a,b,c){var d=this;try{a(b,c,function(a){if("function"!=typeof a)throw TypeError("onCancel must be a function, got: "+j.toString(a));d._attachCancellationCallback(a)})}catch(a){return a}}function D(a){if(!this._isCancellable())return this;var b=this._onCancel();void 0!==b?j.isArray(b)?b.push(a):this._setOnCancel([b,a]):this._setOnCancel(a)}function E(){return this._onCancelField}function F(a){this._onCancelField=a}function G(){this._cancellationParent=void 0,this._onCancelField=void 0}function H(a,b){if((1&b)!=0){this._cancellationParent=a;var c=a._branchesRemainingToCancel;void 0===c&&(c=0),a._branchesRemainingToCancel=c+1}(2&b)!=0&&a._isBound()&&this._setBoundTo(a._boundTo)}a.config=function(b){if("longStackTraces"in(b=Object(b))&&(b.longStackTraces?a.longStackTraces():!b.longStackTraces&&a.hasLongStackTraces()&&v()),"warnings"in b){var c=b.warnings;Y.warnings=!!c,u=Y.warnings,j.isObject(c)&&"wForgottenReturn"in c&&(u=!!c.wForgottenReturn)}if("cancellation"in b&&b.cancellation&&!Y.cancellation){if(h.haveItemsQueued())throw Error("cannot enable cancellation after promises are in use");a.prototype._clearCancellationData=G,a.prototype._propagateFrom=H,a.prototype._onCancel=E,a.prototype._setOnCancel=F,a.prototype._attachCancellationCallback=D,a.prototype._execute=C,I=H,Y.cancellation=!0}return"monitoring"in b&&(b.monitoring&&!Y.monitoring?(Y.monitoring=!0,a.prototype._fireEvent=A):!b.monitoring&&Y.monitoring&&(Y.monitoring=!1,a.prototype._fireEvent=B)),a},a.prototype._fireEvent=B,a.prototype._execute=function(a,b,c){try{a(b,c)}catch(a){return a}},a.prototype._onCancel=function(){},a.prototype._setOnCancel=function(a){},a.prototype._attachCancellationCallback=function(a){},a.prototype._captureStackTrace=function(){},a.prototype._attachExtraTrace=function(){},a.prototype._clearCancellationData=function(){},a.prototype._propagateFrom=function(a,b){};var I=function(a,b){(2&b)!=0&&a._isBound()&&this._setBoundTo(a._boundTo)};function J(){var b=this._boundTo;if(void 0!==b&&b instanceof a)if(b.isFulfilled())return b.value();else return;return b}function K(){this._trace=new W(this._peekContext())}function L(a,b){if(k(a)){var c=this._trace;if(void 0!==c&&b&&(c=c._parent),void 0!==c)c.attachExtraTrace(a);else if(!a.__stackCleaned__){var d=O(a);j.notEnumerableProp(a,"stack",d.message+"\n"+d.stack.join("\n")),j.notEnumerableProp(a,"__stackCleaned__",!0)}}}function M(b,c,d){if(Y.warnings){var e,f=new i(b);if(c)d._attachExtraTrace(f);else if(Y.longStackTraces&&(e=a._peekContext()))e.attachExtraTrace(f);else{var g=O(f);f.stack=g.message+"\n"+g.stack.join("\n")}A("warning",f)||P(f,"",!0)}}function N(a){for(var b=[],c=0;c<a.length;++c){var d=a[c],e=" (No stack trace)"===d||o.test(d),f=e&&T(d);e&&!f&&(q&&" "!==d.charAt(0)&&(d=" "+d),b.push(d))}return b}function O(a){var b=a.stack,c=a.toString();return b="string"==typeof b&&b.length>0?function(a){for(var b=a.stack.replace(/\s+$/g,"").split("\n"),c=0;c<b.length;++c){var d=b[c];if(" (No stack trace)"===d||o.test(d))break}return c>0&&"SyntaxError"!=a.name&&(b=b.slice(c)),b}(a):[" (No stack trace)"],{message:c,stack:"SyntaxError"==a.name?b:N(b)}}function P(a,b,c){if("u">typeof console){var d;if(j.isObject(a)){var e=a.stack;d=b+p(e,a)}else d=b+String(a);"function"==typeof f?f(d,c):("function"==typeof console.log||"object"==typeof console.log)&&console.log(d)}}function Q(a,b,c,d){var e=!1;try{"function"==typeof b&&(e=!0,"rejectionHandled"===a?b(d):b(c,d))}catch(a){h.throwLater(a)}"unhandledRejection"===a?A(a,c,d)||e||P(c,"Unhandled rejection "):A(a,d)}function R(a){var b,c;if("function"==typeof a)b="[function "+(a.name||"anonymous")+"]";else{if(b=a&&"function"==typeof a.toString?a.toString():j.toString(a),/\[object [a-zA-Z0-9$_]+\]/.test(b))try{b=JSON.stringify(a)}catch(a){}0===b.length&&(b="(empty array)")}return"(<"+((c=b).length<41?c:c.substr(0,38)+"...")+">, no stack trace)"}function S(){return"function"==typeof X}var T=function(){return!1},U=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function V(a){var b=a.match(U);if(b)return{fileName:b[1],line:parseInt(b[2],10)}}function W(a){this._parent=a,this._promisesCreated=0;var b=this._length=1+(void 0===a?0:a._length);X(this,W),b>32&&this.uncycle()}j.inherits(W,Error),b.CapturedTrace=W,W.prototype.uncycle=function(){var a=this._length;if(!(a<2)){for(var b=[],c={},d=0,e=this;void 0!==e;++d)b.push(e),e=e._parent;a=this._length=d;for(var d=a-1;d>=0;--d){var f=b[d].stack;void 0===c[f]&&(c[f]=d)}for(var d=0;d<a;++d){var g=c[b[d].stack];if(void 0!==g&&g!==d){g>0&&(b[g-1]._parent=void 0,b[g-1]._length=1),b[d]._parent=void 0,b[d]._length=1;var h=d>0?b[d-1]:this;g<a-1?(h._parent=b[g+1],h._parent.uncycle(),h._length=h._parent._length+1):(h._parent=void 0,h._length=1);for(var i=h._length+1,j=d-2;j>=0;--j)b[j]._length=i,i++;return}}}},W.prototype.attachExtraTrace=function(a){if(!a.__stackCleaned__){this.uncycle();for(var b=O(a),c=b.message,d=[b.stack],e=this;void 0!==e;)d.push(N(e.stack.split("\n"))),e=e._parent;!function(a){for(var b=a[0],c=1;c<a.length;++c){for(var d=a[c],e=b.length-1,f=b[e],g=-1,h=d.length-1;h>=0;--h)if(d[h]===f){g=h;break}for(var h=g;h>=0;--h){var i=d[h];if(b[e]===i)b.pop(),e--;else break}b=d}}(d);for(var f=0;f<d.length;++f)(0===d[f].length||f+1<d.length&&d[f][0]===d[f+1][0])&&(d.splice(f,1),f--);j.notEnumerableProp(a,"stack",function(a,b){for(var c=0;c<b.length-1;++c)b[c].push("From previous event:"),b[c]=b[c].join("\n");return c<b.length&&(b[c]=b[c].join("\n")),a+"\n"+b.join("\n")}(c,d)),j.notEnumerableProp(a,"__stackCleaned__",!0)}};var X=function(){var a,b=/^\s*at\s*/,c=function(a,b){return"string"==typeof a?a:void 0!==b.name&&void 0!==b.message?b.toString():R(b)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,o=b,p=c;var d=Error.captureStackTrace;return T=function(a){return l.test(a)},function(a,b){Error.stackTraceLimit+=6,d(a,b),Error.stackTraceLimit-=6}}var e=Error();if("string"==typeof e.stack&&e.stack.split("\n")[0].indexOf("stackDetection@")>=0)return o=/@/,p=c,q=!0,function(a){a.stack=Error().stack};try{throw Error()}catch(b){a="stack"in b}return"stack"in e||!a||"number"!=typeof Error.stackTraceLimit?(p=function(a,b){return"string"==typeof a?a:("object"==typeof b||"function"==typeof b)&&void 0!==b.name&&void 0!==b.message?b.toString():R(b)},null):(o=b,p=c,function(a){Error.stackTraceLimit+=6;try{throw Error()}catch(b){a.stack=b.stack}Error.stackTraceLimit-=6})}();"u">typeof console&&void 0!==console.warn&&(f=function(a){console.warn(a)},j.isNode&&process.stderr.isTTY?f=function(a,b){console.warn((b?"\x1b[33m":"\x1b[31m")+a+"\x1b[0m\n")}:j.isNode||"string"!=typeof Error().stack||(f=function(a,b){console.warn("%c"+a,b?"color: darkorange":"color: red")}));var Y={warnings:s,longStackTraces:!1,cancellation:!1,monitoring:!1};return t&&a.longStackTraces(),{longStackTraces:function(){return Y.longStackTraces},warnings:function(){return Y.warnings},cancellation:function(){return Y.cancellation},monitoring:function(){return Y.monitoring},propagateFromFunction:function(){return I},boundValueFunction:function(){return J},checkForgottenReturns:function(a,b,c,d,e){if(void 0===a&&null!==b&&u&&!(void 0!==e&&e._returnedNonUndefined())&&(65535&d._bitField)!=0){c&&(c+=" ");var f="",g="";if(b._trace){for(var h=b._trace.stack.split("\n"),i=N(h),j=i.length-1;j>=0;--j){var k=i[j];if(!m.test(k)){var l=k.match(n);l&&(f="at "+l[1]+":"+l[2]+":"+l[3]+" ");break}}if(i.length>0){for(var o=i[0],j=0;j<h.length;++j)if(h[j]===o){j>0&&(g="\n"+h[j-1]);break}}}var p="a promise was created in a "+c+"handler "+f+"but was not returned from it, see http://goo.gl/rRqMUw"+g;d._warn(p,!0,b)}},setBounds:function(a,b){if(S()){for(var c,d,e=a.stack.split("\n"),f=b.stack.split("\n"),g=-1,h=-1,i=0;i<e.length;++i){var j=V(e[i]);if(j){c=j.fileName,g=j.line;break}}for(var i=0;i<f.length;++i){var j=V(f[i]);if(j){d=j.fileName,h=j.line;break}}g<0||h<0||!c||!d||c!==d||g>=h||(T=function(a){if(l.test(a))return!0;var b=V(a);return!!b&&b.fileName===c&&!!(g<=b.line)&&!!(b.line<=h)})}},warn:M,deprecated:function(a,b){var c=a+" is deprecated and will be removed in a future version.";return b&&(c+=" Use "+b+" instead."),M(c)},CapturedTrace:W,fireDomEvent:w,fireGlobalEvent:x}}},62028:a=>{"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/"),({166:function(){!function(a){"use strict";if(!a.setImmediate){var b,c,d,e,f,g=1,h={},i=!1,j=a.document,k=Object.getPrototypeOf&&Object.getPrototypeOf(a);k=k&&k.setTimeout?k:a,"[object process]"===({}).toString.call(a.process)?f=function(a){process.nextTick(function(){m(a)})}:function(){if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=c,b}}()?(b="setImmediate$"+Math.random()+"$",c=function(c){c.source===a&&"string"==typeof c.data&&0===c.data.indexOf(b)&&m(+c.data.slice(b.length))},a.addEventListener?a.addEventListener("message",c,!1):a.attachEvent("onmessage",c),f=function(c){a.postMessage(b+c,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(a){m(a.data)},f=function(a){d.port2.postMessage(a)}):j&&"onreadystatechange"in j.createElement("script")?(e=j.documentElement,f=function(a){var b=j.createElement("script");b.onreadystatechange=function(){m(a),b.onreadystatechange=null,e.removeChild(b),b=null},e.appendChild(b)}):f=function(a){setTimeout(m,0,a)},k.setImmediate=function(a){"function"!=typeof a&&(a=Function(""+a));for(var b=Array(arguments.length-1),c=0;c<b.length;c++)b[c]=arguments[c+1];var d={callback:a,args:b};return h[g]=d,f(g),g++},k.clearImmediate=l}function l(a){delete h[a]}function m(a){if(i)setTimeout(m,0,a);else{var b=h[a];if(b){i=!0;try{var c=b.callback,d=b.args;switch(d.length){case 0:c();break;case 1:c(d[0]);break;case 2:c(d[0],d[1]);break;case 3:c(d[0],d[1],d[2]);break;default:c.apply(void 0,d)}}finally{l(a),i=!1}}}}}("u"<typeof self?"u"<typeof global?this:global:self)}})[166](),a.exports={}},62117:(a,b,c)=>{var d=c(84906),e=c(67708);function f(a){var b=[];return a.map(g).forEach(function(a){!function a(b,c){var d=b[b.length-1];"element"===c.type&&!c.tag.fresh&&d&&"element"===d.type&&c.tag.matchesElement(d.tag)?(c.tag.separator&&a(d.children,e.text(c.tag.separator)),c.children.forEach(function(b){a(d.children,b)})):b.push(c)}(b,a)}),b}function g(a){return h[a.type](a)}var h={element:function(a){return e.elementWithTag(a.tag,f(a.children))},text:i,forceWrite:i};function i(a){return a}function j(a){var b,c;return b=a,c=function(a){return k[a.type](a)},d.flatten(d.map(b,c),!0)}var k={element:function(a){var b=j(a.children);return 0!==b.length||e.isVoidElement(a)?[e.elementWithTag(a.tag,b)]:[]},text:function(a){return 0===a.value.length?[]:[a]},forceWrite:function(a){return[a]}};a.exports=function(a){return f(j(a))}},62213:(a,b,c)=>{var d=c(79428),e=d.Buffer;function f(a,b){for(var c in a)b[c]=a[c]}function g(a,b,c){return e(a,b,c)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?a.exports=d:(f(d,b),b.Buffer=g),f(e,g),g.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return e(a,b,c)},g.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var d=e(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},g.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return e(a)},g.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d.SlowBuffer(a)}},62230:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h,i=c(22418),j=i.canEvaluate,k=i.tryCatch,l=i.errorObj;if(j){for(var m,n,o=[],p=[],q=[],r=0;r<8;++r)o.push(function(b){for(var c=Array(b),d=0;d<c.length;++d)c[d]="this.p"+(d+1);var e=c.join(" = ")+" = null;",g="var promise;\n"+c.map(function(a){return" \n promise = "+a+"; \n if (promise instanceof Promise) { \n promise.cancel(); \n } \n "}).join("\n"),h=c.join(", "),i="Holder$"+b,j="return function(tryCatch, errorObj, Promise, async) { \n 'use strict'; \n function [TheName](fn) { \n [TheProperties] \n this.fn = fn; \n this.asyncNeeded = true; \n this.now = 0; \n } \n \n [TheName].prototype._callFunction = function(promise) { \n promise._pushContext(); \n var ret = tryCatch(this.fn)([ThePassedArguments]); \n promise._popContext(); \n if (ret === errorObj) { \n promise._rejectCallback(ret.e, false); \n } else { \n promise._resolveCallback(ret); \n } \n }; \n \n [TheName].prototype.checkFulfillment = function(promise) { \n var now = ++this.now; \n if (now === [TheTotal]) { \n if (this.asyncNeeded) { \n async.invoke(this._callFunction, this, promise); \n } else { \n this._callFunction(promise); \n } \n \n } \n }; \n \n [TheName].prototype._resultCancelled = function() { \n [CancellationCode] \n }; \n \n return [TheName]; \n }(tryCatch, errorObj, Promise, async); \n ";return Function("tryCatch","errorObj","Promise","async",j=j.replace(/\[TheName\]/g,i).replace(/\[TheTotal\]/g,b).replace(/\[ThePassedArguments\]/g,h).replace(/\[TheProperties\]/g,e).replace(/\[CancellationCode\]/g,g))(k,l,a,f)}(r+1)),p.push((m=r+1,Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g,m)))),q.push((n=r+1,Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,n))));h=function(a){this._reject(a)}}a.join=function(){var c,f=arguments.length-1;if(f>0&&"function"==typeof arguments[f]&&(c=arguments[f],f<=8&&j)){var k=new a(e);k._captureStackTrace();for(var l=new o[f-1](c),m=p,n=0;n<f;++n){var r=d(arguments[n],k);if(r instanceof a){var s=(r=r._target())._bitField;(0x3010000&s)==0?(r._then(m[n],h,void 0,k,l),q[n](r,l),l.asyncNeeded=!1):(0x2000000&s)!=0?m[n].call(k,r._value(),l):(0x1000000&s)!=0?k._reject(r._reason()):k._cancel()}else m[n].call(k,r,l)}if(!k._isFateSealed()){if(l.asyncNeeded){var t=g();null!==t&&(l.fn=i.domainBind(t,l.fn))}k._setAsyncGuaranteed(),k._setOnCancel(l)}return k}for(var u=arguments.length,v=Array(u),w=0;w<u;++w)v[w]=arguments[w];c&&v.pop();var k=new b(v).promise();return void 0!==c?k.spread(c):k}}},62231:a=>{"use strict";a.exports=function(a,b,c,d){for(var e=65535&a,f=a>>>16&65535,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do f=f+(e=e+b[d++]|0)|0;while(--g);e%=65521,f%=65521}return e|f<<16}},62325:(a,b)=>{"use strict";b.resolveProps=function(a,{flow:b,indicator:c,next:d,offset:e,onError:f,parentIndent:g,startOnNewline:h}){let i=!1,j=h,k=h,l="",m="",n=!1,o=!1,p=null,q=null,r=null,s=null,t=null,u=null,v=null;for(let e of a)switch(o&&("space"!==e.type&&"newline"!==e.type&&"comma"!==e.type&&f(e.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),o=!1),p&&(j&&"comment"!==e.type&&"newline"!==e.type&&f(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),p=null),e.type){case"space":!b&&("doc-start"!==c||d?.type!=="flow-collection")&&e.source.includes(" ")&&(p=e),k=!0;break;case"comment":{k||f(e,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let a=e.source.substring(1)||" ";l?l+=m+a:l=a,m="",j=!1;break}case"newline":j?l?l+=e.source:u&&"seq-item-ind"===c||(i=!0):m+=e.source,j=!0,n=!0,(q||r)&&(s=e),k=!0;break;case"anchor":q&&f(e,"MULTIPLE_ANCHORS","A node can have at most one anchor"),e.source.endsWith(":")&&f(e.offset+e.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),q=e,v??(v=e.offset),j=!1,k=!1,o=!0;break;case"tag":r&&f(e,"MULTIPLE_TAGS","A node can have at most one tag"),r=e,v??(v=e.offset),j=!1,k=!1,o=!0;break;case c:(q||r)&&f(e,"BAD_PROP_ORDER",`Anchors and tags must be after the ${e.source} indicator`),u&&f(e,"UNEXPECTED_TOKEN",`Unexpected ${e.source} in ${b??"collection"}`),u=e,j="seq-item-ind"===c||"explicit-key-ind"===c,k=!1;break;case"comma":if(b){t&&f(e,"UNEXPECTED_TOKEN",`Unexpected , in ${b}`),t=e,j=!1,k=!1;break}default:f(e,"UNEXPECTED_TOKEN",`Unexpected ${e.type} token`),j=!1,k=!1}let w=a[a.length-1],x=w?w.offset+w.source.length:e;return o&&d&&"space"!==d.type&&"newline"!==d.type&&"comma"!==d.type&&("scalar"!==d.type||""!==d.source)&&f(d.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p&&(j&&p.indent<=g||d?.type==="block-map"||d?.type==="block-seq")&&f(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:t,found:u,spaceBefore:i,comment:l,hasNewline:n,anchor:q,tag:r,newlineAfterProp:s,end:x,start:v??x}}},62499:(a,b,c)=>{"use strict";var d=c(93602),e=c(95241),f=c(40686),g=c(79571),h=c(73315),i=c(17518),j=c(55578);function k(a){let b=!1!==a.prettyErrors;return{lineCounter:a.lineCounter||b&&new i.LineCounter||null,prettyErrors:b}}function l(a,b={}){let{lineCounter:c,prettyErrors:e}=k(b),g=new j.Parser(c?.addNewLine),h=new d.Composer(b),i=null;for(let b of h.compose(g.parse(a),!0,a.length))if(i){if("silent"!==i.options.logLevel){i.errors.push(new f.YAMLParseError(b.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else i=b;return e&&c&&(i.errors.forEach(f.prettifyError(a,c)),i.warnings.forEach(f.prettifyError(a,c))),i}b.parse=function(a,b,c){let d;"function"==typeof b?d=b:void 0===c&&b&&"object"==typeof b&&(c=b);let e=l(a,c);if(!e)return null;if(e.warnings.forEach(a=>g.warn(e.options.logLevel,a)),e.errors.length>0)if("silent"!==e.options.logLevel)throw e.errors[0];else e.errors=[];return e.toJS(Object.assign({reviver:d},c))},b.parseAllDocuments=function(a,b={}){let{lineCounter:c,prettyErrors:e}=k(b),g=new j.Parser(c?.addNewLine),h=new d.Composer(b),i=Array.from(h.compose(g.parse(a)));if(e&&c)for(let b of i)b.errors.forEach(f.prettifyError(a,c)),b.warnings.forEach(f.prettifyError(a,c));return i.length>0?i:Object.assign([],{empty:!0},h.streamInfo())},b.parseDocument=l,b.stringify=function(a,b,c){let d=null;if("function"==typeof b||Array.isArray(b)?d=b:void 0===c&&b&&(c=b),"string"==typeof c&&(c=c.length),"number"==typeof c){let a=Math.round(c);c=a<1?void 0:a>8?{indent:8}:{indent:a}}if(void 0===a){let{keepUndefined:a}=c??b??{};if(!a)return}return h.isDocument(a)&&!d?a.toString(c):new e.Document(a,d,c).toString(c)}},64092:(a,b,c)=>{"use strict";var d=c(30212),e=c(58952),f=c(76281),g=c(14732),h=c(75875),i=c(84127),j=c(47279),k=c(89745),l=c(39531),m=c(77203),n=function(a,b,c){var d,g=e.getTypeOf(b),k=e.extend(c||{},h);k.date=k.date||new Date,null!==k.compression&&(k.compression=k.compression.toUpperCase()),"string"==typeof k.unixPermissions&&(k.unixPermissions=parseInt(k.unixPermissions,8)),k.unixPermissions&&16384&k.unixPermissions&&(k.dir=!0),k.dosPermissions&&16&k.dosPermissions&&(k.dir=!0),k.dir&&(a=p(a)),k.createFolders&&(d=o(a))&&q.call(this,d,!0);var n="string"===g&&!1===k.binary&&!1===k.base64;c&&void 0!==c.binary||(k.binary=!n),(b instanceof i&&0===b.uncompressedSize||k.dir||!b||0===b.length)&&(k.base64=!1,k.binary=!0,b="",k.compression="STORE",g="string");var r=null;r=b instanceof i||b instanceof f?b:l.isNode&&l.isStream(b)?new m(a,b):e.prepareContent(a,b,k.binary,k.optimizedBinaryString,k.base64);var s=new j(a,r,k);this.files[a]=s},o=function(a){"/"===a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},p=function(a){return"/"!==a.slice(-1)&&(a+="/"),a},q=function(a,b){return b=void 0!==b?b:h.createFolders,a=p(a),this.files[a]||n.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]};function r(a){return"[object RegExp]"===Object.prototype.toString.call(a)}a.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var b,c,d;for(b in this.files)d=this.files[b],(c=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&a(c,d)},filter:function(a){var b=[];return this.forEach(function(c,d){a(c,d)&&b.push(d)}),b},file:function(a,b,c){if(1==arguments.length)if(r(a)){var d=a;return this.filter(function(a,b){return!b.dir&&d.test(a)})}else{var e=this.files[this.root+a];return e&&!e.dir?e:null}return a=this.root+a,n.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(r(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=q.call(this,b),d=this.clone();return d.root=c.name,d},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!==a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d<c.length;d++)delete this.files[c[d].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(a){var b,c={};try{if((c=e.extend(a||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode})).type=c.type.toLowerCase(),c.compression=c.compression.toUpperCase(),"binarystring"===c.type&&(c.type="string"),!c.type)throw Error("No output type specified.");e.checkSupport(c.type),("darwin"===c.platform||"freebsd"===c.platform||"linux"===c.platform||"sunos"===c.platform)&&(c.platform="UNIX"),"win32"===c.platform&&(c.platform="DOS");var h=c.comment||this.comment||"";b=k.generateWorker(this,c,h)}catch(a){(b=new f("error")).error(a)}return new g(b,c.type||"string",c.mimeType)},generateAsync:function(a,b){return this.generateInternalStream(a).accumulate(b)},generateNodeStream:function(a,b){return(a=a||{}).type||(a.type="nodebuffer"),this.generateInternalStream(a).toNodejsStream(b)}}},64798:(a,b,c)=>{var d=c(19435),e=c(26932);b.element=function(a){return function(b){return e.elementWithTag(d.element(a),[b])}}},65195:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{vq:()=>_});var e=c(7173),f=c(77598),g=c(73024),h=c(76760),i=c(87390),j=c(18437),k=c(11385),l=c(13898),m=c(87628),n=c(12144),o=c(80803),p=c(82043),q=c(44500),r=c(92952),s=c(36862),t=c(4186),u=c(28672),v=c(96851),w=c(36503),x=c(37427),y=c(98122),z=a([n,t,x,y]);[n,t,x,y]=z.then?(await z)():z;let aa=/^[A-Za-z0-9._-]{1,128}$/,ab=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/,ac=new Set(["auto","minimal","low","medium","high","xhigh","max","off"]),ad=new Set(["prompt","steer","follow_up","enqueue_message","get_message_queue","recall_queued_message","delete_queued_message","promote_queued_message","abort","abort_and_prompt","get_state","set_model","set_thinking_level","set_fast_mode","fork","new_session","switch_session","compact","abort_compaction","set_session_name","get_session_stats","get_last_assistant_text","get_commands","reload","extension_ui_response","bash","set_steering_mode","set_follow_up_mode","set_interrupt_mode","set_auto_compaction","set_auto_retry","abort_retry","abort_bash","set_todos","handoff","get_subagents","get_subagent_messages","set_subagent_subscription","get_messages","get_messages_page","get_branch_messages","export_html","cycle_model","cycle_thinking_level"]),ae={navigate_tree:"Branch navigation is not supported over the omp RPC protocol",clear_queue:"Recalling queued messages is not supported over the omp RPC protocol",get_tools:"Per-session tool listing is not supported over the omp RPC protocol",set_tools:"Changing tools on a running session is not supported over the omp RPC protocol; tool presets apply to new sessions",extension_ui_input:"Extension custom UI is not supported over the omp RPC protocol"},af=new Set(["list","search","searchContext","create","delete","archive","rename","restore","archives","import","branches","leaf","history","content","thinking","media","subagents","subagentTranscript","subagentCompletion","stats","state","systemPrompt","autoname","export","exportChunk","exportClose","command","attachments.begin","attachments.chunk","attachments.complete","attachments.abort","projects.remove","worktrees.list","worktrees.add","worktrees.remove"]);class ag extends y.uY{constructor(a,b,c){super(a,b),void 0!==c&&(this.details=c)}}function A(a,b,c){throw new ag(a,b,c)}function B(a){let b=(0,u.oJ)(a)?.trim();return b&&aa.test(b)||A("invalid_session","session id is required"),b}function C(a,b=0){if(void 0===a)return b;let c=(0,u.i)(a);return(void 0===c||!Number.isSafeInteger(c)||c<0)&&A("invalid_offset","offset must be a non-negative integer"),c}function D(a,b,c){if(void 0===a)return b;let d=(0,u.i)(a);return(void 0===d||!Number.isSafeInteger(d)||d<1||d>c)&&A("invalid_limit",`limit must be 1..${c}`),d}function E(a){let b={};for(let[c,d]of Object.entries(a))b[c]=d;return b}async function F(a){let b=C(a.offset,0),c=D(a.limit,100,500),d=(0,u.oJ)(a.query)?.trim().toLowerCase()??"",e=!0===a.runningOnly,f=await (0,y.Hq)(),g=new Set(f.runningIds),h=f.sessions;e&&(h=h.filter(a=>g.has(a.id))),d&&(h=h.filter(a=>a.id.toLowerCase().includes(d)||(a.name??"").toLowerCase().includes(d)||a.cwd.toLowerCase().includes(d)||a.firstMessage.toLowerCase().includes(d)));let i=h.length,j=h.slice(b,b+c);return{sessions:j,runningIds:f.runningIds,total:i,offset:b,limit:c,hasMore:b+j.length<i}}async function G(a){"string"!=typeof a.query&&A("invalid_search","query must be a string");let b={query:a.query};for(let c of["projectRoot","from","to","cursor"]){let d=a[c];void 0!==d&&("string"!=typeof d&&A("invalid_search",`${c} must be a string`),b[c]=d)}void 0!==a.limit&&("number"!=typeof a.limit&&A("invalid_search","limit must be a number"),b.limit=a.limit);try{return{...await (0,m.iG)(b)}}catch(a){throw a instanceof m.nC&&A(400===a.status?"invalid_search":"search_unavailable",a.message),a}}async function H(a){let b=B(a.id);"string"!=typeof a.entryId&&A("invalid_search","entryId must be a string");try{return{...await (0,m.OD)({id:b,entryId:a.entryId})}}catch(a){throw a instanceof m.nC&&A(404===a.status?"not_found":400===a.status?"invalid_search":"search_unavailable",a.message),a}}async function I(a){let b,c,d=(0,u.oJ)(a.cwd)?.trim();d||A("cwd_required","cwd is required");try{b=(0,r.fm)(d)}catch(a){throw a instanceof r.HZ&&A(a.code,a.message),a}(0,g.existsSync)(b)||A("directory_not_found",`Directory does not exist: ${b}`);let e=(0,u.oJ)(a.message)?.trim()??"";e.length>v._Q&&A("invalid_command","prompt message is too long");let h=(0,u.oJ)(a.thinkingLevel)?.trim();h&&!ac.has(h)&&A("invalid_command","Unknown thinking level");let j=(0,u.oJ)(a.provider)?.trim(),k=(0,u.oJ)(a.modelId)?.trim();if((j&&!k||!j&&k)&&A("invalid_command","set_model requires provider and modelId"),void 0!==a.toolNames){let b=a.toolNames;Array.isArray(b)||A("invalid_tools","toolNames must be an array of tool names");let d=[];for(let a of b){("string"!=typeof a||!a.trim()||a.length>64)&&A("invalid_tools","toolNames must be an array of tool names");let b=a.toLowerCase();d.includes(b)||d.push(b)}c=(0,n.Eb)(d)}let l=!0===a.advisor,m=`__new__${(0,f.randomUUID)()}`;try{let{session:a,realSessionId:d}=await (0,n.OF)(m,"",b,c,l);return(0,i.wz)(b),(0,p.mD)(),j&&k&&await a.send({type:"set_model",provider:j,modelId:k}),h&&await a.send({type:"set_thinking_level",level:h}),e&&await a.send({type:"prompt",message:e}),{sessionId:d}}catch(a){if(a instanceof n.OZ||a instanceof o.x||a instanceof y.uY)throw a;A("session_create_failed",a instanceof Error?a.message:String(a))}A("session_create_failed","unreachable")}async function J(a){let b=B(a.id),c=null==a.leafId?void 0:(0,u.oJ)(a.leafId)?.trim();null!=a.leafId&&(!c||c.length>200)&&A("invalid_leaf","leafId is invalid");let d=await (0,p.os)(b);if(d){let a=(0,p.cr)(d);"too_large"===a.error&&A("session_file_too_large","Session file is too large"),a.header||A("session_file_malformed","Session file is missing or malformed"),c&&!a.entries.some(a=>a.id===c)&&A("unknown_leaf","Unknown conversation branch");let e=c??(0,q.kT)(a.entries),f=(0,p.Uv)(a.entries,e,{deferThinking:!1,deferToolResultImages:!1});return{id:b,leafId:e,messages:f.messages,entryIds:f.entryIds,filePath:d,entries:a.entries}}c&&A("unknown_leaf","Unknown conversation branch");let f=(0,n.A4)(b);f?.isAlive()||A("session_not_found","Session not found");let g=await f.send({type:"get_messages"});f.isAlive()&&(0,n.A4)(b)===f&&f.sessionId===b||A("session_not_found","Session not found"),"object"==typeof g&&null!==g&&"messages"in g&&Array.isArray(g.messages)||A("rpc_command_failed","Live transcript unavailable");let h=g.messages;return{id:b,leafId:null,messages:h,entryIds:h.map(a=>(0,e.H)(a)?.entryId??""),filePath:void 0,entries:[]}}function K(a,b,c,d){if(!a)return -1;let f=b.indexOf(a);if(f>=0)return f;if(!a.startsWith("live:"))return -1;let g=new Map(d.map(a=>[a.id,a])),h=-1;for(let d=0;d<b.length;d++){let f=g.get(b[d]),i=f&&"message"in f?f.message:c[d];if((0,e.H)(i)?.entryId===a){if(h>=0)return -1;h=d}}return h}async function L(a){let b=await J(a),c=(0,u.oJ)(a.entryId),d=K(c,b.entryIds,b.messages,b.entries);d<0&&A("entry_not_found","Entry is not part of this conversation branch");let f=(0,e.H)(b.messages[d],c);f||A("entry_not_found","Entry is not visible in this conversation");let g=JSON.stringify(f),h=C(a.offset,0),i=D(a.limit,32e3,64e3),j=Math.min(g.length,h+i);return{text:g.slice(h,j),encoding:"json",total:g.length,offset:h,nextOffset:j,hasMore:j<g.length}}async function M(a){let b;if(!0===a.online){let b=await J(a),c=(0,e.x)(b.messages,b.entryIds,C(a.offset,0),D(a.limit,100,500));return{id:b.id,leafId:b.leafId,...c}}let c=B(a.id),d=await (0,p.os)(c);d||A("session_not_found","Session not found");let f=(0,p.cr)(d);"too_large"===f.error&&A("session_file_too_large","Session file is too large to open in ompgui"),f.header||A("session_file_malformed","Session file is missing or malformed");let g=(0,q.qd)(f.entries,{skipToolResultImages:!0});if(void 0!==a.leafId&&null!==a.leafId){let c=(0,u.oJ)(a.leafId)?.trim();(!c||c.length>200)&&A("invalid_leaf","leafId is invalid"),b=c}let h=(0,q.kT)(g),i=b??h;b&&(new Set(g.map(a=>a.id)).has(b)||A("unknown_leaf","Unknown conversation branch"));let j=(0,p.Uv)(g,i??void 0,{deferThinking:!0,deferToolResultImages:!0}),k=j.messages.length,l=C(a.offset,0),m=D(a.limit,100,500),n=j.messages.slice(l,l+m),o=j.entryIds.slice(l,l+m);return{id:c,leafId:i??null,total:k,offset:l,limit:m,hasMore:l+n.length<k,messages:n,entryIds:o,thinkingLevel:j.thinkingLevel,model:j.model,todoPhases:j.todoPhases}}async function N(a){let b=B(a.id),c=(0,u.oJ)(a.entryId)?.trim();(!c||c.length>200)&&A("invalid_entry","entryId is required");let d=(0,u.i)(a.blockIndex);(void 0===d||!Number.isSafeInteger(d)||d<0||d>100)&&A("invalid_block_index","A valid block index is required");let e=await (0,p.os)(b);e||A("session_not_found","Session not found");let f=(0,p.DK)(e).find(a=>a.id===c);!(void 0===f||"message"!==f.type||"object"!=typeof f.message||null===f.message||Array.isArray(f.message))&&"role"in f.message&&"assistant"===f.message.role&&"content"in f.message&&Array.isArray(f.message.content)||A("assistant_message_not_found","Assistant message not found");let g=f.message.content[d];return!("object"!=typeof g||null===g||Array.isArray(g))&&"type"in g&&"thinking"===g.type&&"thinking"in g&&"string"==typeof g.thinking||A("thinking_block_not_found","Thinking block not found"),{thinking:g.thinking}}function O(a,b,c){let d=C(c.offset,0),e=D(c.limit,10,10),f=[],g=0;for(let b of a.slice(d,d+e)){let a=Buffer.byteLength(JSON.stringify(b));if(g+a>0xe00000&&f.length>0)break;a>0xe00000&&A("tool_result_images_too_large","Image exceeds supported size"),g+=a,f.push(b)}let h=d+f.length;return{images:f,missingCount:b,total:a.length,offset:d,nextOffset:h,hasMore:h<a.length}}async function P(a){let b=await J(a),c=(0,u.oJ)(a.entryId)?.trim();(!c||c.length>200)&&A("invalid_entry","entryId is required");let d=K(c,b.entryIds,b.messages,b.entries);if((d<0||!(0,e.H)(b.messages[d],c))&&A("entry_not_found","Entry is not part of this conversation branch"),b.filePath)try{let c=(0,p.td)(b.filePath,b.entryIds[d]);if(c)return O(c.images,c.missingCount,a)}catch(a){throw a instanceof j.zJ&&A(a.code,a.message),a}let f=b.entries.find(a=>a.id===b.entryIds[d]),g=f?(0,q.qd)([f])[0]:void 0,h=g&&"message"in g?g.message:b.messages[d];if("object"!=typeof h||null===h||!("content"in h)||!Array.isArray(h.content))return{images:[],missingCount:0};let i=(0,j.K8)({content:h.content,details:"details"in h?h.details:void 0});return O(i,0,a)}async function Q(a){let b=B(a.id),c=await (0,p.os)(b);if(!c){if((0,n.A4)(b)?.isAlive())return{subagents:[]};A("session_not_found","Session not found")}return{subagents:(0,k.$C)(c)}}async function R(a,b){let c,d=await (0,p.os)(a),e=(0,n.A4)(a);d||e?.isAlive()||A("session_not_found","Session not found");let f=d?(0,k.$C)(d).find(a=>a.id===b):void 0;if(e?.isAlive())try{let a=await e.send({type:"get_subagents"});a&&"object"==typeof a&&"subagents"in a&&Array.isArray(a.subagents)&&(c=a.subagents.find(a=>null!==a&&"object"==typeof a&&"id"in a&&a.id===b))}catch{}let g=c?.status;return{filePath:d,rpc:e,live:c,history:f,pending:"started"===g||"pending"===g||"running"===g}}function S(a,b,c,d){try{return(0,k.Ew)(a,b,c,void 0,!0)??(d?(0,k.Ew)(a,b,c,d,!0):null)}catch(a){throw a instanceof k.bR&&A("artifact_forbidden",a.message),a}}async function T(a){let b=B(a.id),c=(0,u.oJ)(a.subagentId)?.trim();c&&!(c.length>100)&&ab.test(c)||A("invalid_subagent_id","Invalid subagent id");let d=void 0===a.fromByte?0:(0,u.i)(a.fromByte);(void 0===d||!Number.isSafeInteger(d)||d<0)&&A("invalid_offset","fromByte must be a non-negative integer");let e=await R(b,c);if(e.live&&e.rpc)try{let a=await e.rpc.send({type:"get_subagent_messages",subagentId:c,fromByte:d});if(a&&"object"==typeof a&&"messages"in a&&Array.isArray(a.messages)&&!("error"in a&&a.error))return{...a,status:e.pending&&0===a.messages.length?"pending":"ready"}}catch{}let f=e.filePath?S(e.filePath,c,".jsonl"):null;if(!f){if(e.pending)return{status:"pending",fromByte:d,nextByte:d,reset:!1,messages:[],totalBytes:null};e.history||e.live||A("subagent_not_found","Subagent is not part of this session"),A("transcript_not_found","No saved transcript is available for this subagent")}let g=(0,k.tB)(f,d);return{status:e.pending&&0===g.messages.length?"pending":"ready",fromByte:g.fromByte,nextByte:g.nextByte,reset:g.reset,messages:g.messages,totalBytes:g.totalBytes??null,...g.error?{error:g.error}:{}}}async function U(a){let b=B(a.id),c=(0,u.oJ)(a.subagentId)?.trim();c&&!(c.length>100)&&ab.test(c)||A("invalid_subagent_id","Invalid subagent id");let d=await R(b,c),e=d.filePath?S(d.filePath,c,".md",d.history?.result?.outputPath):null,f=e?(0,k.XV)(e):null;return f?{...f,status:"ready"}:(d.history||d.live||A("subagent_not_found","Subagent is not part of this session"),{completion:null,truncated:!1,status:d.pending?"pending":"unavailable"})}async function V(a){let b=B(a.id);try{let a=await (0,y.Vi)(b,{type:"get_session_stats"});return("object"!=typeof a||null===a||Array.isArray(a))&&A("stats_failed","Session stats unavailable"),E(a)}catch(a){if(a instanceof y.uY||a instanceof n.OZ||a instanceof o.x)throw a;A("stats_failed",a instanceof Error?a.message:String(a))}A("stats_failed","unreachable")}async function W(a){let b=B(a.id);try{let a=await (0,y.Vi)(b,{type:"get_state"});return("object"!=typeof a||null===a||Array.isArray(a))&&A("state_failed","Session state unavailable"),E(a)}catch(a){if(a instanceof y.uY||a instanceof n.OZ||a instanceof o.x)throw a;A("state_failed",a instanceof Error?a.message:String(a))}A("state_failed","unreachable")}async function X(a){let b=B(a.id),c=await (0,y.Vi)(b,{type:"get_state"});return"object"==typeof c&&null!==c&&!Array.isArray(c)&&"systemPrompt"in c&&"string"==typeof c.systemPrompt?{systemPrompt:c.systemPrompt}:{systemPrompt:null}}async function Y(a){let b=B(a.id),c=(0,n.A4)(b),d=!!c?.isAlive?.();if(d&&void 0!==c&&"function"==typeof c.send)try{let a,b=await c.send({type:"get_state"});"object"==typeof b&&null!==b&&!Array.isArray(b)&&"sessionName"in b&&"string"==typeof b.sessionName&&(a=b.sessionName);let d=(0,l.c)(a);if(d)return(0,p.mD)(),{title:d}}catch{}let e=await (0,p.os)(b);e||A("session_not_found","Session not found");let f=(0,q.mk)(e,!1),g=(0,l.c)(f?.title);if(g)return{title:g};let h=(0,l.z)(f?.firstMessage);return h||A("session_no_messages_to_name","The session has no user messages to name"),d||(0,q.Bm)(e,h,"auto"),(0,p.mD)(),{title:h}}async function Z(a,b){let c,d=B(a.id),e=function(a){("object"!=typeof a||null===a||Array.isArray(a))&&A("invalid_command","command must be an object");let b={};for(let[c,d]of Object.entries(a))b[c]=d;return b}(a.command),f=(0,u.oJ)(e.type)?.trim();f||A("command_type_required","command type is required"),ae[f]&&A("unsupported_command",ae[f]),ad.has(f)||A("unsupported_command",`Unsupported command: ${f}`),e.type=f,"recall_queued_message"===f&&(e.__relayRecallMaxBytes=0xf00000);let g="prompt"===f||"abort_and_prompt"===f||"steer"===f||"follow_up"===f||"enqueue_message"===f,h=void 0!==e.attachmentIds;if(h&&!g&&A("invalid_attachment","This command does not accept attachmentIds"),"enqueue_message"===f&&"steer"!==e.lane&&"followUp"!==e.lane&&A("invalid_command","enqueue_message requires lane steer or followUp"),("recall_queued_message"===f||"delete_queued_message"===f||"promote_queued_message"===f)&&("string"==typeof e.id&&e.id.trim()||A("invalid_command",`${f} requires id`),("number"!=typeof e.expectedRevision||!Number.isSafeInteger(e.expectedRevision)||e.expectedRevision<0)&&A("invalid_command",`${f} requires a nonnegative safe integer expectedRevision`)),h&&void 0!==e.images&&A("invalid_images","Do not combine images and attachmentIds"),g&&("string"!=typeof e.message||e.message.length>v._Q)&&A("invalid_command","A prompt message of at most 3Mi characters is required"),g&&void 0!==e.images){let a=e.images;Array.isArray(a)||A("invalid_images","images must be an array");let b=a.map(a=>{if("object"!=typeof a||null===a||Array.isArray(a))return a;let b="data"in a&&"string"==typeof a.data?a.data:void 0,c="mimeType"in a&&"string"==typeof a.mimeType?a.mimeType:void 0;return{type:"image",data:b,mimeType:c}}),c=(0,j.kc)(b);c&&A("invalid_images",c),e.images=b}if("fork"===f){b.sessionId!==d&&A("invalid_session","Open the target session before creating a fork"),b.assertActive?.();let a=(0,u.oJ)(e.entryId)?.trim();(!a||a.length>200)&&A("invalid_entry","fork requires a valid entryId");let f=null==e.leafId?void 0:(0,u.oJ)(e.leafId)?.trim();null!=e.leafId&&(!f||f.length>200)&&A("invalid_leaf","leafId is invalid");let g=await (0,p.os)(d);g||A("entry_not_found","Wait for this user message to be saved, then refresh before creating a fork"),e.entryId=(c=()=>{let b=(0,p.cr)(g);(!b.header||b.header.id!==d||b.error)&&A("entry_not_found","The saved conversation is unavailable; refresh before creating a fork"),f&&!b.entries.some(a=>a.id===f)&&A("unknown_leaf","Unknown conversation branch");let c=a;if(f||a.startsWith("live:")){let d=(0,p.Uv)(b.entries,f??(0,q.kT)(b.entries),{deferThinking:!1,deferToolResultImages:!1}),e=K(a,d.entryIds,d.messages,b.entries);c=e<0?void 0:d.entryIds[e]}let e=b.entries.find(a=>a.id===c);return e&&"message"===e.type&&"user"===e.message.role||A("entry_not_found","Select a uniquely identifiable saved user message on this branch; refresh before creating a fork"),e.id})(),delete e.leafId}if("bash"===f&&!0===e.excludeFromContext&&A("bash_exclude_unsupported","omp cannot run a shell command with its output excluded from the model context (`!!`): the RPC bash command has no exclusion option, so the output would silently enter the context anyway. Run it with a single `!` to share the output with the model, or use a terminal outside ompgui."),"set_model"===f){let a=(0,u.oJ)(e.provider)?.trim(),b=(0,u.oJ)(e.modelId)?.trim();a&&b||A("invalid_command","set_model requires provider and modelId")}"set_thinking_level"===f&&(((0,u.oJ)(e.level)?.trim()??(0,u.oJ)(e.thinkingLevel)?.trim())||A("invalid_command","set_thinking_level requires level")),"set_session_name"===f&&((0,u.oJ)(e.name)?.trim()||A("invalid_command","Session name cannot be empty")),"extension_ui_response"===f&&((0,u.oJ)(e.id)?.trim()||A("invalid_command","extension_ui_response requires id"),b.sessionId!==d&&A("invalid_session","Open the target session before answering its dialog")),h&&(b.sessionId!==d&&A("invalid_session","Open the target session before sending attachments"),(0,n.A4)(d)?.isAlive()||await (0,p.os)(d)||A("session_not_found","Session not found")),b.assertActive?.();let i=h?w.qc.claim(b.deviceId,e.attachmentIds):void 0;delete e.attachmentIds;try{let a=await (0,y.Vi)(d,e,()=>(b.assertActive?.(),c&&(e.entryId=c()),i?{...e,images:i.materialize()}:e));if(null==a)return{result:null};if("object"==typeof a)return{result:a};return{result:{value:a}}}catch(a){if(a instanceof y.uY||a instanceof n.OZ||a instanceof o.x)throw a;A("rpc_command_failed",a instanceof Error?a.message:String(a))}finally{i?.dispose()}A("rpc_command_failed","unreachable")}async function $(a){let b=(0,u.oJ)(a.cwd)?.trim(),c=(0,u.oJ)(a.path)?.trim();b||A("cwd_required","cwd is required"),c||A("path_required","path is required");let d=await (0,i.mc)(),e=(0,h.resolve)(b);(0,i.B7)(e,d)||A("access_denied","Path is outside allowed workspaces");let f=!0===a.force;try{return await (0,s.IL)(b,c,f),{path:c}}catch(b){let a=b instanceof Error?b.message:String(b);/contains modified or untracked files|is dirty/i.test(a)&&A("worktree_dirty",a,{dirty:!0}),a.startsWith("Not a worktree of this repository")&&A("not_a_worktree",a),a.startsWith("Cannot remove the main worktree")&&A("cannot_remove_main_worktree",a),A("worktree_remove_failed",a)}A("worktree_remove_failed","unreachable")}async function _(a,b,c){af.has(a)||A("unknown_action",`Unknown sessions action: ${a}`),("object"!=typeof b||null===b||Array.isArray(b))&&A("invalid_args","args must be an object");let d={};for(let[a,c]of Object.entries(b))d[a]=c;switch(a){case"projects.remove":{let a=(0,u.oJ)(d.cwd)?.trim();return a||A("invalid_args","cwd is required"),{...await (0,t.bO)(await (0,t.cK)(a)),projects:await (0,t.c7)()}}case"list":return F(d);case"create":return I(d);case"delete":{let a=B(d.id);return{...await (0,x.Zk)(a)}}case"archive":{let a=B(d.id);return{...await (0,x.aZ)(a)}}case"rename":{let a=B(d.id),b=(0,u.oJ)(d.name)??"";return{...await (0,x.wP)(a,b)}}case"restore":{let a=(0,u.oJ)(d.key)?.trim();return a||A("invalid_key","archive key is required"),{...await (0,x.CW)(a)}}case"archives":return{archives:await (0,x.pG)()};case"import":{let a=(0,u.oJ)(d.fileName)??"",b=(0,u.oJ)(d.content)??"";return{...await (0,x.bU)(a,b)}}case"branches":{let a=B(d.id);return{...await (0,y.Y8)(a)}}case"leaf":{let a=B(d.id),b=(0,u.oJ)(d.leafId)?.trim();return b||A("invalid_leaf","leafId is required"),{...await (0,y.QG)(a,b)}}case"search":return G(d);case"searchContext":return H(d);case"content":return L(d);case"history":return M(d);case"thinking":return N(d);case"media":return P(d);case"subagents":return Q(d);case"subagentTranscript":return T(d);case"subagentCompletion":return U(d);case"stats":return V(d);case"state":return W(d);case"systemPrompt":return X(d);case"autoname":return Y(d);case"export":{let a=B(d.id);return{...await (0,y._C)(a,c.deviceId)}}case"exportChunk":{let a=(0,u.oJ)(d.transferId)?.trim();a||A("invalid_transfer","transferId is required");let b=C(d.offset,0),e=void 0===d.length?98304:D(d.length,98304,98304);return{...(0,y.B6)(a,b,e,c.deviceId)}}case"exportClose":{let a=(0,u.oJ)(d.transferId)?.trim();return a||A("invalid_transfer","transferId is required"),{...(0,y.jj)(a,c.deviceId)}}case"attachments.begin":return w.qc.begin(c.deviceId,d.mimeType,d.size);case"attachments.chunk":return w.qc.chunk(c.deviceId,d.attachmentId,d.offset,d.data);case"attachments.complete":return w.qc.complete(c.deviceId,d.attachmentId);case"attachments.abort":return w.qc.abort(c.deviceId,d.attachmentId);case"command":return Z(d,c);case"worktrees.list":{let a=(0,u.oJ)(d.cwd)?.trim();return a||A("cwd_required","cwd is required"),{...await (0,t.AV)(a)}}case"worktrees.add":{let a=(0,u.oJ)(d.cwd)?.trim(),b=(0,u.oJ)(d.branch)?.trim();return a||A("cwd_required","cwd is required"),b||A("branch_required","branch is required"),{...await (0,t.E3)(a,b)}}case"worktrees.remove":return $(d);default:A("unknown_action",`Unknown sessions action: ${a}`)}A("unknown_action",`Unknown sessions action: ${a}`)}d()}catch(a){d(a)}})},65668:(a,b,c)=>{"use strict";a.exports=function(a){var b=c(22418),d=a._async,e=b.tryCatch,f=b.errorObj;function g(a,c){if(!b.isArray(a))return h.call(this,a,c);var g=e(c).apply(this._boundValue(),[null].concat(a));g===f&&d.throwLater(g.e)}function h(a,b){var c=this._boundValue(),g=void 0===a?e(b).call(c,null):e(b).call(c,null,a);g===f&&d.throwLater(g.e)}function i(a,b){if(!a){var c=Error(a+"");c.cause=a,a=c}var g=e(b).call(this._boundValue(),a);g===f&&d.throwLater(g.e)}a.prototype.asCallback=a.prototype.nodeify=function(a,b){if("function"==typeof a){var c=h;void 0!==b&&Object(b).spread&&(c=g),this._then(c,i,void 0,this,a)}return this}}},65695:(a,b)=>{"use strict";b.stringifyNumber=function({format:a,minFractionDigits:b,tag:c,value:d}){if("bigint"==typeof d)return String(d);let e="number"==typeof d?d:Number(d);if(!isFinite(e))return isNaN(e)?".nan":e<0?"-.inf":".inf";let f=Object.is(d,-0)?"-0":JSON.stringify(d);if(!a&&b&&(!c||"tag:yaml.org,2002:float"===c)&&/^-?\d/.test(f)&&!f.includes("e")){let a=f.indexOf(".");a<0&&(a=f.length,f+=".");let c=b-(f.length-a-1);for(;c-- >0;)f+="0"}return f}},65869:a=>{a.exports={failure:function(a,c){if(a.length<1)throw Error("Failure must have errors");return new b({status:"failure",remaining:c,errors:a})},error:function(a,c){if(a.length<1)throw Error("Failure must have errors");return new b({status:"error",remaining:c,errors:a})},success:function(a,c,d){return new b({status:"success",value:a,source:d,remaining:c,errors:[]})},cut:function(a){return new b({status:"cut",remaining:a,errors:[]})}};var b=function(a){this._value=a.value,this._status=a.status,this._hasValue=void 0!==a.value,this._remaining=a.remaining,this._source=a.source,this._errors=a.errors};b.prototype.map=function(a){return this._hasValue?new b({value:a(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this},b.prototype.changeRemaining=function(a){return new b({value:this._value,status:this._status,remaining:a,source:this._source,errors:this._errors})},b.prototype.isSuccess=function(){return"success"===this._status||"cut"===this._status},b.prototype.isFailure=function(){return"failure"===this._status},b.prototype.isError=function(){return"error"===this._status},b.prototype.isCut=function(){return"cut"===this._status},b.prototype.value=function(){return this._value},b.prototype.remaining=function(){return this._remaining},b.prototype.source=function(){return this._source},b.prototype.errors=function(){return this._errors}},66273:(a,b,c)=>{"use strict";var d=c(10878),e=c(73315),f=c(26957);function g(a,b,c){let e=c;for(let a=b.length-1;a>=0;--a){let c=b[a];if("number"==typeof c&&Number.isInteger(c)&&c>=0){let a=[];a[c]=e,e=a}else e=new Map([[c,e]])}return d.createNode(e,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:a,sourceObjects:new Map})}let h=a=>null==a||"object"==typeof a&&!!a[Symbol.iterator]().next().done;class i extends f.NodeBase{constructor(a,b){super(a),Object.defineProperty(this,"schema",{value:b,configurable:!0,enumerable:!1,writable:!0})}clone(a){let b=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return a&&(b.schema=a),b.items=b.items.map(b=>e.isNode(b)||e.isPair(b)?b.clone(a):b),this.range&&(b.range=this.range.slice()),b}addIn(a,b){if(h(a))this.add(b);else{let[c,...d]=a,f=this.get(c,!0);if(e.isCollection(f))f.addIn(d,b);else if(void 0===f&&this.schema)this.set(c,g(this.schema,d,b));else throw Error(`Expected YAML collection at ${c}. Remaining path: ${d}`)}}deleteIn(a){let[b,...c]=a;if(0===c.length)return this.delete(b);let d=this.get(b,!0);if(e.isCollection(d))return d.deleteIn(c);throw Error(`Expected YAML collection at ${b}. Remaining path: ${c}`)}getIn(a,b){let[c,...d]=a,f=this.get(c,!0);return 0===d.length?!b&&e.isScalar(f)?f.value:f:e.isCollection(f)?f.getIn(d,b):void 0}hasAllNullValues(a){return this.items.every(b=>{if(!e.isPair(b))return!1;let c=b.value;return null==c||a&&e.isScalar(c)&&null==c.value&&!c.commentBefore&&!c.comment&&!c.tag})}hasIn(a){let[b,...c]=a;if(0===c.length)return this.has(b);let d=this.get(b,!0);return!!e.isCollection(d)&&d.hasIn(c)}setIn(a,b){let[c,...d]=a;if(0===d.length)this.set(c,b);else{let a=this.get(c,!0);if(e.isCollection(a))a.setIn(d,b);else if(void 0===a&&this.schema)this.set(c,g(this.schema,d,b));else throw Error(`Expected YAML collection at ${c}. Remaining path: ${d}`)}}}b.Collection=i,b.collectionFromPath=g,b.isEmptyPath=h},66394:(a,b,c)=>{"use strict";try{throw Error()}catch(a){d=a}var d,e=c(86229),f=c(36911),g=c(22418);function h(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new f(16),this._normalQueue=new f(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var a=this;this.drainQueues=function(){a._drainQueues()},this._schedule=e}function i(a,b,c){this._lateQueue.push(a,b,c),this._queueTick()}function j(a,b,c){this._normalQueue.push(a,b,c),this._queueTick()}function k(a){this._normalQueue._pushOne(a),this._queueTick()}h.prototype.setScheduler=function(a){var b=this._schedule;return this._schedule=a,this._customScheduler=!0,b},h.prototype.hasCustomScheduler=function(){return this._customScheduler},h.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},h.prototype.disableTrampolineIfNecessary=function(){g.hasDevTools&&(this._trampolineEnabled=!1)},h.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},h.prototype.fatalError=function(a,b){b?(process.stderr.write("Fatal "+(a instanceof Error?a.stack:a)+"\n"),process.exit(2)):this.throwLater(a)},h.prototype.throwLater=function(a,b){if(1==arguments.length&&(b=a,a=function(){throw b}),"u">typeof setTimeout)setTimeout(function(){a(b)},0);else try{this._schedule(function(){a(b)})}catch(a){throw Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},g.hasDevTools?(h.prototype.invokeLater=function(a,b,c){this._trampolineEnabled?i.call(this,a,b,c):this._schedule(function(){setTimeout(function(){a.call(b,c)},100)})},h.prototype.invoke=function(a,b,c){this._trampolineEnabled?j.call(this,a,b,c):this._schedule(function(){a.call(b,c)})},h.prototype.settlePromises=function(a){this._trampolineEnabled?k.call(this,a):this._schedule(function(){a._settlePromises()})}):(h.prototype.invokeLater=i,h.prototype.invoke=j,h.prototype.settlePromises=k),h.prototype._drainQueue=function(a){for(;a.length()>0;){var b=a.shift();if("function"!=typeof b){b._settlePromises();continue}var c=a.shift(),d=a.shift();b.call(c,d)}},h.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},h.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},h.prototype._reset=function(){this._isTickUsed=!1},a.exports=h,a.exports.firstLineError=d},66560:(a,b,c)=>{"use strict";var d=c(73315),e=c(26701),f=c(77936),g=c(72687);b.stringifyPair=function({key:a,value:b},c,h,i){let j,k,l,{allNullValues:m,doc:n,indent:o,indentStep:p,options:{commentString:q,indentSeq:r,simpleKeys:s}}=c,t=d.isNode(a)&&a.comment||null;if(s){if(t)throw Error("With simple keys, key nodes cannot have comments");if(d.isCollection(a)||!d.isNode(a)&&"object"==typeof a)throw Error("With simple keys, collection cannot be used as a key value")}let u=!s&&(!a||t&&null==b&&!c.inFlow||d.isCollection(a)||(d.isScalar(a)?a.type===e.Scalar.BLOCK_FOLDED||a.type===e.Scalar.BLOCK_LITERAL:"object"==typeof a));c=Object.assign({},c,{allNullValues:!1,implicitKey:!u&&(s||!m),indent:o+p});let v=!1,w=!1,x=f.stringify(a,c,()=>v=!0,()=>w=!0);if(!u&&!c.inFlow&&x.length>1024){if(s)throw Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(c.inFlow){if(m||null==b)return v&&h&&h(),""===x?"?":u?`? ${x}`:x}else if(m&&!s||null==b&&u)return x=`? ${x}`,t&&!v?x+=g.lineComment(x,c.indent,q(t)):w&&i&&i(),x;v&&(t=null),u?(t&&(x+=g.lineComment(x,c.indent,q(t))),x=`? ${x}
|
|
81
|
+
${o}:`):(x=`${x}:`,t&&(x+=g.lineComment(x,c.indent,q(t)))),d.isNode(b)?(j=!!b.spaceBefore,k=b.commentBefore,l=b.comment):(j=!1,k=null,l=null,b&&"object"==typeof b&&(b=n.createNode(b))),c.implicitKey=!1,!u&&!t&&d.isScalar(b)&&(c.indentAtStart=x.length+1),w=!1,!(!r&&p.length>=2&&!c.inFlow&&!u&&d.isSeq(b))||b.flow||b.tag||b.anchor||(c.indent=c.indent.substring(2));let y=!1,z=f.stringify(b,c,()=>y=!0,()=>w=!0),A=" ";if(t||j||k){if(A=j?"\n":"",k){let a=q(k);A+=`
|
|
82
|
+
${g.indentComment(a,c.indent)}`}""!==z||c.inFlow?A+=`
|
|
83
|
+
${c.indent}`:"\n"===A&&l&&(A="\n\n")}else if(!u&&d.isCollection(b)){let a=z[0],d=z.indexOf("\n"),e=-1!==d,f=c.inFlow??b.flow??0===b.items.length;if(e||!f){let b=!1;if(e&&("&"===a||"!"===a)){let c=z.indexOf(" ");"&"===a&&-1!==c&&c<d&&"!"===z[c+1]&&(c=z.indexOf(" ",c+1)),(-1===c||d<c)&&(b=!0)}b||(A=`
|
|
84
|
+
${c.indent}`)}}else(""===z||"\n"===z[0])&&(A="");return x+=A+z,c.inFlow?y&&h&&h():l&&!y?x+=g.lineComment(x,c.indent,q(l)):w&&i&&i(),x}},67539:(a,b,c)=>{"use strict";var d=c(73315),e=c(49443),f=c(30598),g=c(71397),h=c(84183);class i extends g.YAMLSeq{constructor(){super(),this.add=f.YAMLMap.prototype.add.bind(this),this.delete=f.YAMLMap.prototype.delete.bind(this),this.get=f.YAMLMap.prototype.get.bind(this),this.has=f.YAMLMap.prototype.has.bind(this),this.set=f.YAMLMap.prototype.set.bind(this),this.tag=i.tag}toJSON(a,b){if(!b)return super.toJSON(a);let c=new Map;for(let a of(b?.onCreate&&b.onCreate(c),this.items)){let f,g;if(d.isPair(a)?(f=e.toJS(a.key,"",b),g=e.toJS(a.value,f,b)):f=e.toJS(a,"",b),c.has(f))throw Error("Ordered maps must not include duplicate keys");c.set(f,g)}return c}static from(a,b,c){let d=h.createPairs(a,b,c),e=new this;return e.items=d.items,e}}i.tag="tag:yaml.org,2002:omap",b.YAMLOMap=i,b.omap={collection:"seq",identify:a=>a instanceof Map,nodeClass:i,default:!1,tag:"tag:yaml.org,2002:omap",resolve(a,b){let c=h.resolvePairs(a,b),e=[];for(let{key:a}of c.items)d.isScalar(a)&&(e.includes(a.value)?b(`Ordered maps must not include duplicate keys: ${a.value}`):e.push(a.value));return Object.assign(new i,c)},createNode:(a,b,c)=>i.from(a,b,c)}},67646:(a,b,c)=>{"use strict";c.d(b,{S:()=>u,$:()=>r});var d=c(79646),e=c(29021),f=c.n(e),g=c(33873),h=c.n(g),i=c(28354),j=c(91652);let k=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function l(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:k.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let m=(0,i.promisify)(d.execFile);async function n(a,b,c=8388608){let{stdout:d}=await m("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function o(a){try{return(await n(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function p(a,b){let c=h().relative(h().resolve(a),h().resolve(b));return""===c||!c.startsWith(`..${h().sep}`)&&".."!==c&&!h().isAbsolute(c)}async function q(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a++){let d=b[a];if(!d||d.length<4||" "!==d[2])continue;let e=d[0],f=d[1],g={path:d.slice(3),indexStatus:e,worktreeStatus:f};("R"===e||"C"===e||"R"===f||"C"===f)&&(g.originalPath=b[++a]||void 0),c.push(g)}return c}(await n(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function r(a){let b=await o(a);if(!b)return{isGitRepository:!1,repositoryRoot:null,files:[]};let c=(await q(b)).flatMap(c=>{let d=h().resolve(b,c.path);return p(a,d)?[{filePath:d,...l(c),indexStatus:c.indexStatus,worktreeStatus:c.worktreeStatus}]:[]});return{isGitRepository:!0,repositoryRoot:b,files:c}}function s(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
|
|
85
|
+
new file mode 100644
|
|
86
|
+
--- /dev/null
|
|
87
|
+
+++ b/${a}
|
|
88
|
+
@@ -0,0 +1,${d.length} @@
|
|
89
|
+
${e}${f}`}async function t(a,b,c){try{return await n(a,["diff","--no-color","--no-ext-diff","--unified=3","HEAD","--",...c&&c!==b?[c,b]:[b]],4*j._4)}catch{return null}}async function u(a,b){let c,d,e=await o(a);if(!e||!p(e,b))return{supported:!1};let g=h().resolve(b);try{c=f().lstatSync(g)}catch{return{supported:!1}}if(!c.isFile()||c.size>j._4)return{supported:!1};let i=h().relative(e,g).split(h().sep).join("/"),k=(await q(e)).find(a=>a.path===i);if(!k)return{supported:!1};let{status:m}=l(k);if("deleted"===m)return{supported:!1};let n=f().readFileSync(g);if(n.includes(0))return{supported:!1};let r=n.toString("utf8");if("untracked"===m)d=s(i,r);else{let a=await t(e,i,k.originalPath);if(null===a){if("added"!==m)return{supported:!1};d=s(i,r)}else d=a}return d.includes("\n@@ ")?{supported:!0,status:m,patch:d}:{supported:!1}}},67681:(a,b,c)=>{"use strict";var d=c(3327),e=c(73315),f=c(15325),g=c(3289),h=c(12244),i=c(3863);let j={composeNode:k,composeEmptyNode:l};function k(a,b,c,i){let k,m=a.atKey,{spaceBefore:n,comment:o,anchor:p,tag:q}=c,r=!0;switch(b.type){case"alias":k=function({options:a},{offset:b,source:c,end:e},f){let g=new d.Alias(c.substring(1));""===g.source&&f(b,"BAD_ALIAS","Alias cannot be an empty string"),g.source.endsWith(":")&&f(b+c.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let i=b+c.length,j=h.resolveEnd(e,i,a.strict,f);return g.range=[b,i,j.offset],j.comment&&(g.comment=j.comment),g}(a,b,i),(p||q)&&i(b,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":k=g.composeScalar(a,b,q,i),p&&(k.anchor=p.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{k=f.composeCollection(j,a,b,c,i),p&&(k.anchor=p.source.substring(1))}catch(a){i(b,"RESOURCE_EXHAUSTION",a instanceof Error?a.message:String(a))}break;default:{let a="error"===b.type?b.message:`Unsupported token (type: ${b.type})`;i(b,"UNEXPECTED_TOKEN",a),r=!1}}return k??(k=l(a,b.offset,void 0,null,c,i)),p&&""===k.anchor&&i(p,"BAD_ALIAS","Anchor cannot be an empty string"),m&&a.options.stringKeys&&(!e.isScalar(k)||"string"!=typeof k.value||k.tag&&"tag:yaml.org,2002:str"!==k.tag)&&i(q??b,"NON_STRING_KEY","With stringKeys, all keys must be strings"),n&&(k.spaceBefore=!0),o&&("scalar"===b.type&&""===b.source?k.comment=o:k.commentBefore=o),a.options.keepSourceTokens&&r&&(k.srcToken=b),k}function l(a,b,c,d,{spaceBefore:e,comment:f,anchor:h,tag:j,end:k},m){let n={type:"scalar",offset:i.emptyScalarPosition(b,c,d),indent:-1,source:""},o=g.composeScalar(a,n,j,m);return h&&(o.anchor=h.source.substring(1),""===o.anchor&&m(h,"BAD_ALIAS","Anchor cannot be an empty string")),e&&(o.spaceBefore=!0),f&&(o.comment=f,o.range[2]=k),o}b.composeEmptyNode=l,b.composeNode=k},67708:(a,b,c)=>{var d=c(19435);function e(a,b){return{type:"element",tag:a,children:b||[]}}b.freshElement=function(a,b,c){return e(d.element(a,b,{fresh:!0}),c)},b.nonFreshElement=function(a,b,c){return e(d.element(a,b,{fresh:!1}),c)},b.elementWithTag=e,b.text=function(a){return{type:"text",value:a}},b.forceWrite={type:"forceWrite"};var f={br:!0,hr:!0,img:!0,input:!0};b.isVoidElement=function(a){return 0===a.children.length&&f[a.tag.tagName]}},67806:(a,b,c)=>{"use strict";c.d(b,{ee:()=>i,VP:()=>g,vf:()=>k,Dl:()=>j,AY:()=>h,nv:()=>s,No:()=>r,LT:()=>o,$i:()=>l,HE:()=>p,po:()=>q,Tj:()=>B,aS:()=>u,Bx:()=>w,GO:()=>v,lK:()=>y,LH:()=>x});var d=c(77598),e=c(18437);let f={revision:0,items:[]},g="enqueue_message",h="recall_queued_message",i="delete_queued_message",j="promote_queued_message",k="get_message_queue",l="queue_stale_revision",m="queue_item_missing",n="queue_item_sending",o="queue_invalid",p=3e4,q="This message may already have been handed to the agent. It was not confirmed and will not be retried.",r="Queued messages were discarded because the session shut down.",s="Queued messages were discarded because the session changed.",t=new Set([g,h,i,j,k]);class u extends Error{constructor(a,b){super(a),this.name="SessionQueueError",this.code=b}}function v(a){return"steer"===a||"followUp"===a}function w(a){return"string"==typeof a&&t.has(a)}function x(a){return{type:"message_queue_update",queue:a}}function y(a,b){return b?{queue:a,recalled:b}:{queue:a}}function z(a){return Buffer.byteLength(a,"utf8")}function A(a){let b={id:a.id,text:a.text,lane:a.lane,status:a.status,...a.error?{error:a.error}:{},...a.attachments?{attachments:Object.freeze(a.attachments.map(a=>Object.freeze({...a})))}:{}};return Object.freeze(b),b}class B{getSnapshot(){return this.snapshot}hasSending(){return this.items.some(a=>"sending"===a.status)}selectDispatchCandidate(a){if(!this.hasSending())return this.items.find(b=>"queued"===b.status&&b.lane===a)}getImages(a){return this.imagePayloads.get(a)}enqueue(a){if(!v(a.lane))throw new u("lane must be steer or followUp",o);let b=(0,e.kc)(a.images);if(b)throw new u(b,o);let c=[],f=[],g=0;if(Array.isArray(a.images))for(let b of a.images){if("object"!=typeof b||null===b||!("data"in b)||!("mimeType"in b)||"string"!=typeof b.data||"string"!=typeof b.mimeType)throw new u("Each attachment must be an image",o);let a=(0,e.Si)(b.data);if(null===a)throw new u("Invalid image data",o);g+=a,c.push(Object.freeze({type:"image",data:b.data,mimeType:b.mimeType})),f.push({mimeType:b.mimeType,bytes:a})}if(this.imageBytes+g>0x6400000)throw new u("Queue image capacity exceeds 100MiB; remove or recall queued images first","queue_images_too_large");let h=this.assertText(a.text,c.length>0);if(this.items.length>=32)throw new u("The queue already holds 32 messages","queue_full");this.assertTotalBytes(z(h));let i=A({id:(0,d.randomUUID)(),lane:a.lane,text:h,status:"queued",...f.length?{attachments:f}:{}});return c.length&&this.imagePayloads.set(i.id,Object.freeze(c)),this.imageBytes+=g,this.items=[...this.items,i],this.publish()}promote(a,b){let c=this.requireMutable(a,b);if("followUp"!==c.lane||"queued"!==c.status)throw new u("Only a queued follow-up can be promoted to steer",o);let d=A({...c,lane:"steer",status:"queued"});return this.items=[d,...this.items.filter(b=>b.id!==a)],this.publish()}recall(a,b,c){let d=this.requireMutable(a,b),e=this.imagePayloads.get(a);if(void 0!==c){if(!Number.isSafeInteger(c)||c<=0)throw new u("Invalid recall response capacity",o);let a=z(JSON.stringify({queue:this.snapshot,recalled:d}))+256;for(let b of e??[])a+=b.data.length+z(JSON.stringify({type:"image",data:"",mimeType:b.mimeType}))+1;if(a>c)throw new u("These queued images exceed the remote recall transfer limit. Recall them from the web app instead; the queued message has not changed.","queue_recall_too_large")}return this.releaseImages(d),this.items=this.items.filter(b=>b.id!==a),{item:e?{...d,images:e}:d,snapshot:this.publish()}}delete(a,b){let c=this.requireMutable(a,b);return this.releaseImages(c),this.items=this.items.filter(b=>b.id!==a),this.publish()}markSending(a){let b=this.items.find(b=>b.id===a);if(!b)throw new u("Queued message was not found",m);if("queued"!==b.status)throw new u("Queued message is already being sent",n);return this.replace(a,{...b,status:"sending"}),this.publish()}markFailed(a,b){let c=this.items.find(b=>b.id===a);return c?(this.replace(a,{...c,status:"failed",error:b}),this.publish()):this.snapshot}remove(a){let b=this.items.find(b=>b.id===a);return b?(this.releaseImages(b),this.items=this.items.filter(b=>b.id!==a),this.publish()):this.snapshot}failSending(a){return this.hasSending()?(this.items=this.items.map(b=>"sending"===b.status?A({...b,status:"failed",error:a}):b),this.publish()):this.snapshot}reset(){return this.imagePayloads.clear(),this.imageBytes=0,this.items=[],this.revision=0,this.snapshot=f,this.snapshot}releaseImages(a){if(this.imagePayloads.delete(a.id))for(let b of a.attachments??[])this.imageBytes-=b.bytes}requireMutable(a,b){this.assertCas(b);let c=this.items.find(b=>b.id===a);if(!c)throw new u("Queued message was not found",m);if("sending"===c.status)throw new u("Queued message is already being sent",n);return c}assertCas(a){if("number"!=typeof a||a!==this.revision)throw new u("Queue revision is stale; reload the queue and retry",l)}assertText(a,b){if("string"!=typeof a)throw new u("Message text is required",o);if(!b&&0===a.trim().length)throw new u("Message text cannot be empty",o);if(z(a)>262144)throw new u("Message exceeds 262144 bytes","queue_item_too_large");return a}assertTotalBytes(a){let b=a;for(let a of this.items)b+=z(a.text);if(b>1048576)throw new u("Queue exceeds 1048576 bytes","queue_too_large")}replace(a,b){this.items=this.items.map(c=>c.id===a?A(b):c)}publish(){let a;this.revision+=1;let b={revision:this.revision,items:(Object.freeze(a=this.items.map(a=>A(a))),a)};return Object.freeze(b),this.snapshot=b,b}constructor(){this.revision=0,this.items=[],this.imagePayloads=new Map,this.imageBytes=0,this.snapshot=f}}},68318:(a,b,c)=>{"use strict";a.exports=function(a,b){var d={},e=c(22418),f=c(35527),g=e.withAppended,h=e.maybeWrapAsError,i=e.canEvaluate,j=c(43823).TypeError,k={__isPromisified__:!0},l=RegExp("^(?:arity|length|name|arguments|caller|callee|prototype|__isPromisified__)$"),m=function(a){return e.isIdentifier(a)&&"_"!==a.charAt(0)&&"constructor"!==a};function n(a){return!l.test(a)}function o(a){try{return!0===a.__isPromisified__}catch(a){return!1}}var p=function(a){for(var b=[a],c=Math.max(0,a-1-3),d=a-1;d>=c;--d)b.push(d);for(var d=a+1;d<=3;++d)b.push(d);return b},q=i?function(c,i,j,k,l,m){var n=Math.max(0,("number"==typeof k.length?Math.max(Math.min(k.length,1024),0):0)-1),o=p(n),q="string"==typeof c||i===d,r="'use strict'; \n var ret = function (Parameters) { \n 'use strict'; \n var len = arguments.length; \n var promise = new Promise(INTERNAL); \n promise._captureStackTrace(); \n var nodeback = nodebackForPromise(promise, "+m+"); \n var ret; \n var callback = tryCatch([GetFunctionCode]); \n switch(len) { \n [CodeForSwitchCase] \n } \n if (ret === errorObj) { \n promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n } \n if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); \n return promise; \n }; \n notEnumerableProp(ret, '__isPromisified__', true); \n return ret; \n ".replace("[CodeForSwitchCase]",function(){for(var a="",b=0;b<o.length;++b)a+="case "+o[b]+":"+function(a){var b=e.filledRange(a,"_arg","").join(", ");return(q?"ret = callback.call(this, {{args}}, nodeback); break;\n":void 0===i?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n").replace("{{args}}",b).replace(", ",a>0?", ":"")}(o[b]);return a+" \n default: \n var args = new Array(len + 1); \n var i = 0; \n for (var i = 0; i < len; ++i) { \n args[i] = arguments[i]; \n } \n args[i] = nodeback; \n [CodeForCall] \n break; \n ".replace("[CodeForCall]",q?"ret = callback.apply(this, args);\n":"ret = callback.apply(receiver, args);\n")}()).replace("[GetFunctionCode]","string"==typeof c?"this != null ? this['"+c+"'] : fn":"fn");return Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",r=r.replace("Parameters",e.filledRange(Math.max(n,3),"_arg","")))(a,k,i,g,h,f,e.tryCatch,e.errorObj,e.notEnumerableProp,b)}:function(c,i,j,k,l,m){var n=function(){return this}(),o=c;function p(){var e=i;i===d&&(e=this);var j=new a(b);j._captureStackTrace();var k="string"==typeof o&&this!==n?this[o]:c,l=f(j,m);try{k.apply(e,g(arguments,l))}catch(a){j._rejectCallback(h(a),!0,!0)}return j._isFateSealed()||j._setAsyncGuaranteed(),j}return"string"==typeof o&&(c=k),e.notEnumerableProp(p,"__isPromisified__",!0),p};function r(a,b,c,f,g){for(var h=RegExp(b.replace(/([$])/,"\\$")+"$"),i=function(a,b,c,d){for(var f=e.inheritedDataKeys(a),g=[],h=0;h<f.length;++h){var i=f[h],l=a[i],n=d===m||m(i);"function"==typeof l&&!o(l)&&!function(a,b,c){var d=e.getDataPropertyOrDefault(a,b+c,k);return!!d&&o(d)}(a,i,b)&&d(i,l,a,n)&&g.push(i,l)}for(var p=0;p<g.length;p+=2){var q=g[p];if(c.test(q)){for(var r=q.replace(c,""),s=0;s<g.length;s+=2)if(g[s]===r)throw new j("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",b))}}return g}(a,b,h,c),l=0,n=i.length;l<n;l+=2){var p=i[l],r=i[l+1],s=p+b;if(f===q)a[s]=q(p,d,p,r,b,g);else{var t=f(r,function(){return q(p,d,p,r,b,g)});e.notEnumerableProp(t,"__isPromisified__",!0),a[s]=t}}return e.toFastProperties(a),a}a.promisify=function(a,b){if("function"!=typeof a)throw new j("expecting a function but got "+e.classString(a));if(o(a))return a;var c=q(a,void 0===(b=Object(b)).context?d:b.context,void 0,a,null,!!b.multiArgs);return e.copyDescriptors(a,c,n),c},a.promisifyAll=function(a,b){if("function"!=typeof a&&"object"!=typeof a)throw new j("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var c=!!(b=Object(b)).multiArgs,d=b.suffix;"string"!=typeof d&&(d="Async");var f=b.filter;"function"!=typeof f&&(f=m);var g=b.promisifier;if("function"!=typeof g&&(g=q),!e.isIdentifier(d))throw RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var h=e.inheritedDataKeys(a),i=0;i<h.length;++i){var k=a[h[i]];"constructor"!==h[i]&&e.isClass(k)&&(r(k.prototype,d,f,g,c),r(k,d,f,g,c))}return r(a,d,f,g,c)}}},69167:(a,b)=>{"use strict";var c="u">typeof Uint8Array&&"u">typeof Uint16Array&&"u">typeof Int32Array;b.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a},b.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var d={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(b=0,d=0,c=a.length;b<c;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;b<c;b++)f=a[b],g.set(f,e),e+=f.length;return g}},e={arraySet:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};b.setTyped=function(a){a?(b.Buf8=Uint8Array,b.Buf16=Uint16Array,b.Buf32=Int32Array,b.assign(b,d)):(b.Buf8=Array,b.Buf16=Array,b.Buf32=Array,b.assign(b,e))},b.setTyped(c)},69217:(a,b,c)=>{"use strict";var d=c(98308);function e(a){d.call(this,a)}c(58952).inherits(e,d),e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},69273:(a,b,c)=>{"use strict";var d=c(73315),e=c(30598);b.map={collection:"map",default:!0,nodeClass:e.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:(a,b)=>(d.isMap(a)||b("Expected a mapping for this tag"),a),createNode:(a,b,c)=>e.YAMLMap.from(a,b,c)}},69374:(a,b,c)=>{"use strict";var d=c(73315),e=c(37521),f=c(30598),g=c(71397),h=c(12244),i=c(62325),j=c(12093),k=c(6273);let l="Block collections are not allowed within flow collections",m=a=>a&&("block-map"===a.type||"block-seq"===a.type);b.resolveFlowCollection=function({composeNode:a,composeEmptyNode:b},c,n,o,p){let q="{"===n.start.source,r=q?"flow map":"flow sequence",s=new(p?.nodeClass??(q?f.YAMLMap:g.YAMLSeq))(c.schema);s.flow=!0;let t=c.atRoot;t&&(c.atRoot=!1),c.atKey&&(c.atKey=!1);let u=n.offset+n.start.source.length;for(let g=0;g<n.items.length;++g){let h=n.items[g],{start:p,key:t,sep:v,value:w}=h,x=i.resolveProps(p,{flow:r,indicator:"explicit-key-ind",next:t??v?.[0],offset:u,onError:o,parentIndent:n.indent,startOnNewline:!1});if(!x.found){if(!x.anchor&&!x.tag&&!v&&!w){0===g&&x.comma?o(x.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${r}`):g<n.items.length-1&&o(x.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${r}`),x.comment&&(s.comment?s.comment+="\n"+x.comment:s.comment=x.comment),u=x.end;continue}!q&&c.options.strict&&j.containsNewline(t)&&o(t,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===g)x.comma&&o(x.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${r}`);else if(x.comma||o(x.start,"MISSING_CHAR",`Missing , between ${r} items`),x.comment){let a="";d:for(let b of p)switch(b.type){case"comma":case"space":break;case"comment":a=b.source.substring(1);break d;default:break d}if(a){let b=s.items[s.items.length-1];d.isPair(b)&&(b=b.value??b.key),b.comment?b.comment+="\n"+a:b.comment=a,x.comment=x.comment.substring(a.length+1)}}if(q||v||x.found){c.atKey=!0;let d=x.end,g=t?a(c,t,x,o):b(c,d,p,null,x,o);m(t)&&o(g.range,"BLOCK_IN_FLOW",l),c.atKey=!1;let j=i.resolveProps(v??[],{flow:r,indicator:"map-value-ind",next:w,offset:g.range[2],onError:o,parentIndent:n.indent,startOnNewline:!1});if(j.found){if(!q&&!x.found&&c.options.strict){if(v)for(let a of v){if(a===j.found)break;if("newline"===a.type){o(a,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}x.start<j.found.offset-1024&&o(j.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else w&&("source"in w&&w.source?.[0]===":"?o(w,"MISSING_CHAR",`Missing space after : in ${r}`):o(j.start,"MISSING_CHAR",`Missing , or : between ${r} items`));let y=w?a(c,w,j,o):j.found?b(c,j.end,v,null,j,o):null;y?m(w)&&o(y.range,"BLOCK_IN_FLOW",l):j.comment&&(g.comment?g.comment+="\n"+j.comment:g.comment=j.comment);let z=new e.Pair(g,y);if(c.options.keepSourceTokens&&(z.srcToken=h),q)k.mapIncludes(c,s.items,g)&&o(d,"DUPLICATE_KEY","Map keys must be unique"),s.items.push(z);else{let a=new f.YAMLMap(c.schema);a.flow=!0,a.items.push(z);let b=(y??g).range;a.range=[g.range[0],b[1],b[2]],s.items.push(a)}u=y?y.range[2]:j.end}else{let d=w?a(c,w,x,o):b(c,x.end,v,null,x,o);s.items.push(d),u=d.range[2],m(w)&&o(d.range,"BLOCK_IN_FLOW",l)}}let v=q?"}":"]",[w,...x]=n.end,y=u;if(w?.source===v)y=w.offset+w.source.length;else{let a=r[0].toUpperCase()+r.substring(1),b=t?`${a} must end with a ${v}`:`${a} in block collection must be sufficiently indented and end with a ${v}`;o(u,t?"MISSING_CHAR":"BAD_INDENT",b),w&&1!==w.source.length&&x.unshift(w)}if(x.length>0){let a=h.resolveEnd(x,y,c.options.strict,o);a.comment&&(s.comment?s.comment+="\n"+a.comment:s.comment=a.comment),s.range=[n.offset,y,a.offset]}else s.range=[n.offset,y,y];return s}},70752:(a,b,c)=>{"use strict";var d=c(73315),e=c(77936),f=c(72687);function g({indent:a,options:{commentString:b}},c,d,e){if(d&&e&&(d=d.replace(/^\n+/,"")),d){let e=f.indentComment(b(d),a);c.push(e.trimStart())}}b.stringifyCollection=function(a,b,c){return(b.inFlow??a.flow?function({items:a},b,{flowChars:c,itemIndent:h}){let{indent:i,indentStep:j,flowCollectionPadding:k,options:{commentString:l}}=b,m=Object.assign({},b,{indent:h+=j,inFlow:!0,type:null}),n=!1,o=0,p=[];for(let c=0;c<a.length;++c){let i=a[c],j=null;if(d.isNode(i))i.spaceBefore&&p.push(""),g(b,p,i.commentBefore,!1),i.comment&&(j=i.comment);else if(d.isPair(i)){let a=d.isNode(i.key)?i.key:null;a&&(a.spaceBefore&&p.push(""),g(b,p,a.commentBefore,!1),a.comment&&(n=!0));let c=d.isNode(i.value)?i.value:null;c?(c.comment&&(j=c.comment),c.commentBefore&&(n=!0)):null==i.value&&a?.comment&&(j=a.comment)}j&&(n=!0);let k=e.stringify(i,m,()=>j=null);n||(n=p.length>o||k.includes("\n")),c<a.length-1?k+=",":b.options.trailingComma&&(b.options.lineWidth>0&&(n||(n=p.reduce((a,b)=>a+b.length+2,2)+(k.length+2)>b.options.lineWidth)),n&&(k+=",")),j&&(k+=f.lineComment(k,h,l(j))),p.push(k),o=p.length}let{start:q,end:r}=c;if(0===p.length)return q+r;if(!n){let a=p.reduce((a,b)=>a+b.length+2,2);n=b.options.lineWidth>0&&a>b.options.lineWidth}if(!n)return`${q}${k}${p.join(" ")}${k}${r}`;{let a=q;for(let b of p)a+=b?`
|
|
90
|
+
${j}${i}${b}`:"\n";return`${a}
|
|
91
|
+
${i}${r}`}}:function({comment:a,items:b},c,{blockItemPrefix:h,flowChars:i,itemIndent:j,onChompKeep:k,onComment:l}){let m,{indent:n,options:{commentString:o}}=c,p=Object.assign({},c,{indent:j,type:null}),q=!1,r=[];for(let a=0;a<b.length;++a){let i=b[a],k=null;if(d.isNode(i))!q&&i.spaceBefore&&r.push(""),g(c,r,i.commentBefore,q),i.comment&&(k=i.comment);else if(d.isPair(i)){let a=d.isNode(i.key)?i.key:null;a&&(!q&&a.spaceBefore&&r.push(""),g(c,r,a.commentBefore,q))}q=!1;let l=e.stringify(i,p,()=>k=null,()=>q=!0);k&&(l+=f.lineComment(l,j,o(k))),q&&k&&(q=!1),r.push(h+l)}if(0===r.length)m=i.start+i.end;else{m=r[0];for(let a=1;a<r.length;++a){let b=r[a];m+=b?`
|
|
92
|
+
${n}${b}`:"\n"}}return a?(m+="\n"+f.indentComment(o(a),n),l&&l()):q&&k&&k(),m})(a,b,c)}},71217:(a,b,c)=>{"use strict";var d=c(93602),e=c(95241),f=c(33824),g=c(40686),h=c(3327),i=c(73315),j=c(37521),k=c(26701),l=c(30598),m=c(71397),n=(c(2063),c(44559)),o=c(17518),p=c(55578),q=c(62499),r=c(3404);d.Composer,e.Document,f.Schema,g.YAMLError,g.YAMLParseError,g.YAMLWarning,h.Alias,b.Vj=i.isAlias,i.isCollection,i.isDocument,b.jh=i.isMap,i.isNode,i.isPair,b.jn=i.isScalar,b.oP=i.isSeq,j.Pair,k.Scalar,l.YAMLMap,m.YAMLSeq,n.Lexer,o.LineCounter,p.Parser,b.qg=q.parse,q.parseAllDocuments,b.Tp=q.parseDocument,b.As=q.stringify,b.YR=r.visit,r.visitAsync},71260:(a,b,c)=>{"use strict";var d=c(81833),e=c(40542),f=c(40686),g=c(93051);function h(a,b){if(b)for(let c of b)switch(c.type){case"space":case"comment":a.push(c);break;case"newline":return a.push(c),!0}return!1}function i(a,b,c){switch(a.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":a.type=c,a.source=b;break;case"block-scalar":{let d=a.props.slice(1),e=b.length;for(let b of("block-scalar-header"===a.props[0].type&&(e-=a.props[0].source.length),d))b.offset+=e;delete a.props,Object.assign(a,{type:c,source:b,end:d});break}case"block-map":case"block-seq":{let d={type:"newline",offset:a.offset+b.length,indent:a.indent,source:"\n"};delete a.items,Object.assign(a,{type:c,source:b,end:[d]});break}default:{let d="indent"in a?a.indent:-1,e="end"in a&&Array.isArray(a.end)?a.end.filter(a=>"space"===a.type||"comment"===a.type||"newline"===a.type):[];for(let b of Object.keys(a))"type"!==b&&"offset"!==b&&delete a[b];Object.assign(a,{type:c,indent:d,source:b,end:e})}}}b.createScalarToken=function(a,b){let{implicitKey:c=!1,indent:d,inFlow:e=!1,offset:f=-1,type:i="PLAIN"}=b,j=g.stringifyString({type:i,value:a},{implicitKey:c,indent:d>0?" ".repeat(d):"",inFlow:e,options:{blockQuote:!0,lineWidth:-1}}),k=b.end??[{type:"newline",offset:-1,indent:d,source:"\n"}];switch(j[0]){case"|":case">":{let a=j.indexOf("\n"),b=j.substring(0,a),c=j.substring(a+1)+"\n",e=[{type:"block-scalar-header",offset:f,indent:d,source:b}];return h(e,k)||e.push({type:"newline",offset:-1,indent:d,source:"\n"}),{type:"block-scalar",offset:f,indent:d,props:e,source:c}}case'"':return{type:"double-quoted-scalar",offset:f,indent:d,source:j,end:k};case"'":return{type:"single-quoted-scalar",offset:f,indent:d,source:j,end:k};default:return{type:"scalar",offset:f,indent:d,source:j,end:k}}},b.resolveAsScalar=function(a,b=!0,c){if(a){let g=(a,b,d)=>{let e="number"==typeof a?a:Array.isArray(a)?a[0]:a.offset;if(c)c(e,b,d);else throw new f.YAMLParseError([e,e+1],b,d)};switch(a.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return e.resolveFlowScalar(a,b,g);case"block-scalar":return d.resolveBlockScalar({options:{strict:b}},a,g)}}return null},b.setScalarValue=function(a,b,c={}){let{afterKey:d=!1,implicitKey:e=!1,inFlow:f=!1,type:j}=c,k="indent"in a?a.indent:null;if(d&&"number"==typeof k&&(k+=2),!j)switch(a.type){case"single-quoted-scalar":j="QUOTE_SINGLE";break;case"double-quoted-scalar":j="QUOTE_DOUBLE";break;case"block-scalar":{let b=a.props[0];if("block-scalar-header"!==b.type)throw Error("Invalid block scalar header");j=">"===b.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:j="PLAIN"}let l=g.stringifyString({type:j,value:b},{implicitKey:e||null===k,indent:null!==k&&k>0?" ".repeat(k):"",inFlow:f,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(a,b){let c=b.indexOf("\n"),d=b.substring(0,c),e=b.substring(c+1)+"\n";if("block-scalar"===a.type){let b=a.props[0];if("block-scalar-header"!==b.type)throw Error("Invalid block scalar header");b.source=d,a.source=e}else{let{offset:b}=a,c="indent"in a?a.indent:-1,f=[{type:"block-scalar-header",offset:b,indent:c,source:d}];for(let b of(h(f,"end"in a?a.end:void 0)||f.push({type:"newline",offset:-1,indent:c,source:"\n"}),Object.keys(a)))"type"!==b&&"offset"!==b&&delete a[b];Object.assign(a,{type:"block-scalar",indent:c,props:f,source:e})}}(a,l);break;case'"':i(a,l,"double-quoted-scalar");break;case"'":i(a,l,"single-quoted-scalar");break;default:i(a,l,"scalar")}}},71397:(a,b,c)=>{"use strict";var d=c(10878),e=c(70752),f=c(66273),g=c(73315),h=c(26701),i=c(49443);class j extends f.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(a){super(g.SEQ,a),this.items=[]}add(a){this.items.push(a)}delete(a){let b=k(a);return"number"==typeof b&&this.items.splice(b,1).length>0}get(a,b){let c=k(a);if("number"!=typeof c)return;let d=this.items[c];return!b&&g.isScalar(d)?d.value:d}has(a){let b=k(a);return"number"==typeof b&&b<this.items.length}set(a,b){let c=k(a);if("number"!=typeof c)throw Error(`Expected a valid index, not ${a}.`);let d=this.items[c];g.isScalar(d)&&h.isScalarValue(b)?d.value=b:this.items[c]=b}toJSON(a,b){let c=[];b?.onCreate&&b.onCreate(c);let d=0;for(let a of this.items)c.push(i.toJS(a,String(d++),b));return c}toString(a,b,c){return a?e.stringifyCollection(this,a,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(a.indent||"")+" ",onChompKeep:c,onComment:b}):JSON.stringify(this)}static from(a,b,c){let{replacer:e}=c,f=new this(a);if(b&&Symbol.iterator in Object(b)){let a=0;for(let g of b){if("function"==typeof e){let c=b instanceof Set?g:String(a++);g=e.call(b,c,g)}f.items.push(d.createNode(g,void 0,c))}}return f}}function k(a){let b=g.isScalar(a)?a.value:a;return b&&"string"==typeof b&&(b=Number(b)),"number"==typeof b&&Number.isInteger(b)&&b>=0?b:null}b.YAMLSeq=j},71422:(a,b)=>{b.uriToZipEntryName=function(a,b){return"/"===b.charAt(0)?b.substr(1):a+"/"+b},b.replaceFragment=function(a,b){var c=a.indexOf("#");return -1!==c&&(a=a.substring(0,c)),a+"#"+b}},71646:a=>{"use strict";global.MutationObserver||global.WebKitMutationObserver;var b,c=function(){process.nextTick(e)},d=[];function e(){b=!0;for(var a,c,e=d.length;e;){for(c=d,d=[],a=-1;++a<e;)c[a]();e=d.length}b=!1}a.exports=function(a){1!==d.push(a)||b||c()}},71759:(a,b,c)=>{"use strict";a.exports=function(a,b){var d=c(22418),e=a.CancellationError,f=d.errorObj;function g(a,b,c){this.promise=a,this.type=b,this.handler=c,this.called=!1,this.cancelPromise=null}function h(a){this.finallyHandler=a}function i(a,b){return null!=a.cancelPromise&&(arguments.length>1?a.cancelPromise._reject(b):a.cancelPromise._cancel(),a.cancelPromise=null,!0)}function j(){return l.call(this,this.promise._target()._settledValue())}function k(a){if(!i(this,a))return f.e=a,f}function l(c){var d=this.promise,g=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?g.call(d._boundValue()):g.call(d._boundValue(),c);if(void 0!==l){d._setReturnedNonUndefined();var m=b(l,d);if(m instanceof a){if(null!=this.cancelPromise)if(m._isCancelled()){var n=new e("late cancellation observer");return d._attachExtraTrace(n),f.e=n,f}else m.isPending()&&m._attachCancellationCallback(new h(this));return m._then(j,k,void 0,this,void 0)}}}return d.isRejected()?(i(this),f.e=c,f):(i(this),c)}return g.prototype.isFinallyHandler=function(){return 0===this.type},h.prototype._resultCancelled=function(){i(this.finallyHandler)},a.prototype._passThrough=function(a,b,c,d){return"function"!=typeof a?this.then():this._then(c,d,void 0,new g(this,b,a),void 0)},a.prototype.lastly=a.prototype.finally=function(a){return this._passThrough(a,0,l,l)},a.prototype.tap=function(a){return this._passThrough(a,1,l)},g}},71848:(a,b,c)=>{"use strict";var d=c(20577),e=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};a.exports=l;var f=Object.create(c(22362));f.inherits=c(50843);var g=c(38418),h=c(49358);f.inherits(l,g);for(var i=e(h.prototype),j=0;j<i.length;j++){var k=i[j];l.prototype[k]||(l.prototype[k]=h.prototype[k])}function l(a){if(!(this instanceof l))return new l(a);g.call(this,a),h.call(this,a),a&&!1===a.readable&&(this.readable=!1),a&&!1===a.writable&&(this.writable=!1),this.allowHalfOpen=!0,a&&!1===a.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",m)}function m(){this.allowHalfOpen||this._writableState.ended||d.nextTick(n,this)}function n(a){a.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(a){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=a,this._writableState.destroyed=a)}}),l.prototype._destroy=function(a,b){this.push(null),this.end(),d.nextTick(b,a)}},72037:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{$1:()=>y,AO:()=>M,A_:()=>D,CR:()=>v,Hd:()=>K,IV:()=>z,TA:()=>s,XX:()=>F,_8:()=>J,aV:()=>G,bV:()=>x,fb:()=>H,k0:()=>L,m2:()=>C,mz:()=>u,o0:()=>w,s2:()=>B,wL:()=>A,yO:()=>E,yg:()=>r,yy:()=>I});var e=c(73024),f=c(76760),g=c(87390),h=c(73161),i=c(26466),j=c(51671),k=c(52676),l=c(89362),m=c(33239),n=c(98122),o=c(52257),p=a([i,n]);async function q(a){let b=a.trim(),c=await (0,g.mc)();if(!(0,g.B7)(b,c))throw new n.uY("access_denied","Path is outside allowed workspaces");return b}async function r(a){let b=await q(a),c=(await (0,m.y9)(b)).skills.map(a=>({name:a.name,description:a.description,filePath:a.filePath,disableModelInvocation:a.disableModelInvocation,...a.sourceInfo.scope?{scope:a.sourceInfo.scope}:{}}));return{cwd:b,skills:c}}async function s(a,b,c){let d=await q(a);if("SKILL.md"!==(0,f.basename)(b))throw new n.uY("not_a_skill_file","not a SKILL.md file");if(!(0,e.existsSync)(b))throw new n.uY("file_not_found","file not found");let h=new Set(await (0,g.mc)());for(let a of(0,m.Jw)(d))h.add(a);let i=(0,e.realpathSync)(b);if(!(0,g.B7)(i,h))throw new n.uY("access_denied","Path is outside allowed workspaces");let j=(0,e.readFileSync)(i,"utf8"),k=(0,m.Ss)(j,c);if(k!==j){let a=`${i}.tmp-${process.pid}-${Date.now()}`;try{(0,e.mkdirSync)((0,f.dirname)(i),{recursive:!0}),(0,e.writeFileSync)(a,k,"utf8"),(0,e.renameSync)(a,i)}catch(b){try{(0,e.existsSync)(a)&&(0,e.unlinkSync)(a)}catch{}throw b}}let{frontmatter:l}=(0,m.pM)(k);return{filePath:i,disableModelInvocation:(0,m.Sb)(l)}}function t(a,b={}){return{source:a,scope:b.scope??"global",status:b.status??"installed",disabled:b.disabled??!1,...b.version?{version:b.version}:{},...b.counts?{counts:b.counts}:{}}}async function u(a){let b=await q(a),{stdout:c}=await (0,j.eG)(["plugin","list","--json"],{cwd:b,timeout:6e4}),d=(0,j.nH)(c),f=[];for(let a of d?.npm??[]){if(!a.name)continue;let b=!1!==a.enabled;f.push(t(a.name,{scope:"global",status:b?"loaded":"disabled",disabled:!b,version:a.version}))}for(let a of d?.marketplace??[]){if(!a.id)continue;let b=a.entries?.[0],c=b??a,d=!1!==c.enabled;f.push(t(a.id,{scope:(a.scope??b?.scope)==="project"?"project":"global",status:d?b?b.installPath&&(0,e.existsSync)(b.installPath)?"installed":"missing":"loaded":"disabled",disabled:!d,version:c.version}))}return{cwd:b,packages:f}}async function v(a,b,c,d){let e=await q(a),f=c?.trim(),g="project"===d?["--scope","project"]:[],h="",i=async(a,b)=>{try{let c=await (0,j.eG)(a,{cwd:e,timeout:b});return`${c.stdout}${c.stderr}`.slice(-2e3)}catch(b){let a=`${b.stdout??""}${b.stderr??""}`.trim()||b.message||String(b);throw new n.uY("plugin_action_failed",a.slice(-500))}};if("install"===b){if(!f)throw new n.uY("invalid_source","source is required");h=await i(["plugin","install",f,"--json",...g],3e5)}else if("remove"===b){if(!f)throw new n.uY("invalid_source","source is required");h=await i(["plugin","uninstall",f,"--json",...g],12e4)}else if("update"===b)h=await i(["plugin","upgrade",...f?[f,...g]:[]],3e5);else if("disable"===b||"enable"===b){if(!f)throw new n.uY("invalid_source","source is required");h=await i(["plugin",b,f,"--json",...g],6e4)}let k=await u(e);return{cwd:k.cwd,packages:k.packages,output:h}}async function w(a){let b=a?.trim()?await q(a):null,c=b?(0,l.JW)(b):null,d=(0,l.WC)(),e=[];for(let{name:a,config:b}of d.servers){let c=!1!==b.enabled;e.push({name:a,source:"User level",status:c?"configured":"disabled",type:"string"==typeof b.type?b.type:"string"==typeof b.url?"http":"stdio",enabled:c})}for(let a of d.disabledServers)e.push({name:a,source:"Disabled",status:"disabled",enabled:!1});for(let[a,b]of Object.entries(c?.config.mcpServers??{})){let c=!1!==b.enabled;e.push({name:a,source:"Project level",status:c?"configured":"disabled",type:"string"==typeof b.type?b.type:"string"==typeof b.url?"http":"stdio",enabled:c})}for(let a of(0,l.by)(b??void 0,d.disabledServers))e.push({name:a.name,source:a.source,status:a.status,...a.type?{type:a.type}:{},enabled:"disabled"!==a.status});return{inventory:e}}async function x(a,b){let c=await q(a);return(0,l.le)(c,b),{name:b}}async function y(a){let b={type:a.type};return void 0!==a.command&&(b.command=a.command),void 0!==a.url&&(b.url=a.url),void 0!==a.args&&(b.args=a.args),void 0!==a.env&&(b.env=a.env??{}),void 0!==a.headers&&(b.headers=a.headers??{}),void 0!==a.serverCwd&&(b.cwd=a.serverCwd),void 0!==a.enabled&&(b.enabled=a.enabled),void 0!==a.timeout&&(b.timeout=a.timeout),void 0!==a.requestIdFormat&&(b.requestIdFormat=a.requestIdFormat),z(a.cwd,a.name,b,a.previousName)}async function z(a,b,c,d){let e=await q(a);if("object"!=typeof c||null===c||Array.isArray(c))throw new n.uY("invalid_mcp","server must be an object");let f={...c};null===f.env&&(f.env={}),null===f.headers&&(f.headers={});try{(0,l.I0)(b,f)}catch(a){throw new n.uY("invalid_mcp",a instanceof Error?a.message:String(a))}try{(0,l.uV)(e,b,f,d)}catch(a){if(a instanceof l.At)throw new n.uY("mcp_name_conflict",a.message);throw new n.uY("mcp_write_failed","Unable to write MCP configuration")}return{name:b}}[i,n]=p.then?(await p)():p;let N=process.env.SKILLS_API_URL||"https://skills.sh",O=/\x1B\[[0-9;]*m/g;async function A(a,b=10){let c=a.trim();if(!c)throw new n.uY("invalid_query","query is required");let d=Math.min(20,Math.max(1,Math.floor(b)||10));try{let a=await fetch(`${N}/api/search?q=${encodeURIComponent(c)}&limit=${d}`,{cache:"no-store"});if(!a.ok)throw Error(`skills.sh search failed: HTTP ${a.status}`);let b=await a.json();if("object"!=typeof b||null===b||!("skills"in b)||!Array.isArray(b.skills))throw Error("Invalid skills search response");let e=[];for(let a of b.skills){if("object"!=typeof a||null===a||Array.isArray(a))continue;let b="name"in a&&"string"==typeof a.name?a.name.trim():void 0,c="source"in a&&"string"==typeof a.source?a.source.trim():void 0,f="id"in a&&"string"==typeof a.id?a.id.trim():void 0;if(!b||!c&&!f)continue;let g="installs"in a&&"number"==typeof a.installs?a.installs:0;if(e.push({package:`${c||f}@${b}`,...g>0?{installs:`${g} installs`}:{},...f?{url:`${N}/${f}`}:{}}),e.length>=d)break}return{query:c,results:e}}catch{let{stdout:a,stderr:b}=await (0,h.a)(["skills","find",c],{timeout:2e4,env:{...process.env,FORCE_COLOR:"0"}});return{query:c,results:(function(a){let b=a.replace(O,""),c=[],d=b.split("\n");for(let a=0;a<d.length;a++){let b=d[a].trim().match(/^([\w.\-]+\/[\w.\-@:]+)\s+([\d.,]+[KMB]?\s+installs)$/);if(b){let e=d[a+1]?.trim().replace(/^└\s*/,"");c.push({package:b[1],installs:b[2],...e?.startsWith("https://")?{url:e}:{}})}}return c})(a+b).slice(0,d)}}}async function B(a,b,c){let d,e=a.trim();if(!e)throw new n.uY("invalid_package","package is required");let f="project"!==b;if(f)c?.trim()&&(d=await q(c));else{if(!c?.trim())throw new n.uY("invalid_cwd","cwd is required for project install");d=await q(c)}let g=["skills","add",e,"-y","--agent","universal"];f&&g.push("-g");try{let{stdout:a,stderr:b}=await (0,h.a)(g,{timeout:6e4,cwd:d,env:{...process.env,FORCE_COLOR:"0"}}),c=(a+b).replace(O,"");if(!/Installation complete|Installed \d+ skill/.test(c))throw new n.uY("skill_install_failed",c.slice(-300)||"Install failed")}catch(b){if(b instanceof n.uY)throw b;let a=(((b.stdout??"")+(b.stderr??"")).replace(O,"")||b.message||String(b)).slice(-300);throw new n.uY("skill_install_failed",a||"Install failed")}return{package:e,scope:f?"global":"project"}}async function C(a){let b=a?.trim()?await q(a):void 0,c=(await (0,i.eU)(b??process.cwd())).agents.map(a=>({name:a.name,description:a.description,source:a.source,...a.filePath?{filePath:a.filePath}:{},systemPrompt:a.systemPrompt,...a.disabled?{disabled:!0}:{}}));return b?{cwd:b,agents:c}:{agents:c}}async function D(a){let b,c=a.name.trim(),d=a.description.trim();if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(c))throw new n.uY("invalid_name","name must be kebab-case");if(!d)throw new n.uY("invalid_description","description is required");let e={...void 0!==a.tools?{tools:a.tools}:{},...void 0!==a.model?{model:a.model}:{},...void 0!==a.thinkingLevel?{thinkingLevel:a.thinkingLevel}:{},...void 0!==a.prewalk?{prewalk:a.prewalk}:{},...void 0!==a.advisor?{advisor:a.advisor}:{},...void 0!==a.blocking?{blocking:a.blocking}:{},...a.cwd?.trim()?{cwd:a.cwd.trim()}:{}};try{b=await (0,i.Sn)({scope:a.scope,name:c,description:d,systemPrompt:a.systemPrompt,...e})}catch(g){let f=g instanceof Error?g.message:String(g);if(/already exists/i.test(f))try{b=await (0,i.x4)({scope:a.scope,name:c,description:d,systemPrompt:a.systemPrompt,...e})}catch(a){throw new n.uY("agent_save_failed",a instanceof Error?a.message:String(a))}else throw new n.uY("agent_save_failed",f)}return{name:c,filePath:b}}async function E(a){try{await (0,i.RB)({name:a.name,scope:a.scope,...a.cwd?.trim()?{cwd:a.cwd.trim()}:{}})}catch(a){throw new n.uY("agent_delete_failed",a instanceof Error?a.message:String(a))}return{name:a.name}}async function F(a){let b=a.name.trim();if(!b)throw new n.uY("invalid_name","name is required");let c=a.cwd?.trim()?await q(a.cwd):void 0,d=(await (0,i.eU)(c??process.cwd())).agents.find(c=>c.name===b&&(!a.scope||c.source===a.scope));if(!d)throw new n.uY("agent_not_found",`Agent "${b}" was not found`);return{name:d.name,description:d.description,source:d.source,...d.filePath?{filePath:d.filePath}:{},...d.tools?{tools:d.tools}:{},...void 0!==d.model?{model:d.model}:{},...void 0!==d.thinkingLevel?{thinkingLevel:d.thinkingLevel}:{},...void 0!==d.prewalk?{prewalk:d.prewalk}:{},...void 0!==d.advisor?{advisor:d.advisor}:{},...void 0!==d.blocking?{blocking:d.blocking}:{},systemPrompt:d.systemPrompt,...d.disabled?{disabled:!0}:{},...d.isShadowed?{isShadowed:!0}:{},...void 0!==d.overrideModel?{overrideModel:d.overrideModel}:{},...void 0!==d.prewalkOverride?{prewalkOverride:d.prewalkOverride}:{},...void 0!==d.advisorOverride?{advisorOverride:d.advisorOverride}:{}}}async function G(a){let b=a.cwd?.trim()?await q(a.cwd):void 0;try{return await (0,i.hH)({scope:a.scope,...b?{cwd:b}:{},...void 0!==a.force?{force:a.force}:{}})}catch(a){throw new n.uY("agent_unpack_failed",a instanceof Error?a.message:String(a))}}async function H(a,b){let c=await q(a),d=b.trim();if("SKILL.md"!==(0,f.basename)(d))throw new n.uY("not_a_skill_file","not a SKILL.md file");let h=(await (0,m.y9)(c)).skills.find(a=>a.filePath===d);if(!h)throw new n.uY("skill_not_found","skill was not found");let i=new Set(await (0,g.mc)());for(let a of(0,m.Jw)(c))i.add(a);let j=(0,e.realpathSync)(h.filePath);if(!(0,g.B7)(j,i))throw new n.uY("access_denied","Path is outside allowed workspaces");let k=(0,e.readFileSync)(j,"utf8"),{frontmatter:l,body:o}=(0,m.pM)(k),p=o.slice(0,8e3);return{name:h.name,description:h.description,filePath:j,disableModelInvocation:(0,m.Sb)(l),...h.sourceInfo.scope?{scope:h.sourceInfo.scope}:{},...h.sourceInfo.source?{source:h.sourceInfo.source}:{},...h.install?{install:h.install}:{},frontmatter:l,contentPreview:p,contentTruncated:o.length>p.length}}async function I(a,b){let c,d=await q(a),e=b.trim();if(!e)throw new n.uY("invalid_name","name is required");try{c=(0,l.JW)(d)}catch(a){throw new n.uY("mcp_read_failed",a instanceof Error?a.message:String(a))}let f=c.config.mcpServers?.[e];if(!f)throw new n.uY("mcp_not_found",`MCP server "${e}" was not found`);return{name:e,source:"Project level",config:(0,l.hz)(f),envConfigured:void 0!==f.env,headersConfigured:void 0!==f.headers,path:c.path}}async function J(a,b){if("object"!=typeof b||null===b||Array.isArray(b))throw new n.uY("invalid_mcp","server must be an object");let c={...b};null===c.env&&(c.env={}),null===c.headers&&(c.headers={});try{(0,l.I0)(a,c)}catch(a){throw new n.uY("invalid_mcp",a instanceof Error?a.message:String(a))}return{ok:!0}}async function K(a){let b=await q(a.cwd),{skills:c}=await (0,m.y9)(b),d=c.map(a=>a.install).filter(a=>!!a).filter(b=>!a.package||b.package===a.package&&b.scope===a.scope);if(a.package&&0===d.length)throw new n.uY("skill_not_installed","Installed skill not found");return{updates:await (0,o.S7)(d,{githubToken:process.env.GITHUB_TOKEN||process.env.GH_TOKEN})}}async function L(a){let b=await q(a.cwd),{skills:c}=await (0,m.y9)(b),d=c.find(b=>b.install?.package===a.package&&b.install.scope===a.scope);if(!d?.install)throw new n.uY("skill_not_installed","Installed skill not found");if(!d.install.canCheckForUpdates)throw new n.uY("skill_update_unsupported","This skill cannot be updated automatically");try{let{stdout:c,stderr:e}=await (0,h.a)((0,o.CU)(d.install),{timeout:6e4,cwd:"project"===a.scope?b:void 0,env:{...process.env,FORCE_COLOR:"0"}}),f=(await (0,m.y9)(b)).skills.find(b=>b.install?.package===a.package&&b.install.scope===a.scope);return{success:!0,output:`${c}${e}`.slice(-500),...f?{skill:f}:{}}}catch(d){let a="object"==typeof d&&null!==d&&"stdout"in d&&"string"==typeof d.stdout?d.stdout:"",b="object"==typeof d&&null!==d&&"stderr"in d&&"string"==typeof d.stderr?d.stderr:"",c=`${a}${b}`.trim()||(d instanceof Error?d.message:String(d));throw new n.uY("skill_update_failed",c.slice(-500))}}async function M(){try{let a=await (0,k.runUtilityCommand)({type:"get_login_providers"},3e4),b=[];if(Array.isArray(a.providers))for(let c of a.providers)!("object"!=typeof c||null===c||Array.isArray(c))&&"id"in c&&"string"==typeof c.id&&"name"in c&&"string"==typeof c.name&&"authenticated"in c&&"boolean"==typeof c.authenticated&&(!("available"in c)||!1!==c.available)&&b.push({id:c.id,name:c.name,loggedIn:c.authenticated});return{providers:b}}catch(a){throw new n.uY("auth_failed",a instanceof Error?a.message:String(a))}}d()}catch(a){d(a)}})},72240:function(a,b,c){(function(){var b,d,e,f,g,h,i=function(a,b){for(var c in b)j.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},j={}.hasOwnProperty;h=c(54117).isObject,g=c(8142),b=c(54107),e=c(4907),d=c(9774),f=c(54968),a.exports=function(a){function c(a,b,d){var e,f;c.__super__.constructor.call(this,a),this.name="!DOCTYPE",this.documentObject=a,h(b)&&(b=(e=b).pubID,d=e.sysID),null==d&&(d=(f=[b,d])[0],b=f[1]),null!=b&&(this.pubID=this.stringify.dtdPubID(b)),null!=d&&(this.sysID=this.stringify.dtdSysID(d))}return i(c,a),c.prototype.element=function(a,b){var c;return c=new d(this,a,b),this.children.push(c),this},c.prototype.attList=function(a,c,d,e,f){var g;return g=new b(this,a,c,d,e,f),this.children.push(g),this},c.prototype.entity=function(a,b){var c;return c=new e(this,!1,a,b),this.children.push(c),this},c.prototype.pEntity=function(a,b){var c;return c=new e(this,!0,a,b),this.children.push(c),this},c.prototype.notation=function(a,b){var c;return c=new f(this,a,b),this.children.push(c),this},c.prototype.toString=function(a){return this.options.writer.set(a).docType(this)},c.prototype.ele=function(a,b){return this.element(a,b)},c.prototype.att=function(a,b,c,d,e){return this.attList(a,b,c,d,e)},c.prototype.ent=function(a,b){return this.entity(a,b)},c.prototype.pent=function(a,b){return this.pEntity(a,b)},c.prototype.not=function(a,b){return this.notation(a,b)},c.prototype.up=function(){return this.root()||this.documentObject},c}(g)}).call(this)},72687:(a,b)=>{"use strict";function c(a,b){return/^\n+$/.test(a)?a.substring(1):b?a.replace(/^(?! *$)/gm,b):a}b.indentComment=c,b.lineComment=(a,b,d)=>a.endsWith("\n")?c(d,b):d.includes("\n")?"\n"+c(d,b):(a.endsWith(" ")?"":" ")+d,b.stringifyComment=a=>a.replace(/^(?!$)(?: $)?/gm,"#")},72884:function(a){(function(){var b={}.hasOwnProperty;a.exports=function(){function a(a){var c,d,e,f,g,h,i,j,k;for(c in a||(a={}),this.pretty=a.pretty||!1,this.allowEmpty=null!=(d=a.allowEmpty)&&d,this.pretty?(this.indent=null!=(e=a.indent)?e:" ",this.newline=null!=(f=a.newline)?f:"\n",this.offset=null!=(g=a.offset)?g:0,this.dontprettytextnodes=null!=(h=a.dontprettytextnodes)?h:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=null!=(i=a.spacebeforeslash)?i:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,j=a.writer||{})b.call(j,c)&&(k=j[c],this[c]=k)}return a.prototype.set=function(a){var c,d,e;for(c in a||(a={}),"pretty"in a&&(this.pretty=a.pretty),"allowEmpty"in a&&(this.allowEmpty=a.allowEmpty),this.pretty?(this.indent="indent"in a?a.indent:" ",this.newline="newline"in a?a.newline:"\n",this.offset="offset"in a?a.offset:0,this.dontprettytextnodes="dontprettytextnodes"in a?a.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in a?a.spacebeforeslash:"",!0===this.spacebeforeslash&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=a.writer||{})b.call(d,c)&&(e=d[c],this[c]=e);return this},a.prototype.space=function(a){var b;return this.pretty&&(b=(a||0)+this.offset+1)>0?Array(b).join(this.indent):""},a}()}).call(this)},73161:(a,b,c)=>{"use strict";c.d(b,{a:()=>j});var d=c(79646),e=c(28354),f=c(29021),g=c(33873),h=c(19771);let i=(0,e.promisify)(d.execFile);async function j(a,b={}){let c=function(){let a=(0,g.dirname)(h.execPath);for(let b of[(0,g.join)(a,"node_modules","npm","bin","npx-cli.js"),(0,g.join)(a,"..","lib","node_modules","npm","bin","npx-cli.js")])try{if((0,f.existsSync)(b))return b}catch{}return null}(),{command:d,commandArgs:e}=c?{command:h.execPath,commandArgs:[c,...a]}:{command:"npx",commandArgs:a};return i(d,e,{timeout:b.timeout,cwd:b.cwd,env:b.env})}},73315:(a,b)=>{"use strict";let c=Symbol.for("yaml.alias"),d=Symbol.for("yaml.document"),e=Symbol.for("yaml.map"),f=Symbol.for("yaml.pair"),g=Symbol.for("yaml.scalar"),h=Symbol.for("yaml.seq"),i=Symbol.for("yaml.node.type"),j=a=>!!a&&"object"==typeof a&&a[i]===g;function k(a){if(a&&"object"==typeof a)switch(a[i]){case e:case h:return!0}return!1}b.ALIAS=c,b.DOC=d,b.MAP=e,b.NODE_TYPE=i,b.PAIR=f,b.SCALAR=g,b.SEQ=h,b.hasAnchor=a=>(j(a)||k(a))&&!!a.anchor,b.isAlias=a=>!!a&&"object"==typeof a&&a[i]===c,b.isCollection=k,b.isDocument=a=>!!a&&"object"==typeof a&&a[i]===d,b.isMap=a=>!!a&&"object"==typeof a&&a[i]===e,b.isNode=function(a){if(a&&"object"==typeof a)switch(a[i]){case c:case e:case g:case h:return!0}return!1},b.isPair=a=>!!a&&"object"==typeof a&&a[i]===f,b.isScalar=j,b.isSeq=a=>!!a&&"object"==typeof a&&a[i]===h},73374:(a,b,c)=>{"use strict";a.exports=function(a,b,d){var e=c(22418),f=c(43823).RangeError,g=c(43823).AggregateError,h=e.isArray,i={};function j(a){this.constructor$(a),this._howMany=0,this._unwrap=!1,this._initialized=!1}function k(a,b){if((0|b)!==b||b<0)return d("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var c=new j(a),e=c.promise();return c.setHowMany(b),c.init(),e}e.inherits(j,b),j.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var a=h(this._values);!this._isResolved()&&a&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},j.prototype.init=function(){this._initialized=!0,this._init()},j.prototype.setUnwrap=function(){this._unwrap=!0},j.prototype.howMany=function(){return this._howMany},j.prototype.setHowMany=function(a){this._howMany=a},j.prototype._promiseFulfilled=function(a){return this._addFulfilled(a),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},j.prototype._promiseRejected=function(a){return this._addRejected(a),this._checkOutcome()},j.prototype._promiseCancelled=function(){return this._values instanceof a||null==this._values?this._cancel():(this._addRejected(i),this._checkOutcome())},j.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var a=new g,b=this.length();b<this._values.length;++b)this._values[b]!==i&&a.push(this._values[b]);return a.length>0?this._reject(a):this._cancel(),!0}return!1},j.prototype._fulfilled=function(){return this._totalResolved},j.prototype._rejected=function(){return this._values.length-this.length()},j.prototype._addRejected=function(a){this._values.push(a)},j.prototype._addFulfilled=function(a){this._values[this._totalResolved++]=a},j.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},j.prototype._getRangeError=function(a){return new f("Input array must contain at least "+this._howMany+" items but contains only "+a+" items")},j.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},a.some=function(a,b){return k(a,b)},a.prototype.some=function(a){return k(this,a)},a._SomePromiseArray=j}},74782:(a,b,c)=>{"use strict";a.exports=function(a,b){var d=c(22418),e=d.errorObj,f=d.isObject,g={}.hasOwnProperty;return function(c,h){if(f(c)){if(c instanceof a)return c;var i=function(a){try{return a.then}catch(a){return e.e=a,e}}(c);if(i===e){h&&h._pushContext();var j=a.reject(i.e);return h&&h._popContext(),j}if("function"==typeof i){if(function(a){try{return g.call(a,"_promise0")}catch(a){return!1}}(c)){var k,l,m,n,o,p,q,j=new a(b);return c._then(j._fulfill,j._reject,void 0,j,null),j}return k=c,l=i,m=h,o=n=new a(b),m&&m._pushContext(),n._captureStackTrace(),m&&m._popContext(),p=!0,q=d.tryCatch(l).call(k,function(a){n&&(n._resolveCallback(a),n=null)},function(a){n&&(n._rejectCallback(a,p,!0),n=null)}),p=!1,n&&q===e&&(n._rejectCallback(q.e,!0,!0),n=null),o}}return c}}},75034:(a,b,c)=>{"use strict";var d=c(69167),e=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(a){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){f=!1}for(var g=new d.Buf8(256),h=0;h<256;h++)g[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;function i(a,b){if(b<65534&&(a.subarray&&f||!a.subarray&&e))return String.fromCharCode.apply(null,d.shrinkBuf(a,b));for(var c="",g=0;g<b;g++)c+=String.fromCharCode(a[g]);return c}g[254]=g[254]=1,b.string2buf=function(a){var b,c,e,f,g,h=a.length,i=0;for(f=0;f<h;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(e=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(e-56320),f++),i+=c<128?1:c<2048?2:c<65536?3:4;for(b=new d.Buf8(i),g=0,f=0;g<i;f++)(64512&(c=a.charCodeAt(f)))==55296&&f+1<h&&(64512&(e=a.charCodeAt(f+1)))==56320&&(c=65536+(c-55296<<10)+(e-56320),f++),c<128?b[g++]=c:(c<2048?b[g++]=192|c>>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},b.buf2binstring=function(a){return i(a,a.length)},b.binstring2buf=function(a){for(var b=new d.Buf8(a.length),c=0,e=b.length;c<e;c++)b[c]=a.charCodeAt(c);return b},b.buf2string=function(a,b){var c,d,e,f,h=b||a.length,j=Array(2*h);for(d=0,c=0;c<h;){if((e=a[c++])<128){j[d++]=e;continue}if((f=g[e])>4){j[d++]=65533,c+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&c<h;)e=e<<6|63&a[c++],f--;if(f>1){j[d++]=65533;continue}e<65536?j[d++]=e:(e-=65536,j[d++]=55296|e>>10&1023,j[d++]=56320|1023&e)}return i(j,d)},b.utf8border=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+g[a[c]]>b?c:b}},75875:(a,b)=>{"use strict";b.base64=!1,b.binary=!1,b.dir=!1,b.createFolders=!0,b.date=null,b.compression=null,b.compressionOptions=null,b.comment=null,b.unixPermissions=null,b.dosPermissions=null},76281:a=>{"use strict";function b(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}b.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,b)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var b=this;return a.on("data",function(a){b.processChunk(a)}),a.on("end",function(){b.end()}),a.on("error",function(a){b.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var a=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,b){return this.extraStreamInfo[a]=b,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},a.exports=b},77203:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281);function f(a,b){e.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(b)}d.inherits(f,e),f.prototype._bindStream=function(a){var b=this;this._stream=a,a.pause(),a.on("data",function(a){b.push({data:a,meta:{percent:0}})}).on("error",function(a){b.isPaused?this.generatedError=a:b.error(a)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},f.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=f},77313:(a,b,c)=>{"use strict";a.exports=function(){var b,d=function(){return new n("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},e=function(){return new C.PromiseInspection(this._target())},f=function(a){return C.reject(new n(a))};function g(){}var h={},i=c(22418);b=i.isNode?function(){var a=process.domain;return void 0===a&&(a=null),a}:function(){return null},i.notEnumerableProp(C,"_getDomain",b);var j=c(3987),k=c(66394),l=new k;j.defineProperty(C,"_async",{value:l});var m=c(43823),n=C.TypeError=m.TypeError;C.RangeError=m.RangeError;var o=C.CancellationError=m.CancellationError;C.TimeoutError=m.TimeoutError,C.OperationalError=m.OperationalError,C.RejectionError=m.OperationalError,C.AggregateError=m.AggregateError;var p=function(){},q={},r={},s=c(74782)(C,p),t=c(80659)(C,p,s,f,g),u=c(21667)(C),v=u.create,w=c(61764)(C,u);w.CapturedTrace;var x=c(71759)(C,s),y=c(23896)(r),z=c(35527),A=i.errorObj,B=i.tryCatch;function C(a){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,a!==p){if("function"!=typeof a)throw new n("expecting a function but got "+i.classString(a));if(this.constructor!==C)throw new n("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");this._resolveFromExecutor(a)}this._promiseCreated(),this._fireEvent("promiseCreated",this)}function D(a){this.promise._resolveCallback(a)}function E(a){this.promise._rejectCallback(a,!1)}function F(a){var b=new C(p);b._fulfillmentHandler0=a,b._rejectionHandler0=a,b._promise0=a,b._receiver0=a}return C.prototype.toString=function(){return"[object Promise]"},C.prototype.caught=C.prototype.catch=function(a){var b=arguments.length;if(b>1){var c,d=Array(b-1),e=0;for(c=0;c<b-1;++c){var g=arguments[c];if(!i.isObject(g))return f("expecting an object but got A catch statement predicate "+i.classString(g));d[e++]=g}return d.length=e,a=arguments[c],this.then(void 0,y(d,a,this))}return this.then(void 0,a)},C.prototype.reflect=function(){return this._then(e,e,void 0,this,void 0)},C.prototype.then=function(a,b){if(w.warnings()&&arguments.length>0&&"function"!=typeof a&&"function"!=typeof b){var c=".then() only accepts functions but was passed: "+i.classString(a);arguments.length>1&&(c+=", "+i.classString(b)),this._warn(c)}return this._then(a,b,void 0,void 0,void 0)},C.prototype.done=function(a,b){this._then(a,b,void 0,void 0,void 0)._setIsFinal()},C.prototype.spread=function(a){return"function"!=typeof a?f("expecting a function but got "+i.classString(a)):this.all()._then(a,void 0,void 0,q,void 0)},C.prototype.toJSON=function(){var a={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(a.fulfillmentValue=this.value(),a.isFulfilled=!0):this.isRejected()&&(a.rejectionReason=this.reason(),a.isRejected=!0),a},C.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new t(this).promise()},C.prototype.error=function(a){return this.caught(i.originatesFromRejection,a)},C.getNewLibraryCopy=a.exports,C.is=function(a){return a instanceof C},C.fromNode=C.fromCallback=function(a){var b=new C(p);b._captureStackTrace();var c=arguments.length>1&&!!Object(arguments[1]).multiArgs,d=B(a)(z(b,c));return d===A&&b._rejectCallback(d.e,!0),b._isFateSealed()||b._setAsyncGuaranteed(),b},C.all=function(a){return new t(a).promise()},C.cast=function(a){var b=s(a);return b instanceof C||((b=new C(p))._captureStackTrace(),b._setFulfilled(),b._rejectionHandler0=a),b},C.resolve=C.fulfilled=C.cast,C.reject=C.rejected=function(a){var b=new C(p);return b._captureStackTrace(),b._rejectCallback(a,!0),b},C.setScheduler=function(a){if("function"!=typeof a)throw new n("expecting a function but got "+i.classString(a));return l.setScheduler(a)},C.prototype._then=function(a,c,d,e,f){var g=void 0!==f,h=g?f:new C(p),j=this._target(),k=j._bitField;g||(h._propagateFrom(this,3),h._captureStackTrace(),void 0===e&&(2097152&this._bitField)!=0&&(e=(0x3010000&k)!=0?this._boundValue():j===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,h));var m=b();if((0x3010000&k)!=0){var n,q,r=j._settlePromiseCtx;(0x2000000&k)!=0?(q=j._rejectionHandler0,n=a):(0x1000000&k)!=0?(q=j._fulfillmentHandler0,n=c,j._unsetRejectionIsUnhandled()):(r=j._settlePromiseLateCancellationObserver,q=new o("late cancellation observer"),j._attachExtraTrace(q),n=c),l.invoke(r,j,{handler:null===m?n:"function"==typeof n&&i.domainBind(m,n),promise:h,receiver:e,value:q})}else j._addCallbacks(a,c,h,e,m);return h},C.prototype._length=function(){return 65535&this._bitField},C.prototype._isFateSealed=function(){return(0x7010000&this._bitField)!=0},C.prototype._isFollowing=function(){return(0x4000000&this._bitField)==0x4000000},C.prototype._setLength=function(a){this._bitField=-65536&this._bitField|65535&a},C.prototype._setFulfilled=function(){this._bitField=0x2000000|this._bitField,this._fireEvent("promiseFulfilled",this)},C.prototype._setRejected=function(){this._bitField=0x1000000|this._bitField,this._fireEvent("promiseRejected",this)},C.prototype._setFollowing=function(){this._bitField=0x4000000|this._bitField,this._fireEvent("promiseResolved",this)},C.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},C.prototype._isFinal=function(){return(4194304&this._bitField)>0},C.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},C.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},C.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},C.prototype._setAsyncGuaranteed=function(){l.hasCustomScheduler()||(this._bitField=0x8000000|this._bitField)},C.prototype._receiverAt=function(a){var b=0===a?this._receiver0:this[4*a-4+3];return b===h?void 0:void 0===b&&this._isBound()?this._boundValue():b},C.prototype._promiseAt=function(a){return this[4*a-4+2]},C.prototype._fulfillmentHandlerAt=function(a){return this[4*a-4+0]},C.prototype._rejectionHandlerAt=function(a){return this[4*a-4+1]},C.prototype._boundValue=function(){},C.prototype._migrateCallback0=function(a){a._bitField;var b=a._fulfillmentHandler0,c=a._rejectionHandler0,d=a._promise0,e=a._receiverAt(0);void 0===e&&(e=h),this._addCallbacks(b,c,d,e,null)},C.prototype._migrateCallbackAt=function(a,b){var c=a._fulfillmentHandlerAt(b),d=a._rejectionHandlerAt(b),e=a._promiseAt(b),f=a._receiverAt(b);void 0===f&&(f=h),this._addCallbacks(c,d,e,f,null)},C.prototype._addCallbacks=function(a,b,c,d,e){var f=this._length();if(f>=65531&&(f=0,this._setLength(0)),0===f)this._promise0=c,this._receiver0=d,"function"==typeof a&&(this._fulfillmentHandler0=null===e?a:i.domainBind(e,a)),"function"==typeof b&&(this._rejectionHandler0=null===e?b:i.domainBind(e,b));else{var g=4*f-4;this[g+2]=c,this[g+3]=d,"function"==typeof a&&(this[g+0]=null===e?a:i.domainBind(e,a)),"function"==typeof b&&(this[g+1]=null===e?b:i.domainBind(e,b))}return this._setLength(f+1),f},C.prototype._proxy=function(a,b){this._addCallbacks(void 0,void 0,b,a,null)},C.prototype._resolveCallback=function(a,b){if((0x7010000&this._bitField)==0){if(a===this)return this._rejectCallback(d(),!1);var c=s(a,this);if(!(c instanceof C))return this._fulfill(a);b&&this._propagateFrom(c,2);var e=c._target();if(e===this)return void this._reject(d());var f=e._bitField;if((0x3010000&f)==0){var g=this._length();g>0&&e._migrateCallback0(this);for(var h=1;h<g;++h)e._migrateCallbackAt(this,h);this._setFollowing(),this._setLength(0),this._setFollowee(e)}else if((0x2000000&f)!=0)this._fulfill(e._value());else if((0x1000000&f)!=0)this._reject(e._reason());else{var i=new o("late cancellation observer");e._attachExtraTrace(i),this._reject(i)}}},C.prototype._rejectCallback=function(a,b,c){var d=i.ensureErrorObject(a),e=d===a;if(!e&&!c&&w.warnings()){var f="a promise was rejected with a non-error: "+i.classString(a);this._warn(f,!0)}this._attachExtraTrace(d,!!b&&e),this._reject(a)},C.prototype._resolveFromExecutor=function(a){var b=this;this._captureStackTrace(),this._pushContext();var c=!0,d=this._execute(a,function(a){b._resolveCallback(a)},function(a){b._rejectCallback(a,c)});c=!1,this._popContext(),void 0!==d&&b._rejectCallback(d,!0)},C.prototype._settlePromiseFromHandler=function(a,b,c,d){var e,f=d._bitField;if((65536&f)==0){d._pushContext(),b===q?c&&"number"==typeof c.length?e=B(a).apply(this._boundValue(),c):(e=A).e=new n("cannot .spread() a non-array: "+i.classString(c)):e=B(a).call(b,c);var g=d._popContext();(65536&(f=d._bitField))==0&&(e===r?d._reject(c):e===A?d._rejectCallback(e.e,!1):(w.checkForgottenReturns(e,g,"",d,this),d._resolveCallback(e)))}},C.prototype._target=function(){for(var a=this;a._isFollowing();)a=a._followee();return a},C.prototype._followee=function(){return this._rejectionHandler0},C.prototype._setFollowee=function(a){this._rejectionHandler0=a},C.prototype._settlePromise=function(a,b,c,d){var f=a instanceof C,h=this._bitField,i=(0x8000000&h)!=0;(65536&h)!=0?(f&&a._invokeInternalOnCancel(),c instanceof x&&c.isFinallyHandler()?(c.cancelPromise=a,B(b).call(c,d)===A&&a._reject(A.e)):b===e?a._fulfill(e.call(c)):c instanceof g?c._promiseCancelled(a):f||a instanceof t?a._cancel():c.cancel()):"function"==typeof b?f?(i&&a._setAsyncGuaranteed(),this._settlePromiseFromHandler(b,c,d,a)):b.call(c,d,a):c instanceof g?c._isResolved()||((0x2000000&h)!=0?c._promiseFulfilled(d,a):c._promiseRejected(d,a)):f&&(i&&a._setAsyncGuaranteed(),(0x2000000&h)!=0?a._fulfill(d):a._reject(d))},C.prototype._settlePromiseLateCancellationObserver=function(a){var b=a.handler,c=a.promise,d=a.receiver,e=a.value;"function"==typeof b?c instanceof C?this._settlePromiseFromHandler(b,d,e,c):b.call(d,e,c):c instanceof C&&c._reject(e)},C.prototype._settlePromiseCtx=function(a){this._settlePromise(a.promise,a.handler,a.receiver,a.value)},C.prototype._settlePromise0=function(a,b,c){var d=this._promise0,e=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(d,a,e,b)},C.prototype._clearCallbackDataAtIndex=function(a){var b=4*a-4;this[b+2]=this[b+3]=this[b+0]=this[b+1]=void 0},C.prototype._fulfill=function(a){var b=this._bitField;if(!((0x7010000&b)>>>16)){if(a===this){var c=d();return this._attachExtraTrace(c),this._reject(c)}this._setFulfilled(),this._rejectionHandler0=a,(65535&b)>0&&((0x8000000&b)!=0?this._settlePromises():l.settlePromises(this))}},C.prototype._reject=function(a){var b=this._bitField;if(!((0x7010000&b)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=a,this._isFinal())return l.fatalError(a,i.isNode);(65535&b)>0?l.settlePromises(this):this._ensurePossibleRejectionHandled()}},C.prototype._fulfillPromises=function(a,b){for(var c=1;c<a;c++){var d=this._fulfillmentHandlerAt(c),e=this._promiseAt(c),f=this._receiverAt(c);this._clearCallbackDataAtIndex(c),this._settlePromise(e,d,f,b)}},C.prototype._rejectPromises=function(a,b){for(var c=1;c<a;c++){var d=this._rejectionHandlerAt(c),e=this._promiseAt(c),f=this._receiverAt(c);this._clearCallbackDataAtIndex(c),this._settlePromise(e,d,f,b)}},C.prototype._settlePromises=function(){var a=this._bitField,b=65535&a;if(b>0){if((0x1010000&a)!=0){var c=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,c,a),this._rejectPromises(b,c)}else{var d=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,d,a),this._fulfillPromises(b,d)}this._setLength(0)}this._clearCancellationData()},C.prototype._settledValue=function(){var a=this._bitField;return(0x2000000&a)!=0?this._rejectionHandler0:(0x1000000&a)!=0?this._fulfillmentHandler0:void 0},C.defer=C.pending=function(){return w.deprecated("Promise.defer","new Promise"),{promise:new C(p),resolve:D,reject:E}},i.notEnumerableProp(C,"_makeSelfResolutionError",d),c(59673)(C,p,s,f,w),c(83543)(C,p,s,w),c(18187)(C,t,f,w),c(5928)(C),c(99122)(C),c(62230)(C,t,s,p,l,b),C.Promise=C,C.version="3.4.7",c(96788)(C,t,f,s,p,w),c(83951)(C),c(58)(C,f,s,v,p,w),c(87236)(C,p,w),c(32232)(C,f,p,s,g,w),c(65668)(C),c(68318)(C,p),c(37012)(C,t,s,f),c(87021)(C,p,s,f),c(4204)(C,t,f,s,p,w),c(78591)(C,t,w),c(73374)(C,t,f),c(5040)(C,p),c(37857)(C,p),c(8216)(C),i.toFastProperties(C),i.toFastProperties(C.prototype),F({a:1}),F({b:2}),F({c:3}),F(1),F(function(){}),F(void 0),F(!1),F(new C(p)),w.setBounds(k.firstLineError,i.lastLineError),C}},77632:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(b)}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).raw(this)},c}(c(8142))}).call(this)},77880:(a,b,c)=>{var d=c(84906),e=b.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"},f={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function g(a){this._notes=d.indexBy(a,function(a){var b;return b=a.noteType,b+"-"+a.noteId})}g.prototype.resolve=function(a){var b;return this.findNoteByKey((b=a.noteType,b+"-"+a.noteId))},g.prototype.findNoteByKey=function(a){return this._notes[a]||null};function h(a){return{type:e.break,breakType:a}}b.document=b.Document=function(a,b){return b=b||{},{type:e.document,children:a,notes:b.notes||new g({}),comments:b.comments||[]}},b.paragraph=b.Paragraph=function(a,b){var c=(b=b||{}).indent||{};return{type:e.paragraph,children:a,styleId:b.styleId||null,styleName:b.styleName||null,numbering:b.numbering||null,alignment:b.alignment||null,indent:{start:c.start||null,end:c.end||null,firstLine:c.firstLine||null,hanging:c.hanging||null}}},b.run=b.Run=function(a,b){return b=b||{},{type:e.run,children:a,styleId:b.styleId||null,styleName:b.styleName||null,isBold:!!b.isBold,isUnderline:!!b.isUnderline,isItalic:!!b.isItalic,isStrikethrough:!!b.isStrikethrough,isAllCaps:!!b.isAllCaps,isSmallCaps:!!b.isSmallCaps,verticalAlignment:b.verticalAlignment||f.baseline,font:b.font||null,fontSize:b.fontSize||null,highlight:b.highlight||null}},b.text=b.Text=function(a){return{type:e.text,value:a}},b.tab=b.Tab=function(){return{type:e.tab}},b.checkbox=b.Checkbox=function(a){return{type:e.checkbox,checked:a.checked}},b.Hyperlink=function(a,b){return{type:e.hyperlink,children:a,href:b.href,anchor:b.anchor,targetFrame:b.targetFrame}},b.noteReference=b.NoteReference=function(a){return{type:e.noteReference,noteType:a.noteType,noteId:a.noteId}},b.Notes=g,b.Note=function(a){return{type:e.note,noteType:a.noteType,noteId:a.noteId,body:a.body}},b.commentReference=function(a){return{type:e.commentReference,commentId:a.commentId}},b.comment=function(a){return{type:e.comment,commentId:a.commentId,body:a.body,authorName:a.authorName,authorInitials:a.authorInitials}},b.Image=function(a){return{type:e.image,read:function(b){return b?a.readImage(b):a.readImage().then(function(a){return Buffer.from(a)})},readAsArrayBuffer:function(){return a.readImage()},readAsBase64String:function(){return a.readImage("base64")},readAsBuffer:function(){return a.readImage().then(function(a){return Buffer.from(a)})},altText:a.altText,contentType:a.contentType}},b.Table=function(a,b){return b=b||{},{type:e.table,children:a,styleId:b.styleId||null,styleName:b.styleName||null}},b.TableRow=function(a,b){return b=b||{},{type:e.tableRow,children:a,isHeader:b.isHeader||!1}},b.TableCell=function(a,b){return b=b||{},{type:e.tableCell,children:a,colSpan:null==b.colSpan?1:b.colSpan,rowSpan:null==b.rowSpan?1:b.rowSpan}},b.lineBreak=h("line"),b.pageBreak=h("page"),b.columnBreak=h("column"),b.BookmarkStart=function(a){return{type:e.bookmarkStart,name:a.name}},b.verticalAlignment=f},77936:(a,b,c)=>{"use strict";var d=c(10140),e=c(73315),f=c(72687),g=c(93051);b.createStringifyContext=function(a,b){let c,d=Object.assign({blockQuote:!0,commentString:f.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},a.schema.toStringOptions,b);switch(d.collectionStyle){case"block":c=!1;break;case"flow":c=!0;break;default:c=null}return{anchors:new Set,doc:a,flowCollectionPadding:d.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof d.indent?" ".repeat(d.indent):" ",inFlow:c,options:d}},b.stringify=function(a,b,c,f){let h;if(e.isPair(a))return a.toString(b,c,f);if(e.isAlias(a)){if(b.doc.directives)return a.toString(b);if(b.resolvedAliases?.has(a))throw TypeError("Cannot stringify circular structure without alias nodes");b.resolvedAliases?b.resolvedAliases.add(a):b.resolvedAliases=new Set([a]),a=a.resolve(b.doc)}let i=e.isNode(a)?a:b.doc.createNode(a,{onTagObj:a=>h=a});h??(h=function(a,b){let c,d;if(b.tag){let c=a.filter(a=>a.tag===b.tag);if(c.length>0)return c.find(a=>a.format===b.format)??c[0]}if(e.isScalar(b)){c=b.value;let e=a.filter(a=>a.identify?.(c));if(e.length>1){let a=e.filter(a=>a.test);a.length>0&&(e=a)}d=e.find(a=>a.format===b.format)??e.find(a=>!a.format)}else c=b,d=a.find(a=>a.nodeClass&&c instanceof a.nodeClass);if(!d){let a=c?.constructor?.name??(null===c?"null":typeof c);throw Error(`Tag not resolved for ${a} value`)}return d}(b.doc.schema.tags,i));let j=function(a,b,{anchors:c,doc:f}){if(!f.directives)return"";let g=[],h=(e.isScalar(a)||e.isCollection(a))&&a.anchor;h&&d.anchorIsValid(h)&&(c.add(h),g.push(`&${h}`));let i=a.tag??(b.default?null:b.tag);return i&&g.push(f.directives.tagString(i)),g.join(" ")}(i,h,b);j.length>0&&(b.indentAtStart=(b.indentAtStart??0)+j.length+1);let k="function"==typeof h.stringify?h.stringify(i,b,c,f):e.isScalar(i)?g.stringifyString(i,b,c,f):i.toString(b,c,f);return j?e.isScalar(i)||"{"===k[0]||"["===k[0]?`${j} ${k}`:`${j}
|
|
93
|
+
${b.indent}${k}`:k}},78098:(a,b,c)=>{"use strict";c.d(b,{AY:()=>t,Fh:()=>u,Rm:()=>s,fM:()=>v});var d=c(77598),e=c(73024),f=c(76760),g=c(92226),h=c(28672),i=c(96851);function j(a){return(0,d.createHash)("sha256").update(a,"utf8").digest("hex")}function k(a,b){let c=Buffer.from(a,"hex"),e=Buffer.from(b,"hex");return 32===c.length&&32===e.length&&(0,d.timingSafeEqual)(c,e)}function l(a,b=16){return`${a}${(0,d.randomBytes)(b).toString("base64url")}`}function m(a){return(a??"").replace(/[\u0000-\u001f\u007f]/g,"").trim().slice(0,i.SQ)}function n(){return(0,f.resolve)((0,g.$M)(),"ompgui-relay.json")}function o(){return{version:1,serverId:l("s_"),devices:[],pairing:null}}function p(a){let b=n(),c=`${b}.lock`;(0,e.mkdirSync)((0,f.dirname)(c),{recursive:!0});let d=Date.now()+3e3;for(;;){let b=null;try{b=(0,e.openSync)(c,"wx")}catch(a){if("EEXIST"!==a.code)throw a;try{if(Date.now()-(0,e.statSync)(c).mtimeMs>1e4){(0,e.unlinkSync)(c);continue}}catch{continue}if(Date.now()>=d)throw Error("Timed out waiting for the ompgui relay device registry lock");!function(){let a=new SharedArrayBuffer(4);Atomics.wait(new Int32Array(a),0,0,25)}();continue}try{(0,e.writeSync)(b,String(process.pid))}finally{(0,e.closeSync)(b)}try{return a()}finally{try{(0,e.unlinkSync)(c)}catch{}}}}function q(){let a=n();if(!(0,e.existsSync)(a)){let a=o();return r(a),a}try{return function(a){try{let b=JSON.parse(a);if(!(0,h.u4)(b)||1!==b.version)return o();let c="string"==typeof b.serverId&&/^[A-Za-z0-9_-]{16,64}$/.test(b.serverId)?b.serverId:l("s_"),d=[];if(Array.isArray(b.devices))for(let a of b.devices)(0,h.u4)(a)&&"string"==typeof a.id&&a.id.startsWith("d_")&&"string"==typeof a.tokenHash&&64===a.tokenHash.length&&d.push({id:a.id,label:m("string"==typeof a.label?a.label:""),tokenHash:a.tokenHash,createdAt:"string"==typeof a.createdAt?a.createdAt:new Date(0).toISOString(),lastSeenAt:"string"==typeof a.lastSeenAt?a.lastSeenAt:new Date(0).toISOString()});let e=null;if((0,h.u4)(b.pairing)){let a="string"==typeof b.pairing.secretHash?b.pairing.secretHash:"",c="number"==typeof b.pairing.expiresAt?b.pairing.expiresAt:0,d="string"==typeof b.pairing.relayUrl?b.pairing.relayUrl:"",f="string"==typeof b.pairing.createdAt?b.pairing.createdAt:new Date(0).toISOString();64===a.length&&c>0&&d&&(e={secretHash:a,expiresAt:c,relayUrl:d,createdAt:f})}let f="string"==typeof b.relayUrl?b.relayUrl:void 0;return{version:1,serverId:c,...f?{relayUrl:f}:{},devices:d,pairing:e}}catch{return o()}}((0,e.readFileSync)(a,"utf8"))}catch{return o()}}function r(a){let b=n();(0,e.mkdirSync)((0,f.dirname)(b),{recursive:!0});let c=`${b}.tmp-${process.pid}-${Date.now()}`;try{(0,e.writeFileSync)(c,`${JSON.stringify(a,null,2)}
|
|
94
|
+
`,"utf8"),(0,e.renameSync)(c,b)}catch(a){try{(0,e.existsSync)(c)&&(0,e.unlinkSync)(c)}catch{}throw a}}function s(){return p(()=>q()).devices.map(({id:a,label:b,createdAt:c,lastSeenAt:d})=>({id:a,label:b,createdAt:c,lastSeenAt:d}))}function t(a){return p(()=>{let b=q(),c=b.devices.filter(b=>b.id!==a);return c.length!==b.devices.length&&(b.devices=c,r(b),!0)})}function u(a,b,c=Date.now()){return p(()=>{let d=q(),e=d.devices.find(b=>b.id===a);return e&&k(e.tokenHash,j(b))?(e.lastSeenAt=new Date(c).toISOString(),r(d),{serverId:d.serverId,deviceId:e.id}):null})}function v(a,b,c=Date.now()){return p(()=>{let e=q(),f=e.pairing;if(!f)return{error:"invalid"};if(f.expiresAt<=c)return e.pairing=null,r(e),{error:"expired"};if(!k(f.secretHash,j(a)))return{error:"invalid"};if(e.devices.length>=16)return{error:"device_limit"};let g=(0,d.randomBytes)(32).toString("base64url"),h={id:l("d_"),label:m(b)||"Phone",tokenHash:j(g),createdAt:new Date(c).toISOString(),lastSeenAt:new Date(c).toISOString()};return e.devices=[...e.devices,h],e.pairing=null,r(e),{serverId:e.serverId,deviceId:h.id,token:g}})}},78591:(a,b,c)=>{"use strict";a.exports=function(a,b,d){var e=a.PromiseInspection;function f(a){this.constructor$(a)}c(22418).inherits(f,b),f.prototype._promiseResolved=function(a,b){return this._values[a]=b,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},f.prototype._promiseFulfilled=function(a,b){var c=new e;return c._bitField=0x2000000,c._settledValueField=a,this._promiseResolved(b,c)},f.prototype._promiseRejected=function(a,b){var c=new e;return c._bitField=0x1000000,c._settledValueField=a,this._promiseResolved(b,c)},a.settle=function(a){return d.deprecated(".settle()",".reflect()"),new f(a).promise()},a.prototype.settle=function(){return a.settle(this)}}},79571:(a,b,c)=>{"use strict";var d=c(19771);b.debug=function(a,...b){"debug"===a&&console.log(...b)},b.warn=function(a,b){("debug"===a||"warn"===a)&&("function"==typeof d.emitWarning?d.emitWarning(b):console.warn(b))}},79935:function(a,b,c){"use strict";var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.hex=b.dec=b.codePoint=void 0;for(var e=d(c(2541)),f={},g=String.fromCodePoint?String.fromCodePoint:function(a){return a<=65535?String.fromCharCode(a):String.fromCharCode(Math.floor((a-65536)/1024)+55296,(a-65536)%1024+56320)},h=0,i=e.default;h<i.length;h++){var j=i[h],k=parseInt(j["Unicode dec"],10),l={codePoint:k,string:g(k)};f[j["Typeface name"].toUpperCase()+"_"+j["Dingbat dec"]]=l}function m(a,b){return f[a.toUpperCase()+"_"+b]}b.codePoint=m,b.dec=function(a,b){return m(a,parseInt(b,10))},b.hex=function(a,b){return m(a,parseInt(b,16))}},80052:(a,b,c)=>{"use strict";a.exports=f;var d=c(14610),e=Object.create(c(22362));function f(a){if(!(this instanceof f))return new f(a);d.call(this,a)}e.inherits=c(50843),e.inherits(f,d),f.prototype._transform=function(a,b,c){c(null,a)}},80224:function(a,b,c){(function(){var b,d,e,f,g,h,i,j,k,l,m,n,o,p=function(a,b){for(var c in b)q.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},q={}.hasOwnProperty;i=c(2286),j=c(72240),b=c(92293),d=c(96321),l=c(16426),n=c(77632),o=c(46107),m=c(11781),k=c(16646),e=c(54107),f=c(9774),g=c(4907),h=c(54968),a.exports=function(a){function c(a){c.__super__.constructor.call(this,a)}return p(c,a),c.prototype.document=function(a){var b,c,e,f,g;for(this.textispresent=!1,f="",c=0,e=(g=a.children).length;c<e;c++)(b=g[c])instanceof k||(f+=(function(){switch(!1){case!(b instanceof i):return this.declaration(b);case!(b instanceof j):return this.docType(b);case!(b instanceof d):return this.comment(b);case!(b instanceof m):return this.processingInstruction(b);default:return this.element(b,0)}}).call(this));return this.pretty&&f.slice(-this.newline.length)===this.newline&&(f=f.slice(0,-this.newline.length)),f},c.prototype.attribute=function(a){return" "+a.name+'="'+a.value+'"'},c.prototype.cdata=function(a,b){return this.space(b)+"<![CDATA["+a.text+"]]>"+this.newline},c.prototype.comment=function(a,b){return this.space(b)+"\x3c!-- "+a.text+" --\x3e"+this.newline},c.prototype.declaration=function(a,b){var c;return c=this.space(b)+('<?xml version="'+a.version)+'"',null!=a.encoding&&(c+=' encoding="'+a.encoding+'"'),null!=a.standalone&&(c+=' standalone="'+a.standalone+'"'),c+=this.spacebeforeslash+"?>",c+=this.newline},c.prototype.docType=function(a,c){var i,j,k,l,n;if(c||(c=0),l=this.space(c)+"<!DOCTYPE "+a.root().name,a.pubID&&a.sysID?l+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(l+=' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(l+=" [",l+=this.newline,j=0,k=(n=a.children).length;j<k;j++)i=n[j],l+=(function(){switch(!1){case!(i instanceof e):return this.dtdAttList(i,c+1);case!(i instanceof f):return this.dtdElement(i,c+1);case!(i instanceof g):return this.dtdEntity(i,c+1);case!(i instanceof h):return this.dtdNotation(i,c+1);case!(i instanceof b):return this.cdata(i,c+1);case!(i instanceof d):return this.comment(i,c+1);case!(i instanceof m):return this.processingInstruction(i,c+1);default:throw Error("Unknown DTD node type: "+i.constructor.name)}}).call(this);l+="]"}return l+=this.spacebeforeslash+">",l+=this.newline},c.prototype.element=function(a,c){var e,f,g,h,i,j,p,r,s,t,u,v,w;for(p in c||(c=0),w=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),r=(v=this.space(c))+"<"+a.name,s=a.attributes)q.call(s,p)&&(e=s[p],r+=this.attribute(e));if(0===a.children.length||a.children.every(function(a){return""===a.value}))this.allowEmpty?r+="></"+a.name+">"+this.newline:r+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===a.children.length&&null!=a.children[0].value)r+=">",r+=a.children[0].value,r+="</"+a.name+">"+this.newline;else{if(this.dontprettytextnodes){for(g=0,i=(t=a.children).length;g<i;g++)if(null!=(f=t[g]).value){this.textispresent++,w=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,v=this.space(c)),r+=">"+this.newline,h=0,j=(u=a.children).length;h<j;h++)f=u[h],r+=(function(){switch(!1){case!(f instanceof b):return this.cdata(f,c+1);case!(f instanceof d):return this.comment(f,c+1);case!(f instanceof l):return this.element(f,c+1);case!(f instanceof n):return this.raw(f,c+1);case!(f instanceof o):return this.text(f,c+1);case!(f instanceof m):return this.processingInstruction(f,c+1);case!(f instanceof k):return"";default:throw Error("Unknown XML node type: "+f.constructor.name)}}).call(this);w&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),r+=v+"</"+a.name+">"+this.newline}return r},c.prototype.processingInstruction=function(a,b){var c;return c=this.space(b)+"<?"+a.target,a.value&&(c+=" "+a.value),c+=this.spacebeforeslash+"?>"+this.newline},c.prototype.raw=function(a,b){return this.space(b)+a.value+this.newline},c.prototype.text=function(a,b){return this.space(b)+a.value+this.newline},c.prototype.dtdAttList=function(a,b){var c;return c=this.space(b)+"<!ATTLIST "+a.elementName+" "+a.attributeName+" "+a.attributeType,"#DEFAULT"!==a.defaultValueType&&(c+=" "+a.defaultValueType),a.defaultValue&&(c+=' "'+a.defaultValue+'"'),c+=this.spacebeforeslash+">"+this.newline},c.prototype.dtdElement=function(a,b){return this.space(b)+"<!ELEMENT "+a.name+" "+a.value+this.spacebeforeslash+">"+this.newline},c.prototype.dtdEntity=function(a,b){var c;return c=this.space(b)+"<!ENTITY",a.pe&&(c+=" %"),c+=" "+a.name,a.value?c+=' "'+a.value+'"':(a.pubID&&a.sysID?c+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(c+=' SYSTEM "'+a.sysID+'"'),a.nData&&(c+=" NDATA "+a.nData)),c+=this.spacebeforeslash+">"+this.newline},c.prototype.dtdNotation=function(a,b){var c;return c=this.space(b)+"<!NOTATION "+a.name,a.pubID&&a.sysID?c+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.pubID?c+=' PUBLIC "'+a.pubID+'"':a.sysID&&(c+=' SYSTEM "'+a.sysID+'"'),c+=this.spacebeforeslash+">"+this.newline},c.prototype.openNode=function(a,b){var c,d,e,f;if(b||(b=0),!(a instanceof l))return e=this.space(b)+"<!DOCTYPE "+a.rootNodeName,a.pubID&&a.sysID?e+=' PUBLIC "'+a.pubID+'" "'+a.sysID+'"':a.sysID&&(e+=' SYSTEM "'+a.sysID+'"'),e+=(a.children?" [":">")+this.newline;for(d in e=this.space(b)+"<"+a.name,f=a.attributes)q.call(f,d)&&(c=f[d],e+=this.attribute(c));return e+((a.children?">":"/>")+this.newline)},c.prototype.closeNode=function(a,b){switch(b||(b=0),!1){case!(a instanceof l):return this.space(b)+"</"+a.name+">"+this.newline;case!(a instanceof j):return this.space(b)+"]>"+this.newline}},c}(c(72884))}).call(this)},80659:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f){var g=c(22418);function h(c){var d=this._promise=new a(b);c instanceof a&&d._propagateFrom(c,3),d._setOnCancel(this),this._values=c,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return g.isArray,g.inherits(h,f),h.prototype.length=function(){return this._length},h.prototype.promise=function(){return this._promise},h.prototype._init=function b(c,f){var h=d(this._values,this._promise);if(h instanceof a){var i=(h=h._target())._bitField;if(this._values=h,(0x3010000&i)==0)return this._promise._setAsyncGuaranteed(),h._then(b,this._reject,void 0,this,f);if((0x2000000&i)!=0)h=h._value();else if((0x1000000&i)!=0)return this._reject(h._reason());else return this._cancel()}if(null===(h=g.asArray(h))){var j=e("expecting an array or an iterable object but got "+g.classString(h)).reason();this._promise._rejectCallback(j,!1);return}0===h.length?-5===f?this._resolveEmptyArray():this._resolve(function(a){switch(a){case -2:return[];case -3:return{}}}(f)):this._iterate(h)},h.prototype._iterate=function(b){var c=this.getActualLength(b.length);this._length=c,this._values=this.shouldCopyValues()?Array(c):this._values;for(var e=this._promise,f=!1,g=null,h=0;h<c;++h){var i=d(b[h],e);g=i instanceof a?(i=i._target())._bitField:null,f?null!==g&&i.suppressUnhandledRejections():null!==g?(0x3010000&g)==0?(i._proxy(this,h),this._values[h]=i):f=(0x2000000&g)!=0?this._promiseFulfilled(i._value(),h):(0x1000000&g)!=0?this._promiseRejected(i._reason(),h):this._promiseCancelled(h):f=this._promiseFulfilled(i,h)}f||e._setAsyncGuaranteed()},h.prototype._isResolved=function(){return null===this._values},h.prototype._resolve=function(a){this._values=null,this._promise._fulfill(a)},h.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},h.prototype._reject=function(a){this._values=null,this._promise._rejectCallback(a,!1)},h.prototype._promiseFulfilled=function(a,b){return this._values[b]=a,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},h.prototype._promiseCancelled=function(){return this._cancel(),!0},h.prototype._promiseRejected=function(a){return this._totalResolved++,this._reject(a),!0},h.prototype._resultCancelled=function(){if(!this._isResolved()){var b=this._values;if(this._cancel(),b instanceof a)b.cancel();else for(var c=0;c<b.length;++c)b[c]instanceof a&&b[c].cancel()}},h.prototype.shouldCopyValues=function(){return!0},h.prototype.getActualLength=function(a){return a},h}},81408:(a,b,c)=>{b.Parser=c(41017).Parser,b.rules=c(25105),b.errors=c(89281),b.results=c(65869),b.StringSource=c(10128),b.Token=c(40787),b.bottomUp=c(90325),b.RegexTokeniser=c(87544).RegexTokeniser,b.rule=function(a){var b;return function(c){return b||(b=a()),b(c)}}},81833:(a,b,c)=>{"use strict";var d=c(26701);b.resolveBlockScalar=function(a,b,c){let e=b.offset,f=function({offset:a,props:b},c,d){if("block-scalar-header"!==b[0].type)return d(b[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:e}=b[0],f=e[0],g=0,h="",i=-1;for(let b=1;b<e.length;++b){let c=e[b];if(h||"-"!==c&&"+"!==c){let d=Number(c);!g&&d?g=d:-1===i&&(i=a+b)}else h=c}-1!==i&&d(i,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${e}`);let j=!1,k="",l=e.length;for(let a=1;a<b.length;++a){let e=b[a];switch(e.type){case"space":j=!0;case"newline":l+=e.source.length;break;case"comment":c&&!j&&d(e,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),l+=e.source.length,k=e.source.substring(1);break;case"error":d(e,"UNEXPECTED_TOKEN",e.message),l+=e.source.length;break;default:{let a=`Unexpected token in block scalar header: ${e.type}`;d(e,"UNEXPECTED_TOKEN",a);let b=e.source;b&&"string"==typeof b&&(l+=b.length)}}}return{mode:f,indent:g,chomp:h,comment:k,length:l}}(b,a.options.strict,c);if(!f)return{value:"",type:null,comment:"",range:[e,e,e]};let g=">"===f.mode?d.Scalar.BLOCK_FOLDED:d.Scalar.BLOCK_LITERAL,h=b.source?function(a){let b=a.split(/\n( *)/),c=b[0],d=c.match(/^( *)/),e=[d?.[1]?[d[1],c.slice(d[1].length)]:["",c]];for(let a=1;a<b.length;a+=2)e.push([b[a],b[a+1]]);return e}(b.source):[],i=h.length;for(let a=h.length-1;a>=0;--a){let b=h[a][1];if(""===b||"\r"===b)i=a;else break}if(0===i){let a="+"===f.chomp&&h.length>0?"\n".repeat(Math.max(1,h.length-1)):"",c=e+f.length;return b.source&&(c+=b.source.length),{value:a,type:g,comment:f.comment,range:[e,c,c]}}let j=b.indent+f.indent,k=b.offset+f.length,l=0;for(let b=0;b<i;++b){let[d,e]=h[b];if(""===e||"\r"===e)0===f.indent&&d.length>j&&(j=d.length);else{d.length<j&&c(k+d.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===f.indent&&(j=d.length),l=b,0!==j||a.atRoot||c(k,"BAD_INDENT","Block scalar values in collections must be indented");break}k+=d.length+e.length+1}for(let a=h.length-1;a>=i;--a)h[a][0].length>j&&(i=a+1);let m="",n="",o=!1;for(let a=0;a<l;++a)m+=h[a][0].slice(j)+"\n";for(let a=l;a<i;++a){let[b,e]=h[a];k+=b.length+e.length+1;let i="\r"===e[e.length-1];if(i&&(e=e.slice(0,-1)),e&&b.length<j){let a=f.indent?"explicit indentation indicator":"first line",d=`Block scalar lines must not be less indented than their ${a}`;c(k-e.length-(i?2:1),"BAD_INDENT",d),b=""}g===d.Scalar.BLOCK_LITERAL?(m+=n+b.slice(j)+e,n="\n"):b.length>j||" "===e[0]?(" "===n?n="\n":o||"\n"!==n||(n="\n\n"),m+=n+b.slice(j)+e,n="\n",o=!0):""===e?"\n"===n?m+="\n":n="\n":(m+=n+e,n=" ",o=!1)}switch(f.chomp){case"-":break;case"+":for(let a=i;a<h.length;++a)m+="\n"+h[a][0].slice(j);"\n"!==m[m.length-1]&&(m+="\n");break;default:m+="\n"}let p=e+f.length+b.source.length;return{value:m,type:g,comment:f.comment,range:[e,p,p]}}},83172:function(a){(function(){var b={}.hasOwnProperty;a.exports=function(){function a(a){var c,d,e,f,g;for(c in this.assertLegalChar=(f=this.assertLegalChar,g=this,function(){return f.apply(g,arguments)}),a||(a={}),this.noDoubleEncoding=a.noDoubleEncoding,d=a.stringify||{})b.call(d,c)&&(e=d[c],this[c]=e)}return a.prototype.eleName=function(a){return a=""+a||"",this.assertLegalChar(a)},a.prototype.eleText=function(a){return a=""+a||"",this.assertLegalChar(this.elEscape(a))},a.prototype.cdata=function(a){return a=(a=""+a||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(a)},a.prototype.comment=function(a){if((a=""+a||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+a);return this.assertLegalChar(a)},a.prototype.raw=function(a){return""+a||""},a.prototype.attName=function(a){return""+a||""},a.prototype.attValue=function(a){return a=""+a||"",this.attEscape(a)},a.prototype.insTarget=function(a){return""+a||""},a.prototype.insValue=function(a){if((a=""+a||"").match(/\?>/))throw Error("Invalid processing instruction value: "+a);return a},a.prototype.xmlVersion=function(a){if(!(a=""+a||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+a);return a},a.prototype.xmlEncoding=function(a){if(!(a=""+a||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+a);return a},a.prototype.xmlStandalone=function(a){return a?"yes":"no"},a.prototype.dtdPubID=function(a){return""+a||""},a.prototype.dtdSysID=function(a){return""+a||""},a.prototype.dtdElementValue=function(a){return""+a||""},a.prototype.dtdAttType=function(a){return""+a||""},a.prototype.dtdAttDefault=function(a){return null!=a?""+a||"":a},a.prototype.dtdEntityValue=function(a){return""+a||""},a.prototype.dtdNData=function(a){return""+a||""},a.prototype.convertAttKey="@",a.prototype.convertPIKey="?",a.prototype.convertTextKey="#text",a.prototype.convertCDataKey="#cdata",a.prototype.convertCommentKey="#comment",a.prototype.convertRawKey="#raw",a.prototype.assertLegalChar=function(a){var b;if(b=a.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw Error("Invalid character in string: "+a+" at index "+b.index);return a},a.prototype.elEscape=function(a){var b;return b=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},a.prototype.attEscape=function(a){var b;return b=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,a.replace(b,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},a}()}).call(this)},83543:a=>{"use strict";a.exports=function(a,b,c,d){var e=!1,f=function(a,b){this._reject(b)},g=function(a,b){b.promiseRejectionQueued=!0,b.bindingPromise._then(f,f,null,this,a)},h=function(a,b){(0x3010000&this._bitField)==0&&this._resolveCallback(b.target)},i=function(a,b){b.promiseRejectionQueued||this._reject(a)};a.prototype.bind=function(f){e||(e=!0,a.prototype._propagateFrom=d.propagateFromFunction(),a.prototype._boundValue=d.boundValueFunction());var j=c(f),k=new a(b);k._propagateFrom(this,1);var l=this._target();if(k._setBoundTo(j),j instanceof a){var m={promiseRejectionQueued:!1,promise:k,target:l,bindingPromise:j};l._then(b,g,void 0,k,m),j._then(h,i,void 0,k,m),k._setOnCancel(j)}else k._resolveCallback(l);return k},a.prototype._setBoundTo=function(a){void 0!==a?(this._bitField=2097152|this._bitField,this._boundTo=a):this._bitField=-2097153&this._bitField},a.prototype._isBound=function(){return(2097152&this._bitField)==2097152},a.bind=function(b,c){return a.resolve(c).bind(b)}}},83951:(a,b,c)=>{"use strict";var d=Object.create;if(d){var e=d(null),f=d(null);e[" size"]=f[" size"]=0}a.exports=function(a){var b=c(22418),d=b.canEvaluate,g=b.isIdentifier,h=function(a){return Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,a))(k)},i=function(a){return Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",a))},j=function(a,b,c){var d=c[a];if("function"!=typeof d){if(!g(a))return null;if(d=b(a),c[a]=d,c[" size"]++,c[" size"]>512){for(var e=Object.keys(c),f=0;f<256;++f)delete c[e[f]];c[" size"]=e.length-256}}return d};function k(c,d){var e;if(null!=c&&(e=c[d]),"function"!=typeof e){var f="Object "+b.classString(c)+" has no method '"+b.toString(d)+"'";throw new a.TypeError(f)}return e}function l(a){return k(a,this.pop()).apply(a,this)}function m(a){return a[this]}function n(a){var b=+this;return b<0&&(b=Math.max(0,b+a.length)),a[b]}a.prototype.call=function(a){for(var b=arguments.length,c=Array(Math.max(b-1,0)),f=1;f<b;++f)c[f-1]=arguments[f];if(d){var g=j(a,h,e);if(null!==g)return this._then(g,void 0,void 0,c,void 0)}return c.push(a),this._then(l,void 0,void 0,c,void 0)},a.prototype.get=function(a){var b;if("number"==typeof a)b=n;else if(d){var c=j(a,i,f);b=null!==c?c:m}else b=m;return this._then(b,void 0,void 0,a,void 0)}}},83989:(a,b)=>{"use strict";b.applyReviver=function a(b,c,d,e){if(e&&"object"==typeof e)if(Array.isArray(e))for(let c=0,d=e.length;c<d;++c){let d=e[c],f=a(b,e,String(c),d);void 0===f?delete e[c]:f!==d&&(e[c]=f)}else if(e instanceof Map)for(let c of Array.from(e.keys())){let d=e.get(c),f=a(b,e,c,d);void 0===f?e.delete(c):f!==d&&e.set(c,f)}else if(e instanceof Set)for(let c of Array.from(e)){let d=a(b,e,c,c);void 0===d?e.delete(c):d!==c&&(e.delete(c),e.add(d))}else for(let[c,d]of Object.entries(e)){let f=a(b,e,c,d);void 0===f?delete e[c]:f!==d&&(e[c]=f)}return b.call(c,d,e)}},84127:(a,b,c)=>{"use strict";var d=c(13420),e=c(98658),f=c(53933),g=c(23342);function h(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}h.prototype={getContentWorker:function(){var a=new e(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new e(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(a,b,c){return a.pipe(new f).pipe(new g("uncompressedSize")).pipe(b.compressWorker(c)).pipe(new g("compressedSize")).withStreamInfo("compression",b)},a.exports=h},84180:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Y:()=>t});var e=c(87390),f=c(2904),g=c(89362),h=c(12144),i=c(28672),j=c(98122),k=c(72037),l=a([f,h,j,k]);[f,h,j,k]=l.then?(await l)():l;let v=["skills.list","skills.get","skills.toggle","skills.search","skills.install","skills.check","skills.update","plugins.list","plugins.action","agents.list","agents.get","agents.save","agents.delete","agents.unpack","agents.setDisabled","agents.setOverride","mcp.list","mcp.get","mcp.validate","mcp.save","mcp.delete"];function m(a){let b=(0,i.oJ)(a)?.trim();if(!b||b.length>1024)throw new j.uY("invalid_cwd","cwd is required");return b}function n(a){if(void 0===a)return;let b=(0,i.oJ)(a)?.trim();if(b){if(b.length>1024)throw new j.uY("invalid_cwd","cwd is too long");return b}}function o(a,b="name"){let c=(0,i.oJ)(a)?.trim();if(!c||c.length>128)throw new j.uY("invalid_name",`${b} is required`);return c}function p(a,b,c,d){let e=void 0===b?0:Number(b),f=void 0===c?d:Number(c);if(!Number.isInteger(e)||e<0||e>1e5)throw new j.uY("invalid_args","offset must be an integer >= 0");if(!Number.isInteger(f)||f<1||f>200)throw new j.uY("invalid_args","limit must be an integer 1-200");return{offset:e,limit:f}}async function q(a){let b=a.trim(),c=await (0,e.mc)();if(!(0,e.B7)(b,c))throw new j.uY("access_denied","Path is outside allowed workspaces");return b}function r(a){if("user"===a||"project"===a)return a;throw new j.uY("invalid_scope","scope must be user or project")}function s(a){if("global"===a||"project"===a)return a;throw new j.uY("invalid_scope","scope must be global or project")}async function t(a,b,c){if("object"!=typeof b||null===b||Array.isArray(b))throw new j.uY("invalid_args","args must be an object");switch(function(a){if(!v.includes(a))throw new j.uY("unknown_action",`Unknown extensions action "${a}"`);return a}(a)){case"skills.list":{let a=await q(m(b.cwd)),c=await (0,k.yg)(a),{offset:d,limit:e}=p(c.skills.length,b.offset,b.limit,50),f=c.skills.map(a=>({name:a.name,description:a.description,filePath:a.filePath,disableModelInvocation:a.disableModelInvocation,...a.scope?{scope:a.scope}:a.sourceInfo?.scope?{scope:a.sourceInfo.scope}:{},...a.sourceInfo?.source?{source:a.sourceInfo.source}:{},...a.install?{install:a.install}:{}}));return{cwd:c.cwd,skills:f.slice(d,d+e),total:f.length,offset:d,limit:e,hasMore:d+e<f.length}}case"skills.get":{let a=m(b.cwd),c=(0,i.oJ)(b.filePath)?.trim();if(!c||c.length>1024)throw new j.uY("invalid_path","filePath is required");return(0,k.fb)(a,c)}case"skills.toggle":{let a=m(b.cwd),c=(0,i.oJ)(b.filePath)?.trim();if(!c||c.length>1024)throw new j.uY("invalid_path","filePath is required");if("boolean"!=typeof b.disableModelInvocation)throw new j.uY("invalid_flag","disableModelInvocation must be a boolean");return(0,k.TA)(a,c,b.disableModelInvocation)}case"skills.search":{let a=(0,i.oJ)(b.query)?.trim();if(!a||a.length>200)throw new j.uY("invalid_query","query is required");let c=b.limit,d=void 0===c?10:Number(c);if(!Number.isInteger(d)||d<1||d>20)throw new j.uY("invalid_limit","limit must be 1-20");return(0,k.wL)(a,d)}case"skills.install":{let a=(0,i.oJ)(b.package)?.trim();if(!a||a.length>256)throw new j.uY("invalid_package","package is required");let c=s(b.scope),d=n(b.cwd);return(0,k.s2)(a,c,d)}case"skills.check":{let a=m(b.cwd),c=void 0===b.package?void 0:(0,i.oJ)(b.package)?.trim(),d=void 0===b.scope?void 0:s(b.scope);if(c&&!d||!c&&d)throw new j.uY("invalid_args","package and scope must be provided together");return(0,k.Hd)({cwd:a,...c?{package:c,scope:d}:{}})}case"skills.update":{let a=m(b.cwd),c=(0,i.oJ)(b.package)?.trim();if(!c)throw new j.uY("invalid_package","package is required");let d=s(b.scope);return(0,k.k0)({cwd:a,package:c,scope:d})}case"plugins.list":{let a=await q(m(b.cwd)),c=await (0,k.mz)(a),{offset:d,limit:e}=p(c.packages.length,b.offset,b.limit,50);return{cwd:c.cwd,packages:c.packages.slice(d,d+e),total:c.packages.length,offset:d,limit:e,hasMore:d+e<c.packages.length}}case"plugins.action":{let a=m(b.cwd),c=(0,i.oJ)(b.action)?.trim();if("install"!==c&&"remove"!==c&&"update"!==c&&"disable"!==c&&"enable"!==c)throw new j.uY("invalid_action","plugin action is required");let d=(0,i.oJ)(b.source)?.trim();if("update"!==c&&(!d||d.length>512))throw new j.uY("invalid_source","source is required");if(d&&d.length>512)throw new j.uY("invalid_source","source is too long");let e=(0,i.oJ)(b.scope)?.trim(),f="project"===e?"project":"global"===e?"global":void 0;if(void 0!==b.scope&&void 0===f&&e)throw new j.uY("invalid_scope","scope must be global or project");return(0,k.CR)(a,c,d||void 0,f)}case"agents.list":{let a=n(b.cwd),c=await (0,k.m2)(a),d=c.agents;if(void 0!==b.scope){let a=(0,i.oJ)(b.scope)?.trim();d=d.filter(b=>b.source===a)}let e=(0,i.oJ)(b.query)?.trim().toLowerCase();e&&(d=d.filter(a=>`${a.name} ${a.description} ${a.systemPrompt??""}`.toLowerCase().includes(e)));let{offset:f,limit:g}=p(d.length,b.offset,b.limit,50);return{...c.cwd?{cwd:c.cwd}:{},agents:d.slice(f,f+g).map(a=>({name:a.name,description:a.description,source:a.source,...a.filePath?{filePath:a.filePath}:{},...a.disabled?{disabled:!0}:{}})),total:d.length,offset:f,limit:g,hasMore:f+g<d.length}}case"agents.get":{let a=o(b.name),c=void 0===b.scope?void 0:r(b.scope),d=n(b.cwd);return(0,k.XX)({name:a,...c?{scope:c}:{},...d?{cwd:d}:{}})}case"agents.save":{let a=o(b.name);if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a))throw new j.uY("invalid_name","name must be kebab-case");let c=(0,i.oJ)(b.description)?.trim();if(!c||c.length>500)throw new j.uY("invalid_description","description is required");let d=(0,i.oJ)(b.systemPrompt);if(void 0===d||Buffer.byteLength(d,"utf8")>0x1000000)throw new j.uY("invalid_prompt","systemPrompt is required");let e=r(b.scope),f=n(b.cwd),g=void 0===b.tools?void 0:function(a,b){if(!Array.isArray(a)||a.some(a=>"string"!=typeof a))throw new j.uY("invalid_args",`${b} must be an array of strings`);return a}(b.tools,"tools"),h=void 0===b.model?void 0:function(a){if("string"==typeof a&&a.trim())return a.trim();if(Array.isArray(a)&&a.length>0&&a.every(a=>"string"==typeof a&&a.trim()))return a;throw new j.uY("invalid_args","model must be a non-empty selector or list")}(b.model),l=void 0===b.thinkingLevel?void 0:function(a,b){if("string"!=typeof a||!a.trim()||a.length>64)throw new j.uY("invalid_args",`${b} must be a non-empty string`);return a}(b.thinkingLevel,"thinkingLevel"),m=void 0===b.prewalk?void 0:u(b.prewalk,"prewalk"),p=void 0===b.advisor?void 0:u(b.advisor,"advisor"),q=void 0===b.blocking?void 0:function(a,b){if("boolean"!=typeof a)throw new j.uY("invalid_args",`${b} must be a boolean`);return a}(b.blocking,"blocking");return(0,k.A_)({name:a,description:c,systemPrompt:d,scope:e,...f?{cwd:f}:{},...void 0!==g?{tools:g}:{},...void 0!==h?{model:h}:{},...void 0!==l?{thinkingLevel:l}:{},...void 0!==m?{prewalk:m}:{},...void 0!==p?{advisor:p}:{},...void 0!==q?{blocking:q}:{}})}case"agents.delete":{let a=o(b.name),c=r(b.scope),d=n(b.cwd);return(0,k.yO)({name:a,scope:c,...d?{cwd:d}:{}})}case"agents.unpack":{let a=r(b.scope),c=n(b.cwd),d=void 0===b.force?void 0:!0===b.force;if(void 0!==b.force&&"boolean"!=typeof b.force)throw new j.uY("invalid_args","force must be a boolean");return(0,k.aV)({scope:a,...c?{cwd:c}:{},...void 0!==d?{force:d}:{}})}case"agents.setDisabled":{let a=o(b.name);if("boolean"!=typeof b.disabled)throw new j.uY("invalid_args","disabled must be a boolean");try{await (0,f.$l)(c=>{let d=new Set(Array.isArray(c.task?.disabledAgents)?c.task.disabledAgents:[]);return b.disabled?d.add(a):d.delete(a),{task:{disabledAgents:[...d]}}})}catch(a){throw new j.uY("agent_settings_failed",a instanceof Error?a.message:String(a))}return{name:a,disabled:b.disabled}}case"agents.setOverride":{let a=o(b.name),c=(0,i.oJ)(b.kind)?.trim();if("model"!==c&&"prewalk"!==c&&"advisor"!==c)throw new j.uY("invalid_args","kind must be model, prewalk, or advisor");try{await (0,f.$l)(d=>{let e=d.task??{},f={};if("model"===c){let c={...e.agentModelOverrides??{}};if(void 0===b.value||null===b.value||""===b.value)delete c[a];else if("string"==typeof b.value&&b.value.trim())c[a]=b.value.trim();else if(Array.isArray(b.value)&&b.value.every(a=>"string"==typeof a&&a.trim()))c[a]=b.value;else throw new j.uY("invalid_args","value must be a non-empty model selector or list");f.agentModelOverrides=c}else{let d="prewalk"===c?"agentPrewalk":"agentAdvisor",g={...e[d]??{}};if(void 0===b.value||null===b.value||""===b.value)delete g[a];else if("boolean"==typeof b.value)g[a]=b.value?"on":"off";else if("string"==typeof b.value&&b.value.trim())g[a]=b.value.trim();else throw new j.uY("invalid_args","value must be an on/off selector or model pattern");f[d]=g}return{task:f}})}catch(a){throw new j.uY("agent_settings_failed",a instanceof Error?a.message:String(a))}return{name:a,kind:c}}case"mcp.list":{let a,d,e=n(b.cwd),f=await (0,k.o0)(e),{offset:i,limit:j}=p(f.inventory.length,b.offset,b.limit,50),l=c.sessionId??null;if(l){let b=(0,h.A4)(l);if(b?.isAlive())try{let c=await b.getMcpList();b.isAlive()&&(0,h.A4)(l)===b?a=(0,g.b8)((0,g.vh)(c),f.inventory.map(({name:a,source:b,status:c,type:d})=>({name:a,source:b,status:"disabled"===c?"disabled":"configured",...d?{type:d}:{}}))).map(({name:a,source:b,status:c,type:d})=>({name:a,source:b,status:c,...d?{type:d}:{}})):d="Selected session became inactive — refresh to query its current runtime."}catch{d="Live MCP query failed. Connection status is unknown; refresh to retry."}else d="Selected session is inactive — live MCP status is unavailable."}return{sessionId:l,...a?{liveServers:a}:{},...d?{liveError:d}:{},inventory:f.inventory.slice(i,i+j),total:f.inventory.length,offset:i,limit:j,hasMore:i+j<f.inventory.length}}case"mcp.get":{let a=m(b.cwd);return(0,k.yy)(a,o(b.name))}case"mcp.validate":return(0,k._8)(o(b.name),b.server);case"mcp.save":{let a=m(b.cwd),c=o(b.name),d=void 0===b.previousName?void 0:o(b.previousName,"previousName");return(0,k.IV)(a,c,b.server,d)}case"mcp.delete":{let a=m(b.cwd);return(0,k.bV)(a,o(b.name))}}}function u(a,b){if("boolean"==typeof a||"string"==typeof a)return a;throw new j.uY("invalid_args",`${b} must be a boolean or string`)}d()}catch(a){d(a)}})},84183:(a,b,c)=>{"use strict";var d=c(73315),e=c(37521),f=c(26701),g=c(71397);function h(a,b){if(d.isSeq(a))for(let c=0;c<a.items.length;++c){let g=a.items[c];if(!d.isPair(g)){if(d.isMap(g)){g.items.length>1&&b("Each pair must have its own sequence indicator");let a=g.items[0]||new e.Pair(new f.Scalar(null));if(g.commentBefore&&(a.key.commentBefore=a.key.commentBefore?`${g.commentBefore}
|
|
95
|
+
${a.key.commentBefore}`:g.commentBefore),g.comment){let b=a.value??a.key;b.comment=b.comment?`${g.comment}
|
|
96
|
+
${b.comment}`:g.comment}g=a}a.items[c]=d.isPair(g)?g:new e.Pair(g)}}else b("Expected a sequence for this tag");return a}function i(a,b,c){let{replacer:d}=c,f=new g.YAMLSeq(a);f.tag="tag:yaml.org,2002:pairs";let h=0;if(b&&Symbol.iterator in Object(b))for(let a of b){let g,i;if("function"==typeof d&&(a=d.call(b,String(h++),a)),Array.isArray(a))if(2===a.length)g=a[0],i=a[1];else throw TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let b=Object.keys(a);if(1===b.length)i=a[g=b[0]];else throw TypeError(`Expected tuple with one key, not ${b.length} keys`)}else g=a;f.items.push(e.createPair(g,i,c))}return f}b.createPairs=i,b.pairs={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:h,createNode:i},b.resolvePairs=h},84435:(a,b,c)=>{"use strict";c.d(b,{D:()=>f});var d=c(55511),e=c(29021);function f(a,b){let c=`${a}.tmp-${(0,d.randomUUID)()}`,f=(0,e.openSync)(c,"wx",384);try{try{(0,e.writeFileSync)(f,b,"utf8")}finally{(0,e.closeSync)(f)}(0,e.renameSync)(c,a)}finally{try{(0,e.unlinkSync)(c)}catch(a){if(!(a instanceof Error&&"code"in a&&"ENOENT"===a.code))throw a}}}},84906:(a,b,c)=>{"use strict";c.r(b),c.d(b,{VERSION:()=>e,after:()=>bv,all:()=>bP,allKeys:()=>an,any:()=>bQ,assign:()=>aF,before:()=>bw,bind:()=>bj,bindAll:()=>bm,chain:()=>bf,chunk:()=>co,clone:()=>aJ,collect:()=>bJ,compact:()=>cd,compose:()=>bu,constant:()=>Z,contains:()=>bR,countBy:()=>b3,create:()=>aI,debounce:()=>br,default:()=>ct,defaults:()=>aG,defer:()=>bp,delay:()=>bo,detect:()=>bG,difference:()=>cf,drop:()=>cb,each:()=>bI,escape:()=>a3,every:()=>bP,extend:()=>aE,extendOwn:()=>aF,filter:()=>bN,find:()=>bG,findIndex:()=>bA,findKey:()=>by,findLastIndex:()=>bB,findWhere:()=>bH,first:()=>ca,flatten:()=>ce,foldl:()=>bL,foldr:()=>bM,forEach:()=>bI,functions:()=>aC,get:()=>aO,groupBy:()=>b1,has:()=>aP,head:()=>ca,identity:()=>aQ,include:()=>bR,includes:()=>bR,indexBy:()=>b2,indexOf:()=>bE,initial:()=>b9,inject:()=>bL,intersection:()=>cj,invert:()=>aB,invoke:()=>bS,isArguments:()=>W,isArray:()=>T,isArrayBuffer:()=>K,isBoolean:()=>B,isDataView:()=>S,isDate:()=>G,isElement:()=>C,isEmpty:()=>ah,isEqual:()=>am,isError:()=>I,isFinite:()=>X,isFunction:()=>N,isMap:()=>av,isMatch:()=>ai,isNaN:()=>Y,isNull:()=>z,isNumber:()=>F,isObject:()=>y,isRegExp:()=>H,isSet:()=>ax,isString:()=>E,isSymbol:()=>J,isTypedArray:()=>ad,isUndefined:()=>A,isWeakMap:()=>aw,isWeakSet:()=>ay,iteratee:()=>aV,keys:()=>ag,last:()=>cc,lastIndexOf:()=>bF,map:()=>bJ,mapObject:()=>aX,matcher:()=>aR,matches:()=>aR,max:()=>bV,memoize:()=>bn,methods:()=>aC,min:()=>bW,mixin:()=>cq,negate:()=>bt,noop:()=>aY,now:()=>a0,object:()=>cm,omit:()=>b8,once:()=>bx,pairs:()=>aA,partial:()=>bi,partition:()=>b4,pick:()=>b7,pluck:()=>bT,property:()=>aS,propertyOf:()=>aZ,random:()=>a_,range:()=>cn,reduce:()=>bL,reduceRight:()=>bM,reject:()=>bO,rest:()=>cb,restArguments:()=>x,result:()=>bc,sample:()=>bZ,select:()=>bN,shuffle:()=>b$,size:()=>b5,some:()=>bQ,sortBy:()=>b_,sortedIndex:()=>bC,tail:()=>cb,take:()=>ca,tap:()=>aK,template:()=>bb,templateSettings:()=>a5,throttle:()=>bq,times:()=>a$,toArray:()=>bY,toPath:()=>aL,transpose:()=>ck,unescape:()=>a4,union:()=>ci,uniq:()=>ch,unique:()=>ch,uniqueId:()=>be,unzip:()=>ck,values:()=>az,where:()=>bU,without:()=>cg,wrap:()=>bs,zip:()=>cl});var d={};c.r(d),c.d(d,{VERSION:()=>e,after:()=>bv,all:()=>bP,allKeys:()=>an,any:()=>bQ,assign:()=>aF,before:()=>bw,bind:()=>bj,bindAll:()=>bm,chain:()=>bf,chunk:()=>co,clone:()=>aJ,collect:()=>bJ,compact:()=>cd,compose:()=>bu,constant:()=>Z,contains:()=>bR,countBy:()=>b3,create:()=>aI,debounce:()=>br,default:()=>cr,defaults:()=>aG,defer:()=>bp,delay:()=>bo,detect:()=>bG,difference:()=>cf,drop:()=>cb,each:()=>bI,escape:()=>a3,every:()=>bP,extend:()=>aE,extendOwn:()=>aF,filter:()=>bN,find:()=>bG,findIndex:()=>bA,findKey:()=>by,findLastIndex:()=>bB,findWhere:()=>bH,first:()=>ca,flatten:()=>ce,foldl:()=>bL,foldr:()=>bM,forEach:()=>bI,functions:()=>aC,get:()=>aO,groupBy:()=>b1,has:()=>aP,head:()=>ca,identity:()=>aQ,include:()=>bR,includes:()=>bR,indexBy:()=>b2,indexOf:()=>bE,initial:()=>b9,inject:()=>bL,intersection:()=>cj,invert:()=>aB,invoke:()=>bS,isArguments:()=>W,isArray:()=>T,isArrayBuffer:()=>K,isBoolean:()=>B,isDataView:()=>S,isDate:()=>G,isElement:()=>C,isEmpty:()=>ah,isEqual:()=>am,isError:()=>I,isFinite:()=>X,isFunction:()=>N,isMap:()=>av,isMatch:()=>ai,isNaN:()=>Y,isNull:()=>z,isNumber:()=>F,isObject:()=>y,isRegExp:()=>H,isSet:()=>ax,isString:()=>E,isSymbol:()=>J,isTypedArray:()=>ad,isUndefined:()=>A,isWeakMap:()=>aw,isWeakSet:()=>ay,iteratee:()=>aV,keys:()=>ag,last:()=>cc,lastIndexOf:()=>bF,map:()=>bJ,mapObject:()=>aX,matcher:()=>aR,matches:()=>aR,max:()=>bV,memoize:()=>bn,methods:()=>aC,min:()=>bW,mixin:()=>cq,negate:()=>bt,noop:()=>aY,now:()=>a0,object:()=>cm,omit:()=>b8,once:()=>bx,pairs:()=>aA,partial:()=>bi,partition:()=>b4,pick:()=>b7,pluck:()=>bT,property:()=>aS,propertyOf:()=>aZ,random:()=>a_,range:()=>cn,reduce:()=>bL,reduceRight:()=>bM,reject:()=>bO,rest:()=>cb,restArguments:()=>x,result:()=>bc,sample:()=>bZ,select:()=>bN,shuffle:()=>b$,size:()=>b5,some:()=>bQ,sortBy:()=>b_,sortedIndex:()=>bC,tail:()=>cb,take:()=>ca,tap:()=>aK,template:()=>bb,templateSettings:()=>a5,throttle:()=>bq,times:()=>a$,toArray:()=>bY,toPath:()=>aL,transpose:()=>ck,unescape:()=>a4,union:()=>ci,uniq:()=>ch,unique:()=>ch,uniqueId:()=>be,unzip:()=>ck,values:()=>az,where:()=>bU,without:()=>cg,wrap:()=>bs,zip:()=>cl});var e="1.13.8",f="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},g=Array.prototype,h=Object.prototype,i="u">typeof Symbol?Symbol.prototype:null,j=g.push,k=g.slice,l=h.toString,m=h.hasOwnProperty,n="u">typeof ArrayBuffer,o="u">typeof DataView,p=Array.isArray,q=Object.keys,r=Object.create,s=n&&ArrayBuffer.isView,t=isNaN,u=isFinite,v=!({toString:null}).propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function x(a,b){return b=null==b?a.length-1:+b,function(){for(var c=Math.max(arguments.length-b,0),d=Array(c),e=0;e<c;e++)d[e]=arguments[e+b];switch(b){case 0:return a.call(this,d);case 1:return a.call(this,arguments[0],d);case 2:return a.call(this,arguments[0],arguments[1],d)}var f=Array(b+1);for(e=0;e<b;e++)f[e]=arguments[e];return f[b]=d,a.apply(this,f)}}function y(a){var b=typeof a;return"function"===b||"object"===b&&!!a}function z(a){return null===a}function A(a){return void 0===a}function B(a){return!0===a||!1===a||"[object Boolean]"===l.call(a)}function C(a){return!!(a&&1===a.nodeType)}function D(a){var b="[object "+a+"]";return function(a){return l.call(a)===b}}let E=D("String"),F=D("Number"),G=D("Date"),H=D("RegExp"),I=D("Error"),J=D("Symbol"),K=D("ArrayBuffer");var L=D("Function"),M=f.document&&f.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof M&&(L=function(a){return"function"==typeof a});let N=L,O=D("Object");var P=o&&(!/\[native code\]/.test(String(DataView))||O(new DataView(new ArrayBuffer(8)))),Q="u">typeof Map&&O(new Map),R=D("DataView");let S=P?function(a){return null!=a&&N(a.getInt8)&&K(a.buffer)}:R,T=p||D("Array");function U(a,b){return null!=a&&m.call(a,b)}var V=D("Arguments");!function(){V(arguments)||(V=function(a){return U(a,"callee")})}();let W=V;function X(a){return!J(a)&&u(a)&&!isNaN(parseFloat(a))}function Y(a){return F(a)&&t(a)}function Z(a){return function(){return a}}function $(a){return function(b){var c=a(b);return"number"==typeof c&&c>=0&&c<=0x1fffffffffffff}}function _(a){return function(b){return null==b?void 0:b[a]}}let aa=_("byteLength"),ab=$(aa);var ac=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;let ad=n?function(a){return s?s(a)&&!S(a):ab(a)&&ac.test(l.call(a))}:Z(!1),ae=_("length");function af(a,b){b=function(a){for(var b={},c=a.length,d=0;d<c;++d)b[a[d]]=!0;return{contains:function(a){return!0===b[a]},push:function(c){return b[c]=!0,a.push(c)}}}(b);var c=w.length,d=a.constructor,e=N(d)&&d.prototype||h,f="constructor";for(U(a,f)&&!b.contains(f)&&b.push(f);c--;)(f=w[c])in a&&a[f]!==e[f]&&!b.contains(f)&&b.push(f)}function ag(a){if(!y(a))return[];if(q)return q(a);var b=[];for(var c in a)U(a,c)&&b.push(c);return v&&af(a,b),b}function ah(a){if(null==a)return!0;var b=ae(a);return"number"==typeof b&&(T(a)||E(a)||W(a))?0===b:0===ae(ag(a))}function ai(a,b){var c=ag(b),d=c.length;if(null==a)return!d;for(var e=Object(a),f=0;f<d;f++){var g=c[f];if(b[g]!==e[g]||!(g in e))return!1}return!0}function aj(a){return a instanceof aj?a:this instanceof aj?void(this._wrapped=a):new aj(a)}function ak(a){return new Uint8Array(a.buffer||a,a.byteOffset||0,aa(a))}aj.VERSION=e,aj.prototype.value=function(){return this._wrapped},aj.prototype.valueOf=aj.prototype.toJSON=aj.prototype.value,aj.prototype.toString=function(){return String(this._wrapped)};var al="[object DataView]";function am(a,b){for(var c=[{a:a,b:b}],d=[],e=[];c.length;){var f=c.pop();if(!0===f){d.pop(),e.pop();continue}if((a=f.a)===(b=f.b)){if(0!==a||1/a==1/b)continue;return!1}if(null==a||null==b)return!1;if(a!=a){if(b!=b)continue;return!1}var g=typeof a;if("function"!==g&&"object"!==g&&"object"!=typeof b)return!1;a instanceof aj&&(a=a._wrapped),b instanceof aj&&(b=b._wrapped);var h=l.call(a);if(h!==l.call(b))return!1;if(P&&"[object Object]"==h&&S(a)){if(!S(b))return!1;h=al}switch(h){case"[object RegExp]":case"[object String]":if(""+a==""+b)continue;return!1;case"[object Number]":c.push({a:+a,b:+b});continue;case"[object Date]":case"[object Boolean]":if(+a==+b)continue;return!1;case"[object Symbol]":if(i.valueOf.call(a)===i.valueOf.call(b))continue;return!1;case"[object ArrayBuffer]":case al:c.push({a:ak(a),b:ak(b)});continue}var j="[object Array]"===h;if(!j&&ad(a)){if(aa(a)!==aa(b))return!1;if(a.buffer===b.buffer&&a.byteOffset===b.byteOffset)continue;j=!0}if(!j){if("object"!=typeof a||"object"!=typeof b)return!1;var k=a.constructor,m=b.constructor;if(k!==m&&!(N(k)&&k instanceof k&&N(m)&&m instanceof m)&&"constructor"in a&&"constructor"in b)return!1}for(var n=d.length;n--;)if(d[n]===a){if(e[n]===b)break;return!1}if(!(n>=0))if(d.push(a),e.push(b),c.push(!0),j){if((n=a.length)!==b.length)return!1;for(;n--;)c.push({a:a[n],b:b[n]})}else{var o,p=ag(a);if(n=p.length,ag(b).length!==n)return!1;for(;n--;){if(!U(b,o=p[n]))return!1;c.push({a:a[o],b:b[o]})}}}return!0}function an(a){if(!y(a))return[];var b=[];for(var c in a)b.push(c);return v&&af(a,b),b}function ao(a){var b=ae(a);return function(c){if(null==c||ae(an(c)))return!1;for(var d=0;d<b;d++)if(!N(c[a[d]]))return!1;return a!==at||!N(c[ap])}}var ap="forEach",aq=["clear","delete"],ar=["get","has","set"],as=aq.concat(ap,ar),at=aq.concat(ar),au=["add"].concat(aq,ap,"has");let av=Q?ao(as):D("Map"),aw=Q?ao(at):D("WeakMap"),ax=Q?ao(au):D("Set"),ay=D("WeakSet");function az(a){for(var b=ag(a),c=b.length,d=Array(c),e=0;e<c;e++)d[e]=a[b[e]];return d}function aA(a){for(var b=ag(a),c=b.length,d=Array(c),e=0;e<c;e++)d[e]=[b[e],a[b[e]]];return d}function aB(a){for(var b={},c=ag(a),d=0,e=c.length;d<e;d++)b[a[c[d]]]=c[d];return b}function aC(a){var b=[];for(var c in a)N(a[c])&&b.push(c);return b.sort()}function aD(a,b){return function(c){var d=arguments.length;if(b&&(c=Object(c)),d<2||null==c)return c;for(var e=1;e<d;e++)for(var f=arguments[e],g=a(f),h=g.length,i=0;i<h;i++){var j=g[i];b&&void 0!==c[j]||(c[j]=f[j])}return c}}let aE=aD(an),aF=aD(ag),aG=aD(an,!0);function aH(a){if(!y(a))return{};if(r)return r(a);var b=function(){};b.prototype=a;var c=new b;return b.prototype=null,c}function aI(a,b){var c=aH(a);return b&&aF(c,b),c}function aJ(a){return y(a)?T(a)?a.slice():aE({},a):a}function aK(a,b){return b(a),a}function aL(a){return T(a)?a:[a]}function aM(a){return aj.toPath(a)}function aN(a,b){for(var c=b.length,d=0;d<c;d++){if(null==a)return;a=a[b[d]]}return c?a:void 0}function aO(a,b,c){var d=aN(a,aM(b));return A(d)?c:d}function aP(a,b){for(var c=(b=aM(b)).length,d=0;d<c;d++){var e=b[d];if(!U(a,e))return!1;a=a[e]}return!!c}function aQ(a){return a}function aR(a){return a=aF({},a),function(b){return ai(b,a)}}function aS(a){return a=aM(a),function(b){return aN(b,a)}}function aT(a,b,c){if(void 0===b)return a;switch(null==c?3:c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)}}return function(){return a.apply(b,arguments)}}function aU(a,b,c){return null==a?aQ:N(a)?aT(a,b,c):y(a)&&!T(a)?aR(a):aS(a)}function aV(a,b){return aU(a,b,1/0)}function aW(a,b,c){return aj.iteratee!==aV?aj.iteratee(a,b):aU(a,b,c)}function aX(a,b,c){b=aW(b,c);for(var d=ag(a),e=d.length,f={},g=0;g<e;g++){var h=d[g];f[h]=b(a[h],h,a)}return f}function aY(){}function aZ(a){return null==a?aY:function(b){return aO(a,b)}}function a$(a,b,c){var d=Array(Math.max(0,a));b=aT(b,c,1);for(var e=0;e<a;e++)d[e]=b(e);return d}function a_(a,b){return null==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))}aj.toPath=aL,aj.iteratee=aV;let a0=Date.now||function(){return new Date().getTime()};function a1(a){var b=function(b){return a[b]},c="(?:"+ag(a).join("|")+")",d=RegExp(c),e=RegExp(c,"g");return function(a){return a=null==a?"":""+a,d.test(a)?a.replace(e,b):a}}let a2={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},a3=a1(a2),a4=a1(aB(a2)),a5=aj.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var a6=/(.)^/,a7={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},a8=/\\|'|\r|\n|\u2028|\u2029/g;function a9(a){return"\\"+a7[a]}var ba=/^\s*(\w|\$)+\s*$/;function bb(a,b,c){!b&&c&&(b=c);var d,e=RegExp([((b=aG({},b,aj.templateSettings)).escape||a6).source,(b.interpolate||a6).source,(b.evaluate||a6).source].join("|")+"|$","g"),f=0,g="__p+='";a.replace(e,function(b,c,d,e,h){return g+=a.slice(f,h).replace(a8,a9),f=h+b.length,c?g+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'":d?g+="'+\n((__t=("+d+"))==null?'':__t)+\n'":e&&(g+="';\n"+e+"\n__p+='"),b}),g+="';\n";var h=b.variable;if(h){if(!ba.test(h))throw Error("variable is not a bare identifier: "+h)}else g="with(obj||{}){\n"+g+"}\n",h="obj";g="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+g+"return __p;\n";try{d=Function(h,"_",g)}catch(a){throw a.source=g,a}var i=function(a){return d.call(this,a,aj)};return i.source="function("+h+"){\n"+g+"}",i}function bc(a,b,c){var d=(b=aM(b)).length;if(!d)return N(c)?c.call(a):c;for(var e=0;e<d;e++){var f=null==a?void 0:a[b[e]];void 0===f&&(f=c,e=d),a=N(f)?f.call(a):f}return a}var bd=0;function be(a){var b=++bd+"";return a?a+b:b}function bf(a){var b=aj(a);return b._chain=!0,b}function bg(a,b,c,d,e){if(!(d instanceof b))return a.apply(c,e);var f=aH(a.prototype),g=a.apply(f,e);return y(g)?g:f}var bh=x(function(a,b){var c=bh.placeholder,d=function(){for(var e=0,f=b.length,g=Array(f),h=0;h<f;h++)g[h]=b[h]===c?arguments[e++]:b[h];for(;e<arguments.length;)g.push(arguments[e++]);return bg(a,d,this,this,g)};return d});bh.placeholder=aj;let bi=bh,bj=x(function(a,b,c){if(!N(a))throw TypeError("Bind must be called on a function");var d=x(function(e){return bg(a,d,b,this,c.concat(e))});return d}),bk=$(ae);function bl(a,b,c){b||0===b||(b=1/0);for(var d=[],e=0,f=0,g=ae(a)||0,h=[];;){if(f>=g){if(!h.length)break;var i=h.pop();f=i.i,g=ae(a=i.v);continue}var j=a[f++];h.length>=b?d[e++]=j:bk(j)&&(T(j)||W(j))?(h.push({i:f,v:a}),f=0,g=ae(a=j)):c||(d[e++]=j)}return d}let bm=x(function(a,b){var c=(b=bl(b,!1,!1)).length;if(c<1)throw Error("bindAll must be passed function names");for(;c--;){var d=b[c];a[d]=bj(a[d],a)}return a});function bn(a,b){var c=function(d){var e=c.cache,f=""+(b?b.apply(this,arguments):d);return U(e,f)||(e[f]=a.apply(this,arguments)),e[f]};return c.cache={},c}let bo=x(function(a,b,c){return setTimeout(function(){return a.apply(null,c)},b)}),bp=bi(bo,aj,1);function bq(a,b,c){var d,e,f,g,h=0;c||(c={});var i=function(){h=!1===c.leading?0:a0(),d=null,g=a.apply(e,f),d||(e=f=null)},j=function(){var j=a0();h||!1!==c.leading||(h=j);var k=b-(j-h);return e=this,f=arguments,k<=0||k>b?(d&&(clearTimeout(d),d=null),h=j,g=a.apply(e,f),d||(e=f=null)):d||!1===c.trailing||(d=setTimeout(i,k)),g};return j.cancel=function(){clearTimeout(d),h=0,d=e=f=null},j}function br(a,b,c){var d,e,f,g,h,i=function(){var j=a0()-e;b>j?d=setTimeout(i,b-j):(d=null,c||(g=a.apply(h,f)),d||(f=h=null))},j=x(function(j){return h=this,f=j,e=a0(),!d&&(d=setTimeout(i,b),c&&(g=a.apply(h,f))),g});return j.cancel=function(){clearTimeout(d),d=f=h=null},j}function bs(a,b){return bi(b,a)}function bt(a){return function(){return!a.apply(this,arguments)}}function bu(){var a=arguments,b=a.length-1;return function(){for(var c=b,d=a[b].apply(this,arguments);c--;)d=a[c].call(this,d);return d}}function bv(a,b){return function(){if(--a<1)return b.apply(this,arguments)}}function bw(a,b){var c;return function(){return--a>0&&(c=b.apply(this,arguments)),a<=1&&(b=null),c}}let bx=bi(bw,2);function by(a,b,c){b=aW(b,c);for(var d,e=ag(a),f=0,g=e.length;f<g;f++)if(b(a[d=e[f]],d,a))return d}function bz(a){return function(b,c,d){c=aW(c,d);for(var e=ae(b),f=a>0?0:e-1;f>=0&&f<e;f+=a)if(c(b[f],f,b))return f;return -1}}let bA=bz(1),bB=bz(-1);function bC(a,b,c,d){for(var e=(c=aW(c,d,1))(b),f=0,g=ae(a);f<g;){var h=Math.floor((f+g)/2);c(a[h])<e?f=h+1:g=h}return f}function bD(a,b,c){return function(d,e,f){var g=0,h=ae(d);if("number"==typeof f)a>0?g=f>=0?f:Math.max(f+h,g):h=f>=0?Math.min(f+1,h):f+h+1;else if(c&&f&&h)return f=c(d,e),d[f]===e?f:-1;if(e!=e)return(f=b(k.call(d,g,h),Y))>=0?f+g:-1;for(f=a>0?g:h-1;f>=0&&f<h;f+=a)if(d[f]===e)return f;return -1}}let bE=bD(1,bA,bC),bF=bD(-1,bB);function bG(a,b,c){var d=(bk(a)?bA:by)(a,b,c);if(void 0!==d&&-1!==d)return a[d]}function bH(a,b){return bG(a,aR(b))}function bI(a,b,c){if(b=aT(b,c),bk(a))for(d=0,e=a.length;d<e;d++)b(a[d],d,a);else{var d,e,f=ag(a);for(d=0,e=f.length;d<e;d++)b(a[f[d]],f[d],a)}return a}function bJ(a,b,c){b=aW(b,c);for(var d=!bk(a)&&ag(a),e=(d||a).length,f=Array(e),g=0;g<e;g++){var h=d?d[g]:g;f[g]=b(a[h],h,a)}return f}function bK(a){var b=function(b,c,d,e){var f=!bk(b)&&ag(b),g=(f||b).length,h=a>0?0:g-1;for(e||(d=b[f?f[h]:h],h+=a);h>=0&&h<g;h+=a){var i=f?f[h]:h;d=c(d,b[i],i,b)}return d};return function(a,c,d,e){var f=arguments.length>=3;return b(a,aT(c,e,4),d,f)}}let bL=bK(1),bM=bK(-1);function bN(a,b,c){var d=[];return b=aW(b,c),bI(a,function(a,c,e){b(a,c,e)&&d.push(a)}),d}function bO(a,b,c){return bN(a,bt(aW(b)),c)}function bP(a,b,c){b=aW(b,c);for(var d=!bk(a)&&ag(a),e=(d||a).length,f=0;f<e;f++){var g=d?d[f]:f;if(!b(a[g],g,a))return!1}return!0}function bQ(a,b,c){b=aW(b,c);for(var d=!bk(a)&&ag(a),e=(d||a).length,f=0;f<e;f++){var g=d?d[f]:f;if(b(a[g],g,a))return!0}return!1}function bR(a,b,c,d){return bk(a)||(a=az(a)),("number"!=typeof c||d)&&(c=0),bE(a,b,c)>=0}let bS=x(function(a,b,c){var d,e;return N(b)?e=b:(d=(b=aM(b)).slice(0,-1),b=b[b.length-1]),bJ(a,function(a){var f=e;if(!f){if(d&&d.length&&(a=aN(a,d)),null==a)return;f=a[b]}return null==f?f:f.apply(a,c)})});function bT(a,b){return bJ(a,aS(b))}function bU(a,b){return bN(a,aR(b))}function bV(a,b,c){var d,e,f=-1/0,g=-1/0;if(null==b||"number"==typeof b&&"object"!=typeof a[0]&&null!=a){a=bk(a)?a:az(a);for(var h=0,i=a.length;h<i;h++)null!=(d=a[h])&&d>f&&(f=d)}else b=aW(b,c),bI(a,function(a,c,d){((e=b(a,c,d))>g||e===-1/0&&f===-1/0)&&(f=a,g=e)});return f}function bW(a,b,c){var d,e,f=1/0,g=1/0;if(null==b||"number"==typeof b&&"object"!=typeof a[0]&&null!=a){a=bk(a)?a:az(a);for(var h=0,i=a.length;h<i;h++)null!=(d=a[h])&&d<f&&(f=d)}else b=aW(b,c),bI(a,function(a,c,d){((e=b(a,c,d))<g||e===1/0&&f===1/0)&&(f=a,g=e)});return f}var bX=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function bY(a){return a?T(a)?k.call(a):E(a)?a.match(bX):bk(a)?bJ(a,aQ):az(a):[]}function bZ(a,b,c){if(null==b||c)return bk(a)||(a=az(a)),a[a_(a.length-1)];var d=bY(a),e=ae(d);b=Math.max(Math.min(b,e),0);for(var f=e-1,g=0;g<b;g++){var h=a_(g,f),i=d[g];d[g]=d[h],d[h]=i}return d.slice(0,b)}function b$(a){return bZ(a,1/0)}function b_(a,b,c){var d=0;return b=aW(b,c),bT(bJ(a,function(a,c,e){return{value:a,index:d++,criteria:b(a,c,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(c<d||void 0===d)return -1}return a.index-b.index}),"value")}function b0(a,b){return function(c,d,e){var f=b?[[],[]]:{};return d=aW(d,e),bI(c,function(b,e){var g=d(b,e,c);a(f,b,g)}),f}}let b1=b0(function(a,b,c){U(a,c)?a[c].push(b):a[c]=[b]}),b2=b0(function(a,b,c){a[c]=b}),b3=b0(function(a,b,c){U(a,c)?a[c]++:a[c]=1}),b4=b0(function(a,b,c){a[+!c].push(b)},!0);function b5(a){return null==a?0:bk(a)?a.length:ag(a).length}function b6(a,b,c){return b in c}let b7=x(function(a,b){var c={},d=b[0];if(null==a)return c;N(d)?(b.length>1&&(d=aT(d,b[1])),b=an(a)):(d=b6,b=bl(b,!1,!1),a=Object(a));for(var e=0,f=b.length;e<f;e++){var g=b[e],h=a[g];d(h,g,a)&&(c[g]=h)}return c}),b8=x(function(a,b){var c,d=b[0];return N(d)?(d=bt(d),b.length>1&&(c=b[1])):(b=bJ(bl(b,!1,!1),String),d=function(a,c){return!bR(b,c)}),b7(a,d,c)});function b9(a,b,c){return k.call(a,0,Math.max(0,a.length-(null==b||c?1:b)))}function ca(a,b,c){return null==a||a.length<1?null==b||c?void 0:[]:null==b||c?a[0]:b9(a,a.length-b)}function cb(a,b,c){return k.call(a,null==b||c?1:b)}function cc(a,b,c){return null==a||a.length<1?null==b||c?void 0:[]:null==b||c?a[a.length-1]:cb(a,Math.max(0,a.length-b))}function cd(a){return bN(a,Boolean)}function ce(a,b){return bl(a,b,!1)}let cf=x(function(a,b){return b=bl(b,!0,!0),bN(a,function(a){return!bR(b,a)})}),cg=x(function(a,b){return cf(a,b)});function ch(a,b,c,d){B(b)||(d=c,c=b,b=!1),null!=c&&(c=aW(c,d));for(var e=[],f=[],g=0,h=ae(a);g<h;g++){var i=a[g],j=c?c(i,g,a):i;b&&!c?(g&&f===j||e.push(i),f=j):c?bR(f,j)||(f.push(j),e.push(i)):bR(e,i)||e.push(i)}return e}let ci=x(function(a){return ch(bl(a,!0,!0))});function cj(a){for(var b=[],c=arguments.length,d=0,e=ae(a);d<e;d++){var f,g=a[d];if(!bR(b,g)){for(f=1;f<c&&bR(arguments[f],g);f++);f===c&&b.push(g)}}return b}function ck(a){for(var b=a&&bV(a,ae).length||0,c=Array(b),d=0;d<b;d++)c[d]=bT(a,d);return c}let cl=x(ck);function cm(a,b){for(var c={},d=0,e=ae(a);d<e;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c}function cn(a,b,c){null==b&&(b=a||0,a=0),c||(c=b<a?-1:1);for(var d=Math.max(Math.ceil((b-a)/c),0),e=Array(d),f=0;f<d;f++,a+=c)e[f]=a;return e}function co(a,b){if(null==b||b<1)return[];for(var c=[],d=0,e=a.length;d<e;)c.push(k.call(a,d,d+=b));return c}function cp(a,b){return a._chain?aj(b).chain():b}function cq(a){return bI(aC(a),function(b){var c=aj[b]=a[b];aj.prototype[b]=function(){var a=[this._wrapped];return j.apply(a,arguments),cp(this,c.apply(aj,a))}}),aj}bI(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=g[a];aj.prototype[a]=function(){var c=this._wrapped;return null!=c&&(b.apply(c,arguments),("shift"===a||"splice"===a)&&0===c.length&&delete c[0]),cp(this,c)}}),bI(["concat","join","slice"],function(a){var b=g[a];aj.prototype[a]=function(){var a=this._wrapped;return null!=a&&(a=b.apply(a,arguments)),cp(this,a)}});let cr=aj;var cs=cq(d);cs._=cs;let ct=cs},85045:(a,b,c)=>{b.M=function(a){return{readXmlElement:function(b){return new l(a).readXmlElement(b)},readXmlElements:function(b){return new l(a).readXmlElements(b)}}};var d=c(79935),e=c(84906),f=c(77880),g=c(6560).Result,h=c(6560).warning,i=c(35976),j=c(50105),k=c(71422);function l(a){var b=[],c=[],g=[],l=a.relationships,u=a.contentTypes,v=a.docxFile,w=a.files,x=a.numbering,y=a.styles;function z(a){return t(a.map(A))}function A(a){if("element"===a.type){var b=G[a.name];if(b)return b(a);if(!Object.prototype.hasOwnProperty.call(n,a.name))return o([h("An unrecognised element was ignored: "+a.name)])}return p()}function B(a){if(!a)return!1;var b=a.attributes["w:val"];return"false"!==b&&"0"!==b}function C(a,b,c,d){var e=[],f=a.first(b),g=null,i=null;if(f&&(g=f.attributes["w:val"])){var j=d(g);j?i=j.name:e.push(h(c+" style with ID "+g+" was referenced but not defined in the document"))}return r({styleId:g,name:i},e)}function D(a){return function(a,b){var c=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(a);if(c){var d=void 0===c[2]?c[3]:c[2];return{type:"hyperlink",options:void 0===c[1]?{href:d}:{anchor:d}}}if(/\s*FORMCHECKBOX\s*/.exec(a)){var e=b.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),f=e.first("w:checked");return{type:"checkbox",checked:null==f?B(e.first("w:default")):B(f)}}return{type:"unknown"}}(c.join(""),"begin"===a.type?a.fldChar:i.emptyElement)}function E(a){return function(b){var c=b.attributes["w:id"];return q(new f.NoteReference({noteType:a,noteId:c}))}}function F(a){return z(a.children)}var G={"w:p":function(a){var b=a.firstOrEmpty("w:pPr");if(b.firstOrEmpty("w:rPr").first("w:del"))return a.children.forEach(function(a){g.push(a)}),p();var c=a.children;return g.length>0&&(c=g.concat(c),g=[]),s.map(C(b,"w:pStyle","Paragraph",y.findParagraphStyleById).map(function(a){var c;return{type:"paragraphProperties",styleId:a.styleId,styleName:a.name,alignment:b.firstOrEmpty("w:jc").attributes["w:val"],numbering:function(a,b,c){var d=b.firstOrEmpty("w:ilvl").attributes["w:val"],e=b.firstOrEmpty("w:numId").attributes["w:val"];if(void 0!==d&&void 0!==e)return c.findLevel(e,d);if(null!=a){var f=c.findLevelByParagraphStyleId(a);if(null!=f)return f}return void 0!==e?c.findLevel(e,"0"):null}(a.styleId,b.firstOrEmpty("w:numPr"),x),indent:{start:(c=b.firstOrEmpty("w:ind")).attributes["w:start"]||c.attributes["w:left"],end:c.attributes["w:end"]||c.attributes["w:right"],firstLine:c.attributes["w:firstLine"],hanging:c.attributes["w:hanging"]}}}),z(c),function(a,b){return new f.Paragraph(b,a)}).insertExtra()},"w:r":function(a){var c;return s.map(C(c=a.firstOrEmpty("w:rPr"),"w:rStyle","Run",y.findCharacterStyleById).map(function(a){var b,d=c.firstOrEmpty("w:sz").attributes["w:val"],e=/^[0-9]+$/.test(d)?parseInt(d,10)/2:null;return{type:"runProperties",styleId:a.styleId,styleName:a.name,verticalAlignment:c.firstOrEmpty("w:vertAlign").attributes["w:val"],font:c.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:e,isBold:B(c.first("w:b")),isUnderline:function(a){if(!a)return!1;var b=a.attributes["w:val"];return void 0!==b&&"false"!==b&&"0"!==b&&"none"!==b}(c.first("w:u")),isItalic:B(c.first("w:i")),isStrikethrough:B(c.first("w:strike")),isAllCaps:B(c.first("w:caps")),isSmallCaps:B(c.first("w:smallCaps")),highlight:(b=c.firstOrEmpty("w:highlight").attributes["w:val"])&&"none"!==b?b:null}}),z(a.children),function(a,c){var d,g=(d=e.last(b.filter(function(a){return"hyperlink"===a.type})))?d.options:null;return null!==g&&(c=[new f.Hyperlink(c,g)]),new f.Run(c,a)})},"w:fldChar":function(a){var d=a.attributes["w:fldCharType"];if("begin"===d)b.push({type:"begin",fldChar:a}),c=[];else if("end"===d){var e=b.pop();if("begin"===e.type&&(e=D(e)),"checkbox"===e.type)return q(f.checkbox({checked:e.checked}))}else if("separate"===d){var g=D(b.pop());b.push(g)}return p()},"w:instrText":function(a){return c.push(a.text()),p()},"w:t":function(a){return q(new f.Text(a.text()))},"w:tab":function(a){return q(new f.Tab)},"w:noBreakHyphen":function(){return q(new f.Text("‑"))},"w:softHyphen":function(a){return q(new f.Text("\xad"))},"w:sym":function(a){var b=a.attributes["w:font"],c=a.attributes["w:char"],e=d.hex(b,c);return(null==e&&/^F0..$/.test(c)&&(e=d.hex(b,c.substring(2))),null==e)?o([h("A w:sym element with an unsupported character was ignored: char "+c+" in font "+b)]):q(new f.Text(e.string))},"w:hyperlink":function(a){var b=a.attributes["r:id"],c=a.attributes["w:anchor"];return z(a.children).map(function(d){function g(b){var c=a.attributes["w:tgtFrame"]||null;return new f.Hyperlink(d,e.extend({targetFrame:c},b))}if(b){var h=l.findTargetByRelationshipId(b);return c&&(h=k.replaceFragment(h,c)),g({href:h})}return c?g({anchor:c}):d})},"w:tbl":function(a){var b=C(a.firstOrEmpty("w:tblPr"),"w:tblStyle","Table",y.findTableStyleById).map(function(a){return{styleId:a.styleId,styleName:a.name}});return z(a.children).flatMap(H).flatMap(function(a){return b.map(function(b){return f.Table(a,b)})})},"w:tr":function(a){var b=a.firstOrEmpty("w:trPr");if(b.first("w:del"))return p();var c=!!b.first("w:tblHeader");return z(a.children).map(function(a){return f.TableRow(a,{isHeader:c})})},"w:tc":function(a){return z(a.children).map(function(b){var c=a.firstOrEmpty("w:tcPr"),d=c.firstOrEmpty("w:gridSpan").attributes["w:val"],e=d?parseInt(d,10):1,g=f.TableCell(b,{colSpan:e});return g._vMerge=function(a){var b=a.first("w:vMerge");if(!b)return null;var c=b.attributes["w:val"];return"continue"===c||!c}(c),g})},"w:footnoteReference":E("footnote"),"w:endnoteReference":E("endnote"),"w:commentReference":function(a){return q(f.commentReference({commentId:a.attributes["w:id"]}))},"w:br":function(a){var b=a.attributes["w:type"];return null==b||"textWrapping"===b?q(f.lineBreak):"page"===b?q(f.pageBreak):"column"===b?q(f.columnBreak):o([h("Unsupported break type: "+b)])},"w:bookmarkStart":function(a){var b=a.attributes["w:name"];return"_GoBack"===b?p():q(new f.BookmarkStart({name:b}))},"mc:AlternateContent":function(a){return F(a.firstOrEmpty("mc:Fallback"))},"w:sdt":function(a){return z(a.firstOrEmpty("w:sdtContent").children).map(function(b){var c=a.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(!c)return b;var d,e=c.first("wordml:checked"),g=!!e&&"false"!==(d=e.attributes["wordml:val"])&&"0"!==d,h=f.checkbox({checked:g}),i=!1,k=b.map(j._elementsOfType(f.types.text,function(a){return a.value.length>0&&!i?(i=!0,h):a}));return i?k:h})},"w:ins":F,"w:object":F,"w:smartTag":F,"w:drawing":F,"w:pict":function(a){return F(a).toExtra()},"v:roundrect":F,"v:shape":F,"v:textbox":F,"w:txbxContent":F,"wp:inline":J,"wp:anchor":J,"v:imagedata":function(a){var b=a.attributes["r:id"];return b?M(L(b),a.attributes["o:title"]):o([h("A v:imagedata element without a relationship ID was ignored")])},"v:group":F,"v:rect":F};return{readXmlElement:A,readXmlElements:z};function H(a){if(e.any(a,function(a){return a.type!==f.types.tableRow}))return I(a),r(a,[h("unexpected non-row element in table, cell merging may be incorrect")]);if(e.any(a,function(a){return e.any(a.children,function(a){return a.type!==f.types.tableCell})}))return I(a),r(a,[h("unexpected non-cell element in table row, cell merging may be incorrect")]);var b={};return a.forEach(function(a){var c=0;a.children.forEach(function(a){a._vMerge&&b[c]?b[c].rowSpan++:(b[c]=a,a._vMerge=!1),c+=a.colSpan})}),a.forEach(function(a){a.children=a.children.filter(function(a){return!a._vMerge}),a.children.forEach(function(a){delete a._vMerge})}),q(a)}function I(a){a.forEach(function(a){j.getDescendantsOfType(a,f.types.tableCell).forEach(function(a){delete a._vMerge})})}function J(a){return t(a.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip").map(K.bind(null,a)))}function K(a,b){var c,d=a.firstOrEmpty("wp:docPr"),e=d.attributes,g=null==(c=e.descr)||/^\s*$/.test(c)?e.title:e.descr,i=function(a){var b=a.attributes["r:embed"],c=a.attributes["r:link"];if(b)return L(b);if(!c)return null;var d=l.findTargetByRelationshipId(c);return{path:d,read:w.read.bind(w,d)}}(b);return null===i?o([h("Could not find image file for a:blip element")]):M(i,g).map(function(a){var b=d.firstOrEmpty("a:hlinkClick").attributes["r:id"];if(!b)return a;var c=l.findTargetByRelationshipId(b);return new f.Hyperlink([a],{href:c})})}function L(a){var b=k.uriToZipEntryName("word",l.findTargetByRelationshipId(a));return{path:b,read:v.read.bind(v,b)}}function M(a,b){var c=u.findContentType(a.path);return r(f.Image({readImage:a.read,altText:b,contentType:c}),m[c]?[]:h("Image of type "+c+" is unlikely to display in web browsers"))}}var m={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},n={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function o(a){return new s(null,null,a)}function p(){return new s(null)}function q(a){return new s(a)}function r(a,b){return new s(a,null,b)}function s(a,b,c){this.value=a||[],this.extra=b||[],this._result=new g({element:this.value,extra:b},c),this.messages=this._result.messages}function t(a){var b=g.combine(e.pluck(a,"_result"));return new s(e.flatten(e.pluck(b.value,"element")),e.filter(e.flatten(e.pluck(b.value,"extra")),v),b.messages)}function u(a,b){return e.flatten([a,b])}function v(a){return a}s.prototype.toExtra=function(){return new s(null,u(this.extra,this.value),this.messages)},s.prototype.insertExtra=function(){var a=this.extra;return a&&a.length?new s(u(this.value,a),null,this.messages):this},s.prototype.map=function(a){var b=this._result.map(function(b){return a(b.element)});return new s(b.value,this.extra,b.messages)},s.prototype.flatMap=function(a){var b=this._result.flatMap(function(b){return a(b.element)._result});return new s(b.value.element,u(this.extra,b.value.extra),b.messages)},s.map=function(a,b,c){return new s(c(a.value,b.value),u(a.extra,b.extra),a.messages.concat(b.messages))}},85906:(a,b,c)=>{"use strict";function d(a,b){let c=setTimeout(a,b);return()=>clearTimeout(c)}function e({emit:a,isBackpressured:b,schedule:c=d,windowMs:f=33}){let g=null,h=null,i=()=>{h?.(),h=null},j=c=>{if(null===g)return!0;if(!c&&b())return!1;let d=g;return g=null,a(d)},k=()=>{h=null,j(!1)};return{push(b){let d=function(a){if(null!==a&&"object"==typeof a&&"type"in a)return a.type}(b);if("message_update"===d){g=b,h||(h=c(k,f));return}if("message_end"===d){g=null,i(),a(b);return}i(),j(!0)&&a(b)},pull:()=>!(null===g||b())&&(i(),j(!1)),reset(){g=null,i()}}}c.d(b,{h:()=>e})},86159:a=>{"use strict";a.exports=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;c=a.state,d=a.next_in,z=a.input,e=d+(a.avail_in-5),f=a.next_out,A=a.output,g=f-(b-a.avail_out),h=f+(a.avail_out-257),i=c.dmax,j=c.wsize,k=c.whave,l=c.wnext,m=c.window,n=c.hold,o=c.bits,p=c.lencode,q=c.distcode,r=(1<<c.lenbits)-1,s=(1<<c.distbits)-1;e:do for(o<15&&(n+=z[d++]<<o,o+=8,n+=z[d++]<<o,o+=8),t=p[n&r];;){if(n>>>=u=t>>>24,o-=u,0==(u=t>>>16&255))A[f++]=65535&t;else if(16&u)for(v=65535&t,(u&=15)&&(o<u&&(n+=z[d++]<<o,o+=8),v+=n&(1<<u)-1,n>>>=u,o-=u),o<15&&(n+=z[d++]<<o,o+=8,n+=z[d++]<<o,o+=8),t=q[n&s];;){if(n>>>=u=t>>>24,o-=u,16&(u=t>>>16&255)){if(w=65535&t,o<(u&=15)&&(n+=z[d++]<<o,(o+=8)<u&&(n+=z[d++]<<o,o+=8)),(w+=n&(1<<u)-1)>i){a.msg="invalid distance too far back",c.mode=30;break e}if(n>>>=u,o-=u,w>(u=f-g)){if((u=w-u)>k&&c.sane){a.msg="invalid distance too far back",c.mode=30;break e}if(x=0,y=m,0===l){if(x+=j-u,u<v){v-=u;do A[f++]=m[x++];while(--u);x=f-w,y=A}}else if(l<u){if(x+=j+l-u,(u-=l)<v){v-=u;do A[f++]=m[x++];while(--u);if(x=0,l<v){v-=u=l;do A[f++]=m[x++];while(--u);x=f-w,y=A}}}else if(x+=l-u,u<v){v-=u;do A[f++]=m[x++];while(--u);x=f-w,y=A}for(;v>2;)A[f++]=y[x++],A[f++]=y[x++],A[f++]=y[x++],v-=3;v&&(A[f++]=y[x++],v>1&&(A[f++]=y[x++]))}else{x=f-w;do A[f++]=A[x++],A[f++]=A[x++],A[f++]=A[x++],v-=3;while(v>2);v&&(A[f++]=A[x++],v>1&&(A[f++]=A[x++]))}}else if((64&u)==0){t=q[(65535&t)+(n&(1<<u)-1)];continue}else{a.msg="invalid distance code",c.mode=30;break e}break}else if((64&u)==0){t=p[(65535&t)+(n&(1<<u)-1)];continue}else if(32&u){c.mode=12;break e}else{a.msg="invalid literal/length code",c.mode=30;break e}break}while(d<e&&f<h);d-=v=o>>3,o-=v<<3,n&=(1<<o)-1,a.next_in=d,a.next_out=f,a.avail_in=d<e?5+(e-d):5-(d-e),a.avail_out=f<h?257+(h-f):257-(f-h),c.hold=n,c.bits=o}},86229:(a,b,c)=>{"use strict";var d,e,f,g,h,i,j=c(22418),k=j.getNativePromise();if(j.isNode&&"u"<typeof MutationObserver){var l=global.setImmediate,m=process.nextTick;i=j.isRecentNode?function(a){l.call(global,a)}:function(a){m.call(process,a)}}else if("function"==typeof k&&"function"==typeof k.resolve){var n=k.resolve();i=function(a){n.then(a)}}else"u">typeof MutationObserver&&!("u">typeof window&&window.navigator&&(window.navigator.standalone||window.cordova))?(d=document.createElement("div"),e={attributes:!0},f=!1,g=document.createElement("div"),new MutationObserver(function(){d.classList.toggle("foo"),f=!1}).observe(g,e),h=function(){f||(f=!0,g.classList.toggle("foo"))},i=function(a){var b=new MutationObserver(function(){b.disconnect(),a()});b.observe(d,e),h()}):i="u">typeof setImmediate?function(a){setImmediate(a)}:"u">typeof setTimeout?function(a){setTimeout(a,0)}:function(){throw Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};a.exports=i},86677:(a,b,c)=>{"use strict";var d=c(37521),e=c(30598),f=c(62325),g=c(12093),h=c(50099),i=c(6273);let j="All mapping items must start at the same column";b.resolveBlockMap=function({composeNode:a,composeEmptyNode:b},c,k,l,m){let n=new(m?.nodeClass??e.YAMLMap)(c.schema);c.atRoot&&(c.atRoot=!1);let o=k.offset,p=null;for(let e of k.items){let{start:m,key:q,sep:r,value:s}=e,t=f.resolveProps(m,{indicator:"explicit-key-ind",next:q??r?.[0],offset:o,onError:l,parentIndent:k.indent,startOnNewline:!0}),u=!t.found;if(u){if(q&&("block-seq"===q.type?l(o,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in q&&q.indent!==k.indent&&l(o,"BAD_INDENT",j)),!t.anchor&&!t.tag&&!r){p=t.end,t.comment&&(n.comment?n.comment+="\n"+t.comment:n.comment=t.comment);continue}(t.newlineAfterProp||g.containsNewline(q))&&l(q??m[m.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else t.found?.indent!==k.indent&&l(o,"BAD_INDENT",j);c.atKey=!0;let v=t.end,w=q?a(c,q,t,l):b(c,v,m,null,t,l);c.schema.compat&&h.flowIndentCheck(k.indent,q,l),c.atKey=!1,i.mapIncludes(c,n.items,w)&&l(v,"DUPLICATE_KEY","Map keys must be unique");let x=f.resolveProps(r??[],{indicator:"map-value-ind",next:s,offset:w.range[2],onError:l,parentIndent:k.indent,startOnNewline:!q||"block-scalar"===q.type});if(o=x.end,x.found){u&&(s?.type!=="block-map"||x.hasNewline||l(o,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),c.options.strict&&t.start<x.found.offset-1024&&l(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let f=s?a(c,s,x,l):b(c,o,r,null,x,l);c.schema.compat&&h.flowIndentCheck(k.indent,s,l),o=f.range[2];let g=new d.Pair(w,f);c.options.keepSourceTokens&&(g.srcToken=e),n.items.push(g)}else{u&&l(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),x.comment&&(w.comment?w.comment+="\n"+x.comment:w.comment=x.comment);let a=new d.Pair(w);c.options.keepSourceTokens&&(a.srcToken=e),n.items.push(a)}}return p&&p<o&&l(p,"IMPOSSIBLE","Map comment with trailing content"),n.range=[k.offset,o,p??o],n}},86936:(a,b,c)=>{var d=c(49472);b.DOMImplementation=d.DOMImplementation,b.XMLSerializer=d.XMLSerializer,b.DOMParser=c(33840).DOMParser},87021:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e){var f=c(22418);function g(c,h){var i=d(c);if(i instanceof a)return i.then(function(a){return g(a,i)});if(null===(c=f.asArray(c)))return e("expecting an array or an iterable object but got "+f.classString(c));var j=new a(b);void 0!==h&&j._propagateFrom(h,3);for(var k=j._fulfill,l=j._reject,m=0,n=c.length;m<n;++m){var o=c[m];(void 0!==o||m in c)&&a.cast(o)._then(k,l,void 0,j,null)}return j}a.race=function(a){return g(a,void 0)},a.prototype.race=function(){return g(this,void 0)}}},87236:(a,b,c)=>{"use strict";a.exports=function(a,b,d){var e=c(22418),f=a.TimeoutError;function g(a){this.handle=a}g.prototype._resultCancelled=function(){clearTimeout(this.handle)};var h=function(a){return i(+this).thenReturn(a)},i=a.delay=function(c,e){var f,i;return void 0!==e?(f=a.resolve(e)._then(h,null,null,c,void 0),d.cancellation()&&e instanceof a&&f._setOnCancel(e)):(f=new a(b),i=setTimeout(function(){f._fulfill()},+c),d.cancellation()&&f._setOnCancel(new g(i)),f._captureStackTrace()),f._setAsyncGuaranteed(),f};a.prototype.delay=function(a){return i(a,this)};var j=function(a,b,c){var d;d="string"!=typeof b?b instanceof Error?b:new f("operation timed out"):new f(b),e.markAsOriginatingFromRejection(d),a._attachExtraTrace(d),a._reject(d),null!=c&&c.cancel()};function k(a){return clearTimeout(this.handle),a}function l(a){throw clearTimeout(this.handle),a}a.prototype.timeout=function(a,b){var c,e,f=new g(setTimeout(function(){c.isPending()&&j(c,b,e)},a*=1));return d.cancellation()?(c=(e=this.then())._then(k,l,void 0,f,void 0))._setOnCancel(f):c=this._then(k,l,void 0,f,void 0),c}}},87390:(a,b,c)=>{"use strict";c.d(b,{B7:()=>h,mc:()=>g,wz:()=>d.wz});var d=c(54639),e=c(83739),f=c(82043);async function g(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,f.dQ)(),e=new Set;for(let a of c)a.cwd&&e.add((0,d.Nw)(a.cwd)),a.projectRoot&&e.add((0,d.Nw)(a.projectRoot));for(let a of(0,d.HM)())e.add(a);return globalThis.__piAllowedRootsCache={roots:e,expiresAt:a+5e3},e}function h(a,b){return(0,e.xk)(a,b)}c(15011)},87544:(a,b,c)=>{var d=c(40787),e=c(10128);b.RegexTokeniser=function(a){return a=a.map(function(a){return{name:a.name,regex:RegExp(a.regex.source,"g")}}),{tokenise:function(b,c){for(var f,g=new e(b,c),h=0,i=[];h<b.length;){var j=function(b,c,e){for(var f=0;f<a.length;f++){var g=a[f].regex;g.lastIndex=c;var h=g.exec(b);if(h){var i=c+h[0].length;if(h.index===c&&i>c){var j=h[1],k=new d(a[f].name,j,e.range(c,i));return{token:k,endIndex:i}}}}var i=c+1,k=new d("unrecognisedCharacter",b.substring(c,i),e.range(c,i));return{token:k,endIndex:i}}(b,h,g);h=j.endIndex,i.push(j.token)}return i.push((f=b,new d("end",null,g.range(f.length,f.length)))),i}}}},87628:(a,b,c)=>{"use strict";c.d(b,{OD:()=>w,iG:()=>v,nC:()=>o});var d=c(77598),e=c(73024),f=c(51455),g=c(76760),h=c.n(g),i=c(80481),j=c(58500),k=c(92226),l=c(44500),m=c(7561),n=c(36862);class o extends Error{constructor(a,b){super(a),this.status=b,this.name="SessionSearchError"}}let p=new Map;function q(a){let b,[c,d]=process.versions.node.split(".").map(Number);if(c<22||22===c&&d<19)throw new o("Session search requires Node.js 22.19 or newer with node:sqlite enabled.",503);try{let c=process.getBuiltinModule("node:sqlite");if(!c||"function"!=typeof c.DatabaseSync)throw Error("node:sqlite is not available in this Node runtime");b=new c.DatabaseSync(a)}catch(a){throw new o(`Cannot open session search cache; use Node.js 22.19+ with node:sqlite and check cache permissions: ${a instanceof Error?a.message:String(a)}`,503)}try{return b.exec("PRAGMA journal_mode=DELETE; PRAGMA busy_timeout=5000; CREATE TABLE IF NOT EXISTS sessions (id TEXT PRIMARY KEY, path TEXT NOT NULL, stamp TEXT NOT NULL, name TEXT NOT NULL, cwd TEXT NOT NULL, project TEXT NOT NULL); CREATE TABLE IF NOT EXISTS entries (session TEXT NOT NULL, id TEXT NOT NULL, parent TEXT, timestamp TEXT NOT NULL, time REAL, role TEXT, content TEXT NOT NULL, PRIMARY KEY(session,id)); CREATE INDEX IF NOT EXISTS entries_order ON entries(time DESC,session,id);"),b.exec("PRAGMA secure_delete=ON"),b.prepare("PRAGMA user_version").get()?.user_version!==1&&b.exec("BEGIN IMMEDIATE; DELETE FROM entries; DELETE FROM sessions; PRAGMA user_version=1; COMMIT"),b}catch(a){throw b.close(),new o(`Cannot initialize derived search cache; remove the .ompgui-search cache directory and retry: ${a instanceof Error?a.message:String(a)}`,503)}}function r(a,b){if(void 0===a)return;if("string"!=typeof a||!/^(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[+-]\d{2}:\d{2}))$/.test(a))throw new o(`${b} must be a UTC YYYY-MM-DD or ISO timestamp with explicit timezone.`,400);if(a.length>10&&(Number(a.slice(11,13))>23||Number(a.slice(14,16))>59||Number(a.slice(17,19))>59))throw new o(`${b} is not a valid timestamp.`,400);let c=a.slice(0,10),d=Date.parse(`${c}T00:00:00Z`),e=Date.parse(a);if(!Number.isFinite(e)||!Number.isFinite(d)||new Date(d).toISOString().slice(0,10)!==c)throw new o(`${b} is not a valid date.`,400);return e}async function s(a,b,c){let d,f=a.prepare("INSERT OR REPLACE INTO entries VALUES (?,?,?,?,?,?,?)"),g=(0,e.createReadStream)(b,{encoding:"utf8",highWaterMark:65536}),h=(0,i.createInterface)({input:g,crlfDelay:1/0}),k=!0,m=!1,n="",p="",q=!1,r=null,s=0,t=0;g.on("data",a=>{for(let b of a.split(/(?<=\n)/)){if((t+=Buffer.byteLength(b))>0x4000000)return void g.destroy(new o("A session JSONL line exceeds the 64 MiB search limit. Split or compact the session before searching.",503));b.endsWith("\n")&&(t=0)}});try{for await(let a of h){let b;if(k){k=!1;let b=(0,l.U1)(a);if(b){d=b.title;continue}}try{b=JSON.parse(a)}catch{continue}if(null===b||"object"!=typeof b||Array.isArray(b))continue;if(!m){if(!("type"in b)||"session"!==b.type||!("id"in b)||b.id!==c)throw new o("Session changed while indexing; retry search.",503);q=!("version"in b)||"number"!=typeof b.version||b.version<2,n=d??("title"in b&&"string"==typeof b.title?b.title:""),m=!0;continue}if("type"in b&&"session"===b.type)continue;s++;let e=q?`legacy-${s}`:"id"in b&&"string"==typeof b.id?b.id:void 0;if(!e)continue;let g=q?r:"parentId"in b&&"string"==typeof b.parentId?b.parentId:null;r=e;let h="timestamp"in b&&"string"==typeof b.timestamp?b.timestamp:"",i=null,t="";if("type"in b&&"message"===b.type&&"message"in b&&null!==b.message&&"object"==typeof b.message){let a=b.message;if(!("hidden"in b&&!0===b.hidden)&&!("hidden"in a&&!0===a.hidden)&&"role"in a&&("user"===a.role||"assistant"===a.role||"toolResult"===a.role)){var u;i=a.role,t="content"in a?(u=a.content,"string"==typeof u?u:Array.isArray(u)?u.flatMap(a=>null!==a&&"object"==typeof a&&!("hidden"in a&&!0===a.hidden)&&"type"in a&&"text"===a.type&&"text"in a&&"string"==typeof a.text?[a.text]:[]).join("\n"):""):""}}!p&&null!==i&&t.trim()&&(p=Array.from(t.slice(0,320)).slice(0,160).join(""));let v=Date.parse(h);f.run(c,e,g,h,Number.isFinite(v)?v:null,i,t),s%128==0&&await (0,j.setImmediate)()}if(!m)throw new o("Session header disappeared while indexing; retry search.",503);return n||p}finally{h.close(),g.destroy()}}async function t(a,b){(0,l.I3)();let c=await (0,l.L1)();if((0,m.$)(await (0,f.realpath)((0,k.tE)()).catch(()=>h().resolve((0,k.tE)())))!==b)throw new o("Active session profile changed; retry search.",503);let d=await (0,f.open)(a,"a",384);await d.close(),await (0,f.chmod)(a,384);let e=q(a);try{let a=new Set;for(let d of c){let c=await (0,f.realpath)(d.path).catch(()=>null);if(!c)continue;let g=h().relative(b,c);if(g.startsWith(`..${h().sep}`)||".."===g||h().isAbsolute(g))continue;if(a.has(d.id))throw new o("Duplicate native session IDs prevent unambiguous search; remove the duplicate session file.",503);a.add(d.id);let i=await (0,f.stat)(c),k=`${i.dev}:${i.ino}:${i.size}:${i.mtimeMs}:${i.ctimeMs}`,l=e.prepare("SELECT stamp,path FROM sessions WHERE id=?").get(d.id);if(l?.stamp===k&&l.path===c)continue;let p=(0,m.$)((await (0,n.KI)(d.cwd)).projectRoot);e.exec("BEGIN IMMEDIATE");try{e.prepare("DELETE FROM entries WHERE session=?").run(d.id);let a=await s(e,c,d.id),b=await (0,f.stat)(c);if(`${b.dev}:${b.ino}:${b.size}:${b.mtimeMs}:${b.ctimeMs}`!==k)throw new o("Session changed while indexing; retry search.",503);e.prepare("INSERT OR REPLACE INTO sessions VALUES (?,?,?,?,?,?)").run(d.id,c,k,a,d.cwd,p),e.exec("COMMIT")}catch(a){throw e.exec("ROLLBACK"),a}await (0,j.setImmediate)()}e.exec("BEGIN IMMEDIATE");try{for(let b of e.prepare("SELECT id FROM sessions").all())"string"!=typeof b.id||a.has(b.id)||(e.prepare("DELETE FROM entries WHERE session=?").run(b.id),e.prepare("DELETE FROM sessions WHERE id=?").run(b.id));e.exec("COMMIT")}catch(a){throw e.exec("ROLLBACK"),a}}finally{e.close()}}async function u(){let a=(0,m.$)(await (0,f.realpath)((0,k.tE)()).catch(()=>h().resolve((0,k.tE)()))),b=(0,d.createHash)("sha256").update(`${(0,k.oy)()??""}\0${a}`).digest("hex"),c=await (0,f.realpath)((0,k.$M)()).catch(()=>h().resolve((0,k.$M)())),e=h().join(c,".ompgui-search");await (0,f.mkdir)(e,{recursive:!0,mode:448}),await (0,f.chmod)(e,448);let g=h().join(e,`${b}.sqlite`),i=p.get(g);i||(i=t(g,a).finally(()=>{p.delete(g)}),p.set(g,i));try{return await i,q(g)}catch(a){if(a instanceof o)throw a;throw new o(`Session search index refresh failed; check native session files and cache permissions: ${a instanceof Error?a.message:String(a)}`,503)}}async function v(a){let b;if("string"!=typeof a.query||!a.query.trim()||a.query.length>500)throw new o("query must contain 1–500 characters and cannot be whitespace-only.",400);let c=a.limit??25;if(!Number.isInteger(c)||c<1||c>50)throw new o("limit must be an integer from 1 to 50.",400);if(void 0!==a.projectRoot&&("string"!=typeof a.projectRoot||!a.projectRoot.trim()||a.projectRoot.length>4096))throw new o("projectRoot must be a nonempty path of at most 4096 characters.",400);let e=r(a.from,"from"),g=r(a.to,"to");if(void 0!==e&&void 0!==g&&e>=g)throw new o("from must precede to (to is exclusive).",400);let i=void 0===a.projectRoot?null:(0,m.$)(await (0,f.realpath)(a.projectRoot).catch(()=>h().resolve(a.projectRoot))),k=(0,d.createHash)("sha256").update(JSON.stringify([a.query,i,e,g,c])).digest("hex"),l=0;if(void 0!==a.cursor)try{if("string"!=typeof a.cursor||a.cursor.length>1024||!/^[A-Za-z0-9_-]+$/.test(a.cursor))throw Error();let d=JSON.parse(Buffer.from(a.cursor,"base64url").toString("utf8"));if(null===d||"object"!=typeof d||!("signature"in d)||d.signature!==k||!("offset"in d)||"number"!=typeof d.offset||!Number.isSafeInteger(d.offset)||d.offset<1||d.offset%c!=0||!("generation"in d)||"string"!=typeof d.generation)throw Error();l=d.offset,b=d.generation}catch{throw new o("Invalid cursor or cursor belongs to different search filters.",400)}let n=await u();try{let f=(0,d.createHash)("sha256").update(JSON.stringify(n.prepare("SELECT id,path,stamp FROM sessions ORDER BY id").all())).digest("hex");if(void 0!==b&&b!==f)throw new o("Search results changed; restart without a cursor.",400);let h=RegExp(a.query.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"iu"),m=a.query.toLowerCase(),p=n.prepare("SELECT s.id AS sessionId,s.name AS sessionName,s.cwd,e.id AS entryId,e.timestamp,e.time,e.role,e.content FROM entries e JOIN sessions s ON s.id=e.session WHERE e.role IS NOT NULL AND (? IS NULL OR s.project=?) AND (? IS NULL OR e.time>=?) AND (? IS NULL OR e.time<?) AND (?=0 OR e.time<? OR (e.time IS ? AND (e.session>? OR (e.session=? AND e.id>?))) OR (e.time IS NULL AND ? IS NOT NULL)) ORDER BY e.time DESC,e.session,e.id LIMIT 128"),q=[],r=0,s=null,t="",u="",v=0,w=!1,x=!1;for(;!x&&!w;){let a=0,b=0;for(let d of p.iterate(i,i,e??null,e??null,g??null,g??null,r,s,s,t,t,u,s)){r=1,s="number"==typeof d.time?d.time:null,t=String(d.sessionId),u=String(d.entryId),a++;let e=String(d.content);b+=e.length;let f=h.exec(e),g=f?-1:e.toLowerCase().indexOf(m);if(!f&&g<0||v++<l){if(b>=1048576)break;continue}if(q.length===c){w=!0;break}let i=0,j=f?.index??0;for(let a of e){if(i>=g)break;i+=a.toLowerCase().length,j+=a.length}let k=Math.max(0,j-80);k&&/[\uDC00-\uDFFF]/.test(e[k])&&k--;let n=Math.min(e.length,k+640);n<e.length&&/[\uDC00-\uDFFF]/.test(e[n])&&n--;let o=`${k?"…":""}${e.slice(k,n)}${n<e.length?"…":""}`;if(q.push({sessionId:String(d.sessionId),sessionName:String(d.sessionName),cwd:String(d.cwd),entryId:String(d.entryId),timestamp:String(d.timestamp),role:d.role,snippet:o}),b>=1048576)break}if((x=0===a)||w||await (0,j.setImmediate)(),(0,d.createHash)("sha256").update(JSON.stringify(n.prepare("SELECT id,path,stamp FROM sessions ORDER BY id").all())).digest("hex")!==f)throw new o("Search results changed; restart without a cursor.",400)}if(l&&0===q.length)throw new o("Cursor points beyond the search results; restart without a cursor.",400);return{matches:q,...w?{nextCursor:Buffer.from(JSON.stringify({signature:k,generation:f,offset:l+c})).toString("base64url")}:{}}}finally{n.close()}}async function w(a){if("string"!=typeof a.id||!a.id||a.id.length>1024||"string"!=typeof a.entryId||!a.entryId||a.entryId.length>1024)throw new o("id and entryId must be nonempty identifiers of at most 1024 characters.",400);let b=await u();try{let c=b.prepare("SELECT name,cwd FROM sessions WHERE id=?").get(a.id),d=b.prepare("SELECT id,parent,timestamp,role,content FROM entries WHERE session=? AND id=?"),e=d.get(a.id,a.entryId);if(!c||!e||null===e.role||!e.content)throw new o("Session or searchable entry not found.",404);let f=[],g=new Set,h=0;for(;e;){let b=String(e.id);if(g.has(b))throw new o("Session ancestor chain contains a cycle; repair the native session file.",503);if(g.add(b),null!==e.role&&e.content){let a=String(e.content),c=Buffer.byteLength(a);if(c>262144&&0===f.length)throw new o("Matched message exceeds the 256 KiB context limit; inspect the native session file for its full text.",503);if(21===f.length||h+c>262144)break;h+=c,f.push({entryId:b,timestamp:String(e.timestamp),role:e.role,content:a})}e="string"==typeof e.parent?d.get(a.id,e.parent):void 0}return f.reverse(),{sessionId:a.id,sessionName:String(c.name),cwd:String(c.cwd),entryId:a.entryId,leafId:a.entryId,matchIndex:f.length-1,messages:f,hasMoreBefore:void 0!==e,hasMoreAfter:!1}}finally{b.close()}}},87720:(a,b,c)=>{var d=c(29021),e=c(1932),f=c(21820),g=c(33873).dirname,h=c(33873).resolve,i=c(21609),j=c(9920);b.s=function(a){if(!(a=a||{}).externalFileAccess)return{read:function(a){return j.reject(Error("could not read external image '"+a+"', external file access is disabled"))}};var b=a.relativeToFile?g(a.relativeToFile):null;return{read:function(a,c){var d,g;return(i(g=function(a,b){b||(b=f.platform());var c,d,g=e.parse(a);if("file:"===(c=g).protocol&&(!c.host||"localhost"===c.host)||!(d=g).protocol&&!d.host){var h=decodeURIComponent(g.path);return"win32"===b&&/^\/[a-z]:/i.test(h)?h.slice(1):h}throw Error("Could not convert URI to path: "+a)}(d=a))?j.resolve(g):b?j.resolve(h(b,g)):j.reject(Error("could not find external image '"+d+"', path of input document is unknown"))).then(function(d){return k(d,c).caught(function(c){var d="could not open external image: '"+a+"' (document directory: '"+b+"')\n"+c.message;return j.reject(Error(d))})})}}};var k=j.promisify(d.readFile.bind(d))},88075:(a,b,c)=>{"use strict";var d=c(26701),e=c(65695);let f={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:a=>"nan"===a.slice(-3).toLowerCase()?NaN:"-"===a[0]?-1/0:1/0,stringify:e.stringifyNumber};b.float={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(a){let b=new d.Scalar(parseFloat(a)),c=a.indexOf(".");return -1!==c&&"0"===a[a.length-1]&&(b.minFractionDigits=a.length-c-1),b},stringify:e.stringifyNumber},b.floatExp={identify:a=>"number"==typeof a,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:a=>parseFloat(a),stringify(a){let b=Number(a.value);return isFinite(b)?b.toExponential():e.stringifyNumber(a)}},b.floatNaN=f},88250:(a,b,c)=>{"use strict";function d(){let a=(globalThis.__piModelsCacheState||(globalThis.__piModelsCacheState={entries:new Map,inFlight:new Map,generation:0}),globalThis.__piModelsCacheState);a.generation+=1,a.entries.clear(),a.inFlight.clear()}c.d(b,{kn:()=>d})},89281:(a,b)=>{b.error=function(a){return new c(a)};var c=function(a){this.expected=a.expected,this.actual=a.actual,this._location=a.location};c.prototype.describe=function(){return(this._location?this._location.describe()+":\n":"")+"Expected "+this.expected+"\nbut got "+this.actual},c.prototype.lineNumber=function(){return this._location.lineNumber()},c.prototype.characterNumber=function(){return this._location.characterNumber()}},89362:(a,b,c)=>{"use strict";c.d(b,{At:()=>C,le:()=>E,b8:()=>v,vh:()=>w,by:()=>u,JW:()=>z,WC:()=>s,hz:()=>q,I0:()=>A,uV:()=>D});var d=c(79646),e=c(29021),f=c(21820),g=c(33873),h=c(83739),i=c(84435);let j=/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~]|\][^\x07]*(?:\x07|\x1B\\))/g,k=/\x1B_pi:c\x07/g;function l(a){return a.replace(k,"").replace(j,"")}var m=c(92226),n=c(28672);let o=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/,p=[(0,g.join)(".omp","mcp.json"),(0,g.join)(".omp",".mcp.json"),"mcp.json",".mcp.json"];function q(a){let b={...a};return delete b.env,delete b.headers,b}function r(a){if(!(0,e.existsSync)(a))return{path:a,servers:[],disabledServers:[]};try{if((0,e.statSync)(a).size>5242880)throw Error("configuration is too large to inspect");let b=JSON.parse((0,e.readFileSync)(a,"utf8"));if(!(0,n.u4)(b))throw Error("configuration must contain a JSON object");if(void 0!==b.mcpServers&&!(0,n.u4)(b.mcpServers))throw Error("mcpServers must be an object");return{path:a,servers:Object.entries(b.mcpServers??{}).sort(([a],[b])=>a.localeCompare(b)).map(([a,b])=>({name:a,config:b})),disabledServers:Array.isArray(b.disabledServers)?b.disabledServers.filter(a=>"string"==typeof a).sort((a,b)=>a.localeCompare(b)):[]}}catch(b){return{path:a,servers:[],disabledServers:[],error:b instanceof Error?b.message:String(b)}}}function s(a=(0,g.join)((0,m.$M)(),"mcp.json")){return r(a)}function t(a){let b=new Set([(0,g.join)(a,".claude.json"),(0,g.join)(a,"mcp.json"),(0,g.join)(a,".mcp.json")]);try{for(let c of(0,e.readdirSync)(a,{withFileTypes:!0})){if(!c.isDirectory()||!c.name.startsWith("."))continue;let d=(0,g.join)(a,c.name);b.add((0,g.join)(d,"mcp.json")),b.add((0,g.join)(d,"config.json")),b.add((0,g.join)(d,"config.toml"))}}catch{}return[...b].filter(b=>{try{return(0,e.existsSync)(b)&&(0,h.o4)((0,e.realpathSync)(b),new Set([(0,e.realpathSync)(a)]))}catch{return!1}})}function u(a,b=[]){let c=new Set(b),d=new Set(t((0,f.homedir)()));if(a)for(let b of t((0,g.resolve)(a)))d.add(b);let h=new Set,i=(0,g.join)((0,m.$M)(),"mcp.json");(0,e.existsSync)(i)&&h.add((0,e.realpathSync)(i)),a&&h.add(y(a).path);let j=[],k=new Set;for(let a of d){try{if(h.has((0,e.realpathSync)(a)))continue}catch{continue}let b=function(a){let b=".claude.json"===(0,g.basename)(a)?".claude":(0,g.basename)((0,g.dirname)(a));return".claude"===b?"Claude Code":".codex"===b?"Codex":".cursor"===b?"Cursor":".vscode"===b?"VS Code":b.replace(/^\./,"")||"Configured"}(a);if(a.endsWith(".toml")){for(let d of function(a,b,c){try{if((0,e.statSync)(a).size>5242880)return[];let d=(0,e.readFileSync)(a,"utf8"),f=[...d.matchAll(/^\s*\[mcp_servers(?:\.([A-Za-z0-9_-]+)|\."([^"]+)")\]\s*$/gm)];return f.flatMap((a,e)=>{let g=a[1]??a[2];if(!g||c.has(g))return[];let h=d.slice((a.index??0)+a[0].length,f[e+1]?.index);return[{name:g,source:b,status:/^\s*enabled\s*=\s*false\s*$/m.test(h)?"disabled":"configured",type:/^\s*url\s*=/m.test(h)?"http":"stdio"}]})}catch{return[]}}(a,b,c)){let a=`${d.source}:${d.name}`;k.has(a)||(k.add(a),j.push(d))}continue}for(let d of r(a).servers){if(c.has(d.name))continue;let a=`${b}:${d.name}`;if(k.has(a))continue;k.add(a);let e="string"==typeof d.config.type?d.config.type:"string"==typeof d.config.url?"http":"stdio";j.push({name:d.name,source:b,status:!1===d.config.enabled?"disabled":"configured",type:e})}}return j}function v(a,b){let c=[...a],d=new Set(a.map(a=>`${a.source}:${a.name}`));for(let a of b){let b=`${a.source}:${a.name}`;d.has(b)||(d.add(b),c.push(a))}return c}function w(a){let b=[],c=null;for(let d of l(a).split(/\r?\n/)){let a=d.trim();if(!a)continue;let e=a.match(/^(.+?)\s+\([^)]*\):$/);if(e){c=e[1];continue}let f=a.match(/^(.+?)\s+[●◌○]\s+(connected|connecting|not connected|inactive|disabled)(?:\s+\[([^\]]+)\])?$/);if(!f||!c)continue;let g={connected:"connected",connecting:"connecting","not connected":"not_connected",inactive:"inactive",disabled:"disabled"};b.push({name:f[1].trim(),source:c,status:g[f[2]],type:f[3]})}if(b.length>0)return b;for(let c of l(a).split(/\r?\n/)){let a=c.trim().match(/^(.+?)\s+\|\s+([^|]+?)\s+\|\s+(enabled|disabled)\s+\|\s+.*?(?:\s+\[([^\]]+)\])?$/);if(!a)continue;let d="user"===a[4]?"User level":"project"===a[4]?"Project level":"Configured";b.push({name:a[1].trim(),source:d,status:"enabled"===a[3]?"configured":"disabled",type:a[2].trim()})}return b}function x(a,b){if(!(0,n.u4)(a)||Object.values(a).some(a=>"string"!=typeof a))throw Error(`${b} must map strings to strings`)}function y(a){let b=(0,e.realpathSync)(function(a){try{return(0,g.resolve)((0,d.execFileSync)("git",["-C",a,"rev-parse","--show-toplevel"],{encoding:"utf8",windowsHide:!0,stdio:["ignore","pipe","ignore"]}).trim())}catch{return(0,g.resolve)(a)}}(a)),c=new Set([b]);if(!(0,h.o4)((0,e.realpathSync)(a),c))throw Error("Project root does not contain workspace");let f=p.map(a=>(0,g.join)(b,a)),i=f.find(e.existsSync)??f[0],j=(0,h.SW)(i);if(!(0,h.o4)(j,c))throw Error("Access denied to MCP configuration outside project root");return{root:b,path:j}}function z(a){let b,c=y(a);if(!(0,e.existsSync)(c.path))return{...c,config:{mcpServers:{}},exists:!1};if((0,e.statSync)(c.path).size>524288)throw Error("MCP configuration is too large to edit in ompgui");try{b=JSON.parse((0,e.readFileSync)(c.path,"utf8"))}catch{throw Error(`${c.path} is not valid JSON`)}if(!(0,n.u4)(b))throw Error(`${c.path} must contain a JSON object`);if(void 0!==b.mcpServers&&!(0,n.u4)(b.mcpServers))throw Error("mcpServers must be an object");return{...c,config:b,exists:!0}}function A(a,b){if("string"!=typeof a||!o.test(a))throw Error("Server name may contain letters, numbers, dots, dashes, and underscores");if(!(0,n.u4)(b))throw Error("Server configuration must be an object");let c=b.type;if(void 0!==c&&"stdio"!==c&&"http"!==c&&"sse"!==c)throw Error("Server type must be stdio, http, or sse");let d="string"==typeof b.command&&b.command.trim().length>0,e="string"==typeof b.url&&b.url.trim().length>0;if(d===e)throw Error("Provide exactly one of command or url");if((void 0===c||"stdio"===c)&&!d)throw Error("A stdio server requires a command");if(("http"===c||"sse"===c)&&!e)throw Error("An HTTP or SSE server requires a URL");if(e)try{let a=new URL(b.url);if("http:"!==a.protocol&&"https:"!==a.protocol)throw Error()}catch{throw Error("Server URL must be an http or https URL")}if(void 0!==b.args&&(!Array.isArray(b.args)||b.args.some(a=>"string"!=typeof a)))throw Error("args must be an array of strings");if(void 0!==b.env&&x(b.env,"env"),void 0!==b.headers&&x(b.headers,"headers"),void 0!==b.cwd&&"string"!=typeof b.cwd)throw Error("cwd must be a string");if(void 0!==b.enabled&&"boolean"!=typeof b.enabled)throw Error("enabled must be a boolean");if(void 0!==b.timeout&&(!Number.isInteger(b.timeout)||b.timeout<0||b.timeout>6e5))throw Error("timeout must be an integer between 0 and 600000");if(void 0!==b.requestIdFormat&&"number"!==b.requestIdFormat&&"string"!==b.requestIdFormat)throw Error("requestIdFormat must be number or string")}function B(a,b){let c=`${a}.lock`,d=Date.now()+3e3;for((0,e.mkdirSync)((0,g.dirname)(c),{recursive:!0});;){let a=null;try{a=(0,e.openSync)(c,"wx")}catch(a){if("EEXIST"!==a.code)throw a;try{if(Date.now()-(0,e.statSync)(c).mtimeMs>1e4){(0,e.unlinkSync)(c);continue}}catch{continue}if(Date.now()>=d)throw Error(`Timed out waiting for ${c} (another process holds the MCP config lock)`);!function(){let a=new SharedArrayBuffer(4);Atomics.wait(new Int32Array(a),0,0,25)}();continue}try{try{(0,e.writeSync)(a,String(process.pid))}finally{(0,e.closeSync)(a)}return b()}finally{try{(0,e.unlinkSync)(c)}catch{}}}}class C extends Error{constructor(a){super(`MCP server "${a}" already exists`),this.name="McpServerConflictError"}}function D(a,b,c,d){if(A(b,c),void 0!==d&&!o.test(d))throw Error("Invalid previous server name");return B(z(a).path,()=>{let f=z(a),h=f.config.mcpServers??{};if(void 0!==d&&d!==b&&Object.hasOwn(h,b))throw new C(b);let j={...h},k=j[d??b];d&&d!==b&&delete j[d],j[b]={...c,...k?.env!==void 0&&void 0===c.env?{env:k.env}:{},...k?.headers!==void 0&&void 0===c.headers?{headers:k.headers}:{}};let l={...f.config,mcpServers:j};return(0,e.mkdirSync)((0,g.dirname)(f.path),{recursive:!0}),(0,i.D)(f.path,`${JSON.stringify(l,null,2)}
|
|
97
|
+
`),{path:f.path}})}function E(a,b){if(!o.test(b))throw Error("Invalid server name");return B(z(a).path,()=>{let c=z(a),d={...c.config.mcpServers??{}};if(!(b in d))throw Error("MCP server was not found");delete d[b];let e={...c.config,mcpServers:d};return(0,i.D)(c.path,`${JSON.stringify(e,null,2)}
|
|
98
|
+
`),{path:c.path}})}},89584:(a,b,c)=>{var d=c(84906);function e(a,b,c){var e=d.flatten(d.values(b).map(function(a){return d.values(a.levels)})),f=d.indexBy(e.filter(function(a){return null!=a.paragraphStyleId}),"paragraphStyleId");return{findLevel:function d(e,f){var g=a[e];if(!g)return null;var h=b[g.abstractNumId];return h?null==h.numStyleLink?b[g.abstractNumId].levels[f]:d(c.findNumberingStyleById(h.numStyleLink).numId,f):null},findLevelByParagraphStyleId:function(a){return f[a]||null}}}b.readNumberingXml=function(a,b){if(!b||!b.styles)throw Error("styles is missing");var c,d,f=(c={},a.getElementsByTagName("w:abstractNum").forEach(function(a){var b,d,e;c[a.attributes["w:abstractNumId"]]=(d={},e=null,(b=a).getElementsByTagName("w:lvl").forEach(function(a){var b=a.attributes["w:ilvl"],c="bullet"!==a.firstOrEmpty("w:numFmt").attributes["w:val"],f=a.firstOrEmpty("w:pStyle").attributes["w:val"];void 0===b?e={isOrdered:c,level:"0",paragraphStyleId:f}:d[b]={isOrdered:c,level:b,paragraphStyleId:f}}),null!==e&&void 0===d[e.level]&&(d[e.level]=e),{levels:d,numStyleLink:b.firstOrEmpty("w:numStyleLink").attributes["w:val"]})}),c);return new e((d={},a.getElementsByTagName("w:num").forEach(function(a){var b=a.attributes["w:numId"],c=a.first("w:abstractNumId").attributes["w:val"];d[b]={abstractNumId:c}}),d),f,b.styles)},b.Numbering=e,b.defaultNumbering=new e({},{})},89745:(a,b,c)=>{"use strict";var d=c(21476),e=c(16312),f=function(a,b){var c=a||b,e=d[c];if(!e)throw Error(c+" is not a valid compression method !");return e};b.generateWorker=function(a,b,c){var d=new e(b.streamFiles,c,b.platform,b.encodeFileName),g=0;try{a.forEach(function(a,c){g++;var e=f(c.options.compression,b.compression),h=c.options.compressionOptions||b.compressionOptions||{},i=c.dir,j=c.date;c._compressWorker(e,h).withStreamInfo("file",{name:a,dir:i,date:j,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(d)}),d.entriesCount=g}catch(a){d.error(a)}return d}},90050:(a,b,c)=>{var d=c(84906);function e(a,b){return function(){return{start:a,end:b}}}function f(a){return function(b,c){return{start:c?"\n":"",end:c?"":"\n",list:{isOrdered:a.isOrdered,indent:c?c.indent+1:0,count:0}}}}for(var g={p:e("","\n\n"),br:e(""," \n"),ul:f({isOrdered:!1}),ol:f({isOrdered:!0}),li:function(a,b,c){b=b||{indent:0,isOrdered:!1,count:0},b.count++,c.hasClosed=!1;var d=b.isOrdered?b.count+".":"-";return{start:i(" ",b.indent)+d+" ",end:function(){if(!c.hasClosed)return c.hasClosed=!0,"\n"}}},strong:e("__","__"),em:e("*","*"),a:function(a){var b=a.href||"";return b?{start:"[",end:"]("+b+")",anchorPosition:"before"}:{}},img:function(a){var b=a.src||"",c=a.alt||"";return b||c?{start:""}:{}}},h=1;h<=6;h++)g["h"+h]=e(i("#",h)+" ","\n\n");function i(a,b){return Array(b+1).join(a)}b.writer=function(){var a=[],b=[],c=null,e={};function f(d,f){f=f||{};var i=(g[d]||function(){return{}})(f,c,e);b.push({end:i.end,list:c}),i.list&&(c=i.list);var j="before"===i.anchorPosition;j&&h(f),a.push(i.start||""),j||h(f)}function h(b){b.id&&a.push('<a id="'+b.id+'"></a>')}function i(e){var f=b.pop();c=f.list;var g=d.isFunction(f.end)?f.end():f.end;a.push(g||"")}return{asString:function(){return a.join("")},open:f,close:i,text:function(b){a.push(b.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1"))},selfClosing:function(a,b){f(a,b),i(a)}}}},90303:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{d:()=>x});var e=c(85906),f=c(99601),g=c(6733),h=c(43351),i=c(65195),j=c(36503),k=c(49620),l=c(84180),m=c(38731),n=c(78098),o=c(96851),p=c(98122),q=c(4186),r=c(37427),s=c(72037),t=c(57710),u=c(32171),v=a([h,i,k,l,m,p,q,r,s,u]);[h,i,k,l,m,p,q,r,s,u]=v.then?(await v)():v;let z=new Map;function w(a){j.qc.cleanupDevice(a),(0,h.eB)(a),(0,p.Wk)(a),(0,k.B7)(a).catch(()=>{})}let A={authenticate:f.j,listSessions:p.Hq,listModels:async()=>(0,o.Jq)((await (0,k.G0)()).models).models,fetchUsage:t.yh,openSession:p.MG,sendCommand:p.Vi,createSession:q.il,listProjects:q.c7,listFiles:q.Hh,readFile:q.m4,listSlash:q.h6,deleteSession:r.Zk,archiveSession:r.aZ,renameSession:r.wP,listArchives:r.pG,restoreArchive:r.CW,listWorktrees:q.AV,addWorktree:q.E3,writeFile:q.pB,gitStatus:q.gO,gitDiff:q.v,listBranches:p.Y8,snapshotLeaf:p.QG,exportSession:p._C,listSkills:s.yg,toggleSkill:s.TA,searchSkills:s.wL,installSkill:s.s2,listAgents:s.m2,saveAgent:s.A_,deleteAgent:s.yO,listAuthProviders:s.AO,listPlugins:s.mz,pluginAction:s.CR,listMcp:s.o0,deleteMcp:s.bV,upsertMcp:s.$1,importSession:r.bU,addProject:q.q$,removeProject:q.bO,searchFiles:q.Qt};function x(a,b={}){let c,d={...A,...b},f=d.now??Date.now,j=d.setTimeout??setTimeout,t=d.clearTimeout??clearTimeout,v={files:h.f,sessions:i.vq,models:k._r,extensions:l.Y,system:m.DC,...d.requestHandlers},B=new g.T(f),C=d.isDeviceAuthorized??(b.authenticate?()=>!0:a=>(0,n.Rm)().some(b=>b.id===a)),D=null,E=0,F=!1,G=0,H=0,I=Promise.resolve(),J=!1,K=!1,L=null,M=null,N=Promise.resolve(),O=new AbortController,P=()=>{E++;let a=O;return K||(O=new AbortController),a.abort(),E},Q=(b,c=!1)=>{if(K)return!1;if(!c&&D&&!C(D))return V(),!1;try{for(let c of("error"===b.op||"session.err"===b.op||"cmd_err"===b.op?b={...b,code:/^[A-Za-z0-9_-]{1,64}$/.test(b.code)?b.code:"operation_failed",message:"Relay operation failed"}:"settings_updated"!==b.op||b.success||(b={op:"settings_updated",success:!1,error:"Settings update failed"}),(0,g.M)(b)))if(!a.sendText(c))return U(),a.close(1013,"Relay backpressure"),!1;return!0}catch{return a.sendText(JSON.stringify({op:"error",code:"frame_too_large",message:"Relay frame exceeds transport limits"})),U(),a.close(1009,"Relay frame too large"),!1}},R=(b,c)=>{t(S),Q({op:"hello_err",code:b,message:c}),U(),a.close(1008,c)},S=j(()=>{J||K||R("hello_timeout","hello was not received in time")},o.g4),T=(0,e.h)({emit:a=>!!(!L||F||"object"!=typeof a||null===a||Array.isArray(a))||Q({op:"event",id:L,payload:a}),isBackpressured:()=>a.bufferedAmount>256e3}),U=()=>{if(!K){if(K=!0,t(S),t(c),B.clear(),P(),D){let a=z.get(D);a?.delete(V),a?.size===0&&(z.delete(D),w(D))}T.reset(),M?.(),M=null,L=null}},V=()=>{U(),a.close(1008,"Device revoked")},W=()=>{if(!K&&D){if(!C(D))return void V();c=j(W,1e3)}},X=async a=>{if(!K){if(!J){if("hello"!==a.op)return void R("unauthorized","hello is required");let b=d.authenticate(a,f());if(!b.ok)return void R(b.code,b.message);D=b.deviceId;let e=z.get(D);return e||(e=new Set,z.set(D,e)),e.add(V),J=!0,c=j(W,1e3),t(S),void Q({op:"hello_ok",protocol:o.AL,serverId:b.serverId,deviceId:b.deviceId,...b.token?{token:b.token}:{}})}if(!D||!C(D))return void V();switch(a.op){case"request":try{let b="sessions"===a.domain,c=a.args.command,d="object"==typeof c&&null!==c&&"type"in c?c.type:null;b&&("leaf"===a.action||"command"===a.action&&"fork"===d||("delete"===a.action||"archive"===a.action)&&a.args.id===L)&&(P(),F="leaf"===a.action,M?.(),M=null,T.reset(),"delete"===a.action||"archive"===a.action?L=null:"string"==typeof a.args.id&&(L=a.args.id));let e=E,f=D,g=await v[a.domain](a.action,a.args,{deviceId:D,sessionId:L,signal:O.signal,assertActive:()=>{if(!C(f))throw V(),Object.assign(Error("Device authorization expired"),{code:"unauthorized"});if(K||E!==e||D!==f)throw Object.assign(Error("Session changed during request"),{code:"request_cancelled"})}}),h="system"===a.domain&&"devices.revoke"===a.action&&"string"==typeof g.deviceId?g.deviceId:null;Q({op:"result",req:a.req,success:!0,data:g},h===D),h&&function(a){let b=z.get(a);for(let c of(z.delete(a),b??[]))c();w(a)}(h),b&&"command"===a.action&&"object"==typeof g.result&&null!==g.result&&"newSessionId"in g.result&&"string"==typeof g.result.newSessionId&&await X({op:"session.open",id:g.result.newSessionId})}catch(c){let b="object"==typeof c&&null!==c&&"code"in c&&"string"==typeof c.code&&/^[A-Za-z0-9_-]{1,64}$/.test(c.code)?c.code:"request_failed";Q({op:"result",req:a.req,success:!1,error:{code:b,message:"Relay request failed ("+b+")"}})}return;case"hello":Q({op:"error",code:"already_authed",message:"Already authenticated"});return;case"sessions.list":{let a=await d.listSessions();Q({op:"sessions",sessions:a.sessions,runningIds:a.runningIds});return}case"models.list":{let a=await d.listModels();Q((0,o.Jq)(a));return}case"usage":{let a=await d.fetchUsage();if(a.ok)return void Q({op:"usage",data:a.payload});Q({op:"usage",data:{error:a.error,status:a.status}});return}case"session.close":P(),F=!1,M?.(),M=null,L=null,T.reset();return;case"projects.list":try{let a=await (d.listProjects??q.c7)();Q({op:"projects",projects:a})}catch(a){Q({op:"error",code:"projects_failed",message:a instanceof Error?a.message:String(a)})}return;case"files.list":try{let b=await (d.listFiles??q.Hh)(a.path);Q({op:"files",path:b.path,entries:b.entries})}catch(b){let a=b&&"object"==typeof b&&"code"in b&&"string"==typeof b.code?b.code:"files_failed";Q({op:"error",code:a,message:b instanceof Error?b.message:String(b)})}return;case"slash.list":return void Q({op:"slash",commands:(d.listSlash??q.h6)()});case"files.read":try{let b=await (d.readFile??q.m4)(a.path);Q({op:"file",path:b.path,name:b.name,...b.language?{language:b.language}:{},...void 0!==b.text?{text:b.text}:{},...b.truncated?{truncated:!0}:{},...void 0!==b.bytes?{bytes:b.bytes}:{},...b.encoding?{encoding:b.encoding}:{}})}catch(a){y(Q,a,"files_failed")}return;case"session.delete":try{L===a.id&&(M?.(),M=null,L=null,T.reset());let b=await (d.deleteSession??r.Zk)(a.id);Q({op:"session.deleted",id:b.id});let c=await d.listSessions();Q({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){y(Q,b,"session_delete_failed",a.id)}return;case"session.archive":try{L===a.id&&(M?.(),M=null,L=null,T.reset());let b=await (d.archiveSession??r.aZ)(a.id);Q({op:"session.archived",id:b.id});let c=await d.listSessions();Q({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){y(Q,b,"session_archive_failed",a.id)}return;case"session.rename":try{let b=await (d.renameSession??r.wP)(a.id,a.name);Q({op:"session.renamed",id:b.id,name:b.name});let c=await d.listSessions();Q({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(b){y(Q,b,"session_rename_failed",a.id)}return;case"sessions.archives":try{let a=await (d.listArchives??r.pG)();Q({op:"archives",archives:a})}catch(a){y(Q,a,"archives_failed")}return;case"session.restore":try{let b=await (d.restoreArchive??r.CW)(a.key);Q({op:"session.restored",id:b.id});let c=await d.listSessions();Q({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(a){y(Q,a,"session_restore_failed")}return;case"worktrees.list":try{let b=await (d.listWorktrees??q.AV)(a.cwd);Q({op:"worktrees",cwd:b.cwd,projectRoot:b.projectRoot,isGit:b.isGit,currentWorktreePath:b.currentWorktreePath,worktrees:b.worktrees})}catch(a){y(Q,a,"worktrees_failed")}return;case"worktrees.add":try{let b=await (d.addWorktree??q.E3)(a.cwd,a.branch);Q({op:"worktree.added",path:b.path,branch:b.branch});let c=await (d.listWorktrees??q.AV)(a.cwd);Q({op:"worktrees",cwd:c.cwd,projectRoot:c.projectRoot,isGit:c.isGit,currentWorktreePath:c.currentWorktreePath,worktrees:c.worktrees})}catch(a){y(Q,a,"worktree_add_failed")}return;case"files.write":try{let b=await (d.writeFile??q.pB)(a.path,a.text,a.revision,a.baseContentHash,a.createIfMissing);Q({op:"file.written",path:b.path,bytes:b.bytes})}catch(a){y(Q,a,"files_failed")}return;case"git.status":try{let b=await (d.gitStatus??q.gO)(a.cwd);Q({op:"git.status",cwd:b.cwd,isGitRepository:b.isGitRepository,repositoryRoot:b.repositoryRoot,files:b.files})}catch(a){y(Q,a,"git_failed")}return;case"git.diff":try{let b=await (d.gitDiff??q.v)(a.cwd,a.path);Q({op:"git.diff",path:b.path,supported:b.supported,...b.status?{status:b.status}:{},...b.patch?{patch:b.patch}:{},...b.truncated?{truncated:!0}:{}})}catch(a){y(Q,a,"git_failed")}return;case"session.branches":try{let b=await (d.listBranches??p.Y8)(a.id);Q({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch(b){y(Q,b,"branches_failed",a.id)}return;case"session.leaf":try{let b=P();F=!0,T.reset(),M?.(),M=null,L=a.id;let c=await (d.snapshotLeaf??p.QG)(a.id,a.leafId);if(K||E!==b)return;Q({op:"session.snapshot",id:a.id,...c.title?{title:c.title}:{},...c.cwd?{cwd:c.cwd}:{},leafId:c.leafId,messages:c.messages,total:c.total,offset:c.offset,nextOffset:c.nextOffset,hasMore:c.hasMore,agent:c.agent});try{let b=await (d.listBranches??p.Y8)(a.id);Q({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch{}}catch(b){y(Q,b,"leaf_failed",a.id)}return;case"session.export":try{let b=await (d.exportSession??p._C)(a.id,D);Q({op:"session.exported",id:b.id,fileName:b.fileName,bytes:b.bytes,...b.transferId?{transferId:b.transferId}:{},...void 0!==b.size?{size:b.size}:{},...b.html?{html:b.html}:{}})}catch(b){y(Q,b,"export_failed",a.id)}return;case"skills.list":try{let b=await (d.listSkills??s.yg)(a.cwd);Q({op:"skills",cwd:b.cwd,skills:b.skills})}catch(a){y(Q,a,"skills_failed")}return;case"skills.toggle":try{let b=await (d.toggleSkill??s.TA)(a.cwd,a.filePath,a.disableModelInvocation);Q({op:"skill.updated",filePath:b.filePath,disableModelInvocation:b.disableModelInvocation});let c=await (d.listSkills??s.yg)(a.cwd);Q({op:"skills",cwd:c.cwd,skills:c.skills})}catch(a){y(Q,a,"skills_failed")}return;case"plugins.list":try{let b=await (d.listPlugins??s.mz)(a.cwd);Q({op:"plugins",cwd:b.cwd,packages:b.packages})}catch(a){y(Q,a,"plugins_failed")}return;case"plugins.action":try{let b=await (d.pluginAction??s.CR)(a.cwd,a.action,a.source,a.scope);Q({op:"plugins",cwd:b.cwd,packages:b.packages})}catch(a){y(Q,a,"plugins_failed")}return;case"mcp.list":try{let b=await (d.listMcp??s.o0)(a.cwd);Q({op:"mcp",inventory:b.inventory})}catch(a){y(Q,a,"mcp_failed")}return;case"mcp.delete":try{let b=await (d.deleteMcp??s.bV)(a.cwd,a.name);Q({op:"mcp.deleted",name:b.name});let c=await (d.listMcp??s.o0)(a.cwd);Q({op:"mcp",inventory:c.inventory})}catch(a){y(Q,a,"mcp_failed")}return;case"mcp.upsert":try{let b=await (d.upsertMcp??s.$1)(a);Q({op:"mcp.upserted",name:b.name});let c=await (d.listMcp??s.o0)(a.cwd);Q({op:"mcp",inventory:c.inventory})}catch(a){y(Q,a,"mcp_failed")}return;case"session.create":try{let b=await (d.createSession??q.il)({cwd:a.cwd,message:a.message,provider:a.provider,modelId:a.modelId,thinkingLevel:a.thinkingLevel});Q({op:"session.created",id:b.sessionId,cwd:a.cwd}),M?.(),M=null,T.reset(),L=b.sessionId;let c=P();F=!1;let e=await d.openSession(b.sessionId,a=>{K||E!==c||F||T.push(a)});if(K||E!==c||L!==b.sessionId)return void e.dispose();M=e.dispose,T.reset(),Q({op:"session.snapshot",id:b.sessionId,...e.snapshot.title?{title:e.snapshot.title}:{},...e.snapshot.cwd?{cwd:e.snapshot.cwd}:{},leafId:e.snapshot.leafId,messages:e.snapshot.messages,total:e.snapshot.total,offset:e.snapshot.offset,nextOffset:e.snapshot.nextOffset,hasMore:e.snapshot.hasMore,agent:e.snapshot.agent})}catch(c){L=null,P(),T.reset();let a=c instanceof Error?c.message:String(c),b=c&&"object"==typeof c&&"code"in c&&"string"==typeof c.code?c.code:"session_create_failed";Q({op:"session.err",code:b,message:a})}return;case"session.import":try{let b=await (d.importSession??r.bU)(a.fileName,a.content);Q({op:"session.imported",id:b.id,cwd:b.cwd});let c=await d.listSessions();Q({op:"sessions",sessions:c.sessions,runningIds:c.runningIds})}catch(a){y(Q,a,"session_import_failed")}return;case"skills.search":try{let b=await (d.searchSkills??s.wL)(a.query,a.limit??10);Q({op:"skill.results",query:b.query,results:b.results})}catch(a){y(Q,a,"skills_failed")}return;case"skills.install":try{let b=await (d.installSkill??s.s2)(a.package,a.scope,a.cwd);if(Q({op:"skill.installed",package:b.package,scope:b.scope}),a.cwd){let b=await (d.listSkills??s.yg)(a.cwd);Q({op:"skills",cwd:b.cwd,skills:b.skills})}}catch(a){y(Q,a,"skills_failed")}return;case"agents.list":try{let b=await (d.listAgents??s.m2)(a.cwd);Q({op:"agents",...b.cwd?{cwd:b.cwd}:{},agents:b.agents})}catch(a){y(Q,a,"agents_failed")}return;case"agents.save":try{let b=await (d.saveAgent??s.A_)({name:a.name,description:a.description,systemPrompt:a.systemPrompt,scope:a.scope,...a.cwd?{cwd:a.cwd}:{}});Q({op:"agent.saved",name:b.name,...b.filePath?{filePath:b.filePath}:{}});let c=await (d.listAgents??s.m2)(a.cwd);Q({op:"agents",...c.cwd?{cwd:c.cwd}:{},agents:c.agents})}catch(a){y(Q,a,"agents_failed")}return;case"agents.delete":try{let b=await (d.deleteAgent??s.yO)({name:a.name,scope:a.scope,...a.cwd?{cwd:a.cwd}:{}});Q({op:"agent.deleted",name:b.name});let c=await (d.listAgents??s.m2)(a.cwd);Q({op:"agents",...c.cwd?{cwd:c.cwd}:{},agents:c.agents})}catch(a){y(Q,a,"agents_failed")}return;case"auth.providers":try{let a=await (d.listAuthProviders??s.AO)();Q({op:"auth.providers",providers:a.providers})}catch(a){y(Q,a,"auth_failed")}return;case"files.index":try{let b=await (d.searchFiles??q.Qt)(a.cwd,a.query);Q({op:"files.index",cwd:b.cwd,query:b.query,matches:b.matches})}catch(a){y(Q,a,"files_failed")}return;case"projects.add":try{let b=await (d.addProject??q.q$)(a.cwd);Q({op:"project.added",path:b.path,...b.name?{name:b.name}:{}});let c=await (d.listProjects??q.c7)();Q({op:"projects",projects:c})}catch(a){y(Q,a,"projects_failed")}return;case"projects.remove":try{let b=await (d.removeProject??q.bO)(a.cwd);Q({op:"project.removed",path:b.path});let c=await (d.listProjects??q.c7)();Q({op:"projects",projects:c})}catch(a){y(Q,a,"projects_failed")}return;case"settings.get":try{let b=await (0,u.JK)({...void 0!==a.scope?{scope:a.scope}:{},...void 0!==a.cwd?{cwd:a.cwd}:{}});Q({op:"settings",...b})}catch{Q({op:"error",code:"settings_read_failed",message:"Settings read failed"})}return;case"settings.update":try{let b=await (0,u.Fy)(a);Q({op:"settings_updated",...b})}catch{Q({op:"settings_updated",success:!1,error:"Settings update failed"})}return;case"session.open":{let b=P();F=!1,M?.(),M=null,T.reset(),L=a.id;try{let c=await d.openSession(a.id,a=>{K||E!==b||F||T.push(a)});if(K||E!==b||L!==a.id)return void c.dispose();M=c.dispose,T.reset(),Q({op:"session.snapshot",id:a.id,...c.snapshot.title?{title:c.snapshot.title}:{},...c.snapshot.cwd?{cwd:c.snapshot.cwd}:{},leafId:c.snapshot.leafId,messages:c.snapshot.messages,total:c.snapshot.total,offset:c.snapshot.offset,nextOffset:c.snapshot.nextOffset,hasMore:c.snapshot.hasMore,agent:c.snapshot.agent})||Q({op:"session.err",id:a.id,code:"snapshot_too_large",message:"Session snapshot exceeded maximum frame size"});try{let b=await (d.listBranches??p.Y8)(a.id);Q({op:"branches",id:b.id,leafId:b.leafId,branches:b.branches})}catch{}}catch(d){L=null,P(),T.reset();let b=d instanceof Error?d.message:String(d),c=d&&"object"==typeof d&&"code"in d&&"string"==typeof d.code?d.code:"session_open_failed";Q({op:"session.err",id:a.id,code:c,message:b})}return}case"cmd":if(!L)return void Q({op:"cmd_err",req:a.req,code:"session_not_open",message:"Open a session first"});try{let b=E,c=L,e=await d.sendCommand(c,(0,o.bX)(a));if(K||E!==b||L!==c)return;Q({op:"cmd_ok",req:a.req,data:e??null})}catch(d){let b=d instanceof Error?d.message:String(d),c=d&&"object"==typeof d&&"code"in d&&"string"==typeof d.code?d.code:"rpc_command_failed";Q({op:"cmd_err",req:a.req,code:c,message:b})}}}};return{onText(a){if(K)return;let b=a,c=!1;try{if(Buffer.byteLength(a,"utf8")>262144)throw Error("Frame exceeds transport limit");let d=JSON.parse(a);if("object"==typeof d&&null!==d&&"op"in d&&"chunk"===d.op){if(!J)return void R("unauthorized","hello is required before chunks");let a=B.accept(d);if(null===a)return;b=a,c=!0}}catch{B.clear(),J?Q({op:"error",code:"invalid_frame",message:"Invalid relay frame"}):R("invalid_frame","Invalid relay frame");return}let d=(0,o.qy)(b,c);if((0,o.hk)(d))return J?void Q({op:"error",code:d.code,message:d.message}):void R(d.code,d.message);let e=J&&("cmd"===d.op&&"abort"===d.type||"request"===d.op&&"sessions"===d.domain&&"command"===d.action&&"object"==typeof d.args.command&&null!==d.args.command&&"type"in d.args.command&&("abort"===d.args.command.type||"extension_ui_response"===d.args.command.type));if((e?H:G)>=(e?16:64))return void("request"===d.op?Q({op:"result",req:d.req,success:!1,error:{code:"busy",message:"Too many pending relay operations"}}):"cmd"===d.op?Q({op:"cmd_err",req:d.req,code:"busy",message:"Too many pending relay operations"}):Q({op:"error",code:"busy",message:"Too many pending relay operations"}));e?H++:G++;let f=()=>X(d).catch(()=>{Q({op:"error",code:"internal_error",message:"Relay operation failed"})}).finally(()=>{e?H--:G--});e?I=I.then(f):N=N.then(f)},onClose(){U()}}}function y(a,b,c,d){let e=b instanceof Error?b.message:String(b),f=b&&"object"==typeof b&&"code"in b&&"string"==typeof b.code?b.code:c;a(d?{op:"session.err",id:d,code:f,message:e}:{op:"error",code:f,message:e})}d()}catch(a){d(a)}})},90325:(a,b,c)=>{var d=c(25105),e=c(65869);function f(a){function b(){return a.map(function(a){return a.name})}return{apply:function(b){for(var c,f,g;;){if((g=b.remaining(),c=d.firstOf("infix",a.map(function(a){return a.rule}))(g)).isSuccess())f=b.source().to(c.source()),b=e.success(c.value()(b.value(),f),c.remaining(),f);else if(c.isFailure())return b;else return c}},untilExclusive:function(c){return new f(a.slice(0,b().indexOf(c)))},untilInclusive:function(c){return new f(a.slice(0,b().indexOf(c)+1))}}}b.parser=function(a,b,c){var e={rule:function(){return j(h)},leftAssociative:function(a){return j(h.untilExclusive(a))},rightAssociative:function(a){return j(h.untilInclusive(a))}},h=new f(c.map(function(a){return{name:a.name,rule:g(a.ruleBuilder.bind(null,e))}})),i=d.firstOf(a,b);function j(a){return k.bind(null,a)}function k(a,b){var c=i(b);return c.isSuccess()?a.apply(c):c}return e},b.infix=function(a,c){return{name:a,ruleBuilder:c,map:function(d){return b.infix(a,function(a){var b=c(a);return function(a){return b(a).map(function(a){return function(b,c){return d(b,a,c)}})}})}}};var g=function(a){var b;return function(c){return b||(b=a()),b(c)}}},90976:(a,b,c)=>{"use strict";var d=c(73315),e=c(3404);let f={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},g=a=>a.replace(/[!,[\]{}]/g,a=>f[a]);class h{constructor(a,b){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},h.defaultYaml,a),this.tags=Object.assign({},h.defaultTags,b)}clone(){let a=new h(this.yaml,this.tags);return a.docStart=this.docStart,a}atDocument(){let a=new h(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:h.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},h.defaultTags)}return a}add(a,b){this.atNextDocument&&(this.yaml={explicit:h.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},h.defaultTags),this.atNextDocument=!1);let c=a.trim().split(/[ \t]+/),d=c.shift();switch(d){case"%TAG":{if(2!==c.length&&(b(0,"%TAG directive should contain exactly two parts"),c.length<2))return!1;let[a,d]=c;return this.tags[a]=d,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==c.length)return b(0,"%YAML directive should contain exactly one part"),!1;let[a]=c;if("1.1"===a||"1.2"===a)return this.yaml.version=a,!0;{let c=/^\d+\.\d+$/.test(a);return b(6,`Unsupported YAML version ${a}`,c),!1}}default:return b(0,`Unknown directive ${d}`,!0),!1}}tagName(a,b){if("!"===a)return"!";if("!"!==a[0])return b(`Not a valid tag: ${a}`),null;if("<"===a[1]){let c=a.slice(2,-1);return"!"===c||"!!"===c?(b(`Verbatim tags aren't resolved, so ${a} is invalid.`),null):(">"!==a[a.length-1]&&b("Verbatim tags must end with a >"),c)}let[,c,d]=a.match(/^(.*!)([^!]*)$/s);d||b(`The ${a} tag has no suffix`);let e=this.tags[c];if(e)try{return e+decodeURIComponent(d)}catch(a){return b(String(a)),null}return"!"===c?a:(b(`Could not resolve tag: ${a}`),null)}tagString(a){for(let[b,c]of Object.entries(this.tags))if(a.startsWith(c))return b+g(a.substring(c.length));return"!"===a[0]?a:`!<${a}>`}toString(a){let b,c=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],f=Object.entries(this.tags);if(a&&f.length>0&&d.isNode(a.contents)){let c={};e.visit(a.contents,(a,b)=>{d.isNode(b)&&b.tag&&(c[b.tag]=!0)}),b=Object.keys(c)}else b=[];for(let[d,e]of f)("!!"!==d||"tag:yaml.org,2002:"!==e)&&(!a||b.some(a=>a.startsWith(e)))&&c.push(`%TAG ${d} ${e}`);return c.join("\n")}}h.defaultYaml={explicit:!1,version:"1.2"},h.defaultTags={"!!":"tag:yaml.org,2002:"},b.Directives=h},91652:(a,b,c)=>{"use strict";c.d(b,{Ac:()=>m,GO:()=>i,X:()=>k,_4:()=>d,cV:()=>j,jL:()=>e,oC:()=>l});let d=262144,e=0xa00000,f={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},g={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},h={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function i(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function j(a){return f[i(a)]??null}function k(a){return g[i(a)]??null}function l(a){return h[i(a)]??null}function m(a){let b=i(a);return"pdf"===b||"docx"===b?b:null}},92293:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(b)}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)},c}(c(8142))}).call(this)},92761:a=>{"use strict";var b=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"===c.call(a)},g=function(a){if(!a||"[object Object]"!==c.call(a))return!1;var d,e=b.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&b.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!e&&!f)return!1;for(d in a);return void 0===d||b.call(a,d)},h=function(a,b){d&&"__proto__"===b.name?d(a,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):a[b.name]=b.newValue},i=function(a,c){if("__proto__"===c){if(!b.call(a,c))return;else if(e)return e(a,c).value}return a[c]};a.exports=function a(){var b,c,d,e,j,k,l=arguments[0],m=1,n=arguments.length,o=!1;for("boolean"==typeof l&&(o=l,l=arguments[1]||{},m=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});m<n;++m)if(b=arguments[m],null!=b)for(c in b)d=i(l,c),l!==(e=i(b,c))&&(o&&e&&(g(e)||(j=f(e)))?(j?(j=!1,k=d&&f(d)?d:[]):k=d&&g(d)?d:{},h(l,{name:c,newValue:a(o,k,e)})):void 0!==e&&h(l,{name:c,newValue:e}));return l}},92952:(a,b,c)=>{"use strict";c.d(b,{Cb:()=>o,HZ:()=>i,RD:()=>n,fm:()=>q,hw:()=>l,iN:()=>m,tA:()=>p});var d=c(29021),e=c(21820),f=c(33873),g=c(38475),h=c(92226);class i extends Error{constructor(a,b){super(b),this.name="ProjectPathError",this.code=a}}let j={version:1,projects:[]};function k(a){let b=(0,f.resolve)(a);try{return(0,d.realpathSync)(b)}catch{return b}}function l(){let a=(0,f.resolve)((0,h.$M)(),"projects.json");if(!(0,d.existsSync)(a))return j;try{var b=(0,d.readFileSync)(a,"utf8");try{let a=JSON.parse(b);if(!a||"object"!=typeof a||Array.isArray(a)||!("projects"in a)||!Array.isArray(a.projects))return j;let c=[];for(let b of a.projects)!(!b||"object"!=typeof b||Array.isArray(b))&&"path"in b&&"string"==typeof b.path&&b.path.trim()&&c.push({path:k(b.path.trim()),addedAt:"addedAt"in b&&"string"==typeof b.addedAt?b.addedAt:new Date(0).toISOString(),hidden:"hidden"in b&&!0===b.hidden});return{version:1,projects:c}}catch{return j}}catch{return j}}function m(a){let b=(0,f.resolve)((0,h.$M)(),"projects.json");(0,d.mkdirSync)((0,f.resolve)(b,".."),{recursive:!0});let c=`${b}.tmp-${process.pid}-${Date.now()}`;try{(0,d.writeFileSync)(c,`${JSON.stringify(a,null,2)}
|
|
99
|
+
`,"utf8"),(0,d.renameSync)(c,b)}finally{try{(0,d.existsSync)(c)&&(0,d.rmSync)(c)}catch{}}}function n(a,b,c=new Date().toISOString()){let d=k(b),e=(0,g.v)(d),f=a.projects.filter(a=>(0,g.v)(a.path)!==e);return f.push({path:d,addedAt:c,hidden:!1}),{version:1,projects:f}}function o(a,b){let c=k(b),d=(0,g.v)(c),e=a.projects.some(a=>(0,g.v)(a.path)===d),f=a.projects.map(a=>(0,g.v)(a.path)===d?{...a,hidden:!0}:a);return e||f.push({path:c,addedAt:new Date().toISOString(),hidden:!0}),{version:1,projects:f}}function p(a,b){let c=new Set(a.projects.filter(a=>a.hidden).map(a=>(0,g.v)(a.path))),d=[],e=new Set;for(let b of a.projects.filter(a=>!a.hidden).sort((a,b)=>b.addedAt.localeCompare(a.addedAt))){let a=(0,g.v)(b.path);e.has(a)||(e.add(a),d.push({path:b.path,addedAt:b.addedAt}))}let f=[],h=new Set;for(let a of new Set([...b].filter(Boolean).map(k))){let b=(0,g.v)(a);c.has(b)||e.has(b)||h.has(b)||(h.add(b),f.push({path:a}))}return f.sort((a,b)=>a.path.localeCompare(b.path)),[...d,...f]}function q(a){let b,c="string"==typeof a?a.trim():"";if(!c)throw new i("path_required","Path is required");let g="~"===c?(0,e.homedir)():c.startsWith("~/")?(0,f.resolve)((0,e.homedir)(),c.slice(2)):(0,f.isAbsolute)(c)?c:(0,f.resolve)(c);try{b=(0,d.statSync)(g)}catch{throw new i("directory_not_found",`Directory does not exist: ${a}`)}if(!b.isDirectory())throw new i("not_a_directory",`Path is not a directory: ${a}`);return g}},93012:(a,b,c)=>{var d=c(29021),e=c(9920),f=c(94117);b.openZip=function(a){return a.path?g(a.path).then(f.openArrayBuffer):a.buffer?e.resolve(f.openArrayBuffer(a.buffer)):a.file?e.resolve(a.file):e.reject(Error("Could not find file in options"))};var g=e.promisify(d.readFile)},93051:(a,b,c)=>{"use strict";let d;var e=c(26701),f=c(47413);let g=(a,b)=>({indentAtStart:b?a.indent.length:a.indentAtStart,lineWidth:a.options.lineWidth,minContentWidth:a.options.minContentWidth});function h(a,b){let c=JSON.stringify(a);if(b.options.doubleQuotedAsJSON)return c;let{implicitKey:d}=b,e=b.options.doubleQuotedMinMultiLineLength,h=b.indent||(/^(%|---|\.\.\.)/m.test(a)?" ":""),i="",j=0;for(let a=0,b=c[a];b;b=c[++a])if(" "===b&&"\\"===c[a+1]&&"n"===c[a+2]&&(i+=c.slice(j,a)+"\\ ",a+=1,j=a,b="\\"),"\\"===b)switch(c[a+1]){case"u":{i+=c.slice(j,a);let b=c.substr(a+2,4);switch(b){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:"00"===b.substr(0,2)?i+="\\x"+b.substr(2):i+=c.substr(a,6)}a+=5,j=a+1}break;case"n":if(d||'"'===c[a+2]||c.length<e)a+=1;else{for(i+=c.slice(j,a)+"\n\n";"\\"===c[a+2]&&"n"===c[a+3]&&'"'!==c[a+4];)i+="\n",a+=2;i+=h," "===c[a+2]&&(i+="\\"),a+=1,j=a+1}break;default:a+=1}return i=j?i+c.slice(j):c,d?i:f.foldFlowLines(i,h,f.FOLD_QUOTED,g(b,!1))}function i(a,b){if(!1===b.options.singleQuote||b.implicitKey&&a.includes("\n")||/[ \t]\n|\n[ \t]/.test(a))return h(a,b);let c=b.indent||(/^(%|---|\.\.\.)/m.test(a)?" ":""),d="'"+a.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
100
|
+
${c}`)+"'";return b.implicitKey?d:f.foldFlowLines(d,c,f.FOLD_FLOW,g(b,!1))}function j(a,b){let c,{singleQuote:d}=b.options;if(!1===d)c=h;else{let b=a.includes('"'),e=a.includes("'");c=b&&!e?i:e&&!b?h:d?i:h}return c(a,b)}try{d=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{d=/\n+(?!\n|$)/g}function k({comment:a,type:b,value:c},h,i,l){let m,n,o,p,{blockQuote:q,commentString:r,lineWidth:s}=h.options;if(!q||/\n[\t ]+$/.test(c))return j(c,h);let t=h.indent||(h.forceBlockIndent||(p=c,/^(%|---|\.\.\.)/m.test(p))?" ":""),u="literal"===q||"folded"!==q&&b!==e.Scalar.BLOCK_FOLDED&&(b===e.Scalar.BLOCK_LITERAL||!function(a,b,c){if(!b||b<0)return!1;let d=b-c,e=a.length;if(e<=d)return!1;for(let b=0,c=0;b<e;++b)if("\n"===a[b]){if(b-c>d)return!0;if(e-(c=b+1)<=d)return!1}return!0}(c,s,t.length));if(!c)return u?"|\n":">\n";for(n=c.length;n>0;--n){let a=c[n-1];if("\n"!==a&&" "!==a&&" "!==a)break}let v=c.substring(n),w=v.indexOf("\n");-1===w?m="-":c===v||w!==v.length-1?(m="+",l&&l()):m="",v&&(c=c.slice(0,-v.length),"\n"===v[v.length-1]&&(v=v.slice(0,-1)),v=v.replace(d,`$&${t}`));let x=!1,y=-1;for(o=0;o<c.length;++o){let a=c[o];if(" "===a)x=!0;else if("\n"===a)y=o;else break}let z=c.substring(0,y<o?y+1:o);z&&(c=c.substring(z.length),z=z.replace(/\n+/g,`$&${t}`));let A=t?"2":"1",B=(x?A:"")+m;if(a&&(B+=" "+r(a.replace(/ ?[\r\n]+/g," ")),i&&i()),!u){let a=c.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${t}`),d=!1,i=g(h,!0);"folded"!==q&&b!==e.Scalar.BLOCK_FOLDED&&(i.onOverflow=()=>{d=!0});let j=f.foldFlowLines(`${z}${a}${v}`,t,f.FOLD_BLOCK,i);if(!d)return`>${B}
|
|
101
|
+
${t}${j}`}return c=c.replace(/\n+/g,`$&${t}`),`|${B}
|
|
102
|
+
${t}${z}${c}${v}`}b.stringifyString=function(a,b,c,d){let{implicitKey:l,inFlow:m}=b,n="string"==typeof a.value?a:Object.assign({},a,{value:String(a.value)}),{type:o}=a;o!==e.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(n.value)&&(o=e.Scalar.QUOTE_DOUBLE);let p=a=>{switch(a){case e.Scalar.BLOCK_FOLDED:case e.Scalar.BLOCK_LITERAL:return l||m?j(n.value,b):k(n,b,c,d);case e.Scalar.QUOTE_DOUBLE:return h(n.value,b);case e.Scalar.QUOTE_SINGLE:return i(n.value,b);case e.Scalar.PLAIN:return function(a,b,c,d){let{type:h,value:i}=a,{actualString:l,implicitKey:m,indent:n,indentStep:o,inFlow:p}=b;if(m&&i.includes("\n")||p&&/[[\]{},]/.test(i))return j(i,b);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return m||p||!i.includes("\n")?j(i,b):k(a,b,c,d);if(!m&&!p&&h!==e.Scalar.PLAIN&&i.includes("\n"))return k(a,b,c,d);if(/^(%|---|\.\.\.)/m.test(i)){if(""===n)return b.forceBlockIndent=!0,k(a,b,c,d);else if(m&&n===o)return j(i,b)}let q=i.replace(/\n+/g,`$&
|
|
103
|
+
${n}`);if(l){let a=a=>a.default&&"tag:yaml.org,2002:str"!==a.tag&&a.test?.test(q),{compat:c,tags:d}=b.doc.schema;if(d.some(a)||c?.some(a))return j(i,b)}return m?q:f.foldFlowLines(q,n,f.FOLD_FLOW,g(b,!1))}(n,b,c,d);default:return null}},q=p(o);if(null===q){let{defaultKeyType:a,defaultStringType:c}=b.options,d=l&&a||c;if(null===(q=p(d)))throw Error(`Unsupported default string type ${d}`)}return q}},93134:(a,b,c)=>{var d=c(84906),e=c(53309);function f(a,b){a.text(b.value)}b.writeString=function(a,b){var c,g=d.invert(b),h={element:function(a,b){var c=a.element(j(b.name),b.attributes);b.children.forEach(function(a){i(c,a)})},text:f};function i(a,b){return h[b.type](a,b)}function j(a){var b=/^\{(.*)\}(.*)$/.exec(a);if(!b)return a;var c=g[b[1]];return c+(""===c?"":":")+b[2]}return c=e.create(j(a.name),{version:"1.0",encoding:"UTF-8",standalone:!0}),d.forEach(b,function(a,b){c.attribute("xmlns"+(""===b?"":":"+b),a)}),a.children.forEach(function(a){i(c,a)}),c.end()}},93602:(a,b,c)=>{"use strict";var d=c(19771),e=c(90976),f=c(95241),g=c(40686),h=c(73315),i=c(38721),j=c(12244);function k(a){if("number"==typeof a)return[a,a+1];if(Array.isArray(a))return 2===a.length?a:[a[0],a[1]];let{offset:b,source:c}=a;return[b,b+("string"==typeof c?c.length:1)]}function l(a){let b="",c=!1,d=!1;for(let e=0;e<a.length;++e){let f=a[e];switch(f[0]){case"#":b+=(""===b?"":d?"\n\n":"\n")+(f.substring(1)||" "),c=!0,d=!1;break;case"%":a[e+1]?.[0]!=="#"&&(e+=1),c=!1;break;default:c||(d=!0),c=!1}}return{comment:b,afterEmptyLine:d}}class m{constructor(a={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(a,b,c,d)=>{let e=k(a);d?this.warnings.push(new g.YAMLWarning(e,b,c)):this.errors.push(new g.YAMLParseError(e,b,c))},this.directives=new e.Directives({version:a.version||"1.2"}),this.options=a}decorate(a,b){let{comment:c,afterEmptyLine:d}=l(this.prelude);if(c){let e=a.contents;if(b)a.comment=a.comment?`${a.comment}
|
|
104
|
+
${c}`:c;else if(d||a.directives.docStart||!e)a.commentBefore=c;else if(h.isCollection(e)&&!e.flow&&e.items.length>0){let a=e.items[0];h.isPair(a)&&(a=a.key);let b=a.commentBefore;a.commentBefore=b?`${c}
|
|
105
|
+
${b}`:c}else{let a=e.commentBefore;e.commentBefore=a?`${c}
|
|
106
|
+
${a}`:c}}if(b){for(let b=0;b<this.errors.length;++b)a.errors.push(this.errors[b]);for(let b=0;b<this.warnings.length;++b)a.warnings.push(this.warnings[b])}else a.errors=this.errors,a.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:l(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(a,b=!1,c=-1){for(let b of a)yield*this.next(b);yield*this.end(b,c)}*next(a){switch(d.env.LOG_STREAM&&console.dir(a,{depth:null}),a.type){case"directive":this.directives.add(a.source,(b,c,d)=>{let e=k(a);e[0]+=b,this.onError(e,"BAD_DIRECTIVE",c,d)}),this.prelude.push(a.source),this.atDirectives=!0;break;case"document":{let b=i.composeDoc(this.options,this.directives,a,this.onError);this.atDirectives&&!b.directives.docStart&&this.onError(a,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(b,!1),this.doc&&(yield this.doc),this.doc=b,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(a.source);break;case"error":{let b=a.source?`${a.message}: ${JSON.stringify(a.source)}`:a.message,c=new g.YAMLParseError(k(a),"UNEXPECTED_TOKEN",b);this.atDirectives||!this.doc?this.errors.push(c):this.doc.errors.push(c);break}case"doc-end":{if(!this.doc){this.errors.push(new g.YAMLParseError(k(a),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let b=j.resolveEnd(a.end,a.offset+a.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),b.comment){let a=this.doc.comment;this.doc.comment=a?`${a}
|
|
107
|
+
${b.comment}`:b.comment}this.doc.range[2]=b.offset;break}default:this.errors.push(new g.YAMLParseError(k(a),"UNEXPECTED_TOKEN",`Unsupported token ${a.type}`))}}*end(a=!1,b=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(a){let a=Object.assign({_directives:this.directives},this.options),c=new f.Document(void 0,a);this.atDirectives&&this.onError(b,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,b,b],this.decorate(c,!1),yield c}}}b.Composer=m},94117:(a,b,c)=>{var d=c(5410),e=c(48631);b.openArrayBuffer=function(a){return e.loadAsync(a).then(function(a){return{exists:function(b){return null!==a.file(b)},read:function(b,c){return a.file(b).async("uint8array").then(function(a){return"base64"===c?d.fromByteArray(a):c?new TextDecoder(c).decode(a):a})},write:function(b,c){a.file(b,c)},toArrayBuffer:function(){return a.generateAsync({type:"arraybuffer"})}}})},b.splitPath=function(a){var b=a.lastIndexOf("/");return -1===b?{dirname:"",basename:a}:{dirname:a.substring(0,b),basename:a.substring(b+1)}},b.joinPath=function(){var a=Array.prototype.filter.call(arguments,function(a){return a}),b=[];return a.forEach(function(a){/^\//.test(a)?b=[a]:b.push(a)}),b.join("/")}},95241:(a,b,c)=>{"use strict";var d=c(3327),e=c(66273),f=c(73315),g=c(37521),h=c(49443),i=c(33824),j=c(12367),k=c(10140),l=c(83989),m=c(10878),n=c(90976);class o{constructor(a,b,c){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,f.NODE_TYPE,{value:f.DOC});let d=null;"function"==typeof b||Array.isArray(b)?d=b:void 0===c&&b&&(c=b,b=void 0);const e=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},c);this.options=e;let{version:g}=e;c?._directives?(this.directives=c._directives.atDocument(),this.directives.yaml.explicit&&(g=this.directives.yaml.version)):this.directives=new n.Directives({version:g}),this.setSchema(g,c),this.contents=void 0===a?null:this.createNode(a,d,c)}clone(){let a=Object.create(o.prototype,{[f.NODE_TYPE]:{value:f.DOC}});return a.commentBefore=this.commentBefore,a.comment=this.comment,a.errors=this.errors.slice(),a.warnings=this.warnings.slice(),a.options=Object.assign({},this.options),this.directives&&(a.directives=this.directives.clone()),a.schema=this.schema.clone(),a.contents=f.isNode(this.contents)?this.contents.clone(a.schema):this.contents,this.range&&(a.range=this.range.slice()),a}add(a){p(this.contents)&&this.contents.add(a)}addIn(a,b){p(this.contents)&&this.contents.addIn(a,b)}createAlias(a,b){if(!a.anchor){let c=k.anchorNames(this);a.anchor=!b||c.has(b)?k.findNewAnchor(b||"a",c):b}return new d.Alias(a.anchor)}createNode(a,b,c){let d;if("function"==typeof b)a=b.call({"":a},"",a),d=b;else if(Array.isArray(b)){let a=b.filter(a=>"number"==typeof a||a instanceof String||a instanceof Number).map(String);a.length>0&&(b=b.concat(a)),d=b}else void 0===c&&b&&(c=b,b=void 0);let{aliasDuplicateObjects:e,anchorPrefix:g,flow:h,keepUndefined:i,onTagObj:j,tag:l}=c??{},{onAnchor:n,setAnchors:o,sourceObjects:p}=k.createNodeAnchors(this,g||"a"),q={aliasDuplicateObjects:e??!0,keepUndefined:i??!1,onAnchor:n,onTagObj:j,replacer:d,schema:this.schema,sourceObjects:p},r=m.createNode(a,l,q);return h&&f.isCollection(r)&&(r.flow=!0),o(),r}createPair(a,b,c={}){let d=this.createNode(a,null,c),e=this.createNode(b,null,c);return new g.Pair(d,e)}delete(a){return!!p(this.contents)&&this.contents.delete(a)}deleteIn(a){return e.isEmptyPath(a)?null!=this.contents&&(this.contents=null,!0):!!p(this.contents)&&this.contents.deleteIn(a)}get(a,b){return f.isCollection(this.contents)?this.contents.get(a,b):void 0}getIn(a,b){return e.isEmptyPath(a)?!b&&f.isScalar(this.contents)?this.contents.value:this.contents:f.isCollection(this.contents)?this.contents.getIn(a,b):void 0}has(a){return!!f.isCollection(this.contents)&&this.contents.has(a)}hasIn(a){return e.isEmptyPath(a)?void 0!==this.contents:!!f.isCollection(this.contents)&&this.contents.hasIn(a)}set(a,b){null==this.contents?this.contents=e.collectionFromPath(this.schema,[a],b):p(this.contents)&&this.contents.set(a,b)}setIn(a,b){e.isEmptyPath(a)?this.contents=b:null==this.contents?this.contents=e.collectionFromPath(this.schema,Array.from(a),b):p(this.contents)&&this.contents.setIn(a,b)}setSchema(a,b={}){let c;switch("number"==typeof a&&(a=String(a)),a){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new n.Directives({version:"1.1"}),c={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=a:this.directives=new n.Directives({version:a}),c={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,c=null;break;default:{let b=JSON.stringify(a);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${b}`)}}if(b.schema instanceof Object)this.schema=b.schema;else if(c)this.schema=new i.Schema(Object.assign(c,b));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:a,jsonArg:b,mapAsMap:c,maxAliasCount:d,onAnchor:e,reviver:f}={}){let g={anchors:new Map,doc:this,keep:!a,mapAsMap:!0===c,mapKeyWarned:!1,maxAliasCount:"number"==typeof d?d:100},i=h.toJS(this.contents,b??"",g);if("function"==typeof e)for(let{count:a,res:b}of g.anchors.values())e(b,a);return"function"==typeof f?l.applyReviver(f,{"":i},"",i):i}toJSON(a,b){return this.toJS({json:!0,jsonArg:a,mapAsMap:!1,onAnchor:b})}toString(a={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in a&&(!Number.isInteger(a.indent)||0>=Number(a.indent))){let b=JSON.stringify(a.indent);throw Error(`"indent" option must be a positive integer, not ${b}`)}return j.stringifyDocument(this,a)}}function p(a){if(f.isCollection(a))return!0;throw Error("Expected a YAML collection as document contents")}b.Document=o},96321:function(a,b,c){(function(){var b=function(a,b){for(var c in b)d.call(b,c)&&(a[c]=b[c]);function e(){this.constructor=a}return e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype,a},d={}.hasOwnProperty;a.exports=function(a){function c(a,b){if(c.__super__.constructor.call(this,a),null==b)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(b)}return b(c,a),c.prototype.clone=function(){return Object.create(this)},c.prototype.toString=function(a){return this.options.writer.set(a).comment(this)},c}(c(8142))}).call(this)},96515:(a,b,c)=>{"use strict";c.d(b,{c:()=>f});let d=new Set(["off","minimal","low","medium","high","xhigh","max"]);function e(a,b){let c=a.toLocaleLowerCase(),d=b.filter(a=>`${a.provider}/${a.id}`.toLocaleLowerCase()===c);return d.length>0?d:b.filter(a=>a.id.toLocaleLowerCase()===c)}function f(a,b){if(Array.isArray(a))for(let f of a){var c;if("string"!=typeof f)continue;let a=f.trim();if(!a||(c=a).includes("*")||c.includes("?")||c.includes("["))continue;let g=e(a,b),h=a.lastIndexOf(":"),i=h>=0?a.slice(h+1):"";if(0===g.length&&h>=0&&d.has(i)&&(g=e(a.slice(0,h),b)),g.length<=1)continue;let j=g.map(a=>`${a.provider}/${a.id}`).sort().join(", ");throw Error(`Ambiguous enabledModels entry "${a}" matches multiple models: ${j}. Use provider/modelId.`)}}},96632:(a,b)=>{b.readRelationships=function(a){var b=[];return a.children.forEach(function(a){if("relationships:Relationship"===a.name){var c={relationshipId:a.attributes.Id,target:a.attributes.Target,type:a.attributes.Type};b.push(c)}}),new c(b)},b.defaultValue=new c([]),b.Relationships=c;function c(a){var b={};a.forEach(function(a){b[a.relationshipId]=a.target});var c={};return a.forEach(function(a){c[a.type]||(c[a.type]=[]),c[a.type].push(a.target)}),{findTargetByRelationshipId:function(a){return b[a]},findTargetsByType:function(a){return c[a]||[]}}}},96788:(a,b,c)=>{"use strict";a.exports=function(a,b,d,e,f,g){var h=a._getDomain,i=c(22418),j=i.tryCatch,k=i.errorObj,l=a._async;function m(a,b,c,d){this.constructor$(a),this._promise._captureStackTrace();var e=h();this._callback=null===e?b:i.domainBind(e,b),this._preservedValues=d===f?Array(this.length()):null,this._limit=c,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0)}function n(b,c,e,f){if("function"!=typeof c)return d("expecting a function but got "+i.classString(c));var g=0;if(void 0!==e)if("object"!=typeof e||null===e)return a.reject(TypeError("options argument must be an object but it is "+i.classString(e)));else{if("number"!=typeof e.concurrency)return a.reject(TypeError("'concurrency' must be a number but it is "+i.classString(e.concurrency)));g=e.concurrency}return new m(b,c,g="number"==typeof g&&isFinite(g)&&g>=1?g:0,f).promise()}i.inherits(m,b),m.prototype._asyncInit=function(){this._init$(void 0,-2)},m.prototype._init=function(){},m.prototype._promiseFulfilled=function(b,c){var d=this._values,f=this.length(),h=this._preservedValues,i=this._limit;if(c<0){if(d[c=-1*c-1]=b,i>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(i>=1&&this._inFlight>=i)return d[c]=b,this._queue.push(c),!1;null!==h&&(h[c]=b);var l=this._promise,m=this._callback,n=l._boundValue();l._pushContext();var o=j(m).call(n,b,c,f),p=l._popContext();if(g.checkForgottenReturns(o,p,null!==h?"Promise.filter":"Promise.map",l),o===k)return this._reject(o.e),!0;var q=e(o,this._promise);if(q instanceof a){var r=(q=q._target())._bitField;if((0x3010000&r)==0)return i>=1&&this._inFlight++,d[c]=q,q._proxy(this,-((c+1)*1)),!1;if((0x2000000&r)!=0)o=q._value();else if((0x1000000&r)!=0)return this._reject(q._reason()),!0;else return this._cancel(),!0}d[c]=o}return++this._totalResolved>=f&&(null!==h?this._filter(d,h):this._resolve(d),!0)},m.prototype._drainQueue=function(){for(var a=this._queue,b=this._limit,c=this._values;a.length>0&&this._inFlight<b;){if(this._isResolved())return;var d=a.pop();this._promiseFulfilled(c[d],d)}},m.prototype._filter=function(a,b){for(var c=b.length,d=Array(c),e=0,f=0;f<c;++f)a[f]&&(d[e++]=b[f]);d.length=e,this._resolve(d)},m.prototype.preservedValues=function(){return this._preservedValues},a.prototype.map=function(a,b){return n(this,a,b,null)},a.map=function(a,b,c,d){return n(a,b,c,d)}}},96851:(a,b,c)=>{"use strict";c.d(b,{AL:()=>f,BY:()=>g,Jq:()=>p,SQ:()=>i,_Q:()=>h,bX:()=>r,g4:()=>j,hk:()=>o,qy:()=>q});var d=c(18437),e=c(28672);let f=1,g=262144,h=3145728,i=64,j=1e4,k=new Set(["prompt","abort","get_state","set_model","set_thinking_level","compact","get_subagents","get_available_commands"]),l=/^d_[A-Za-z0-9_-]{16,64}$/,m=/^[A-Za-z0-9_-]{32,128}$/,n=/^[A-Za-z0-9._-]{1,128}$/;function o(a){return(0,e.u4)(a)&&!0===a.error&&"string"==typeof a.code}function p(a){let b=[];if(Array.isArray(a))for(let c of a){let a=function(a){if(!(0,e.u4)(a))return null;let b=(0,e.oJ)(a.provider)?.trim(),c=(0,e.oJ)(a.id)?.trim();if(!b||!c||b.length>512||c.length>512)return null;let d=(0,e.oJ)(a.name)?.trim()||c;return{provider:b,id:c,name:d.length>128?d.slice(0,128):d}}(c);a&&b.push(a)}return{op:"models",models:b}}function q(a,b=!1){let c;if("string"!=typeof a||0===a.length)return{error:!0,code:"invalid_json",message:"Empty frame"};if(Buffer.byteLength(a,"utf8")>(b?0x1000000:g))return{error:!0,code:"frame_too_large",message:"Frame is too large"};try{c=JSON.parse(a)}catch{return{error:!0,code:"invalid_json",message:"Frame is not JSON"}}if(!(0,e.u4)(c))return{error:!0,code:"invalid_frame",message:"Frame must be a JSON object"};let j=(0,e.oJ)(c.op);if(!j)return{error:!0,code:"invalid_frame",message:"op is required"};switch(j){case"request":{let{req:a,domain:b,action:d,args:e}=c;if("number"!=typeof a||!Number.isSafeInteger(a)||a<=0||"files"!==b&&"sessions"!==b&&"models"!==b&&"extensions"!==b&&"system"!==b||"string"!=typeof d||!/^[A-Za-z][A-Za-z0-9._-]{0,127}$/.test(d)||"object"!=typeof e||null===e||Array.isArray(e))return{error:!0,code:"invalid_request",message:"Invalid request envelope"};return{op:"request",req:a,domain:b,action:d,args:e}}case"hello":return function(a){if((0,e.i)(a.protocol)!==f)return{error:!0,code:"protocol",message:"Unsupported relay protocol"};let b={op:"hello",protocol:f},c=(0,e.oJ)(a.pairingSecret)?.trim(),d=(0,e.oJ)(a.deviceId)?.trim(),g=(0,e.oJ)(a.token)?.trim(),h=(0,e.oJ)(a.password),j=(0,e.oJ)(a.label)?.trim();if(c){if(!m.test(c))return{error:!0,code:"unauthorized",message:"Invalid pairing secret"};b.pairingSecret=c}else{if(!d||!g)return{error:!0,code:"unauthorized",message:"Pairing secret or device token is required"};if(!l.test(d)||!m.test(g))return{error:!0,code:"unauthorized",message:"Invalid device credentials"};b.deviceId=d,b.token=g}return void 0!==h&&(b.password=h),j&&(b.label=j.slice(0,i)),b}(c);case"sessions.list":return{op:"sessions.list"};case"models.list":return{op:"models.list"};case"usage":return{op:"usage"};case"session.open":{let a=(0,e.oJ)(c.id)?.trim();if(!a||!n.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return{op:"session.open",id:a}}case"session.close":return{op:"session.close"};case"session.create":{let a=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};let b={op:"session.create",cwd:a},d=(0,e.oJ)(c.message);if(void 0!==d){if(d.length>h)return{error:!0,code:"invalid_command",message:"prompt message is too long"};b.message=d}let f=(0,e.oJ)(c.provider)?.trim(),g=(0,e.oJ)(c.modelId)?.trim();f&&(b.provider=f.slice(0,512)),g&&(b.modelId=g.slice(0,512));let i=(0,e.oJ)(c.thinkingLevel)?.trim();return i&&(b.thinkingLevel=i.slice(0,32)),b}case"projects.list":return{op:"projects.list"};case"files.list":{let a=(0,e.oJ)(c.path)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_path",message:"path is too long"};return a?{op:"files.list",path:a}:{op:"files.list"}}case"slash.list":return{op:"slash.list"};case"files.read":{let a=(0,e.oJ)(c.path)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};return{op:"files.read",path:a}}case"session.delete":case"session.archive":{let a=(0,e.oJ)(c.id)?.trim();if(!a||!n.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return"session.delete"===j?{op:"session.delete",id:a}:{op:"session.archive",id:a}}case"session.rename":{let a=(0,e.oJ)(c.id)?.trim(),b=(0,e.oJ)(c.name)?.trim();if(!a||!n.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};if(!b||b.length>200)return{error:!0,code:"invalid_name",message:"name is required"};return{op:"session.rename",id:a,name:b}}case"sessions.archives":return{op:"sessions.archives"};case"session.restore":{let a=(0,e.oJ)(c.key)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_key",message:"archive key is required"};return{op:"session.restore",key:a}}case"worktrees.list":{let a=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return{op:"worktrees.list",cwd:a}}case"worktrees.add":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.branch)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_branch",message:"branch is required"};return{op:"worktrees.add",cwd:a,branch:b}}case"files.write":{let a=(0,e.oJ)(c.path)?.trim(),b=(0,e.oJ)(c.text);if(!a||a.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};if(void 0===b)return{error:!0,code:"invalid_text",message:"text is required"};if(b.length>8e4)return{error:!0,code:"invalid_text",message:"text is too long"};return{op:"files.write",path:a,text:b,..."string"==typeof c.revision?{revision:c.revision}:{},..."string"==typeof c.baseContentHash?{baseContentHash:c.baseContentHash}:{},...!0===c.createIfMissing?{createIfMissing:!0}:{}}}case"git.status":{let a=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return{op:"git.status",cwd:a}}case"git.diff":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.path)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>1024)return{error:!0,code:"invalid_path",message:"path is required"};return{op:"git.diff",cwd:a,path:b}}case"session.branches":case"session.export":{let a=(0,e.oJ)(c.id)?.trim();if(!a||!n.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};return"session.branches"===j?{op:"session.branches",id:a}:{op:"session.export",id:a}}case"session.leaf":{let a=(0,e.oJ)(c.id)?.trim(),b=(0,e.oJ)(c.leafId)?.trim();if(!a||!n.test(a))return{error:!0,code:"invalid_session",message:"session id is required"};if(!b||b.length>200)return{error:!0,code:"invalid_leaf",message:"leafId is required"};return{op:"session.leaf",id:a,leafId:b}}case"skills.list":case"plugins.list":{let a=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return"skills.list"===j?{op:"skills.list",cwd:a}:{op:"plugins.list",cwd:a}}case"skills.toggle":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.filePath)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>1024)return{error:!0,code:"invalid_path",message:"filePath is required"};if("boolean"!=typeof c.disableModelInvocation)return{error:!0,code:"invalid_flag",message:"disableModelInvocation must be a boolean"};return{op:"skills.toggle",cwd:a,filePath:b,disableModelInvocation:c.disableModelInvocation}}case"plugins.action":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.action)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if("install"!==b&&"remove"!==b&&"update"!==b&&"disable"!==b&&"enable"!==b)return{error:!0,code:"invalid_action",message:"plugin action is required"};let d=(0,e.oJ)(c.source)?.trim();if("update"!==b&&(!d||d.length>512))return{error:!0,code:"invalid_source",message:"source is required"};if(d&&d.length>512)return{error:!0,code:"invalid_source",message:"source is too long"};let f=(0,e.oJ)(c.scope)?.trim(),g="project"===f?"project":"global"===f?"global":void 0;return{op:"plugins.action",cwd:a,action:b,...d?{source:d}:{},...g?{scope:g}:{}}}case"mcp.list":{let a=(0,e.oJ)(c.cwd)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return a?{op:"mcp.list",cwd:a}:{op:"mcp.list"}}case"mcp.delete":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.name)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_name",message:"name is required"};return{op:"mcp.delete",cwd:a,name:b}}case"mcp.upsert":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.name)?.trim(),d=(0,e.oJ)(c.type)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(!b||b.length>128)return{error:!0,code:"invalid_name",message:"name is required"};if("stdio"!==d&&"http"!==d&&"sse"!==d)return{error:!0,code:"invalid_type",message:"type must be stdio, http, or sse"};let f=(0,e.oJ)(c.command)?.trim(),g=(0,e.oJ)(c.url)?.trim();if(f&&f.length>1024)return{error:!0,code:"invalid_command",message:"command is too long"};if(g&&g.length>1024)return{error:!0,code:"invalid_url",message:"url is too long"};let h={op:"mcp.upsert",cwd:a,name:b,type:d};if(f&&(h.command=f),g&&(h.url=g),Array.isArray(c.args)){let a=[];for(let b of c.args){if("string"!=typeof b)return{error:!0,code:"invalid_args",message:"args must be strings"};if(b.length>256)return{error:!0,code:"invalid_args",message:"arg is too long"};if(a.push(b),a.length>16)return{error:!0,code:"invalid_args",message:"too many args"}}a.length>0&&(h.args=a)}else if(null!=c.args)return{error:!0,code:"invalid_args",message:"args must be an array"};return h}case"session.import":{let a=(0,e.oJ)(c.fileName)?.trim(),b=(0,e.oJ)(c.content);if(!a||a.length>200||a.includes("/")||a.includes("\\"))return{error:!0,code:"invalid_file_name",message:"fileName is required"};if(void 0===b||!b.trim())return{error:!0,code:"invalid_content",message:"content is required"};if(b.length>18e4)return{error:!0,code:"invalid_content",message:"content is too long"};return{op:"session.import",fileName:a,content:b}}case"skills.search":{let a=(0,e.oJ)(c.query)?.trim();if(!a||a.length>200)return{error:!0,code:"invalid_query",message:"query is required"};let b=c.limit;if(void 0===b)return{op:"skills.search",query:a};let d=(0,e.i)(b);if(void 0===d||!Number.isInteger(d)||d<1||d>20)return{error:!0,code:"invalid_limit",message:"limit must be 1-20"};return{op:"skills.search",query:a,limit:d}}case"skills.install":{let a=(0,e.oJ)(c.package)?.trim(),b=(0,e.oJ)(c.scope)?.trim(),d=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>256)return{error:!0,code:"invalid_package",message:"package is required"};if("global"!==b&&"project"!==b)return{error:!0,code:"invalid_scope",message:"scope must be global or project"};if(d&&d.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"skills.install",package:a,scope:b,...d?{cwd:d}:{}}}case"agents.list":{let a=(0,e.oJ)(c.cwd)?.trim();if(a&&a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return a?{op:"agents.list",cwd:a}:{op:"agents.list"}}case"agents.save":{let a=(0,e.oJ)(c.name)?.trim(),b=(0,e.oJ)(c.description)?.trim(),d=(0,e.oJ)(c.systemPrompt),f=(0,e.oJ)(c.scope)?.trim(),g=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>64||!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a))return{error:!0,code:"invalid_name",message:"name must be kebab-case"};if(void 0===b||!b||b.length>500)return{error:!0,code:"invalid_description",message:"description is required"};if(void 0===d||d.length>2e4)return{error:!0,code:"invalid_prompt",message:"systemPrompt is required"};if("user"!==f&&"project"!==f)return{error:!0,code:"invalid_scope",message:"scope must be user or project"};if(g&&g.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"agents.save",name:a,description:b,systemPrompt:d,scope:f,...g?{cwd:g}:{}}}case"agents.delete":{let a=(0,e.oJ)(c.name)?.trim(),b=(0,e.oJ)(c.scope)?.trim(),d=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>64)return{error:!0,code:"invalid_name",message:"name is required"};if("user"!==b&&"project"!==b)return{error:!0,code:"invalid_scope",message:"scope must be user or project"};if(d&&d.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is too long"};return{op:"agents.delete",name:a,scope:b,...d?{cwd:d}:{}}}case"auth.providers":return{op:"auth.providers"};case"files.index":{let a=(0,e.oJ)(c.cwd)?.trim(),b=(0,e.oJ)(c.query);if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};if(void 0===b||b.length>100)return{error:!0,code:"invalid_query",message:"query is required"};return{op:"files.index",cwd:a,query:b}}case"projects.add":case"projects.remove":{let a=(0,e.oJ)(c.cwd)?.trim();if(!a||a.length>1024)return{error:!0,code:"invalid_cwd",message:"cwd is required"};return"projects.add"===j?{op:"projects.add",cwd:a}:{op:"projects.remove",cwd:a}}case"settings.get":if(void 0!==c.scope&&"global"!==c.scope&&"project"!==c.scope)return{error:!0,code:"invalid_settings",message:"scope must be global or project"};if(void 0!==c.cwd&&"string"!=typeof c.cwd)return{error:!0,code:"invalid_settings",message:"cwd must be a string"};return{op:"settings.get",...void 0!==c.scope?{scope:c.scope}:{},..."string"==typeof c.cwd?{cwd:c.cwd}:{}};case"settings.update":if(void 0!==c.settings&&!(0,e.u4)(c.settings))return{error:!0,code:"invalid_settings",message:"settings must be an object"};if(void 0!==c.scope&&"global"!==c.scope&&"project"!==c.scope)return{error:!0,code:"invalid_settings",message:"scope must be global or project"};if(void 0!==c.cwd&&"string"!=typeof c.cwd)return{error:!0,code:"invalid_settings",message:"cwd must be a string"};for(let a of["reset","confirm"])if(void 0!==c[a]&&(!Array.isArray(c[a])||c[a].some(a=>"string"!=typeof a)))return{error:!0,code:"invalid_settings",message:`${a} must be a string array`};if(void 0!==c.secrets&&(!(0,e.u4)(c.secrets)||Object.values(c.secrets).some(a=>"string"!=typeof a&&null!==a)))return{error:!0,code:"invalid_settings",message:"secrets must contain string or null values"};return{op:"settings.update",...(0,e.u4)(c.settings)?{settings:c.settings}:{},...void 0!==c.scope?{scope:c.scope}:{},..."string"==typeof c.cwd?{cwd:c.cwd}:{},...Array.isArray(c.reset)?{reset:c.reset}:{},...(0,e.u4)(c.secrets)?{secrets:c.secrets}:{},...Array.isArray(c.confirm)?{confirm:c.confirm}:{}};case"cmd":return function(a){let b=(0,e.i)(a.req);if(void 0===b||!Number.isInteger(b)||b<1||b>0x7fffffff)return{error:!0,code:"invalid_req",message:"cmd.req must be a positive integer"};let c=(0,e.oJ)(a.type)?.trim();if(!c||!k.has(c))return{error:!0,code:"unsupported_command",message:"Command is not allowed on the relay"};let f={op:"cmd",req:b,type:c};if("prompt"===c){let b=(0,e.oJ)(a.message);if(void 0===b)return{error:!0,code:"invalid_command",message:"prompt message is required"};if(b.length>h)return{error:!0,code:"invalid_command",message:"prompt message is too long"};if("images"in a&&null!=a.images){let b=a.images;if(!Array.isArray(b))return{error:!0,code:"invalid_command",message:"images must be an array"};let c=[];for(let a of b){if(!(0,e.u4)(a))return{error:!0,code:"invalid_command",message:"Each image must have data and mimeType"};let b=(0,e.oJ)(a.data),d=(0,e.oJ)(a.mimeType)?.trim();if(!b||!d)return{error:!0,code:"invalid_command",message:"Each image must have data and mimeType"};c.push({data:b,mimeType:d})}let g=(0,d.kc)(c.map(a=>({type:"image",...a})));if(g)return{error:!0,code:"invalid_command",message:g};c.length>0&&(f.images=c)}f.message=b}if("set_model"===c){let b=(0,e.oJ)(a.provider)?.trim(),c=(0,e.oJ)(a.modelId)?.trim();if(!b||!c)return{error:!0,code:"invalid_command",message:"set_model requires provider and modelId"};f.provider=b,f.modelId=c}if("set_thinking_level"===c){let b=(0,e.oJ)(a.level)?.trim();if(!b)return{error:!0,code:"invalid_command",message:"set_thinking_level requires level"};f.level=b.slice(0,32)}return f}(c);default:return{error:!0,code:"unknown_op",message:`Unknown op: ${j}`}}}function r(a){switch(a.type){case"prompt":return{type:"prompt",message:a.message??"",...a.images?{images:a.images}:{}};case"abort":return{type:"abort"};case"get_state":return{type:"get_state"};case"set_model":return{type:"set_model",provider:a.provider,modelId:a.modelId};case"set_thinking_level":return{type:"set_thinking_level",level:a.level};case"compact":return{type:"compact"};case"get_subagents":return{type:"get_subagents"};case"get_available_commands":return{type:"get_available_commands"}}}},97332:(a,b,c)=>{"use strict";var d=c(73315),e=c(37521),f=c(30598);class g extends f.YAMLMap{constructor(a){super(a),this.tag=g.tag}add(a){let b;b=d.isPair(a)?a:a&&"object"==typeof a&&"key"in a&&"value"in a&&null===a.value?new e.Pair(a.key,null):new e.Pair(a,null),f.findPair(this.items,b.key)||this.items.push(b)}get(a,b){let c=f.findPair(this.items,a);return!b&&d.isPair(c)?d.isScalar(c.key)?c.key.value:c.key:c}set(a,b){if("boolean"!=typeof b)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof b}`);let c=f.findPair(this.items,a);c&&!b?this.items.splice(this.items.indexOf(c),1):!c&&b&&this.items.push(new e.Pair(a))}toJSON(a,b){return super.toJSON(a,b,Set)}toString(a,b,c){if(!a)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},a,{allNullValues:!0}),b,c);throw Error("Set items must all have null values")}static from(a,b,c){let{replacer:d}=c,f=new this(a);if(b&&Symbol.iterator in Object(b))for(let a of b)"function"==typeof d&&(a=d.call(b,a,a)),f.items.push(e.createPair(a,null,c));return f}}g.tag="tag:yaml.org,2002:set",b.YAMLSet=g,b.set={collection:"map",identify:a=>a instanceof Set,nodeClass:g,default:!1,tag:"tag:yaml.org,2002:set",createNode:(a,b,c)=>g.from(a,b,c),resolve(a,b){if(d.isMap(a))if(a.hasAllNullValues(!0))return Object.assign(new g,a);else b("Set items must all have null values");else b("Expected a mapping for this tag");return a}}},98122:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{B6:()=>A,Hq:()=>s,MG:()=>t,QG:()=>x,Vi:()=>u,Wk:()=>C,Y8:()=>w,_C:()=>y,jj:()=>B,uY:()=>D});var e=c(77598),f=c(31421),g=c(73024),h=c(48161),i=c(76760),j=c(57975),k=c(80803),l=c(51671),m=c(44500),n=c(7173),o=c(12144),p=c(82043),q=a([o]);o=(q.then?(await q)():q)[0];class D extends Error{constructor(a,b){super(b),this.name="RelaySessionError",this.code=a}}function r(a){return{id:a.id,cwd:a.cwd,...a.name?{name:a.name}:{},created:a.created,modified:a.modified,messageCount:a.messageCount,firstMessage:a.firstMessage,...a.parentSessionId?{parentSessionId:a.parentSessionId}:{},...a.projectRoot?{projectRoot:a.projectRoot}:{},...a.projectKey?{projectKey:a.projectKey}:{},...a.worktreeBranch?{worktreeBranch:a.worktreeBranch}:{}}}async function s(){return{sessions:(await (0,p.dQ)()).map(r),runningIds:(0,o.HG)()}}async function t(a,b){let c=a=>{if("tool_execution_update"===a.type||"tool_execution_end"===a.type){let c=a.result??a.partialResult;if("object"==typeof c&&null!==c){let d=(0,n.x)([{...c,role:"toolResult",toolCallId:a.toolCallId,toolName:a.toolName}]).messages[0];if(d){let c=!0===d.truncated||(d.deferredImages?.count??0)>0,e={...d,contentPending:c};delete e.entryId,d.deferredImages&&(e.deferredImages={count:d.deferredImages.count});let f={...a,contentPending:c};delete f.result,delete f.partialResult,f["tool_execution_end"===a.type?"result":"partialResult"]=e,b(f);return}}}if(("message_start"===a.type||"message_end"===a.type)&&a.message){let c=(0,n.x)([a.message]).messages[0];if(c)return void b({...a,entryId:c.entryId,message:c})}b(a)},d=await (0,p.os)(a);if(!d){let d=(0,o.A4)(a);if(!d?.isAlive())throw new D("session_not_found","Session not found");let e=await d.send({type:"get_state"}),f=await d.send({type:"get_messages"});if("object"!=typeof f||null===f||!("messages"in f)||!Array.isArray(f.messages))throw new D("rpc_command_failed","Live session transcript is unavailable");let g=(0,n.x)(f.messages);if(!d.isAlive()||(0,o.A4)(a)!==d)throw new D("session_not_found","Session not found");let h=!1,i=d.onEvent(b=>{h||d.sessionId!==a||(0,o.A4)(a)!==d||c(b)}),j=d.onDestroy(()=>{h||d.sessionId!==a||b({type:"session_closed",sessionId:a})});return b({type:"connected",sessionId:a}),{snapshot:{cwd:d.cwd,leafId:null,...g,agent:{running:d.isRunning(),ready:!0,state:e}},dispose:()=>{h||(h=!0,i(),j())}}}let e=(0,p.cr)(d);if("too_large"===e.error)throw new D("session_file_too_large","Session file is too large to open in ompgui");if(!e.header)throw new D("session_file_malformed","Session file is missing or malformed");let f=e.entries,g=(0,m.kT)(f),h=(0,p.Uv)(f,g,{deferThinking:!1,deferToolResultImages:!1}),i=(0,n.x)(h.messages,h.entryIds),j=(0,o.A4)(a),k=!!j?.isAlive(),l={running:!!j?.isRunning(),ready:k};if(j?.isAlive())try{l={running:j.isRunning(),ready:!0,state:await j.send({type:"get_state"})}}catch{l={running:j.isRunning(),ready:!0}}let q=null,r=null,s=!1;return b({type:"connected",sessionId:a}),(async()=>{try{let e=j?.isAlive()?j:void 0;if(!e){let b=(0,p.eP)(d),{cwd:c}=(0,o.rb)(b?.cwd);({session:e}=await (0,o.OF)(a,d,c,void 0,!1,b?.cwd))}if(s||e.sessionId!==a)return;let f=e;q=f.onEvent(b=>{s||f.sessionId!==a||(0,o.A4)(a)!==f||c(b)}),r=f.onDestroy(()=>{s||f.sessionId!==a||b({type:"session_closed",sessionId:a})})}catch(a){s||b({type:"notice",level:"error",message:`Failed to start agent: ${a instanceof Error?a.message:String(a)}`})}})(),{snapshot:{...e.header.title?{title:e.header.title}:{},...e.header.cwd?{cwd:e.header.cwd}:{},leafId:g,...i,agent:l},dispose:()=>{s||(s=!0,q?.(),r?.())}}}async function u(a,b,c){let d=(0,o.A4)(a);if(d?.isAlive())return d.send(c?c():b);if("extension_ui_response"===b.type)throw new D("dialog_not_pending","This dialog is no longer pending in this session");let e=await (0,p.os)(a);if(!e)throw new D("session_not_found","Session not found");let f=(0,p.eP)(e),{cwd:g}=(0,o.rb)(f?.cwd);try{let{session:d}=await (0,o.OF)(a,e,g,void 0,!1,f?.cwd);return await d.send(c?c():b)}catch(a){if(a instanceof o.OZ||a instanceof k.x||a instanceof D)throw a;throw new D("rpc_command_failed",a instanceof Error?a.message:String(a))}}let E=(0,j.promisify)(f.execFile);async function v(a){let b=await (0,p.os)(a);if(!b)throw new D("session_not_found","Session not found");let c=(0,p.cr)(b);if("too_large"===c.error)throw new D("session_file_too_large","Session file is too large to open in ompgui");if(!c.header)throw new D("session_file_malformed","Session file is missing or malformed");let d=c.entries;return{filePath:b,document:c,entries:d}}async function w(a){let{entries:b}=await v(a),c=[];return!function a(b,c){for(let d of b){if(c.length>=40)return;if(0===d.children.length){let a=function(a){if("message"!==a.type||!("message"in a)||!a.message)return{label:a.type};let b="content"in a.message?a.message.content:void 0,c="string"==typeof b?b:Array.isArray(b)?b.filter(a=>"object"==typeof a&&null!==a&&"type"in a&&"text"===a.type&&"text"in a&&"string"==typeof a.text).map(a=>a.text).join(" "):"";(c=c.replace(/\s+/g," ").trim()).length>40&&(c=`${c.slice(0,40)}…`);let d="user"===a.message.role||"assistant"===a.message.role?a.message.role:void 0;return c||(c="assistant"===d?"assistant":"message"),{label:c,...d?{role:d}:{}}}(d.entry);c.push({id:d.entry.id,label:(d.label?.trim()||a.label).slice(0,40),...a.role?{role:a.role}:{}});continue}a(d.children,c)}}((0,m.lc)(b),c),{id:a,leafId:(0,m.kT)(b),branches:c}}async function x(a,b){let{document:c,entries:d}=await v(a);if(!new Set(d.map(a=>a.id)).has(b))throw new D("unknown_leaf","Unknown conversation branch");let e=(0,p.Uv)(d,b,{deferThinking:!1,deferToolResultImages:!1}),f=(0,n.x)(e.messages,e.entryIds);return{...c.header?.title?{title:c.header.title}:{},...c.header?.cwd?{cwd:c.header.cwd}:{},leafId:b,...f,agent:{running:!1,ready:!1}}}async function y(a,b){var c;let d,f=G.get(b);void 0===f&&(f=Symbol(),G.set(b,f));let{filePath:g}=await v(a),h=await z(g);if(G.get(b)!==f)throw new D("export_cancelled","Export owner disconnected or was revoked");let j=Buffer.byteLength(h,"utf8"),k=(0,i.basename)(g,".jsonl"),l=`omp-session-${k}.html`;if(j<=8e4)return{id:a,fileName:l,bytes:j,html:h};let m=(c={deviceId:b,fileName:l,html:h,bytes:j},!function(a=Date.now()){for(let[b,c]of F)c.expiresAt<=a&&F.delete(b);for(;F.size>=8;){let a=F.keys().next();if(a.done)break;F.delete(a.value)}}(),d=(0,e.randomUUID)(),F.set(d,{deviceId:c.deviceId,transferId:d,fileName:c.fileName,bytes:Buffer.from(c.html,"utf8"),size:c.bytes,expiresAt:Date.now()+9e5}),{transferId:d});return{id:a,fileName:l,bytes:j,transferId:m.transferId,size:j}}let F=new Map,G=new Map;async function z(a){let b=(0,l.resolveOmpBin)();if(!b)throw new D("omp_not_found","omp binary not found. Install oh-my-pi or set OMP_WEB_OMP_BIN.");let c=(0,i.join)((0,h.tmpdir)(),"ompgui-export");(0,g.mkdirSync)(c,{recursive:!0});let d=(0,i.join)(c,`${(0,e.randomUUID)()}.html`);try{return await E(b,["--export",a,d],{cwd:(0,h.tmpdir)(),timeout:6e4,maxBuffer:4194304,windowsHide:!0}),(0,g.readFileSync)(d,"utf8")}finally{(0,g.rmSync)(d,{force:!0})}}function A(a,b,c,d){let e=F.get(a);if(!e||e.deviceId!==d||e.expiresAt<=Date.now())throw e?.expiresAt!==void 0&&e.expiresAt<=Date.now()&&F.delete(a),new D("unknown_transfer","Unknown or expired export transfer");if(!Number.isSafeInteger(b)||b<0||b>e.size)throw new D("invalid_offset","Invalid export offset");if(!Number.isSafeInteger(c)||c<=0||c>98304)throw new D("invalid_length","Invalid export chunk length");let f=e.bytes.subarray(b,Math.min(e.size,b+c)),g=b+f.length;return{transferId:a,offset:b,data:Buffer.from(f).toString("base64"),bytes:f.length,nextOffset:g,complete:g>=e.size,size:e.size}}function B(a,b){let c=F.get(a);return c&&c.deviceId===b?{closed:F.delete(a)}:{closed:!1}}function C(a){if(void 0===a){G.clear(),F.clear();return}for(let[b,c]of(G.delete(a),F))c.deviceId===a&&F.delete(b)}d()}catch(a){d(a)}})},98308:(a,b,c)=>{"use strict";var d=c(10558);function e(a){d.call(this,a);for(var b=0;b<this.data.length;b++)a[b]=255&a[b]}c(58952).inherits(e,d),e.prototype.byteAt=function(a){return this.data[this.zero+a]},e.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f-this.zero;return -1},e.prototype.readAndCheckSignature=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.readData(4);return b===f[0]&&c===f[1]&&d===f[2]&&e===f[3]},e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},98658:(a,b,c)=>{"use strict";var d=c(58952),e=c(76281);function f(a){e.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(a){b.dataIsReady=!0,b.data=a,b.max=a&&a.length||0,b.type=d.getTypeOf(a),b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}d.inherits(f,e),f.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,b=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,b);break;case"uint8array":a=this.data.subarray(this.index,b);break;case"array":case"nodebuffer":a=this.data.slice(this.index,b)}return this.index=b,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=f},99122:a=>{"use strict";a.exports=function(a){function b(a){void 0!==a?(a=a._target(),this._bitField=a._bitField,this._settledValueField=a._isFateSealed()?a._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}b.prototype._settledValue=function(){return this._settledValueField};var c=b.prototype.value=function(){if(!this.isFulfilled())throw TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},d=b.prototype.error=b.prototype.reason=function(){if(!this.isRejected())throw TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},e=b.prototype.isFulfilled=function(){return(0x2000000&this._bitField)!=0},f=b.prototype.isRejected=function(){return(0x1000000&this._bitField)!=0},g=b.prototype.isPending=function(){return(0x3010000&this._bitField)==0},h=b.prototype.isResolved=function(){return(0x3000000&this._bitField)!=0};b.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},a.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},a.prototype._isCancelled=function(){return this._target().__isCancelled()},a.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},a.prototype.isPending=function(){return g.call(this._target())},a.prototype.isRejected=function(){return f.call(this._target())},a.prototype.isFulfilled=function(){return e.call(this._target())},a.prototype.isResolved=function(){return h.call(this._target())},a.prototype.value=function(){return c.call(this._target())},a.prototype.reason=function(){var a=this._target();return a._unsetRejectionIsUnhandled(),d.call(a)},a.prototype._value=function(){return this._settledValue()},a.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},a.PromiseInspection=b}},99601:(a,b,c)=>{"use strict";c.d(b,{j:()=>h});var d=c(77598);function e(a){return(0,d.createHash)("sha256").update(a,"utf8").digest()}function f(a=process.env.OMPGUI_PASSWORD??process.env.OMP_WEB_PASSWORD){return"string"==typeof a&&a.length>0}var g=c(78098);function h(a,b=Date.now()){if(a.pairingSecret){if(f()&&!function(a,b=process.env.OMPGUI_PASSWORD??process.env.OMP_WEB_PASSWORD){return f(b)&&(0,d.timingSafeEqual)(e(a),e(b))}(a.password??""))return{ok:!1,code:"password_required",message:"Workspace password is required to pair"};let c=(0,g.fM)(a.pairingSecret,a.label,b);return"error"in c?"expired"===c.error?{ok:!1,code:"pairing_expired",message:"Pairing link expired"}:"device_limit"===c.error?{ok:!1,code:"device_limit",message:"Too many paired devices"}:{ok:!1,code:"unauthorized",message:"Invalid pairing secret"}:{ok:!0,serverId:c.serverId,deviceId:c.deviceId,token:c.token}}if(!a.deviceId||!a.token)return{ok:!1,code:"unauthorized",message:"Device token is required"};let c=(0,g.Fh)(a.deviceId,a.token,b);return c?{ok:!0,serverId:c.serverId,deviceId:c.deviceId}:{ok:!1,code:"unauthorized",message:"Unknown device"}}},99689:(a,b,c)=>{"use strict";c.d(b,{h:()=>p,s:()=>s});var d=c(28672);let e={anthropic:["api.anthropic.com"],google:["generativelanguage.googleapis.com"],openai:["api.openai.com"],openrouter:["openrouter.ai"]},f={text:!0,image:!0};function g(a){return"string"==typeof a&&a.trim()?a.trim():void 0}function h(a){return"number"==typeof a&&Number.isFinite(a)&&a>=0?a:void 0}function i(a){return a.trim().toLocaleLowerCase().replace(/[^a-z0-9]/g,"")}function j(a){if(a)try{return new URL(a).hostname.toLocaleLowerCase().replace(/\.$/,"")}catch{return}}function k(a){return void 0!==a.cost.input&&void 0!==a.cost.output}function l(a,b,c){if(0===a.length||b<=0)return;let d=new Map;for(let b of a){let a=c(b),e=d.get(a);e?e.count+=1:d.set(a,{value:b,count:1})}let e=[...d.values()].sort((a,b)=>b.count-a.count),f=e[0];if(f&&!(f.count/b<.6)&&e[1]?.count!==f.count)return f.value}function m(a){if(0===a.length)return;let b=new Map;for(let c of a)b.set(c,(b.get(c)??0)+1);let c=[...b.entries()].sort((a,b)=>b[1]-a[1]);if(c[0]&&c[1]?.[1]!==c[0][1])return c[0][0]}function n(a,b){return{status:"reliable",method:b,cost:{input:a.cost.input,output:a.cost.output,cacheRead:a.cost.cacheRead??0,cacheWrite:a.cost.cacheWrite??0},providerId:a.providerId,providerName:a.providerName,support:1,total:1}}let o="https://models.dev/api.json";class p extends Error{constructor(a,b,c){super(b),this.code=a,this.status=c,this.name="ModelCatalogError"}}async function q(){let a=await fetch(o,{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(15e3)});if(!a.ok)throw Error("Catalog request failed");let b=function(a){if(!(0,d.u4)(a))return[];let b=[];for(let[e,i]of Object.entries(a)){if(!(0,d.u4)(i)||!(0,d.u4)(i.models))continue;let a=g(i.name)??e,j=g(i.api);for(let[k,l]of Object.entries(i.models)){var c;if(!(0,d.u4)(l))continue;let i=g(l.id)??k;if(!i)continue;let m=g(l.name)??i,n={key:`${e}/${i}`,providerId:e,providerName:a,id:i,name:m,cost:(c=l.cost,(0,d.u4)(c)?{input:h(c.input),output:h(c.output),cacheRead:h(c.cache_read),cacheWrite:h(c.cache_write)}:{})};j&&(n.providerBaseUrl=j),"boolean"==typeof l.reasoning&&(n.reasoning=l.reasoning);let o=function(a){if(!(0,d.u4)(a)||!Array.isArray(a.input))return;let b=Array.from(new Set(a.input.filter(a=>"string"==typeof a).map(a=>a.trim().toLocaleLowerCase()).filter(a=>!0===f[a])));return b.length?b:void 0}(l.modalities);if(o&&(n.input=o),(0,d.u4)(l.limit)){let a=l.limit.context,b=l.limit.output;"number"==typeof a&&Number.isFinite(a)&&a>0&&(n.contextWindow=a),"number"==typeof b&&Number.isFinite(b)&&b>0&&(n.maxTokens=b)}b.push(n)}}return b}(await a.json());if(0===b.length)throw Error("Catalog is empty");return b}async function r(){let a=globalThis.__ompguiModelsDevCatalogCache;if(a||(a=globalThis.__ompguiModelsDevCatalogCache={entries:[],expiresAt:0}),a.entries.length>0&&a.expiresAt>Date.now())return a.entries;a.inFlight||(a.inFlight=q().then(b=>(a.entries=b,a.expiresAt=Date.now()+36e5,b)).finally(()=>{a.inFlight=void 0}));try{return await a.inFlight}catch{if(a.entries.length>0)return a.entries;throw new p("catalog_unavailable","The public model catalog is unavailable. Try again later.",502)}}async function s(a){let{query:b,provider:c="",baseUrl:d="",limit:f=50}=a;if("string"!=typeof b||b.length>120)throw new p("invalid_args","query must be a string of at most 120 characters",400);if("string"!=typeof c||c.length>120)throw new p("invalid_args","provider must be a string of at most 120 characters",400);if("string"!=typeof d||d.length>500)throw new p("invalid_args","baseUrl must be a string of at most 500 characters",400);if("number"!=typeof f||!Number.isInteger(f)||f<1||f>100)throw new p("invalid_args","limit must be an integer between 1 and 100",400);let g=await r();return{models:function(a,b,c="",d=50){let e=b.trim().toLocaleLowerCase(),f=c.trim().toLocaleLowerCase(),g=Math.max(1,Math.min(100,Math.floor(d)||50));return a.map(a=>{let b,c,d,g,h,i;return{entry:a,rank:(b=a.id.toLocaleLowerCase(),c=a.name.toLocaleLowerCase(),d=a.providerId.toLocaleLowerCase(),g=a.providerName.toLocaleLowerCase(),h=`${d}/${b}`,i=20,e?b===e||h===e?i=0:c===e?i=1:b.startsWith(e)||c.startsWith(e)?i=2:h.startsWith(e)||d===e||g===e?i=3:b.includes(e)||c.includes(e)?i=4:(h.includes(e)||g.includes(e))&&(i=5):i=10,i<20&&f&&(d===f||g===f)&&(i-=.5),i)}}).filter(({rank:a})=>!e||a<20).sort((a,b)=>a.rank-b.rank||a.entry.providerName.localeCompare(b.entry.providerName,void 0,{sensitivity:"base"})||a.entry.name.localeCompare(b.entry.name,void 0,{numeric:!0,sensitivity:"base"})||a.entry.id.localeCompare(b.entry.id,void 0,{numeric:!0,sensitivity:"base"})).slice(0,g).map(({entry:a})=>a)}(g,b,c,f),recommendation:function(a,b,c="",d=""){let f,g=a.filter(a=>(function(a,b){let c=b.trim().toLocaleLowerCase().replace(/^models\//,"");if(!c)return!1;let d=a.id.trim().toLocaleLowerCase().replace(/^models\//,""),e=`${a.providerId.toLocaleLowerCase()}/${d}`;return d===c||e===c})(a,b));if(0===g.length)return{exactMatches:0,metadataMethod:"none",preset:{},price:{status:"unreliable",reason:"no-exact-match",support:0,total:0}};let h=g.filter(a=>{let b;return!!(b=i(c))&&(i(a.providerId)===b||i(a.providerName)===b)}),o=g.filter(a=>(function(a,b){let c=j(b);if(!c)return!1;let d=e[i(a.providerId)]??[],f=j(a.providerBaseUrl);return[...d,...f?[f]:[]].some(a=>c===a||c.endsWith(`.${a}`))})(a,d)),p=h[0]??o[0],q=h.length?"provider":o.length?"base-url":"consensus",r=p?{name:p.name,reasoning:p.reasoning,input:p.input,contextWindow:p.contextWindow,maxTokens:p.maxTokens}:(f=g.length,{name:l(g.map(a=>a.name),f,a=>a.toLocaleLowerCase()),reasoning:l(g.flatMap(a=>void 0===a.reasoning?[]:[a.reasoning]),f,String),input:l(g.flatMap(a=>a.input?[a.input]:[]),f,a=>[...a].sort().join(",")),contextWindow:l(g.flatMap(a=>void 0===a.contextWindow?[]:[a.contextWindow]),f,String),maxTokens:l(g.flatMap(a=>void 0===a.maxTokens?[]:[a.maxTokens]),f,String)}),s=h.find(k),t=o.find(k),u=s?n(s,"provider"):t?n(t,"base-url"):function(a){let b=a.filter(k);if(0===b.length)return{status:"unreliable",reason:"no-valid-price",support:0,total:0};if(1===b.length)return{status:"unreliable",reason:"insufficient-support",support:1,total:1};let c=new Map;for(let a of b){let b=JSON.stringify([a.cost.input,a.cost.output]),d=c.get(b);d?d.push(a):c.set(b,[a])}let d=[...c.values()].sort((a,b)=>b.length-a.length),e=d[0];if(!e)return{status:"unreliable",reason:"no-valid-price",support:0,total:b.length};let f=e.length/b.length>=.6||e.length>=5;if(d[1]?.length===e.length||!f)return{status:"unreliable",reason:"conflict",support:e.length,total:b.length};let g=m(e.map(a=>a.cost.cacheRead??0))??0,h=m(e.map(a=>a.cost.cacheWrite??0))??0;return{status:"reliable",method:"consensus",cost:{input:e[0].cost.input,output:e[0].cost.output,cacheRead:g,cacheWrite:h},support:e.length,total:b.length}}(g);return"reliable"===u.status&&(r.cost=u.cost),{exactMatches:g.length,metadataMethod:q,matchedProviderId:p?.providerId,matchedProviderName:p?.providerName,preset:r,price:u}}(g,b,c,d),source:o}}}};
|