@redocly/reference-docs 2.11.6 → 2.11.10
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/bin/cli/commands/redocly-docs-cli.min.js +301 -401
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +104 -104
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +940 -1053
- package/lib/components/Endpoint/Endpoint.js +1 -1
- package/lib/components/RedoclyReferenceDocs.js +1 -1
- package/lib/components/Samples/ExampleSwitch.js +1 -1
- package/lib/components/Samples/SamplesTabs.js +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
- package/lib/components/VersionSwitcher.d.ts +1 -1
- package/lib/components/VersionSwitcher.js +1 -1
- package/lib/components/common/Dropdown/Dropdown.d.ts +3 -0
- package/lib/components/common/Dropdown/Dropdown.js +2 -0
- package/lib/components/common/Dropdown/index.d.ts +2 -0
- package/lib/components/common/Dropdown/index.js +2 -0
- package/lib/components/common/Dropdown/styled.d.ts +23 -0
- package/lib/components/common/Dropdown/styled.js +2 -0
- package/lib/components/common/Dropdown/types.d.ts +24 -0
- package/lib/components/common/Dropdown/types.js +2 -0
- package/lib/components/common/TextField.d.ts +2 -2
- package/lib/components/common/TextField.js +1 -1
- package/lib/components/console/AuthPanel.d.ts +2 -2
- package/lib/components/console/AuthPanel.js +1 -1
- package/lib/components/console/ParameterDropdown.js +1 -1
- package/lib/components/console/RequestBody.js +1 -1
- package/lib/components/console/ServerDropdown.d.ts +3 -5
- package/lib/components/console/ServerDropdown.js +1 -1
- package/lib/components/console/ServerVariable.js +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +1 -1
- package/lib/components/styled.elements.d.ts +1 -1
- package/lib/components/styled.elements.js +1 -1
- package/lib/redoc-lib/src/common-elements/index.d.ts +0 -1
- package/lib/redoc-lib/src/common-elements/index.js +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
- package/lib/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +1 -1
- package/lib/redoc-lib/src/components/Fields/EnumValues.d.ts +1 -1
- package/lib/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +1 -1
- package/lib/redoc-lib/src/components/Operation/Operation.js +1 -1
- package/lib/redoc-lib/src/components/OptionsProvider.d.ts +5 -5
- package/lib/redoc-lib/src/components/OptionsProvider.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
- package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +1 -1
- package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +1 -1
- package/lib/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
- package/lib/redoc-lib/src/components/SideMenu/SideMenu.d.ts +1 -1
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +1 -1
- package/lib/redoc-lib/src/index.d.ts +2 -2
- package/lib/redoc-lib/src/index.js +1 -1
- package/lib-esm/components/Endpoint/Endpoint.js +1 -1
- package/lib-esm/components/RedoclyReferenceDocs.js +1 -1
- package/lib-esm/components/Samples/ExampleSwitch.js +1 -1
- package/lib-esm/components/Samples/SamplesTabs.js +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
- package/lib-esm/components/VersionSwitcher.d.ts +1 -1
- package/lib-esm/components/VersionSwitcher.js +1 -1
- package/lib-esm/components/common/Dropdown/Dropdown.d.ts +3 -0
- package/lib-esm/components/common/Dropdown/Dropdown.js +2 -0
- package/lib-esm/components/common/Dropdown/index.d.ts +2 -0
- package/lib-esm/components/common/Dropdown/index.js +2 -0
- package/lib-esm/components/common/Dropdown/styled.d.ts +23 -0
- package/lib-esm/components/common/Dropdown/styled.js +2 -0
- package/lib-esm/components/common/Dropdown/types.d.ts +24 -0
- package/lib-esm/components/common/Dropdown/types.js +2 -0
- package/lib-esm/components/common/TextField.d.ts +2 -2
- package/lib-esm/components/common/TextField.js +1 -1
- package/lib-esm/components/console/AuthPanel.d.ts +2 -2
- package/lib-esm/components/console/AuthPanel.js +1 -1
- package/lib-esm/components/console/ParameterDropdown.js +1 -1
- package/lib-esm/components/console/RequestBody.js +1 -1
- package/lib-esm/components/console/ServerDropdown.d.ts +3 -5
- package/lib-esm/components/console/ServerDropdown.js +1 -1
- package/lib-esm/components/console/ServerVariable.js +1 -1
- package/lib-esm/components/index.d.ts +2 -0
- package/lib-esm/components/index.js +1 -1
- package/lib-esm/components/styled.elements.d.ts +1 -1
- package/lib-esm/components/styled.elements.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/index.d.ts +0 -1
- package/lib-esm/redoc-lib/src/common-elements/index.js +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/DropdownOrLabel/DropdownOrLabel.js +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Operation/Operation.js +1 -1
- package/lib-esm/redoc-lib/src/components/OptionsProvider.d.ts +5 -5
- package/lib-esm/redoc-lib/src/components/OptionsProvider.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/SideMenu.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +1 -1
- package/lib-esm/redoc-lib/src/index.d.ts +2 -2
- package/lib-esm/redoc-lib/src/index.js +1 -1
- package/package.json +2 -3
- package/lib/components/Tabs/CollapsingTabs/CollapsingDropdown.d.ts +0 -36
- package/lib/components/Tabs/CollapsingTabs/CollapsingDropdown.js +0 -2
- package/lib/redoc-lib/src/common-elements/dropdown.d.ts +0 -79
- package/lib/redoc-lib/src/common-elements/dropdown.js +0 -2
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingDropdown.d.ts +0 -36
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingDropdown.js +0 -2
- package/lib-esm/redoc-lib/src/common-elements/dropdown.d.ts +0 -79
- package/lib-esm/redoc-lib/src/common-elements/dropdown.js +0 -2
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
var
|
|
1
|
+
var yr=Math.pow;/*!
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.11.
|
|
5
|
+
* Version: "2.11.10"
|
|
6
6
|
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,o)=>{h.exports=o(27698)},77766:(h,I,o)=>{h.exports=o(8065)},72119:(h,I,o)=>{h.exports=o(57448)},20116:(h,I,o)=>{h.exports=o(11955)},94473:(h,I,o)=>{h.exports=o(61577)},78580:(h,I,o)=>{h.exports=o(33778)},2991:(h,I,o)=>{h.exports=o(61798)},3649:(h,I,o)=>{h.exports=o(82073)},92762:(h,I,o)=>{h.exports=o(2348)},59340:(h,I,o)=>{h.exports=o(8933)},51942:(h,I,o)=>{h.exports=o(63383)},26295:(h,I,o)=>{h.exports=o(86209)},86902:(h,I,o)=>{h.exports=o(23059)},93476:(h,I,o)=>{h.exports=o(27460)},52424:(h,I,o)=>{h.exports=o(72010)},53592:(h,I,o)=>{h.exports=o(27385)},78363:(h,I,o)=>{h.exports=o(81522)},19996:(h,I,o)=>{h.exports=o(32209)},30699:(h,I,o)=>{h.exports=o(44442)},28834:(h,I,o)=>{h.exports=o(57152)},95683:(h,I,o)=>{h.exports=o(69447)},95238:(h,I,o)=>{h.exports=o(81493)},189:(h,I,o)=>{h.exports=o(76094)},32752:(h,I,o)=>{h.exports=o(70573)},44341:(h,I,o)=>{h.exports=o(73685)},58377:(h,I,o)=>{h.exports=o(27533)},13038:(h,I,o)=>{h.exports=o(39057)},63263:(h,I,o)=>{h.exports=o(84710)},24889:(h,I,o)=>{h.exports=o(74303)},89356:(h,I,o)=>{h.exports=o(93799)},79542:(h,I,o)=>{h.exports=o(55122)},69798:(h,I,o)=>{h.exports=o(29531)},13535:(h,I,o)=>{h.exports=o(10856)},83863:(h,I,o)=>{h.exports=o(31524)},51446:(h,I,o)=>{h.exports=o(86600)},23882:(h,I,o)=>{h.exports=o(9759)},63109:(h,I,o)=>{h.exports=o(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=N,I.fromByteArray=_;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)o[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function A(H){var R=H.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=H.indexOf("=");X===-1&&(X=R);var M=X===R?0:4-X%4;return[X,M]}function g(H){var R=A(H),X=R[0],M=R[1];return(X+M)*3/4-M}function L(H,R,X){return(R+X)*3/4-X}function N(H){var R,X=A(H),M=X[0],C=X[1],V=new v(L(H,M,C)),J=0,q=C>0?M-4:M,Q;for(Q=0;Q<q;Q+=4)R=c[H.charCodeAt(Q)]<<18|c[H.charCodeAt(Q+1)]<<12|c[H.charCodeAt(Q+2)]<<6|c[H.charCodeAt(Q+3)],V[J++]=R>>16&255,V[J++]=R>>8&255,V[J++]=R&255;return C===2&&(R=c[H.charCodeAt(Q)]<<2|c[H.charCodeAt(Q+1)]>>4,V[J++]=R&255),C===1&&(R=c[H.charCodeAt(Q)]<<10|c[H.charCodeAt(Q+1)]<<4|c[H.charCodeAt(Q+2)]>>2,V[J++]=R>>8&255,V[J++]=R&255),V}function B(H){return o[H>>18&63]+o[H>>12&63]+o[H>>6&63]+o[H&63]}function j(H,R,X){for(var M,C=[],V=R;V<X;V+=3)M=(H[V]<<16&16711680)+(H[V+1]<<8&65280)+(H[V+2]&255),C.push(B(M));return C.join("")}function _(H){for(var R,X=H.length,M=X%3,C=[],V=16383,J=0,q=X-M;J<q;J+=V)C.push(j(H,J,J+V>q?q:J+V));return M===1?(R=H[X-1],C.push(o[R>>2]+o[R<<4&63]+"==")):M===2&&(R=(H[X-2]<<8)+H[X-1],C.push(o[R>>10]+o[R>>4&63]+o[R<<2&63]+"=")),C.join("")}},50706:(h,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,o)=>{"use strict";/*!
|
|
7
7
|
* The buffer module from node.js, for the browser.
|
|
8
8
|
*
|
|
9
9
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/var c=o(79742),v=o(80645),x=o(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(pe,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(G),pe.__proto__=g.prototype):(pe===null&&(pe=new g(G)),pe.length=G),pe}function g(pe,G,K){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(pe,G,K);if(typeof pe=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,pe)}return L(this,pe,G,K)}g.poolSize=8192,g._augment=function(pe){return pe.__proto__=g.prototype,pe};function L(pe,G,K,we){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?R(pe,G,K,we):typeof G=="string"?_(pe,G,K):X(pe,G)}g.from=function(pe,G,K){return L(null,pe,G,K)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function N(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function B(pe,G,K,we){return N(G),G<=0?A(pe,G):K!==void 0?typeof we=="string"?A(pe,G).fill(K,we):A(pe,G).fill(K):A(pe,G)}g.alloc=function(pe,G,K){return B(null,pe,G,K)};function j(pe,G){if(N(G),pe=A(pe,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var K=0;K<G;++K)pe[K]=0;return pe}g.allocUnsafe=function(pe){return j(null,pe)},g.allocUnsafeSlow=function(pe){return j(null,pe)};function _(pe,G,K){if((typeof K!="string"||K==="")&&(K="utf8"),!g.isEncoding(K))throw new TypeError('"encoding" must be a valid string encoding');var we=V(G,K)|0;pe=A(pe,we);var Re=pe.write(G,K);return Re!==we&&(pe=pe.slice(0,Re)),pe}function H(pe,G){var K=G.length<0?0:M(G.length)|0;pe=A(pe,K);for(var we=0;we<K;we+=1)pe[we]=G[we]&255;return pe}function R(pe,G,K,we){if(G.byteLength,K<0||G.byteLength<K)throw new RangeError("'offset' is out of bounds");if(G.byteLength<K+(we||0))throw new RangeError("'length' is out of bounds");return K===void 0&&we===void 0?G=new Uint8Array(G):we===void 0?G=new Uint8Array(G,K):G=new Uint8Array(G,K,we),g.TYPED_ARRAY_SUPPORT?(pe=G,pe.__proto__=g.prototype):pe=H(pe,G),pe}function X(pe,G){if(g.isBuffer(G)){var K=M(G.length)|0;return pe=A(pe,K),pe.length===0||G.copy(pe,0,0,K),pe}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Mt(G.length)?A(pe,0):H(pe,G);if(G.type==="Buffer"&&x(G.data))return H(pe,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(pe){if(pe>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return pe|0}function C(pe){return+pe!=pe&&(pe=0),g.alloc(+pe)}g.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},g.compare=function(G,K){if(!g.isBuffer(G)||!g.isBuffer(K))throw new TypeError("Arguments must be Buffers");if(G===K)return 0;for(var we=G.length,Re=K.length,be=0,Ae=Math.min(we,Re);be<Ae;++be)if(G[be]!==K[be]){we=G[be],Re=K[be];break}return we<Re?-1:Re<we?1:0},g.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(G,K){if(!x(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return g.alloc(0);var we;if(K===void 0)for(K=0,we=0;we<G.length;++we)K+=G[we].length;var Re=g.allocUnsafe(K),be=0;for(we=0;we<G.length;++we){var Ae=G[we];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(Re,be),be+=Ae.length}return Re};function V(pe,G){if(g.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var K=pe.length;if(K===0)return 0;for(var we=!1;;)switch(G){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":case void 0:return St(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Gt(pe).length;default:if(we)return St(pe).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=V;function J(pe,G,K){var we=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0,G>>>=0,K<=G))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return rt(this,G,K);case"utf8":case"utf-8":return oe(this,G,K);case"ascii":return Le(this,G,K);case"latin1":case"binary":return ke(this,G,K);case"base64":return ue(this,G,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,G,K);default:if(we)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function q(pe,G,K){var we=pe[G];pe[G]=pe[K],pe[K]=we}g.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var K=0;K<G;K+=2)q(this,K,K+1);return this},g.prototype.swap32=function(){var G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var K=0;K<G;K+=4)q(this,K,K+3),q(this,K+1,K+2);return this},g.prototype.swap64=function(){var G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var K=0;K<G;K+=8)q(this,K,K+7),q(this,K+1,K+6),q(this,K+2,K+5),q(this,K+3,K+4);return this},g.prototype.toString=function(){var G=this.length|0;return G===0?"":arguments.length===0?oe(this,0,G):J.apply(this,arguments)},g.prototype.equals=function(G){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:g.compare(this,G)===0},g.prototype.inspect=function(){var G="",K=I.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,K).match(/.{2}/g).join(" "),this.length>K&&(G+=" ... ")),"<Buffer "+G+">"},g.prototype.compare=function(G,K,we,Re,be){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(K===void 0&&(K=0),we===void 0&&(we=G?G.length:0),Re===void 0&&(Re=0),be===void 0&&(be=this.length),K<0||we>G.length||Re<0||be>this.length)throw new RangeError("out of range index");if(Re>=be&&K>=we)return 0;if(Re>=be)return-1;if(K>=we)return 1;if(K>>>=0,we>>>=0,Re>>>=0,be>>>=0,this===G)return 0;for(var Ae=be-Re,T=we-K,Ie=Math.min(Ae,T),W=this.slice(Re,be),O=G.slice(K,we),P=0;P<Ie;++P)if(W[P]!==O[P]){Ae=W[P],T=O[P];break}return Ae<T?-1:T<Ae?1:0};function Q(pe,G,K,we,Re){if(pe.length===0)return-1;if(typeof K=="string"?(we=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,isNaN(K)&&(K=Re?0:pe.length-1),K<0&&(K=pe.length+K),K>=pe.length){if(Re)return-1;K=pe.length-1}else if(K<0)if(Re)K=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:Y(pe,G,K,we,Re);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Re?Uint8Array.prototype.indexOf.call(pe,G,K):Uint8Array.prototype.lastIndexOf.call(pe,G,K):Y(pe,[G],K,we,Re);throw new TypeError("val must be string, number or Buffer")}function Y(pe,G,K,we,Re){var be=1,Ae=pe.length,T=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(pe.length<2||G.length<2)return-1;be=2,Ae/=2,T/=2,K/=2}function Ie(D,ee){return be===1?D[ee]:D.readUInt16BE(ee*be)}var W;if(Re){var O=-1;for(W=K;W<Ae;W++)if(Ie(pe,W)===Ie(G,O===-1?0:W-O)){if(O===-1&&(O=W),W-O+1===T)return O*be}else O!==-1&&(W-=W-O),O=-1}else for(K+T>Ae&&(K=Ae-T),W=K;W>=0;W--){for(var P=!0,ie=0;ie<T;ie++)if(Ie(pe,W+ie)!==Ie(G,ie)){P=!1;break}if(P)return W}return-1}g.prototype.includes=function(G,K,we){return this.indexOf(G,K,we)!==-1},g.prototype.indexOf=function(G,K,we){return Q(this,G,K,we,!0)},g.prototype.lastIndexOf=function(G,K,we){return Q(this,G,K,we,!1)};function fe(pe,G,K,we){K=Number(K)||0;var Re=pe.length-K;we?(we=Number(we),we>Re&&(we=Re)):we=Re;var be=G.length;if(be%2!=0)throw new TypeError("Invalid hex string");we>be/2&&(we=be/2);for(var Ae=0;Ae<we;++Ae){var T=parseInt(G.substr(Ae*2,2),16);if(isNaN(T))return Ae;pe[K+Ae]=T}return Ae}function te(pe,G,K,we){return wt(St(G,pe.length-K),pe,K,we)}function ne(pe,G,K,we){return wt(Vt(G),pe,K,we)}function ye(pe,G,K,we){return ne(pe,G,K,we)}function ve(pe,G,K,we){return wt(Gt(G),pe,K,we)}function de(pe,G,K,we){return wt(Nt(G,pe.length-K),pe,K,we)}g.prototype.write=function(G,K,we,Re){if(K===void 0)Re="utf8",we=this.length,K=0;else if(we===void 0&&typeof K=="string")Re=K,we=this.length,K=0;else if(isFinite(K))K=K|0,isFinite(we)?(we=we|0,Re===void 0&&(Re="utf8")):(Re=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-K;if((we===void 0||we>be)&&(we=be),G.length>0&&(we<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");Re||(Re="utf8");for(var Ae=!1;;)switch(Re){case"hex":return fe(this,G,K,we);case"utf8":case"utf-8":return te(this,G,K,we);case"ascii":return ne(this,G,K,we);case"latin1":case"binary":return ye(this,G,K,we);case"base64":return ve(this,G,K,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,G,K,we);default:if(Ae)throw new TypeError("Unknown encoding: "+Re);Re=(""+Re).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(pe,G,K){return G===0&&K===pe.length?c.fromByteArray(pe):c.fromByteArray(pe.slice(G,K))}function oe(pe,G,K){K=Math.min(pe.length,K);for(var we=[],Re=G;Re<K;){var be=pe[Re],Ae=null,T=be>239?4:be>223?3:be>191?2:1;if(Re+T<=K){var Ie,W,O,P;switch(T){case 1:be<128&&(Ae=be);break;case 2:Ie=pe[Re+1],(Ie&192)==128&&(P=(be&31)<<6|Ie&63,P>127&&(Ae=P));break;case 3:Ie=pe[Re+1],W=pe[Re+2],(Ie&192)==128&&(W&192)==128&&(P=(be&15)<<12|(Ie&63)<<6|W&63,P>2047&&(P<55296||P>57343)&&(Ae=P));break;case 4:Ie=pe[Re+1],W=pe[Re+2],O=pe[Re+3],(Ie&192)==128&&(W&192)==128&&(O&192)==128&&(P=(be&15)<<18|(Ie&63)<<12|(W&63)<<6|O&63,P>65535&&P<1114112&&(Ae=P))}}Ae===null?(Ae=65533,T=1):Ae>65535&&(Ae-=65536,we.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),we.push(Ae),Re+=T}return Ve(we)}var De=4096;function Ve(pe){var G=pe.length;if(G<=De)return String.fromCharCode.apply(String,pe);for(var K="",we=0;we<G;)K+=String.fromCharCode.apply(String,pe.slice(we,we+=De));return K}function Le(pe,G,K){var we="";K=Math.min(pe.length,K);for(var Re=G;Re<K;++Re)we+=String.fromCharCode(pe[Re]&127);return we}function ke(pe,G,K){var we="";K=Math.min(pe.length,K);for(var Re=G;Re<K;++Re)we+=String.fromCharCode(pe[Re]);return we}function rt(pe,G,K){var we=pe.length;(!G||G<0)&&(G=0),(!K||K<0||K>we)&&(K=we);for(var Re="",be=G;be<K;++be)Re+=It(pe[be]);return Re}function Ze(pe,G,K){for(var we=pe.slice(G,K),Re="",be=0;be<we.length;be+=2)Re+=String.fromCharCode(we[be]+we[be+1]*256);return Re}g.prototype.slice=function(G,K){var we=this.length;G=~~G,K=K===void 0?we:~~K,G<0?(G+=we,G<0&&(G=0)):G>we&&(G=we),K<0?(K+=we,K<0&&(K=0)):K>we&&(K=we),K<G&&(K=G);var Re;if(g.TYPED_ARRAY_SUPPORT)Re=this.subarray(G,K),Re.__proto__=g.prototype;else{var be=K-G;Re=new g(be,void 0);for(var Ae=0;Ae<be;++Ae)Re[Ae]=this[Ae+G]}return Re};function Qe(pe,G,K){if(pe%1!=0||pe<0)throw new RangeError("offset is not uint");if(pe+G>K)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,K,we){G=G|0,K=K|0,we||Qe(G,K,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<K&&(be*=256);)Re+=this[G+Ae]*be;return Re},g.prototype.readUIntBE=function(G,K,we){G=G|0,K=K|0,we||Qe(G,K,this.length);for(var Re=this[G+--K],be=1;K>0&&(be*=256);)Re+=this[G+--K]*be;return Re},g.prototype.readUInt8=function(G,K){return K||Qe(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,K){return K||Qe(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,K){return K||Qe(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,K){return K||Qe(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,K){return K||Qe(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,K,we){G=G|0,K=K|0,we||Qe(G,K,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<K&&(be*=256);)Re+=this[G+Ae]*be;return be*=128,Re>=be&&(Re-=Math.pow(2,8*K)),Re},g.prototype.readIntBE=function(G,K,we){G=G|0,K=K|0,we||Qe(G,K,this.length);for(var Re=K,be=1,Ae=this[G+--Re];Re>0&&(be*=256);)Ae+=this[G+--Re]*be;return be*=128,Ae>=be&&(Ae-=Math.pow(2,8*K)),Ae},g.prototype.readInt8=function(G,K){return K||Qe(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,K){K||Qe(G,2,this.length);var we=this[G]|this[G+1]<<8;return we&32768?we|4294901760:we},g.prototype.readInt16BE=function(G,K){K||Qe(G,2,this.length);var we=this[G+1]|this[G]<<8;return we&32768?we|4294901760:we},g.prototype.readInt32LE=function(G,K){return K||Qe(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,K){return K||Qe(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,K){return K||Qe(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,K){return K||Qe(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,K){return K||Qe(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,K){return K||Qe(G,8,this.length),v.read(this,G,!1,52,8)};function ut(pe,G,K,we,Re,be){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Re||G<be)throw new RangeError('"value" argument is out of bounds');if(K+we>pe.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,K,we,Re){if(G=+G,K=K|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,K,we,be,0)}var Ae=1,T=0;for(this[K]=G&255;++T<we&&(Ae*=256);)this[K+T]=G/Ae&255;return K+we},g.prototype.writeUIntBE=function(G,K,we,Re){if(G=+G,K=K|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,K,we,be,0)}var Ae=we-1,T=1;for(this[K+Ae]=G&255;--Ae>=0&&(T*=256);)this[K+Ae]=G/T&255;return K+we},g.prototype.writeUInt8=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[K]=G&255,K+1};function pt(pe,G,K,we){G<0&&(G=65535+G+1);for(var Re=0,be=Math.min(pe.length-K,2);Re<be;++Re)pe[K+Re]=(G&255<<8*(we?Re:1-Re))>>>(we?Re:1-Re)*8}g.prototype.writeUInt16LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8):pt(this,G,K,!0),K+2},g.prototype.writeUInt16BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>8,this[K+1]=G&255):pt(this,G,K,!1),K+2};function yt(pe,G,K,we){G<0&&(G=4294967295+G+1);for(var Re=0,be=Math.min(pe.length-K,4);Re<be;++Re)pe[K+Re]=G>>>(we?Re:3-Re)*8&255}g.prototype.writeUInt32LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[K+3]=G>>>24,this[K+2]=G>>>16,this[K+1]=G>>>8,this[K]=G&255):yt(this,G,K,!0),K+4},g.prototype.writeUInt32BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>24,this[K+1]=G>>>16,this[K+2]=G>>>8,this[K+3]=G&255):yt(this,G,K,!1),K+4},g.prototype.writeIntLE=function(G,K,we,Re){if(G=+G,K=K|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,K,we,be-1,-be)}var Ae=0,T=1,Ie=0;for(this[K]=G&255;++Ae<we&&(T*=256);)G<0&&Ie===0&&this[K+Ae-1]!==0&&(Ie=1),this[K+Ae]=(G/T>>0)-Ie&255;return K+we},g.prototype.writeIntBE=function(G,K,we,Re){if(G=+G,K=K|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,K,we,be-1,-be)}var Ae=we-1,T=1,Ie=0;for(this[K+Ae]=G&255;--Ae>=0&&(T*=256);)G<0&&Ie===0&&this[K+Ae+1]!==0&&(Ie=1),this[K+Ae]=(G/T>>0)-Ie&255;return K+we},g.prototype.writeInt8=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,1,127,-128),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[K]=G&255,K+1},g.prototype.writeInt16LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8):pt(this,G,K,!0),K+2},g.prototype.writeInt16BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>8,this[K+1]=G&255):pt(this,G,K,!1),K+2},g.prototype.writeInt32LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8,this[K+2]=G>>>16,this[K+3]=G>>>24):yt(this,G,K,!0),K+4},g.prototype.writeInt32BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>24,this[K+1]=G>>>16,this[K+2]=G>>>8,this[K+3]=G&255):yt(this,G,K,!1),K+4};function qe(pe,G,K,we,Re,be){if(K+we>pe.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function lt(pe,G,K,we,Re){return Re||qe(pe,G,K,4,34028234663852886e22,-34028234663852886e22),v.write(pe,G,K,we,23,4),K+4}g.prototype.writeFloatLE=function(G,K,we){return lt(this,G,K,!0,we)},g.prototype.writeFloatBE=function(G,K,we){return lt(this,G,K,!1,we)};function vt(pe,G,K,we,Re){return Re||qe(pe,G,K,8,17976931348623157e292,-17976931348623157e292),v.write(pe,G,K,we,52,8),K+8}g.prototype.writeDoubleLE=function(G,K,we){return vt(this,G,K,!0,we)},g.prototype.writeDoubleBE=function(G,K,we){return vt(this,G,K,!1,we)},g.prototype.copy=function(G,K,we,Re){if(we||(we=0),!Re&&Re!==0&&(Re=this.length),K>=G.length&&(K=G.length),K||(K=0),Re>0&&Re<we&&(Re=we),Re===we||G.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(Re<0)throw new RangeError("sourceEnd out of bounds");Re>this.length&&(Re=this.length),G.length-K<Re-we&&(Re=G.length-K+we);var be=Re-we,Ae;if(this===G&&we<K&&K<Re)for(Ae=be-1;Ae>=0;--Ae)G[Ae+K]=this[Ae+we];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<be;++Ae)G[Ae+K]=this[Ae+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+be),K);return be},g.prototype.fill=function(G,K,we,Re){if(typeof G=="string"){if(typeof K=="string"?(Re=K,K=0,we=this.length):typeof we=="string"&&(Re=we,we=this.length),G.length===1){var be=G.charCodeAt(0);be<256&&(G=be)}if(Re!==void 0&&typeof Re!="string")throw new TypeError("encoding must be a string");if(typeof Re=="string"&&!g.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re)}else typeof G=="number"&&(G=G&255);if(K<0||this.length<K||this.length<we)throw new RangeError("Out of range index");if(we<=K)return this;K=K>>>0,we=we===void 0?this.length:we>>>0,G||(G=0);var Ae;if(typeof G=="number")for(Ae=K;Ae<we;++Ae)this[Ae]=G;else{var T=g.isBuffer(G)?G:St(new g(G,Re).toString()),Ie=T.length;for(Ae=0;Ae<we-K;++Ae)this[Ae+K]=T[Ae%Ie]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function dt(pe){if(pe=kt(pe).replace(mt,""),pe.length<2)return"";for(;pe.length%4!=0;)pe=pe+"=";return pe}function kt(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function It(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function St(pe,G){G=G||1/0;for(var K,we=pe.length,Re=null,be=[],Ae=0;Ae<we;++Ae){if(K=pe.charCodeAt(Ae),K>55295&&K<57344){if(!Re){if(K>56319){(G-=3)>-1&&be.push(239,191,189);continue}else if(Ae+1===we){(G-=3)>-1&&be.push(239,191,189);continue}Re=K;continue}if(K<56320){(G-=3)>-1&&be.push(239,191,189),Re=K;continue}K=(Re-55296<<10|K-56320)+65536}else Re&&(G-=3)>-1&&be.push(239,191,189);if(Re=null,K<128){if((G-=1)<0)break;be.push(K)}else if(K<2048){if((G-=2)<0)break;be.push(K>>6|192,K&63|128)}else if(K<65536){if((G-=3)<0)break;be.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((G-=4)<0)break;be.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return be}function Vt(pe){for(var G=[],K=0;K<pe.length;++K)G.push(pe.charCodeAt(K)&255);return G}function Nt(pe,G){for(var K,we,Re,be=[],Ae=0;Ae<pe.length&&!((G-=2)<0);++Ae)K=pe.charCodeAt(Ae),we=K>>8,Re=K%256,be.push(Re),be.push(we);return be}function Gt(pe){return c.toByteArray(dt(pe))}function wt(pe,G,K,we){for(var Re=0;Re<we&&!(Re+K>=G.length||Re>=pe.length);++Re)G[Re+K]=pe[Re];return Re}function Mt(pe){return pe!==pe}},21924:(h,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,A){var g=c(b,!!A);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),A=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var _=b(c,d,arguments);if(A&&g){var H=A(_,"length");H.configurable&&g(_,"length",{value:1+L(0,j.length-(arguments.length-1))})}return _};var N=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:N}):h.exports.apply=N},82801:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,C,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),C&&(A(d(C,"pairs")),M.state.closeBrackets=C,M.addKeyMap(b))});function d(M,C){return C=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[C]!=null?M[C]:v[C]}var b={Backspace:N,Enter:B};function A(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}A(v.pairs+"`");function g(M){return function(C){return H(C,M)}}function L(M){var C=M.state.closeBrackets;if(!C||C.override)return C;var V=M.getModeAt(M.getCursor());return V.closeBrackets||C}function N(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=R(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var q=J.length-1;q>=0;q--){var Y=J[q].head;M.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(M){var C=L(M),V=C&&d(C,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=R(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}M.operation(function(){var Y=M.lineSeparator()||`
|
|
12
|
-
`;M.replaceSelection(Y+Y,null),j(M,-1),J=M.listSelections();for(var fe=0;fe<J.length;fe++){var te=J[fe].head.line;M.indentLine(te,null,!0),M.indentLine(te+1,null,!0)}})}function j(M,C){for(var V=[],J=M.listSelections(),q=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==M.getCursor()&&(q=Q);var fe=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:fe,head:fe})}M.setSelections(V,q)}function _(M){var C=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(C?-1:1)),head:new x(M.head.line,M.head.ch+(C?1:-1))}}function H(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),q=J.indexOf(C);if(q==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),fe=J.charAt(q+1)==C,te=M.listSelections(),ne=q%2==0,ye,ve=0;ve<te.length;ve++){var de=te[ve],ue=de.head,oe,De=M.getRange(ue,x(ue.line,ue.ch+1));if(ne&&!de.empty())oe="surround";else if((fe||!ne)&&De==C)fe&&X(M,ue)?oe="both":Y.indexOf(C)>=0&&M.getRange(ue,x(ue.line,ue.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(fe&&ue.ch>1&&Y.indexOf(C)>=0&&M.getRange(x(ue.line,ue.ch-2),ue)==C+C){if(ue.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;oe="addFour"}else if(fe){var Ve=ue.ch==0?" ":M.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(De)&&Ve!=C&&!c.isWordChar(Ve))oe="both";else return c.Pass}else if(ne&&(De.length===0||/\s/.test(De)||Q.indexOf(De)>-1))oe="both";else return c.Pass;if(!ye)ye=oe;else if(ye!=oe)return c.Pass}var Le=q%2?J.charAt(q-1):C,ke=q%2?C:J.charAt(q+1);M.operation(function(){if(ye=="skip")j(M,1);else if(ye=="skipThree")j(M,3);else if(ye=="surround"){for(var rt=M.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Le+rt[Ze]+ke;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=_(rt[Ze]);M.setSelections(rt)}else ye=="both"?(M.replaceSelection(Le+ke,null),M.triggerElectric(Le+ke),j(M,-1)):ye=="addFour"&&(M.replaceSelection(Le+Le+Le+Le,"before"),j(M,1))})}function R(M,C){var V=M.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(M,C){var V=M.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(M.getTokenTypeAt(C)))}})},4328:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function A(j,_,H){var R=j.getLineHandle(_.line),X=_.ch-1,M=H&&H.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(H),V=!M&&X>=0&&C.test(R.text.charAt(X))&&d[R.text.charAt(X)]||C.test(R.text.charAt(X+1))&&d[R.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(H&&H.strict&&J>0!=(X==_.ch))return null;var q=j.getTokenTypeAt(x(_.line,X+1)),Q=g(j,x(_.line,X+(J>0?1:0)),J,q,H);return Q==null?null:{from:x(_.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,_,H,R,X){for(var M=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),q=H>0?Math.min(_.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,_.line-C),Q=_.line;Q!=q;Q+=H){var Y=j.getLine(Q);if(!!Y){var fe=H>0?0:Y.length-1,te=H>0?Y.length:-1;if(!(Y.length>M))for(Q==_.line&&(fe=_.ch-(H<0?1:0));fe!=te;fe+=H){var ne=Y.charAt(fe);if(J.test(ne)&&(R===void 0||(j.getTokenTypeAt(x(Q,fe+1))||"")==(R||""))){var ye=d[ne];if(ye&&ye.charAt(1)==">"==H>0)V.push(ne);else if(V.length)V.pop();else return{pos:x(Q,fe),ch:ne}}}}}return Q-H==(H>0?j.lastLine():j.firstLine())?!1:null}function L(j,_,H){for(var R=j.state.matchBrackets.maxHighlightLineLength||1e3,X=H&&H.highlightNonMatching,M=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&A(j,C[V].head,H);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=R){var q=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:q})),J.to&&j.getLine(J.to.line).length<=R&&M.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<M.length;Y++)M[Y].clear()})};if(_)setTimeout(Q,800);else return Q}}function N(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,_,H){H&&H!=c.Init&&(j.off("cursorActivity",N),j.off("focus",N),j.off("blur",B),B(j)),_&&(j.state.matchBrackets=typeof _=="object"?_:{},j.on("cursorActivity",N),j.on("focus",N),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,_,H){return(H||typeof _=="boolean")&&(H?(H.strict=_,_=H):_=_?{strict:!0}:null),A(this,j,_)}),c.defineExtension("scanForBracket",function(j,_,H,R){return g(this,j,_,H,R)})})},71707:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,C,V){if(!C)return M.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var q in V)J[q]=V[q];return M.showHint(J)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,M);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(M,C){if(this.cm=M,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},A=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,C){var V=M.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,M,V):J.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(A(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<M.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var C=this,V=++this.tick;H(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,M)})}},finishUpdate:function(M,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new j(this,M),c.signal(M,"shown")))}};function g(M,C,V){var J=M.options.hintOptions,q={};for(var Q in X)q[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(q[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(q[Q]=V[Q]);return q.hint.resolve&&(q.hint=q.hint.resolve(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function N(M,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var q=M.options.customKeys,Q=q?{}:V;function Y(ne,ye){var ve;typeof ye!="string"?ve=function(de){return ye(de,C)}:V.hasOwnProperty(ye)?ve=V[ye]:ve=ye,Q[ne]=ve}if(q)for(var fe in q)q.hasOwnProperty(fe)&&Y(fe,q[fe]);var te=M.options.extraKeys;if(te)for(var fe in te)te.hasOwnProperty(fe)&&Y(fe,te[fe]);return Q}function B(M,C){for(;C&&C!=M;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==M)return C;C=C.parentNode}}function j(M,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=C,this.picked=!1;var V=this,J=M.cm,q=J.getInputField().ownerDocument,Q=q.defaultView||q.parentWindow,Y=this.hints=q.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var fe=M.cm.options.theme;Y.className="CodeMirror-hints "+fe,this.selectedHint=C.selectedHint||0;for(var te=C.list,ne=0;ne<te.length;++ne){var ye=Y.appendChild(q.createElement("li")),ve=te[ne],de=v+(ne!=this.selectedHint?"":" "+x);ve.className!=null&&(de=ve.className+" "+de),ye.className=de,ne==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ne,ye.setAttribute("role","option"),ve.render?ve.render(ye,C,ve):ye.appendChild(q.createTextNode(ve.displayText||L(ve))),ye.hintId=ne}var ue=M.options.container||q.body,oe=J.cursorCoords(M.options.alignWithWord?C.from:null),De=oe.left,Ve=oe.bottom,Le=!0,ke=0,rt=0;if(ue!==q.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(ue).position)!==-1,Qe=Ze?ue:ue.offsetParent,ut=Qe.getBoundingClientRect(),pt=q.body.getBoundingClientRect();ke=ut.left-pt.left-Qe.scrollLeft,rt=ut.top-pt.top-Qe.scrollTop}Y.style.left=De-ke+"px",Y.style.top=Ve-rt+"px";var yt=Q.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),qe=Q.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);ue.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=M.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,vt=M.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var dt=lt.bottom-qe;if(dt>0){var kt=lt.bottom-lt.top,It=oe.top-(oe.bottom-lt.top);if(It-kt>0)Y.style.top=(Ve=oe.top-kt-rt)+"px",Le=!1;else if(kt>qe){Y.style.height=qe-5+"px",Y.style.top=(Ve=oe.bottom-lt.top-rt)+"px";var St=J.getCursor();C.from.ch!=St.ch&&(oe=J.cursorCoords(St),Y.style.left=(De=oe.left-ke)+"px",lt=Y.getBoundingClientRect())}}var Vt=lt.right-yt;if(vt&&(Vt+=J.display.nativeBarWidth),Vt>0&&(lt.right-lt.left>yt&&(Y.style.width=yt-5+"px",Vt-=lt.right-lt.left-yt),Y.style.left=(De=oe.left-Vt-ke)+"px"),vt)for(var Nt=Y.firstChild;Nt;Nt=Nt.nextSibling)Nt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=N(M,{moveFocus:function(Mt,pe){V.changeActive(V.selectedHint+Mt,pe)},setFocus:function(Mt){V.changeActive(Mt)},menuSize:function(){return V.screenAmount()},length:te.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var Gt;J.on("blur",this.onBlur=function(){Gt=setTimeout(function(){M.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Gt)})}J.on("scroll",this.onScroll=function(){var Mt=J.getScrollInfo(),pe=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var G=Ve+mt.top-Mt.top,K=G-(Q.pageYOffset||(q.documentElement||q.body).scrollTop);if(Le||(K+=Y.offsetHeight),K<=pe.top||K>=pe.bottom)return M.close();Y.style.top=G+"px",Y.style.left=De+mt.left-Mt.left+"px"}),c.on(Y,"dblclick",function(Mt){var pe=B(Y,Mt.target||Mt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),V.pick())}),c.on(Y,"click",function(Mt){var pe=B(Y,Mt.target||Mt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var wt=this.getSelectedHintRange();return(wt.from!==0||wt.to!==0)&&this.scrollToActive(),c.signal(C,"select",te[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,C){if(M>=this.data.list.length?M=C?this.data.list.length-1:0:M<0&&(M=C?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=M],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var M=this.getSelectedHintRange(),C=this.hints.childNodes[M.from],V=this.hints.childNodes[M.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function _(M,C){if(!M.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function H(M,C,V,J){if(M.async)M(C,J,V);else{var q=M(C,V);q&&q.then?q.then(J):J(q)}}function R(M,C){var V=M.getHelpers(C,"hint"),J;if(V.length){var q=function(Q,Y,fe){var te=_(Q,V);function ne(ye){if(ye==te.length)return Y(null);H(te[ye],Q,fe,function(ve){ve&&ve.list.length>0?Y(ve):ne(ye+1)})}ne(0)};return q.async=!0,q.supportsSelection=!0,q}else return(J=M.getHelper(M.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:R}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),J=M.getTokenAt(V),q,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?q=J.string.substr(0,V.ch-J.start):(q="",Q=V);for(var fe=[],te=0;te<C.words.length;te++){var ne=C.words[te];ne.slice(0,q.length)==q&&fe.push(ne)}if(fe.length)return{list:fe,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,fe,te){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ne.appendChild(te.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ye(ve){if(!ne.parentNode)return c.off(document,"mousemove",ye);ne.style.top=Math.max(0,ve.clientY-ne.offsetHeight-5)+"px",ne.style.left=ve.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(fe),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function A(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,fe,te,ne){var ye=d(Y,fe,te);function ve(){c.off(ne,"mouseout",ve),ye&&(A(ye),ye=null)}var de=setInterval(function(){if(ye)for(var ue=ne;;ue=ue.parentNode){if(ue&&ue.nodeType==11&&(ue=ue.host),ue==document.body)return;if(!ue){ve();break}}if(!ye)return clearInterval(de)},400);c.on(ne,"mouseout",ve)}function L(Y,fe,te){this.marked=[],fe instanceof Function&&(fe={getAnnotations:fe}),(!fe||fe===!0)&&(fe={}),this.options={},this.linterOptions=fe.options||{};for(var ne in N)this.options[ne]=N[ne];for(var ne in fe)N.hasOwnProperty(ne)?fe[ne]!=null&&(this.options[ne]=fe[ne]):fe.options||(this.linterOptions[ne]=fe[ne]);this.timeout=null,this.hasGutter=te,this.onMouseOver=function(ye){Q(Y,ye)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var fe=Y.state.lint;fe.hasGutter&&Y.clearGutter(v),fe.options.highlightLines&&j(Y);for(var te=0;te<fe.marked.length;++te)fe.marked[te].clear();fe.marked.length=0}function j(Y){Y.eachLine(function(fe){var te=fe.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(fe.wrapClass);te&&Y.removeLineClass(fe,"wrap",te[0])})}function _(Y,fe,te,ne,ye){var ve=document.createElement("div"),de=ve;return ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+te,ne&&(de=ve.appendChild(document.createElement("div")),de.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(de,"mouseover",function(ue){g(Y,ue,fe,de)}),ve}function H(Y,fe){return Y=="error"?Y:fe}function R(Y){for(var fe=[],te=0;te<Y.length;++te){var ne=Y[te],ye=ne.from.line;(fe[ye]||(fe[ye]=[])).push(ne)}return fe}function X(Y){var fe=Y.severity;fe||(fe="error");var te=document.createElement("div");return te.className="CodeMirror-lint-message CodeMirror-lint-message-"+fe,typeof Y.messageHTML!="undefined"?te.innerHTML=Y.messageHTML:te.appendChild(document.createTextNode(Y.message)),te}function M(Y,fe){var te=Y.state.lint,ne=++te.waitingFor;function ye(){ne=-1,Y.off("change",ye)}Y.on("change",ye),fe(Y.getValue(),function(ve,de){Y.off("change",ye),te.waitingFor==ne&&(de&&ve instanceof c&&(ve=de),Y.operation(function(){V(Y,ve)}))},te.linterOptions,Y)}function C(Y){var fe=Y.state.lint;if(!!fe){var te=fe.options,ne=te.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ne)if(te.async||ne.async)M(Y,ne);else{var ye=ne(Y.getValue(),fe.linterOptions,Y);if(!ye)return;ye.then?ye.then(function(ve){Y.operation(function(){V(Y,ve)})}):Y.operation(function(){V(Y,ye)})}}}function V(Y,fe){var te=Y.state.lint;if(!!te){var ne=te.options;B(Y);for(var ye=R(fe),ve=0;ve<ye.length;++ve){var de=ye[ve];if(!!de){var ue=[];de=de.filter(function(rt){return ue.indexOf(rt.message)>-1?!1:ue.push(rt.message)});for(var oe=null,De=te.hasGutter&&document.createDocumentFragment(),Ve=0;Ve<de.length;++Ve){var Le=de[Ve],ke=Le.severity;ke||(ke="error"),oe=H(oe,ke),ne.formatAnnotation&&(Le=ne.formatAnnotation(Le)),te.hasGutter&&De.appendChild(X(Le)),Le.to&&te.marked.push(Y.markText(Le.from,Le.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:Le}))}te.hasGutter&&Y.setGutterMarker(ve,v,_(Y,De,oe,ye[ve].length>1,ne.tooltips)),ne.highlightLines&&Y.addLineClass(ve,"wrap",x+oe)}}ne.onUpdateLinting&&ne.onUpdateLinting(fe,ye,Y)}}function J(Y){var fe=Y.state.lint;!fe||(clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){C(Y)},fe.options.delay))}function q(Y,fe,te){for(var ne=te.target||te.srcElement,ye=document.createDocumentFragment(),ve=0;ve<fe.length;ve++){var de=fe[ve];ye.appendChild(X(de))}g(Y,te,ye,ne)}function Q(Y,fe){var te=fe.target||fe.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(te.className)){for(var ne=te.getBoundingClientRect(),ye=(ne.left+ne.right)/2,ve=(ne.top+ne.bottom)/2,de=Y.findMarksAt(Y.coordsChar({left:ye,top:ve},"client")),ue=[],oe=0;oe<de.length;++oe){var De=de[oe].__annotation;De&&ue.push(De)}ue.length&&q(Y,ue,fe)}}c.defineOption("lint",!1,function(Y,fe,te){if(te&&te!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),fe){for(var ne=Y.getOption("gutters"),ye=!1,ve=0;ve<ne.length;++ve)ne[ve]==v&&(ye=!0);var de=Y.state.lint=new L(Y,fe,ye);de.options.lintOnChange&&Y.on("change",J),de.options.tooltips!=!1&&de.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",de.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),q=J,Q=0;Q<V.length;Q++)q.indexOf(V.charAt(Q))==-1&&(q+=V.charAt(Q));return J==q?C:new RegExp(C.source,q)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function A(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,Y=C.lastLine();q<=Y;q++,Q=0){V.lastIndex=Q;var fe=C.getLine(q),te=V.exec(fe);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function g(C,V,J){if(!b(V))return A(C,V,J);V=d(V,"gm");for(var q,Q=1,Y=J.line,fe=C.lastLine();Y<=fe;){for(var te=0;te<Q&&!(Y>fe);te++){var ne=C.getLine(Y++);q=q==null?ne:q+`
|
|
11
|
+
*/var c=o(79742),v=o(80645),x=o(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(pe,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(G),pe.__proto__=g.prototype):(pe===null&&(pe=new g(G)),pe.length=G),pe}function g(pe,G,K){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(pe,G,K);if(typeof pe=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,pe)}return L(this,pe,G,K)}g.poolSize=8192,g._augment=function(pe){return pe.__proto__=g.prototype,pe};function L(pe,G,K,we){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?R(pe,G,K,we):typeof G=="string"?_(pe,G,K):X(pe,G)}g.from=function(pe,G,K){return L(null,pe,G,K)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function N(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function B(pe,G,K,we){return N(G),G<=0?A(pe,G):K!==void 0?typeof we=="string"?A(pe,G).fill(K,we):A(pe,G).fill(K):A(pe,G)}g.alloc=function(pe,G,K){return B(null,pe,G,K)};function j(pe,G){if(N(G),pe=A(pe,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var K=0;K<G;++K)pe[K]=0;return pe}g.allocUnsafe=function(pe){return j(null,pe)},g.allocUnsafeSlow=function(pe){return j(null,pe)};function _(pe,G,K){if((typeof K!="string"||K==="")&&(K="utf8"),!g.isEncoding(K))throw new TypeError('"encoding" must be a valid string encoding');var we=V(G,K)|0;pe=A(pe,we);var Re=pe.write(G,K);return Re!==we&&(pe=pe.slice(0,Re)),pe}function H(pe,G){var K=G.length<0?0:M(G.length)|0;pe=A(pe,K);for(var we=0;we<K;we+=1)pe[we]=G[we]&255;return pe}function R(pe,G,K,we){if(G.byteLength,K<0||G.byteLength<K)throw new RangeError("'offset' is out of bounds");if(G.byteLength<K+(we||0))throw new RangeError("'length' is out of bounds");return K===void 0&&we===void 0?G=new Uint8Array(G):we===void 0?G=new Uint8Array(G,K):G=new Uint8Array(G,K,we),g.TYPED_ARRAY_SUPPORT?(pe=G,pe.__proto__=g.prototype):pe=H(pe,G),pe}function X(pe,G){if(g.isBuffer(G)){var K=M(G.length)|0;return pe=A(pe,K),pe.length===0||G.copy(pe,0,0,K),pe}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Mt(G.length)?A(pe,0):H(pe,G);if(G.type==="Buffer"&&x(G.data))return H(pe,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(pe){if(pe>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return pe|0}function C(pe){return+pe!=pe&&(pe=0),g.alloc(+pe)}g.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},g.compare=function(G,K){if(!g.isBuffer(G)||!g.isBuffer(K))throw new TypeError("Arguments must be Buffers");if(G===K)return 0;for(var we=G.length,Re=K.length,be=0,Ae=Math.min(we,Re);be<Ae;++be)if(G[be]!==K[be]){we=G[be],Re=K[be];break}return we<Re?-1:Re<we?1:0},g.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(G,K){if(!x(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return g.alloc(0);var we;if(K===void 0)for(K=0,we=0;we<G.length;++we)K+=G[we].length;var Re=g.allocUnsafe(K),be=0;for(we=0;we<G.length;++we){var Ae=G[we];if(!g.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(Re,be),be+=Ae.length}return Re};function V(pe,G){if(g.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var K=pe.length;if(K===0)return 0;for(var we=!1;;)switch(G){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":case void 0:return At(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return $t(pe).length;default:if(we)return At(pe).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=V;function J(pe,G,K){var we=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0,G>>>=0,K<=G))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return rt(this,G,K);case"utf8":case"utf-8":return oe(this,G,K);case"ascii":return Le(this,G,K);case"latin1":case"binary":return ke(this,G,K);case"base64":return ue(this,G,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,G,K);default:if(we)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function q(pe,G,K){var we=pe[G];pe[G]=pe[K],pe[K]=we}g.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var K=0;K<G;K+=2)q(this,K,K+1);return this},g.prototype.swap32=function(){var G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var K=0;K<G;K+=4)q(this,K,K+3),q(this,K+1,K+2);return this},g.prototype.swap64=function(){var G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var K=0;K<G;K+=8)q(this,K,K+7),q(this,K+1,K+6),q(this,K+2,K+5),q(this,K+3,K+4);return this},g.prototype.toString=function(){var G=this.length|0;return G===0?"":arguments.length===0?oe(this,0,G):J.apply(this,arguments)},g.prototype.equals=function(G){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:g.compare(this,G)===0},g.prototype.inspect=function(){var G="",K=I.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,K).match(/.{2}/g).join(" "),this.length>K&&(G+=" ... ")),"<Buffer "+G+">"},g.prototype.compare=function(G,K,we,Re,be){if(!g.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(K===void 0&&(K=0),we===void 0&&(we=G?G.length:0),Re===void 0&&(Re=0),be===void 0&&(be=this.length),K<0||we>G.length||Re<0||be>this.length)throw new RangeError("out of range index");if(Re>=be&&K>=we)return 0;if(Re>=be)return-1;if(K>=we)return 1;if(K>>>=0,we>>>=0,Re>>>=0,be>>>=0,this===G)return 0;for(var Ae=be-Re,T=we-K,Ie=Math.min(Ae,T),W=this.slice(Re,be),O=G.slice(K,we),P=0;P<Ie;++P)if(W[P]!==O[P]){Ae=W[P],T=O[P];break}return Ae<T?-1:T<Ae?1:0};function Q(pe,G,K,we,Re){if(pe.length===0)return-1;if(typeof K=="string"?(we=K,K=0):K>2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,isNaN(K)&&(K=Re?0:pe.length-1),K<0&&(K=pe.length+K),K>=pe.length){if(Re)return-1;K=pe.length-1}else if(K<0)if(Re)K=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:Y(pe,G,K,we,Re);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Re?Uint8Array.prototype.indexOf.call(pe,G,K):Uint8Array.prototype.lastIndexOf.call(pe,G,K):Y(pe,[G],K,we,Re);throw new TypeError("val must be string, number or Buffer")}function Y(pe,G,K,we,Re){var be=1,Ae=pe.length,T=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(pe.length<2||G.length<2)return-1;be=2,Ae/=2,T/=2,K/=2}function Ie(D,ee){return be===1?D[ee]:D.readUInt16BE(ee*be)}var W;if(Re){var O=-1;for(W=K;W<Ae;W++)if(Ie(pe,W)===Ie(G,O===-1?0:W-O)){if(O===-1&&(O=W),W-O+1===T)return O*be}else O!==-1&&(W-=W-O),O=-1}else for(K+T>Ae&&(K=Ae-T),W=K;W>=0;W--){for(var P=!0,ie=0;ie<T;ie++)if(Ie(pe,W+ie)!==Ie(G,ie)){P=!1;break}if(P)return W}return-1}g.prototype.includes=function(G,K,we){return this.indexOf(G,K,we)!==-1},g.prototype.indexOf=function(G,K,we){return Q(this,G,K,we,!0)},g.prototype.lastIndexOf=function(G,K,we){return Q(this,G,K,we,!1)};function fe(pe,G,K,we){K=Number(K)||0;var Re=pe.length-K;we?(we=Number(we),we>Re&&(we=Re)):we=Re;var be=G.length;if(be%2!=0)throw new TypeError("Invalid hex string");we>be/2&&(we=be/2);for(var Ae=0;Ae<we;++Ae){var T=parseInt(G.substr(Ae*2,2),16);if(isNaN(T))return Ae;pe[K+Ae]=T}return Ae}function te(pe,G,K,we){return St(At(G,pe.length-K),pe,K,we)}function ne(pe,G,K,we){return St(jt(G),pe,K,we)}function ye(pe,G,K,we){return ne(pe,G,K,we)}function ve(pe,G,K,we){return St($t(G),pe,K,we)}function de(pe,G,K,we){return St(Nt(G,pe.length-K),pe,K,we)}g.prototype.write=function(G,K,we,Re){if(K===void 0)Re="utf8",we=this.length,K=0;else if(we===void 0&&typeof K=="string")Re=K,we=this.length,K=0;else if(isFinite(K))K=K|0,isFinite(we)?(we=we|0,Re===void 0&&(Re="utf8")):(Re=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-K;if((we===void 0||we>be)&&(we=be),G.length>0&&(we<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");Re||(Re="utf8");for(var Ae=!1;;)switch(Re){case"hex":return fe(this,G,K,we);case"utf8":case"utf-8":return te(this,G,K,we);case"ascii":return ne(this,G,K,we);case"latin1":case"binary":return ye(this,G,K,we);case"base64":return ve(this,G,K,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,G,K,we);default:if(Ae)throw new TypeError("Unknown encoding: "+Re);Re=(""+Re).toLowerCase(),Ae=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(pe,G,K){return G===0&&K===pe.length?c.fromByteArray(pe):c.fromByteArray(pe.slice(G,K))}function oe(pe,G,K){K=Math.min(pe.length,K);for(var we=[],Re=G;Re<K;){var be=pe[Re],Ae=null,T=be>239?4:be>223?3:be>191?2:1;if(Re+T<=K){var Ie,W,O,P;switch(T){case 1:be<128&&(Ae=be);break;case 2:Ie=pe[Re+1],(Ie&192)==128&&(P=(be&31)<<6|Ie&63,P>127&&(Ae=P));break;case 3:Ie=pe[Re+1],W=pe[Re+2],(Ie&192)==128&&(W&192)==128&&(P=(be&15)<<12|(Ie&63)<<6|W&63,P>2047&&(P<55296||P>57343)&&(Ae=P));break;case 4:Ie=pe[Re+1],W=pe[Re+2],O=pe[Re+3],(Ie&192)==128&&(W&192)==128&&(O&192)==128&&(P=(be&15)<<18|(Ie&63)<<12|(W&63)<<6|O&63,P>65535&&P<1114112&&(Ae=P))}}Ae===null?(Ae=65533,T=1):Ae>65535&&(Ae-=65536,we.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),we.push(Ae),Re+=T}return Ve(we)}var De=4096;function Ve(pe){var G=pe.length;if(G<=De)return String.fromCharCode.apply(String,pe);for(var K="",we=0;we<G;)K+=String.fromCharCode.apply(String,pe.slice(we,we+=De));return K}function Le(pe,G,K){var we="";K=Math.min(pe.length,K);for(var Re=G;Re<K;++Re)we+=String.fromCharCode(pe[Re]&127);return we}function ke(pe,G,K){var we="";K=Math.min(pe.length,K);for(var Re=G;Re<K;++Re)we+=String.fromCharCode(pe[Re]);return we}function rt(pe,G,K){var we=pe.length;(!G||G<0)&&(G=0),(!K||K<0||K>we)&&(K=we);for(var Re="",be=G;be<K;++be)Re+=It(pe[be]);return Re}function Qe(pe,G,K){for(var we=pe.slice(G,K),Re="",be=0;be<we.length;be+=2)Re+=String.fromCharCode(we[be]+we[be+1]*256);return Re}g.prototype.slice=function(G,K){var we=this.length;G=~~G,K=K===void 0?we:~~K,G<0?(G+=we,G<0&&(G=0)):G>we&&(G=we),K<0?(K+=we,K<0&&(K=0)):K>we&&(K=we),K<G&&(K=G);var Re;if(g.TYPED_ARRAY_SUPPORT)Re=this.subarray(G,K),Re.__proto__=g.prototype;else{var be=K-G;Re=new g(be,void 0);for(var Ae=0;Ae<be;++Ae)Re[Ae]=this[Ae+G]}return Re};function Xe(pe,G,K){if(pe%1!=0||pe<0)throw new RangeError("offset is not uint");if(pe+G>K)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(G,K,we){G=G|0,K=K|0,we||Xe(G,K,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<K&&(be*=256);)Re+=this[G+Ae]*be;return Re},g.prototype.readUIntBE=function(G,K,we){G=G|0,K=K|0,we||Xe(G,K,this.length);for(var Re=this[G+--K],be=1;K>0&&(be*=256);)Re+=this[G+--K]*be;return Re},g.prototype.readUInt8=function(G,K){return K||Xe(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,K){return K||Xe(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,K){return K||Xe(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,K){return K||Xe(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},g.prototype.readUInt32BE=function(G,K){return K||Xe(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},g.prototype.readIntLE=function(G,K,we){G=G|0,K=K|0,we||Xe(G,K,this.length);for(var Re=this[G],be=1,Ae=0;++Ae<K&&(be*=256);)Re+=this[G+Ae]*be;return be*=128,Re>=be&&(Re-=Math.pow(2,8*K)),Re},g.prototype.readIntBE=function(G,K,we){G=G|0,K=K|0,we||Xe(G,K,this.length);for(var Re=K,be=1,Ae=this[G+--Re];Re>0&&(be*=256);)Ae+=this[G+--Re]*be;return be*=128,Ae>=be&&(Ae-=Math.pow(2,8*K)),Ae},g.prototype.readInt8=function(G,K){return K||Xe(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,K){K||Xe(G,2,this.length);var we=this[G]|this[G+1]<<8;return we&32768?we|4294901760:we},g.prototype.readInt16BE=function(G,K){K||Xe(G,2,this.length);var we=this[G+1]|this[G]<<8;return we&32768?we|4294901760:we},g.prototype.readInt32LE=function(G,K){return K||Xe(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},g.prototype.readInt32BE=function(G,K){return K||Xe(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},g.prototype.readFloatLE=function(G,K){return K||Xe(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,K){return K||Xe(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,K){return K||Xe(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,K){return K||Xe(G,8,this.length),v.read(this,G,!1,52,8)};function ut(pe,G,K,we,Re,be){if(!g.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Re||G<be)throw new RangeError('"value" argument is out of bounds');if(K+we>pe.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,K,we,Re){if(G=+G,K=K|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,K,we,be,0)}var Ae=1,T=0;for(this[K]=G&255;++T<we&&(Ae*=256);)this[K+T]=G/Ae&255;return K+we},g.prototype.writeUIntBE=function(G,K,we,Re){if(G=+G,K=K|0,we=we|0,!Re){var be=Math.pow(2,8*we)-1;ut(this,G,K,we,be,0)}var Ae=we-1,T=1;for(this[K+Ae]=G&255;--Ae>=0&&(T*=256);)this[K+Ae]=G/T&255;return K+we},g.prototype.writeUInt8=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,1,255,0),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[K]=G&255,K+1};function pt(pe,G,K,we){G<0&&(G=65535+G+1);for(var Re=0,be=Math.min(pe.length-K,2);Re<be;++Re)pe[K+Re]=(G&255<<8*(we?Re:1-Re))>>>(we?Re:1-Re)*8}g.prototype.writeUInt16LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8):pt(this,G,K,!0),K+2},g.prototype.writeUInt16BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>8,this[K+1]=G&255):pt(this,G,K,!1),K+2};function yt(pe,G,K,we){G<0&&(G=4294967295+G+1);for(var Re=0,be=Math.min(pe.length-K,4);Re<be;++Re)pe[K+Re]=G>>>(we?Re:3-Re)*8&255}g.prototype.writeUInt32LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[K+3]=G>>>24,this[K+2]=G>>>16,this[K+1]=G>>>8,this[K]=G&255):yt(this,G,K,!0),K+4},g.prototype.writeUInt32BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>24,this[K+1]=G>>>16,this[K+2]=G>>>8,this[K+3]=G&255):yt(this,G,K,!1),K+4},g.prototype.writeIntLE=function(G,K,we,Re){if(G=+G,K=K|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,K,we,be-1,-be)}var Ae=0,T=1,Ie=0;for(this[K]=G&255;++Ae<we&&(T*=256);)G<0&&Ie===0&&this[K+Ae-1]!==0&&(Ie=1),this[K+Ae]=(G/T>>0)-Ie&255;return K+we},g.prototype.writeIntBE=function(G,K,we,Re){if(G=+G,K=K|0,!Re){var be=Math.pow(2,8*we-1);ut(this,G,K,we,be-1,-be)}var Ae=we-1,T=1,Ie=0;for(this[K+Ae]=G&255;--Ae>=0&&(T*=256);)G<0&&Ie===0&&this[K+Ae+1]!==0&&(Ie=1),this[K+Ae]=(G/T>>0)-Ie&255;return K+we},g.prototype.writeInt8=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,1,127,-128),g.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[K]=G&255,K+1},g.prototype.writeInt16LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8):pt(this,G,K,!0),K+2},g.prototype.writeInt16BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>8,this[K+1]=G&255):pt(this,G,K,!1),K+2},g.prototype.writeInt32LE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[K]=G&255,this[K+1]=G>>>8,this[K+2]=G>>>16,this[K+3]=G>>>24):yt(this,G,K,!0),K+4},g.prototype.writeInt32BE=function(G,K,we){return G=+G,K=K|0,we||ut(this,G,K,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),g.TYPED_ARRAY_SUPPORT?(this[K]=G>>>24,this[K+1]=G>>>16,this[K+2]=G>>>8,this[K+3]=G&255):yt(this,G,K,!1),K+4};function qe(pe,G,K,we,Re,be){if(K+we>pe.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function lt(pe,G,K,we,Re){return Re||qe(pe,G,K,4,34028234663852886e22,-34028234663852886e22),v.write(pe,G,K,we,23,4),K+4}g.prototype.writeFloatLE=function(G,K,we){return lt(this,G,K,!0,we)},g.prototype.writeFloatBE=function(G,K,we){return lt(this,G,K,!1,we)};function vt(pe,G,K,we,Re){return Re||qe(pe,G,K,8,17976931348623157e292,-17976931348623157e292),v.write(pe,G,K,we,52,8),K+8}g.prototype.writeDoubleLE=function(G,K,we){return vt(this,G,K,!0,we)},g.prototype.writeDoubleBE=function(G,K,we){return vt(this,G,K,!1,we)},g.prototype.copy=function(G,K,we,Re){if(we||(we=0),!Re&&Re!==0&&(Re=this.length),K>=G.length&&(K=G.length),K||(K=0),Re>0&&Re<we&&(Re=we),Re===we||G.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(Re<0)throw new RangeError("sourceEnd out of bounds");Re>this.length&&(Re=this.length),G.length-K<Re-we&&(Re=G.length-K+we);var be=Re-we,Ae;if(this===G&&we<K&&K<Re)for(Ae=be-1;Ae>=0;--Ae)G[Ae+K]=this[Ae+we];else if(be<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ae=0;Ae<be;++Ae)G[Ae+K]=this[Ae+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+be),K);return be},g.prototype.fill=function(G,K,we,Re){if(typeof G=="string"){if(typeof K=="string"?(Re=K,K=0,we=this.length):typeof we=="string"&&(Re=we,we=this.length),G.length===1){var be=G.charCodeAt(0);be<256&&(G=be)}if(Re!==void 0&&typeof Re!="string")throw new TypeError("encoding must be a string");if(typeof Re=="string"&&!g.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re)}else typeof G=="number"&&(G=G&255);if(K<0||this.length<K||this.length<we)throw new RangeError("Out of range index");if(we<=K)return this;K=K>>>0,we=we===void 0?this.length:we>>>0,G||(G=0);var Ae;if(typeof G=="number")for(Ae=K;Ae<we;++Ae)this[Ae]=G;else{var T=g.isBuffer(G)?G:At(new g(G,Re).toString()),Ie=T.length;for(Ae=0;Ae<we-K;++Ae)this[Ae+K]=T[Ae%Ie]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function dt(pe){if(pe=kt(pe).replace(mt,""),pe.length<2)return"";for(;pe.length%4!=0;)pe=pe+"=";return pe}function kt(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function It(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function At(pe,G){G=G||1/0;for(var K,we=pe.length,Re=null,be=[],Ae=0;Ae<we;++Ae){if(K=pe.charCodeAt(Ae),K>55295&&K<57344){if(!Re){if(K>56319){(G-=3)>-1&&be.push(239,191,189);continue}else if(Ae+1===we){(G-=3)>-1&&be.push(239,191,189);continue}Re=K;continue}if(K<56320){(G-=3)>-1&&be.push(239,191,189),Re=K;continue}K=(Re-55296<<10|K-56320)+65536}else Re&&(G-=3)>-1&&be.push(239,191,189);if(Re=null,K<128){if((G-=1)<0)break;be.push(K)}else if(K<2048){if((G-=2)<0)break;be.push(K>>6|192,K&63|128)}else if(K<65536){if((G-=3)<0)break;be.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((G-=4)<0)break;be.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return be}function jt(pe){for(var G=[],K=0;K<pe.length;++K)G.push(pe.charCodeAt(K)&255);return G}function Nt(pe,G){for(var K,we,Re,be=[],Ae=0;Ae<pe.length&&!((G-=2)<0);++Ae)K=pe.charCodeAt(Ae),we=K>>8,Re=K%256,be.push(Re),be.push(we);return be}function $t(pe){return c.toByteArray(dt(pe))}function St(pe,G,K,we){for(var Re=0;Re<we&&!(Re+K>=G.length||Re>=pe.length);++Re)G[Re+K]=pe[Re];return Re}function Mt(pe){return pe!==pe}},21924:(h,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,A){var g=c(b,!!A);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),A=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var _=b(c,d,arguments);if(A&&g){var H=A(_,"length");H.configurable&&g(_,"length",{value:1+L(0,j.length-(arguments.length-1))})}return _};var N=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:N}):h.exports.apply=N},82801:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,C,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),C&&(A(d(C,"pairs")),M.state.closeBrackets=C,M.addKeyMap(b))});function d(M,C){return C=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[C]!=null?M[C]:v[C]}var b={Backspace:N,Enter:B};function A(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}A(v.pairs+"`");function g(M){return function(C){return H(C,M)}}function L(M){var C=M.state.closeBrackets;if(!C||C.override)return C;var V=M.getModeAt(M.getCursor());return V.closeBrackets||C}function N(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=R(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var q=J.length-1;q>=0;q--){var Y=J[q].head;M.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(M){var C=L(M),V=C&&d(C,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var J=M.listSelections(),q=0;q<J.length;q++){if(!J[q].empty())return c.Pass;var Q=R(M,J[q].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}M.operation(function(){var Y=M.lineSeparator()||`
|
|
12
|
+
`;M.replaceSelection(Y+Y,null),j(M,-1),J=M.listSelections();for(var fe=0;fe<J.length;fe++){var te=J[fe].head.line;M.indentLine(te,null,!0),M.indentLine(te+1,null,!0)}})}function j(M,C){for(var V=[],J=M.listSelections(),q=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==M.getCursor()&&(q=Q);var fe=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:fe,head:fe})}M.setSelections(V,q)}function _(M){var C=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(C?-1:1)),head:new x(M.head.line,M.head.ch+(C?1:-1))}}function H(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),q=J.indexOf(C);if(q==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),fe=J.charAt(q+1)==C,te=M.listSelections(),ne=q%2==0,ye,ve=0;ve<te.length;ve++){var de=te[ve],ue=de.head,oe,De=M.getRange(ue,x(ue.line,ue.ch+1));if(ne&&!de.empty())oe="surround";else if((fe||!ne)&&De==C)fe&&X(M,ue)?oe="both":Y.indexOf(C)>=0&&M.getRange(ue,x(ue.line,ue.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(fe&&ue.ch>1&&Y.indexOf(C)>=0&&M.getRange(x(ue.line,ue.ch-2),ue)==C+C){if(ue.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;oe="addFour"}else if(fe){var Ve=ue.ch==0?" ":M.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(De)&&Ve!=C&&!c.isWordChar(Ve))oe="both";else return c.Pass}else if(ne&&(De.length===0||/\s/.test(De)||Q.indexOf(De)>-1))oe="both";else return c.Pass;if(!ye)ye=oe;else if(ye!=oe)return c.Pass}var Le=q%2?J.charAt(q-1):C,ke=q%2?C:J.charAt(q+1);M.operation(function(){if(ye=="skip")j(M,1);else if(ye=="skipThree")j(M,3);else if(ye=="surround"){for(var rt=M.getSelections(),Qe=0;Qe<rt.length;Qe++)rt[Qe]=Le+rt[Qe]+ke;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Qe=0;Qe<rt.length;Qe++)rt[Qe]=_(rt[Qe]);M.setSelections(rt)}else ye=="both"?(M.replaceSelection(Le+ke,null),M.triggerElectric(Le+ke),j(M,-1)):ye=="addFour"&&(M.replaceSelection(Le+Le+Le+Le,"before"),j(M,1))})}function R(M,C){var V=M.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(M,C){var V=M.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(M.getTokenTypeAt(C)))}})},4328:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function A(j,_,H){var R=j.getLineHandle(_.line),X=_.ch-1,M=H&&H.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(H),V=!M&&X>=0&&C.test(R.text.charAt(X))&&d[R.text.charAt(X)]||C.test(R.text.charAt(X+1))&&d[R.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(H&&H.strict&&J>0!=(X==_.ch))return null;var q=j.getTokenTypeAt(x(_.line,X+1)),Q=g(j,x(_.line,X+(J>0?1:0)),J,q,H);return Q==null?null:{from:x(_.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,_,H,R,X){for(var M=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),q=H>0?Math.min(_.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,_.line-C),Q=_.line;Q!=q;Q+=H){var Y=j.getLine(Q);if(!!Y){var fe=H>0?0:Y.length-1,te=H>0?Y.length:-1;if(!(Y.length>M))for(Q==_.line&&(fe=_.ch-(H<0?1:0));fe!=te;fe+=H){var ne=Y.charAt(fe);if(J.test(ne)&&(R===void 0||(j.getTokenTypeAt(x(Q,fe+1))||"")==(R||""))){var ye=d[ne];if(ye&&ye.charAt(1)==">"==H>0)V.push(ne);else if(V.length)V.pop();else return{pos:x(Q,fe),ch:ne}}}}}return Q-H==(H>0?j.lastLine():j.firstLine())?!1:null}function L(j,_,H){for(var R=j.state.matchBrackets.maxHighlightLineLength||1e3,X=H&&H.highlightNonMatching,M=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&A(j,C[V].head,H);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=R){var q=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:q})),J.to&&j.getLine(J.to.line).length<=R&&M.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<M.length;Y++)M[Y].clear()})};if(_)setTimeout(Q,800);else return Q}}function N(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,_,H){H&&H!=c.Init&&(j.off("cursorActivity",N),j.off("focus",N),j.off("blur",B),B(j)),_&&(j.state.matchBrackets=typeof _=="object"?_:{},j.on("cursorActivity",N),j.on("focus",N),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,_,H){return(H||typeof _=="boolean")&&(H?(H.strict=_,_=H):_=_?{strict:!0}:null),A(this,j,_)}),c.defineExtension("scanForBracket",function(j,_,H,R){return g(this,j,_,H,R)})})},71707:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,C,V){if(!C)return M.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var q in V)J[q]=V[q];return M.showHint(J)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,M);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(M,C){if(this.cm=M,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},A=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,C){var V=M.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,M,V):J.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(A(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<M.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var C=this,V=++this.tick;H(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,M)})}},finishUpdate:function(M,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new j(this,M),c.signal(M,"shown")))}};function g(M,C,V){var J=M.options.hintOptions,q={};for(var Q in X)q[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(q[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(q[Q]=V[Q]);return q.hint.resolve&&(q.hint=q.hint.resolve(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function N(M,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var q=M.options.customKeys,Q=q?{}:V;function Y(ne,ye){var ve;typeof ye!="string"?ve=function(de){return ye(de,C)}:V.hasOwnProperty(ye)?ve=V[ye]:ve=ye,Q[ne]=ve}if(q)for(var fe in q)q.hasOwnProperty(fe)&&Y(fe,q[fe]);var te=M.options.extraKeys;if(te)for(var fe in te)te.hasOwnProperty(fe)&&Y(fe,te[fe]);return Q}function B(M,C){for(;C&&C!=M;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==M)return C;C=C.parentNode}}function j(M,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=C,this.picked=!1;var V=this,J=M.cm,q=J.getInputField().ownerDocument,Q=q.defaultView||q.parentWindow,Y=this.hints=q.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var fe=M.cm.options.theme;Y.className="CodeMirror-hints "+fe,this.selectedHint=C.selectedHint||0;for(var te=C.list,ne=0;ne<te.length;++ne){var ye=Y.appendChild(q.createElement("li")),ve=te[ne],de=v+(ne!=this.selectedHint?"":" "+x);ve.className!=null&&(de=ve.className+" "+de),ye.className=de,ne==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ne,ye.setAttribute("role","option"),ve.render?ve.render(ye,C,ve):ye.appendChild(q.createTextNode(ve.displayText||L(ve))),ye.hintId=ne}var ue=M.options.container||q.body,oe=J.cursorCoords(M.options.alignWithWord?C.from:null),De=oe.left,Ve=oe.bottom,Le=!0,ke=0,rt=0;if(ue!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(ue).position)!==-1,Xe=Qe?ue:ue.offsetParent,ut=Xe.getBoundingClientRect(),pt=q.body.getBoundingClientRect();ke=ut.left-pt.left-Xe.scrollLeft,rt=ut.top-pt.top-Xe.scrollTop}Y.style.left=De-ke+"px",Y.style.top=Ve-rt+"px";var yt=Q.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),qe=Q.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);ue.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=M.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,vt=M.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var dt=lt.bottom-qe;if(dt>0){var kt=lt.bottom-lt.top,It=oe.top-(oe.bottom-lt.top);if(It-kt>0)Y.style.top=(Ve=oe.top-kt-rt)+"px",Le=!1;else if(kt>qe){Y.style.height=qe-5+"px",Y.style.top=(Ve=oe.bottom-lt.top-rt)+"px";var At=J.getCursor();C.from.ch!=At.ch&&(oe=J.cursorCoords(At),Y.style.left=(De=oe.left-ke)+"px",lt=Y.getBoundingClientRect())}}var jt=lt.right-yt;if(vt&&(jt+=J.display.nativeBarWidth),jt>0&&(lt.right-lt.left>yt&&(Y.style.width=yt-5+"px",jt-=lt.right-lt.left-yt),Y.style.left=(De=oe.left-jt-ke)+"px"),vt)for(var Nt=Y.firstChild;Nt;Nt=Nt.nextSibling)Nt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=N(M,{moveFocus:function(Mt,pe){V.changeActive(V.selectedHint+Mt,pe)},setFocus:function(Mt){V.changeActive(Mt)},menuSize:function(){return V.screenAmount()},length:te.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var $t;J.on("blur",this.onBlur=function(){$t=setTimeout(function(){M.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout($t)})}J.on("scroll",this.onScroll=function(){var Mt=J.getScrollInfo(),pe=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var G=Ve+mt.top-Mt.top,K=G-(Q.pageYOffset||(q.documentElement||q.body).scrollTop);if(Le||(K+=Y.offsetHeight),K<=pe.top||K>=pe.bottom)return M.close();Y.style.top=G+"px",Y.style.left=De+mt.left-Mt.left+"px"}),c.on(Y,"dblclick",function(Mt){var pe=B(Y,Mt.target||Mt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),V.pick())}),c.on(Y,"click",function(Mt){var pe=B(Y,Mt.target||Mt.srcElement);pe&&pe.hintId!=null&&(V.changeActive(pe.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",te[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,C){if(M>=this.data.list.length?M=C?this.data.list.length-1:0:M<0&&(M=C?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=M],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var M=this.getSelectedHintRange(),C=this.hints.childNodes[M.from],V=this.hints.childNodes[M.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function _(M,C){if(!M.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function H(M,C,V,J){if(M.async)M(C,J,V);else{var q=M(C,V);q&&q.then?q.then(J):J(q)}}function R(M,C){var V=M.getHelpers(C,"hint"),J;if(V.length){var q=function(Q,Y,fe){var te=_(Q,V);function ne(ye){if(ye==te.length)return Y(null);H(te[ye],Q,fe,function(ve){ve&&ve.list.length>0?Y(ve):ne(ye+1)})}ne(0)};return q.async=!0,q.supportsSelection=!0,q}else return(J=M.getHelper(M.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:R}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),J=M.getTokenAt(V),q,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?q=J.string.substr(0,V.ch-J.start):(q="",Q=V);for(var fe=[],te=0;te<C.words.length;te++){var ne=C.words[te];ne.slice(0,q.length)==q&&fe.push(ne)}if(fe.length)return{list:fe,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,fe,te){var ne=document.createElement("div");ne.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ne.appendChild(te.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ne):document.body.appendChild(ne);function ye(ve){if(!ne.parentNode)return c.off(document,"mousemove",ye);ne.style.top=Math.max(0,ve.clientY-ne.offsetHeight-5)+"px",ne.style.left=ve.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(fe),ne.style.opacity!=null&&(ne.style.opacity=1),ne}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function A(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,fe,te,ne){var ye=d(Y,fe,te);function ve(){c.off(ne,"mouseout",ve),ye&&(A(ye),ye=null)}var de=setInterval(function(){if(ye)for(var ue=ne;;ue=ue.parentNode){if(ue&&ue.nodeType==11&&(ue=ue.host),ue==document.body)return;if(!ue){ve();break}}if(!ye)return clearInterval(de)},400);c.on(ne,"mouseout",ve)}function L(Y,fe,te){this.marked=[],fe instanceof Function&&(fe={getAnnotations:fe}),(!fe||fe===!0)&&(fe={}),this.options={},this.linterOptions=fe.options||{};for(var ne in N)this.options[ne]=N[ne];for(var ne in fe)N.hasOwnProperty(ne)?fe[ne]!=null&&(this.options[ne]=fe[ne]):fe.options||(this.linterOptions[ne]=fe[ne]);this.timeout=null,this.hasGutter=te,this.onMouseOver=function(ye){Q(Y,ye)},this.waitingFor=0}var N={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var fe=Y.state.lint;fe.hasGutter&&Y.clearGutter(v),fe.options.highlightLines&&j(Y);for(var te=0;te<fe.marked.length;++te)fe.marked[te].clear();fe.marked.length=0}function j(Y){Y.eachLine(function(fe){var te=fe.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(fe.wrapClass);te&&Y.removeLineClass(fe,"wrap",te[0])})}function _(Y,fe,te,ne,ye){var ve=document.createElement("div"),de=ve;return ve.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+te,ne&&(de=ve.appendChild(document.createElement("div")),de.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(de,"mouseover",function(ue){g(Y,ue,fe,de)}),ve}function H(Y,fe){return Y=="error"?Y:fe}function R(Y){for(var fe=[],te=0;te<Y.length;++te){var ne=Y[te],ye=ne.from.line;(fe[ye]||(fe[ye]=[])).push(ne)}return fe}function X(Y){var fe=Y.severity;fe||(fe="error");var te=document.createElement("div");return te.className="CodeMirror-lint-message CodeMirror-lint-message-"+fe,typeof Y.messageHTML!="undefined"?te.innerHTML=Y.messageHTML:te.appendChild(document.createTextNode(Y.message)),te}function M(Y,fe){var te=Y.state.lint,ne=++te.waitingFor;function ye(){ne=-1,Y.off("change",ye)}Y.on("change",ye),fe(Y.getValue(),function(ve,de){Y.off("change",ye),te.waitingFor==ne&&(de&&ve instanceof c&&(ve=de),Y.operation(function(){V(Y,ve)}))},te.linterOptions,Y)}function C(Y){var fe=Y.state.lint;if(!!fe){var te=fe.options,ne=te.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ne)if(te.async||ne.async)M(Y,ne);else{var ye=ne(Y.getValue(),fe.linterOptions,Y);if(!ye)return;ye.then?ye.then(function(ve){Y.operation(function(){V(Y,ve)})}):Y.operation(function(){V(Y,ye)})}}}function V(Y,fe){var te=Y.state.lint;if(!!te){var ne=te.options;B(Y);for(var ye=R(fe),ve=0;ve<ye.length;++ve){var de=ye[ve];if(!!de){var ue=[];de=de.filter(function(rt){return ue.indexOf(rt.message)>-1?!1:ue.push(rt.message)});for(var oe=null,De=te.hasGutter&&document.createDocumentFragment(),Ve=0;Ve<de.length;++Ve){var Le=de[Ve],ke=Le.severity;ke||(ke="error"),oe=H(oe,ke),ne.formatAnnotation&&(Le=ne.formatAnnotation(Le)),te.hasGutter&&De.appendChild(X(Le)),Le.to&&te.marked.push(Y.markText(Le.from,Le.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ke,__annotation:Le}))}te.hasGutter&&Y.setGutterMarker(ve,v,_(Y,De,oe,ye[ve].length>1,ne.tooltips)),ne.highlightLines&&Y.addLineClass(ve,"wrap",x+oe)}}ne.onUpdateLinting&&ne.onUpdateLinting(fe,ye,Y)}}function J(Y){var fe=Y.state.lint;!fe||(clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){C(Y)},fe.options.delay))}function q(Y,fe,te){for(var ne=te.target||te.srcElement,ye=document.createDocumentFragment(),ve=0;ve<fe.length;ve++){var de=fe[ve];ye.appendChild(X(de))}g(Y,te,ye,ne)}function Q(Y,fe){var te=fe.target||fe.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(te.className)){for(var ne=te.getBoundingClientRect(),ye=(ne.left+ne.right)/2,ve=(ne.top+ne.bottom)/2,de=Y.findMarksAt(Y.coordsChar({left:ye,top:ve},"client")),ue=[],oe=0;oe<de.length;++oe){var De=de[oe].__annotation;De&&ue.push(De)}ue.length&&q(Y,ue,fe)}}c.defineOption("lint",!1,function(Y,fe,te){if(te&&te!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),fe){for(var ne=Y.getOption("gutters"),ye=!1,ve=0;ve<ne.length;++ve)ne[ve]==v&&(ye=!0);var de=Y.state.lint=new L(Y,fe,ye);de.options.lintOnChange&&Y.on("change",J),de.options.tooltips!=!1&&de.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",de.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),q=J,Q=0;Q<V.length;Q++)q.indexOf(V.charAt(Q))==-1&&(q+=V.charAt(Q));return J==q?C:new RegExp(C.source,q)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function A(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,Y=C.lastLine();q<=Y;q++,Q=0){V.lastIndex=Q;var fe=C.getLine(q),te=V.exec(fe);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function g(C,V,J){if(!b(V))return A(C,V,J);V=d(V,"gm");for(var q,Q=1,Y=J.line,fe=C.lastLine();Y<=fe;){for(var te=0;te<Q&&!(Y>fe);te++){var ne=C.getLine(Y++);q=q==null?ne:q+`
|
|
13
13
|
`+ne}Q=Q*2,V.lastIndex=J.ch;var ye=V.exec(q);if(ye){var ve=q.slice(0,ye.index).split(`
|
|
14
14
|
`),de=ye[0].split(`
|
|
15
15
|
`),ue=J.line+ve.length-1,oe=ve[ve.length-1].length;return{from:v(ue,oe),to:v(ue+de.length-1,de.length==1?oe+de[0].length:de[de.length-1].length),match:ye}}}}function L(C,V,J){for(var q,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var fe=Y.index+Y[0].length;if(fe>C.length-J)break;(!q||fe>q.index+q[0].length)&&(q=Y),Q=Y.index+1}return q}function N(C,V,J){V=d(V,"g");for(var q=J.line,Q=J.ch,Y=C.firstLine();q>=Y;q--,Q=-1){var fe=C.getLine(q),te=L(fe,V,Q<0?0:fe.length-Q);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function B(C,V,J){if(!b(V))return N(C,V,J);V=d(V,"gm");for(var q,Q=1,Y=C.getLine(J.line).length-J.ch,fe=J.line,te=C.firstLine();fe>=te;){for(var ne=0;ne<Q&&fe>=te;ne++){var ye=C.getLine(fe--);q=q==null?ye:ye+`
|
|
16
16
|
`+q}Q*=2;var ve=L(q,V,Y);if(ve){var de=q.slice(0,ve.index).split(`
|
|
17
17
|
`),ue=ve[0].split(`
|
|
18
|
-
`),oe=fe+de.length,De=de[de.length-1].length;return{from:v(oe,De),to:v(oe+ue.length-1,ue.length==1?De+ue[0].length:ue[ue.length-1].length),match:ve}}}}var j,_;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},_=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},_=function(C){return C});function H(C,V,J,q){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var fe=Q+Y>>1,te=q(C.slice(0,fe)).length;if(te==J)return fe;te>J?Y=fe:Q=fe+1}}function R(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,te=J.ch,ne=C.lastLine()+1-Y.length;fe<=ne;fe++,te=0){var ye=C.getLine(fe).slice(te),ve=Q(ye);if(Y.length==1){var de=ve.indexOf(Y[0]);if(de==-1)continue e;var J=H(ye,ve,de,Q)+te;return{from:v(fe,H(ye,ve,de,Q)+te),to:v(fe,H(ye,ve,de+Y[0].length,Q)+te)}}else{var ue=ve.length-Y[0].length;if(ve.slice(ue)!=Y[0])continue e;for(var oe=1;oe<Y.length-1;oe++)if(Q(C.getLine(fe+oe))!=Y[oe])continue e;var De=C.getLine(fe+Y.length-1),Ve=Q(De),Le=Y[Y.length-1];if(Ve.slice(0,Le.length)!=Le)continue e;return{from:v(fe,H(ye,ve,ue,Q)+te),to:v(fe+Y.length-1,H(De,Ve,Le.length,Q))}}}}function X(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,te=J.ch,ne=C.firstLine()-1+Y.length;fe>=ne;fe--,te=-1){var ye=C.getLine(fe);te>-1&&(ye=ye.slice(0,te));var ve=Q(ye);if(Y.length==1){var de=ve.lastIndexOf(Y[0]);if(de==-1)continue e;return{from:v(fe,H(ye,ve,de,Q)),to:v(fe,H(ye,ve,de+Y[0].length,Q))}}else{var ue=Y[Y.length-1];if(ve.slice(0,ue.length)!=ue)continue e;for(var oe=1,J=fe-Y.length+1;oe<Y.length-1;oe++)if(Q(C.getLine(J+oe))!=Y[oe])continue e;var De=C.getLine(fe+1-Y.length),Ve=Q(De);if(Ve.slice(Ve.length-Y[0].length)!=Y[0])continue e;return{from:v(fe+1-Y.length,H(De,Ve,De.length-Y[0].length,Q)),to:v(fe,H(ye,ve,ue.length,Q))}}}}function M(C,V,J,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof q=="object"?Q=q.caseFold:(Q=q,q=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,fe){return(Y?X:R)(C,V,fe,Q)}):(V=d(V,"gm"),!q||q.multiline!==!1?this.matches=function(Y,fe){return(Y?B:g)(C,V,fe)}:this.matches=function(Y,fe){return(Y?N:A)(C,V,fe)})}M.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var q=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new M(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new M(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],q=this.getSearchCursor(C,this.getCursor("from"),V);q.findNext()&&!(c.cmpPos(q.to(),this.getCursor("to"))>0);)J.push({anchor:q.from(),head:q.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,o){h.exports=o()})(this,function(){"use strict";var I=navigator.userAgent,o=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,A=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),N=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),H=/PhantomJS/.test(I),R=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),M=R||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=R||/Mac/.test(o),V=/\bCrOS\b/.test(I),J=/win/i.test(o),q=B&&I.match(/Version\/(\d*\.\d*)/);q&&(q=Number(q[1])),q&&q>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(q==null||q<12.11)),Y=c||b&&A>=9;function fe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=fe(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ne(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ye(e,n){return ne(e).appendChild(n)}function ve(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function de(e,n,u,l){var f=ve(e,n,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:ue=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function oe(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function De(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ve(e,n){var u=e.className;fe(n).test(u)||(e.className+=(u?" ":"")+n)}function Le(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!fe(u[l]).test(n)&&(n+=" "+u[l]);return n}var ke=function(e){e.select()};R?ke=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(ke=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Ze(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Qe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return F+(n-m);F+=U-m,F+=u-F%u,m=U+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function pt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var yt=50,qe={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},vt={origin:"*mouse"},mt={origin:"+move"};function dt(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var kt=[""];function It(e){for(;kt.length<=e;)kt.push(St(kt)+" ");return kt[e]}function St(e){return e[e.length-1]}function Vt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Nt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Gt(){}function wt(e,n){var u;return Object.create?u=Object.create(e):(Gt.prototype=e,u=new Gt),n&&Ze(n,u),u}var Mt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Mt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&pe(e)?!0:n.test(e):pe(e)}function K(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Re(e){return e.charCodeAt(0)>=768&&we.test(e)}function be(e,n,u){for(;(u<0?n>0:n<e.length)&&Re(e.charAt(n));)n+=u;return n}function Ae(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function T(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",m),f=!0)}f||l(n,u,"ltr")}var Ie=null;function W(e,n,u){var l;Ie=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Ie=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Ie=f)}return l!=null?l:Ie}var O=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function z(Z,me,Ce){this.level=Z,this.from=me,this.to=Ce}return function(Z,me){var Ce=me=="ltr"?"L":"R";if(Z.length==0||me=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,Me=[],Ye=0;Ye<Ne;++Ye)Me.push(u(Z.charCodeAt(Ye)));for(var tt=0,at=Ce;tt<Ne;++tt){var ft=Me[tt];ft=="m"?Me[tt]=at:at=ft}for(var ht=0,ct=Ce;ht<Ne;++ht){var xt=Me[ht];xt=="1"&&ct=="r"?Me[ht]="n":m.test(xt)&&(ct=xt,xt=="r"&&(Me[ht]="R"))}for(var Pt=1,Ot=Me[0];Pt<Ne-1;++Pt){var jt=Me[Pt];jt=="+"&&Ot=="1"&&Me[Pt+1]=="1"?Me[Pt]="1":jt==","&&Ot==Me[Pt+1]&&(Ot=="1"||Ot=="n")&&(Me[Pt]=Ot),Ot=jt}for(var or=0;or<Ne;++or){var Vr=Me[or];if(Vr==",")Me[or]="N";else if(Vr=="%"){var pr=void 0;for(pr=or+1;pr<Ne&&Me[pr]=="%";++pr);for(var bn=or&&Me[or-1]=="!"||pr<Ne&&Me[pr]=="1"?"1":"N",hn=or;hn<pr;++hn)Me[hn]=bn;or=pr-1}}for(var Er=0,rn=Ce;Er<Ne;++Er){var $r=Me[Er];rn=="L"&&$r=="1"?Me[Er]="L":m.test($r)&&(rn=$r)}for(var Nr=0;Nr<Ne;++Nr)if(f.test(Me[Nr])){var Mr=void 0;for(Mr=Nr+1;Mr<Ne&&f.test(Me[Mr]);++Mr);for(var xr=(Nr?Me[Nr-1]:Ce)=="L",nn=(Mr<Ne?Me[Mr]:Ce)=="L",Fo=xr==nn?xr?"L":"R":Ce,Vi=Nr;Vi<Mr;++Vi)Me[Vi]=Fo;Nr=Mr-1}for(var Kr=[],Tn,Wr=0;Wr<Ne;)if(F.test(Me[Wr])){var uo=Wr;for(++Wr;Wr<Ne&&F.test(Me[Wr]);++Wr);Kr.push(new z(0,uo,Wr))}else{var ii=Wr,Qr=Kr.length,ko=me=="rtl"?1:0;for(++Wr;Wr<Ne&&Me[Wr]!="L";++Wr);for(var Zr=ii;Zr<Wr;)if(U.test(Me[Zr])){ii<Zr&&(Kr.splice(Qr,0,new z(1,ii,Zr)),Qr+=ko);var fo=Zr;for(++Zr;Zr<Wr&&U.test(Me[Zr]);++Zr);Kr.splice(Qr,0,new z(2,fo,Zr)),Qr+=ko,ii=Zr}else++Zr;ii<Wr&&Kr.splice(Qr,0,new z(1,ii,Wr))}return me=="ltr"&&(Kr[0].level==1&&(Tn=Z.match(/^\s+/))&&(Kr[0].from=Tn[0].length,Kr.unshift(new z(0,0,Tn[0].length))),St(Kr).level==1&&(Tn=Z.match(/\s+$/))&&(St(Kr).to-=Tn[0].length,Kr.push(new z(0,Ne-Tn[0].length,Ne)))),me=="rtl"?Kr.reverse():Kr}}();function P(e,n){var u=e.order;return u==null&&(u=e.order=O(e.text,n)),u}var ie=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||ie).concat(u)}};function ee(e,n){return e._handlers&&e._handlers[n]||ie}function ce(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=pt(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function Oe(e,n){var u=ee(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function Pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Oe(e,u||n.type,e,n),Ct(n)||n.codemirrorIgnore}function Te(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)pt(u,n[l])==-1&&u.push(n[l])}function Ge(e,n){return ee(e,n).length>0}function He(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){ce(this,n,u)}}function it(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Kt(e){it(e),gt(e)}function Ft(e){return e.target||e.srcElement}function Sn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var qr=function(){if(b&&A<9)return!1;var e=ve("div");return"draggable"in e||"dragDrop"in e}(),Pn;function $i(e){if(Pn==null){var n=ve("span","\u200B");ye(e,ve("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Pn=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&A<8))}var u=Pn?ve("span","\u200B"):ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var jr;function Bn(e){if(jr!=null)return jr;var n=ye(e,document.createTextNode("A\u062EA")),u=ue(n,0,1).getBoundingClientRect(),l=ue(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:jr=l.right-u.right<3}var $n=`
|
|
18
|
+
`),oe=fe+de.length,De=de[de.length-1].length;return{from:v(oe,De),to:v(oe+ue.length-1,ue.length==1?De+ue[0].length:ue[ue.length-1].length),match:ve}}}}var j,_;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},_=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},_=function(C){return C});function H(C,V,J,q){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var fe=Q+Y>>1,te=q(C.slice(0,fe)).length;if(te==J)return fe;te>J?Y=fe:Q=fe+1}}function R(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,te=J.ch,ne=C.lastLine()+1-Y.length;fe<=ne;fe++,te=0){var ye=C.getLine(fe).slice(te),ve=Q(ye);if(Y.length==1){var de=ve.indexOf(Y[0]);if(de==-1)continue e;var J=H(ye,ve,de,Q)+te;return{from:v(fe,H(ye,ve,de,Q)+te),to:v(fe,H(ye,ve,de+Y[0].length,Q)+te)}}else{var ue=ve.length-Y[0].length;if(ve.slice(ue)!=Y[0])continue e;for(var oe=1;oe<Y.length-1;oe++)if(Q(C.getLine(fe+oe))!=Y[oe])continue e;var De=C.getLine(fe+Y.length-1),Ve=Q(De),Le=Y[Y.length-1];if(Ve.slice(0,Le.length)!=Le)continue e;return{from:v(fe,H(ye,ve,ue,Q)+te),to:v(fe+Y.length-1,H(De,Ve,Le.length,Q))}}}}function X(C,V,J,q){if(!V.length)return null;var Q=q?j:_,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,te=J.ch,ne=C.firstLine()-1+Y.length;fe>=ne;fe--,te=-1){var ye=C.getLine(fe);te>-1&&(ye=ye.slice(0,te));var ve=Q(ye);if(Y.length==1){var de=ve.lastIndexOf(Y[0]);if(de==-1)continue e;return{from:v(fe,H(ye,ve,de,Q)),to:v(fe,H(ye,ve,de+Y[0].length,Q))}}else{var ue=Y[Y.length-1];if(ve.slice(0,ue.length)!=ue)continue e;for(var oe=1,J=fe-Y.length+1;oe<Y.length-1;oe++)if(Q(C.getLine(J+oe))!=Y[oe])continue e;var De=C.getLine(fe+1-Y.length),Ve=Q(De);if(Ve.slice(Ve.length-Y[0].length)!=Y[0])continue e;return{from:v(fe+1-Y.length,H(De,Ve,De.length-Y[0].length,Q)),to:v(fe,H(ye,ve,ue.length,Q))}}}}function M(C,V,J,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof q=="object"?Q=q.caseFold:(Q=q,q=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,fe){return(Y?X:R)(C,V,fe,Q)}):(V=d(V,"gm"),!q||q.multiline!==!1?this.matches=function(Y,fe){return(Y?B:g)(C,V,fe)}:this.matches=function(Y,fe){return(Y?N:A)(C,V,fe)})}M.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var q=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new M(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new M(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],q=this.getSearchCursor(C,this.getCursor("from"),V);q.findNext()&&!(c.cmpPos(q.to(),this.getCursor("to"))>0);)J.push({anchor:q.from(),head:q.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,o){h.exports=o()})(this,function(){"use strict";var I=navigator.userAgent,o=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,A=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),N=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),H=/PhantomJS/.test(I),R=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),M=R||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=R||/Mac/.test(o),V=/\bCrOS\b/.test(I),J=/win/i.test(o),q=B&&I.match(/Version\/(\d*\.\d*)/);q&&(q=Number(q[1])),q&&q>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(q==null||q<12.11)),Y=c||b&&A>=9;function fe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=fe(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ne(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ye(e,n){return ne(e).appendChild(n)}function ve(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function de(e,n,u,l){var f=ve(e,n,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:ue=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function oe(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function De(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ve(e,n){var u=e.className;fe(n).test(u)||(e.className+=(u?" ":"")+n)}function Le(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!fe(u[l]).test(n)&&(n+=" "+u[l]);return n}var ke=function(e){e.select()};R?ke=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(ke=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Qe(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return F+(n-m);F+=U-m,F+=u-F%u,m=U+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function pt(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var yt=50,qe={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},vt={origin:"*mouse"},mt={origin:"+move"};function dt(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var kt=[""];function It(e){for(;kt.length<=e;)kt.push(At(kt)+" ");return kt[e]}function At(e){return e[e.length-1]}function jt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Nt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function $t(){}function St(e,n){var u;return Object.create?u=Object.create(e):($t.prototype=e,u=new $t),n&&Qe(n,u),u}var Mt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Mt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&pe(e)?!0:n.test(e):pe(e)}function K(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Re(e){return e.charCodeAt(0)>=768&&we.test(e)}function be(e,n,u){for(;(u<0?n>0:n<e.length)&&Re(e.charAt(n));)n+=u;return n}function Ae(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function T(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",m),f=!0)}f||l(n,u,"ltr")}var Ie=null;function W(e,n,u){var l;Ie=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Ie=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Ie=f)}return l!=null?l:Ie}var O=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function z(Z,xe,Ee){this.level=Z,this.from=xe,this.to=Ee}return function(Z,xe){var Ee=xe=="ltr"?"L":"R";if(Z.length==0||xe=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,Me=[],Ye=0;Ye<Ne;++Ye)Me.push(u(Z.charCodeAt(Ye)));for(var tt=0,at=Ee;tt<Ne;++tt){var ft=Me[tt];ft=="m"?Me[tt]=at:at=ft}for(var ht=0,ct=Ee;ht<Ne;++ht){var bt=Me[ht];bt=="1"&&ct=="r"?Me[ht]="n":m.test(bt)&&(ct=bt,bt=="r"&&(Me[ht]="R"))}for(var Pt=1,Ot=Me[0];Pt<Ne-1;++Pt){var Ut=Me[Pt];Ut=="+"&&Ot=="1"&&Me[Pt+1]=="1"?Me[Pt]="1":Ut==","&&Ot==Me[Pt+1]&&(Ot=="1"||Ot=="n")&&(Me[Pt]=Ot),Ot=Ut}for(var ar=0;ar<Ne;++ar){var Hr=Me[ar];if(Hr==",")Me[ar]="N";else if(Hr=="%"){var vr=void 0;for(vr=ar+1;vr<Ne&&Me[vr]=="%";++vr);for(var xn=ar&&Me[ar-1]=="!"||vr<Ne&&Me[vr]=="1"?"1":"N",fn=ar;fn<vr;++fn)Me[fn]=xn;ar=vr-1}}for(var kr=0,rn=Ee;kr<Ne;++kr){var zr=Me[kr];rn=="L"&&zr=="1"?Me[kr]="L":m.test(zr)&&(rn=zr)}for(var Nr=0;Nr<Ne;++Nr)if(f.test(Me[Nr])){var Rr=void 0;for(Rr=Nr+1;Rr<Ne&&f.test(Me[Rr]);++Rr);for(var wr=(Nr?Me[Nr-1]:Ee)=="L",cn=(Rr<Ne?Me[Rr]:Ee)=="L",lo=wr==cn?wr?"L":"R":Ee,Ui=Nr;Ui<Rr;++Ui)Me[Ui]=lo;Nr=Rr-1}for(var Jr=[],zn,Er=0;Er<Ne;)if(F.test(Me[Er])){var wl=Er;for(++Er;Er<Ne&&F.test(Me[Er]);++Er);Jr.push(new z(0,wl,Er))}else{var Cn=Er,ji=Jr.length,Xr=xe=="rtl"?1:0;for(++Er;Er<Ne&&Me[Er]!="L";++Er);for(var dn=Cn;dn<Er;)if(U.test(Me[dn])){Cn<dn&&(Jr.splice(ji,0,new z(1,Cn,dn)),ji+=Xr);var uo=dn;for(++dn;dn<Er&&U.test(Me[dn]);++dn);Jr.splice(ji,0,new z(2,uo,dn)),ji+=Xr,Cn=dn}else++dn;Cn<Er&&Jr.splice(ji,0,new z(1,Cn,Er))}return xe=="ltr"&&(Jr[0].level==1&&(zn=Z.match(/^\s+/))&&(Jr[0].from=zn[0].length,Jr.unshift(new z(0,0,zn[0].length))),At(Jr).level==1&&(zn=Z.match(/\s+$/))&&(At(Jr).to-=zn[0].length,Jr.push(new z(0,Ne-zn[0].length,Ne)))),xe=="rtl"?Jr.reverse():Jr}}();function P(e,n){var u=e.order;return u==null&&(u=e.order=O(e.text,n)),u}var ie=[],D=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||ie).concat(u)}};function ee(e,n){return e._handlers&&e._handlers[n]||ie}function ce(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=pt(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function Oe(e,n){var u=ee(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function Pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Oe(e,u||n.type,e,n),Ct(n)||n.codemirrorIgnore}function Te(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)pt(u,n[l])==-1&&u.push(n[l])}function Ge(e,n){return ee(e,n).length>0}function He(e){e.prototype.on=function(n,u){D(this,n,u)},e.prototype.off=function(n,u){ce(this,n,u)}}function it(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function gt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ct(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){it(e),gt(e)}function Ft(e){return e.target||e.srcElement}function wn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var Zr=function(){if(b&&A<9)return!1;var e=ve("div");return"draggable"in e||"dragDrop"in e}(),On;function Gi(e){if(On==null){var n=ve("span","\u200B");ye(e,ve("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(On=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&A<8))}var u=On?ve("span","\u200B"):ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var jr;function Nn(e){if(jr!=null)return jr;var n=ye(e,document.createTextNode("A\u062EA")),u=ue(n,0,1).getBoundingClientRect(),l=ue(n,1,2).getBoundingClientRect();return ne(e),!u||u.left==u.right?!1:jr=l.right-u.right<3}var $n=`
|
|
19
19
|
|
|
20
20
|
b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
|
|
21
|
-
`,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),n+=F+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},In=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Kn=function(){var e=ve("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),vn=null;function ma(e){if(vn!=null)return vn;var n=ye(e,ve("span","x")),u=n.getBoundingClientRect(),l=ue(n,0,1).getBoundingClientRect();return vn=Math.abs(u.left-l.left)>1}var Lo={},An={};function Yn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Lo[e]=n}function wi(e,n){An[e]=n}function Ki(e){if(typeof e=="string"&&An.hasOwnProperty(e))e=An[e];else if(e&&typeof e.name=="string"&&An.hasOwnProperty(e.name)){var n=An[e.name];typeof n=="string"&&(n={name:n}),e=wt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ki("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ki("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Un(e,n){n=Ki(n);var u=Lo[n.name];if(!u)return Un(e,"text/plain");var l=u(e,n);if(Si.hasOwnProperty(n.name)){var f=Si[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var Si={};function xa(e,n){var u=Si.hasOwnProperty(e)?Si[e]:Si[e]={};Ze(n,u)}function Fn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function En(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Ai(e,n,u){return e.startState?e.startState(n,u):!0}var gr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};gr.prototype.eol=function(){return this.pos>=this.string.length},gr.prototype.sol=function(){return this.pos==this.lineStart},gr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},gr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},gr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},gr.prototype.skipToEnd=function(){this.pos=this.string.length},gr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},gr.prototype.backUp=function(e){this.pos-=e},gr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},gr.prototype.indentation=function(){return Qe(this.string,null,this.tabSize)-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},gr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},gr.prototype.current=function(){return this.string.slice(this.start,this.pos)},gr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},gr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},gr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function At(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function si(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Ei(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function Cn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function qt(e){if(e.parent==null)return null;for(var n=e.parent,u=pt(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function jn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],z=U.height;if(n<z)break;n-=z}return u+F}function Jn(e,n){return n>=e.first&&n<e.first+e.size}function ho(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function nt(e,n,u){if(u===void 0&&(u=null),!(this instanceof nt))return new nt(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function li(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function se(e){return nt(e.line,e.ch)}function Ee(e,n){return Lt(e,n)<0?n:e}function _e(e,n){return Lt(e,n)<0?e:n}function ot(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function st(e,n){if(n.line<e.first)return nt(e.first,0);var u=e.first+e.size-1;return n.line>u?nt(u,At(e,u).text.length):$t(n,At(e,n.line).text.length)}function $t(e,n){var u=e.ch;return u==null||u>n?nt(e.line,n):u<0?nt(e.line,0):e}function Qt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=st(e,n[l]);return u}var Tr=function(e,n){this.state=e,this.lookAhead=n},Pr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Pr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(e,n,u){return n instanceof Tr?new Pr(e,Fn(e.mode,n.state),u,n.lookAhead):new Pr(e,Fn(e.mode,n),u)},Pr.prototype.save=function(e){var n=e!==!1?Fn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(n,this.maxLookAhead):n};function er(e,n,u,l){var f=[e.state.modeGen],m={};jl(e,n.text,e.doc.mode,u,function(Z,me){return f.push(Z,me)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var me=e.state.overlays[Z],Ce=1,Ne=0;u.state=!0,jl(e,n.text,me.mode,u,function(Me,Ye){for(var tt=Ce;Ne<Me;){var at=f[Ce];at>Me&&f.splice(Ce,1,Me,f[Ce+1],at),Ce+=2,Ne=Math.min(Me,at)}if(!!Ye)if(me.opaque)f.splice(tt,Ce-tt,Me,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ft=f[tt+1];f[tt+1]=(ft?ft+" ":"")+"overlay "+Ye}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)U(z);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Bl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=en(e,qt(n)),f=n.text.length>e.options.maxHighlightLength&&Fn(e.doc.mode,l.state),m=er(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function en(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Pr(l,!0,n);var m=wf(e,n,u),F=m>l.first&&At(l,m-1).stateAfter,U=F?Pr.fromSaved(l,F,m):new Pr(l,Ai(l.mode),m);return l.iter(m,n,function(z){ms(e,z.text,U);var Z=U.line;z.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ms(e,n,u,l){var f=e.doc.mode,m=new gr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&ba(f,u.state);!m.eol();)xs(f,m,u.state),m.start=m.pos}function ba(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=En(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function xs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=En(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var bs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ws(e,n,u,l){var f=e.doc,m=f.mode,F;n=st(f,n);var U=At(f,n.line),z=en(e,n.line,u),Z=new gr(U.text,e.options.tabSize,z),me;for(l&&(me=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=xs(m,Z,z.state),l&&me.push(new bs(Z,F,Fn(f.mode,z.state)));return l?me:new bs(Z,F,z.state)}function Ul(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function jl(e,n,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var z=0,Z=null,me=new gr(n,e.options.tabSize,l),Ce,Ne=e.options.addModeClass&&[null];for(n==""&&Ul(ba(u,l.state),m);!me.eol();){if(me.pos>e.options.maxHighlightLength?(U=!1,F&&ms(e,n,l,me.pos),me.pos=n.length,Ce=null):Ce=Ul(xs(u,me,l.state,Ne),m),Ne){var Me=Ne[0].name;Me&&(Ce="m-"+(Ce?Me+" "+Ce:Me))}if(!U||Z!=Ce){for(;z<me.start;)z=Math.min(me.start,z+5e3),f(z,Z);Z=Ce}me.start=me.pos}for(;z<me.pos;){var Ye=Math.min(me.pos,z+5e3);f(Ye,Z),z=Ye}}function wf(e,n,u){for(var l,f,m=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=m.first)return m.first;var z=At(m,U-1),Z=z.stateAfter;if(Z&&(!u||U+(Z instanceof Tr?Z.lookAhead:0)<=m.modeFrontier))return U;var me=Qe(z.text,null,e.options.tabSize);(f==null||l>me)&&(f=U-1,l=me)}return f}function Sf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=At(e,l).stateAfter;if(f&&(!(f instanceof Tr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Af=!1,Ci=!1;function Ef(){Af=!0}function Cf(){Ci=!0}function wa(e,n,u){this.marker=e,this.from=n,this.to=u}function Do(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function Of(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function wd(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Sd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var z=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new wa(F,m.from,z?null:m.to))}}return l}function Ad(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var z=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new wa(F,z?null:m.from-n,m.to==null?null:m.to-n))}}return l}function Vl(e,n){if(n.full)return null;var u=Jn(e,n.from.line)&&At(e,n.from.line).markedSpans,l=Jn(e,n.to.line)&&At(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,F=Lt(n.from,n.to)==0,U=Sd(u,f,F),z=Ad(l,m,F),Z=n.text.length==1,me=St(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var Ne=U[Ce];if(Ne.to==null){var Me=Do(z,Ne.marker);Me?Z&&(Ne.to=Me.to==null?null:Me.to+me):Ne.to=f}}if(z)for(var Ye=0;Ye<z.length;++Ye){var tt=z[Ye];if(tt.to!=null&&(tt.to+=me),tt.from==null){var at=Do(U,tt.marker);at||(tt.from=me,Z&&(U||(U=[])).push(tt))}else tt.from+=me,Z&&(U||(U=[])).push(tt)}U&&(U=Wl(U)),z&&z!=U&&(z=Wl(z));var ft=[U];if(!Z){var ht=n.text.length-2,ct;if(ht>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(ct||(ct=[])).push(new wa(U[xt].marker,null,null));for(var Pt=0;Pt<ht;++Pt)ft.push(ct);ft.push(z)}return ft}function Wl(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Hl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Me){if(Me.markedSpans)for(var Ye=0;Ye<Me.markedSpans.length;++Ye){var tt=Me.markedSpans[Ye].marker;tt.readOnly&&(!l||pt(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],m=0;m<l.length;++m)for(var F=l[m],U=F.find(0),z=0;z<f.length;++z){var Z=f[z];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var me=[z,1],Ce=Lt(Z.from,U.from),Ne=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&me.push({from:Z.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&me.push({from:U.to,to:Z.to}),f.splice.apply(f,me),z+=me.length-3}}return f}function zl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Tf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ss(e){return e.inclusiveLeft?-1:0}function As(e){return e.inclusiveRight?1:0}function Gl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Lt(l.from,f.from)||Ss(e)-Ss(n);if(m)return-m;var F=Lt(l.to,f.to)||As(e)-As(n);return F||n.id-e.id}function No(e,n){var u=Ci&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Gl(l,f.marker)<0)&&(l=f.marker);return l}function zt(e){return No(e,!0)}function Yi(e){return No(e,!1)}function Ut(e,n){var u=Ci&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||Gl(l,m.marker)<0)&&(l=m.marker)}return l}function Et(e,n,u,l,f){var m=At(e,n),F=Ci&&m.markedSpans;if(F)for(var U=0;U<F.length;++U){var z=F[U];if(!!z.marker.collapsed){var Z=z.marker.find(0),me=Lt(Z.from,u)||Ss(z.marker)-Ss(f),Ce=Lt(Z.to,l)||As(z.marker)-As(f);if(!(me>=0&&Ce<=0||me<=0&&Ce>=0)&&(me<=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||me>=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Ir(e){for(var n;n=zt(e);)e=n.find(-1,!0).line;return e}function Pf(e){for(var n;n=Yi(e);)e=n.find(1,!0).line;return e}function If(e){for(var n,u;n=Yi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Es(e,n){var u=At(e,n),l=Ir(u);return u==l?n:qt(l)}function Cs(e,n){if(n>e.lastLine())return n;var u=At(e,n),l;if(!Oi(e,u))return n;for(;l=Yi(u);)u=l.find(1,!0).line;return qt(u)+1}function Oi(e,n){var u=Ci&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Os(e,n,l))return!0}}}function Os(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return Os(e,l.line,Do(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&Os(e,n,f))return!0}function Xn(e){e=Ir(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;n+=U.height}return n}function Ji(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=zt(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Yi(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function Sa(e){var n=e.display,u=e.doc;n.maxLine=At(u,u.first),n.maxLineLength=Ji(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Ji(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Xi=function(e,n,u){this.text=e,Tf(this,n),this.height=u?u(this):1};Xi.prototype.lineNo=function(){return qt(this)},He(Xi);function $l(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zl(e),Tf(e,u);var f=l?l(e):1;f!=e.height&&Cn(e,f)}function Ff(e){e.parent=null,zl(e)}var kf={},Kl={};function Yl(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Kl:kf;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function vo(e,n){var u=de("span",null,null,g?"padding-right: .1px":null),l={pre:de("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Ed,Bn(e.display.measure)&&(F=P(m,e.doc.direction))&&(l.addToken=Rf(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&qt(m);zr(m,l,Bl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Le(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Le(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild($i(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var z=l.content.lastChild;(/\bcm-tab\b/.test(z.className)||z.querySelector&&z.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Le(l.pre.className,l.textClass||"")),l}function gn(e){var n=ve("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ed(e,n,u,l,f,m,F){if(!!n){var U=e.splitSpaces?Bo(n,e.trailingSpace):n,z=e.cm.state.specialChars,Z=!1,me;if(!z.test(n))e.col+=n.length,me=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,me),b&&A<9&&(Z=!0),e.pos+=n.length;else{me=document.createDocumentFragment();for(var Ce=0;;){z.lastIndex=Ce;var Ne=z.exec(n),Me=Ne?Ne.index-Ce:n.length-Ce;if(Me){var Ye=document.createTextNode(U.slice(Ce,Ce+Me));b&&A<9?me.appendChild(ve("span",[Ye])):me.appendChild(Ye),e.map.push(e.pos,e.pos+Me,Ye),e.col+=Me,e.pos+=Me}if(!Ne)break;Ce+=Me+1;var tt=void 0;if(Ne[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;tt=me.appendChild(ve("span",It(ft),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ft}else Ne[0]=="\r"||Ne[0]==`
|
|
22
|
-
`?(tt=me.appendChild(ve("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",Ne[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(Ne[0]),tt.setAttribute("cm-text",Ne[0]),b&&A<9?me.appendChild(ve("span",[tt])):me.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||F){var ht=u||"";l&&(ht+=l),f&&(ht+=f);var ct=ve("span",[me],ht,m);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&ct.setAttribute(xt,F[xt]);return e.content.appendChild(ct)}e.content.appendChild(me)}}function Bo(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Rf(e,n){return function(u,l,f,m,F,U,z){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,me=Z+l.length;;){for(var Ce=void 0,Ne=0;Ne<n.length&&(Ce=n[Ne],!(Ce.to>Z&&Ce.from<=Z));Ne++);if(Ce.to>=me)return e(u,l,f,m,F,U,z);e(u,l.slice(0,Ce.to-Z),f,m,null,U,z),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function Jl(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function zr(e,n,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(m,m=u[F]),Yl(u[F+1],n.cm.options));return}for(var U=f.length,z=0,Z=1,me="",Ce,Ne,Me=0,Ye,tt,at,ft,ht;;){if(Me==z){Ye=tt=at=Ne="",ht=null,ft=null,Me=1/0;for(var ct=[],xt=void 0,Pt=0;Pt<l.length;++Pt){var Ot=l[Pt],jt=Ot.marker;if(jt.type=="bookmark"&&Ot.from==z&&jt.widgetNode)ct.push(jt);else if(Ot.from<=z&&(Ot.to==null||Ot.to>z||jt.collapsed&&Ot.to==z&&Ot.from==z)){if(Ot.to!=null&&Ot.to!=z&&Me>Ot.to&&(Me=Ot.to,tt=""),jt.className&&(Ye+=" "+jt.className),jt.css&&(Ne=(Ne?Ne+";":"")+jt.css),jt.startStyle&&Ot.from==z&&(at+=" "+jt.startStyle),jt.endStyle&&Ot.to==Me&&(xt||(xt=[])).push(jt.endStyle,Ot.to),jt.title&&((ht||(ht={})).title=jt.title),jt.attributes)for(var or in jt.attributes)(ht||(ht={}))[or]=jt.attributes[or];jt.collapsed&&(!ft||Gl(ft.marker,jt)<0)&&(ft=Ot)}else Ot.from>z&&Me>Ot.from&&(Me=Ot.from)}if(xt)for(var Vr=0;Vr<xt.length;Vr+=2)xt[Vr+1]==Me&&(tt+=" "+xt[Vr]);if(!ft||ft.from==z)for(var pr=0;pr<ct.length;++pr)Jl(n,0,ct[pr]);if(ft&&(ft.from||0)==z){if(Jl(n,(ft.to==null?U+1:ft.to)-z,ft.marker,ft.from==null),ft.to==null)return;ft.to==z&&(ft=!1)}}if(z>=U)break;for(var bn=Math.min(U,Me);;){if(me){var hn=z+me.length;if(!ft){var Er=hn>bn?me.slice(0,bn-z):me;n.addToken(n,Er,Ce?Ce+Ye:Ye,at,z+Er.length==Me?tt:"",Ne,ht)}if(hn>=bn){me=me.slice(bn-z),z=bn;break}z=hn,at=""}me=f.slice(m,m=u[Z++]),Ce=Yl(u[Z++],n.cm.options)}}}function Ts(e,n,u){this.line=n,this.rest=If(n),this.size=this.rest?qt(St(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Oi(e,n)}function Aa(e,n,u){for(var l=[],f,m=n;m<u;m=f){var F=new Ts(e.doc,At(e.doc,m),m);f=m+F.size,l.push(F)}return l}var go=null;function Mf(e){go?go.ops.push(e):e.ownsGroup=go={ops:[e],delayedCallbacks:[]}}function Xl(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Lf(e,n){var u=e.ownsGroup;if(!!u)try{Xl(u)}finally{go=null,n(u)}}var Uo=null;function Fr(e,n){var u=ee(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;go?f=go.delayedCallbacks:Uo?f=Uo:(f=Uo=[],setTimeout(Ql,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function Ql(){var e=Uo;Uo=null;for(var n=0;n<e.length;++n)e[n]()}function Ps(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?Df(e,n):m=="gutter"?Nf(e,n,u,l):m=="class"?Fs(e,n):m=="widget"&&Cd(e,n,l)}n.changes=null}function jo(e){return e.node==e.text&&(e.node=ve("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&A<8&&(e.node.style.zIndex=2)),e.node}function Is(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=jo(n);n.background=l.insertBefore(ve("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Ea(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):vo(e,n)}function Df(e,n){var u=n.text.className,l=Ea(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Fs(e,n)):u&&(n.text.className=u)}function Fs(e,n){Is(e,n),n.line.wrapClass?jo(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Nf(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=jo(n);n.gutterBackground=ve("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var F=jo(n),U=n.gutter=ve("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(ve("div",ho(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=e.display.gutterSpecs[z].className,me=m.hasOwnProperty(Z)&&m[Z];me&&U.appendChild(ve("div",[me],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Cd(e,n,u){n.alignable&&(n.alignable=null);for(var l=fe("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);Ti(e,n,u)}function Bf(e,n,u,l){var f=Ea(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Fs(e,n),Nf(e,n,u,l),Ti(e,n,l),n.node}function Ti(e,n,u){if(Zl(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Zl(e,n.rest[l],n,u,!1)}function Zl(e,n,u,l,f){if(!!n.widgets)for(var m=jo(u),F=0,U=n.widgets;F<U.length;++F){var z=U[F],Z=ve("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Uf(z,Z,u,l),e.display.input.setUneditable(Z),f&&z.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),Fr(z,"redraw")}}function Uf(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Vo(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),ye(n.display.measure,ve("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,n){for(var u=Ft(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ca(e){return e.lineSpace.offsetTop}function ks(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function _l(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,ve("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function Jr(e){return yt-e.display.nativeBarWidth}function Pi(e){return e.display.scroller.clientWidth-Jr(e)-e.display.barWidth}function fi(e){return e.display.scroller.clientHeight-Jr(e)-e.display.barHeight}function jf(e,n,u){var l=e.options.lineWrapping,f=l&&Pi(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var z=F[U],Z=F[U+1];Math.abs(z.bottom-Z.bottom)>2&&m.push((z.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function ql(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(qt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Vf(e,n){n=Ir(n);var u=qt(n),l=e.display.externalMeasured=new Ts(e.doc,n,u);l.lineN=u;var f=l.built=vo(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function eu(e,n,u,l){return Zn(e,Qn(e,n),u,l)}function Rs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[_n(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function Qn(e,n){var u=qt(n),l=Rs(e,u);l&&!l.text?l=null:l&&l.changes&&(Ps(e,l,u,Us(e)),e.curOp.forceUpdate=!0),l||(l=Vf(e,n));var f=ql(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Zn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),F;return n.cache.hasOwnProperty(m)?F=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(jf(e,n.view,n.rect),n.hasHeights=!0),F=Wf(e,n,u,l),F.bogus||(n.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var tu={left:0,right:0,top:0,bottom:0};function ru(e,n,u){for(var l,f,m,F,U,z,Z=0;Z<e.length;Z+=3)if(U=e[Z],z=e[Z+1],n<U?(f=0,m=1,F="left"):n<z?(f=n-U,m=f+1):(Z==e.length-3||n==z&&e[Z+3]>n)&&(m=z-U,f=m-1,n>=z&&(F="right")),f!=null){if(l=e[Z+2],U==z&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==z-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:m,collapse:F,coverStart:U,coverEnd:z}}function Ms(e,n){var u=tu;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function Wf(e,n,u,l){var f=ru(n.map,u,l),m=f.node,F=f.start,U=f.end,z=f.collapse,Z;if(m.nodeType==3){for(var me=0;me<4;me++){for(;F&&Re(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Re(n.line.text.charAt(f.coverStart+U));)++U;if(b&&A<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Ms(ue(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,z="right"}b&&A<11&&(Z=Hf(e.display.measure,Z))}else{F>0&&(z=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&A<9&&!F&&(!Z||!Z.left&&!Z.right)){var Ne=m.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+xo(e.display),top:Ne.top,bottom:Ne.bottom}:Z=tu}for(var Me=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(Me+Ye)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(tt<at[ft]);ft++);var ht=ft?at[ft-1]:0,ct=at[ft],xt={left:(z=="right"?Z.right:Z.left)-n.rect.left,right:(z=="left"?Z.left:Z.right)-n.rect.left,top:ht,bottom:ct};return!Z.left&&!Z.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=Me,xt.rbottom=Ye),xt}function Hf(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ma(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function Ls(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function nu(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ls(e.display.view[n])}function yo(e){nu(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ds(){return N&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function iu(){return N&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ns(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Vo(e.widgets[u]));return n}function Wo(e,n,u,l,f){if(!f){var m=Ns(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=Xn(n);if(l=="local"?F+=Ca(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:iu());var z=U.left+(l=="window"?0:Ds());u.left+=z,u.right+=z}return u.top+=F,u.bottom+=F,u}function ou(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ds(),f-=iu();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function ci(e,n,u,l,f){return l||(l=At(e.doc,n.line)),Wo(e,l,eu(e,l,n.ch,f),u)}function yn(e,n,u,l,f,m){l=l||At(e.doc,n.line),f||(f=Qn(e,l));function F(Ye,tt){var at=Zn(e,f,Ye,tt?"right":"left",m);return tt?at.left=at.right:at.right=at.left,Wo(e,l,at,u)}var U=P(l,e.doc.direction),z=n.ch,Z=n.sticky;if(z>=l.text.length?(z=l.text.length,Z="before"):z<=0&&(z=0,Z="after"),!U)return F(Z=="before"?z-1:z,Z=="before");function me(Ye,tt,at){var ft=U[tt],ht=ft.level==1;return F(at?Ye-1:Ye,ht!=at)}var Ce=W(U,z,Z),Ne=Ie,Me=me(z,Ce,Z=="before");return Ne!=null&&(Me.other=me(z,Ne,Z!="before")),Me}function Oa(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=xo(e.display)*n.ch);var l=At(e.doc,n.line),f=Xn(l)+Ca(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Qi(e,n,u,l,f){var m=nt(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function Ii(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Qi(l.first,0,null,-1,-1);var f=jn(l,u),m=l.first+l.size-1;if(f>m)return Qi(l.first+l.size-1,At(l,m).text.length,null,1,1);n<0&&(n=0);for(var F=At(l,f);;){var U=zf(e,F,f,n,u),z=Ut(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!z)return U;var Z=z.find(1);if(Z.line==f)return Z;F=At(l,f=Z.line)}}function au(e,n,u,l){l-=Ns(n);var f=n.text.length,m=Ae(function(F){return Zn(e,u,F-1).bottom<=l},f,0);return f=Ae(function(F){return Zn(e,u,F).top>l},m,f),{begin:m,end:f}}function Ta(e,n,u,l){u||(u=Qn(e,n));var f=Wo(e,n,Zn(e,u,l),"line").top;return au(e,n,u,f)}function Bs(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function zf(e,n,u,l,f){f-=Xn(n);var m=Qn(e,n),F=Ns(n),U=0,z=n.text.length,Z=!0,me=P(n,e.doc.direction);if(me){var Ce=(e.options.lineWrapping?Ho:su)(e,n,u,m,me,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,z=Z?Ce.to:Ce.from-1}var Ne=null,Me=null,Ye=Ae(function(Pt){var Ot=Zn(e,m,Pt);return Ot.top+=F,Ot.bottom+=F,Bs(Ot,l,f,!1)?(Ot.top<=f&&Ot.left<=l&&(Ne=Pt,Me=Ot),!0):!1},U,z),tt,at,ft=!1;if(Me){var ht=l-Me.left<Me.right-l,ct=ht==Z;Ye=Ne+(ct?0:1),at=ct?"after":"before",tt=ht?Me.left:Me.right}else{!Z&&(Ye==z||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":Zn(e,m,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var xt=yn(e,nt(u,Ye,at),"line",n,m);tt=xt.left,ft=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=be(n.text,Ye,1),Qi(u,Ye,at,ft,l-tt)}function su(e,n,u,l,f,m,F){var U=Ae(function(Ce){var Ne=f[Ce],Me=Ne.level!=1;return Bs(yn(e,nt(u,Me?Ne.to:Ne.from,Me?"before":"after"),"line",n,l),m,F,!0)},0,f.length-1),z=f[U];if(U>0){var Z=z.level!=1,me=yn(e,nt(u,Z?z.from:z.to,Z?"after":"before"),"line",n,l);Bs(me,m,F,!0)&&me.top>F&&(z=f[U-1])}return z}function Ho(e,n,u,l,f,m,F){var U=au(e,n,l,F),z=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var me=null,Ce=null,Ne=0;Ne<f.length;Ne++){var Me=f[Ne];if(!(Me.from>=Z||Me.to<=z)){var Ye=Me.level!=1,tt=Zn(e,l,Ye?Math.min(Z,Me.to)-1:Math.max(z,Me.from)).right,at=tt<m?m-tt+1e9:tt-m;(!me||Ce>at)&&(me=Me,Ce=at)}}return me||(me=f[f.length-1]),me.from<z&&(me={from:z,to:me.to,level:me.level}),me.to>Z&&(me={from:me.from,to:Z,level:me.level}),me}var Zi;function mo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Zi==null){Zi=ve("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Zi.appendChild(document.createTextNode("x")),Zi.appendChild(ve("br"));Zi.appendChild(document.createTextNode("x"))}ye(e.measure,Zi);var u=Zi.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function xo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=ve("span","xxxxxxxxxx"),u=ve("pre",[n],"CodeMirror-line-like");ye(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Us(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Pa(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Pa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ia(e){var n=mo(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/xo(e.display)-3);return function(f){if(Oi(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function js(e){var n=e.doc,u=Ia(e);n.iter(function(l){var f=u(l);f!=l.height&&Cn(l,f)})}function Fi(e,n,u,l){var f=e.display;if(!u&&Ft(n).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var z=Ii(e,m,F),Z;if(l&&z.xRel>0&&(Z=At(e.doc,z.line).text).length==z.ch){var me=Qe(Z,Z.length,e.options.tabSize)-Z.length;z=nt(z.line,Math.max(0,Math.round((m-_l(e.display).left)/xo(e.display))-me))}return z}function _n(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function ln(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Ci&&Es(e.doc,n)<f.viewTo&&_i(e);else if(u<=f.viewFrom)Ci&&Cs(e.doc,u+l)>f.viewFrom?_i(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)_i(e);else if(n<=f.viewFrom){var m=Fa(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):_i(e)}else if(u>=f.viewTo){var F=Fa(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):_i(e)}else{var U=Fa(e,n,n,-1),z=Fa(e,u,u+l,1);U&&z?(f.view=f.view.slice(0,U.index).concat(Aa(e,U.lineN,z.lineN)).concat(f.view.slice(z.index)),f.viewTo+=l):_i(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function di(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var m=l.view[_n(e,n)];if(m.node!=null){var F=m.changes||(m.changes=[]);pt(F,u)==-1&&F.push(u)}}}function _i(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fa(e,n,u,l){var f=_n(e,n),m,F=e.display.view;if(!Ci||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,z=0;z<f;z++)U+=F[z].size;if(U!=n){if(l>0){if(f==F.length-1)return null;m=U+F[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;Es(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function qi(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=Aa(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=Aa(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(_n(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(Aa(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,_n(e,u)))),l.viewTo=u}function Vs(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function ka(e){e.display.input.showSelection(e.display.input.prepareSelection())}function eo(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var z=u.sel.ranges[U];if(!(z.from().line>=e.display.viewTo||z.to().line<e.display.viewFrom)){var Z=z.empty();if(F){var me=F(e,z);me&&lu(e,me,f)}else(Z||e.options.showCursorWhenSelecting)&&lu(e,z.head,f);Z||Od(e,z,m)}}return l}function lu(e,n,u){var l=yn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(ve("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=ci(e,n,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ra(e,n){return e.top-n.top||e.left-n.left}function Od(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=_l(e.display),U=F.left,z=Math.max(l.sizerWidth,Pi(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function me(ct,xt,Pt,Ot){xt<0&&(xt=0),xt=Math.round(xt),Ot=Math.round(Ot),m.appendChild(ve("div",null,"CodeMirror-selected","position: absolute; left: "+ct+`px;
|
|
23
|
-
top: `+
|
|
24
|
-
height: `+(Ot-
|
|
25
|
-
top: `+(n.top-u.viewOffset-
|
|
26
|
-
height: `+(n.bottom-n.top+
|
|
27
|
-
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function Pd(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?nt(n.line,n.ch+1,"before"):n,n=n.ch?nt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var F=!1,U=yn(e,n),z=!u||u==n?U:yn(e,u);f={left:Math.min(U.left,z.left),top:Math.min(U.top,z.top)-l,right:Math.max(U.left,z.left),bottom:Math.max(U.bottom,z.bottom)+l};var Z=un(e,f),me=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Zt(e,Z.scrollTop),Math.abs(e.doc.scrollTop-me)>1&&(F=!0)),Z.scrollLeft!=null&&(ki(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function Go(e,n){var u=un(e,n);u.scrollTop!=null&&Zt(e,u.scrollTop),u.scrollLeft!=null&&ki(e,u.scrollLeft)}function un(e,n){var u=e.display,l=mo(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=fi(e),F={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+ks(u),z=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=z?0:n.top;else if(n.bottom>f+m){var me=Math.min(n.top,(Z?U:n.bottom)-m);me!=f&&(F.scrollTop=me)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,Me=Pi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>Me;return Ye&&(n.right=n.left+Me),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>Me+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-Me),F}function Vn(e,n){n!=null&&(to(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function fn(e){to(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function $o(e,n,u){(n!=null||u!=null)&&to(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function cu(e,n){to(e),e.curOp.scrollToPos=n}function to(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Oa(e,n.from),l=Oa(e,n.to);kn(e,u,l,n.margin)}}function kn(e,n,u,l){var f=un(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});$o(e,f.scrollLeft,f.scrollTop)}function Zt(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Yo(e,{top:n}),bo(e,n,!0),c&&Yo(e),Di(e,100))}function bo(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function ki(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Ks(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function ro(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+ks(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Jr(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Ri=function(e,n,u){this.cm=u;var l=this.vert=ve("div",[ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ve("div",[ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ri.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},Ri.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ri.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ri.prototype.zeroWidthHack=function(){var e=C&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},Ri.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Ri.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function qn(e,n){n||(n=ro(e));var u=e.display.barWidth,l=e.display.barHeight;Gs(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&zs(e),Gs(e,ro(e)),u=e.display.barWidth,l=e.display.barHeight}function Gs(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var La={native:Ri,null:wo};function Wt(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new La[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?ki(e,n):Zt(e,n)},e),e.display.scrollbars.addClass&&Ve(e.display.wrapper,e.display.scrollbars.addClass)}var du=0;function Mi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++du,markArrays:null},Mf(e.curOp)}function cn(e){var n=e.curOp;n&&Lf(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Ko(u)})}function Ko(e){for(var n=e.ops,u=0;u<n.length;u++)Wn(n[u]);for(var l=0;l<n.length;l++)So(n[l]);for(var f=0;f<n.length;f++)tn(n[f]);for(var m=0;m<n.length;m++)Li(n[m]);for(var F=0;F<n.length;F++)Da(n[F])}function Wn(e){var n=e.cm,u=n.display;hu(n),e.updateMaxLine&&Sa(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new $s(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function So(e){e.updatedDisplay=e.mustUpdate&&Ba(e.cm,e.update)}function tn(e){var n=e.cm,u=n.display;e.updatedDisplay&&zs(n),e.barMeasure=ro(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=eu(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+Jr(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Pi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Li(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&ki(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==De();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&qn(n,e.barMeasure),e.updatedDisplay&&Ua(n,e.barMeasure),e.selectionChanged&&uu(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&fu(e.cm)}function Da(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&ei(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&bo(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&ki(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Pd(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);Td(n,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||Oe(m[U],"hide");if(F)for(var z=0;z<F.length;++z)F[z].lines.length&&Oe(F[z],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Gr(e,n){if(e.curOp)return n();Mi(e);try{return n()}finally{cn(e)}}function yr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Mi(e);try{return n.apply(e,arguments)}finally{cn(e)}}}function Dr(e){return function(){if(this.curOp)return e.apply(this,arguments);Mi(this);try{return e.apply(this,arguments)}finally{cn(this)}}}function kr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Mi(n);try{return e.apply(this,arguments)}finally{cn(n)}}}function Di(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(pu,e))}function pu(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=en(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Fn(n.mode,l.state):null,z=er(e,m,l,!0);U&&(l.state=U),m.styles=z.styles;var Z=m.styleClasses,me=z.classes;me?m.styleClasses=me:Z&&(m.styleClasses=null);for(var Ce=!F||F.length!=m.styles.length||Z!=me&&(!Z||!me||Z.bgClass!=me.bgClass||Z.textClass!=me.textClass),Ne=0;!Ce&&Ne<F.length;++Ne)Ce=F[Ne]!=m.styles[Ne];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ms(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Di(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Gr(e,function(){for(var m=0;m<f.length;m++)di(e,f[m],"text")})}}var $s=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Ma(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Pi(e),this.force=u,this.dims=Us(e),this.events=[]};$s.prototype.signal=function(e,n){Ge(e,n)&&this.events.push(arguments)},$s.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Oe.apply(null,this.events[e])};function hu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=Jr(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=Jr(e)+"px",n.scrollbarsClipped=!0)}function vu(e){if(e.hasFocus())return null;var n=De();if(!n||!oe(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Na(e){if(!(!e||!e.activeElt||e.activeElt==De())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function Ba(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return _i(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Vs(e)==0)return!1;Ys(e)&&(_i(e),n.dims=Us(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ci&&(m=Es(e.doc,m),F=Cs(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;qi(e,m,F),u.viewOffset=Xn(At(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var z=Vs(e);if(!U&&z==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=vu(e);return z>4&&(u.lineDiv.style.display="none"),On(e,u.updateLineNumbers,n.dims),z>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Na(Z),ne(u.cursorDiv),ne(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Di(e,400)),u.updateLineNumbers=null,!0}function ei(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Pi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+ks(e.display)-fi(e),u.top)}),n.visible=Ma(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Ma(e.display,e.doc,u));if(!Ba(e,n))break;zs(e);var f=ro(e);ka(e),qn(e,f),Ua(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Yo(e,n){var u=new $s(e,n);if(Ba(e,u)){zs(e),ei(e,u);var l=ro(e);ka(e),qn(e,l),Ua(e,l),u.finish()}}function On(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var z=l.view,Z=l.viewFrom,me=0;me<z.length;me++){var Ce=z[me];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var Ne=Bf(e,Ce,Z,u);m.insertBefore(Ne,F)}else{for(;F!=Ce.node;)F=U(F);var Me=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(pt(Ce.changes,"gutter")>-1&&(Me=!1),Ps(e,Ce,Z,u)),Me&&(ne(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(ho(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function Rr(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",Fr(e,"gutterChanged",e)}function Ua(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+Jr(e)+"px"}function Ks(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Pa(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var z=0;z<U.length;z++)U[z].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Ys(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=ho(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ve("div",[ve("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Rr(e.display),!0}return!1}function Jo(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Js(e){var n=e.gutters,u=e.gutterSpecs;ne(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=n.appendChild(ve("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",Rr(e)}function Ni(e){Js(e.display),ln(e),Ks(e)}function gu(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=ve("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ve("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=de("div",null,"CodeMirror-code"),f.selectionDiv=ve("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ve("div",null,"CodeMirror-cursors"),f.measure=ve("div",null,"CodeMirror-measure"),f.lineMeasure=ve("div",null,"CodeMirror-measure"),f.lineSpace=de("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=de("div",[f.lineSpace],"CodeMirror-lines");f.mover=ve("div",[m],null,"position: relative"),f.sizer=ve("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ve("div",null,null,"position: absolute; height: "+yt+"px; width: 1px;"),f.gutters=ve("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ve("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ve("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&A<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&M)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Jo(l.gutters,l.lineNumbers),Js(f),u.init(f)}var Xo=0,ti=null;b?ti=-.53:c?ti=15:N?ti=-.7:j&&(ti=-1/3);function Xs(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function yu(e){var n=Xs(e);return n.x*=ti,n.y*=ti,n}function Hn(e,n){var u=Xs(n),l=u.x,f=u.y,m=ti;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var F=e.display,U=F.scroller,z=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&z||f&&Z)){if(f&&C&&g){e:for(var me=n.target,Ce=F.view;me!=U;me=me.parentNode)for(var Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].node==me){e.display.currentWheelTarget=me;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&Zt(e,Math.max(0,U.scrollTop+f*m)),ki(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&it(n),F.wheelStartX=null;return}if(f&&m!=null){var Me=f*m,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;Me<0?Ye=Math.max(0,Ye+Me-50):tt=Math.min(e.doc.height,tt+Me+50),Yo(e,{top:Ye,bottom:tt})}Xo<20&&n.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var at=U.scrollLeft-F.wheelStartX,ft=U.scrollTop-F.wheelStartY,ht=ft&&F.wheelDY&&ft/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!ht&&(ti=(ti*Xo+ht)/(Xo+1),++Xo)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var mn=function(e,n){this.ranges=e,this.primIndex=n};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!li(u.anchor,l.anchor)||!li(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new _t(se(this.ranges[n].anchor),se(this.ranges[n].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var _t=function(e,n){this.anchor=e,this.head=n};_t.prototype.from=function(){return _e(this.anchor,this.head)},_t.prototype.to=function(){return Ee(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Rn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,Me){return Lt(Ne.from(),Me.from())}),u=pt(n,f);for(var m=1;m<n.length;m++){var F=n[m],U=n[m-1],z=Lt(U.to(),F.from());if(l&&!F.empty()?z>0:z>=0){var Z=_e(U.from(),F.from()),me=Ee(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new _t(Ce?me:Z,Ce?Z:me))}}return new mn(n,u)}function pi(e,n){return new mn([new _t(e,n||e)],0)}function hi(e){return e.text?nt(e.from.line+e.text.length-1,St(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Qs(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return hi(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=hi(n).ch-n.to.ch),nt(u,l)}function ja(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new _t(Qs(f.anchor,n),Qs(f.head,n)))}return Rn(e.cm,u,e.sel.primIndex)}function Zs(e,n,u){return e.line==n.line?nt(u.line,e.ch-n.ch+u.ch):nt(u.line+(e.line-n.line),e.ch)}function mu(e,n,u){for(var l=[],f=nt(e.first,0),m=f,F=0;F<n.length;F++){var U=n[F],z=Zs(U.from,f,m),Z=Zs(hi(U),f,m);if(f=U.to,m=Z,u=="around"){var me=e.sel.ranges[F],Ce=Lt(me.head,me.anchor)<0;l[F]=new _t(Ce?Z:z,Ce?z:Z)}else l[F]=new _t(z,z)}return new mn(l,e.sel.primIndex)}function Ao(e){e.doc.mode=Un(e.options,e.doc.modeOption),Va(e)}function Va(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Di(e,100),e.state.modeGen++,e.curOp&&ln(e)}function _s(e,n){return n.from.ch==0&&n.to.ch==0&&St(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function qs(e,n,u,l){function f(ht){return u?u[ht]:null}function m(ht,ct,xt){$l(ht,ct,xt,l),Fr(ht,"change",ht,n)}function F(ht,ct){for(var xt=[],Pt=ht;Pt<ct;++Pt)xt.push(new Xi(Z[Pt],f(Pt),l));return xt}var U=n.from,z=n.to,Z=n.text,me=At(e,U.line),Ce=At(e,z.line),Ne=St(Z),Me=f(Z.length-1),Ye=z.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(_s(e,n)){var tt=F(0,Z.length-1);m(Ce,Ce.text,Me),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(me==Ce)if(Z.length==1)m(me,me.text.slice(0,U.ch)+Ne+me.text.slice(z.ch),Me);else{var at=F(1,Z.length-1);at.push(new Xi(Ne+me.text.slice(z.ch),Me,l)),m(me,me.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,at)}else if(Z.length==1)m(me,me.text.slice(0,U.ch)+Z[0]+Ce.text.slice(z.ch),f(0)),e.remove(U.line+1,Ye);else{m(me,me.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,Ne+Ce.text.slice(z.ch),Me);var ft=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ft)}Fr(e,"change",e,n)}function Je(e,n,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var z=f.linked[U];if(z.doc!=m){var Z=F&&z.sharedHist;u&&!Z||(n(z.doc,Z),l(z.doc,f,Z))}}}l(e,null,!0)}function el(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,js(e),Ao(e),Qo(e),e.options.direction=n.direction,e.options.lineWrapping||Sa(e),e.options.mode=n.modeOption,ln(e)}function Qo(e){(e.doc.direction=="rtl"?Ve:te)(e.display.lineDiv,"CodeMirror-rtl")}function tl(e){Gr(e,function(){Qo(e),ln(e)})}function Zo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Wa(e,n){var u={from:se(n.from),to:hi(n),text:si(e,n.from,n.to)};return bu(e,u,n.from.line,n.to.line+1),Je(e,function(l){return bu(l,u,n.from.line,n.to.line+1)},!0),u}function xu(e){for(;e.length;){var n=St(e);if(n.ranges)e.pop();else break}}function Yt(e,n){if(n)return xu(e.done),St(e.done);if(e.done.length&&!St(e.done).ranges)return St(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),St(e.done)}function rl(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Yt(f,f.lastOp==l)))U=St(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=hi(n):F.changes.push(Wa(e,n));else{var z=St(f.done);for((!z||!z.ranges)&&ri(e.sel,f.done),F={changes:[Wa(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||Oe(e,"historyAdded")}function no(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function $f(e,n,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||no(e,m,St(f.done),n))?f.done[f.done.length-1]=n:ri(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&xu(f.undone)}function ri(e,n){var u=St(n);u&&u.ranges&&u.equals(e)||n.push(e)}function bu(e,n,u,l){var f=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[m]=F.markedSpans),++m})}function wu(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function Kf(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(wu(u[f]));return l}function Su(e,n){var u=Kf(e,n),l=Vl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var z=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==z.marker)continue e;m.push(z)}}else F&&(u[f]=F)}return u}function io(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?mn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var z=0;z<F.length;++z){var Z=F[z],me=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(me=Ce.match(/^spans_(\d+)$/))&&pt(n,Number(me[1]))>-1&&(St(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function nl(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new _t(f,n)}else return new _t(u||n,n)}function Ha(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Xr(e,new mn([nl(e.sel.primary(),n,u,f)],0),l)}function dn(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=nl(e.sel.ranges[m],n[m],null,f);var F=Rn(e.cm,l,e.sel.primIndex);Xr(e,F,u)}function za(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Xr(e,Rn(e.cm,f,e.sel.primIndex),l)}function Au(e,n,u,l){Xr(e,pi(n,u),l)}function il(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new _t(st(e,f[m].anchor),st(e,f[m].head))},origin:u&&u.origin};return Oe(e,"beforeSelectionChange",e,l),e.cm&&Oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Rn(e.cm,l.ranges,l.ranges.length-1):n}function pn(e,n,u){var l=e.history.done,f=St(l);f&&f.ranges?(l[l.length-1]=n,zn(e,n,u)):Xr(e,n,u)}function Xr(e,n,u){zn(e,n,u),$f(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function zn(e,n,u){(Ge(e,"beforeSelectionChange")||e.cm&&Ge(e.cm,"beforeSelectionChange"))&&(n=il(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Ga(e,al(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&fn(e.cm)}function Ga(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),Fr(e,"cursorActivity",e))}function ol(e){Ga(e,al(e,e.sel,null,!1))}function al(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var F=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],z=$a(e,F.anchor,U&&U.anchor,u,l),Z=$a(e,F.head,U&&U.head,u,l);(f||z!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new _t(z,Z))}return f?Rn(e.cm,f,n.primIndex):n}function wr(e,n,u,l,f){var m=At(e,n.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],z=U.marker,Z="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,me="selectRight"in z?!z.selectRight:z.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(me?U.to>=n.ch:U.to>n.ch))){if(f&&(Oe(z,"beforeCursorEnter"),z.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!z.atomic)continue;if(u){var Ce=z.find(l<0?1:-1),Ne=void 0;if((l<0?me:Z)&&(Ce=Ka(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(Ne=Lt(Ce,u))&&(l<0?Ne<0:Ne>0))return wr(e,Ce,n,l,f)}var Me=z.find(l<0?-1:1);return(l<0?Z:me)&&(Me=Ka(e,Me,l,Me.line==n.line?m:null)),Me?wr(e,Me,n,l,f):null}}return n}function $a(e,n,u,l,f){var m=l||1,F=wr(e,n,u,m,f)||!f&&wr(e,n,u,m,!0)||wr(e,n,u,-m,f)||!f&&wr(e,n,u,-m,!0);return F||(e.cantEdit=!0,nt(e.first,0))}function Ka(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,nt(n.line-1)):null:u>0&&n.ch==(l||At(e,n.line)).text.length?n.line<e.first+e.size-1?nt(n.line+1,0):null:new nt(n.line,n.ch+u)}function Eu(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),lt)}function Ya(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,F,U){f&&(l.from=st(e,f)),m&&(l.to=st(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),Oe(e,"beforeChange",e,l),e.cm&&Oe(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Eo(e,n,u){if(e.cm){if(!e.cm.curOp)return yr(e.cm,Eo)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"))&&(n=Ya(e,n,!0),!n))){var l=Af&&!u&&Hl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)Yf(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else Yf(e,n)}}function Yf(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=ja(e,n);rl(e,n,u,e.cm?e.cm.curOp.id:NaN),_o(e,n,u,Vl(e,n));var l=[];Je(e,function(f,m){!m&&pt(l,f.history)==-1&&(Sr(f.history,n),l.push(f.history)),_o(f,n,null,Vl(f,n))})}}function Ja(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=n=="undo"?f.done:f.undone,z=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(ri(m,z),u&&!m.equals(e.sel)){Xr(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var me=[];ri(F,z),z.push({changes:me,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"),Ne=function(tt){var at=m.changes[tt];if(at.origin=n,Ce&&!Ya(e,at,!1))return U.length=0,{};me.push(Wa(e,at));var ft=tt?ja(e,at):St(U);_o(e,at,ft,Su(e,at)),!tt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:hi(at)});var ht=[];Je(e,function(ct,xt){!xt&&pt(ht,ct.history)==-1&&(Sr(ct.history,at),ht.push(ct.history)),_o(ct,at,null,Su(ct,at))})},Me=m.changes.length-1;Me>=0;--Me){var Ye=Ne(Me);if(Ye)return Ye.v}}}}function Cu(e,n){if(n!=0&&(e.first+=n,e.sel=new mn(Vt(e.sel.ranges,function(f){return new _t(nt(f.anchor.line+n,f.anchor.ch),nt(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){ln(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)di(e.cm,l,"gutter")}}function _o(e,n,u,l){if(e.cm&&!e.cm.curOp)return yr(e.cm,_o)(e,n,u,l);if(n.to.line<e.first){Cu(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);Cu(e,f),n={from:nt(e.first,0),to:nt(n.to.line+f,n.to.ch),text:[St(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:nt(m,At(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=si(e,n.from,n.to),u||(u=ja(e,n)),e.cm?Jf(e.cm,n,l):qs(e,n,l),zn(e,u,lt),e.cantEdit&&$a(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function Jf(e,n,u){var l=e.doc,f=e.display,m=n.from,F=n.to,U=!1,z=m.line;e.options.lineWrapping||(z=qt(Ir(At(l,m.line))),l.iter(z,F.line+1,function(Me){if(Me==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Te(e),qs(l,n,u,Ia(e)),e.options.lineWrapping||(l.iter(z,m.line+n.text.length,function(Me){var Ye=Ji(Me);Ye>f.maxLineLength&&(f.maxLine=Me,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Sf(l,m.line),Di(e,400);var Z=n.text.length-(F.line-m.line)-1;n.full?ln(e):m.line==F.line&&n.text.length==1&&!_s(e.doc,n)?di(e,m.line,"text"):ln(e,m.line,F.line+1,Z);var me=Ge(e,"changes"),Ce=Ge(e,"change");if(Ce||me){var Ne={from:m,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&Fr(e,"change",e,Ne),me&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function Bi(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),Eo(e,{from:u,to:l,text:n,origin:f})}function Ou(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Tu(e,n,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)Ou(m.ranges[U].anchor,n,u,l),Ou(m.ranges[U].head,n,u,l);continue}for(var z=0;z<m.changes.length;++z){var Z=m.changes[z];if(u<Z.from.line)Z.from=nt(Z.from.line+l,Z.from.ch),Z.to=nt(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function Sr(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Tu(e.done,u,l,f),Tu(e.undone,u,l,f)}function vi(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=At(e,ot(e,n)):f=qt(n),f==null?null:(l(m,f)&&e.cm&&di(e.cm,f,u),m)}function qo(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}qo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Ff(f),Fr(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function Xa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}Xa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(n,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof qo))){var U=[];this.collapse(U),this.children=[new qo(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var z=new qo(f.lines.slice(U,U+=25));f.height-=z.height,this.children.splice(++l,0,z),z.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new Xa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=pt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new Xa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var F=Math.min(n,m-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=m}}};var Qa=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};Qa.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=qt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var m=Vo(this);Cn(u,Math.max(0,u.height-m)),e&&(Gr(e,function(){Xf(e,u,-m),di(e,l,"widget")}),Fr(e,"lineWidgetCleared",e,this,l))}},Qa.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Vo(this)-n;!f||(Oi(this.doc,l)||Cn(l,l.height+f),u&&Gr(u,function(){u.curOp.forceUpdate=!0,Xf(u,l,f),Fr(u,"lineWidgetChanged",u,e,qt(l))}))},He(Qa);function Xf(e,n,u){Xn(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Vn(e,u)}function Qf(e,n,u,l){var f=new Qa(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),vi(e,n,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,m&&!Oi(e,F)){var z=Xn(F)<e.scrollTop;Cn(F,F.height+Vo(f)),z&&Vn(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&Fr(m,"lineWidgetAdded",m,f,typeof n=="number"?n:qt(n)),f}var Pu=0,oo=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Pu};oo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Mi(e),Ge(this,"clear")){var u=this.find();u&&Fr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=Do(F.markedSpans,this);e&&!this.collapsed?di(e,qt(F),"text"):e&&(U.to!=null&&(f=qt(F)),U.from!=null&&(l=qt(F))),F.markedSpans=Of(F.markedSpans,U),U.from==null&&this.collapsed&&!Oi(this.doc,F)&&e&&Cn(F,mo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var Z=Ir(this.lines[z]),me=Ji(Z);me>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=me,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&ln(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ol(e.doc)),e&&Fr(e,"markerCleared",e,this,l,f),n&&cn(e),this.parent&&this.parent.clear()}},oo.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=Do(m.markedSpans,this);if(F.from!=null&&(u=nt(n?m:qt(m),F.from),e==-1))return u;if(F.to!=null&&(l=nt(n?m:qt(m),F.to),e==1))return l}return u&&{from:u,to:l}},oo.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Gr(l,function(){var f=n.line,m=qt(n.line),F=Rs(l,m);if(F&&(Ls(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Oi(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var z=Vo(u)-U;z&&Cn(f,f.height+z)}Fr(l,"markerChanged",l,e)})},oo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||pt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},oo.prototype.detachLine=function(e){if(this.lines.splice(pt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},He(oo);function Co(e,n,u,l,f){if(l&&l.shared)return Zf(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return yr(e.cm,Co)(e,n,u,l,f);var m=new oo(e,f),F=Lt(n,u);if(l&&Ze(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=de("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Et(e,n.line,n,u,m)||n.line!=u.line&&Et(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Cf()}m.addToHistory&&rl(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,z=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){z&&m.collapsed&&!z.options.lineWrapping&&Ir(Ce)==z.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&Cn(Ce,0),wd(Ce,new wa(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){Oi(e,Ce)&&Cn(Ce,0)}),m.clearOnEnter&&D(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Ef(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Pu,m.atomic=!0),z){if(Z&&(z.curOp.updateMaxLine=!0),m.collapsed)ln(z,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var me=n.line;me<=u.line;me++)di(z,me,"text");m.atomic&&ol(z.doc),Fr(z,"markerAdded",z,m)}return m}var ea=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ea.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Fr(this,"clear")}},ea.prototype.find=function(e,n){return this.primary.find(e,n)},He(ea);function Zf(e,n,u,l,f){l=Ze(l),l.shared=!1;var m=[Co(e,n,u,l,f)],F=m[0],U=l.widgetNode;return Je(e,function(z){U&&(l.widgetNode=U.cloneNode(!0)),m.push(Co(z,st(z,n),st(z,u),l,f));for(var Z=0;Z<z.linked.length;++Z)if(z.linked[Z].isParent)return;F=St(m)}),new ea(m,F)}function Iu(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(n){return n.parent})}function _f(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=Co(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function qf(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];Je(f.primary.doc,function(z){return m.push(z)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];pt(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var fr=0,cr=function(e,n,u,l,f){if(!(this instanceof cr))return new cr(e,n,u,l,f);u==null&&(u=0),Xa.call(this,[new qo([new Xi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=nt(u,0);this.sel=pi(m),this.history=new Zo(null),this.id=++fr,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),qs(this,{from:m,to:m,text:e}),Xr(this,pi(m),lt)};cr.prototype=wt(Xa.prototype,{constructor:cr,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ei(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:kr(function(e){var n=nt(this.first,0),u=this.first+this.size-1;Eo(this,{from:n,to:nt(u,At(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&$o(this.cm,0,0),Xr(this,pi(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,Bi(this,e,n,u,l)},getRange:function(e,n,u){var l=si(this,st(this,e),st(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Jn(this,e))return At(this,e)},getLineNumber:function(e){return qt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=At(this,e)),Ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:kr(function(e,n,u){Au(this,st(this,typeof e=="number"?nt(e,n||0):e),null,u)}),setSelection:kr(function(e,n,u){Au(this,st(this,e),st(this,n||e),u)}),extendSelection:kr(function(e,n,u){Ha(this,st(this,e),n&&st(this,n),u)}),extendSelections:kr(function(e,n){dn(this,Qt(this,e),n)}),extendSelectionsBy:kr(function(e,n){var u=Vt(this.sel.ranges,e);dn(this,Qt(this,u),n)}),setSelections:kr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new _t(st(this,e[f].anchor),st(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Xr(this,Rn(this.cm,l,n),u)}}),addSelection:kr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new _t(st(this,e),st(this,n||e))),Xr(this,Rn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=si(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=si(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:kr(function(e,n,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&mu(this,l,n),z=l.length-1;z>=0;z--)Eo(this,l[z]);U?pn(this,U):this.cm&&fn(this.cm)}),undo:kr(function(){Ja(this,"undo")}),redo:kr(function(){Ja(this,"redo")}),undoSelection:kr(function(){Ja(this,"undo",!0)}),redoSelection:kr(function(){Ja(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new Zo(this.history),Je(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:io(this.history.done),undone:io(this.history.undone)}},setHistory:function(e){var n=this.history=new Zo(this.history);n.done=io(e.done.slice(0),null,!0),n.undone=io(e.undone.slice(0),null,!0)},setGutterMarker:kr(function(e,n,u){return vi(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&K(f)&&(l.gutterMarkers=null),!0})}),clearGutter:kr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&vi(n,u,"gutter",function(){return u.gutterMarkers[e]=null,K(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Jn(this,e)||(n=e,e=At(this,e),!e))return null}else if(n=qt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:kr(function(e,n,u){return vi(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(fe(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:kr(function(e,n,u){return vi(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(fe(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:kr(function(e,n,u){return Qf(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return Co(this,st(this,e),st(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=st(this,e),Co(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=At(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=st(this,e),n=st(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var F=m.markedSpans;if(F)for(var U=0;U<F.length;U++){var z=F[U];!(z.to!=null&&f==e.line&&e.ch>=z.to||z.from==null&&f!=e.line||z.from!=null&&f==n.line&&z.from>=n.ch)&&(!u||u(z.marker))&&l.push(z.marker.parent||z.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),st(this,nt(u,n))},indexFromPos:function(e){e=st(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new cr(Ei(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new cr(Ei(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],_f(l,Iu(this)),l},unlinkDoc:function(e){if(e instanceof ir&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),qf(Iu(this));break}}if(e.history==this.history){var l=[e.id];Je(e,function(f){return l.push(f.id)},!0),e.history=new Zo(null),e.history.done=io(this.history.done,l),e.history.undone=io(this.history.undone,l)}},iterLinkedDocs:function(e){Je(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):$n(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
-
`},setDirection:kr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&tl(this.cm))})}),cr.prototype.eachLine=cr.prototype.iter;var Fu=0;function sl(e){var n=this;if(ll(n),!(Pe(n,e)||ui(n.display,e))){it(e),b&&(Fu=+new Date);var u=Fi(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),F=0,U=function(){++F==f&&yr(n,function(){u=st(n.doc,u);var Me={from:u,to:u,text:n.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};Eo(n.doc,Me),pn(n.doc,pi(st(n.doc,u),st(n.doc,hi(Me))))})()},z=function(Me,Ye){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,Me.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var at=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){U();return}m[Ye]=at,U()},tt.readAsText(Me)},Z=0;Z<l.length;Z++)z(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var me=e.dataTransfer.getData("Text");if(me){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),zn(n.doc,pi(u,u)),Ce)for(var Ne=0;Ne<Ce.length;++Ne)Bi(n.doc,"",Ce[Ne].anchor,Ce[Ne].head,"drag");n.replaceSelection(me,"around","paste"),n.display.input.focus()}}catch(Me){}}}}function ku(e,n){if(b&&(!e.state.draggingText||+new Date-Fu<100)){Kt(n);return}if(!(Pe(e,n)||ui(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=ve("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function Oo(e,n){var u=Fi(e,n);if(!!u){var l=document.createDocumentFragment();lu(e,u,l),e.display.dragCursor||(e.display.dragCursor=ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function ll(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ul(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var Ru=!1;function Mu(){Ru||(fl(),Ru=!0)}function fl(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ul(Lu)},100))}),D(window,"blur",function(){return ul(zo)})}function Lu(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var gi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ui=0;Ui<10;Ui++)gi[Ui+48]=gi[Ui+96]=String(Ui);for(var Za=65;Za<=90;Za++)gi[Za]=String.fromCharCode(Za);for(var ta=1;ta<=12;ta++)gi[ta+111]=gi[ta+63235]="F"+ta;var xn={};xn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},xn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},xn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},xn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},xn.default=C?xn.macDefault:xn.pcDefault;function Du(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,m,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function ec(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Vt(u.split(" "),Du),m=0;m<f.length;m++){var F=void 0,U=void 0;m==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,m+1).join(" "),F="...");var z=n[U];if(!z)n[U]=F;else if(z!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function yi(e,n,u,l){n=ra(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return yi(e,n.fallthrough,u,l);for(var m=0;m<n.fallthrough.length;m++){var F=yi(e,n.fallthrough[m],u,l);if(F)return F}}}function Nu(e){var n=typeof e=="string"?e:gi[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Bu(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function cl(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=gi[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Bu(u,e,n))}function ra(e){return typeof e=="string"?xn[e]:e}function ao(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Lt(m.from,St(l).to)<=0;){var F=l.pop();if(Lt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}Gr(e,function(){for(var U=l.length-1;U>=0;U--)Bi(e.doc,"",l[U].from,l[U].to,"+delete");fn(e)})}function _a(e,n,u){var l=be(e.text,n+u,u);return l<0||l>e.text.length?null:l}function dl(e,n,u){var l=_a(e,n.ch,u);return l==null?null:new nt(n.line,l,u<0?"after":"before")}function pl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=P(u,n.doc.direction);if(m){var F=f<0?St(m):m[0],U=f<0==(F.level==1),z=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var me=Qn(n,u);Z=f<0?u.text.length-1:0;var Ce=Zn(n,me,Z).top;Z=Ae(function(Ne){return Zn(n,me,Ne).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),z=="before"&&(Z=_a(u,Z,1))}else Z=f<0?F.to:F.from;return new nt(l,Z,z)}}return new nt(l,f<0?u.text.length:0,f<0?"before":"after")}function qa(e,n,u,l){var f=P(n,e.doc.direction);if(!f)return dl(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=W(f,u.ch,u.sticky),F=f[m];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return dl(n,u,l);var U=function(ft,ht){return _a(n,ft instanceof nt?ft.ch:ft,ht)},z,Z=function(ft){return e.options.lineWrapping?(z=z||Qn(e,n),Ta(e,n,z,ft)):{begin:0,end:n.text.length}},me=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,Ne=U(u,Ce?1:-1);if(Ne!=null&&(Ce?Ne<=F.to&&Ne<=me.end:Ne>=F.from&&Ne>=me.begin)){var Me=Ce?"before":"after";return new nt(u.line,Ne,Me)}}var Ye=function(ft,ht,ct){for(var xt=function(or,Vr){return Vr?new nt(u.line,U(or,1),"before"):new nt(u.line,or,"after")};ft>=0&&ft<f.length;ft+=ht){var Pt=f[ft],Ot=ht>0==(Pt.level!=1),jt=Ot?ct.begin:U(ct.end,-1);if(Pt.from<=jt&&jt<Pt.to||(jt=Ot?Pt.from:U(Pt.to,-1),ct.begin<=jt&&jt<ct.end))return xt(jt,Ot)}},tt=Ye(m+l,l,me);if(tt)return tt;var at=l>0?me.end:U(me.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(at)),tt)?tt:null}var na={selectAll:Eu,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return ao(e,function(n){if(n.empty()){var u=At(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:nt(n.head.line+1,0)}:{from:n.head,to:nt(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return ao(e,function(n){return{from:nt(n.from().line,0),to:st(e.doc,nt(n.to().line+1,0))}})},delLineLeft:function(e){return ao(e,function(n){return{from:nt(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return ao(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return ao(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Ar(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return rc(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return tc(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?rc(e,n.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),F=Qe(e.getLine(m.line),m.ch,l);n.push(It(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Gr(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=At(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new nt(f.line,f.ch-1)),f.ch>0)f=new nt(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),nt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=At(e.doc,f.line-1).text;F&&(f=new nt(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),nt(f.line-1,F.length-1),f,"+transpose"))}}u.push(new _t(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Gr(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);fn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ar(e,n){var u=At(e.doc,n),l=Ir(u);return l!=u&&(n=qt(l)),pl(!0,e,l,n,1)}function tc(e,n){var u=At(e.doc,n),l=Pf(u);return l!=u&&(n=qt(l)),pl(!0,e,u,n,-1)}function rc(e,n){var u=Ar(e,n.line),l=At(e.doc,u.line),f=P(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=m&&n.ch;return nt(u.line,F?0:m,u.sticky)}return u}function es(e,n,u){if(typeof n=="string"&&(n=na[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function ji(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=yi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&yi(n,e.options.extraKeys,u,e)||yi(n,e.options.keyMap,u,e)}var nc=new ut;function ia(e,n,u,l){var f=e.state.keySeq;if(f){if(Nu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:nc.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Uu(e,f+" "+n,u,l))return!0}return Uu(e,n,u,l)}function Uu(e,n,u,l){var f=ji(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&Fr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(it(u),uu(e)),!!f}function ju(e,n){var u=cl(n,!0);return u?n.shiftKey&&!e.state.keySeq?ia(e,"Shift-"+u,n,function(l){return es(e,l,!0)})||ia(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return es(e,l)}):ia(e,u,n,function(l){return es(e,l)}):!1}function Id(e,n,u){return ia(e,"'"+u+"'",n,function(l){return es(e,l,!0)})}var Vu=null;function ic(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=De(),!Pe(n,e))){b&&A<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=ju(n,e);B&&(Vu=l?u:null,!l&&u==88&&!Kn&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Fd(n)}}function Fd(e){var n=e.display.lineDiv;Ve(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),ce(document,"keyup",u),ce(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function oc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Pe(this,e)}function ac(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ui(n.display,e)||Pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==Vu){Vu=null,it(e);return}if(!(B&&(!e.which||e.which<10)&&ju(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Id(n,e,f)||n.display.input.onKeyPress(e))}}}var kd=400,Wu=function(e,n,u){this.time=e,this.pos=n,this.button=u};Wu.prototype.compare=function(e,n,u){return this.time+kd>e&&Lt(n,this.pos)==0&&u==this.button};var ts,rs;function Hu(e,n){var u=+new Date;return rs&&rs.compare(u,e,n)?(ts=rs=null,"triple"):ts&&ts.compare(u,e,n)?(rs=new Wu(u,e,n),ts=null,"double"):(ts=new Wu(u,e,n),rs=null,"single")}function so(e){var n=this,u=n.display;if(!(Pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ui(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!To(n,e)){var l=Fi(n,e),f=Sn(e),m=l?Hu(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&sc(n,f,l,m,e))&&(f==1?l?ns(n,l,m,e):Ft(e)==u.scroller&&it(e):f==2?(l&&Ha(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Ws(n)))}}}function sc(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,ia(e,Bu(m,f),f,function(F){if(typeof F=="string"&&(F=na[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=qe}finally{e.state.suppressEdits=!1}return U})}function lc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function ns(e,n,u,l){b?setTimeout(rt(fu,e),0):e.curOp.focus=De();var f=lc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&qr&&!e.isReadOnly()&&u=="single"&&(F=m.contains(n))>-1&&(Lt((F=m.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?uc(e,l,n,f):fc(e,l,n,f)}function uc(e,n,u,l){var f=e.display,m=!1,F=yr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ws(e)),ce(f.wrapper.ownerDocument,"mouseup",F),ce(f.wrapper.ownerDocument,"mousemove",U),ce(f.scroller,"dragstart",z),ce(f.scroller,"drop",F),m||(it(Z),l.addNew||Ha(e.doc,u,null,null,l.extend),g&&!j||b&&A==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},z=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",F),D(f.wrapper.ownerDocument,"mousemove",U),D(f.scroller,"dragstart",z),D(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function zu(e,n,u){if(u=="char")return new _t(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new _t(nt(n.line,0),st(e.doc,nt(n.line+1,0)));var l=u(e,n);return new _t(l.from,l.to)}function fc(e,n,u,l){b&&Ws(e);var f=e.display,m=e.doc;it(n);var F,U,z=m.sel,Z=z.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new _t(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new _t(u,u)),u=Fi(e,n,!0,!0),U=-1;else{var me=zu(e,u,l.unit);l.extend?F=nl(F,me.anchor,me.head,l.extend):F=me}l.addNew?U==-1?(U=Z.length,Xr(m,Rn(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Xr(m,Rn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),z=m.sel):za(m,U,F,vt):(U=0,Xr(m,new mn([F],0),vt),z=m.sel);var Ce=u;function Ne(ct){if(Lt(Ce,ct)!=0)if(Ce=ct,l.unit=="rectangle"){for(var xt=[],Pt=e.options.tabSize,Ot=Qe(At(m,u.line).text,u.ch,Pt),jt=Qe(At(m,ct.line).text,ct.ch,Pt),or=Math.min(Ot,jt),Vr=Math.max(Ot,jt),pr=Math.min(u.line,ct.line),bn=Math.min(e.lastLine(),Math.max(u.line,ct.line));pr<=bn;pr++){var hn=At(m,pr).text,Er=dt(hn,or,Pt);or==Vr?xt.push(new _t(nt(pr,Er),nt(pr,Er))):hn.length>Er&&xt.push(new _t(nt(pr,Er),nt(pr,dt(hn,Vr,Pt))))}xt.length||xt.push(new _t(u,u)),Xr(m,Rn(e,z.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ct)}else{var rn=F,$r=zu(e,ct,l.unit),Nr=rn.anchor,Mr;Lt($r.anchor,Nr)>0?(Mr=$r.head,Nr=_e(rn.from(),$r.anchor)):(Mr=$r.anchor,Nr=Ee(rn.to(),$r.head));var xr=z.ranges.slice(0);xr[U]=cc(e,new _t(st(m,Nr),Mr)),Xr(m,Rn(e,xr,U),vt)}}var Me=f.wrapper.getBoundingClientRect(),Ye=0;function tt(ct){var xt=++Ye,Pt=Fi(e,ct,!0,l.unit=="rectangle");if(!!Pt)if(Lt(Pt,Ce)!=0){e.curOp.focus=De(),Ne(Pt);var Ot=Ma(f,m);(Pt.line>=Ot.to||Pt.line<Ot.from)&&setTimeout(yr(e,function(){Ye==xt&&tt(ct)}),150)}else{var jt=ct.clientY<Me.top?-20:ct.clientY>Me.bottom?20:0;jt&&setTimeout(yr(e,function(){Ye==xt&&(f.scroller.scrollTop+=jt,tt(ct))}),50)}}function at(ct){e.state.selectingText=!1,Ye=1/0,ct&&(it(ct),f.input.focus()),ce(f.wrapper.ownerDocument,"mousemove",ft),ce(f.wrapper.ownerDocument,"mouseup",ht),m.history.lastSelOrigin=null}var ft=yr(e,function(ct){ct.buttons===0||!Sn(ct)?at(ct):tt(ct)}),ht=yr(e,at);e.state.selectingText=ht,D(f.wrapper.ownerDocument,"mousemove",ft),D(f.wrapper.ownerDocument,"mouseup",ht)}function cc(e,n){var u=n.anchor,l=n.head,f=At(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=P(f);if(!m)return n;var F=W(m,u.ch,u.sticky),U=m[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var z=F+(U.from==u.ch==(U.level!=1)?0:1);if(z==0||z==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var me=W(m,l.ch,l.sticky),Ce=me-F||(l.ch-u.ch)*(U.level==1?-1:1);me==z-1||me==z?Z=Ce<0:Z=Ce>0}var Ne=m[z+(Z?-1:0)],Me=Z==(Ne.level==1),Ye=Me?Ne.from:Ne.to,tt=Me?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new _t(new nt(u.line,Ye,tt),l)}function hl(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&it(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!Ge(e,u))return Ct(n);m-=U.top-F.viewOffset;for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=F.gutters.childNodes[z];if(Z&&Z.getBoundingClientRect().right>=f){var me=jn(e.doc,m),Ce=e.display.gutterSpecs[z];return Oe(e,u,e,me,Ce.className,n),Ct(n)}}}function To(e,n){return hl(e,n,"gutterClick",!0)}function dc(e,n){ui(e.display,n)||lo(e,n)||Pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function lo(e,n){return Ge(e,"gutterContextMenu")?hl(e,n,"gutterContextMenu",!1):!1}function oa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),yo(e)}var ni={toString:function(){return"CodeMirror.Init"}},vl={},aa={};function pc(e){var n=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(n[l]=F?function(U,z,Z){Z!=ni&&m(U,z,Z)}:m)}e.defineOption=u,e.Init=ni,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ao(l)},!0),u("indentUnit",2,Ao,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Va(l),yo(l),ln(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(z){for(var Z=0;;){var me=z.text.indexOf(f,Z);if(me==-1)break;Z=me+f.length,m.push(nt(F,me))}F++});for(var U=m.length-1;U>=0;U--)Bi(l.doc,f,m[U],nt(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=ni&&l.refresh()}),u("specialCharPlaceholder",gn,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){oa(l),Ni(l)},!0),u("keyMap","default",function(l,f,m){var F=ra(f),U=m!=ni&&ra(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,$u,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Jo(f,l.options.lineNumbers),Ni(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Pa(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return qn(l)},!0),u("scrollbarStyle","native",function(l){Wt(l),qn(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Jo(l.options.gutters,f),Ni(l)},!0),u("firstLineNumber",1,Ni,!0),u("lineNumberFormatter",function(l){return l},Ni,!0),u("showCursorWhenSelecting",!1,ka,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(zo(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Gu),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,ka,!0),u("singleCursorHeightPerLine",!0,ka,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Va,!0),u("addModeClass",!1,Va,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Va,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Gu(e,n,u){var l=u&&u!=ni;if(!n!=!l){var f=e.display.dragFunctions,m=n?D:ce;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function $u(e){e.options.lineWrapping?(Ve(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),Sa(e)),js(e),ln(e),yo(e),setTimeout(function(){return qn(e)},100)}function ir(e,n){var u=this;if(!(this instanceof ir))return new ir(e,n);this.options=n=n?Ze(n):{},Ze(vl,n,!1);var l=n.value;typeof l=="string"?l=new cr(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new ir.inputStyles[n.inputStyle](this),m=this.display=new gu(e,l,f,n);m.wrapper.CodeMirror=this,oa(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wt(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ut,keySeq:null,specialChars:null},n.autofocus&&!M&&m.input.focus(),b&&A<11&&setTimeout(function(){return u.display.input.reset(!0)},20),hc(this),Mu(),Mi(this),this.curOp.forceUpdate=!0,el(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Hs(u)},20):zo(this);for(var F in aa)aa.hasOwnProperty(F)&&aa[F](this,n[F],ni);Ys(this),n.finishInit&&n.finishInit(this);for(var U=0;U<is.length;++U)is[U](this);cn(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}ir.defaults=vl,ir.optionHandlers=aa;function hc(e){var n=e.display;D(n.scroller,"mousedown",yr(e,so)),b&&A<11?D(n.scroller,"dblclick",yr(e,function(z){if(!Pe(e,z)){var Z=Fi(e,z);if(!(!Z||To(e,z)||ui(e.display,z))){it(z);var me=e.findWordAt(Z);Ha(e.doc,me.anchor,me.head)}}})):D(n.scroller,"dblclick",function(z){return Pe(e,z)||it(z)}),D(n.scroller,"contextmenu",function(z){return dc(e,z)}),D(n.input.getField(),"contextmenu",function(z){n.scroller.contains(z.target)||dc(e,z)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function m(z){if(z.touches.length!=1)return!1;var Z=z.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(z,Z){if(Z.left==null)return!0;var me=Z.left-z.left,Ce=Z.top-z.top;return me*me+Ce*Ce>20*20}D(n.scroller,"touchstart",function(z){if(!Pe(e,z)&&!m(z)&&!To(e,z)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},z.touches.length==1&&(n.activeTouch.left=z.touches[0].pageX,n.activeTouch.top=z.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(z){var Z=n.activeTouch;if(Z&&!ui(n,z)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var me=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new _t(me,me):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(me):Ce=new _t(nt(me.line,0),st(e.doc,nt(me.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),it(z)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Zt(e,n.scroller.scrollTop),ki(e,n.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),D(n.scroller,"mousewheel",function(z){return Hn(e,z)}),D(n.scroller,"DOMMouseScroll",function(z){return Hn(e,z)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(z){Pe(e,z)||Kt(z)},over:function(z){Pe(e,z)||(Oo(e,z),Kt(z))},start:function(z){return ku(e,z)},drop:yr(e,sl),leave:function(z){Pe(e,z)||ll(e)}};var U=n.input.getField();D(U,"keyup",function(z){return oc.call(e,z)}),D(U,"keydown",yr(e,ic)),D(U,"keypress",yr(e,ac)),D(U,"focus",function(z){return Hs(e,z)}),D(U,"blur",function(z){return zo(e,z)})}var is=[];ir.defineInitHook=function(e){return is.push(e)};function Po(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=en(e,n).state:u="prev");var F=e.options.tabSize,U=At(f,n),z=Qe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],me;if(!l&&!/\S/.test(U.text))me=0,u="not";else if(u=="smart"&&(me=f.mode.indent(m,U.text.slice(Z.length),U.text),me==qe||me>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?me=Qe(At(f,n-1).text,null,F):me=0:u=="add"?me=z+e.options.indentUnit:u=="subtract"?me=z-e.options.indentUnit:typeof u=="number"&&(me=z+u),me=Math.max(0,me);var Ce="",Ne=0;if(e.options.indentWithTabs)for(var Me=Math.floor(me/F);Me;--Me)Ne+=F,Ce+=" ";if(Ne<me&&(Ce+=It(me-Ne)),Ce!=Z)return Bi(f,Ce,nt(n,0),nt(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var at=nt(n,Z.length);za(f,Ye,new _t(at,at));break}}}var Mn=null;function os(e){Mn=e}function gl(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,z=$n(n),Z=null;if(U&&l.ranges.length>1)if(Mn&&Mn.text.join(`
|
|
30
|
-
`)==n){if(l.ranges.length%
|
|
21
|
+
`,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),n+=F+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},Tn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Kn=function(){var e=ve("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),pn=null;function Oa(e){if(pn!=null)return pn;var n=ye(e,ve("span","x")),u=n.getBoundingClientRect(),l=ue(n,0,1).getBoundingClientRect();return pn=Math.abs(u.left-l.left)>1}var jo={},Sn={};function Yn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),jo[e]=n}function yi(e,n){Sn[e]=n}function $i(e){if(typeof e=="string"&&Sn.hasOwnProperty(e))e=Sn[e];else if(e&&typeof e.name=="string"&&Sn.hasOwnProperty(e.name)){var n=Sn[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $i("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $i("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bn(e,n){n=$i(n);var u=jo[n.name];if(!u)return Bn(e,"text/plain");var l=u(e,n);if(mi.hasOwnProperty(n.name)){var f=mi[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var mi={};function Ta(e,n){var u=mi.hasOwnProperty(e)?mi[e]:mi[e]={};Qe(n,u)}function Pn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function An(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function xi(e,n,u){return e.startState?e.startState(n,u):!0}var mr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};mr.prototype.eol=function(){return this.pos>=this.string.length},mr.prototype.sol=function(){return this.pos==this.lineStart},mr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},mr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},mr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},mr.prototype.skipToEnd=function(){this.pos=this.string.length},mr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},mr.prototype.backUp=function(e){this.pos-=e},mr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},mr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},mr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},mr.prototype.current=function(){return this.string.slice(this.start,this.pos)},mr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},mr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},mr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Et(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function qn(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function bi(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function En(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function qt(e){if(e.parent==null)return null;for(var n=e.parent,u=pt(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Un(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],z=U.height;if(n<z)break;n-=z}return u+F}function Jn(e,n){return n>=e.first&&n<e.first+e.size}function po(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function nt(e,n,u){if(u===void 0&&(u=null),!(this instanceof nt))return new nt(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function ei(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function se(e){return nt(e.line,e.ch)}function Ce(e,n){return Lt(e,n)<0?n:e}function _e(e,n){return Lt(e,n)<0?e:n}function ot(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function st(e,n){if(n.line<e.first)return nt(e.first,0);var u=e.first+e.size-1;return n.line>u?nt(u,Et(e,u).text.length):Kt(n,Et(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?nt(e.line,n):u<0?nt(e.line,0):e}function Zt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=st(e,n[l]);return u}var Tr=function(e,n){this.state=e,this.lookAhead=n},Pr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Pr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(e,n,u){return n instanceof Tr?new Pr(e,Pn(e.mode,n.state),u,n.lookAhead):new Pr(e,Pn(e.mode,n),u)},Pr.prototype.save=function(e){var n=e!==!1?Pn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(n,this.maxLookAhead):n};function er(e,n,u,l){var f=[e.state.modeGen],m={};jl(e,n.text,e.doc.mode,u,function(Z,xe){return f.push(Z,xe)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var xe=e.state.overlays[Z],Ee=1,Ne=0;u.state=!0,jl(e,n.text,xe.mode,u,function(Me,Ye){for(var tt=Ee;Ne<Me;){var at=f[Ee];at>Me&&f.splice(Ee,1,Me,f[Ee+1],at),Ee+=2,Ne=Math.min(Me,at)}if(!!Ye)if(xe.opaque)f.splice(tt,Ee-tt,Me,"overlay "+Ye),Ee=tt+2;else for(;tt<Ee;tt+=2){var ft=f[tt+1];f[tt+1]=(ft?ft+" ":"")+"overlay "+Ye}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},z=0;z<e.state.overlays.length;++z)U(z);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Bl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=_r(e,qt(n)),f=n.text.length>e.options.maxHighlightLength&&Pn(e.doc.mode,l.state),m=er(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function _r(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Pr(l,!0,n);var m=gf(e,n,u),F=m>l.first&&Et(l,m-1).stateAfter,U=F?Pr.fromSaved(l,F,m):new Pr(l,xi(l.mode),m);return l.iter(m,n,function(z){ms(e,z.text,U);var Z=U.line;z.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ms(e,n,u,l){var f=e.doc.mode,m=new mr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&Pa(f,u.state);!m.eol();)xs(f,m,u.state),m.start=m.pos}function Pa(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=An(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function xs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=An(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var bs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ws(e,n,u,l){var f=e.doc,m=f.mode,F;n=st(f,n);var U=Et(f,n.line),z=_r(e,n.line,u),Z=new mr(U.text,e.options.tabSize,z),xe;for(l&&(xe=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=xs(m,Z,z.state),l&&xe.push(new bs(Z,F,Pn(f.mode,z.state)));return l?xe:new bs(Z,F,z.state)}function Ul(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function jl(e,n,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var z=0,Z=null,xe=new mr(n,e.options.tabSize,l),Ee,Ne=e.options.addModeClass&&[null];for(n==""&&Ul(Pa(u,l.state),m);!xe.eol();){if(xe.pos>e.options.maxHighlightLength?(U=!1,F&&ms(e,n,l,xe.pos),xe.pos=n.length,Ee=null):Ee=Ul(xs(u,xe,l.state,Ne),m),Ne){var Me=Ne[0].name;Me&&(Ee="m-"+(Ee?Me+" "+Ee:Me))}if(!U||Z!=Ee){for(;z<xe.start;)z=Math.min(xe.start,z+5e3),f(z,Z);Z=Ee}xe.start=xe.pos}for(;z<xe.pos;){var Ye=Math.min(xe.pos,z+5e3);f(Ye,Z),z=Ye}}function gf(e,n,u){for(var l,f,m=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=m.first)return m.first;var z=Et(m,U-1),Z=z.stateAfter;if(Z&&(!u||U+(Z instanceof Tr?Z.lookAhead:0)<=m.modeFrontier))return U;var xe=Xe(z.text,null,e.options.tabSize);(f==null||l>xe)&&(f=U-1,l=xe)}return f}function yf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=Et(e,l).stateAfter;if(f&&(!(f instanceof Tr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var mf=!1,wi=!1;function xf(){mf=!0}function bf(){wi=!0}function Ia(e,n,u){this.marker=e,this.from=n,this.to=u}function Vo(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function wf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function md(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function xd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var z=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new Ia(F,m.from,z?null:m.to))}}return l}function bd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var z=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new Ia(F,z?null:m.from-n,m.to==null?null:m.to-n))}}return l}function Vl(e,n){if(n.full)return null;var u=Jn(e,n.from.line)&&Et(e,n.from.line).markedSpans,l=Jn(e,n.to.line)&&Et(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,F=Lt(n.from,n.to)==0,U=xd(u,f,F),z=bd(l,m,F),Z=n.text.length==1,xe=At(n.text).length+(Z?f:0);if(U)for(var Ee=0;Ee<U.length;++Ee){var Ne=U[Ee];if(Ne.to==null){var Me=Vo(z,Ne.marker);Me?Z&&(Ne.to=Me.to==null?null:Me.to+xe):Ne.to=f}}if(z)for(var Ye=0;Ye<z.length;++Ye){var tt=z[Ye];if(tt.to!=null&&(tt.to+=xe),tt.from==null){var at=Vo(U,tt.marker);at||(tt.from=xe,Z&&(U||(U=[])).push(tt))}else tt.from+=xe,Z&&(U||(U=[])).push(tt)}U&&(U=Wl(U)),z&&z!=U&&(z=Wl(z));var ft=[U];if(!Z){var ht=n.text.length-2,ct;if(ht>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(ct||(ct=[])).push(new Ia(U[bt].marker,null,null));for(var Pt=0;Pt<ht;++Pt)ft.push(ct);ft.push(z)}return ft}function Wl(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Hl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(Me){if(Me.markedSpans)for(var Ye=0;Ye<Me.markedSpans.length;++Ye){var tt=Me.markedSpans[Ye].marker;tt.readOnly&&(!l||pt(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],m=0;m<l.length;++m)for(var F=l[m],U=F.find(0),z=0;z<f.length;++z){var Z=f[z];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var xe=[z,1],Ee=Lt(Z.from,U.from),Ne=Lt(Z.to,U.to);(Ee<0||!F.inclusiveLeft&&!Ee)&&xe.push({from:Z.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&xe.push({from:U.to,to:Z.to}),f.splice.apply(f,xe),z+=xe.length-3}}return f}function zl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Sf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function Ss(e){return e.inclusiveLeft?-1:0}function As(e){return e.inclusiveRight?1:0}function Gl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Lt(l.from,f.from)||Ss(e)-Ss(n);if(m)return-m;var F=Lt(l.to,f.to)||As(e)-As(n);return F||n.id-e.id}function Wo(e,n){var u=wi&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Gl(l,f.marker)<0)&&(l=f.marker);return l}function zt(e){return Wo(e,!0)}function Ki(e){return Wo(e,!1)}function Gt(e,n){var u=wi&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||Gl(l,m.marker)<0)&&(l=m.marker)}return l}function Yi(e,n,u,l,f){var m=Et(e,n),F=wi&&m.markedSpans;if(F)for(var U=0;U<F.length;++U){var z=F[U];if(!!z.marker.collapsed){var Z=z.marker.find(0),xe=Lt(Z.from,u)||Ss(z.marker)-Ss(f),Ee=Lt(Z.to,l)||As(z.marker)-As(f);if(!(xe>=0&&Ee<=0||xe<=0&&Ee>=0)&&(xe<=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||xe>=0&&(z.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function xt(e){for(var n;n=zt(e);)e=n.find(-1,!0).line;return e}function In(e){for(var n;n=Ki(e);)e=n.find(1,!0).line;return e}function Af(e){for(var n,u;n=Ki(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Es(e,n){var u=Et(e,n),l=xt(u);return u==l?n:qt(l)}function $l(e,n){if(n>e.lastLine())return n;var u=Et(e,n),l;if(!ti(e,u))return n;for(;l=Ki(u);)u=l.find(1,!0).line;return qt(u)+1}function ti(e,n){var u=wi&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Cs(e,n,l))return!0}}}function Cs(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return Cs(e,l.line,Vo(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&Cs(e,n,f))return!0}function ri(e){e=xt(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;n+=U.height}return n}function Ho(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=zt(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ki(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function ho(e){var n=e.display,u=e.doc;n.maxLine=Et(u,u.first),n.maxLineLength=Ho(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Ho(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Ji=function(e,n,u){this.text=e,Sf(this,n),this.height=u?u(this):1};Ji.prototype.lineNo=function(){return qt(this)},He(Ji);function Kl(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zl(e),Sf(e,u);var f=l?l(e):1;f!=e.height&&En(e,f)}function Yl(e){e.parent=null,zl(e)}var Ef={},Cf={};function Os(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Cf:Ef;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Jl(e,n){var u=de("span",null,null,g?"padding-right: .1px":null),l={pre:de("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=hn,Nn(e.display.measure)&&(F=P(m,e.doc.direction))&&(l.addToken=Go(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&qt(m);Of(m,l,Bl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Le(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Le(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Gi(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var z=l.content.lastChild;(/\bcm-tab\b/.test(z.className)||z.querySelector&&z.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Le(l.pre.className,l.textClass||"")),l}function zo(e){var n=ve("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function hn(e,n,u,l,f,m,F){if(!!n){var U=e.splitSpaces?wd(n,e.trailingSpace):n,z=e.cm.state.specialChars,Z=!1,xe;if(!z.test(n))e.col+=n.length,xe=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,xe),b&&A<9&&(Z=!0),e.pos+=n.length;else{xe=document.createDocumentFragment();for(var Ee=0;;){z.lastIndex=Ee;var Ne=z.exec(n),Me=Ne?Ne.index-Ee:n.length-Ee;if(Me){var Ye=document.createTextNode(U.slice(Ee,Ee+Me));b&&A<9?xe.appendChild(ve("span",[Ye])):xe.appendChild(Ye),e.map.push(e.pos,e.pos+Me,Ye),e.col+=Me,e.pos+=Me}if(!Ne)break;Ee+=Me+1;var tt=void 0;if(Ne[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;tt=xe.appendChild(ve("span",It(ft),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ft}else Ne[0]=="\r"||Ne[0]==`
|
|
22
|
+
`?(tt=xe.appendChild(ve("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",Ne[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(Ne[0]),tt.setAttribute("cm-text",Ne[0]),b&&A<9?xe.appendChild(ve("span",[tt])):xe.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||F){var ht=u||"";l&&(ht+=l),f&&(ht+=f);var ct=ve("span",[xe],ht,m);if(F)for(var bt in F)F.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&ct.setAttribute(bt,F[bt]);return e.content.appendChild(ct)}e.content.appendChild(xe)}}function wd(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Go(e,n){return function(u,l,f,m,F,U,z){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,xe=Z+l.length;;){for(var Ee=void 0,Ne=0;Ne<n.length&&(Ee=n[Ne],!(Ee.to>Z&&Ee.from<=Z));Ne++);if(Ee.to>=xe)return e(u,l,f,m,F,U,z);e(u,l.slice(0,Ee.to-Z),f,m,null,U,z),m=null,l=l.slice(Ee.to-Z),Z=Ee.to}}}function Xl(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Of(e,n,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(m,m=u[F]),Os(u[F+1],n.cm.options));return}for(var U=f.length,z=0,Z=1,xe="",Ee,Ne,Me=0,Ye,tt,at,ft,ht;;){if(Me==z){Ye=tt=at=Ne="",ht=null,ft=null,Me=1/0;for(var ct=[],bt=void 0,Pt=0;Pt<l.length;++Pt){var Ot=l[Pt],Ut=Ot.marker;if(Ut.type=="bookmark"&&Ot.from==z&&Ut.widgetNode)ct.push(Ut);else if(Ot.from<=z&&(Ot.to==null||Ot.to>z||Ut.collapsed&&Ot.to==z&&Ot.from==z)){if(Ot.to!=null&&Ot.to!=z&&Me>Ot.to&&(Me=Ot.to,tt=""),Ut.className&&(Ye+=" "+Ut.className),Ut.css&&(Ne=(Ne?Ne+";":"")+Ut.css),Ut.startStyle&&Ot.from==z&&(at+=" "+Ut.startStyle),Ut.endStyle&&Ot.to==Me&&(bt||(bt=[])).push(Ut.endStyle,Ot.to),Ut.title&&((ht||(ht={})).title=Ut.title),Ut.attributes)for(var ar in Ut.attributes)(ht||(ht={}))[ar]=Ut.attributes[ar];Ut.collapsed&&(!ft||Gl(ft.marker,Ut)<0)&&(ft=Ot)}else Ot.from>z&&Me>Ot.from&&(Me=Ot.from)}if(bt)for(var Hr=0;Hr<bt.length;Hr+=2)bt[Hr+1]==Me&&(tt+=" "+bt[Hr]);if(!ft||ft.from==z)for(var vr=0;vr<ct.length;++vr)Xl(n,0,ct[vr]);if(ft&&(ft.from||0)==z){if(Xl(n,(ft.to==null?U+1:ft.to)-z,ft.marker,ft.from==null),ft.to==null)return;ft.to==z&&(ft=!1)}}if(z>=U)break;for(var xn=Math.min(U,Me);;){if(xe){var fn=z+xe.length;if(!ft){var kr=fn>xn?xe.slice(0,xn-z):xe;n.addToken(n,kr,Ee?Ee+Ye:Ye,at,z+kr.length==Me?tt:"",Ne,ht)}if(fn>=xn){xe=xe.slice(xn-z),z=xn;break}z=fn,at=""}xe=f.slice(m,m=u[Z++]),Ee=Os(u[Z++],n.cm.options)}}}function Vr(e,n,u){this.line=n,this.rest=Af(n),this.size=this.rest?qt(At(this.rest))-u+1:1,this.node=this.text=null,this.hidden=ti(e,n)}function $o(e,n,u){for(var l=[],f,m=n;m<u;m=f){var F=new Vr(e.doc,Et(e.doc,m),m);f=m+F.size,l.push(F)}return l}var vo=null;function Tf(e){vo?vo.ops.push(e):e.ownsGroup=vo={ops:[e],delayedCallbacks:[]}}function Pf(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Ql(e,n){var u=e.ownsGroup;if(!!u)try{Pf(u)}finally{vo=null,n(u)}}var Ko=null;function Wr(e,n){var u=ee(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;vo?f=vo.delayedCallbacks:Ko?f=Ko:(f=Ko=[],setTimeout(Ts,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function Ts(){var e=Ko;Ko=null;for(var n=0;n<e.length;++n)e[n]()}function Ps(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?Is(e,n):m=="gutter"?Zl(e,n,u,l):m=="class"?Fs(e,n):m=="widget"&&Sd(e,n,l)}n.changes=null}function go(e){return e.node==e.text&&(e.node=ve("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&A<8&&(e.node.style.zIndex=2)),e.node}function If(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=go(n);n.background=l.insertBefore(ve("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function Fa(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Jl(e,n)}function Is(e,n){var u=n.text.className,l=Fa(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Fs(e,n)):u&&(n.text.className=u)}function Fs(e,n){If(e,n),n.line.wrapClass?go(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Zl(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=go(n);n.gutterBackground=ve("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var F=go(n),U=n.gutter=ve("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(ve("div",po(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=e.display.gutterSpecs[z].className,xe=m.hasOwnProperty(Z)&&m[Z];xe&&U.appendChild(ve("div",[xe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Sd(e,n,u){n.alignable&&(n.alignable=null);for(var l=fe("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);_l(e,n,u)}function Ad(e,n,u,l){var f=Fa(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Fs(e,n),Zl(e,n,u,l),_l(e,n,l),n.node}function _l(e,n,u){if(Si(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Si(e,n.rest[l],n,u,!1)}function Si(e,n,u,l,f){if(!!n.widgets)for(var m=go(u),F=0,U=n.widgets;F<U.length;++F){var z=U[F],Z=ve("div",[z.node],"CodeMirror-linewidget"+(z.className?" "+z.className:""));z.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Ff(z,Z,u,l),e.display.input.setUneditable(Z),f&&z.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),Wr(z,"redraw")}}function Ff(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Yo(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),ye(n.display.measure,ve("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ni(e,n){for(var u=Ft(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function ka(e){return e.lineSpace.offsetTop}function ks(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ql(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,ve("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function Xn(e){return yt-e.display.nativeBarWidth}function vn(e){return e.display.scroller.clientWidth-Xn(e)-e.display.barWidth}function Ra(e){return e.display.scroller.clientHeight-Xn(e)-e.display.barHeight}function Xi(e,n,u){var l=e.options.lineWrapping,f=l&&vn(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var z=F[U],Z=F[U+1];Math.abs(z.bottom-Z.bottom)>2&&m.push((z.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function eu(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(qt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function kf(e,n){n=xt(n);var u=qt(n),l=e.display.externalMeasured=new Vr(e.doc,n,u);l.lineN=u;var f=l.built=Jl(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function tu(e,n,u,l){return gn(e,yo(e,n),u,l)}function Rs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Ai(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function yo(e,n){var u=qt(n),l=Rs(e,u);l&&!l.text?l=null:l&&l.changes&&(Ps(e,l,u,js(e)),e.curOp.forceUpdate=!0),l||(l=kf(e,n));var f=eu(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function gn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),F;return n.cache.hasOwnProperty(m)?F=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Xi(e,n.view,n.rect),n.hasHeights=!0),F=Ms(e,n,u,l),F.bogus||(n.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var ru={left:0,right:0,top:0,bottom:0};function nu(e,n,u){for(var l,f,m,F,U,z,Z=0;Z<e.length;Z+=3)if(U=e[Z],z=e[Z+1],n<U?(f=0,m=1,F="left"):n<z?(f=n-U,m=f+1):(Z==e.length-3||n==z&&e[Z+3]>n)&&(m=z-U,f=m-1,n>=z&&(F="right")),f!=null){if(l=e[Z+2],U==z&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==z-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:m,collapse:F,coverStart:U,coverEnd:z}}function Rf(e,n){var u=ru;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function Ms(e,n,u,l){var f=nu(n.map,u,l),m=f.node,F=f.start,U=f.end,z=f.collapse,Z;if(m.nodeType==3){for(var xe=0;xe<4;xe++){for(;F&&Re(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Re(n.line.text.charAt(f.coverStart+U));)++U;if(b&&A<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Rf(ue(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,z="right"}b&&A<11&&(Z=Mf(e.display.measure,Z))}else{F>0&&(z=l="right");var Ee;e.options.lineWrapping&&(Ee=m.getClientRects()).length>1?Z=Ee[l=="right"?Ee.length-1:0]:Z=m.getBoundingClientRect()}if(b&&A<9&&!F&&(!Z||!Z.left&&!Z.right)){var Ne=m.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+xo(e.display),top:Ne.top,bottom:Ne.bottom}:Z=ru}for(var Me=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(Me+Ye)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(tt<at[ft]);ft++);var ht=ft?at[ft-1]:0,ct=at[ft],bt={left:(z=="right"?Z.right:Z.left)-n.rect.left,right:(z=="left"?Z.left:Z.right)-n.rect.left,top:ht,bottom:ct};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=Me,bt.rbottom=Ye),bt}function Mf(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Oa(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function iu(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Ls(e){e.display.externalMeasure=null,ne(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)iu(e.display.view[n])}function Jo(e){Ls(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ds(){return N&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ns(){return N&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Bs(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Yo(e.widgets[u]));return n}function Ma(e,n,u,l,f){if(!f){var m=Bs(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=ri(n);if(l=="local"?F+=ka(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:Ns());var z=U.left+(l=="window"?0:Ds());u.left+=z,u.right+=z}return u.top+=F,u.bottom+=F,u}function Us(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ds(),f-=Ns();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function La(e,n,u,l,f){return l||(l=Et(e.doc,n.line)),Ma(e,l,tu(e,l,n.ch,f),u)}function qr(e,n,u,l,f,m){l=l||Et(e.doc,n.line),f||(f=yo(e,l));function F(Ye,tt){var at=gn(e,f,Ye,tt?"right":"left",m);return tt?at.left=at.right:at.right=at.left,Ma(e,l,at,u)}var U=P(l,e.doc.direction),z=n.ch,Z=n.sticky;if(z>=l.text.length?(z=l.text.length,Z="before"):z<=0&&(z=0,Z="after"),!U)return F(Z=="before"?z-1:z,Z=="before");function xe(Ye,tt,at){var ft=U[tt],ht=ft.level==1;return F(at?Ye-1:Ye,ht!=at)}var Ee=W(U,z,Z),Ne=Ie,Me=xe(z,Ee,Z=="before");return Ne!=null&&(Me.other=xe(z,Ne,Z!="before")),Me}function Xo(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=xo(e.display)*n.ch);var l=Et(e.doc,n.line),f=ri(l)+ka(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Qo(e,n,u,l,f){var m=nt(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function Qi(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Qo(l.first,0,null,-1,-1);var f=Un(l,u),m=l.first+l.size-1;if(f>m)return Qo(l.first+l.size-1,Et(l,m).text.length,null,1,1);n<0&&(n=0);for(var F=Et(l,f);;){var U=Lf(e,F,f,n,u),z=Gt(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!z)return U;var Z=z.find(1);if(Z.line==f)return Z;F=Et(l,f=Z.line)}}function Zi(e,n,u,l){l-=Bs(n);var f=n.text.length,m=Ae(function(F){return gn(e,u,F-1).bottom<=l},f,0);return f=Ae(function(F){return gn(e,u,F).top>l},m,f),{begin:m,end:f}}function ou(e,n,u,l){u||(u=yo(e,n));var f=Ma(e,n,gn(e,u,l),"line").top;return Zi(e,n,u,f)}function Zo(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Lf(e,n,u,l,f){f-=ri(n);var m=yo(e,n),F=Bs(n),U=0,z=n.text.length,Z=!0,xe=P(n,e.doc.direction);if(xe){var Ee=(e.options.lineWrapping?au:Df)(e,n,u,m,xe,l,f);Z=Ee.level!=1,U=Z?Ee.from:Ee.to-1,z=Z?Ee.to:Ee.from-1}var Ne=null,Me=null,Ye=Ae(function(Pt){var Ot=gn(e,m,Pt);return Ot.top+=F,Ot.bottom+=F,Zo(Ot,l,f,!1)?(Ot.top<=f&&Ot.left<=l&&(Ne=Pt,Me=Ot),!0):!1},U,z),tt,at,ft=!1;if(Me){var ht=l-Me.left<Me.right-l,ct=ht==Z;Ye=Ne+(ct?0:1),at=ct?"after":"before",tt=ht?Me.left:Me.right}else{!Z&&(Ye==z||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":gn(e,m,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var bt=qr(e,nt(u,Ye,at),"line",n,m);tt=bt.left,ft=f<bt.top?-1:f>=bt.bottom?1:0}return Ye=be(n.text,Ye,1),Qo(u,Ye,at,ft,l-tt)}function Df(e,n,u,l,f,m,F){var U=Ae(function(Ee){var Ne=f[Ee],Me=Ne.level!=1;return Zo(qr(e,nt(u,Me?Ne.to:Ne.from,Me?"before":"after"),"line",n,l),m,F,!0)},0,f.length-1),z=f[U];if(U>0){var Z=z.level!=1,xe=qr(e,nt(u,Z?z.from:z.to,Z?"after":"before"),"line",n,l);Zo(xe,m,F,!0)&&xe.top>F&&(z=f[U-1])}return z}function au(e,n,u,l,f,m,F){var U=Zi(e,n,l,F),z=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var xe=null,Ee=null,Ne=0;Ne<f.length;Ne++){var Me=f[Ne];if(!(Me.from>=Z||Me.to<=z)){var Ye=Me.level!=1,tt=gn(e,l,Ye?Math.min(Z,Me.to)-1:Math.max(z,Me.from)).right,at=tt<m?m-tt+1e9:tt-m;(!xe||Ee>at)&&(xe=Me,Ee=at)}}return xe||(xe=f[f.length-1]),xe.from<z&&(xe={from:z,to:xe.to,level:xe.level}),xe.to>Z&&(xe={from:xe.from,to:Z,level:xe.level}),xe}var jn;function mo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(jn==null){jn=ve("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)jn.appendChild(document.createTextNode("x")),jn.appendChild(ve("br"));jn.appendChild(document.createTextNode("x"))}ye(e.measure,jn);var u=jn.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ne(e.measure),u||1}function xo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=ve("span","xxxxxxxxxx"),u=ve("pre",[n],"CodeMirror-line-like");ye(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function js(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Vs(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Vs(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ws(e){var n=mo(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/xo(e.display)-3);return function(f){if(ti(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function _o(e){var n=e.doc,u=Ws(e);n.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function _i(e,n,u,l){var f=e.display;if(!u&&Ft(n).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,F=n.clientY-U.top}catch(Ee){return null}var z=Qi(e,m,F),Z;if(l&&z.xRel>0&&(Z=Et(e.doc,z.line).text).length==z.ch){var xe=Xe(Z,Z.length,e.options.tabSize)-Z.length;z=nt(z.line,Math.max(0,Math.round((m-ql(e.display).left)/xo(e.display))-xe))}return z}function Ai(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function $r(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)wi&&Es(e.doc,n)<f.viewTo&&ii(e);else if(u<=f.viewFrom)wi&&$l(e.doc,u+l)>f.viewFrom?ii(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)ii(e);else if(n<=f.viewFrom){var m=Hs(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):ii(e)}else if(u>=f.viewTo){var F=Hs(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):ii(e)}else{var U=Hs(e,n,n,-1),z=Hs(e,u,u+l,1);U&&z?(f.view=f.view.slice(0,U.index).concat($o(e,U.lineN,z.lineN)).concat(f.view.slice(z.index)),f.viewTo+=l):ii(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function Ei(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var m=l.view[Ai(e,n)];if(m.node!=null){var F=m.changes||(m.changes=[]);pt(F,u)==-1&&F.push(u)}}}function ii(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hs(e,n,u,l){var f=Ai(e,n),m,F=e.display.view;if(!wi||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,z=0;z<f;z++)U+=F[z].size;if(U!=n){if(l>0){if(f==F.length-1)return null;m=U+F[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;Es(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Nf(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=$o(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=$o(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Ai(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat($o(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ai(e,u)))),l.viewTo=u}function Ci(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function bo(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Bf(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var z=u.sel.ranges[U];if(!(z.from().line>=e.display.viewTo||z.to().line<e.display.viewFrom)){var Z=z.empty();if(F){var xe=F(e,z);xe&&Oi(e,xe,f)}else(Z||e.options.showCursorWhenSelecting)&&Oi(e,z.head,f);Z||Uf(e,z,m)}}return l}function Oi(e,n,u){var l=qr(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(ve("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=La(e,n,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function zs(e,n){return e.top-n.top||e.left-n.left}function Uf(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=ql(e.display),U=F.left,z=Math.max(l.sizerWidth,vn(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function xe(ct,bt,Pt,Ot){bt<0&&(bt=0),bt=Math.round(bt),Ot=Math.round(Ot),m.appendChild(ve("div",null,"CodeMirror-selected","position: absolute; left: "+ct+`px;
|
|
23
|
+
top: `+bt+"px; width: "+(Pt==null?z-ct:Pt)+`px;
|
|
24
|
+
height: `+(Ot-bt)+"px"))}function Ee(ct,bt,Pt){var Ot=Et(f,ct),Ut=Ot.text.length,ar,Hr;function vr(kr,rn){return La(e,nt(ct,kr),"div",Ot,rn)}function xn(kr,rn,zr){var Nr=ou(e,Ot,null,kr),Rr=rn=="ltr"==(zr=="after")?"left":"right",wr=zr=="after"?Nr.begin:Nr.end-(/\s/.test(Ot.text.charAt(Nr.end-1))?2:1);return vr(wr,Rr)[Rr]}var fn=P(Ot,f.direction);return T(fn,bt||0,Pt==null?Ut:Pt,function(kr,rn,zr,Nr){var Rr=zr=="ltr",wr=vr(kr,Rr?"left":"right"),cn=vr(rn-1,Rr?"right":"left"),lo=bt==null&&kr==0,Ui=Pt==null&&rn==Ut,Jr=Nr==0,zn=!fn||Nr==fn.length-1;if(cn.top-wr.top<=3){var Er=(Z?lo:Ui)&&Jr,wl=(Z?Ui:lo)&&zn,Cn=Er?U:(Rr?wr:cn).left,ji=wl?z:(Rr?cn:wr).right;xe(Cn,wr.top,ji-Cn,wr.bottom)}else{var Xr,dn,uo,us;Rr?(Xr=Z&&lo&&Jr?U:wr.left,dn=Z?z:xn(kr,zr,"before"),uo=Z?U:xn(rn,zr,"after"),us=Z&&Ui&&zn?z:cn.right):(Xr=Z?xn(kr,zr,"before"):U,dn=!Z&&lo&&Jr?z:wr.right,uo=!Z&&Ui&&zn?U:cn.left,us=Z?xn(rn,zr,"after"):z),xe(Xr,wr.top,dn-Xr,wr.bottom),wr.bottom<cn.top&&xe(U,wr.bottom,null,cn.top),xe(uo,cn.top,us-uo,cn.bottom)}(!ar||zs(wr,ar)<0)&&(ar=wr),zs(cn,ar)<0&&(ar=cn),(!Hr||zs(wr,Hr)<0)&&(Hr=wr),zs(cn,Hr)<0&&(Hr=cn)}),{start:ar,end:Hr}}var Ne=n.from(),Me=n.to();if(Ne.line==Me.line)Ee(Ne.line,Ne.ch,Me.ch);else{var Ye=Et(f,Ne.line),tt=Et(f,Me.line),at=xt(Ye)==xt(tt),ft=Ee(Ne.line,Ne.ch,at?Ye.text.length+1:null).end,ht=Ee(Me.line,at?0:null,Me.ch).start;at&&(ft.top<ht.top-2?(xe(ft.right,ft.top,null,ft.bottom),xe(U,ht.top,ht.left,ht.bottom)):xe(ft.right,ft.top,ht.left-ft.right,ft.bottom)),ft.bottom<ht.top&&xe(U,ft.bottom,null,ht.top)}u.appendChild(m)}function su(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||wo(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function jf(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||$s(e))}function Gs(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&wo(e))},100)}function $s(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Oe(e,"focus",e,n),e.state.focused=!0,Ve(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),su(e))}function wo(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Oe(e,"blur",e,n),e.state.focused=!1,te(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ks(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,m=0,F=0;F<n.view.length;F++){var U=n.view[F],z=e.options.lineWrapping,Z=void 0,xe=0;if(!U.hidden){if(f+=U.line.height,b&&A<8){var Ee=U.node.offsetTop+U.node.offsetHeight;Z=Ee-u,u=Ee}else{var Ne=U.node.getBoundingClientRect();Z=Ne.bottom-Ne.top,!z&&U.text.firstChild&&(xe=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var Me=U.line.height-Z;if((Me>.005||Me<-.005)&&(f<l&&(m-=Me),En(U.line,Z),Vf(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Vf(U.rest[Ye]);if(xe>e.display.sizerWidth){var tt=Math.ceil(xe/xo(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function Vf(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Ys(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-ka(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=Un(n,l),F=Un(n,f);if(u&&u.ensure){var U=u.ensure.from.line,z=u.ensure.to.line;U<m?(m=U,F=Un(n,ri(Et(n,U))+e.wrapper.clientHeight)):Math.min(z,n.lastLine())>=F&&(m=Un(n,ri(Et(n,z))-e.wrapper.clientHeight),F=z)}return{from:m,to:Math.max(F,m+1)}}function Wf(e,n){if(!Pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!H){var m=ve("div","\u200B",null,`position: absolute;
|
|
25
|
+
top: `+(n.top-u.viewOffset-ka(e.display))+`px;
|
|
26
|
+
height: `+(n.bottom-n.top+Xn(e)+u.barHeight)+`px;
|
|
27
|
+
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function Ed(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?nt(n.line,n.ch+1,"before"):n,n=n.ch?nt(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var F=!1,U=qr(e,n),z=!u||u==n?U:qr(e,u);f={left:Math.min(U.left,z.left),top:Math.min(U.top,z.top)-l,right:Math.max(U.left,z.left),bottom:Math.max(U.bottom,z.bottom)+l};var Z=qi(e,f),xe=e.doc.scrollTop,Ee=e.doc.scrollLeft;if(Z.scrollTop!=null&&(ln(e,Z.scrollTop),Math.abs(e.doc.scrollTop-xe)>1&&(F=!0)),Z.scrollLeft!=null&&(Vn(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ee)>1&&(F=!0)),!F)break}return f}function Cd(e,n){var u=qi(e,n);u.scrollTop!=null&&ln(e,u.scrollTop),u.scrollLeft!=null&&Vn(e,u.scrollLeft)}function qi(e,n){var u=e.display,l=mo(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Ra(e),F={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+ks(u),z=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=z?0:n.top;else if(n.bottom>f+m){var xe=Math.min(n.top,(Z?U:n.bottom)-m);xe!=f&&(F.scrollTop=xe)}var Ee=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ee,Me=vn(e)-u.gutters.offsetWidth,Ye=n.right-n.left>Me;return Ye&&(n.right=n.left+Me),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ee-(Ye?0:10)):n.right>Me+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-Me),F}function sn(e,n){n!=null&&(qo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function yn(e){qo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function mn(e,n,u){(n!=null||u!=null)&&qo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Hf(e,n){qo(e),e.curOp.scrollToPos=n}function qo(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=Xo(e,n.from),l=Xo(e,n.to);ea(e,u,l,n.margin)}}function ea(e,n,u,l){var f=qi(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});mn(e,f.scrollLeft,f.scrollTop)}function ln(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Hn(e,{top:n}),tr(e,n,!0),c&&Hn(e),to(e,100))}function tr(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Vn(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,Zs(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function So(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+ks(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+Xn(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var oi=function(e,n,u){this.cm=u;var l=this.vert=ve("div",[ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=ve("div",[ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),D(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),D(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};oi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},oi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},oi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},oi.prototype.zeroWidthHack=function(){var e=C&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},oi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},oi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ao=function(){};Ao.prototype.update=function(){return{bottom:0,right:0}},Ao.prototype.setScrollLeft=function(){},Ao.prototype.setScrollTop=function(){},Ao.prototype.clear=function(){};function eo(e,n){n||(n=So(e));var u=e.display.barWidth,l=e.display.barHeight;Eo(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ks(e),Eo(e,So(e)),u=e.display.barWidth,l=e.display.barHeight}function Eo(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var Js={native:oi,null:Ao};function Da(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Js[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),D(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Vn(e,n):ln(e,n)},e),e.display.scrollbars.addClass&&Ve(e.display.wrapper,e.display.scrollbars.addClass)}var Ht=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ht,markArrays:null},Tf(e.curOp)}function Pi(e){var n=e.curOp;n&&Ql(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;ai(u)})}function ai(e){for(var n=e.ops,u=0;u<n.length;u++)ta(n[u]);for(var l=0;l<n.length;l++)Wn(n[l]);for(var f=0;f<n.length;f++)Co(n[f]);for(var m=0;m<n.length;m++)en(n[m]);for(var F=0;F<n.length;F++)Ii(n[F])}function ta(e){var n=e.cm,u=n.display;Od(n),e.updateMaxLine&&ho(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ra(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wn(e){e.updatedDisplay=e.mustUpdate&&Oo(e.cm,e.update)}function Co(e){var n=e.cm,u=n.display;e.updatedDisplay&&Ks(n),e.barMeasure=So(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=tu(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+Xn(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-vn(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function en(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Vn(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==De();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&eo(n,e.barMeasure),e.updatedDisplay&&Ir(n,e.barMeasure),e.selectionChanged&&su(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&jf(e.cm)}function Ii(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&Xs(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&tr(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Vn(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=Ed(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);Wf(n,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||Oe(m[U],"hide");if(F)for(var z=0;z<F.length;++z)F[z].lines.length&&Oe(F[z],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Yr(e,n){if(e.curOp)return n();Ti(e);try{return n()}finally{Pi(e)}}function xr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ti(e);try{return n.apply(e,arguments)}finally{Pi(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{Pi(this)}}}function br(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Ti(n);try{return e.apply(this,arguments)}finally{Pi(n)}}}function to(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(Na,e))}function Na(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=_r(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Pn(n.mode,l.state):null,z=er(e,m,l,!0);U&&(l.state=U),m.styles=z.styles;var Z=m.styleClasses,xe=z.classes;xe?m.styleClasses=xe:Z&&(m.styleClasses=null);for(var Ee=!F||F.length!=m.styles.length||Z!=xe&&(!Z||!xe||Z.bgClass!=xe.bgClass||Z.textClass!=xe.textClass),Ne=0;!Ee&&Ne<F.length;++Ne)Ee=F[Ne]!=m.styles[Ne];Ee&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ms(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return to(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Yr(e,function(){for(var m=0;m<f.length;m++)Ei(e,f[m],"text")})}}var ra=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Ys(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=vn(e),this.force=u,this.dims=js(e),this.events=[]};ra.prototype.signal=function(e,n){Ge(e,n)&&this.events.push(arguments)},ra.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Oe.apply(null,this.events[e])};function Od(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=Xn(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=Xn(e)+"px",n.scrollbarsClipped=!0)}function lu(e){if(e.hasFocus())return null;var n=De();if(!n||!oe(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function uu(e){if(!(!e||!e.activeElt||e.activeElt==De())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function Oo(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return ii(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Ci(e)==0)return!1;_s(e)&&(ii(e),n.dims=js(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),wi&&(m=Es(e.doc,m),F=$l(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;Nf(e,m,F),u.viewOffset=ri(Et(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var z=Ci(e);if(!U&&z==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=lu(e);return z>4&&(u.lineDiv.style.display="none"),Qs(e,u.updateLineNumbers,n.dims),z>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,uu(Z),ne(u.cursorDiv),ne(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,to(e,400)),u.updateLineNumbers=null,!0}function Xs(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==vn(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+ks(e.display)-Ra(e),u.top)}),n.visible=Ys(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Ys(e.display,e.doc,u));if(!Oo(e,n))break;Ks(e);var f=So(e);bo(e),eo(e,f),Ir(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Hn(e,n){var u=new ra(e,n);if(Oo(e,u)){Ks(e),Xs(e,u);var l=So(e);bo(e),eo(e,l),Ir(e,l),u.finish()}}function Qs(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var z=l.view,Z=l.viewFrom,xe=0;xe<z.length;xe++){var Ee=z[xe];if(!Ee.hidden)if(!Ee.node||Ee.node.parentNode!=m){var Ne=Ad(e,Ee,Z,u);m.insertBefore(Ne,F)}else{for(;F!=Ee.node;)F=U(F);var Me=f&&n!=null&&n<=Z&&Ee.lineNumber;Ee.changes&&(pt(Ee.changes,"gutter")>-1&&(Me=!1),Ps(e,Ee,Z,u)),Me&&(ne(Ee.lineNumber),Ee.lineNumber.appendChild(document.createTextNode(po(e.options,Z)))),F=Ee.node.nextSibling}Z+=Ee.size}for(;F;)F=U(F)}function un(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",Wr(e,"gutterChanged",e)}function Ir(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+Xn(e)+"px"}function Zs(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Vs(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var z=0;z<U.length;z++)U[z].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function _s(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=po(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(ve("div",[ve("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",un(e.display),!0}return!1}function Ba(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Ua(e){var n=e.gutters,u=e.gutterSpecs;ne(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=n.appendChild(ve("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",un(e)}function To(e){Ua(e.display),$r(e),Zs(e)}function ja(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=ve("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=ve("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=de("div",null,"CodeMirror-code"),f.selectionDiv=ve("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=ve("div",null,"CodeMirror-cursors"),f.measure=ve("div",null,"CodeMirror-measure"),f.lineMeasure=ve("div",null,"CodeMirror-measure"),f.lineSpace=de("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=de("div",[f.lineSpace],"CodeMirror-lines");f.mover=ve("div",[m],null,"position: relative"),f.sizer=ve("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=ve("div",null,null,"position: absolute; height: "+yt+"px; width: 1px;"),f.gutters=ve("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=ve("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=ve("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&A<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&M)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ba(l.gutters,l.lineNumbers),Ua(f),u.init(f)}var na=0,Qn=null;b?Qn=-.53:c?Qn=15:N?Qn=-.7:j&&(Qn=-1/3);function qs(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function fu(e){var n=qs(e);return n.x*=Qn,n.y*=Qn,n}function el(e,n){var u=qs(n),l=u.x,f=u.y,m=Qn;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var F=e.display,U=F.scroller,z=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&z||f&&Z)){if(f&&C&&g){e:for(var xe=n.target,Ee=F.view;xe!=U;xe=xe.parentNode)for(var Ne=0;Ne<Ee.length;Ne++)if(Ee[Ne].node==xe){e.display.currentWheelTarget=xe;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&ln(e,Math.max(0,U.scrollTop+f*m)),Vn(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&it(n),F.wheelStartX=null;return}if(f&&m!=null){var Me=f*m,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;Me<0?Ye=Math.max(0,Ye+Me-50):tt=Math.min(e.doc.height,tt+Me+50),Hn(e,{top:Ye,bottom:tt})}na<20&&n.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var at=U.scrollLeft-F.wheelStartX,ft=U.scrollTop-F.wheelStartY,ht=ft&&F.wheelDY&&ft/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!ht&&(Qn=(Qn*na+ht)/(na+1),++na)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var Ar=function(e,n){this.ranges=e,this.primIndex=n};Ar.prototype.primary=function(){return this.ranges[this.primIndex]},Ar.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!ei(u.anchor,l.anchor)||!ei(u.head,l.head))return!1}return!0},Ar.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new _t(se(this.ranges[n].anchor),se(this.ranges[n].head));return new Ar(e,this.primIndex)},Ar.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ar.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var _t=function(e,n){this.anchor=e,this.head=n};_t.prototype.from=function(){return _e(this.anchor,this.head)},_t.prototype.to=function(){return Ce(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,Me){return Lt(Ne.from(),Me.from())}),u=pt(n,f);for(var m=1;m<n.length;m++){var F=n[m],U=n[m-1],z=Lt(U.to(),F.from());if(l&&!F.empty()?z>0:z>=0){var Z=_e(U.from(),F.from()),xe=Ce(U.to(),F.to()),Ee=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new _t(Ee?xe:Z,Ee?Z:xe))}}return new Ar(n,u)}function si(e,n){return new Ar([new _t(e,n||e)],0)}function li(e){return e.text?nt(e.from.line+e.text.length-1,At(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function tl(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return li(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=li(n).ch-n.to.ch),nt(u,l)}function Va(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new _t(tl(f.anchor,n),tl(f.head,n)))}return Fn(e.cm,u,e.sel.primIndex)}function rl(e,n,u){return e.line==n.line?nt(u.line,e.ch-n.ch+u.ch):nt(u.line+(e.line-n.line),e.ch)}function cu(e,n,u){for(var l=[],f=nt(e.first,0),m=f,F=0;F<n.length;F++){var U=n[F],z=rl(U.from,f,m),Z=rl(li(U),f,m);if(f=U.to,m=Z,u=="around"){var xe=e.sel.ranges[F],Ee=Lt(xe.head,xe.anchor)<0;l[F]=new _t(Ee?Z:z,Ee?z:Z)}else l[F]=new _t(z,z)}return new Ar(l,e.sel.primIndex)}function Wa(e){e.doc.mode=Bn(e.options,e.doc.modeOption),Fi(e)}function Fi(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,to(e,100),e.state.modeGen++,e.curOp&&$r(e)}function zf(e,n){return n.from.ch==0&&n.to.ch==0&&At(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ha(e,n,u,l){function f(ht){return u?u[ht]:null}function m(ht,ct,bt){Kl(ht,ct,bt,l),Wr(ht,"change",ht,n)}function F(ht,ct){for(var bt=[],Pt=ht;Pt<ct;++Pt)bt.push(new Ji(Z[Pt],f(Pt),l));return bt}var U=n.from,z=n.to,Z=n.text,xe=Et(e,U.line),Ee=Et(e,z.line),Ne=At(Z),Me=f(Z.length-1),Ye=z.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(zf(e,n)){var tt=F(0,Z.length-1);m(Ee,Ee.text,Me),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(xe==Ee)if(Z.length==1)m(xe,xe.text.slice(0,U.ch)+Ne+xe.text.slice(z.ch),Me);else{var at=F(1,Z.length-1);at.push(new Ji(Ne+xe.text.slice(z.ch),Me,l)),m(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,at)}else if(Z.length==1)m(xe,xe.text.slice(0,U.ch)+Z[0]+Ee.text.slice(z.ch),f(0)),e.remove(U.line+1,Ye);else{m(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),m(Ee,Ne+Ee.text.slice(z.ch),Me);var ft=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ft)}Wr(e,"change",e,n)}function ki(e,n,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var z=f.linked[U];if(z.doc!=m){var Z=F&&z.sharedHist;u&&!Z||(n(z.doc,Z),l(z.doc,f,Z))}}}l(e,null,!0)}function Ze(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,_o(e),Wa(e),nl(e),e.options.direction=n.direction,e.options.lineWrapping||ho(e),e.options.mode=n.modeOption,$r(e)}function nl(e){(e.doc.direction=="rtl"?Ve:te)(e.display.lineDiv,"CodeMirror-rtl")}function za(e){Yr(e,function(){nl(e),$r(e)})}function Po(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ga(e,n){var u={from:se(n.from),to:li(n),text:qn(e,n.from,n.to)};return Ri(e,u,n.from.line,n.to.line+1),ki(e,function(l){return Ri(l,u,n.from.line,n.to.line+1)},!0),u}function il(e){for(;e.length;){var n=At(e);if(n.ranges)e.pop();else break}}function Gf(e,n){if(n)return il(e.done),At(e.done);if(e.done.length&&!At(e.done).ranges)return At(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),At(e.done)}function Yt(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Gf(f,f.lastOp==l)))U=At(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=li(n):F.changes.push(Ga(e,n));else{var z=At(f.done);for((!z||!z.ranges)&&$a(e.sel,f.done),F={changes:[Ga(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||Oe(e,"historyAdded")}function du(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ro(e,n,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||du(e,m,At(f.done),n))?f.done[f.done.length-1]=n:$a(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&il(f.undone)}function $a(e,n){var u=At(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Ri(e,n,u,l){var f=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[m]=F.markedSpans),++m})}function $f(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function pu(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push($f(u[f]));return l}function hu(e,n){var u=pu(e,n),l=Vl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var z=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==z.marker)continue e;m.push(z)}}else F&&(u[f]=F)}return u}function Io(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?Ar.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var z=0;z<F.length;++z){var Z=F[z],xe=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ee in Z)(xe=Ee.match(/^spans_(\d+)$/))&&pt(n,Number(xe[1]))>-1&&(At(U)[Ee]=Z[Ee],delete Z[Ee])}}return l}function Ka(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new _t(f,n)}else return new _t(u||n,n)}function Ya(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),rr(e,new Ar([Ka(e.sel.primary(),n,u,f)],0),l)}function vu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=Ka(e.sel.ranges[m],n[m],null,f);var F=Fn(e.cm,l,e.sel.primIndex);rr(e,F,u)}function tn(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,rr(e,Fn(e.cm,f,e.sel.primIndex),l)}function ol(e,n,u,l){rr(e,si(n,u),l)}function Kf(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new _t(st(e,f[m].anchor),st(e,f[m].head))},origin:u&&u.origin};return Oe(e,"beforeSelectionChange",e,l),e.cm&&Oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Fn(e.cm,l.ranges,l.ranges.length-1):n}function Ja(e,n,u){var l=e.history.done,f=At(l);f&&f.ranges?(l[l.length-1]=n,Xa(e,n,u)):rr(e,n,u)}function rr(e,n,u){Xa(e,n,u),ro(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Xa(e,n,u){(Ge(e,"beforeSelectionChange")||e.cm&&Ge(e.cm,"beforeSelectionChange"))&&(n=Kf(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);ui(e,al(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&yn(e.cm)}function ui(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),Wr(e,"cursorActivity",e))}function Qa(e){ui(e,al(e,e.sel,null,!1))}function al(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var F=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],z=Dr(e,F.anchor,U&&U.anchor,u,l),Z=Dr(e,F.head,U&&U.head,u,l);(f||z!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new _t(z,Z))}return f?Fn(e.cm,f,n.primIndex):n}function no(e,n,u,l,f){var m=Et(e,n.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],z=U.marker,Z="selectLeft"in z?!z.selectLeft:z.inclusiveLeft,xe="selectRight"in z?!z.selectRight:z.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(xe?U.to>=n.ch:U.to>n.ch))){if(f&&(Oe(z,"beforeCursorEnter"),z.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!z.atomic)continue;if(u){var Ee=z.find(l<0?1:-1),Ne=void 0;if((l<0?xe:Z)&&(Ee=gu(e,Ee,-l,Ee&&Ee.line==n.line?m:null)),Ee&&Ee.line==n.line&&(Ne=Lt(Ee,u))&&(l<0?Ne<0:Ne>0))return no(e,Ee,n,l,f)}var Me=z.find(l<0?-1:1);return(l<0?Z:xe)&&(Me=gu(e,Me,l,Me.line==n.line?m:null)),Me?no(e,Me,n,l,f):null}}return n}function Dr(e,n,u,l,f){var m=l||1,F=no(e,n,u,m,f)||!f&&no(e,n,u,m,!0)||no(e,n,u,-m,f)||!f&&no(e,n,u,-m,!0);return F||(e.cantEdit=!0,nt(e.first,0))}function gu(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,nt(n.line-1)):null:u>0&&n.ch==(l||Et(e,n.line)).text.length?n.line<e.first+e.size-1?nt(n.line+1,0):null:new nt(n.line,n.ch+u)}function Za(e){e.setSelection(nt(e.firstLine(),0),nt(e.lastLine()),lt)}function yu(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,F,U){f&&(l.from=st(e,f)),m&&(l.to=st(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),Oe(e,"beforeChange",e,l),e.cm&&Oe(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function Mi(e,n,u){if(e.cm){if(!e.cm.curOp)return xr(e.cm,Mi)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"))&&(n=yu(e,n,!0),!n))){var l=mf&&!u&&Hl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)mu(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else mu(e,n)}}function mu(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=Va(e,n);Yt(e,n,u,e.cm?e.cm.curOp.id:NaN),ia(e,n,u,Vl(e,n));var l=[];ki(e,function(f,m){!m&&pt(l,f.history)==-1&&(wu(f.history,n),l.push(f.history)),ia(f,n,null,Vl(f,n))})}}function sl(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=n=="undo"?f.done:f.undone,z=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if($a(m,z),u&&!m.equals(e.sel)){rr(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var xe=[];$a(F,z),z.push({changes:xe,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ee=Ge(e,"beforeChange")||e.cm&&Ge(e.cm,"beforeChange"),Ne=function(tt){var at=m.changes[tt];if(at.origin=n,Ee&&!yu(e,at,!1))return U.length=0,{};xe.push(Ga(e,at));var ft=tt?Va(e,at):At(U);ia(e,at,ft,hu(e,at)),!tt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:li(at)});var ht=[];ki(e,function(ct,bt){!bt&&pt(ht,ct.history)==-1&&(wu(ct.history,at),ht.push(ct.history)),ia(ct,at,null,hu(ct,at))})},Me=m.changes.length-1;Me>=0;--Me){var Ye=Ne(Me);if(Ye)return Ye.v}}}}function xu(e,n){if(n!=0&&(e.first+=n,e.sel=new Ar(jt(e.sel.ranges,function(f){return new _t(nt(f.anchor.line+n,f.anchor.ch),nt(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){$r(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)Ei(e.cm,l,"gutter")}}function ia(e,n,u,l){if(e.cm&&!e.cm.curOp)return xr(e.cm,ia)(e,n,u,l);if(n.to.line<e.first){xu(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);xu(e,f),n={from:nt(e.first,0),to:nt(n.to.line+f,n.to.ch),text:[At(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:nt(m,Et(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=qn(e,n.from,n.to),u||(u=Va(e,n)),e.cm?Yf(e.cm,n,l):Ha(e,n,l),Xa(e,u,lt),e.cantEdit&&Dr(e,nt(e.firstLine(),0))&&(e.cantEdit=!1)}}function Yf(e,n,u){var l=e.doc,f=e.display,m=n.from,F=n.to,U=!1,z=m.line;e.options.lineWrapping||(z=qt(xt(Et(l,m.line))),l.iter(z,F.line+1,function(Me){if(Me==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Te(e),Ha(l,n,u,Ws(e)),e.options.lineWrapping||(l.iter(z,m.line+n.text.length,function(Me){var Ye=Ho(Me);Ye>f.maxLineLength&&(f.maxLine=Me,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),yf(l,m.line),to(e,400);var Z=n.text.length-(F.line-m.line)-1;n.full?$r(e):m.line==F.line&&n.text.length==1&&!zf(e.doc,n)?Ei(e,m.line,"text"):$r(e,m.line,F.line+1,Z);var xe=Ge(e,"changes"),Ee=Ge(e,"change");if(Ee||xe){var Ne={from:m,to:F,text:n.text,removed:n.removed,origin:n.origin};Ee&&Wr(e,"change",e,Ne),xe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function Fo(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),Mi(e,{from:u,to:l,text:n,origin:f})}function _a(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function bu(e,n,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)_a(m.ranges[U].anchor,n,u,l),_a(m.ranges[U].head,n,u,l);continue}for(var z=0;z<m.changes.length;++z){var Z=m.changes[z];if(u<Z.from.line)Z.from=nt(Z.from.line+l,Z.from.ch),Z.to=nt(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function wu(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;bu(e.done,u,l,f),bu(e.undone,u,l,f)}function dr(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Et(e,ot(e,n)):f=qt(n),f==null?null:(l(m,f)&&e.cm&&Ei(e.cm,f,u),m)}function fi(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}fi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Yl(f),Wr(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function oa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}oa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(n,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof fi))){var U=[];this.collapse(U),this.children=[new fi(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var z=new fi(f.lines.slice(U,U+=25));f.height-=z.height,this.children.splice(++l,0,z),z.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new oa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=pt(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new oa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var F=Math.min(n,m-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=m}}};var qa=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};qa.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=qt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var m=Yo(this);En(u,Math.max(0,u.height-m)),e&&(Yr(e,function(){Jf(e,u,-m),Ei(e,l,"widget")}),Wr(e,"lineWidgetCleared",e,this,l))}},qa.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Yo(this)-n;!f||(ti(this.doc,l)||En(l,l.height+f),u&&Yr(u,function(){u.curOp.forceUpdate=!0,Jf(u,l,f),Wr(u,"lineWidgetChanged",u,e,qt(l))}))},He(qa);function Jf(e,n,u){ri(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&sn(e,u)}function Td(e,n,u,l){var f=new qa(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),dr(e,n,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,m&&!ti(e,F)){var z=ri(F)<e.scrollTop;En(F,F.height+Yo(f)),z&&sn(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&Wr(m,"lineWidgetAdded",m,f,typeof n=="number"?n:qt(n)),f}var Su=0,Li=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Su};Li.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ti(e),Ge(this,"clear")){var u=this.find();u&&Wr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=Vo(F.markedSpans,this);e&&!this.collapsed?Ei(e,qt(F),"text"):e&&(U.to!=null&&(f=qt(F)),U.from!=null&&(l=qt(F))),F.markedSpans=wf(F.markedSpans,U),U.from==null&&this.collapsed&&!ti(this.doc,F)&&e&&En(F,mo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var z=0;z<this.lines.length;++z){var Z=xt(this.lines[z]),xe=Ho(Z);xe>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=xe,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&$r(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qa(e.doc)),e&&Wr(e,"markerCleared",e,this,l,f),n&&Pi(e),this.parent&&this.parent.clear()}},Li.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=Vo(m.markedSpans,this);if(F.from!=null&&(u=nt(n?m:qt(m),F.from),e==-1))return u;if(F.to!=null&&(l=nt(n?m:qt(m),F.to),e==1))return l}return u&&{from:u,to:l}},Li.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Yr(l,function(){var f=n.line,m=qt(n.line),F=Rs(l,m);if(F&&(iu(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ti(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var z=Yo(u)-U;z&&En(f,f.height+z)}Wr(l,"markerChanged",l,e)})},Li.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||pt(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Li.prototype.detachLine=function(e){if(this.lines.splice(pt(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},He(Li);function aa(e,n,u,l,f){if(l&&l.shared)return Xf(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return xr(e.cm,aa)(e,n,u,l,f);var m=new Li(e,f),F=Lt(n,u);if(l&&Qe(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=de("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Yi(e,n.line,n,u,m)||n.line!=u.line&&Yi(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");bf()}m.addToHistory&&Yt(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,z=e.cm,Z;if(e.iter(U,u.line+1,function(Ee){z&&m.collapsed&&!z.options.lineWrapping&&xt(Ee)==z.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&En(Ee,0),md(Ee,new Ia(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ee){ti(e,Ee)&&En(Ee,0)}),m.clearOnEnter&&D(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(xf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Su,m.atomic=!0),z){if(Z&&(z.curOp.updateMaxLine=!0),m.collapsed)$r(z,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var xe=n.line;xe<=u.line;xe++)Ei(z,xe,"text");m.atomic&&Qa(z.doc),Wr(z,"markerAdded",z,m)}return m}var sa=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};sa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Wr(this,"clear")}},sa.prototype.find=function(e,n){return this.primary.find(e,n)},He(sa);function Xf(e,n,u,l,f){l=Qe(l),l.shared=!1;var m=[aa(e,n,u,l,f)],F=m[0],U=l.widgetNode;return ki(e,function(z){U&&(l.widgetNode=U.cloneNode(!0)),m.push(aa(z,st(z,n),st(z,u),l,f));for(var Z=0;Z<z.linked.length;++Z)if(z.linked[Z].isParent)return;F=At(m)}),new sa(m,F)}function Au(e){return e.findMarks(nt(e.first,0),e.clipPos(nt(e.lastLine())),function(n){return n.parent})}function Qf(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=aa(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function Zf(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];ki(f.primary.doc,function(z){return m.push(z)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];pt(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var _f=0,Vt=function(e,n,u,l,f){if(!(this instanceof Vt))return new Vt(e,n,u,l,f);u==null&&(u=0),oa.call(this,[new fi([new Ji("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=nt(u,0);this.sel=si(m),this.history=new Po(null),this.id=++_f,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ha(this,{from:m,to:m,text:e}),rr(this,si(m),lt)};Vt.prototype=St(oa.prototype,{constructor:Vt,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=bi(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:br(function(e){var n=nt(this.first,0),u=this.first+this.size-1;Mi(this,{from:n,to:nt(u,Et(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&mn(this.cm,0,0),rr(this,si(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,Fo(this,e,n,u,l)},getRange:function(e,n,u){var l=qn(this,st(this,e),st(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Jn(this,e))return Et(this,e)},getLineNumber:function(e){return qt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Et(this,e)),xt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:br(function(e,n,u){ol(this,st(this,typeof e=="number"?nt(e,n||0):e),null,u)}),setSelection:br(function(e,n,u){ol(this,st(this,e),st(this,n||e),u)}),extendSelection:br(function(e,n,u){Ya(this,st(this,e),n&&st(this,n),u)}),extendSelections:br(function(e,n){vu(this,Zt(this,e),n)}),extendSelectionsBy:br(function(e,n){var u=jt(this.sel.ranges,e);vu(this,Zt(this,u),n)}),setSelections:br(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new _t(st(this,e[f].anchor),st(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),rr(this,Fn(this.cm,l,n),u)}}),addSelection:br(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new _t(st(this,e),st(this,n||e))),rr(this,Fn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=qn(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=qn(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:br(function(e,n,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&cu(this,l,n),z=l.length-1;z>=0;z--)Mi(this,l[z]);U?Ja(this,U):this.cm&&yn(this.cm)}),undo:br(function(){sl(this,"undo")}),redo:br(function(){sl(this,"redo")}),undoSelection:br(function(){sl(this,"undo",!0)}),redoSelection:br(function(){sl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new Po(this.history),ki(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Io(this.history.done),undone:Io(this.history.undone)}},setHistory:function(e){var n=this.history=new Po(this.history);n.done=Io(e.done.slice(0),null,!0),n.undone=Io(e.undone.slice(0),null,!0)},setGutterMarker:br(function(e,n,u){return dr(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&K(f)&&(l.gutterMarkers=null),!0})}),clearGutter:br(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&dr(n,u,"gutter",function(){return u.gutterMarkers[e]=null,K(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Jn(this,e)||(n=e,e=Et(this,e),!e))return null}else if(n=qt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:br(function(e,n,u){return dr(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(fe(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:br(function(e,n,u){return dr(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(fe(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:br(function(e,n,u){return Td(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return aa(this,st(this,e),st(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=st(this,e),aa(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=Et(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=st(this,e),n=st(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var F=m.markedSpans;if(F)for(var U=0;U<F.length;U++){var z=F[U];!(z.to!=null&&f==e.line&&e.ch>=z.to||z.from==null&&f!=e.line||z.from!=null&&f==n.line&&z.from>=n.ch)&&(!u||u(z.marker))&&l.push(z.marker.parent||z.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),st(this,nt(u,n))},indexFromPos:function(e){e=st(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new Vt(bi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new Vt(bi(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Qf(l,Au(this)),l},unlinkDoc:function(e){if(e instanceof cr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),Zf(Au(this));break}}if(e.history==this.history){var l=[e.id];ki(e,function(f){return l.push(f.id)},!0),e.history=new Po(null),e.history.done=Io(this.history.done,l),e.history.undone=Io(this.history.undone,l)}},iterLinkedDocs:function(e){ki(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):$n(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
+
`},setDirection:br(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&za(this.cm))})}),Vt.prototype.eachLine=Vt.prototype.iter;var kn=0;function qf(e){var n=this;if(io(n),!(Pe(n,e)||ni(n.display,e))){it(e),b&&(kn=+new Date);var u=_i(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),F=0,U=function(){++F==f&&xr(n,function(){u=st(n.doc,u);var Me={from:u,to:u,text:n.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};Mi(n.doc,Me),Ja(n.doc,si(st(n.doc,u),st(n.doc,li(Me))))})()},z=function(Me,Ye){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,Me.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var at=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){U();return}m[Ye]=at,U()},tt.readAsText(Me)},Z=0;Z<l.length;Z++)z(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var xe=e.dataTransfer.getData("Text");if(xe){var Ee;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ee=n.listSelections()),Xa(n.doc,si(u,u)),Ee)for(var Ne=0;Ne<Ee.length;++Ne)Fo(n.doc,"",Ee[Ne].anchor,Ee[Ne].head,"drag");n.replaceSelection(xe,"around","paste"),n.display.input.focus()}}catch(Me){}}}}function ll(e,n){if(b&&(!e.state.draggingText||+new Date-kn<100)){Jt(n);return}if(!(Pe(e,n)||ni(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=ve("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function Eu(e,n){var u=_i(e,n);if(!!u){var l=document.createDocumentFragment();Oi(e,u,l),e.display.dragCursor||(e.display.dragCursor=ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function io(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ul(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var fl=!1;function ec(){fl||(Cu(),fl=!0)}function Cu(){var e;D(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ul(cl)},100))}),D(window,"blur",function(){return ul(wo)})}function cl(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var ci={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ko=0;ko<10;ko++)ci[ko+48]=ci[ko+96]=String(ko);for(var oo=65;oo<=90;oo++)ci[oo]=String.fromCharCode(oo);for(var la=1;la<=12;la++)ci[la+111]=ci[la+63235]="F"+la;var di={};di.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},di.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},di.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},di.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},di.default=C?di.macDefault:di.pcDefault;function Ro(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,m,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Ou(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=jt(u.split(" "),Ro),m=0;m<f.length;m++){var F=void 0,U=void 0;m==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,m+1).join(" "),F="...");var z=n[U];if(!z)n[U]=F;else if(z!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function Mo(e,n,u,l){n=fa(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return Mo(e,n.fallthrough,u,l);for(var m=0;m<n.fallthrough.length;m++){var F=Mo(e,n.fallthrough[m],u,l);if(F)return F}}}function ua(e){var n=typeof e=="string"?e:ci[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Tu(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function Pu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=ci[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),Tu(u,e,n))}function fa(e){return typeof e=="string"?di[e]:e}function ao(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Lt(m.from,At(l).to)<=0;){var F=l.pop();if(Lt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}Yr(e,function(){for(var U=l.length-1;U>=0;U--)Fo(e.doc,"",l[U].from,l[U].to,"+delete");yn(e)})}function es(e,n,u){var l=be(e.text,n+u,u);return l<0||l>e.text.length?null:l}function ts(e,n,u){var l=es(e,n.ch,u);return l==null?null:new nt(n.line,l,u<0?"after":"before")}function dl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=P(u,n.doc.direction);if(m){var F=f<0?At(m):m[0],U=f<0==(F.level==1),z=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var xe=yo(n,u);Z=f<0?u.text.length-1:0;var Ee=gn(n,xe,Z).top;Z=Ae(function(Ne){return gn(n,xe,Ne).top==Ee},f<0==(F.level==1)?F.from:F.to-1,Z),z=="before"&&(Z=es(u,Z,1))}else Z=f<0?F.to:F.from;return new nt(l,Z,z)}}return new nt(l,f<0?u.text.length:0,f<0?"before":"after")}function tc(e,n,u,l){var f=P(n,e.doc.direction);if(!f)return ts(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=W(f,u.ch,u.sticky),F=f[m];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return ts(n,u,l);var U=function(ft,ht){return es(n,ft instanceof nt?ft.ch:ft,ht)},z,Z=function(ft){return e.options.lineWrapping?(z=z||yo(e,n),ou(e,n,z,ft)):{begin:0,end:n.text.length}},xe=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ee=F.level==1==l<0,Ne=U(u,Ee?1:-1);if(Ne!=null&&(Ee?Ne<=F.to&&Ne<=xe.end:Ne>=F.from&&Ne>=xe.begin)){var Me=Ee?"before":"after";return new nt(u.line,Ne,Me)}}var Ye=function(ft,ht,ct){for(var bt=function(ar,Hr){return Hr?new nt(u.line,U(ar,1),"before"):new nt(u.line,ar,"after")};ft>=0&&ft<f.length;ft+=ht){var Pt=f[ft],Ot=ht>0==(Pt.level!=1),Ut=Ot?ct.begin:U(ct.end,-1);if(Pt.from<=Ut&&Ut<Pt.to||(Ut=Ot?Pt.from:U(Pt.to,-1),ct.begin<=Ut&&Ut<ct.end))return bt(Ut,Ot)}},tt=Ye(m+l,l,xe);if(tt)return tt;var at=l>0?xe.end:U(xe.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(at)),tt)?tt:null}var Di={selectAll:Za,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return ao(e,function(n){if(n.empty()){var u=Et(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:nt(n.head.line+1,0)}:{from:n.head,to:nt(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return ao(e,function(n){return{from:nt(n.from().line,0),to:st(e.doc,nt(n.to().line+1,0))}})},delLineLeft:function(e){return ao(e,function(n){return{from:nt(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return ao(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return ao(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(nt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(nt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Iu(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Fu(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return Fr(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Fu(e,n.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),F=Xe(e.getLine(m.line),m.ch,l);n.push(It(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Yr(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=Et(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new nt(f.line,f.ch-1)),f.ch>0)f=new nt(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),nt(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Et(e.doc,f.line-1).text;F&&(f=new nt(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),nt(f.line-1,F.length-1),f,"+transpose"))}}u.push(new _t(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Yr(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);yn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Iu(e,n){var u=Et(e.doc,n),l=xt(u);return l!=u&&(n=qt(l)),dl(!0,e,l,n,1)}function Fr(e,n){var u=Et(e.doc,n),l=In(u);return l!=u&&(n=qt(l)),dl(!0,e,u,n,-1)}function Fu(e,n){var u=Iu(e,n.line),l=Et(e.doc,u.line),f=P(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=m&&n.ch;return nt(u.line,F?0:m,u.sticky)}return u}function pl(e,n,u){if(typeof n=="string"&&(n=Di[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=qe}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function rc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=Mo(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&Mo(n,e.options.extraKeys,u,e)||Mo(n,e.options.keyMap,u,e)}var Ni=new ut;function ca(e,n,u,l){var f=e.state.keySeq;if(f){if(ua(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:Ni.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),ku(e,f+" "+n,u,l))return!0}return ku(e,n,u,l)}function ku(e,n,u,l){var f=rc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&Wr(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(it(u),su(e)),!!f}function Ru(e,n){var u=Pu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ca(e,"Shift-"+u,n,function(l){return pl(e,l,!0)})||ca(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return pl(e,l)}):ca(e,u,n,function(l){return pl(e,l)}):!1}function nc(e,n,u){return ca(e,"'"+u+"'",n,function(l){return pl(e,l,!0)})}var Mu=null;function ic(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=De(),!Pe(n,e))){b&&A<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=Ru(n,e);B&&(Mu=l?u:null,!l&&u==88&&!Kn&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Pd(n)}}function Pd(e){var n=e.display.lineDiv;Ve(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),ce(document,"keyup",u),ce(document,"mouseover",u))}D(document,"keyup",u),D(document,"mouseover",u)}function oc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Pe(this,e)}function ac(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ni(n.display,e)||Pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==Mu){Mu=null,it(e);return}if(!(B&&(!e.which||e.which<10)&&Ru(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(nc(n,e,f)||n.display.input.onKeyPress(e))}}}var Id=400,Lu=function(e,n,u){this.time=e,this.pos=n,this.button=u};Lu.prototype.compare=function(e,n,u){return this.time+Id>e&&Lt(n,this.pos)==0&&u==this.button};var rs,ns;function Fd(e,n){var u=+new Date;return ns&&ns.compare(u,e,n)?(rs=ns=null,"triple"):rs&&rs.compare(u,e,n)?(ns=new Lu(u,e,n),rs=null,"double"):(rs=new Lu(u,e,n),ns=null,"single")}function hl(e){var n=this,u=n.display;if(!(Pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ni(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!os(n,e)){var l=_i(n,e),f=wn(e),m=l?Fd(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Lo(n,f,l,m,e))&&(f==1?l?lc(n,l,m,e):Ft(e)==u.scroller&&it(e):f==2?(l&&Ya(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Gs(n)))}}}function Lo(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,ca(e,Tu(m,f),f,function(F){if(typeof F=="string"&&(F=Di[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=qe}finally{e.state.suppressEdits=!1}return U})}function sc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function lc(e,n,u,l){b?setTimeout(rt(jf,e),0):e.curOp.focus=De();var f=sc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&Zr&&!e.isReadOnly()&&u=="single"&&(F=m.contains(n))>-1&&(Lt((F=m.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?is(e,l,n,f):uc(e,l,n,f)}function is(e,n,u,l){var f=e.display,m=!1,F=xr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Gs(e)),ce(f.wrapper.ownerDocument,"mouseup",F),ce(f.wrapper.ownerDocument,"mousemove",U),ce(f.scroller,"dragstart",z),ce(f.scroller,"drop",F),m||(it(Z),l.addNew||Ya(e.doc,u,null,null,l.extend),g&&!j||b&&A==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},z=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,D(f.wrapper.ownerDocument,"mouseup",F),D(f.wrapper.ownerDocument,"mousemove",U),D(f.scroller,"dragstart",z),D(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Du(e,n,u){if(u=="char")return new _t(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new _t(nt(n.line,0),st(e.doc,nt(n.line+1,0)));var l=u(e,n);return new _t(l.from,l.to)}function uc(e,n,u,l){b&&Gs(e);var f=e.display,m=e.doc;it(n);var F,U,z=m.sel,Z=z.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new _t(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new _t(u,u)),u=_i(e,n,!0,!0),U=-1;else{var xe=Du(e,u,l.unit);l.extend?F=Ka(F,xe.anchor,xe.head,l.extend):F=xe}l.addNew?U==-1?(U=Z.length,rr(m,Fn(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(rr(m,Fn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),z=m.sel):tn(m,U,F,vt):(U=0,rr(m,new Ar([F],0),vt),z=m.sel);var Ee=u;function Ne(ct){if(Lt(Ee,ct)!=0)if(Ee=ct,l.unit=="rectangle"){for(var bt=[],Pt=e.options.tabSize,Ot=Xe(Et(m,u.line).text,u.ch,Pt),Ut=Xe(Et(m,ct.line).text,ct.ch,Pt),ar=Math.min(Ot,Ut),Hr=Math.max(Ot,Ut),vr=Math.min(u.line,ct.line),xn=Math.min(e.lastLine(),Math.max(u.line,ct.line));vr<=xn;vr++){var fn=Et(m,vr).text,kr=dt(fn,ar,Pt);ar==Hr?bt.push(new _t(nt(vr,kr),nt(vr,kr))):fn.length>kr&&bt.push(new _t(nt(vr,kr),nt(vr,dt(fn,Hr,Pt))))}bt.length||bt.push(new _t(u,u)),rr(m,Fn(e,z.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ct)}else{var rn=F,zr=Du(e,ct,l.unit),Nr=rn.anchor,Rr;Lt(zr.anchor,Nr)>0?(Rr=zr.head,Nr=_e(rn.from(),zr.anchor)):(Rr=zr.anchor,Nr=Ce(rn.to(),zr.head));var wr=z.ranges.slice(0);wr[U]=fc(e,new _t(st(m,Nr),Rr)),rr(m,Fn(e,wr,U),vt)}}var Me=f.wrapper.getBoundingClientRect(),Ye=0;function tt(ct){var bt=++Ye,Pt=_i(e,ct,!0,l.unit=="rectangle");if(!!Pt)if(Lt(Pt,Ee)!=0){e.curOp.focus=De(),Ne(Pt);var Ot=Ys(f,m);(Pt.line>=Ot.to||Pt.line<Ot.from)&&setTimeout(xr(e,function(){Ye==bt&&tt(ct)}),150)}else{var Ut=ct.clientY<Me.top?-20:ct.clientY>Me.bottom?20:0;Ut&&setTimeout(xr(e,function(){Ye==bt&&(f.scroller.scrollTop+=Ut,tt(ct))}),50)}}function at(ct){e.state.selectingText=!1,Ye=1/0,ct&&(it(ct),f.input.focus()),ce(f.wrapper.ownerDocument,"mousemove",ft),ce(f.wrapper.ownerDocument,"mouseup",ht),m.history.lastSelOrigin=null}var ft=xr(e,function(ct){ct.buttons===0||!wn(ct)?at(ct):tt(ct)}),ht=xr(e,at);e.state.selectingText=ht,D(f.wrapper.ownerDocument,"mousemove",ft),D(f.wrapper.ownerDocument,"mouseup",ht)}function fc(e,n){var u=n.anchor,l=n.head,f=Et(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=P(f);if(!m)return n;var F=W(m,u.ch,u.sticky),U=m[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var z=F+(U.from==u.ch==(U.level!=1)?0:1);if(z==0||z==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var xe=W(m,l.ch,l.sticky),Ee=xe-F||(l.ch-u.ch)*(U.level==1?-1:1);xe==z-1||xe==z?Z=Ee<0:Z=Ee>0}var Ne=m[z+(Z?-1:0)],Me=Z==(Ne.level==1),Ye=Me?Ne.from:Ne.to,tt=Me?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new _t(new nt(u.line,Ye,tt),l)}function Nu(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&it(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!Ge(e,u))return Ct(n);m-=U.top-F.viewOffset;for(var z=0;z<e.display.gutterSpecs.length;++z){var Z=F.gutters.childNodes[z];if(Z&&Z.getBoundingClientRect().right>=f){var xe=Un(e.doc,m),Ee=e.display.gutterSpecs[z];return Oe(e,u,e,xe,Ee.className,n),Ct(n)}}}function os(e,n){return Nu(e,n,"gutterClick",!0)}function da(e,n){ni(e.display,n)||kd(e,n)||Pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function kd(e,n){return Ge(e,"gutterContextMenu")?Nu(e,n,"gutterContextMenu",!1):!1}function Bi(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Jo(e)}var pi={toString:function(){return"CodeMirror.Init"}},Do={},pa={};function Bu(e){var n=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(n[l]=F?function(U,z,Z){Z!=pi&&m(U,z,Z)}:m)}e.defineOption=u,e.Init=pi,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Wa(l)},!0),u("indentUnit",2,Wa,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Fi(l),Jo(l),$r(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(z){for(var Z=0;;){var xe=z.text.indexOf(f,Z);if(xe==-1)break;Z=xe+f.length,m.push(nt(F,xe))}F++});for(var U=m.length-1;U>=0;U--)Fo(l.doc,f,m[U],nt(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=pi&&l.refresh()}),u("specialCharPlaceholder",zo,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){Bi(l),To(l)},!0),u("keyMap","default",function(l,f,m){var F=fa(f),U=m!=pi&&fa(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Uu,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ba(f,l.options.lineNumbers),To(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Vs(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return eo(l)},!0),u("scrollbarStyle","native",function(l){Da(l),eo(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Ba(l.options.gutters,f),To(l)},!0),u("firstLineNumber",1,To,!0),u("lineNumberFormatter",function(l){return l},To,!0),u("showCursorWhenSelecting",!1,bo,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(wo(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,cc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,bo,!0),u("singleCursorHeightPerLine",!0,bo,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Fi,!0),u("addModeClass",!1,Fi,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,Fi,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function cc(e,n,u){var l=u&&u!=pi;if(!n!=!l){var f=e.display.dragFunctions,m=n?D:ce;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function Uu(e){e.options.lineWrapping?(Ve(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),ho(e)),_o(e),$r(e),Jo(e),setTimeout(function(){return eo(e)},100)}function cr(e,n){var u=this;if(!(this instanceof cr))return new cr(e,n);this.options=n=n?Qe(n):{},Qe(Do,n,!1);var l=n.value;typeof l=="string"?l=new Vt(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new cr.inputStyles[n.inputStyle](this),m=this.display=new ja(e,l,f,n);m.wrapper.CodeMirror=this,Bi(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Da(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ut,keySeq:null,specialChars:null},n.autofocus&&!M&&m.input.focus(),b&&A<11&&setTimeout(function(){return u.display.input.reset(!0)},20),as(this),ec(),Ti(this),this.curOp.forceUpdate=!0,Ze(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&$s(u)},20):wo(this);for(var F in pa)pa.hasOwnProperty(F)&&pa[F](this,n[F],pi);_s(this),n.finishInit&&n.finishInit(this);for(var U=0;U<vl.length;++U)vl[U](this);Pi(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}cr.defaults=Do,cr.optionHandlers=pa;function as(e){var n=e.display;D(n.scroller,"mousedown",xr(e,hl)),b&&A<11?D(n.scroller,"dblclick",xr(e,function(z){if(!Pe(e,z)){var Z=_i(e,z);if(!(!Z||os(e,z)||ni(e.display,z))){it(z);var xe=e.findWordAt(Z);Ya(e.doc,xe.anchor,xe.head)}}})):D(n.scroller,"dblclick",function(z){return Pe(e,z)||it(z)}),D(n.scroller,"contextmenu",function(z){return da(e,z)}),D(n.input.getField(),"contextmenu",function(z){n.scroller.contains(z.target)||da(e,z)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function m(z){if(z.touches.length!=1)return!1;var Z=z.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(z,Z){if(Z.left==null)return!0;var xe=Z.left-z.left,Ee=Z.top-z.top;return xe*xe+Ee*Ee>20*20}D(n.scroller,"touchstart",function(z){if(!Pe(e,z)&&!m(z)&&!os(e,z)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},z.touches.length==1&&(n.activeTouch.left=z.touches[0].pageX,n.activeTouch.top=z.touches[0].pageY)}}),D(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),D(n.scroller,"touchend",function(z){var Z=n.activeTouch;if(Z&&!ni(n,z)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var xe=e.coordsChar(n.activeTouch,"page"),Ee;!Z.prev||F(Z,Z.prev)?Ee=new _t(xe,xe):!Z.prev.prev||F(Z,Z.prev.prev)?Ee=e.findWordAt(xe):Ee=new _t(nt(xe.line,0),st(e.doc,nt(xe.line+1,0))),e.setSelection(Ee.anchor,Ee.head),e.focus(),it(z)}f()}),D(n.scroller,"touchcancel",f),D(n.scroller,"scroll",function(){n.scroller.clientHeight&&(ln(e,n.scroller.scrollTop),Vn(e,n.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),D(n.scroller,"mousewheel",function(z){return el(e,z)}),D(n.scroller,"DOMMouseScroll",function(z){return el(e,z)}),D(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(z){Pe(e,z)||Jt(z)},over:function(z){Pe(e,z)||(Eu(e,z),Jt(z))},start:function(z){return ll(e,z)},drop:xr(e,qf),leave:function(z){Pe(e,z)||io(e)}};var U=n.input.getField();D(U,"keyup",function(z){return oc.call(e,z)}),D(U,"keydown",xr(e,ic)),D(U,"keypress",xr(e,ac)),D(U,"focus",function(z){return $s(e,z)}),D(U,"blur",function(z){return wo(e,z)})}var vl=[];cr.defineInitHook=function(e){return vl.push(e)};function No(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=_r(e,n).state:u="prev");var F=e.options.tabSize,U=Et(f,n),z=Xe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],xe;if(!l&&!/\S/.test(U.text))xe=0,u="not";else if(u=="smart"&&(xe=f.mode.indent(m,U.text.slice(Z.length),U.text),xe==qe||xe>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?xe=Xe(Et(f,n-1).text,null,F):xe=0:u=="add"?xe=z+e.options.indentUnit:u=="subtract"?xe=z-e.options.indentUnit:typeof u=="number"&&(xe=z+u),xe=Math.max(0,xe);var Ee="",Ne=0;if(e.options.indentWithTabs)for(var Me=Math.floor(xe/F);Me;--Me)Ne+=F,Ee+=" ";if(Ne<xe&&(Ee+=It(xe-Ne)),Ee!=Z)return Fo(f,Ee,nt(n,0),nt(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var at=nt(n,Z.length);tn(f,Ye,new _t(at,at));break}}}var Rn=null;function ha(e){Rn=e}function gl(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,z=$n(n),Z=null;if(U&&l.ranges.length>1)if(Rn&&Rn.text.join(`
|
|
30
|
+
`)==n){if(l.ranges.length%Rn.text.length==0){Z=[];for(var xe=0;xe<Rn.text.length;xe++)Z.push(m.splitLines(Rn.text[xe]))}}else z.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=jt(z,function(ft){return[ft]}));for(var Ee=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var Me=l.ranges[Ne],Ye=Me.from(),tt=Me.to();Me.empty()&&(u&&u>0?Ye=nt(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=nt(tt.line,Math.min(Et(m,tt.line).text.length,tt.ch+At(z).length)):U&&Rn&&Rn.lineWise&&Rn.text.join(`
|
|
31
31
|
`)==z.join(`
|
|
32
|
-
`)&&(Ye=tt=nt(Ye.line,0)));var at={from:Ye,to:tt,text:Z?Z[Ne%Z.length]:z,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};Eo(e.doc,at),Fr(e,"inputRead",e,at)}n&&!U&&yl(e,n),fn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function sa(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Gr(n,function(){return gl(n,u,0,null,"paste")}),!0}function yl(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){F=Po(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(At(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Po(e,f.head.line,"smart"));F&&Fr(e,"electricInput",e,f.head.line)}}}function ml(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:nt(f,0),head:nt(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function xl(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Ku(){var e=ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=ve("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),R&&(e.style.border="1px solid black"),xl(e),n}function vc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&yr(this,n[l])(this,f,F),Oe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](ra(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Dr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Nt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,ln(this)}),removeOverlay:Dr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,ln(this);return}}}),indentLine:Dr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Jn(this.doc,l)&&Po(this,l,f,m)}),indentSelection:Dr(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(Po(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&fn(this));else{var z=U.from(),Z=U.to(),me=Math.max(m,z.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=me;Ce<m;++Ce)Po(this,Ce,l);var Ne=this.doc.sel.ranges;z.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&za(this.doc,F,new _t(z,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return ws(this,l,f)},getLineTokens:function(l,f){return ws(this,nt(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Bl(this,At(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,z;if(U==0)z=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{z=f[Z*2+2];break}}var me=z?z.indexOf("overlay "):-1;return me<0?z:me==0?null:z.slice(0,me-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var z=0;z<U[f].length;z++){var Z=F[U[f][z]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var me=0;me<F._global.length;me++){var Ce=F._global[me];Ce.pred(U,this)&&pt(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=ot(m,l==null?m.first+m.size-1:l),en(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=st(this.doc,l):m=l?F.from():F.to(),yn(this,m,f||"page")},charCoords:function(l,f){return ci(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=ou(this,l,f||"page"),Ii(this,l.left,l.top)},lineAtHeight:function(l,f){return l=ou(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var F=!1,U;if(typeof l=="number"){var z=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>z&&(l=z,F=!0),U=At(this.doc,l)}else U=l;return Wo(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-Xn(U):0)},defaultTextHeight:function(){return mo(this.display)},defaultCharWidth:function(){return xo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var z=this.display;l=yn(this,st(this.doc,l));var Z=l.bottom,me=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),z.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(z.wrapper.clientHeight,this.doc.height),Ne=Math.max(z.sizer.clientWidth,z.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),me+f.offsetWidth>Ne&&(me=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(me=z.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?me=0:U=="middle"&&(me=(z.sizer.clientWidth-f.offsetWidth)/2),f.style.left=me+"px"),m&&Go(this,{left:me,top:Z,right:me+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Dr(ic),triggerOnKeyPress:Dr(ac),triggerOnKeyUp:oc,triggerOnMouseDown:Dr(so),execCommand:function(l){if(na.hasOwnProperty(l))return na[l].call(null,this)},triggerElectric:Dr(function(l){yl(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var z=st(this.doc,l),Z=0;Z<f&&(z=bl(this.doc,z,U,m,F),!z.hitSide);++Z);return z},moveH:Dr(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?bl(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Dr(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):ao(this,function(U){var z=bl(F,U.head,l,f,!1);return l<0?{from:z,to:U.head}:{from:U.head,to:z}})}),findPosV:function(l,f,m,F){var U=1,z=F;f<0&&(U=-1,f=-f);for(var Z=st(this.doc,l),me=0;me<f;++me){var Ce=yn(this,Z,"div");if(z==null?z=Ce.left:Ce.left=z,Z=Yu(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Dr(function(l,f){var m=this,F=this.doc,U=[],z=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(me){if(z)return l<0?me.from():me.to();var Ce=yn(m,me.head,"div");me.goalColumn!=null&&(Ce.left=me.goalColumn),U.push(Ce.left);var Ne=Yu(m,Ce,l,f);return f=="page"&&me==F.sel.primary()&&Vn(m,ci(m,Ne,"div").top-Ce.top),Ne},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=At(f,l.line).text,F=l.ch,U=l.ch;if(m){var z=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),me=G(Z,z)?function(Ce){return G(Ce,z)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!G(Ce)};F>0&&me(m.charAt(F-1));)--F;for(;U<m.length&&me(m.charAt(U));)++U}return new _t(nt(l.line,F),nt(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):te(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==De()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Dr(function(l,f){$o(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Jr(this)-this.display.barHeight,width:l.scrollWidth-Jr(this)-this.display.barWidth,clientHeight:fi(this),clientWidth:Pi(this)}},scrollIntoView:Dr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:nt(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?cu(this,l):kn(this,l.from,l.to,l.margin)}),setSize:Dr(function(l,f){var m=this,F=function(z){return typeof z=="number"||/^\d+$/.test(String(z))?z+"px":z};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&nu(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(z){if(z.widgets){for(var Z=0;Z<z.widgets.length;Z++)if(z.widgets[Z].noHScroll){di(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(l){return Gr(this,l)},startOperation:function(){return Mi(this)},endOperation:function(){return cn(this)},refresh:Dr(function(){var l=this.display.cachedTextHeight;ln(this),this.curOp.forceUpdate=!0,yo(this),$o(this,this.doc.scrollLeft,this.doc.scrollTop),Rr(this.display),(l==null||Math.abs(l-mo(this.display))>.5||this.options.lineWrapping)&&js(this),Oe(this,"refresh",this)}),swapDoc:Dr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),el(this,l),yo(this),this.display.input.reset(),$o(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Fr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function bl(e,n,u,l,f){var m=n,F=u,U=At(e,n.line),z=f&&e.direction=="rtl"?-u:u;function Z(){var ht=n.line+z;return ht<e.first||ht>=e.first+e.size?!1:(n=new nt(ht,n.ch,n.sticky),U=At(e,ht))}function me(ht){var ct;if(l=="codepoint"){var xt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))ct=null;else{var Pt=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;ct=new nt(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Pt?2:1))),-u)}}else f?ct=qa(e.cm,U,n,u):ct=dl(U,n,u);if(ct==null)if(!ht&&Z())n=pl(f,e.cm,U,n.line,z);else return!1;else n=ct;return!0}if(l=="char"||l=="codepoint")me();else if(l=="column")me(!0);else if(l=="word"||l=="group")for(var Ce=null,Ne=l=="group",Me=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!me(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
|
|
32
|
+
`)&&(Ye=tt=nt(Ye.line,0)));var at={from:Ye,to:tt,text:Z?Z[Ne%Z.length]:z,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};Mi(e.doc,at),Wr(e,"inputRead",e,at)}n&&!U&&va(e,n),yn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ju(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Yr(n,function(){return gl(n,u,0,null,"paste")}),!0}function va(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){F=No(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Et(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=No(e,f.head.line,"smart"));F&&Wr(e,"electricInput",e,f.head.line)}}}function yl(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:nt(f,0),head:nt(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function ml(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function xl(){var e=ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=ve("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),R&&(e.style.border="1px solid black"),ml(e),n}function dc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&xr(this,n[l])(this,f,F),Oe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](fa(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Lr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");Nt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,$r(this)}),removeOverlay:Lr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,$r(this);return}}}),indentLine:Lr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Jn(this.doc,l)&&No(this,l,f,m)}),indentSelection:Lr(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(No(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&yn(this));else{var z=U.from(),Z=U.to(),xe=Math.max(m,z.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ee=xe;Ee<m;++Ee)No(this,Ee,l);var Ne=this.doc.sel.ranges;z.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&tn(this.doc,F,new _t(z,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return ws(this,l,f)},getLineTokens:function(l,f){return ws(this,nt(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Bl(this,Et(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,z;if(U==0)z=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{z=f[Z*2+2];break}}var xe=z?z.indexOf("overlay "):-1;return xe<0?z:xe==0?null:z.slice(0,xe-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var z=0;z<U[f].length;z++){var Z=F[U[f][z]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var xe=0;xe<F._global.length;xe++){var Ee=F._global[xe];Ee.pred(U,this)&&pt(m,Ee.val)==-1&&m.push(Ee.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=ot(m,l==null?m.first+m.size-1:l),_r(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=st(this.doc,l):m=l?F.from():F.to(),qr(this,m,f||"page")},charCoords:function(l,f){return La(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Us(this,l,f||"page"),Qi(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Us(this,{top:l,left:0},f||"page").top,Un(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var F=!1,U;if(typeof l=="number"){var z=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>z&&(l=z,F=!0),U=Et(this.doc,l)}else U=l;return Ma(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-ri(U):0)},defaultTextHeight:function(){return mo(this.display)},defaultCharWidth:function(){return xo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var z=this.display;l=qr(this,st(this.doc,l));var Z=l.bottom,xe=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),z.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ee=Math.max(z.wrapper.clientHeight,this.doc.height),Ne=Math.max(z.sizer.clientWidth,z.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ee)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ee&&(Z=l.bottom),xe+f.offsetWidth>Ne&&(xe=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(xe=z.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?xe=0:U=="middle"&&(xe=(z.sizer.clientWidth-f.offsetWidth)/2),f.style.left=xe+"px"),m&&Cd(this,{left:xe,top:Z,right:xe+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Lr(ic),triggerOnKeyPress:Lr(ac),triggerOnKeyUp:oc,triggerOnMouseDown:Lr(hl),execCommand:function(l){if(Di.hasOwnProperty(l))return Di[l].call(null,this)},triggerElectric:Lr(function(l){va(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var z=st(this.doc,l),Z=0;Z<f&&(z=bl(this.doc,z,U,m,F),!z.hitSide);++Z);return z},moveH:Lr(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?bl(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Lr(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):ao(this,function(U){var z=bl(F,U.head,l,f,!1);return l<0?{from:z,to:U.head}:{from:U.head,to:z}})}),findPosV:function(l,f,m,F){var U=1,z=F;f<0&&(U=-1,f=-f);for(var Z=st(this.doc,l),xe=0;xe<f;++xe){var Ee=qr(this,Z,"div");if(z==null?z=Ee.left:Ee.left=z,Z=Vu(this,Ee,U,m),Z.hitSide)break}return Z},moveV:Lr(function(l,f){var m=this,F=this.doc,U=[],z=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(xe){if(z)return l<0?xe.from():xe.to();var Ee=qr(m,xe.head,"div");xe.goalColumn!=null&&(Ee.left=xe.goalColumn),U.push(Ee.left);var Ne=Vu(m,Ee,l,f);return f=="page"&&xe==F.sel.primary()&&sn(m,La(m,Ne,"div").top-Ee.top),Ne},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Et(f,l.line).text,F=l.ch,U=l.ch;if(m){var z=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),xe=G(Z,z)?function(Ee){return G(Ee,z)}:/\s/.test(Z)?function(Ee){return/\s/.test(Ee)}:function(Ee){return!/\s/.test(Ee)&&!G(Ee)};F>0&&xe(m.charAt(F-1));)--F;for(;U<m.length&&xe(m.charAt(U));)++U}return new _t(nt(l.line,F),nt(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):te(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==De()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Lr(function(l,f){mn(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-Xn(this)-this.display.barHeight,width:l.scrollWidth-Xn(this)-this.display.barWidth,clientHeight:Ra(this),clientWidth:vn(this)}},scrollIntoView:Lr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:nt(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Hf(this,l):ea(this,l.from,l.to,l.margin)}),setSize:Lr(function(l,f){var m=this,F=function(z){return typeof z=="number"||/^\d+$/.test(String(z))?z+"px":z};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Ls(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(z){if(z.widgets){for(var Z=0;Z<z.widgets.length;Z++)if(z.widgets[Z].noHScroll){Ei(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(l){return Yr(this,l)},startOperation:function(){return Ti(this)},endOperation:function(){return Pi(this)},refresh:Lr(function(){var l=this.display.cachedTextHeight;$r(this),this.curOp.forceUpdate=!0,Jo(this),mn(this,this.doc.scrollLeft,this.doc.scrollTop),un(this.display),(l==null||Math.abs(l-mo(this.display))>.5||this.options.lineWrapping)&&_o(this),Oe(this,"refresh",this)}),swapDoc:Lr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Ze(this,l),Jo(this),this.display.input.reset(),mn(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Wr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function bl(e,n,u,l,f){var m=n,F=u,U=Et(e,n.line),z=f&&e.direction=="rtl"?-u:u;function Z(){var ht=n.line+z;return ht<e.first||ht>=e.first+e.size?!1:(n=new nt(ht,n.ch,n.sticky),U=Et(e,ht))}function xe(ht){var ct;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))ct=null;else{var Pt=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;ct=new nt(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Pt?2:1))),-u)}}else f?ct=tc(e.cm,U,n,u):ct=ts(U,n,u);if(ct==null)if(!ht&&Z())n=dl(f,e.cm,U,n.line,z);else return!1;else n=ct;return!0}if(l=="char"||l=="codepoint")xe();else if(l=="column")xe(!0);else if(l=="word"||l=="group")for(var Ee=null,Ne=l=="group",Me=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!xe(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
|
|
33
33
|
`,at=G(tt,Me)?"w":Ne&&tt==`
|
|
34
|
-
`?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!at&&(at="s"),
|
|
35
|
-
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var
|
|
36
|
-
`);var Ne=De();ke(
|
|
37
|
-
`),ke(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",m),D(f,"copy",m),D(e.scroller,"paste",function(F){if(!(
|
|
38
|
-
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},
|
|
39
|
-
top: `+(e.clientY-
|
|
34
|
+
`?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!at&&(at="s"),Ee&&Ee!=at){u<0&&(u=1,xe(),n.sticky="after");break}if(at&&(Ee=at),u>0&&!xe(!Ye))break}var ft=Dr(e,n,m,F,!0);return ei(m,ft)&&(ft.hitSide=!0),ft}function Vu(e,n,u,l){var f=e.doc,m=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),z=Math.max(U-.5*mo(e.display),3);F=(u>0?n.bottom:n.top)+u*z}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var Z;Z=Qi(e,m,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var nr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nr.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,ml(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(U){for(var z=U.target;z;z=z.parentNode){if(z==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(z.className))break}return!1}D(f,"paste",function(U){!m(U)||Pe(l,U)||ju(U,l)||A<=11&&setTimeout(xr(l,function(){return n.updateFromDOM()}),20)}),D(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),D(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),D(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),D(f,"touchstart",function(){return u.forceCompositionEnd()}),D(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!m(U)||Pe(l,U))){if(l.somethingSelected())ha({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var z=yl(l);ha({lineWise:!0,text:z.text}),U.type=="cut"&&l.operation(function(){l.setSelections(z.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=Rn.text.join(`
|
|
35
|
+
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var xe=xl(),Ee=xe.firstChild;l.display.lineSpace.insertBefore(xe,l.display.lineSpace.firstChild),Ee.value=Rn.text.join(`
|
|
36
|
+
`);var Ne=De();ke(Ee),setTimeout(function(){l.display.lineSpace.removeChild(xe),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}D(f,"copy",F),D(f,"cut",F)},nr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},nr.prototype.prepareSelection=function(){var e=Bf(this.cm,!1);return e.focus=De()==this.div,e},nr.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},nr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nr.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var m=ss(n,e.anchorNode,e.anchorOffset),F=ss(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&F&&!F.bad&&Lt(_e(m,F),l)==0&&Lt(Ce(m,F),f)==0)){var U=n.display.view,z=l.line>=n.display.viewFrom&&Wu(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&Wu(n,f);if(!Z){var xe=U[U.length-1].measure,Ee=xe.maps?xe.maps[xe.maps.length-1]:xe.map;Z={node:Ee[Ee.length-1],offset:Ee[Ee.length-2]-Ee[Ee.length-3]}}if(!z||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),Me;try{Me=ue(z.node,z.offset,Z.offset,Z.node)}catch(Ye){}Me&&(!c&&n.state.focused?(e.collapse(z.node,z.offset),Me.collapsed||(e.removeAllRanges(),e.addRange(Me))):(e.removeAllRanges(),e.addRange(Me)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},nr.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},nr.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},nr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},nr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return oe(this.div,n)},nr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||De()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nr.prototype.blur=function(){this.div.blur()},nr.prototype.getField=function(){return this.div},nr.prototype.supportsTouch=function(){return!0},nr.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Yr(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},nr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},nr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&N&&this.cm.display.gutterSpecs.length&&Hu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=ss(n,e.anchorNode,e.anchorOffset),l=ss(n,e.focusNode,e.focusOffset);u&&l&&Yr(n,function(){rr(n.doc,si(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},nr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=nt(l.line-1,Et(e.doc,l.line-1).length)),f.ch==Et(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=nt(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,F,U;l.line==n.viewFrom||(m=Ai(e,l.line))==0?(F=qt(n.view[0].line),U=n.view[0].node):(F=qt(n.view[m].line),U=n.view[m-1].node.nextSibling);var z=Ai(e,f.line),Z,xe;if(z==n.view.length-1?(Z=n.viewTo-1,xe=n.lineDiv.lastChild):(Z=qt(n.view[z+1].line)-1,xe=n.view[z+1].node.previousSibling),!U)return!1;for(var Ee=e.doc.splitLines(pc(e,U,xe,F,Z)),Ne=qn(e.doc,nt(F,0),nt(Z,Et(e.doc,Z).text.length));Ee.length>1&&Ne.length>1;)if(At(Ee)==At(Ne))Ee.pop(),Ne.pop(),Z--;else if(Ee[0]==Ne[0])Ee.shift(),Ne.shift(),F++;else break;for(var Me=0,Ye=0,tt=Ee[0],at=Ne[0],ft=Math.min(tt.length,at.length);Me<ft&&tt.charCodeAt(Me)==at.charCodeAt(Me);)++Me;for(var ht=At(Ee),ct=At(Ne),bt=Math.min(ht.length-(Ee.length==1?Me:0),ct.length-(Ne.length==1?Me:0));Ye<bt&&ht.charCodeAt(ht.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)++Ye;if(Ee.length==1&&Ne.length==1&&F==l.line)for(;Me&&Me>l.ch&&ht.charCodeAt(ht.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)Me--,Ye++;Ee[Ee.length-1]=ht.slice(0,ht.length-Ye).replace(/^\u200b+/,""),Ee[0]=Ee[0].slice(Me).replace(/\u200b+$/,"");var Pt=nt(F,Me),Ot=nt(Z,Ne.length?At(Ne).length-Ye:0);if(Ee.length>1||Ee[0]||Lt(Pt,Ot))return Fo(e.doc,Ee,Pt,Ot,"+input"),!0},nr.prototype.ensurePolled=function(){this.forceCompositionEnd()},nr.prototype.reset=function(){this.forceCompositionEnd()},nr.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nr.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},nr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Yr(this.cm,function(){return $r(e.cm)})},nr.prototype.setUneditable=function(e){e.contentEditable="false"},nr.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||xr(this.cm,gl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},nr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},nr.prototype.onContextMenu=function(){},nr.prototype.resetPosition=function(){},nr.prototype.needsContentAttribute=!0;function Wu(e,n){var u=Rs(e,n.line);if(!u||u.hidden)return null;var l=Et(e.doc,n.line),f=eu(u,l,n.line),m=P(l,e.doc.direction),F="left";if(m){var U=W(m,n.ch);F=U%2?"right":"left"}var z=nu(f.map,n.ch,F);return z.offset=z.collapse=="right"?z.end:z.start,z}function Hu(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function so(e,n){return n&&(e.bad=!0),e}function pc(e,n,u,l,f){var m="",F=!1,U=e.doc.lineSeparator(),z=!1;function Z(Me){return function(Ye){return Ye.id==Me}}function xe(){F&&(m+=U,z&&(m+=U),F=z=!1)}function Ee(Me){Me&&(xe(),m+=Me)}function Ne(Me){if(Me.nodeType==1){var Ye=Me.getAttribute("cm-text");if(Ye){Ee(Ye);return}var tt=Me.getAttribute("cm-marker"),at;if(tt){var ft=e.findMarks(nt(l,0),nt(f+1,0),Z(+tt));ft.length&&(at=ft[0].find(0))&&Ee(qn(e.doc,at.from,at.to).join(U));return}if(Me.getAttribute("contenteditable")=="false")return;var ht=/^(pre|div|p|li|table|br)$/i.test(Me.nodeName);if(!/^br$/i.test(Me.nodeName)&&Me.textContent.length==0)return;ht&&xe();for(var ct=0;ct<Me.childNodes.length;ct++)Ne(Me.childNodes[ct]);/^(pre|p)$/i.test(Me.nodeName)&&(z=!0),ht&&(F=!0)}else Me.nodeType==3&&Ee(Me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,z=!1;return m}function ss(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return so(e.clipPos(nt(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var m=e.display.view[f];if(m.node==l)return hc(m,n,u)}}function hc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!oe(l,n))return so(nt(qt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?At(e.rest):e.line;return so(nt(qt(m),m.text.length),f)}var F=n.nodeType==3?n:null,U=n;for(!F&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(F=n.firstChild,u&&(u=F.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var z=e.measure,Z=z.maps;function xe(at,ft,ht){for(var ct=-1;ct<(Z?Z.length:0);ct++)for(var bt=ct<0?z.map:Z[ct],Pt=0;Pt<bt.length;Pt+=3){var Ot=bt[Pt+2];if(Ot==at||Ot==ft){var Ut=qt(ct<0?e.line:e.rest[ct]),ar=bt[Pt]+ht;return(ht<0||Ot!=at)&&(ar=bt[Pt+(ht?1:0)]),nt(Ut,ar)}}}var Ee=xe(F,U,u);if(Ee)return so(Ee,f);for(var Ne=U.nextSibling,Me=F?F.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ee=xe(Ne,Ne.firstChild,0),Ee)return so(nt(Ee.line,Ee.ch-Me),f);Me+=Ne.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ee=xe(Ye,Ye.firstChild,-1),Ee)return so(nt(Ee.line,Ee.ch+tt),f);tt+=Ye.textContent.length}}var pr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};pr.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),R&&(f.style.width="0px"),D(f,"input",function(){b&&A>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),D(f,"paste",function(F){Pe(l,F)||ju(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(F){if(!Pe(l,F)){if(l.somethingSelected())ha({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=yl(l);ha({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,lt):(u.prevInput="",f.value=U.text.join(`
|
|
37
|
+
`),ke(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}D(f,"cut",m),D(f,"copy",m),D(e.scroller,"paste",function(F){if(!(ni(e,F)||Pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=F.clipboardData,f.dispatchEvent(U)}}),D(e.lineSpace,"selectstart",function(F){ni(e,F)||it(F)}),D(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),D(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},pr.prototype.createField=function(e){this.wrapper=xl(),this.textarea=this.wrapper.firstChild},pr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},pr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Bf(e);if(e.options.moveInputWithCursor){var f=qr(e,u.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-m.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-m.left))}return l},pr.prototype.showSelection=function(e){var n=this.cm,u=n.display;ye(u.cursorDiv,e.cursors),ye(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},pr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&ke(this.textarea),b&&A>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&A>=9&&(this.hasSelection=null))}},pr.prototype.getField=function(){return this.textarea},pr.prototype.supportsTouch=function(){return!1},pr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||De()!=this.textarea))try{this.textarea.focus()}catch(e){}},pr.prototype.blur=function(){this.textarea.blur()},pr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},pr.prototype.receivedFocus=function(){this.slowPoll()},pr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},pr.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},pr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||Tn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&A>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,U=Math.min(l.length,f.length);F<U&&l.charCodeAt(F)==f.charCodeAt(F);)++F;return Yr(n,function(){gl(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
38
|
+
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},pr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},pr.prototype.onKeyPress=function(){b&&A>=9&&(this.hasSelection=null),this.fastPoll()},pr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=_i(u,e),F=l.scroller.scrollTop;if(!m||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&xr(u,rr)(u.doc,si(m),lt);var z=f.style.cssText,Z=n.wrapper.style.cssText,xe=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
39
|
+
top: `+(e.clientY-xe.top-5)+"px; left: "+(e.clientX-xe.left-5)+`px;
|
|
40
40
|
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
41
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var tt=u.somethingSelected(),at="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function Me(){if(n.contextMenuPending==Me&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=z,b&&A<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&A<9)&&Ne();var tt=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?yr(u,Eu)(u):tt++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&A>=9&&Ne(),Y){Kt(e);var Ye=function(){ce(window,"mouseup",Ye),setTimeout(Me,20)};D(window,"mouseup",Ye)}else setTimeout(Me,50)},mr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},mr.prototype.setUneditable=function(){},mr.prototype.needsContentAttribute=!1;function Xu(e,n){if(n=n?Ze(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=De();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=F}}catch(z){}}n.finishInit=function(z){z.save=l,z.getTextArea=function(){return e},z.toTextArea=function(){z.toTextArea=isNaN,l(),e.parentNode.removeChild(z.getWrapperElement()),e.style.display="",e.form&&(ce(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=ir(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},n);return U}function Qu(e){e.off=ce,e.on=D,e.wheelEventPixels=yu,e.Doc=cr,e.splitLines=$n,e.countColumn=Qe,e.findColumn=dt,e.isWordChar=pe,e.Pass=qe,e.signal=Oe,e.Line=Xi,e.changeEnd=hi,e.scrollbarModel=La,e.Pos=nt,e.cmpPos=Lt,e.modes=Lo,e.mimeModes=An,e.resolveMode=Ki,e.getMode=Un,e.modeExtensions=Si,e.extendMode=xa,e.copyState=Fn,e.startState=Ai,e.innerMode=En,e.commands=na,e.keyMap=xn,e.keyName=cl,e.isModifierKey=Nu,e.lookupKey=yi,e.normalizeKeyMap=ec,e.StringStream=gr,e.SharedTextMarker=ea,e.TextMarker=oo,e.LineWidget=Qa,e.e_preventDefault=it,e.e_stopPropagation=gt,e.e_stop=Kt,e.addClass=Ve,e.contains=oe,e.rmClass=te,e.keyNames=gi}pc(ir),vc(ir);var yc="iter insert remove copy getEditor constructor".split(" ");for(var ls in cr.prototype)cr.prototype.hasOwnProperty(ls)&&pt(yc,ls)<0&&(ir.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(cr.prototype[ls]));return He(cr),ir.inputStyles={textarea:mr,contenteditable:tr},ir.defineMode=function(e){!ir.defaults.mode&&e!="null"&&(ir.defaults.mode=e),Yn.apply(this,arguments)},ir.defineMIME=wi,ir.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ir.defineMIME("text/plain","null"),ir.defineExtension=function(e,n){ir.prototype[e]=n},ir.defineDocExtension=function(e,n){cr.prototype[e]=n},ir.fromTextArea=Xu,Qu(ir),ir.version="5.65.0",ir})},96876:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,A=x.jsonld,g=x.json||A,L=x.trackScope!==!1,N=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function se(Tr){return{type:Tr,style:"keyword"}}var Ee=se("keyword a"),_e=se("keyword b"),ot=se("keyword c"),st=se("keyword d"),$t=se("operator"),Qt={type:"atom",style:"atom"};return{if:se("if"),while:Ee,with:Ee,else:_e,do:_e,try:_e,finally:_e,return:st,break:st,continue:st,new:se("new"),delete:ot,void:ot,throw:ot,debugger:se("debugger"),var:se("var"),const:se("var"),let:se("var"),function:se("function"),catch:se("catch"),for:se("for"),switch:se("switch"),case:se("case"),default:se("default"),in:$t,typeof:$t,instanceof:$t,true:Qt,false:Qt,null:Qt,undefined:Qt,NaN:Qt,Infinity:Qt,this:se("this"),class:se("class"),super:se("atom"),yield:ot,export:se("export"),import:se("import"),extends:ot,await:ot}}(),_=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function R(se){for(var Ee=!1,_e,ot=!1;(_e=se.next())!=null;){if(!Ee){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Ee=!Ee&&_e=="\\"}}var X,M;function C(se,Ee,_e){return X=se,M=_e,Ee}function V(se,Ee){var _e=se.next();if(_e=='"'||_e=="'")return Ee.tokenize=J(_e),Ee.tokenize(se,Ee);if(_e=="."&&se.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(_e=="."&&se.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return C(_e);if(_e=="="&&se.eat(">"))return C("=>","operator");if(_e=="0"&&se.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(_e))return se.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(_e=="/")return se.eat("*")?(Ee.tokenize=q,q(se,Ee)):se.eat("/")?(se.skipToEnd(),C("comment","comment")):li(se,Ee,1)?(R(se),se.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(se.eat("="),C("operator","operator",se.current()));if(_e=="`")return Ee.tokenize=Q,Q(se,Ee);if(_e=="#"&&se.peek()=="!")return se.skipToEnd(),C("meta","meta");if(_e=="#"&&se.eatWhile(B))return C("variable","property");if(_e=="<"&&se.match("!--")||_e=="-"&&se.match("->")&&!/\S/.test(se.string.slice(0,se.start)))return se.skipToEnd(),C("comment","comment");if(_.test(_e))return(_e!=">"||!Ee.lexical||Ee.lexical.type!=">")&&(se.eat("=")?(_e=="!"||_e=="=")&&se.eat("="):/[<>*+\-|&?]/.test(_e)&&(se.eat(_e),_e==">"&&se.eat(_e))),_e=="?"&&se.eat(".")?C("."):C("operator","operator",se.current());if(B.test(_e)){se.eatWhile(B);var ot=se.current();if(Ee.lastType!="."){if(j.propertyIsEnumerable(ot)){var st=j[ot];return C(st.type,st.style,ot)}if(ot=="async"&&se.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ot)}return C("variable","variable",ot)}}function J(se){return function(Ee,_e){var ot=!1,st;if(A&&Ee.peek()=="@"&&Ee.match(H))return _e.tokenize=V,C("jsonld-keyword","meta");for(;(st=Ee.next())!=null&&!(st==se&&!ot);)ot=!ot&&st=="\\";return ot||(_e.tokenize=V),C("string","string")}}function q(se,Ee){for(var _e=!1,ot;ot=se.next();){if(ot=="/"&&_e){Ee.tokenize=V;break}_e=ot=="*"}return C("comment","comment")}function Q(se,Ee){for(var _e=!1,ot;(ot=se.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&se.eat("{"))){Ee.tokenize=V;break}_e=!_e&&ot=="\\"}return C("quasi","string-2",se.current())}var Y="([{}])";function fe(se,Ee){Ee.fatArrowAt&&(Ee.fatArrowAt=null);var _e=se.string.indexOf("=>",se.start);if(!(_e<0)){if(N){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(se.string.slice(se.start,_e));ot&&(_e=ot.index)}for(var st=0,$t=!1,Qt=_e-1;Qt>=0;--Qt){var Tr=se.string.charAt(Qt),Pr=Y.indexOf(Tr);if(Pr>=0&&Pr<3){if(!st){++Qt;break}if(--st==0){Tr=="("&&($t=!0);break}}else if(Pr>=3&&Pr<6)++st;else if(B.test(Tr))$t=!0;else if(/["'\/`]/.test(Tr))for(;;--Qt){if(Qt==0)return;var er=se.string.charAt(Qt-1);if(er==Tr&&se.string.charAt(Qt-2)!="\\"){Qt--;break}}else if($t&&!st){++Qt;break}}$t&&!st&&(Ee.fatArrowAt=Qt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(se,Ee,_e,ot,st,$t){this.indented=se,this.column=Ee,this.type=_e,this.prev=st,this.info=$t,ot!=null&&(this.align=ot)}function ye(se,Ee){if(!L)return!1;for(var _e=se.localVars;_e;_e=_e.next)if(_e.name==Ee)return!0;for(var ot=se.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Ee)return!0}function ve(se,Ee,_e,ot,st){var $t=se.cc;for(de.state=se,de.stream=st,de.marked=null,de.cc=$t,de.style=Ee,se.lexical.hasOwnProperty("align")||(se.lexical.align=!0);;){var Qt=$t.length?$t.pop():g?kt:mt;if(Qt(_e,ot)){for(;$t.length&&$t[$t.length-1].lex;)$t.pop()();return de.marked?de.marked:_e=="variable"&&ye(se,ot)?"variable-2":Ee}}}var de={state:null,column:null,marked:null,cc:null};function ue(){for(var se=arguments.length-1;se>=0;se--)de.cc.push(arguments[se])}function oe(){return ue.apply(null,arguments),!0}function De(se,Ee){for(var _e=Ee;_e;_e=_e.next)if(_e.name==se)return!0;return!1}function Ve(se){var Ee=de.state;if(de.marked="def",!!L){if(Ee.context){if(Ee.lexical.info=="var"&&Ee.context&&Ee.context.block){var _e=Le(se,Ee.context);if(_e!=null){Ee.context=_e;return}}else if(!De(se,Ee.localVars)){Ee.localVars=new Ze(se,Ee.localVars);return}}x.globalVars&&!De(se,Ee.globalVars)&&(Ee.globalVars=new Ze(se,Ee.globalVars))}}function Le(se,Ee){if(Ee)if(Ee.block){var _e=Le(se,Ee.prev);return _e?_e==Ee.prev?Ee:new rt(_e,Ee.vars,!0):null}else return De(se,Ee.vars)?Ee:new rt(Ee.prev,new Ze(se,Ee.vars),!1);else return null}function ke(se){return se=="public"||se=="private"||se=="protected"||se=="abstract"||se=="readonly"}function rt(se,Ee,_e){this.prev=se,this.vars=Ee,this.block=_e}function Ze(se,Ee){this.name=se,this.next=Ee}var Qe=new Ze("this",new Ze("arguments",null));function ut(){de.state.context=new rt(de.state.context,de.state.localVars,!1),de.state.localVars=Qe}function pt(){de.state.context=new rt(de.state.context,de.state.localVars,!0),de.state.localVars=null}function yt(){de.state.localVars=de.state.context.vars,de.state.context=de.state.context.prev}yt.lex=!0;function qe(se,Ee){var _e=function(){var ot=de.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var $t=ot.lexical;$t&&$t.type==")"&&$t.align;$t=$t.prev)st=$t.indented;ot.lexical=new ne(st,de.stream.column(),se,null,ot.lexical,Ee)};return _e.lex=!0,_e}function lt(){var se=de.state;se.lexical.prev&&(se.lexical.type==")"&&(se.indented=se.lexical.indented),se.lexical=se.lexical.prev)}lt.lex=!0;function vt(se){function Ee(_e){return _e==se?oe():se==";"||_e=="}"||_e==")"||_e=="]"?ue():oe(Ee)}return Ee}function mt(se,Ee){return se=="var"?oe(qe("vardef",Ee),$i,vt(";"),lt):se=="keyword a"?oe(qe("form"),St,mt,lt):se=="keyword b"?oe(qe("form"),mt,lt):se=="keyword d"?de.stream.match(/^\s*$/,!1)?oe():oe(qe("stat"),Nt,vt(";"),lt):se=="debugger"?oe(vt(";")):se=="{"?oe(qe("}"),pt,D,lt,yt):se==";"?oe():se=="if"?(de.state.lexical.info=="else"&&de.state.cc[de.state.cc.length-1]==lt&&de.state.cc.pop()(),oe(qe("form"),St,mt,lt,vn)):se=="function"?oe(Yn):se=="for"?oe(qe("form"),pt,ma,mt,yt,lt):se=="class"||N&&Ee=="interface"?(de.marked="keyword",oe(qe("form",se=="class"?se:Ee),xa,lt)):se=="variable"?N&&Ee=="declare"?(de.marked="keyword",oe(mt)):N&&(Ee=="module"||Ee=="enum"||Ee=="type")&&de.stream.match(/^\s*\w/,!1)?(de.marked="keyword",Ee=="enum"?oe(ho):Ee=="type"?oe(Ki,vt("operator"),Te,vt(";")):oe(qe("form"),jr,vt("{"),qe("}"),D,lt,lt)):N&&Ee=="namespace"?(de.marked="keyword",oe(qe("form"),kt,mt,lt)):N&&Ee=="abstract"?(de.marked="keyword",oe(mt)):oe(qe("stat"),Ae):se=="switch"?oe(qe("form"),St,vt("{"),qe("}","switch"),pt,D,lt,lt,yt):se=="case"?oe(kt,vt(":")):se=="default"?oe(vt(":")):se=="catch"?oe(qe("form"),ut,dt,mt,lt,yt):se=="export"?oe(qe("stat"),gr,lt):se=="import"?oe(qe("stat"),si,lt):se=="async"?oe(mt):Ee=="@"?oe(kt,mt):ue(qe("stat"),kt,vt(";"),lt)}function dt(se){if(se=="(")return oe(Un,vt(")"))}function kt(se,Ee){return Vt(se,Ee,!1)}function It(se,Ee){return Vt(se,Ee,!0)}function St(se){return se!="("?ue():oe(qe(")"),Nt,vt(")"),lt)}function Vt(se,Ee,_e){if(de.state.fatArrowAt==de.stream.start){var ot=_e?K:G;if(se=="(")return oe(ut,qe(")"),P(Un,")"),lt,vt("=>"),ot,yt);if(se=="variable")return ue(ut,jr,vt("=>"),ot,yt)}var st=_e?wt:Gt;return te.hasOwnProperty(se)?oe(st):se=="function"?oe(Yn,st):se=="class"||N&&Ee=="interface"?(de.marked="keyword",oe(qe("form"),Si,lt)):se=="keyword c"||se=="async"?oe(_e?It:kt):se=="("?oe(qe(")"),Nt,vt(")"),lt,st):se=="operator"||se=="spread"?oe(_e?It:kt):se=="["?oe(qe("]"),Jn,lt,st):se=="{"?ie(Ie,"}",null,st):se=="quasi"?ue(Mt,st):se=="new"?oe(we(_e)):oe()}function Nt(se){return se.match(/[;\}\)\],]/)?ue():ue(kt)}function Gt(se,Ee){return se==","?oe(Nt):wt(se,Ee,!1)}function wt(se,Ee,_e){var ot=_e==!1?Gt:wt,st=_e==!1?kt:It;if(se=="=>")return oe(ut,_e?K:G,yt);if(se=="operator")return/\+\+|--/.test(Ee)||N&&Ee=="!"?oe(ot):N&&Ee=="<"&&de.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(qe(">"),P(Te,">"),lt,ot):Ee=="?"?oe(kt,vt(":"),st):oe(st);if(se=="quasi")return ue(Mt,ot);if(se!=";"){if(se=="(")return ie(It,")","call",ot);if(se==".")return oe(T,ot);if(se=="[")return oe(qe("]"),Nt,vt("]"),lt,ot);if(N&&Ee=="as")return de.marked="keyword",oe(Te,ot);if(se=="regexp")return de.state.lastType=de.marked="operator",de.stream.backUp(de.stream.pos-de.stream.start-1),oe(st)}}function Mt(se,Ee){return se!="quasi"?ue():Ee.slice(Ee.length-2)!="${"?oe(Mt):oe(Nt,pe)}function pe(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,oe(Mt)}function G(se){return fe(de.stream,de.state),ue(se=="{"?mt:kt)}function K(se){return fe(de.stream,de.state),ue(se=="{"?mt:It)}function we(se){return function(Ee){return Ee=="."?oe(se?be:Re):Ee=="variable"&&N?oe(Sn,se?wt:Gt):ue(se?It:kt)}}function Re(se,Ee){if(Ee=="target")return de.marked="keyword",oe(Gt)}function be(se,Ee){if(Ee=="target")return de.marked="keyword",oe(wt)}function Ae(se){return se==":"?oe(lt,mt):ue(Gt,vt(";"),lt)}function T(se){if(se=="variable")return de.marked="property",oe()}function Ie(se,Ee){if(se=="async")return de.marked="property",oe(Ie);if(se=="variable"||de.style=="keyword"){if(de.marked="property",Ee=="get"||Ee=="set")return oe(W);var _e;return N&&de.state.fatArrowAt==de.stream.start&&(_e=de.stream.match(/^\s*:\s*/,!1))&&(de.state.fatArrowAt=de.stream.pos+_e[0].length),oe(O)}else{if(se=="number"||se=="string")return de.marked=A?"property":de.style+" property",oe(O);if(se=="jsonld-keyword")return oe(O);if(N&&ke(Ee))return de.marked="keyword",oe(Ie);if(se=="[")return oe(kt,ee,vt("]"),O);if(se=="spread")return oe(It,O);if(Ee=="*")return de.marked="keyword",oe(Ie);if(se==":")return ue(O)}}function W(se){return se!="variable"?ue(O):(de.marked="property",oe(Yn))}function O(se){if(se==":")return oe(It);if(se=="(")return ue(Yn)}function P(se,Ee,_e){function ot(st,$t){if(_e?_e.indexOf(st)>-1:st==","){var Qt=de.state.lexical;return Qt.info=="call"&&(Qt.pos=(Qt.pos||0)+1),oe(function(Tr,Pr){return Tr==Ee||Pr==Ee?ue():ue(se)},ot)}return st==Ee||$t==Ee?oe():_e&&_e.indexOf(";")>-1?ue(se):oe(vt(Ee))}return function(st,$t){return st==Ee||$t==Ee?oe():ue(se,ot)}}function ie(se,Ee,_e){for(var ot=3;ot<arguments.length;ot++)de.cc.push(arguments[ot]);return oe(qe(Ee,_e),P(se,Ee),lt)}function D(se){return se=="}"?oe():ue(mt,D)}function ee(se,Ee){if(N){if(se==":")return oe(Te);if(Ee=="?")return oe(ee)}}function ce(se,Ee){if(N&&(se==":"||Ee=="in"))return oe(Te)}function Oe(se){if(N&&se==":")return de.stream.match(/^\s*\w+\s+is\b/,!1)?oe(kt,Pe,Te):oe(Te)}function Pe(se,Ee){if(Ee=="is")return de.marked="keyword",oe()}function Te(se,Ee){if(Ee=="keyof"||Ee=="typeof"||Ee=="infer"||Ee=="readonly")return de.marked="keyword",oe(Ee=="typeof"?It:Te);if(se=="variable"||Ee=="void")return de.marked="type",oe(Ft);if(Ee=="|"||Ee=="&")return oe(Te);if(se=="string"||se=="number"||se=="atom")return oe(Ft);if(se=="[")return oe(qe("]"),P(Te,"]",","),lt,Ft);if(se=="{")return oe(qe("}"),He,lt,Ft);if(se=="(")return oe(P(Kt,")"),Ge,Ft);if(se=="<")return oe(P(Te,">"),Te);if(se=="quasi")return ue(gt,Ft)}function Ge(se){if(se=="=>")return oe(Te)}function He(se){return se.match(/[\}\)\]]/)?oe():se==","||se==";"?oe(He):ue(it,He)}function it(se,Ee){if(se=="variable"||de.style=="keyword")return de.marked="property",oe(it);if(Ee=="?"||se=="number"||se=="string")return oe(it);if(se==":")return oe(Te);if(se=="[")return oe(vt("variable"),ce,vt("]"),it);if(se=="(")return ue(wi,it);if(!se.match(/[;\}\)\],]/))return oe()}function gt(se,Ee){return se!="quasi"?ue():Ee.slice(Ee.length-2)!="${"?oe(gt):oe(Te,Ct)}function Ct(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,oe(gt)}function Kt(se,Ee){return se=="variable"&&de.stream.match(/^\s*[?:]/,!1)||Ee=="?"?oe(Kt):se==":"?oe(Te):se=="spread"?oe(Kt):ue(Te)}function Ft(se,Ee){if(Ee=="<")return oe(qe(">"),P(Te,">"),lt,Ft);if(Ee=="|"||se=="."||Ee=="&")return oe(Te);if(se=="[")return oe(Te,vt("]"),Ft);if(Ee=="extends"||Ee=="implements")return de.marked="keyword",oe(Te);if(Ee=="?")return oe(Te,vt(":"),Te)}function Sn(se,Ee){if(Ee=="<")return oe(qe(">"),P(Te,">"),lt,Ft)}function qr(){return ue(Te,Pn)}function Pn(se,Ee){if(Ee=="=")return oe(Te)}function $i(se,Ee){return Ee=="enum"?(de.marked="keyword",oe(ho)):ue(jr,ee,In,Kn)}function jr(se,Ee){if(N&&ke(Ee))return de.marked="keyword",oe(jr);if(se=="variable")return Ve(Ee),oe();if(se=="spread")return oe(jr);if(se=="[")return ie($n,"]");if(se=="{")return ie(Bn,"}")}function Bn(se,Ee){return se=="variable"&&!de.stream.match(/^\s*:/,!1)?(Ve(Ee),oe(In)):(se=="variable"&&(de.marked="property"),se=="spread"?oe(jr):se=="}"?ue():se=="["?oe(kt,vt("]"),vt(":"),Bn):oe(vt(":"),jr,In))}function $n(){return ue(jr,In)}function In(se,Ee){if(Ee=="=")return oe(It)}function Kn(se){if(se==",")return oe($i)}function vn(se,Ee){if(se=="keyword b"&&Ee=="else")return oe(qe("form","else"),mt,lt)}function ma(se,Ee){if(Ee=="await")return oe(ma);if(se=="(")return oe(qe(")"),Lo,lt)}function Lo(se){return se=="var"?oe($i,An):se=="variable"?oe(An):ue(An)}function An(se,Ee){return se==")"?oe():se==";"?oe(An):Ee=="in"||Ee=="of"?(de.marked="keyword",oe(kt,An)):ue(kt,An)}function Yn(se,Ee){if(Ee=="*")return de.marked="keyword",oe(Yn);if(se=="variable")return Ve(Ee),oe(Yn);if(se=="(")return oe(ut,qe(")"),P(Un,")"),lt,Oe,mt,yt);if(N&&Ee=="<")return oe(qe(">"),P(qr,">"),lt,Yn)}function wi(se,Ee){if(Ee=="*")return de.marked="keyword",oe(wi);if(se=="variable")return Ve(Ee),oe(wi);if(se=="(")return oe(ut,qe(")"),P(Un,")"),lt,Oe,yt);if(N&&Ee=="<")return oe(qe(">"),P(qr,">"),lt,wi)}function Ki(se,Ee){if(se=="keyword"||se=="variable")return de.marked="type",oe(Ki);if(Ee=="<")return oe(qe(">"),P(qr,">"),lt)}function Un(se,Ee){return Ee=="@"&&oe(kt,Un),se=="spread"?oe(Un):N&&ke(Ee)?(de.marked="keyword",oe(Un)):N&&se=="this"?oe(ee,In):ue(jr,ee,In)}function Si(se,Ee){return se=="variable"?xa(se,Ee):Fn(se,Ee)}function xa(se,Ee){if(se=="variable")return Ve(Ee),oe(Fn)}function Fn(se,Ee){if(Ee=="<")return oe(qe(">"),P(qr,">"),lt,Fn);if(Ee=="extends"||Ee=="implements"||N&&se==",")return Ee=="implements"&&(de.marked="keyword"),oe(N?Te:kt,Fn);if(se=="{")return oe(qe("}"),En,lt)}function En(se,Ee){if(se=="async"||se=="variable"&&(Ee=="static"||Ee=="get"||Ee=="set"||N&&ke(Ee))&&de.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return de.marked="keyword",oe(En);if(se=="variable"||de.style=="keyword")return de.marked="property",oe(Ai,En);if(se=="number"||se=="string")return oe(Ai,En);if(se=="[")return oe(kt,ee,vt("]"),Ai,En);if(Ee=="*")return de.marked="keyword",oe(En);if(N&&se=="(")return ue(wi,En);if(se==";"||se==",")return oe(En);if(se=="}")return oe();if(Ee=="@")return oe(kt,En)}function Ai(se,Ee){if(Ee=="!"||Ee=="?")return oe(Ai);if(se==":")return oe(Te,In);if(Ee=="=")return oe(It);var _e=de.state.lexical.prev,ot=_e&&_e.info=="interface";return ue(ot?wi:Yn)}function gr(se,Ee){return Ee=="*"?(de.marked="keyword",oe(jn,vt(";"))):Ee=="default"?(de.marked="keyword",oe(kt,vt(";"))):se=="{"?oe(P(At,"}"),jn,vt(";")):ue(mt)}function At(se,Ee){if(Ee=="as")return de.marked="keyword",oe(vt("variable"));if(se=="variable")return ue(It,At)}function si(se){return se=="string"?oe():se=="("?ue(kt):se=="."?ue(Gt):ue(Ei,Cn,jn)}function Ei(se,Ee){return se=="{"?ie(Ei,"}"):(se=="variable"&&Ve(Ee),Ee=="*"&&(de.marked="keyword"),oe(qt))}function Cn(se){if(se==",")return oe(Ei,Cn)}function qt(se,Ee){if(Ee=="as")return de.marked="keyword",oe(Ei)}function jn(se,Ee){if(Ee=="from")return de.marked="keyword",oe(kt)}function Jn(se){return se=="]"?oe():ue(P(It,"]"))}function ho(){return ue(qe("form"),jr,vt("{"),qe("}"),P(nt,"}"),lt,lt)}function nt(){return ue(jr,In)}function Lt(se,Ee){return se.lastType=="operator"||se.lastType==","||_.test(Ee.charAt(0))||/[,.]/.test(Ee.charAt(0))}function li(se,Ee,_e){return Ee.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ee.lastType)||Ee.lastType=="quasi"&&/\{\s*$/.test(se.string.slice(0,se.pos-(_e||0)))}return{startState:function(se){var Ee={tokenize:V,lastType:"sof",cc:[],lexical:new ne((se||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:se||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ee.globalVars=x.globalVars),Ee},token:function(se,Ee){if(se.sol()&&(Ee.lexical.hasOwnProperty("align")||(Ee.lexical.align=!1),Ee.indented=se.indentation(),fe(se,Ee)),Ee.tokenize!=q&&se.eatSpace())return null;var _e=Ee.tokenize(se,Ee);return X=="comment"?_e:(Ee.lastType=X=="operator"&&(M=="++"||M=="--")?"incdec":X,ve(Ee,_e,X,M,se))},indent:function(se,Ee){if(se.tokenize==q||se.tokenize==Q)return c.Pass;if(se.tokenize!=V)return 0;var _e=Ee&&Ee.charAt(0),ot=se.lexical,st;if(!/^\s*else\b/.test(Ee))for(var $t=se.cc.length-1;$t>=0;--$t){var Qt=se.cc[$t];if(Qt==lt)ot=ot.prev;else if(Qt!=vn&&Qt!=yt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(st=se.cc[se.cc.length-1])&&(st==Gt||st==wt)&&!/^[,\.=+\-*:?[\(]/.test(Ee));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Tr=ot.type,Pr=_e==Tr;return Tr=="vardef"?ot.indented+(se.lastType=="operator"||se.lastType==","?ot.info.length+1:0):Tr=="form"&&_e=="{"?ot.indented:Tr=="form"?ot.indented+d:Tr=="stat"?ot.indented+(Lt(se,Ee)?b||d:0):ot.info=="switch"&&!Pr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ee)?d:2*d):ot.align?ot.column+(Pr?0:1):ot.indented+(Pr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:A,jsonMode:g,expressionAllowed:li,skipExpression:function(se){ve(se,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
41
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ee;g&&(Ee=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ee),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=Me,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var tt=u.somethingSelected(),at="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function Me(){if(n.contextMenuPending==Me&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=z,b&&A<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&A<9)&&Ne();var tt=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?xr(u,Za)(u):tt++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&A>=9&&Ne(),Y){Jt(e);var Ye=function(){ce(window,"mouseup",Ye),setTimeout(Me,20)};D(window,"mouseup",Ye)}else setTimeout(Me,50)},pr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},pr.prototype.setUneditable=function(){},pr.prototype.needsContentAttribute=!1;function zu(e,n){if(n=n?Qe(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=De();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(D(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=F}}catch(z){}}n.finishInit=function(z){z.save=l,z.getTextArea=function(){return e},z.toTextArea=function(){z.toTextArea=isNaN,l(),e.parentNode.removeChild(z.getWrapperElement()),e.style.display="",e.form&&(ce(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=cr(function(z){return e.parentNode.insertBefore(z,e.nextSibling)},n);return U}function Gu(e){e.off=ce,e.on=D,e.wheelEventPixels=fu,e.Doc=Vt,e.splitLines=$n,e.countColumn=Xe,e.findColumn=dt,e.isWordChar=pe,e.Pass=qe,e.signal=Oe,e.Line=Ji,e.changeEnd=li,e.scrollbarModel=Js,e.Pos=nt,e.cmpPos=Lt,e.modes=jo,e.mimeModes=Sn,e.resolveMode=$i,e.getMode=Bn,e.modeExtensions=mi,e.extendMode=Ta,e.copyState=Pn,e.startState=xi,e.innerMode=An,e.commands=Di,e.keyMap=di,e.keyName=Pu,e.isModifierKey=ua,e.lookupKey=Mo,e.normalizeKeyMap=Ou,e.StringStream=mr,e.SharedTextMarker=sa,e.TextMarker=Li,e.LineWidget=qa,e.e_preventDefault=it,e.e_stopPropagation=gt,e.e_stop=Jt,e.addClass=Ve,e.contains=oe,e.rmClass=te,e.keyNames=ci}Bu(cr),dc(cr);var $u="iter insert remove copy getEditor constructor".split(" ");for(var ls in Vt.prototype)Vt.prototype.hasOwnProperty(ls)&&pt($u,ls)<0&&(cr.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(Vt.prototype[ls]));return He(Vt),cr.inputStyles={textarea:pr,contenteditable:nr},cr.defineMode=function(e){!cr.defaults.mode&&e!="null"&&(cr.defaults.mode=e),Yn.apply(this,arguments)},cr.defineMIME=yi,cr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),cr.defineMIME("text/plain","null"),cr.defineExtension=function(e,n){cr.prototype[e]=n},cr.defineDocExtension=function(e,n){Vt.prototype[e]=n},cr.fromTextArea=zu,Gu(cr),cr.version="5.65.0",cr})},96876:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,A=x.jsonld,g=x.json||A,L=x.trackScope!==!1,N=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function se(Tr){return{type:Tr,style:"keyword"}}var Ce=se("keyword a"),_e=se("keyword b"),ot=se("keyword c"),st=se("keyword d"),Kt=se("operator"),Zt={type:"atom",style:"atom"};return{if:se("if"),while:Ce,with:Ce,else:_e,do:_e,try:_e,finally:_e,return:st,break:st,continue:st,new:se("new"),delete:ot,void:ot,throw:ot,debugger:se("debugger"),var:se("var"),const:se("var"),let:se("var"),function:se("function"),catch:se("catch"),for:se("for"),switch:se("switch"),case:se("case"),default:se("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Zt,false:Zt,null:Zt,undefined:Zt,NaN:Zt,Infinity:Zt,this:se("this"),class:se("class"),super:se("atom"),yield:ot,export:se("export"),import:se("import"),extends:ot,await:ot}}(),_=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function R(se){for(var Ce=!1,_e,ot=!1;(_e=se.next())!=null;){if(!Ce){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Ce=!Ce&&_e=="\\"}}var X,M;function C(se,Ce,_e){return X=se,M=_e,Ce}function V(se,Ce){var _e=se.next();if(_e=='"'||_e=="'")return Ce.tokenize=J(_e),Ce.tokenize(se,Ce);if(_e=="."&&se.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(_e=="."&&se.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return C(_e);if(_e=="="&&se.eat(">"))return C("=>","operator");if(_e=="0"&&se.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(_e))return se.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(_e=="/")return se.eat("*")?(Ce.tokenize=q,q(se,Ce)):se.eat("/")?(se.skipToEnd(),C("comment","comment")):ei(se,Ce,1)?(R(se),se.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(se.eat("="),C("operator","operator",se.current()));if(_e=="`")return Ce.tokenize=Q,Q(se,Ce);if(_e=="#"&&se.peek()=="!")return se.skipToEnd(),C("meta","meta");if(_e=="#"&&se.eatWhile(B))return C("variable","property");if(_e=="<"&&se.match("!--")||_e=="-"&&se.match("->")&&!/\S/.test(se.string.slice(0,se.start)))return se.skipToEnd(),C("comment","comment");if(_.test(_e))return(_e!=">"||!Ce.lexical||Ce.lexical.type!=">")&&(se.eat("=")?(_e=="!"||_e=="=")&&se.eat("="):/[<>*+\-|&?]/.test(_e)&&(se.eat(_e),_e==">"&&se.eat(_e))),_e=="?"&&se.eat(".")?C("."):C("operator","operator",se.current());if(B.test(_e)){se.eatWhile(B);var ot=se.current();if(Ce.lastType!="."){if(j.propertyIsEnumerable(ot)){var st=j[ot];return C(st.type,st.style,ot)}if(ot=="async"&&se.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ot)}return C("variable","variable",ot)}}function J(se){return function(Ce,_e){var ot=!1,st;if(A&&Ce.peek()=="@"&&Ce.match(H))return _e.tokenize=V,C("jsonld-keyword","meta");for(;(st=Ce.next())!=null&&!(st==se&&!ot);)ot=!ot&&st=="\\";return ot||(_e.tokenize=V),C("string","string")}}function q(se,Ce){for(var _e=!1,ot;ot=se.next();){if(ot=="/"&&_e){Ce.tokenize=V;break}_e=ot=="*"}return C("comment","comment")}function Q(se,Ce){for(var _e=!1,ot;(ot=se.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&se.eat("{"))){Ce.tokenize=V;break}_e=!_e&&ot=="\\"}return C("quasi","string-2",se.current())}var Y="([{}])";function fe(se,Ce){Ce.fatArrowAt&&(Ce.fatArrowAt=null);var _e=se.string.indexOf("=>",se.start);if(!(_e<0)){if(N){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(se.string.slice(se.start,_e));ot&&(_e=ot.index)}for(var st=0,Kt=!1,Zt=_e-1;Zt>=0;--Zt){var Tr=se.string.charAt(Zt),Pr=Y.indexOf(Tr);if(Pr>=0&&Pr<3){if(!st){++Zt;break}if(--st==0){Tr=="("&&(Kt=!0);break}}else if(Pr>=3&&Pr<6)++st;else if(B.test(Tr))Kt=!0;else if(/["'\/`]/.test(Tr))for(;;--Zt){if(Zt==0)return;var er=se.string.charAt(Zt-1);if(er==Tr&&se.string.charAt(Zt-2)!="\\"){Zt--;break}}else if(Kt&&!st){++Zt;break}}Kt&&!st&&(Ce.fatArrowAt=Zt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ne(se,Ce,_e,ot,st,Kt){this.indented=se,this.column=Ce,this.type=_e,this.prev=st,this.info=Kt,ot!=null&&(this.align=ot)}function ye(se,Ce){if(!L)return!1;for(var _e=se.localVars;_e;_e=_e.next)if(_e.name==Ce)return!0;for(var ot=se.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Ce)return!0}function ve(se,Ce,_e,ot,st){var Kt=se.cc;for(de.state=se,de.stream=st,de.marked=null,de.cc=Kt,de.style=Ce,se.lexical.hasOwnProperty("align")||(se.lexical.align=!0);;){var Zt=Kt.length?Kt.pop():g?kt:mt;if(Zt(_e,ot)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return de.marked?de.marked:_e=="variable"&&ye(se,ot)?"variable-2":Ce}}}var de={state:null,column:null,marked:null,cc:null};function ue(){for(var se=arguments.length-1;se>=0;se--)de.cc.push(arguments[se])}function oe(){return ue.apply(null,arguments),!0}function De(se,Ce){for(var _e=Ce;_e;_e=_e.next)if(_e.name==se)return!0;return!1}function Ve(se){var Ce=de.state;if(de.marked="def",!!L){if(Ce.context){if(Ce.lexical.info=="var"&&Ce.context&&Ce.context.block){var _e=Le(se,Ce.context);if(_e!=null){Ce.context=_e;return}}else if(!De(se,Ce.localVars)){Ce.localVars=new Qe(se,Ce.localVars);return}}x.globalVars&&!De(se,Ce.globalVars)&&(Ce.globalVars=new Qe(se,Ce.globalVars))}}function Le(se,Ce){if(Ce)if(Ce.block){var _e=Le(se,Ce.prev);return _e?_e==Ce.prev?Ce:new rt(_e,Ce.vars,!0):null}else return De(se,Ce.vars)?Ce:new rt(Ce.prev,new Qe(se,Ce.vars),!1);else return null}function ke(se){return se=="public"||se=="private"||se=="protected"||se=="abstract"||se=="readonly"}function rt(se,Ce,_e){this.prev=se,this.vars=Ce,this.block=_e}function Qe(se,Ce){this.name=se,this.next=Ce}var Xe=new Qe("this",new Qe("arguments",null));function ut(){de.state.context=new rt(de.state.context,de.state.localVars,!1),de.state.localVars=Xe}function pt(){de.state.context=new rt(de.state.context,de.state.localVars,!0),de.state.localVars=null}function yt(){de.state.localVars=de.state.context.vars,de.state.context=de.state.context.prev}yt.lex=!0;function qe(se,Ce){var _e=function(){var ot=de.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var Kt=ot.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)st=Kt.indented;ot.lexical=new ne(st,de.stream.column(),se,null,ot.lexical,Ce)};return _e.lex=!0,_e}function lt(){var se=de.state;se.lexical.prev&&(se.lexical.type==")"&&(se.indented=se.lexical.indented),se.lexical=se.lexical.prev)}lt.lex=!0;function vt(se){function Ce(_e){return _e==se?oe():se==";"||_e=="}"||_e==")"||_e=="]"?ue():oe(Ce)}return Ce}function mt(se,Ce){return se=="var"?oe(qe("vardef",Ce),Gi,vt(";"),lt):se=="keyword a"?oe(qe("form"),At,mt,lt):se=="keyword b"?oe(qe("form"),mt,lt):se=="keyword d"?de.stream.match(/^\s*$/,!1)?oe():oe(qe("stat"),Nt,vt(";"),lt):se=="debugger"?oe(vt(";")):se=="{"?oe(qe("}"),pt,D,lt,yt):se==";"?oe():se=="if"?(de.state.lexical.info=="else"&&de.state.cc[de.state.cc.length-1]==lt&&de.state.cc.pop()(),oe(qe("form"),At,mt,lt,pn)):se=="function"?oe(Yn):se=="for"?oe(qe("form"),pt,Oa,mt,yt,lt):se=="class"||N&&Ce=="interface"?(de.marked="keyword",oe(qe("form",se=="class"?se:Ce),Ta,lt)):se=="variable"?N&&Ce=="declare"?(de.marked="keyword",oe(mt)):N&&(Ce=="module"||Ce=="enum"||Ce=="type")&&de.stream.match(/^\s*\w/,!1)?(de.marked="keyword",Ce=="enum"?oe(po):Ce=="type"?oe($i,vt("operator"),Te,vt(";")):oe(qe("form"),jr,vt("{"),qe("}"),D,lt,lt)):N&&Ce=="namespace"?(de.marked="keyword",oe(qe("form"),kt,mt,lt)):N&&Ce=="abstract"?(de.marked="keyword",oe(mt)):oe(qe("stat"),Ae):se=="switch"?oe(qe("form"),At,vt("{"),qe("}","switch"),pt,D,lt,lt,yt):se=="case"?oe(kt,vt(":")):se=="default"?oe(vt(":")):se=="catch"?oe(qe("form"),ut,dt,mt,lt,yt):se=="export"?oe(qe("stat"),mr,lt):se=="import"?oe(qe("stat"),qn,lt):se=="async"?oe(mt):Ce=="@"?oe(kt,mt):ue(qe("stat"),kt,vt(";"),lt)}function dt(se){if(se=="(")return oe(Bn,vt(")"))}function kt(se,Ce){return jt(se,Ce,!1)}function It(se,Ce){return jt(se,Ce,!0)}function At(se){return se!="("?ue():oe(qe(")"),Nt,vt(")"),lt)}function jt(se,Ce,_e){if(de.state.fatArrowAt==de.stream.start){var ot=_e?K:G;if(se=="(")return oe(ut,qe(")"),P(Bn,")"),lt,vt("=>"),ot,yt);if(se=="variable")return ue(ut,jr,vt("=>"),ot,yt)}var st=_e?St:$t;return te.hasOwnProperty(se)?oe(st):se=="function"?oe(Yn,st):se=="class"||N&&Ce=="interface"?(de.marked="keyword",oe(qe("form"),mi,lt)):se=="keyword c"||se=="async"?oe(_e?It:kt):se=="("?oe(qe(")"),Nt,vt(")"),lt,st):se=="operator"||se=="spread"?oe(_e?It:kt):se=="["?oe(qe("]"),Jn,lt,st):se=="{"?ie(Ie,"}",null,st):se=="quasi"?ue(Mt,st):se=="new"?oe(we(_e)):oe()}function Nt(se){return se.match(/[;\}\)\],]/)?ue():ue(kt)}function $t(se,Ce){return se==","?oe(Nt):St(se,Ce,!1)}function St(se,Ce,_e){var ot=_e==!1?$t:St,st=_e==!1?kt:It;if(se=="=>")return oe(ut,_e?K:G,yt);if(se=="operator")return/\+\+|--/.test(Ce)||N&&Ce=="!"?oe(ot):N&&Ce=="<"&&de.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(qe(">"),P(Te,">"),lt,ot):Ce=="?"?oe(kt,vt(":"),st):oe(st);if(se=="quasi")return ue(Mt,ot);if(se!=";"){if(se=="(")return ie(It,")","call",ot);if(se==".")return oe(T,ot);if(se=="[")return oe(qe("]"),Nt,vt("]"),lt,ot);if(N&&Ce=="as")return de.marked="keyword",oe(Te,ot);if(se=="regexp")return de.state.lastType=de.marked="operator",de.stream.backUp(de.stream.pos-de.stream.start-1),oe(st)}}function Mt(se,Ce){return se!="quasi"?ue():Ce.slice(Ce.length-2)!="${"?oe(Mt):oe(Nt,pe)}function pe(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,oe(Mt)}function G(se){return fe(de.stream,de.state),ue(se=="{"?mt:kt)}function K(se){return fe(de.stream,de.state),ue(se=="{"?mt:It)}function we(se){return function(Ce){return Ce=="."?oe(se?be:Re):Ce=="variable"&&N?oe(wn,se?St:$t):ue(se?It:kt)}}function Re(se,Ce){if(Ce=="target")return de.marked="keyword",oe($t)}function be(se,Ce){if(Ce=="target")return de.marked="keyword",oe(St)}function Ae(se){return se==":"?oe(lt,mt):ue($t,vt(";"),lt)}function T(se){if(se=="variable")return de.marked="property",oe()}function Ie(se,Ce){if(se=="async")return de.marked="property",oe(Ie);if(se=="variable"||de.style=="keyword"){if(de.marked="property",Ce=="get"||Ce=="set")return oe(W);var _e;return N&&de.state.fatArrowAt==de.stream.start&&(_e=de.stream.match(/^\s*:\s*/,!1))&&(de.state.fatArrowAt=de.stream.pos+_e[0].length),oe(O)}else{if(se=="number"||se=="string")return de.marked=A?"property":de.style+" property",oe(O);if(se=="jsonld-keyword")return oe(O);if(N&&ke(Ce))return de.marked="keyword",oe(Ie);if(se=="[")return oe(kt,ee,vt("]"),O);if(se=="spread")return oe(It,O);if(Ce=="*")return de.marked="keyword",oe(Ie);if(se==":")return ue(O)}}function W(se){return se!="variable"?ue(O):(de.marked="property",oe(Yn))}function O(se){if(se==":")return oe(It);if(se=="(")return ue(Yn)}function P(se,Ce,_e){function ot(st,Kt){if(_e?_e.indexOf(st)>-1:st==","){var Zt=de.state.lexical;return Zt.info=="call"&&(Zt.pos=(Zt.pos||0)+1),oe(function(Tr,Pr){return Tr==Ce||Pr==Ce?ue():ue(se)},ot)}return st==Ce||Kt==Ce?oe():_e&&_e.indexOf(";")>-1?ue(se):oe(vt(Ce))}return function(st,Kt){return st==Ce||Kt==Ce?oe():ue(se,ot)}}function ie(se,Ce,_e){for(var ot=3;ot<arguments.length;ot++)de.cc.push(arguments[ot]);return oe(qe(Ce,_e),P(se,Ce),lt)}function D(se){return se=="}"?oe():ue(mt,D)}function ee(se,Ce){if(N){if(se==":")return oe(Te);if(Ce=="?")return oe(ee)}}function ce(se,Ce){if(N&&(se==":"||Ce=="in"))return oe(Te)}function Oe(se){if(N&&se==":")return de.stream.match(/^\s*\w+\s+is\b/,!1)?oe(kt,Pe,Te):oe(Te)}function Pe(se,Ce){if(Ce=="is")return de.marked="keyword",oe()}function Te(se,Ce){if(Ce=="keyof"||Ce=="typeof"||Ce=="infer"||Ce=="readonly")return de.marked="keyword",oe(Ce=="typeof"?It:Te);if(se=="variable"||Ce=="void")return de.marked="type",oe(Ft);if(Ce=="|"||Ce=="&")return oe(Te);if(se=="string"||se=="number"||se=="atom")return oe(Ft);if(se=="[")return oe(qe("]"),P(Te,"]",","),lt,Ft);if(se=="{")return oe(qe("}"),He,lt,Ft);if(se=="(")return oe(P(Jt,")"),Ge,Ft);if(se=="<")return oe(P(Te,">"),Te);if(se=="quasi")return ue(gt,Ft)}function Ge(se){if(se=="=>")return oe(Te)}function He(se){return se.match(/[\}\)\]]/)?oe():se==","||se==";"?oe(He):ue(it,He)}function it(se,Ce){if(se=="variable"||de.style=="keyword")return de.marked="property",oe(it);if(Ce=="?"||se=="number"||se=="string")return oe(it);if(se==":")return oe(Te);if(se=="[")return oe(vt("variable"),ce,vt("]"),it);if(se=="(")return ue(yi,it);if(!se.match(/[;\}\)\],]/))return oe()}function gt(se,Ce){return se!="quasi"?ue():Ce.slice(Ce.length-2)!="${"?oe(gt):oe(Te,Ct)}function Ct(se){if(se=="}")return de.marked="string-2",de.state.tokenize=Q,oe(gt)}function Jt(se,Ce){return se=="variable"&&de.stream.match(/^\s*[?:]/,!1)||Ce=="?"?oe(Jt):se==":"?oe(Te):se=="spread"?oe(Jt):ue(Te)}function Ft(se,Ce){if(Ce=="<")return oe(qe(">"),P(Te,">"),lt,Ft);if(Ce=="|"||se=="."||Ce=="&")return oe(Te);if(se=="[")return oe(Te,vt("]"),Ft);if(Ce=="extends"||Ce=="implements")return de.marked="keyword",oe(Te);if(Ce=="?")return oe(Te,vt(":"),Te)}function wn(se,Ce){if(Ce=="<")return oe(qe(">"),P(Te,">"),lt,Ft)}function Zr(){return ue(Te,On)}function On(se,Ce){if(Ce=="=")return oe(Te)}function Gi(se,Ce){return Ce=="enum"?(de.marked="keyword",oe(po)):ue(jr,ee,Tn,Kn)}function jr(se,Ce){if(N&&ke(Ce))return de.marked="keyword",oe(jr);if(se=="variable")return Ve(Ce),oe();if(se=="spread")return oe(jr);if(se=="[")return ie($n,"]");if(se=="{")return ie(Nn,"}")}function Nn(se,Ce){return se=="variable"&&!de.stream.match(/^\s*:/,!1)?(Ve(Ce),oe(Tn)):(se=="variable"&&(de.marked="property"),se=="spread"?oe(jr):se=="}"?ue():se=="["?oe(kt,vt("]"),vt(":"),Nn):oe(vt(":"),jr,Tn))}function $n(){return ue(jr,Tn)}function Tn(se,Ce){if(Ce=="=")return oe(It)}function Kn(se){if(se==",")return oe(Gi)}function pn(se,Ce){if(se=="keyword b"&&Ce=="else")return oe(qe("form","else"),mt,lt)}function Oa(se,Ce){if(Ce=="await")return oe(Oa);if(se=="(")return oe(qe(")"),jo,lt)}function jo(se){return se=="var"?oe(Gi,Sn):se=="variable"?oe(Sn):ue(Sn)}function Sn(se,Ce){return se==")"?oe():se==";"?oe(Sn):Ce=="in"||Ce=="of"?(de.marked="keyword",oe(kt,Sn)):ue(kt,Sn)}function Yn(se,Ce){if(Ce=="*")return de.marked="keyword",oe(Yn);if(se=="variable")return Ve(Ce),oe(Yn);if(se=="(")return oe(ut,qe(")"),P(Bn,")"),lt,Oe,mt,yt);if(N&&Ce=="<")return oe(qe(">"),P(Zr,">"),lt,Yn)}function yi(se,Ce){if(Ce=="*")return de.marked="keyword",oe(yi);if(se=="variable")return Ve(Ce),oe(yi);if(se=="(")return oe(ut,qe(")"),P(Bn,")"),lt,Oe,yt);if(N&&Ce=="<")return oe(qe(">"),P(Zr,">"),lt,yi)}function $i(se,Ce){if(se=="keyword"||se=="variable")return de.marked="type",oe($i);if(Ce=="<")return oe(qe(">"),P(Zr,">"),lt)}function Bn(se,Ce){return Ce=="@"&&oe(kt,Bn),se=="spread"?oe(Bn):N&&ke(Ce)?(de.marked="keyword",oe(Bn)):N&&se=="this"?oe(ee,Tn):ue(jr,ee,Tn)}function mi(se,Ce){return se=="variable"?Ta(se,Ce):Pn(se,Ce)}function Ta(se,Ce){if(se=="variable")return Ve(Ce),oe(Pn)}function Pn(se,Ce){if(Ce=="<")return oe(qe(">"),P(Zr,">"),lt,Pn);if(Ce=="extends"||Ce=="implements"||N&&se==",")return Ce=="implements"&&(de.marked="keyword"),oe(N?Te:kt,Pn);if(se=="{")return oe(qe("}"),An,lt)}function An(se,Ce){if(se=="async"||se=="variable"&&(Ce=="static"||Ce=="get"||Ce=="set"||N&&ke(Ce))&&de.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return de.marked="keyword",oe(An);if(se=="variable"||de.style=="keyword")return de.marked="property",oe(xi,An);if(se=="number"||se=="string")return oe(xi,An);if(se=="[")return oe(kt,ee,vt("]"),xi,An);if(Ce=="*")return de.marked="keyword",oe(An);if(N&&se=="(")return ue(yi,An);if(se==";"||se==",")return oe(An);if(se=="}")return oe();if(Ce=="@")return oe(kt,An)}function xi(se,Ce){if(Ce=="!"||Ce=="?")return oe(xi);if(se==":")return oe(Te,Tn);if(Ce=="=")return oe(It);var _e=de.state.lexical.prev,ot=_e&&_e.info=="interface";return ue(ot?yi:Yn)}function mr(se,Ce){return Ce=="*"?(de.marked="keyword",oe(Un,vt(";"))):Ce=="default"?(de.marked="keyword",oe(kt,vt(";"))):se=="{"?oe(P(Et,"}"),Un,vt(";")):ue(mt)}function Et(se,Ce){if(Ce=="as")return de.marked="keyword",oe(vt("variable"));if(se=="variable")return ue(It,Et)}function qn(se){return se=="string"?oe():se=="("?ue(kt):se=="."?ue($t):ue(bi,En,Un)}function bi(se,Ce){return se=="{"?ie(bi,"}"):(se=="variable"&&Ve(Ce),Ce=="*"&&(de.marked="keyword"),oe(qt))}function En(se){if(se==",")return oe(bi,En)}function qt(se,Ce){if(Ce=="as")return de.marked="keyword",oe(bi)}function Un(se,Ce){if(Ce=="from")return de.marked="keyword",oe(kt)}function Jn(se){return se=="]"?oe():ue(P(It,"]"))}function po(){return ue(qe("form"),jr,vt("{"),qe("}"),P(nt,"}"),lt,lt)}function nt(){return ue(jr,Tn)}function Lt(se,Ce){return se.lastType=="operator"||se.lastType==","||_.test(Ce.charAt(0))||/[,.]/.test(Ce.charAt(0))}function ei(se,Ce,_e){return Ce.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ce.lastType)||Ce.lastType=="quasi"&&/\{\s*$/.test(se.string.slice(0,se.pos-(_e||0)))}return{startState:function(se){var Ce={tokenize:V,lastType:"sof",cc:[],lexical:new ne((se||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:se||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ce.globalVars=x.globalVars),Ce},token:function(se,Ce){if(se.sol()&&(Ce.lexical.hasOwnProperty("align")||(Ce.lexical.align=!1),Ce.indented=se.indentation(),fe(se,Ce)),Ce.tokenize!=q&&se.eatSpace())return null;var _e=Ce.tokenize(se,Ce);return X=="comment"?_e:(Ce.lastType=X=="operator"&&(M=="++"||M=="--")?"incdec":X,ve(Ce,_e,X,M,se))},indent:function(se,Ce){if(se.tokenize==q||se.tokenize==Q)return c.Pass;if(se.tokenize!=V)return 0;var _e=Ce&&Ce.charAt(0),ot=se.lexical,st;if(!/^\s*else\b/.test(Ce))for(var Kt=se.cc.length-1;Kt>=0;--Kt){var Zt=se.cc[Kt];if(Zt==lt)ot=ot.prev;else if(Zt!=pn&&Zt!=yt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(st=se.cc[se.cc.length-1])&&(st==$t||st==St)&&!/^[,\.=+\-*:?[\(]/.test(Ce));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Tr=ot.type,Pr=_e==Tr;return Tr=="vardef"?ot.indented+(se.lastType=="operator"||se.lastType==","?ot.info.length+1:0):Tr=="form"&&_e=="{"?ot.indented:Tr=="form"?ot.indented+d:Tr=="stat"?ot.indented+(Lt(se,Ce)?b||d:0):ot.info=="switch"&&!Pr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ce)?d:2*d):ot.align?ot.column+(Pr?0:1):ot.indented+(Pr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:A,jsonMode:g,expressionAllowed:ei,skipExpression:function(se){ve(se,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
42
42
|
* cookie
|
|
43
43
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
44
44
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
45
45
|
* MIT Licensed
|
|
46
|
-
*/I.parse=d,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var N={},B=L||{},j=g.split(v),_=B.decode||o,H=0;H<j.length;H++){var R=j[H],X=R.indexOf("=");if(!(X<0)){var M=R.substr(0,X).trim(),C=R.substr(++X,R.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),N[M]==null&&(N[M]=A(C,_))}}return N}function b(g,L,N){var B=N||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var _=j(L);if(_&&!x.test(_))throw new TypeError("argument val is invalid");var H=g+"="+_;if(B.maxAge!=null){var R=B.maxAge-0;if(isNaN(R)||!isFinite(R))throw new TypeError("option maxAge is invalid");H+="; Max-Age="+Math.floor(R)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");H+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");H+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");H+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(H+="; HttpOnly"),B.secure&&(H+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"strict":H+="; SameSite=Strict";break;case"none":H+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return H}function A(g,L){try{return L(g)}catch(N){return g}}},54493:(h,I,o)=>{o(77971),o(53242);var c=o(54058);h.exports=c.Array.from},24034:(h,I,o)=>{o(92737);var c=o(54058);h.exports=c.Array.isArray},15367:(h,I,o)=>{o(85906);var c=o(35703);h.exports=c("Array").concat},12710:(h,I,o)=>{o(66274);var c=o(35703);h.exports=c("Array").entries},62383:(h,I,o)=>{o(21501);var c=o(35703);h.exports=c("Array").filter},17671:(h,I,o)=>{o(80833);var c=o(35703);h.exports=c("Array").find},99324:(h,I,o)=>{o(2437);var c=o(35703);h.exports=c("Array").forEach},80991:(h,I,o)=>{o(97690);var c=o(35703);h.exports=c("Array").includes},8700:(h,I,o)=>{o(99076);var c=o(35703);h.exports=c("Array").indexOf},23866:(h,I,o)=>{o(68787);var c=o(35703);h.exports=c("Array").map},24900:(h,I,o)=>{o(60186);var c=o(35703);h.exports=c("Array").slice},78209:(h,I,o)=>{o(98611);var c=o(35703);h.exports=c("Array").splice},56043:(h,I,o)=>{var c=o(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,o)=>{var c=o(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,o)=>{var c=o(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var A=b.includes;return b===x||b instanceof Array&&A===x.includes?c:typeof b=="string"||b===d||b instanceof String&&A===d.includes?v:A}},34570:(h,I,o)=>{var c=o(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,o)=>{var c=o(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,o)=>{var c=o(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,o)=>{var c=o(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,o)=>{o(49221);var c=o(54058);h.exports=c.Object.assign},35254:(h,I,o)=>{o(53882);var c=o(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.defineProperties(b,A)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=h.exports=function(b,A,g){return v.defineProperty(b,A,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,o)=>{o(21078);var c=o(54058);h.exports=c.Object.entries},286:(h,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.getOwnPropertyDescriptor(b,A)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,o)=>{o(88482);var c=o(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,o)=>{o(35824);var c=o(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,o)=>{o(17405);var c=o(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,o)=>{o(21724);var c=o(54058);h.exports=c.Object.keys},3065:(h,I,o)=>{o(90108);var c=o(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);h.exports=c.Promise},14983:(h,I,o)=>{o(7453);var c=o(54058);h.exports=c.Reflect.construct},37095:(h,I,o)=>{o(42355);var c=o(54058);h.exports=c.Reflect.get},21631:(h,I,o)=>{o(11035);var c=o(35703);h.exports=c("String").includes},57473:(h,I,o)=>{o(85906),o(55967),o(35824),o(8555),o(52615),o(21732),o(35903),o(1825),o(28394),o(45915),o(61766),o(62737),o(89911),o(74315),o(63131),o(64714),o(70659),o(69120),o(79413),o(1502);var c=o(54058);h.exports=c.Symbol},24227:(h,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);h.exports=c.f("iterator")},32304:(h,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);h.exports=c.WeakMap},27385:(h,I,o)=>{var c=o(54493);h.exports=c},81522:(h,I,o)=>{var c=o(24034);h.exports=c},32209:(h,I,o)=>{o(7634),o(77971);var c=o(22902);h.exports=c},44442:(h,I,o)=>{var c=o(2480);h.exports=c},57152:(h,I,o)=>{var c=o(46279);h.exports=c},69447:(h,I,o)=>{var c=o(34570);h.exports=c},81493:(h,I,o)=>{var c=o(69601);h.exports=c},76094:(h,I,o)=>{var c=o(35254);h.exports=c},70573:(h,I,o)=>{var c=o(7702);h.exports=c},73685:(h,I,o)=>{var c=o(48171);h.exports=c},27533:(h,I,o)=>{var c=o(286);h.exports=c},39057:(h,I,o)=>{var c=o(92766);h.exports=c},84710:(h,I,o)=>{var c=o(30498);h.exports=c},74303:(h,I,o)=>{var c=o(13966);h.exports=c},93799:(h,I,o)=>{var c=o(48494);h.exports=c},55122:(h,I,o)=>{var c=o(3065);h.exports=c},29531:(h,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),h.exports=c},10856:(h,I,o)=>{var c=o(14983);h.exports=c},31524:(h,I,o)=>{var c=o(37095);h.exports=c},86600:(h,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),h.exports=c},9759:(h,I,o)=>{var c=o(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),d=o(6782),b=o(43057),A=o(55449),g=o(22902);h.exports=function(N){var B=v(N),j=typeof this=="function"?this:Array,_=arguments.length,H=_>1?arguments[1]:void 0,R=H!==void 0,X=g(B),M=0,C,V,J,q,Q,Y;if(R&&(H=c(H,_>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(q=X.call(B),Q=q.next,V=new j;!(J=Q.call(q)).done;M++)Y=R?x(q,H,[J.value,M],!0):J.value,A(V,M,Y);else for(C=b(B.length),V=new j(C);C>M;M++)Y=R?H(B[M],M):B[M],A(V,M,Y);return V.length=M,V}},31692:(h,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),d=function(b){return function(A,g,L){var N=c(A),B=v(N.length),j=x(L,B),_;if(b&&g!=g){for(;B>j;)if(_=N[j++],_!=_)return!0}else for(;B>j;j++)if((b||j in N)&&N[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),d=o(43057),b=o(64692),A=[].push,g=function(L){var N=L==1,B=L==2,j=L==3,_=L==4,H=L==6,R=L==7,X=L==5||H;return function(M,C,V,J){for(var q=x(M),Q=v(q),Y=c(C,V,3),fe=d(Q.length),te=0,ne=J||b,ye=N?ne(M,fe):B||R?ne(M,0):void 0,ve,de;fe>te;te++)if((X||te in Q)&&(ve=Q[te],de=Y(ve,te,q),L))if(N)ye[te]=de;else if(de)switch(L){case 3:return!0;case 5:return ve;case 6:return te;case 2:A.call(ye,ve)}else switch(L){case 4:return!1;case 7:A.call(ye,ve)}return H?-1:j||_?_:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var A=[],g=A.constructor={};return g[d]=function(){return{foo:1}},A[b](Boolean).foo!==1})}},34194:(h,I,o)=>{"use strict";var c=o(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),d=x("species");h.exports=function(b,A){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(A===0?0:A)}},75196:(h,I,o)=>{var c=o(96059),v=o(7609);h.exports=function(x,d,b,A){try{return A?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(A){}h.exports=function(A,g){if(!g&&!x)return!1;var L=!1;try{var N={};N[v]=function(){return{next:function(){return{done:L=!0}}}},A(N)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(o){return I.call(o).slice(8,-1)}},9697:(h,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",A=function(g,L){try{return g[L]}catch(N){}};h.exports=c?v:function(g){var L,N,B;return g===void 0?"Undefined":g===null?"Null":typeof(N=A(L=Object(g),d))=="string"?N:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),d=o(10941),b=o(5743),A=o(93091),g=o(3610),L=o(47457),N=o(45402),B=N.set,j=N.getterFor,_=g.find,H=g.findIndex,R=0,X=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,J){return _(V.entries,function(q){return q[0]===J})};M.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var q=C(this,V);q?q[1]=J:this.entries.push([V,J])},delete:function(V){var J=H(this.entries,function(q){return q[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,q,Q){var Y=V(function(ne,ye){b(ne,Y,J),B(ne,{type:J,id:R++,frozen:void 0}),ye!=null&&A(ye,ne[Q],{that:ne,AS_ENTRIES:q})}),fe=j(J),te=function(ne,ye,ve){var de=fe(ne),ue=v(x(ye),!0);return ue===!0?X(de).set(ye,ve):ue[de.id]=ve,ne};return c(Y.prototype,{delete:function(ne){var ye=fe(this);if(!d(ne))return!1;var ve=v(ne);return ve===!0?X(ye).delete(ne):ve&&L(ve,ye.id)&&delete ve[ye.id]},has:function(ye){var ve=fe(this);if(!d(ye))return!1;var de=v(ye);return de===!0?X(ve).has(ye):de&&L(de,ve.id)}}),c(Y.prototype,q?{get:function(ye){var ve=fe(this);if(d(ye)){var de=v(ye);return de===!0?X(ve).get(ye):de?de[ve.id]:void 0}},set:function(ye,ve){return te(this,ye,ve)}}:{add:function(ye){return te(this,ye,!0)}}),Y}}},24683:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),d=o(95981),b=o(32029),A=o(93091),g=o(5743),L=o(10941),N=o(90904),B=o(65988).f,j=o(3610).forEach,_=o(55746),H=o(45402),R=H.set,X=H.getterFor;h.exports=function(M,C,V){var J=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[M],fe=Y&&Y.prototype,te={},ne;if(!_||typeof Y!="function"||!(q||fe.forEach&&!d(function(){new Y().entries().next()})))ne=V.getConstructor(C,M,J,Q),x.REQUIRED=!0;else{ne=C(function(ve,de){R(g(ve,ne,M),{type:M,collection:new Y}),de!=null&&A(de,ve[Q],{that:ve,AS_ENTRIES:J})});var ye=X(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(ve){var de=ve=="add"||ve=="set";ve in fe&&!(q&&ve=="clear")&&b(ne.prototype,ve,function(ue,oe){var De=ye(this).collection;if(!de&&q&&!L(ue))return ve=="get"?void 0:!1;var Ve=De[ve](ue===0?0:ue,oe);return de?this:Ve})}),q||B(ne.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return N(ne,M,!1,!0),te[M]=ne,c({global:!0,forced:!0},te),q||V.setStrong(ne,M,J),ne}},67772:(h,I,o)=>{var c=o(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(A){}}return!1}},64160:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),d=o(90904),b=o(12077),A=function(){return this};h.exports=function(g,L,N){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,N)}),d(g,B,!1,!0),b[B]=A,g}},32029:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);h.exports=c?function(d,b,A){return v.f(d,b,x(1,A))}:function(d,b,A){return d[b]=A,d}},31887:h=>{h.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(h,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);h.exports=function(d,b,A){var g=c(b);g in d?v.f(d,g,x(0,A)):d[g]=A}},47771:(h,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),d=o(88929),b=o(90904),A=o(32029),g=o(99754),L=o(99813),N=o(82529),B=o(12077),j=o(35143),_=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,R=L("iterator"),X="keys",M="values",C="entries",V=function(){return this};h.exports=function(J,q,Q,Y,fe,te,ne){v(Q,q,Y);var ye=function(Ze){if(Ze===fe&&De)return De;if(!H&&Ze in ue)return ue[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case M:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},ve=q+" Iterator",de=!1,ue=J.prototype,oe=ue[R]||ue["@@iterator"]||fe&&ue[fe],De=!H&&oe||ye(fe),Ve=q=="Array"&&ue.entries||oe,Le,ke,rt;if(Ve&&(Le=x(Ve.call(new J)),_!==Object.prototype&&Le.next&&(!N&&x(Le)!==_&&(d?d(Le,_):typeof Le[R]!="function"&&A(Le,R,V)),b(Le,ve,!0,!0),N&&(B[ve]=V))),fe==M&&oe&&oe.name!==M&&(de=!0,De=function(){return oe.call(this)}),(!N||ne)&&ue[R]!==De&&A(ue,R,De),B[q]=De,fe)if(ke={values:ye(M),keys:te?De:ye(X),entries:ye(C)},ne)for(rt in ke)(H||de||!(rt in ue))&&g(ue,rt,ke[rt]);else c({target:q,proto:!0,forced:H||de},ke);return ke}},66349:(h,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),d=o(65988).f;h.exports=function(b){var A=c.Symbol||(c.Symbol={});v(A,b)||d(A,b,{value:x.f(b)})}},55746:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,o)=>{var c=o(21899),v=o(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,o)=>{var c=o(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,o)=>{var c=o(82532),v=o(21899);h.exports=c(v.process)=="process"},58045:(h,I,o)=>{var c=o(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,o)=>{var c=o(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,o)=>{var c=o(21899),v=o(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,A,g;b?(A=b.split("."),g=A[0]<4?1:A[0]+A[1]):v&&(A=v.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=v.match(/Chrome\/(\d+)/),A&&(g=A[1]))),h.exports=g&&+g},35703:(h,I,o)=>{var c=o(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),d=o(54058),b=o(86843),A=o(32029),g=o(47457),L=function(N){var B=function(j,_,H){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(j);case 2:return new N(j,_)}return new N(j,_,H)}return N.apply(this,arguments)};return B.prototype=N.prototype,B};h.exports=function(N,B){var j=N.target,_=N.global,H=N.stat,R=N.proto,X=_?c:H?c[j]:(c[j]||{}).prototype,M=_?d:d[j]||(d[j]={}),C=M.prototype,V,J,q,Q,Y,fe,te,ne,ye;for(Q in B)V=x(_?Q:j+(H?".":"#")+Q,N.forced),J=!V&&X&&g(X,Q),fe=M[Q],J&&(N.noTargetGet?(ye=v(X,Q),te=ye&&ye.value):te=X[Q]),Y=J&&te?te:B[Q],!(J&&typeof fe==typeof Y)&&(N.bind&&J?ne=b(Y,c):N.wrap&&J?ne=L(Y):R&&typeof Y=="function"?ne=b(Function.call,Y):ne=Y,(N.sham||Y&&Y.sham||fe&&fe.sham)&&A(ne,"sham",!0),M[Q]=ne,R&&(q=j+"Prototype",g(d,q)||A(d,q,{}),d[q][Q]=Y,N.real&&C&&!C[Q]&&A(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,o)=>{var c=o(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,A){return v.call(x,b,A)};case 3:return function(b,A,g){return v.call(x,b,A,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,d={},b=function(A,g,L){if(!(g in d)){for(var N=[],B=0;B<g;B++)N[B]="a["+B+"]";d[g]=Function("C,a","return new C("+N.join(",")+")")}return d[g](A,L)};h.exports=Function.bind||function(g){var L=c(this),N=x.call(arguments,1),B=function(){var _=N.concat(x.call(arguments));return this instanceof B?b(L,_.length,_):L.apply(g,_)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,o)=>{var c=o(54058),v=o(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},47457:(h,I,o)=>{var c=o(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,o)=>{var c=o(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,o)=>{var c=o(626);h.exports=c("document","documentElement")},2840:(h,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,o)=>{var c=o(95981),v=o(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),d=o(65988).f,b=o(99418),A=o(45602),g=b("meta"),L=0,N=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,M){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!N(X))return"F";if(!M)return"E";B(X)}return X[g].objectID},_=function(X,M){if(!x(X,g)){if(!N(X))return!0;if(!M)return!1;B(X)}return X[g].weakData},H=function(X){return A&&R.REQUIRED&&N(X)&&!x(X,g)&&B(X),X},R=h.exports={REQUIRED:!1,fastKey:j,getWeakData:_,onFreeze:H};c[g]=!0},45402:(h,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),d=o(32029),b=o(47457),A=o(63030),g=o(44262),L=o(27748),N="Object already initialized",B=v.WeakMap,j,_,H,R=function(Q){return H(Q)?_(Q):j(Q,{})},X=function(Q){return function(Y){var fe;if(!x(Y)||(fe=_(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return fe}};if(c||A.state){var M=A.state||(A.state=new B),C=M.get,V=M.has,J=M.set;j=function(Q,Y){if(V.call(M,Q))throw new TypeError(N);return Y.facade=Q,J.call(M,Q,Y),Y},_=function(Q){return C.call(M,Q)||{}},H=function(Q){return V.call(M,Q)}}else{var q=g("state");L[q]=!0,j=function(Q,Y){if(b(Q,q))throw new TypeError(N);return Y.facade=Q,d(Q,q,Y),Y},_=function(Q){return b(Q,q)?Q[q]:{}},H=function(Q){return b(Q,q)}}h.exports={set:j,get:_,has:H,enforce:R,getterFor:X}},6782:(h,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,o)=>{var c=o(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,N){var B=b[d(L)];return B==g?!0:B==A?!1:typeof N=="function"?c(N):!!N},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},A=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),d=x("match");h.exports=function(b){var A;return c(b)&&((A=b[d])!==void 0?!!A:v(b)=="RegExp")}},93091:(h,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),d=o(86843),b=o(22902),A=o(7609),g=function(L,N){this.stopped=L,this.result=N};h.exports=function(L,N,B){var j=B&&B.that,_=!!(B&&B.AS_ENTRIES),H=!!(B&&B.IS_ITERATOR),R=!!(B&&B.INTERRUPTED),X=d(N,j,1+_+R),M,C,V,J,q,Q,Y,fe=function(ne){return M&&A(M),new g(!0,ne)},te=function(ne){return _?(c(ne),R?X(ne[0],ne[1],fe):X(ne[0],ne[1])):R?X(ne,fe):X(ne)};if(H)M=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(q=te(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Q=M.next;!(Y=Q.call(M)).done;){try{q=te(Y.value)}catch(ne){throw A(M),ne}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(h,I,o)=>{var c=o(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),d=o(47457),b=o(99813),A=o(82529),g=b("iterator"),L=!1,N=function(){return this},B,j,_;[].keys&&(_=[].keys(),"next"in _?(j=v(v(_)),j!==Object.prototype&&(B=j)):L=!0);var H=B==null||c(function(){var R={};return B[g].call(R)!==R});H&&(B={}),(!A||H)&&!d(B,g)&&x(B,g,N),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,d=o(22749),b=o(58045),A=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,N=c.process,B=c.Promise,j=v(c,"queueMicrotask"),_=j&&j.value,H,R,X,M,C,V,J,q;_||(H=function(){var Q,Y;for(A&&(Q=N.domain)&&Q.exit();R;){Y=R.fn,R=R.next;try{Y()}catch(fe){throw R?M():X=void 0,fe}}X=void 0,Q&&Q.enter()},!d&&!A&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(H).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,q=J.then,M=function(){q.call(J,H)}):A?M=function(){N.nextTick(H)}:M=function(){x.call(c,H)}),h.exports=_||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),R||(R=Y,M()),X=Y}},19297:(h,I,o)=>{var c=o(21899);h.exports=c.Promise},72497:(h,I,o)=>{var c=o(53385),v=o(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,o)=>{"use strict";var c=o(33916),v=function(x){var d,b;this.promise=new x(function(A,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=A,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,o)=>{var c=o(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),d=o(87857),b=o(36760),A=o(89678),g=o(37026),L=Object.assign,N=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},_=Symbol(),H="abcdefghijklmnopqrst";return B[_]=7,H.split("").forEach(function(R){j[R]=R}),L({},B)[_]!=7||x(L({},j)).join("")!=H})?function(j,_){for(var H=A(j),R=arguments.length,X=1,M=d.f,C=b.f;R>X;)for(var V=g(arguments[X++]),J=M?x(V).concat(M(V)):x(V),q=J.length,Q=0,Y;q>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(H[Y]=V[Y]);return H}:L},29290:(h,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),d=o(27748),b=o(15463),A=o(61333),g=o(44262),L=">",N="<",B="prototype",j="script",_=g("IE_PROTO"),H=function(){},R=function(J){return N+j+L+J+N+"/"+j+L},X=function(J){J.write(R("")),J.close();var q=J.parentWindow.Object;return J=null,q},M=function(){var J=A("iframe"),q="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(q),Q=J.contentWindow.document,Q.open(),Q.write(R("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(q){}V=C?X(C):M();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[_]=!0,h.exports=Object.create||function(q,Q){var Y;return q!==null?(H[B]=c(q),Y=new H,H[B]=null,Y[_]=q):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),d=o(14771);h.exports=c?Object.defineProperties:function(A,g){x(A);for(var L=d(g),N=L.length,B=0,j;N>B;)v.f(A,j=L[B++],g[j]);return A}},65988:(h,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),d=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,N){if(x(g),L=d(L,!0),x(N),v)try{return b(g,L,N)}catch(B){}if("get"in N||"set"in N)throw TypeError("Accessors not supported");return"value"in N&&(g[L]=N.value),g}},49677:(h,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),d=o(74529),b=o(46935),A=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(_){}if(A(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(A){try{return v(A)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,o)=>{var c=o(55629),v=o(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),d=o(64160),b=x("IE_PROTO"),A=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?A:null}},55629:(h,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,d=o(27748);h.exports=function(b,A){var g=v(b),L=0,N=[],B;for(B in g)!c(d,B)&&c(g,B)&&N.push(B);for(;A.length>L;)c(g,B=A[L++])&&(~x(N,B)||N.push(B));return N}},14771:(h,I,o)=>{var c=o(55629),v=o(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:o},88929:(h,I,o)=>{var c=o(96059),v=o(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(A){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),d=o(36760).f,b=function(A){return function(g){for(var L=x(g),N=v(L),B=N.length,j=0,_=[],H;B>j;)H=N[j++],(!c||d.call(L,H))&&_.push(A?[H,L[H]]:L[H]);return _}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,o)=>{"use strict";var c=o(22885),v=o(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,o)=>{var c=o(626),v=o(10946),x=o(87857),d=o(96059);h.exports=c("Reflect","ownKeys")||function(A){var g=v.f(d(A)),L=x.f;return L?g.concat(L(A)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(h,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var A=x.f(d),g=A.resolve;return g(b),A.promise}},87524:(h,I,o)=>{var c=o(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,o)=>{var c=o(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,o)=>{var c=o(21899),v=o(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),d=o(55746),b=x("species");h.exports=function(A){var g=c(A),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),d=o(47457),b=o(95623),A=o(99813),g=A("toStringTag");h.exports=function(L,N,B,j){if(L){var _=B?L:L.prototype;d(_,g)||v(_,g,{configurable:!0,value:N}),j&&!c&&x(_,"toString",b)}}},44262:(h,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,o)=>{var c=o(82529),v=o(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),d=x("species");h.exports=function(b,A){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?A:v(L)}},64620:(h,I,o)=>{var c=o(68459),v=o(48219),x=function(d){return function(b,A){var g=String(v(b)),L=c(A),N=g.length,B,j;return L<0||L>=N?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===N||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),d=o(15463),b=o(61333),A=o(22749),g=o(6049),L=c.location,N=c.setImmediate,B=c.clearImmediate,j=c.process,_=c.MessageChannel,H=c.Dispatch,R=0,X={},M="onreadystatechange",C,V,J,q=function(te){if(X.hasOwnProperty(te)){var ne=X[te];delete X[te],ne()}},Q=function(te){return function(){q(te)}},Y=function(te){q(te.data)},fe=function(te){c.postMessage(te+"",L.protocol+"//"+L.host)};(!N||!B)&&(N=function(ne){for(var ye=[],ve=1;arguments.length>ve;)ye.push(arguments[ve++]);return X[++R]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,ye)},C(R),R},B=function(ne){delete X[ne]},g?C=function(te){j.nextTick(Q(te))}:H&&H.now?C=function(te){H.now(Q(te))}:_&&!A?(V=new _,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(fe)?(C=fe,c.addEventListener("message",Y,!1)):M in b("script")?C=function(te){d.appendChild(b("script"))[M]=function(){d.removeChild(this),q(te)}}:C=function(te){setTimeout(Q(te),0)}),h.exports={set:N,clear:B}},59413:(h,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var A=c(d);return A<0?v(A+b,0):x(A,b)}},74529:(h,I,o)=>{var c=o(37026),v=o(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,o=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(h,I,o)=>{var c=o(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,o)=>{var c=o(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,o)=>{var c=o(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,o=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(h,I,o)=>{var c=o(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,o)=>{var c=o(99813);I.f=c},99813:(h,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),d=o(99418),b=o(72497),A=o(32302),g=v("wks"),L=c.Symbol,N=A?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=N("Symbol."+B)),g[B]}},47627:(h,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),d=o(29290),b=o(32029),A=o(31887),g=o(93091),L=function(B,j){var _=this;if(!(_ instanceof L))return new L(B,j);x&&(_=x(new Error(void 0),v(_))),j!==void 0&&b(_,"message",String(j));var H=[];return g(B,H.push,{that:H}),b(_,"errors",H),_};L.prototype=d(Error.prototype,{constructor:A(5,L),message:A(5,""),name:A(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),d=o(10941),b=o(89678),A=o(43057),g=o(55449),L=o(64692),N=o(50568),B=o(99813),j=o(53385),_=B("isConcatSpreadable"),H=9007199254740991,R="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[_]=!1,J.concat()[0]!==J}),M=N("concat"),C=function(J){if(!d(J))return!1;var q=J[_];return q!==void 0?!!q:x(J)},V=!X||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Q=b(this),Y=L(Q,0),fe=0,te,ne,ye,ve,de;for(te=-1,ye=arguments.length;te<ye;te++)if(de=te===-1?Q:arguments[te],C(de)){if(ve=A(de.length),fe+ve>H)throw TypeError(R);for(ne=0;ne<ve;ne++,fe++)ne in de&&g(Y,fe,de[ne])}else{if(fe>=H)throw TypeError(R);g(Y,fe++,de)}return Y.length=fe,Y}})},21501:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).includes,x=o(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,A=x("indexOf");c({target:"Array",proto:!0,forced:b||!A},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),d=o(45402),b=o(47771),A="Array Iterator",g=d.set,L=d.getterFor(A);h.exports=b(Array,"Array",function(N,B){g(this,{type:A,target:c(N),index:0,kind:B})},function(){var N=L(this),B=N.target,j=N.kind,_=N.index++;return!B||_>=B.length?(N.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:_,done:!1}:j=="values"?{value:B[_],done:!1}:{value:[_,B[_]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),d=o(59413),b=o(43057),A=o(74529),g=o(55449),L=o(99813),N=o(50568),B=N("slice"),j=L("species"),_=[].slice,H=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,M){var C=A(this),V=b(C.length),J=d(X,V),q=d(M===void 0?V:M,V),Q,Y,fe;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return _.call(C,J,q);for(Y=new(Q===void 0?Array:Q)(H(q-J,0)),fe=0;J<q;J++,fe++)J in C&&g(Y,fe,C[J]);return Y.length=fe,Y}})},98611:(h,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),d=o(43057),b=o(89678),A=o(64692),g=o(55449),L=o(50568),N=L("splice"),B=Math.max,j=Math.min,_=9007199254740991,H="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!N},{splice:function(X,M){var C=b(this),V=d(C.length),J=v(X,V),q=arguments.length,Q,Y,fe,te,ne,ye;if(q===0?Q=Y=0:q===1?(Q=0,Y=V-J):(Q=q-2,Y=j(B(x(M),0),V-J)),V+Q-Y>_)throw TypeError(H);for(fe=A(C,Y),te=0;te<Y;te++)ne=J+te,ne in C&&g(fe,te,C[ne]);if(fe.length=Y,Q<Y){for(te=J;te<V-Y;te++)ne=te+Y,ye=te+Q,ne in C?C[ye]=C[ne]:delete C[ye];for(te=V;te>V-Y+Q;te--)delete C[te-1]}else if(Q>Y)for(te=V-Y;te>J;te--)ne=te+Y-1,ye=te+Q-1,ne in C?C[ye]=C[ne]:delete C[ye];for(te=0;te<Q;te++)C[te+J]=arguments[te+2];return C.length=V-Y+Q,fe}})},32619:(h,I,o)=>{var c=o(76887),v=o(626),x=o(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,_){var H=_.charAt(j-1),R=_.charAt(j+1);return A.test(B)&&!g.test(R)||g.test(B)&&!A.test(H)?"\\u"+B.charCodeAt(0).toString(16):B},N=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:N},{stringify:function(j,_,H){var R=d.apply(null,arguments);return typeof R=="string"?R.replace(b,L):R}})},69120:(h,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),d=o(49677).f,b=o(55746),A=v(function(){d(1)}),g=!b||A;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(N,B){return d(x(N),B)}})},88482:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),d=o(74529),b=o(49677),A=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var N=d(L),B=b.f,j=x(N),_={},H=0,R,X;j.length>H;)X=B(N,R=j[H++]),X!==void 0&&A(_,R,X);return _}})},17405:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),d=o(249),b=o(64160),A=v(function(){d(1)});c({target:"Object",stat:!0,forced:A,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),d=o(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),d=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,N=x.f(L),B=N.resolve,j=N.reject,_=d(function(){var H=v(L.resolve),R=[],X=0,M=1;b(g,function(C){var V=X++,J=!1;R.push(void 0),M++,H.call(L,C).then(function(q){J||(J=!0,R[V]={status:"fulfilled",value:q},--M||B(R))},function(q){J||(J=!0,R[V]={status:"rejected",reason:q},--M||B(R))})}),--M||B(R)});return _.error&&j(_.value),N.promise}})},91302:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),d=o(69520),b=o(40002),A=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(N){var B=this,j=d.f(B),_=j.resolve,H=j.reject,R=b(function(){var X=v(B.resolve),M=[],C=0,V=1,J=!1;A(N,function(q){var Q=C++,Y=!1;M.push(void 0),V++,X.call(B,q).then(function(fe){Y||J||(J=!0,_(fe))},function(fe){Y||J||(Y=!0,M[Q]=fe,--V||H(new(x("AggregateError"))(M,g)))})}),--V||H(new(x("AggregateError"))(M,g))});return R.error&&H(R.value),j.promise}})},44349:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),d=o(95981),b=o(626),A=o(70487),g=o(56584),L=o(99754),N=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:N},{finally:function(j){var _=A(this,b("Promise")),H=typeof j=="function";return this.then(H?function(R){return g(_,j()).then(function(){return R})}:j,H?function(R){return g(_,j()).then(function(){throw R})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),d=o(626),b=o(19297),A=o(99754),g=o(87524),L=o(88929),N=o(90904),B=o(94431),j=o(10941),_=o(33916),H=o(5743),R=o(81302),X=o(93091),M=o(21385),C=o(70487),V=o(42941).set,J=o(66132),q=o(56584),Q=o(34845),Y=o(69520),fe=o(40002),te=o(45402),ne=o(37252),ye=o(99813),ve=o(23321),de=o(6049),ue=o(53385),oe=ye("species"),De="Promise",Ve=te.get,Le=te.set,ke=te.getterFor(De),rt=b&&b.prototype,Ze=b,Qe=rt,ut=x.TypeError,pt=x.document,yt=x.process,qe=Y.f,lt=qe,vt=!!(pt&&pt.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",dt="unhandledrejection",kt="rejectionhandled",It=0,St=1,Vt=2,Nt=1,Gt=2,wt=!1,Mt,pe,G,K,we=ne(De,function(){var ee=R(Ze)!==String(Ze);if(!ee&&ue===66||v&&!Qe.finally)return!0;if(ue>=51&&/native code/.test(Ze))return!1;var ce=new Ze(function(Te){Te(1)}),Oe=function(Te){Te(function(){},function(){})},Pe=ce.constructor={};return Pe[oe]=Oe,wt=ce.then(function(){})instanceof Oe,wt?!ee&&ve&&!mt:!0}),Re=we||!M(function(ee){Ze.all(ee).catch(function(){})}),be=function(ee){var ce;return j(ee)&&typeof(ce=ee.then)=="function"?ce:!1},Ae=function(ee,ce){if(!ee.notified){ee.notified=!0;var Oe=ee.reactions;J(function(){for(var Pe=ee.value,Te=ee.state==St,Ge=0;Oe.length>Ge;){var He=Oe[Ge++],it=Te?He.ok:He.fail,gt=He.resolve,Ct=He.reject,Kt=He.domain,Ft,Sn,qr;try{it?(Te||(ee.rejection===Gt&&O(ee),ee.rejection=Nt),it===!0?Ft=Pe:(Kt&&Kt.enter(),Ft=it(Pe),Kt&&(Kt.exit(),qr=!0)),Ft===He.promise?Ct(ut("Promise-chain cycle")):(Sn=be(Ft))?Sn.call(Ft,gt,Ct):gt(Ft)):Ct(Pe)}catch(Pn){Kt&&!qr&&Kt.exit(),Ct(Pn)}}ee.reactions=[],ee.notified=!1,ce&&!ee.rejection&&Ie(ee)})}},T=function(ee,ce,Oe){var Pe,Te;vt?(Pe=pt.createEvent("Event"),Pe.promise=ce,Pe.reason=Oe,Pe.initEvent(ee,!1,!0),x.dispatchEvent(Pe)):Pe={promise:ce,reason:Oe},!mt&&(Te=x["on"+ee])?Te(Pe):ee===dt&&Q("Unhandled promise rejection",Oe)},Ie=function(ee){V.call(x,function(){var ce=ee.facade,Oe=ee.value,Pe=W(ee),Te;if(Pe&&(Te=fe(function(){de?yt.emit("unhandledRejection",Oe,ce):T(dt,ce,Oe)}),ee.rejection=de||W(ee)?Gt:Nt,Te.error))throw Te.value})},W=function(ee){return ee.rejection!==Nt&&!ee.parent},O=function(ee){V.call(x,function(){var ce=ee.facade;de?yt.emit("rejectionHandled",ce):T(kt,ce,ee.value)})},P=function(ee,ce,Oe){return function(Pe){ee(ce,Pe,Oe)}},ie=function(ee,ce,Oe){ee.done||(ee.done=!0,Oe&&(ee=Oe),ee.value=ce,ee.state=Vt,Ae(ee,!0))},D=function(ee,ce,Oe){if(!ee.done){ee.done=!0,Oe&&(ee=Oe);try{if(ee.facade===ce)throw ut("Promise can't be resolved itself");var Pe=be(ce);Pe?J(function(){var Te={done:!1};try{Pe.call(ce,P(D,Te,ee),P(ie,Te,ee))}catch(Ge){ie(Te,Ge,ee)}}):(ee.value=ce,ee.state=St,Ae(ee,!1))}catch(Te){ie({done:!1},Te,ee)}}};if(we&&(Ze=function(ce){H(this,Ze,De),_(ce),Mt.call(this);var Oe=Ve(this);try{ce(P(D,Oe),P(ie,Oe))}catch(Pe){ie(Oe,Pe)}},Qe=Ze.prototype,Mt=function(ce){Le(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:It,value:void 0})},Mt.prototype=g(Qe,{then:function(ce,Oe){var Pe=ke(this),Te=qe(C(this,Ze));return Te.ok=typeof ce=="function"?ce:!0,Te.fail=typeof Oe=="function"&&Oe,Te.domain=de?yt.domain:void 0,Pe.parent=!0,Pe.reactions.push(Te),Pe.state!=It&&Ae(Pe,!1),Te.promise},catch:function(ee){return this.then(void 0,ee)}}),pe=function(){var ee=new Mt,ce=Ve(ee);this.promise=ee,this.resolve=P(D,ce),this.reject=P(ie,ce)},Y.f=qe=function(ee){return ee===Ze||ee===G?new pe(ee):lt(ee)},!v&&typeof b=="function"&&rt!==Object.prototype)){K=rt.then,wt||(A(rt,"then",function(ce,Oe){var Pe=this;return new Ze(function(Te,Ge){K.call(Pe,Te,Ge)}).then(ce,Oe)},{unsafe:!0}),A(rt,"catch",Qe.catch,{unsafe:!0}));try{delete rt.constructor}catch(ee){}L&&L(rt,Qe)}c({global:!0,wrap:!0,forced:we},{Promise:Ze}),N(Ze,De,!1,!0),B(De),G=d(De),c({target:De,stat:!0,forced:we},{reject:function(ce){var Oe=qe(this);return Oe.reject.call(void 0,ce),Oe.promise}}),c({target:De,stat:!0,forced:v||we},{resolve:function(ce){return q(v&&this===G?Ze:this,ce)}}),c({target:De,stat:!0,forced:Re},{all:function(ce){var Oe=this,Pe=qe(Oe),Te=Pe.resolve,Ge=Pe.reject,He=fe(function(){var it=_(Oe.resolve),gt=[],Ct=0,Kt=1;X(ce,function(Ft){var Sn=Ct++,qr=!1;gt.push(void 0),Kt++,it.call(Oe,Ft).then(function(Pn){qr||(qr=!0,gt[Sn]=Pn,--Kt||Te(gt))},Ge)}),--Kt||Te(gt)});return He.error&&Ge(He.value),Pe.promise},race:function(ce){var Oe=this,Pe=qe(Oe),Te=Pe.reject,Ge=fe(function(){var He=_(Oe.resolve);X(ce,function(it){He.call(Oe,it).then(Pe.resolve,Te)})});return Ge.error&&Te(Ge.value),Pe.promise}})},7453:(h,I,o)=>{var c=o(76887),v=o(626),x=o(33916),d=o(96059),b=o(10941),A=o(29290),g=o(98308),L=o(95981),N=v("Reflect","construct"),B=L(function(){function H(){}return!(N(function(){},[],H)instanceof H)}),j=!L(function(){N(function(){})}),_=B||j;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(R,X){x(R),d(X);var M=arguments.length<3?R:x(arguments[2]);if(j&&!B)return N(R,X,M);if(R==M){switch(X.length){case 0:return new R;case 1:return new R(X[0]);case 2:return new R(X[0],X[1]);case 3:return new R(X[0],X[1],X[2]);case 4:return new R(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(R,C))}var V=M.prototype,J=A(b(V)?V:Object.prototype),q=Function.apply.call(R,J,X);return b(q)?q:J}})},42355:(h,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),d=o(47457),b=o(49677),A=o(249);function g(L,N){var B=arguments.length<3?L:arguments[2],j,_;if(x(L)===B)return L[N];if(j=b.f(L,N))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(_=A(L)))return g(_,N,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),d=o(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(A){return!!~String(x(this)).indexOf(v(A),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),d="String Iterator",b=v.set,A=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=A(this),N=L.string,B=L.index,j;return B>=N.length?{value:void 0,done:!0}:(j=c(N,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,o)=>{var c=o(66349);c("hasInstance")},35903:(h,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(h,I,o)=>{var c=o(66349);c("iterator")},35824:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),d=o(82529),b=o(55746),A=o(72497),g=o(32302),L=o(95981),N=o(47457),B=o(1052),j=o(10941),_=o(96059),H=o(89678),R=o(74529),X=o(46935),M=o(31887),C=o(29290),V=o(14771),J=o(10946),q=o(684),Q=o(87857),Y=o(49677),fe=o(65988),te=o(36760),ne=o(32029),ye=o(99754),ve=o(68726),de=o(44262),ue=o(27748),oe=o(99418),De=o(99813),Ve=o(11477),Le=o(66349),ke=o(90904),rt=o(45402),Ze=o(3610).forEach,Qe=de("hidden"),ut="Symbol",pt="prototype",yt=De("toPrimitive"),qe=rt.set,lt=rt.getterFor(ut),vt=Object[pt],mt=v.Symbol,dt=x("JSON","stringify"),kt=Y.f,It=fe.f,St=q.f,Vt=te.f,Nt=ve("symbols"),Gt=ve("op-symbols"),wt=ve("string-to-symbol-registry"),Mt=ve("symbol-to-string-registry"),pe=ve("wks"),G=v.QObject,K=!G||!G[pt]||!G[pt].findChild,we=b&&L(function(){return C(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(ee,ce,Oe){var Pe=kt(vt,ce);Pe&&delete vt[ce],It(ee,ce,Oe),Pe&&ee!==vt&&It(vt,ce,Pe)}:It,Re=function(ee,ce){var Oe=Nt[ee]=C(mt[pt]);return qe(Oe,{type:ut,tag:ee,description:ce}),b||(Oe.description=ce),Oe},be=g?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof mt},Ae=function(ce,Oe,Pe){ce===vt&&Ae(Gt,Oe,Pe),_(ce);var Te=X(Oe,!0);return _(Pe),N(Nt,Te)?(Pe.enumerable?(N(ce,Qe)&&ce[Qe][Te]&&(ce[Qe][Te]=!1),Pe=C(Pe,{enumerable:M(0,!1)})):(N(ce,Qe)||It(ce,Qe,M(1,{})),ce[Qe][Te]=!0),we(ce,Te,Pe)):It(ce,Te,Pe)},T=function(ce,Oe){_(ce);var Pe=R(Oe),Te=V(Pe).concat(ie(Pe));return Ze(Te,function(Ge){(!b||W.call(Pe,Ge))&&Ae(ce,Ge,Pe[Ge])}),ce},Ie=function(ce,Oe){return Oe===void 0?C(ce):T(C(ce),Oe)},W=function(ce){var Oe=X(ce,!0),Pe=Vt.call(this,Oe);return this===vt&&N(Nt,Oe)&&!N(Gt,Oe)?!1:Pe||!N(this,Oe)||!N(Nt,Oe)||N(this,Qe)&&this[Qe][Oe]?Pe:!0},O=function(ce,Oe){var Pe=R(ce),Te=X(Oe,!0);if(!(Pe===vt&&N(Nt,Te)&&!N(Gt,Te))){var Ge=kt(Pe,Te);return Ge&&N(Nt,Te)&&!(N(Pe,Qe)&&Pe[Qe][Te])&&(Ge.enumerable=!0),Ge}},P=function(ce){var Oe=St(R(ce)),Pe=[];return Ze(Oe,function(Te){!N(Nt,Te)&&!N(ue,Te)&&Pe.push(Te)}),Pe},ie=function(ce){var Oe=ce===vt,Pe=St(Oe?Gt:R(ce)),Te=[];return Ze(Pe,function(Ge){N(Nt,Ge)&&(!Oe||N(vt,Ge))&&Te.push(Nt[Ge])}),Te};if(A||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var ce=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Oe=oe(ce),Pe=function(Te){this===vt&&Pe.call(Gt,Te),N(this,Qe)&&N(this[Qe],Oe)&&(this[Qe][Oe]=!1),we(this,Oe,M(1,Te))};return b&&K&&we(vt,Oe,{configurable:!0,set:Pe}),Re(Oe,ce)},ye(mt[pt],"toString",function(){return lt(this).tag}),ye(mt,"withoutSetter",function(ee){return Re(oe(ee),ee)}),te.f=W,fe.f=Ae,Y.f=O,J.f=q.f=P,Q.f=ie,Ve.f=function(ee){return Re(De(ee),ee)},b&&(It(mt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(vt,"propertyIsEnumerable",W,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:mt}),Ze(V(pe),function(ee){Le(ee)}),c({target:ut,stat:!0,forced:!A},{for:function(ee){var ce=String(ee);if(N(wt,ce))return wt[ce];var Oe=mt(ce);return wt[ce]=Oe,Mt[Oe]=ce,Oe},keyFor:function(ce){if(!be(ce))throw TypeError(ce+" is not a symbol");if(N(Mt,ce))return Mt[ce]},useSetter:function(){K=!0},useSimple:function(){K=!1}}),c({target:"Object",stat:!0,forced:!A,sham:!b},{create:Ie,defineProperty:Ae,defineProperties:T,getOwnPropertyDescriptor:O}),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:P,getOwnPropertySymbols:ie}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(ce){return Q.f(H(ce))}}),dt){var D=!A||L(function(){var ee=mt();return dt([ee])!="[null]"||dt({a:ee})!="{}"||dt(Object(ee))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(ce,Oe,Pe){for(var Te=[ce],Ge=1,He;arguments.length>Ge;)Te.push(arguments[Ge++]);if(He=Oe,!(!j(Oe)&&ce===void 0||be(ce)))return B(Oe)||(Oe=function(it,gt){if(typeof He=="function"&&(gt=He.call(this,it,gt)),!be(gt))return gt}),Te[1]=Oe,dt.apply(null,Te)}})}mt[pt][yt]||ne(mt[pt],yt,mt[pt].valueOf),ke(mt,ut),ue[Qe]=!0},45915:(h,I,o)=>{var c=o(66349);c("matchAll")},28394:(h,I,o)=>{var c=o(66349);c("match")},61766:(h,I,o)=>{var c=o(66349);c("replace")},62737:(h,I,o)=>{var c=o(66349);c("search")},89911:(h,I,o)=>{var c=o(66349);c("species")},74315:(h,I,o)=>{var c=o(66349);c("split")},63131:(h,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(h,I,o)=>{var c=o(66349);c("toStringTag")},70659:(h,I,o)=>{var c=o(66349);c("unscopables")},54334:(h,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),d=o(24683),b=o(8850),A=o(10941),g=o(45402).enforce,L=o(38019),N=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,_=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},H=h.exports=d("WeakMap",_,b);if(L&&N){j=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var R=H.prototype,X=R.delete,M=R.has,C=R.get,V=R.set;v(R,{delete:function(J){if(A(J)&&!B(J)){var q=g(this);return q.frozen||(q.frozen=new j),X.call(this,J)||q.frozen.delete(J)}return X.call(this,J)},has:function(q){if(A(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,q)||Q.frozen.has(q)}return M.call(this,q)},get:function(q){if(A(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,q)?C.call(this,q):Q.frozen.get(q)}return C.call(this,q)},set:function(q,Q){if(A(q)&&!B(q)){var Y=g(this);Y.frozen||(Y.frozen=new j),M.call(this,q)?V.call(this,q,Q):Y.frozen.set(q,Q)}else V.call(this,q,Q);return this}})}},89731:(h,I,o)=>{o(47627)},55708:(h,I,o)=>{o(4560)},88731:(h,I,o)=>{o(91302)},30014:(h,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),A=x(d);return(A.error?b.reject:b.resolve)(A.value),b.promise}})},28783:(h,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(h,I,o)=>{var c=o(66349);c("dispose")},65799:(h,I,o)=>{var c=o(66349);c("matcher")},45414:(h,I,o)=>{var c=o(66349);c("metadata")},46774:(h,I,o)=>{var c=o(66349);c("observable")},80620:(h,I,o)=>{var c=o(66349);c("patternMatch")},36172:(h,I,o)=>{var c=o(66349);c("replaceAll")},7634:(h,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),d=o(32029),b=o(12077),A=o(99813),g=A("toStringTag");for(var L in c){var N=v[L],B=N&&N.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,o)=>{var c=o(54493);h.exports=c},62908:(h,I,o)=>{var c=o(12710);h.exports=c},49216:(h,I,o)=>{var c=o(99324);h.exports=c},8065:(h,I,o)=>{var c=o(56043);h.exports=c},57448:(h,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.entries;return b===x||b instanceof Array&&A===x.entries||d.hasOwnProperty(v(b))?c:A}},11955:(h,I,o)=>{var c=o(2480);h.exports=c},61577:(h,I,o)=>{var c=o(32236);h.exports=c},46279:(h,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.forEach;return b===x||b instanceof Array&&A===x.forEach||d.hasOwnProperty(v(b))?c:A}},33778:(h,I,o)=>{var c=o(58557);h.exports=c},61798:(h,I,o)=>{var c=o(88287);h.exports=c},82073:(h,I,o)=>{var c=o(69601);h.exports=c},2348:(h,I,o)=>{var c=o(18339);h.exports=c},8933:(h,I,o)=>{var c=o(84426);h.exports=c},63383:(h,I,o)=>{var c=o(45999);h.exports=c},86209:(h,I,o)=>{var c=o(73081);h.exports=c},23059:(h,I,o)=>{var c=o(48494);h.exports=c},27460:(h,I,o)=>{var c=o(52956);h.exports=c},72010:(h,I,o)=>{var c=o(32304);h.exports=c},31905:function(){(function(h){var I=function(o){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(te){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(te){return te&&DataView.prototype.isPrototypeOf(te)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(te){return te&&x.indexOf(Object.prototype.toString.call(te))>-1};function b(te){if(typeof te!="string"&&(te=String(te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(te))throw new TypeError("Invalid character in header field name");return te.toLowerCase()}function A(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var ne={next:function(){var ye=te.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function L(te){this.map={},te instanceof L?te.forEach(function(ne,ye){this.append(ye,ne)},this):Array.isArray(te)?te.forEach(function(ne){this.append(ne[0],ne[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(ne){this.append(ne,te[ne])},this)}L.prototype.append=function(te,ne){te=b(te),ne=A(ne);var ye=this.map[te];this.map[te]=ye?ye+", "+ne:ne},L.prototype.delete=function(te){delete this.map[b(te)]},L.prototype.get=function(te){return te=b(te),this.has(te)?this.map[te]:null},L.prototype.has=function(te){return this.map.hasOwnProperty(b(te))},L.prototype.set=function(te,ne){this.map[b(te)]=A(ne)},L.prototype.forEach=function(te,ne){for(var ye in this.map)this.map.hasOwnProperty(ye)&&te.call(ne,this.map[ye],ye,this)},L.prototype.keys=function(){var te=[];return this.forEach(function(ne,ye){te.push(ye)}),g(te)},L.prototype.values=function(){var te=[];return this.forEach(function(ne){te.push(ne)}),g(te)},L.prototype.entries=function(){var te=[];return this.forEach(function(ne,ye){te.push([ye,ne])}),g(te)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function N(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function B(te){return new Promise(function(ne,ye){te.onload=function(){ne(te.result)},te.onerror=function(){ye(te.error)}})}function j(te){var ne=new FileReader,ye=B(ne);return ne.readAsArrayBuffer(te),ye}function _(te){var ne=new FileReader,ye=B(ne);return ne.readAsText(te),ye}function H(te){for(var ne=new Uint8Array(te),ye=new Array(ne.length),ve=0;ve<ne.length;ve++)ye[ve]=String.fromCharCode(ne[ve]);return ye.join("")}function R(te){if(te.slice)return te.slice(0);var ne=new Uint8Array(te.byteLength);return ne.set(new Uint8Array(te)),ne.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(te){this._bodyInit=te,te?typeof te=="string"?this._bodyText=te:c.blob&&Blob.prototype.isPrototypeOf(te)?this._bodyBlob=te:c.formData&&FormData.prototype.isPrototypeOf(te)?this._bodyFormData=te:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)?this._bodyText=te.toString():c.arrayBuffer&&c.blob&&v(te)?(this._bodyArrayBuffer=R(te.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(te)||d(te))?this._bodyArrayBuffer=R(te):this._bodyText=te=Object.prototype.toString.call(te):this._bodyText="",this.headers.get("content-type")||(typeof te=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(H(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(te){var ne=te.toUpperCase();return M.indexOf(ne)>-1?ne:te}function V(te,ne){ne=ne||{};var ye=ne.body;if(te instanceof V){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,ne.headers||(this.headers=new L(te.headers)),this.method=te.method,this.mode=te.mode,this.signal=te.signal,!ye&&te._bodyInit!=null&&(ye=te._bodyInit,te.bodyUsed=!0)}else this.url=String(te);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new L(ne.headers)),this.method=C(ne.method||this.method||"GET"),this.mode=ne.mode||this.mode||null,this.signal=ne.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(te){var ne=new FormData;return te.trim().split("&").forEach(function(ye){if(ye){var ve=ye.split("="),de=ve.shift().replace(/\+/g," "),ue=ve.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(de),decodeURIComponent(ue))}}),ne}function q(te){var ne=new L,ye=te.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ve){var de=ve.split(":"),ue=de.shift().trim();if(ue){var oe=de.join(":").trim();ne.append(ue,oe)}}),ne}X.call(V.prototype);function Q(te,ne){ne||(ne={}),this.type="default",this.status=ne.status===void 0?200:ne.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ne?ne.statusText:"OK",this.headers=new L(ne.headers),this.url=ne.url||"",this._initBody(te)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var te=new Q(null,{status:0,statusText:""});return te.type="error",te};var Y=[301,302,303,307,308];Q.redirect=function(te,ne){if(Y.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ne,headers:{location:te}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(te){o.DOMException=function(ne,ye){this.message=ne,this.name=ye;var ve=Error(ne);this.stack=ve.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(te,ne){return new Promise(function(ye,ve){var de=new V(te,ne);if(de.signal&&de.signal.aborted)return ve(new o.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function oe(){ue.abort()}ue.onload=function(){var De={status:ue.status,statusText:ue.statusText,headers:q(ue.getAllResponseHeaders()||"")};De.url="responseURL"in ue?ue.responseURL:De.headers.get("X-Request-URL");var Ve="response"in ue?ue.response:ue.responseText;ye(new Q(Ve,De))},ue.onerror=function(){ve(new TypeError("Network request failed"))},ue.ontimeout=function(){ve(new TypeError("Network request failed"))},ue.onabort=function(){ve(new o.DOMException("Aborted","AbortError"))},ue.open(de.method,de.url,!0),de.credentials==="include"?ue.withCredentials=!0:de.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),de.headers.forEach(function(De,Ve){ue.setRequestHeader(Ve,De)}),de.signal&&(de.signal.addEventListener("abort",oe),ue.onreadystatechange=function(){ue.readyState===4&&de.signal.removeEventListener("abort",oe)}),ue.send(typeof de._bodyInit=="undefined"?null:de._bodyInit)})}return fe.polyfill=!0,h.fetch||(h.fetch=fe,h.Headers=L,h.Request=V,h.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=fe,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var o=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=o.DOMException}return x.prototype=o,new x}();(function(x){var d=function(b){var A={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(A.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],N=ArrayBuffer.isView||function(ue){return ue&&L.indexOf(Object.prototype.toString.call(ue))>-1};function B(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function j(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function _(ue){var oe={next:function(){var De=ue.shift();return{done:De===void 0,value:De}}};return A.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function H(ue){this.map={},ue instanceof H?ue.forEach(function(oe,De){this.append(De,oe)},this):Array.isArray(ue)?ue.forEach(function(oe){this.append(oe[0],oe[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(oe){this.append(oe,ue[oe])},this)}H.prototype.append=function(ue,oe){ue=B(ue),oe=j(oe);var De=this.map[ue];this.map[ue]=De?De+", "+oe:oe},H.prototype.delete=function(ue){delete this.map[B(ue)]},H.prototype.get=function(ue){return ue=B(ue),this.has(ue)?this.map[ue]:null},H.prototype.has=function(ue){return this.map.hasOwnProperty(B(ue))},H.prototype.set=function(ue,oe){this.map[B(ue)]=j(oe)},H.prototype.forEach=function(ue,oe){for(var De in this.map)this.map.hasOwnProperty(De)&&ue.call(oe,this.map[De],De,this)},H.prototype.keys=function(){var ue=[];return this.forEach(function(oe,De){ue.push(De)}),_(ue)},H.prototype.values=function(){var ue=[];return this.forEach(function(oe){ue.push(oe)}),_(ue)},H.prototype.entries=function(){var ue=[];return this.forEach(function(oe,De){ue.push([De,oe])}),_(ue)},A.iterable&&(H.prototype[Symbol.iterator]=H.prototype.entries);function R(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function X(ue){return new Promise(function(oe,De){ue.onload=function(){oe(ue.result)},ue.onerror=function(){De(ue.error)}})}function M(ue){var oe=new FileReader,De=X(oe);return oe.readAsArrayBuffer(ue),De}function C(ue){var oe=new FileReader,De=X(oe);return oe.readAsText(ue),De}function V(ue){for(var oe=new Uint8Array(ue),De=new Array(oe.length),Ve=0;Ve<oe.length;Ve++)De[Ve]=String.fromCharCode(oe[Ve]);return De.join("")}function J(ue){if(ue.slice)return ue.slice(0);var oe=new Uint8Array(ue.byteLength);return oe.set(new Uint8Array(ue)),oe.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:A.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:A.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():A.arrayBuffer&&A.blob&&g(ue)?(this._bodyArrayBuffer=J(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||N(ue))?this._bodyArrayBuffer=J(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var ue=R(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?R(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(M)}),this.text=function(){var ue=R(this);if(ue)return ue;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(ue){var oe=ue.toUpperCase();return Q.indexOf(oe)>-1?oe:ue}function fe(ue,oe){oe=oe||{};var De=oe.body;if(ue instanceof fe){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,oe.headers||(this.headers=new H(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!De&&ue._bodyInit!=null&&(De=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new H(oe.headers)),this.method=Y(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&De)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(De)}fe.prototype.clone=function(){return new fe(this,{body:this._bodyInit})};function te(ue){var oe=new FormData;return ue.trim().split("&").forEach(function(De){if(De){var Ve=De.split("="),Le=Ve.shift().replace(/\+/g," "),ke=Ve.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Le),decodeURIComponent(ke))}}),oe}function ne(ue){var oe=new H,De=ue.replace(/\r?\n[\t ]+/g," ");return De.split(/\r?\n/).forEach(function(Ve){var Le=Ve.split(":"),ke=Le.shift().trim();if(ke){var rt=Le.join(":").trim();oe.append(ke,rt)}}),oe}q.call(fe.prototype);function ye(ue,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new H(oe.headers),this.url=oe.url||"",this._initBody(ue)}q.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ye.error=function(){var ue=new ye(null,{status:0,statusText:""});return ue.type="error",ue};var ve=[301,302,303,307,308];ye.redirect=function(ue,oe){if(ve.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:oe,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(oe,De){this.message=oe,this.name=De;var Ve=Error(oe);this.stack=Ve.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function de(ue,oe){return new Promise(function(De,Ve){var Le=new fe(ue,oe);if(Le.signal&&Le.signal.aborted)return Ve(new b.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function rt(){ke.abort()}ke.onload=function(){var Ze={status:ke.status,statusText:ke.statusText,headers:ne(ke.getAllResponseHeaders()||"")};Ze.url="responseURL"in ke?ke.responseURL:Ze.headers.get("X-Request-URL");var Qe="response"in ke?ke.response:ke.responseText;De(new ye(Qe,Ze))},ke.onerror=function(){Ve(new TypeError("Network request failed"))},ke.ontimeout=function(){Ve(new TypeError("Network request failed"))},ke.onabort=function(){Ve(new b.DOMException("Aborted","AbortError"))},ke.open(Le.method,Le.url,!0),Le.credentials==="include"?ke.withCredentials=!0:Le.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&A.blob&&(ke.responseType="blob"),Le.headers.forEach(function(Ze,Qe){ke.setRequestHeader(Qe,Ze)}),Le.signal&&(Le.signal.addEventListener("abort",rt),ke.onreadystatechange=function(){ke.readyState===4&&Le.signal.removeEventListener("abort",rt)}),ke.send(typeof Le._bodyInit=="undefined"?null:Le._bodyInit)})}return de.polyfill=!0,x.fetch||(x.fetch=de,x.Headers=H,x.Request=fe,x.Response=ye),b.Headers=H,b.Request=fe,b.Response=ye,b.fetch=de,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
46
|
+
*/I.parse=d,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var N={},B=L||{},j=g.split(v),_=B.decode||o,H=0;H<j.length;H++){var R=j[H],X=R.indexOf("=");if(!(X<0)){var M=R.substr(0,X).trim(),C=R.substr(++X,R.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),N[M]==null&&(N[M]=A(C,_))}}return N}function b(g,L,N){var B=N||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var _=j(L);if(_&&!x.test(_))throw new TypeError("argument val is invalid");var H=g+"="+_;if(B.maxAge!=null){var R=B.maxAge-0;if(isNaN(R)||!isFinite(R))throw new TypeError("option maxAge is invalid");H+="; Max-Age="+Math.floor(R)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");H+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");H+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");H+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(H+="; HttpOnly"),B.secure&&(H+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:H+="; SameSite=Strict";break;case"lax":H+="; SameSite=Lax";break;case"strict":H+="; SameSite=Strict";break;case"none":H+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return H}function A(g,L){try{return L(g)}catch(N){return g}}},54493:(h,I,o)=>{o(77971),o(53242);var c=o(54058);h.exports=c.Array.from},24034:(h,I,o)=>{o(92737);var c=o(54058);h.exports=c.Array.isArray},15367:(h,I,o)=>{o(85906);var c=o(35703);h.exports=c("Array").concat},12710:(h,I,o)=>{o(66274);var c=o(35703);h.exports=c("Array").entries},62383:(h,I,o)=>{o(21501);var c=o(35703);h.exports=c("Array").filter},17671:(h,I,o)=>{o(80833);var c=o(35703);h.exports=c("Array").find},99324:(h,I,o)=>{o(2437);var c=o(35703);h.exports=c("Array").forEach},80991:(h,I,o)=>{o(97690);var c=o(35703);h.exports=c("Array").includes},8700:(h,I,o)=>{o(99076);var c=o(35703);h.exports=c("Array").indexOf},23866:(h,I,o)=>{o(68787);var c=o(35703);h.exports=c("Array").map},24900:(h,I,o)=>{o(60186);var c=o(35703);h.exports=c("Array").slice},78209:(h,I,o)=>{o(98611);var c=o(35703);h.exports=c("Array").splice},56043:(h,I,o)=>{var c=o(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,o)=>{var c=o(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,o)=>{var c=o(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var A=b.includes;return b===x||b instanceof Array&&A===x.includes?c:typeof b=="string"||b===d||b instanceof String&&A===d.includes?v:A}},34570:(h,I,o)=>{var c=o(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,o)=>{var c=o(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,o)=>{var c=o(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,o)=>{var c=o(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,o)=>{o(49221);var c=o(54058);h.exports=c.Object.assign},35254:(h,I,o)=>{o(53882);var c=o(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.defineProperties(b,A)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=h.exports=function(b,A,g){return v.defineProperty(b,A,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,o)=>{o(21078);var c=o(54058);h.exports=c.Object.entries},286:(h,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=h.exports=function(b,A){return v.getOwnPropertyDescriptor(b,A)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,o)=>{o(88482);var c=o(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,o)=>{o(35824);var c=o(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,o)=>{o(17405);var c=o(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,o)=>{o(21724);var c=o(54058);h.exports=c.Object.keys},3065:(h,I,o)=>{o(90108);var c=o(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);h.exports=c.Promise},14983:(h,I,o)=>{o(7453);var c=o(54058);h.exports=c.Reflect.construct},37095:(h,I,o)=>{o(42355);var c=o(54058);h.exports=c.Reflect.get},21631:(h,I,o)=>{o(11035);var c=o(35703);h.exports=c("String").includes},57473:(h,I,o)=>{o(85906),o(55967),o(35824),o(8555),o(52615),o(21732),o(35903),o(1825),o(28394),o(45915),o(61766),o(62737),o(89911),o(74315),o(63131),o(64714),o(70659),o(69120),o(79413),o(1502);var c=o(54058);h.exports=c.Symbol},24227:(h,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);h.exports=c.f("iterator")},32304:(h,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);h.exports=c.WeakMap},27385:(h,I,o)=>{var c=o(54493);h.exports=c},81522:(h,I,o)=>{var c=o(24034);h.exports=c},32209:(h,I,o)=>{o(7634),o(77971);var c=o(22902);h.exports=c},44442:(h,I,o)=>{var c=o(2480);h.exports=c},57152:(h,I,o)=>{var c=o(46279);h.exports=c},69447:(h,I,o)=>{var c=o(34570);h.exports=c},81493:(h,I,o)=>{var c=o(69601);h.exports=c},76094:(h,I,o)=>{var c=o(35254);h.exports=c},70573:(h,I,o)=>{var c=o(7702);h.exports=c},73685:(h,I,o)=>{var c=o(48171);h.exports=c},27533:(h,I,o)=>{var c=o(286);h.exports=c},39057:(h,I,o)=>{var c=o(92766);h.exports=c},84710:(h,I,o)=>{var c=o(30498);h.exports=c},74303:(h,I,o)=>{var c=o(13966);h.exports=c},93799:(h,I,o)=>{var c=o(48494);h.exports=c},55122:(h,I,o)=>{var c=o(3065);h.exports=c},29531:(h,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),h.exports=c},10856:(h,I,o)=>{var c=o(14983);h.exports=c},31524:(h,I,o)=>{var c=o(37095);h.exports=c},86600:(h,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),h.exports=c},9759:(h,I,o)=>{var c=o(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),d=o(6782),b=o(43057),A=o(55449),g=o(22902);h.exports=function(N){var B=v(N),j=typeof this=="function"?this:Array,_=arguments.length,H=_>1?arguments[1]:void 0,R=H!==void 0,X=g(B),M=0,C,V,J,q,Q,Y;if(R&&(H=c(H,_>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(q=X.call(B),Q=q.next,V=new j;!(J=Q.call(q)).done;M++)Y=R?x(q,H,[J.value,M],!0):J.value,A(V,M,Y);else for(C=b(B.length),V=new j(C);C>M;M++)Y=R?H(B[M],M):B[M],A(V,M,Y);return V.length=M,V}},31692:(h,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),d=function(b){return function(A,g,L){var N=c(A),B=v(N.length),j=x(L,B),_;if(b&&g!=g){for(;B>j;)if(_=N[j++],_!=_)return!0}else for(;B>j;j++)if((b||j in N)&&N[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),d=o(43057),b=o(64692),A=[].push,g=function(L){var N=L==1,B=L==2,j=L==3,_=L==4,H=L==6,R=L==7,X=L==5||H;return function(M,C,V,J){for(var q=x(M),Q=v(q),Y=c(C,V,3),fe=d(Q.length),te=0,ne=J||b,ye=N?ne(M,fe):B||R?ne(M,0):void 0,ve,de;fe>te;te++)if((X||te in Q)&&(ve=Q[te],de=Y(ve,te,q),L))if(N)ye[te]=de;else if(de)switch(L){case 3:return!0;case 5:return ve;case 6:return te;case 2:A.call(ye,ve)}else switch(L){case 4:return!1;case 7:A.call(ye,ve)}return H?-1:j||_?_:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var A=[],g=A.constructor={};return g[d]=function(){return{foo:1}},A[b](Boolean).foo!==1})}},34194:(h,I,o)=>{"use strict";var c=o(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),d=x("species");h.exports=function(b,A){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(A===0?0:A)}},75196:(h,I,o)=>{var c=o(96059),v=o(7609);h.exports=function(x,d,b,A){try{return A?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(A){}h.exports=function(A,g){if(!g&&!x)return!1;var L=!1;try{var N={};N[v]=function(){return{next:function(){return{done:L=!0}}}},A(N)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(o){return I.call(o).slice(8,-1)}},9697:(h,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",A=function(g,L){try{return g[L]}catch(N){}};h.exports=c?v:function(g){var L,N,B;return g===void 0?"Undefined":g===null?"Null":typeof(N=A(L=Object(g),d))=="string"?N:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),d=o(10941),b=o(5743),A=o(93091),g=o(3610),L=o(47457),N=o(45402),B=N.set,j=N.getterFor,_=g.find,H=g.findIndex,R=0,X=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,J){return _(V.entries,function(q){return q[0]===J})};M.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var q=C(this,V);q?q[1]=J:this.entries.push([V,J])},delete:function(V){var J=H(this.entries,function(q){return q[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,q,Q){var Y=V(function(ne,ye){b(ne,Y,J),B(ne,{type:J,id:R++,frozen:void 0}),ye!=null&&A(ye,ne[Q],{that:ne,AS_ENTRIES:q})}),fe=j(J),te=function(ne,ye,ve){var de=fe(ne),ue=v(x(ye),!0);return ue===!0?X(de).set(ye,ve):ue[de.id]=ve,ne};return c(Y.prototype,{delete:function(ne){var ye=fe(this);if(!d(ne))return!1;var ve=v(ne);return ve===!0?X(ye).delete(ne):ve&&L(ve,ye.id)&&delete ve[ye.id]},has:function(ye){var ve=fe(this);if(!d(ye))return!1;var de=v(ye);return de===!0?X(ve).has(ye):de&&L(de,ve.id)}}),c(Y.prototype,q?{get:function(ye){var ve=fe(this);if(d(ye)){var de=v(ye);return de===!0?X(ve).get(ye):de?de[ve.id]:void 0}},set:function(ye,ve){return te(this,ye,ve)}}:{add:function(ye){return te(this,ye,!0)}}),Y}}},24683:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),d=o(95981),b=o(32029),A=o(93091),g=o(5743),L=o(10941),N=o(90904),B=o(65988).f,j=o(3610).forEach,_=o(55746),H=o(45402),R=H.set,X=H.getterFor;h.exports=function(M,C,V){var J=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[M],fe=Y&&Y.prototype,te={},ne;if(!_||typeof Y!="function"||!(q||fe.forEach&&!d(function(){new Y().entries().next()})))ne=V.getConstructor(C,M,J,Q),x.REQUIRED=!0;else{ne=C(function(ve,de){R(g(ve,ne,M),{type:M,collection:new Y}),de!=null&&A(de,ve[Q],{that:ve,AS_ENTRIES:J})});var ye=X(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(ve){var de=ve=="add"||ve=="set";ve in fe&&!(q&&ve=="clear")&&b(ne.prototype,ve,function(ue,oe){var De=ye(this).collection;if(!de&&q&&!L(ue))return ve=="get"?void 0:!1;var Ve=De[ve](ue===0?0:ue,oe);return de?this:Ve})}),q||B(ne.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return N(ne,M,!1,!0),te[M]=ne,c({global:!0,forced:!0},te),q||V.setStrong(ne,M,J),ne}},67772:(h,I,o)=>{var c=o(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(A){}}return!1}},64160:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),d=o(90904),b=o(12077),A=function(){return this};h.exports=function(g,L,N){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,N)}),d(g,B,!1,!0),b[B]=A,g}},32029:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);h.exports=c?function(d,b,A){return v.f(d,b,x(1,A))}:function(d,b,A){return d[b]=A,d}},31887:h=>{h.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(h,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);h.exports=function(d,b,A){var g=c(b);g in d?v.f(d,g,x(0,A)):d[g]=A}},47771:(h,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),d=o(88929),b=o(90904),A=o(32029),g=o(99754),L=o(99813),N=o(82529),B=o(12077),j=o(35143),_=j.IteratorPrototype,H=j.BUGGY_SAFARI_ITERATORS,R=L("iterator"),X="keys",M="values",C="entries",V=function(){return this};h.exports=function(J,q,Q,Y,fe,te,ne){v(Q,q,Y);var ye=function(Qe){if(Qe===fe&&De)return De;if(!H&&Qe in ue)return ue[Qe];switch(Qe){case X:return function(){return new Q(this,Qe)};case M:return function(){return new Q(this,Qe)};case C:return function(){return new Q(this,Qe)}}return function(){return new Q(this)}},ve=q+" Iterator",de=!1,ue=J.prototype,oe=ue[R]||ue["@@iterator"]||fe&&ue[fe],De=!H&&oe||ye(fe),Ve=q=="Array"&&ue.entries||oe,Le,ke,rt;if(Ve&&(Le=x(Ve.call(new J)),_!==Object.prototype&&Le.next&&(!N&&x(Le)!==_&&(d?d(Le,_):typeof Le[R]!="function"&&A(Le,R,V)),b(Le,ve,!0,!0),N&&(B[ve]=V))),fe==M&&oe&&oe.name!==M&&(de=!0,De=function(){return oe.call(this)}),(!N||ne)&&ue[R]!==De&&A(ue,R,De),B[q]=De,fe)if(ke={values:ye(M),keys:te?De:ye(X),entries:ye(C)},ne)for(rt in ke)(H||de||!(rt in ue))&&g(ue,rt,ke[rt]);else c({target:q,proto:!0,forced:H||de},ke);return ke}},66349:(h,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),d=o(65988).f;h.exports=function(b){var A=c.Symbol||(c.Symbol={});v(A,b)||d(A,b,{value:x.f(b)})}},55746:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,o)=>{var c=o(21899),v=o(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,o)=>{var c=o(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,o)=>{var c=o(82532),v=o(21899);h.exports=c(v.process)=="process"},58045:(h,I,o)=>{var c=o(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,o)=>{var c=o(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,o)=>{var c=o(21899),v=o(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,A,g;b?(A=b.split("."),g=A[0]<4?1:A[0]+A[1]):v&&(A=v.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=v.match(/Chrome\/(\d+)/),A&&(g=A[1]))),h.exports=g&&+g},35703:(h,I,o)=>{var c=o(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),d=o(54058),b=o(86843),A=o(32029),g=o(47457),L=function(N){var B=function(j,_,H){if(this instanceof N){switch(arguments.length){case 0:return new N;case 1:return new N(j);case 2:return new N(j,_)}return new N(j,_,H)}return N.apply(this,arguments)};return B.prototype=N.prototype,B};h.exports=function(N,B){var j=N.target,_=N.global,H=N.stat,R=N.proto,X=_?c:H?c[j]:(c[j]||{}).prototype,M=_?d:d[j]||(d[j]={}),C=M.prototype,V,J,q,Q,Y,fe,te,ne,ye;for(Q in B)V=x(_?Q:j+(H?".":"#")+Q,N.forced),J=!V&&X&&g(X,Q),fe=M[Q],J&&(N.noTargetGet?(ye=v(X,Q),te=ye&&ye.value):te=X[Q]),Y=J&&te?te:B[Q],!(J&&typeof fe==typeof Y)&&(N.bind&&J?ne=b(Y,c):N.wrap&&J?ne=L(Y):R&&typeof Y=="function"?ne=b(Function.call,Y):ne=Y,(N.sham||Y&&Y.sham||fe&&fe.sham)&&A(ne,"sham",!0),M[Q]=ne,R&&(q=j+"Prototype",g(d,q)||A(d,q,{}),d[q][Q]=Y,N.real&&C&&!C[Q]&&A(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,o)=>{var c=o(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,A){return v.call(x,b,A)};case 3:return function(b,A,g){return v.call(x,b,A,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,d={},b=function(A,g,L){if(!(g in d)){for(var N=[],B=0;B<g;B++)N[B]="a["+B+"]";d[g]=Function("C,a","return new C("+N.join(",")+")")}return d[g](A,L)};h.exports=Function.bind||function(g){var L=c(this),N=x.call(arguments,1),B=function(){var _=N.concat(x.call(arguments));return this instanceof B?b(L,_.length,_):L.apply(g,_)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,o)=>{var c=o(54058),v=o(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},47457:(h,I,o)=>{var c=o(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,o)=>{var c=o(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,o)=>{var c=o(626);h.exports=c("document","documentElement")},2840:(h,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,o)=>{var c=o(95981),v=o(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),d=o(65988).f,b=o(99418),A=o(45602),g=b("meta"),L=0,N=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,M){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!N(X))return"F";if(!M)return"E";B(X)}return X[g].objectID},_=function(X,M){if(!x(X,g)){if(!N(X))return!0;if(!M)return!1;B(X)}return X[g].weakData},H=function(X){return A&&R.REQUIRED&&N(X)&&!x(X,g)&&B(X),X},R=h.exports={REQUIRED:!1,fastKey:j,getWeakData:_,onFreeze:H};c[g]=!0},45402:(h,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),d=o(32029),b=o(47457),A=o(63030),g=o(44262),L=o(27748),N="Object already initialized",B=v.WeakMap,j,_,H,R=function(Q){return H(Q)?_(Q):j(Q,{})},X=function(Q){return function(Y){var fe;if(!x(Y)||(fe=_(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return fe}};if(c||A.state){var M=A.state||(A.state=new B),C=M.get,V=M.has,J=M.set;j=function(Q,Y){if(V.call(M,Q))throw new TypeError(N);return Y.facade=Q,J.call(M,Q,Y),Y},_=function(Q){return C.call(M,Q)||{}},H=function(Q){return V.call(M,Q)}}else{var q=g("state");L[q]=!0,j=function(Q,Y){if(b(Q,q))throw new TypeError(N);return Y.facade=Q,d(Q,q,Y),Y},_=function(Q){return b(Q,q)?Q[q]:{}},H=function(Q){return b(Q,q)}}h.exports={set:j,get:_,has:H,enforce:R,getterFor:X}},6782:(h,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,o)=>{var c=o(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,N){var B=b[d(L)];return B==g?!0:B==A?!1:typeof N=="function"?c(N):!!N},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},A=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),d=x("match");h.exports=function(b){var A;return c(b)&&((A=b[d])!==void 0?!!A:v(b)=="RegExp")}},93091:(h,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),d=o(86843),b=o(22902),A=o(7609),g=function(L,N){this.stopped=L,this.result=N};h.exports=function(L,N,B){var j=B&&B.that,_=!!(B&&B.AS_ENTRIES),H=!!(B&&B.IS_ITERATOR),R=!!(B&&B.INTERRUPTED),X=d(N,j,1+_+R),M,C,V,J,q,Q,Y,fe=function(ne){return M&&A(M),new g(!0,ne)},te=function(ne){return _?(c(ne),R?X(ne[0],ne[1],fe):X(ne[0],ne[1])):R?X(ne,fe):X(ne)};if(H)M=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(q=te(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Q=M.next;!(Y=Q.call(M)).done;){try{q=te(Y.value)}catch(ne){throw A(M),ne}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(h,I,o)=>{var c=o(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),d=o(47457),b=o(99813),A=o(82529),g=b("iterator"),L=!1,N=function(){return this},B,j,_;[].keys&&(_=[].keys(),"next"in _?(j=v(v(_)),j!==Object.prototype&&(B=j)):L=!0);var H=B==null||c(function(){var R={};return B[g].call(R)!==R});H&&(B={}),(!A||H)&&!d(B,g)&&x(B,g,N),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,d=o(22749),b=o(58045),A=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,N=c.process,B=c.Promise,j=v(c,"queueMicrotask"),_=j&&j.value,H,R,X,M,C,V,J,q;_||(H=function(){var Q,Y;for(A&&(Q=N.domain)&&Q.exit();R;){Y=R.fn,R=R.next;try{Y()}catch(fe){throw R?M():X=void 0,fe}}X=void 0,Q&&Q.enter()},!d&&!A&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(H).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,q=J.then,M=function(){q.call(J,H)}):A?M=function(){N.nextTick(H)}:M=function(){x.call(c,H)}),h.exports=_||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),R||(R=Y,M()),X=Y}},19297:(h,I,o)=>{var c=o(21899);h.exports=c.Promise},72497:(h,I,o)=>{var c=o(53385),v=o(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,o)=>{"use strict";var c=o(33916),v=function(x){var d,b;this.promise=new x(function(A,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=A,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,o)=>{var c=o(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),d=o(87857),b=o(36760),A=o(89678),g=o(37026),L=Object.assign,N=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},_=Symbol(),H="abcdefghijklmnopqrst";return B[_]=7,H.split("").forEach(function(R){j[R]=R}),L({},B)[_]!=7||x(L({},j)).join("")!=H})?function(j,_){for(var H=A(j),R=arguments.length,X=1,M=d.f,C=b.f;R>X;)for(var V=g(arguments[X++]),J=M?x(V).concat(M(V)):x(V),q=J.length,Q=0,Y;q>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(H[Y]=V[Y]);return H}:L},29290:(h,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),d=o(27748),b=o(15463),A=o(61333),g=o(44262),L=">",N="<",B="prototype",j="script",_=g("IE_PROTO"),H=function(){},R=function(J){return N+j+L+J+N+"/"+j+L},X=function(J){J.write(R("")),J.close();var q=J.parentWindow.Object;return J=null,q},M=function(){var J=A("iframe"),q="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(q),Q=J.contentWindow.document,Q.open(),Q.write(R("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(q){}V=C?X(C):M();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[_]=!0,h.exports=Object.create||function(q,Q){var Y;return q!==null?(H[B]=c(q),Y=new H,H[B]=null,Y[_]=q):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),d=o(14771);h.exports=c?Object.defineProperties:function(A,g){x(A);for(var L=d(g),N=L.length,B=0,j;N>B;)v.f(A,j=L[B++],g[j]);return A}},65988:(h,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),d=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,N){if(x(g),L=d(L,!0),x(N),v)try{return b(g,L,N)}catch(B){}if("get"in N||"set"in N)throw TypeError("Accessors not supported");return"value"in N&&(g[L]=N.value),g}},49677:(h,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),d=o(74529),b=o(46935),A=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(_){}if(A(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(A){try{return v(A)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,o)=>{var c=o(55629),v=o(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),d=o(64160),b=x("IE_PROTO"),A=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?A:null}},55629:(h,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,d=o(27748);h.exports=function(b,A){var g=v(b),L=0,N=[],B;for(B in g)!c(d,B)&&c(g,B)&&N.push(B);for(;A.length>L;)c(g,B=A[L++])&&(~x(N,B)||N.push(B));return N}},14771:(h,I,o)=>{var c=o(55629),v=o(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:o},88929:(h,I,o)=>{var c=o(96059),v=o(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(A){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),d=o(36760).f,b=function(A){return function(g){for(var L=x(g),N=v(L),B=N.length,j=0,_=[],H;B>j;)H=N[j++],(!c||d.call(L,H))&&_.push(A?[H,L[H]]:L[H]);return _}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,o)=>{"use strict";var c=o(22885),v=o(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,o)=>{var c=o(626),v=o(10946),x=o(87857),d=o(96059);h.exports=c("Reflect","ownKeys")||function(A){var g=v.f(d(A)),L=x.f;return L?g.concat(L(A)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(h,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var A=x.f(d),g=A.resolve;return g(b),A.promise}},87524:(h,I,o)=>{var c=o(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,o)=>{var c=o(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,o)=>{var c=o(21899),v=o(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),d=o(55746),b=x("species");h.exports=function(A){var g=c(A),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),d=o(47457),b=o(95623),A=o(99813),g=A("toStringTag");h.exports=function(L,N,B,j){if(L){var _=B?L:L.prototype;d(_,g)||v(_,g,{configurable:!0,value:N}),j&&!c&&x(_,"toString",b)}}},44262:(h,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,o)=>{var c=o(82529),v=o(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),d=x("species");h.exports=function(b,A){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?A:v(L)}},64620:(h,I,o)=>{var c=o(68459),v=o(48219),x=function(d){return function(b,A){var g=String(v(b)),L=c(A),N=g.length,B,j;return L<0||L>=N?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===N||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),d=o(15463),b=o(61333),A=o(22749),g=o(6049),L=c.location,N=c.setImmediate,B=c.clearImmediate,j=c.process,_=c.MessageChannel,H=c.Dispatch,R=0,X={},M="onreadystatechange",C,V,J,q=function(te){if(X.hasOwnProperty(te)){var ne=X[te];delete X[te],ne()}},Q=function(te){return function(){q(te)}},Y=function(te){q(te.data)},fe=function(te){c.postMessage(te+"",L.protocol+"//"+L.host)};(!N||!B)&&(N=function(ne){for(var ye=[],ve=1;arguments.length>ve;)ye.push(arguments[ve++]);return X[++R]=function(){(typeof ne=="function"?ne:Function(ne)).apply(void 0,ye)},C(R),R},B=function(ne){delete X[ne]},g?C=function(te){j.nextTick(Q(te))}:H&&H.now?C=function(te){H.now(Q(te))}:_&&!A?(V=new _,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(fe)?(C=fe,c.addEventListener("message",Y,!1)):M in b("script")?C=function(te){d.appendChild(b("script"))[M]=function(){d.removeChild(this),q(te)}}:C=function(te){setTimeout(Q(te),0)}),h.exports={set:N,clear:B}},59413:(h,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var A=c(d);return A<0?v(A+b,0):x(A,b)}},74529:(h,I,o)=>{var c=o(37026),v=o(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,o=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(h,I,o)=>{var c=o(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,o)=>{var c=o(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,o)=>{var c=o(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,o=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(h,I,o)=>{var c=o(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,o)=>{var c=o(99813);I.f=c},99813:(h,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),d=o(99418),b=o(72497),A=o(32302),g=v("wks"),L=c.Symbol,N=A?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=N("Symbol."+B)),g[B]}},47627:(h,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),d=o(29290),b=o(32029),A=o(31887),g=o(93091),L=function(B,j){var _=this;if(!(_ instanceof L))return new L(B,j);x&&(_=x(new Error(void 0),v(_))),j!==void 0&&b(_,"message",String(j));var H=[];return g(B,H.push,{that:H}),b(_,"errors",H),_};L.prototype=d(Error.prototype,{constructor:A(5,L),message:A(5,""),name:A(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),d=o(10941),b=o(89678),A=o(43057),g=o(55449),L=o(64692),N=o(50568),B=o(99813),j=o(53385),_=B("isConcatSpreadable"),H=9007199254740991,R="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[_]=!1,J.concat()[0]!==J}),M=N("concat"),C=function(J){if(!d(J))return!1;var q=J[_];return q!==void 0?!!q:x(J)},V=!X||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Q=b(this),Y=L(Q,0),fe=0,te,ne,ye,ve,de;for(te=-1,ye=arguments.length;te<ye;te++)if(de=te===-1?Q:arguments[te],C(de)){if(ve=A(de.length),fe+ve>H)throw TypeError(R);for(ne=0;ne<ve;ne++,fe++)ne in de&&g(Y,fe,de[ne])}else{if(fe>=H)throw TypeError(R);g(Y,fe++,de)}return Y.length=fe,Y}})},21501:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).includes,x=o(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,A=x("indexOf");c({target:"Array",proto:!0,forced:b||!A},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),d=o(45402),b=o(47771),A="Array Iterator",g=d.set,L=d.getterFor(A);h.exports=b(Array,"Array",function(N,B){g(this,{type:A,target:c(N),index:0,kind:B})},function(){var N=L(this),B=N.target,j=N.kind,_=N.index++;return!B||_>=B.length?(N.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:_,done:!1}:j=="values"?{value:B[_],done:!1}:{value:[_,B[_]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(A){return v(this,A,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),d=o(59413),b=o(43057),A=o(74529),g=o(55449),L=o(99813),N=o(50568),B=N("slice"),j=L("species"),_=[].slice,H=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,M){var C=A(this),V=b(C.length),J=d(X,V),q=d(M===void 0?V:M,V),Q,Y,fe;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return _.call(C,J,q);for(Y=new(Q===void 0?Array:Q)(H(q-J,0)),fe=0;J<q;J++,fe++)J in C&&g(Y,fe,C[J]);return Y.length=fe,Y}})},98611:(h,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),d=o(43057),b=o(89678),A=o(64692),g=o(55449),L=o(50568),N=L("splice"),B=Math.max,j=Math.min,_=9007199254740991,H="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!N},{splice:function(X,M){var C=b(this),V=d(C.length),J=v(X,V),q=arguments.length,Q,Y,fe,te,ne,ye;if(q===0?Q=Y=0:q===1?(Q=0,Y=V-J):(Q=q-2,Y=j(B(x(M),0),V-J)),V+Q-Y>_)throw TypeError(H);for(fe=A(C,Y),te=0;te<Y;te++)ne=J+te,ne in C&&g(fe,te,C[ne]);if(fe.length=Y,Q<Y){for(te=J;te<V-Y;te++)ne=te+Y,ye=te+Q,ne in C?C[ye]=C[ne]:delete C[ye];for(te=V;te>V-Y+Q;te--)delete C[te-1]}else if(Q>Y)for(te=V-Y;te>J;te--)ne=te+Y-1,ye=te+Q-1,ne in C?C[ye]=C[ne]:delete C[ye];for(te=0;te<Q;te++)C[te+J]=arguments[te+2];return C.length=V-Y+Q,fe}})},32619:(h,I,o)=>{var c=o(76887),v=o(626),x=o(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,_){var H=_.charAt(j-1),R=_.charAt(j+1);return A.test(B)&&!g.test(R)||g.test(B)&&!A.test(H)?"\\u"+B.charCodeAt(0).toString(16):B},N=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:N},{stringify:function(j,_,H){var R=d.apply(null,arguments);return typeof R=="string"?R.replace(b,L):R}})},69120:(h,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),d=o(49677).f,b=o(55746),A=v(function(){d(1)}),g=!b||A;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(N,B){return d(x(N),B)}})},88482:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),d=o(74529),b=o(49677),A=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var N=d(L),B=b.f,j=x(N),_={},H=0,R,X;j.length>H;)X=B(N,R=j[H++]),X!==void 0&&A(_,R,X);return _}})},17405:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),d=o(249),b=o(64160),A=v(function(){d(1)});c({target:"Object",stat:!0,forced:A,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),d=o(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),d=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,N=x.f(L),B=N.resolve,j=N.reject,_=d(function(){var H=v(L.resolve),R=[],X=0,M=1;b(g,function(C){var V=X++,J=!1;R.push(void 0),M++,H.call(L,C).then(function(q){J||(J=!0,R[V]={status:"fulfilled",value:q},--M||B(R))},function(q){J||(J=!0,R[V]={status:"rejected",reason:q},--M||B(R))})}),--M||B(R)});return _.error&&j(_.value),N.promise}})},91302:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),d=o(69520),b=o(40002),A=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(N){var B=this,j=d.f(B),_=j.resolve,H=j.reject,R=b(function(){var X=v(B.resolve),M=[],C=0,V=1,J=!1;A(N,function(q){var Q=C++,Y=!1;M.push(void 0),V++,X.call(B,q).then(function(fe){Y||J||(J=!0,_(fe))},function(fe){Y||J||(Y=!0,M[Q]=fe,--V||H(new(x("AggregateError"))(M,g)))})}),--V||H(new(x("AggregateError"))(M,g))});return R.error&&H(R.value),j.promise}})},44349:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),d=o(95981),b=o(626),A=o(70487),g=o(56584),L=o(99754),N=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:N},{finally:function(j){var _=A(this,b("Promise")),H=typeof j=="function";return this.then(H?function(R){return g(_,j()).then(function(){return R})}:j,H?function(R){return g(_,j()).then(function(){throw R})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),d=o(626),b=o(19297),A=o(99754),g=o(87524),L=o(88929),N=o(90904),B=o(94431),j=o(10941),_=o(33916),H=o(5743),R=o(81302),X=o(93091),M=o(21385),C=o(70487),V=o(42941).set,J=o(66132),q=o(56584),Q=o(34845),Y=o(69520),fe=o(40002),te=o(45402),ne=o(37252),ye=o(99813),ve=o(23321),de=o(6049),ue=o(53385),oe=ye("species"),De="Promise",Ve=te.get,Le=te.set,ke=te.getterFor(De),rt=b&&b.prototype,Qe=b,Xe=rt,ut=x.TypeError,pt=x.document,yt=x.process,qe=Y.f,lt=qe,vt=!!(pt&&pt.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",dt="unhandledrejection",kt="rejectionhandled",It=0,At=1,jt=2,Nt=1,$t=2,St=!1,Mt,pe,G,K,we=ne(De,function(){var ee=R(Qe)!==String(Qe);if(!ee&&ue===66||v&&!Xe.finally)return!0;if(ue>=51&&/native code/.test(Qe))return!1;var ce=new Qe(function(Te){Te(1)}),Oe=function(Te){Te(function(){},function(){})},Pe=ce.constructor={};return Pe[oe]=Oe,St=ce.then(function(){})instanceof Oe,St?!ee&&ve&&!mt:!0}),Re=we||!M(function(ee){Qe.all(ee).catch(function(){})}),be=function(ee){var ce;return j(ee)&&typeof(ce=ee.then)=="function"?ce:!1},Ae=function(ee,ce){if(!ee.notified){ee.notified=!0;var Oe=ee.reactions;J(function(){for(var Pe=ee.value,Te=ee.state==At,Ge=0;Oe.length>Ge;){var He=Oe[Ge++],it=Te?He.ok:He.fail,gt=He.resolve,Ct=He.reject,Jt=He.domain,Ft,wn,Zr;try{it?(Te||(ee.rejection===$t&&O(ee),ee.rejection=Nt),it===!0?Ft=Pe:(Jt&&Jt.enter(),Ft=it(Pe),Jt&&(Jt.exit(),Zr=!0)),Ft===He.promise?Ct(ut("Promise-chain cycle")):(wn=be(Ft))?wn.call(Ft,gt,Ct):gt(Ft)):Ct(Pe)}catch(On){Jt&&!Zr&&Jt.exit(),Ct(On)}}ee.reactions=[],ee.notified=!1,ce&&!ee.rejection&&Ie(ee)})}},T=function(ee,ce,Oe){var Pe,Te;vt?(Pe=pt.createEvent("Event"),Pe.promise=ce,Pe.reason=Oe,Pe.initEvent(ee,!1,!0),x.dispatchEvent(Pe)):Pe={promise:ce,reason:Oe},!mt&&(Te=x["on"+ee])?Te(Pe):ee===dt&&Q("Unhandled promise rejection",Oe)},Ie=function(ee){V.call(x,function(){var ce=ee.facade,Oe=ee.value,Pe=W(ee),Te;if(Pe&&(Te=fe(function(){de?yt.emit("unhandledRejection",Oe,ce):T(dt,ce,Oe)}),ee.rejection=de||W(ee)?$t:Nt,Te.error))throw Te.value})},W=function(ee){return ee.rejection!==Nt&&!ee.parent},O=function(ee){V.call(x,function(){var ce=ee.facade;de?yt.emit("rejectionHandled",ce):T(kt,ce,ee.value)})},P=function(ee,ce,Oe){return function(Pe){ee(ce,Pe,Oe)}},ie=function(ee,ce,Oe){ee.done||(ee.done=!0,Oe&&(ee=Oe),ee.value=ce,ee.state=jt,Ae(ee,!0))},D=function(ee,ce,Oe){if(!ee.done){ee.done=!0,Oe&&(ee=Oe);try{if(ee.facade===ce)throw ut("Promise can't be resolved itself");var Pe=be(ce);Pe?J(function(){var Te={done:!1};try{Pe.call(ce,P(D,Te,ee),P(ie,Te,ee))}catch(Ge){ie(Te,Ge,ee)}}):(ee.value=ce,ee.state=At,Ae(ee,!1))}catch(Te){ie({done:!1},Te,ee)}}};if(we&&(Qe=function(ce){H(this,Qe,De),_(ce),Mt.call(this);var Oe=Ve(this);try{ce(P(D,Oe),P(ie,Oe))}catch(Pe){ie(Oe,Pe)}},Xe=Qe.prototype,Mt=function(ce){Le(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:It,value:void 0})},Mt.prototype=g(Xe,{then:function(ce,Oe){var Pe=ke(this),Te=qe(C(this,Qe));return Te.ok=typeof ce=="function"?ce:!0,Te.fail=typeof Oe=="function"&&Oe,Te.domain=de?yt.domain:void 0,Pe.parent=!0,Pe.reactions.push(Te),Pe.state!=It&&Ae(Pe,!1),Te.promise},catch:function(ee){return this.then(void 0,ee)}}),pe=function(){var ee=new Mt,ce=Ve(ee);this.promise=ee,this.resolve=P(D,ce),this.reject=P(ie,ce)},Y.f=qe=function(ee){return ee===Qe||ee===G?new pe(ee):lt(ee)},!v&&typeof b=="function"&&rt!==Object.prototype)){K=rt.then,St||(A(rt,"then",function(ce,Oe){var Pe=this;return new Qe(function(Te,Ge){K.call(Pe,Te,Ge)}).then(ce,Oe)},{unsafe:!0}),A(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(ee){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),N(Qe,De,!1,!0),B(De),G=d(De),c({target:De,stat:!0,forced:we},{reject:function(ce){var Oe=qe(this);return Oe.reject.call(void 0,ce),Oe.promise}}),c({target:De,stat:!0,forced:v||we},{resolve:function(ce){return q(v&&this===G?Qe:this,ce)}}),c({target:De,stat:!0,forced:Re},{all:function(ce){var Oe=this,Pe=qe(Oe),Te=Pe.resolve,Ge=Pe.reject,He=fe(function(){var it=_(Oe.resolve),gt=[],Ct=0,Jt=1;X(ce,function(Ft){var wn=Ct++,Zr=!1;gt.push(void 0),Jt++,it.call(Oe,Ft).then(function(On){Zr||(Zr=!0,gt[wn]=On,--Jt||Te(gt))},Ge)}),--Jt||Te(gt)});return He.error&&Ge(He.value),Pe.promise},race:function(ce){var Oe=this,Pe=qe(Oe),Te=Pe.reject,Ge=fe(function(){var He=_(Oe.resolve);X(ce,function(it){He.call(Oe,it).then(Pe.resolve,Te)})});return Ge.error&&Te(Ge.value),Pe.promise}})},7453:(h,I,o)=>{var c=o(76887),v=o(626),x=o(33916),d=o(96059),b=o(10941),A=o(29290),g=o(98308),L=o(95981),N=v("Reflect","construct"),B=L(function(){function H(){}return!(N(function(){},[],H)instanceof H)}),j=!L(function(){N(function(){})}),_=B||j;c({target:"Reflect",stat:!0,forced:_,sham:_},{construct:function(R,X){x(R),d(X);var M=arguments.length<3?R:x(arguments[2]);if(j&&!B)return N(R,X,M);if(R==M){switch(X.length){case 0:return new R;case 1:return new R(X[0]);case 2:return new R(X[0],X[1]);case 3:return new R(X[0],X[1],X[2]);case 4:return new R(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(R,C))}var V=M.prototype,J=A(b(V)?V:Object.prototype),q=Function.apply.call(R,J,X);return b(q)?q:J}})},42355:(h,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),d=o(47457),b=o(49677),A=o(249);function g(L,N){var B=arguments.length<3?L:arguments[2],j,_;if(x(L)===B)return L[N];if(j=b.f(L,N))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(_=A(L)))return g(_,N,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),d=o(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(A){return!!~String(x(this)).indexOf(v(A),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),d="String Iterator",b=v.set,A=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=A(this),N=L.string,B=L.index,j;return B>=N.length?{value:void 0,done:!0}:(j=c(N,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,o)=>{var c=o(66349);c("hasInstance")},35903:(h,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(h,I,o)=>{var c=o(66349);c("iterator")},35824:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),d=o(82529),b=o(55746),A=o(72497),g=o(32302),L=o(95981),N=o(47457),B=o(1052),j=o(10941),_=o(96059),H=o(89678),R=o(74529),X=o(46935),M=o(31887),C=o(29290),V=o(14771),J=o(10946),q=o(684),Q=o(87857),Y=o(49677),fe=o(65988),te=o(36760),ne=o(32029),ye=o(99754),ve=o(68726),de=o(44262),ue=o(27748),oe=o(99418),De=o(99813),Ve=o(11477),Le=o(66349),ke=o(90904),rt=o(45402),Qe=o(3610).forEach,Xe=de("hidden"),ut="Symbol",pt="prototype",yt=De("toPrimitive"),qe=rt.set,lt=rt.getterFor(ut),vt=Object[pt],mt=v.Symbol,dt=x("JSON","stringify"),kt=Y.f,It=fe.f,At=q.f,jt=te.f,Nt=ve("symbols"),$t=ve("op-symbols"),St=ve("string-to-symbol-registry"),Mt=ve("symbol-to-string-registry"),pe=ve("wks"),G=v.QObject,K=!G||!G[pt]||!G[pt].findChild,we=b&&L(function(){return C(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(ee,ce,Oe){var Pe=kt(vt,ce);Pe&&delete vt[ce],It(ee,ce,Oe),Pe&&ee!==vt&&It(vt,ce,Pe)}:It,Re=function(ee,ce){var Oe=Nt[ee]=C(mt[pt]);return qe(Oe,{type:ut,tag:ee,description:ce}),b||(Oe.description=ce),Oe},be=g?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof mt},Ae=function(ce,Oe,Pe){ce===vt&&Ae($t,Oe,Pe),_(ce);var Te=X(Oe,!0);return _(Pe),N(Nt,Te)?(Pe.enumerable?(N(ce,Xe)&&ce[Xe][Te]&&(ce[Xe][Te]=!1),Pe=C(Pe,{enumerable:M(0,!1)})):(N(ce,Xe)||It(ce,Xe,M(1,{})),ce[Xe][Te]=!0),we(ce,Te,Pe)):It(ce,Te,Pe)},T=function(ce,Oe){_(ce);var Pe=R(Oe),Te=V(Pe).concat(ie(Pe));return Qe(Te,function(Ge){(!b||W.call(Pe,Ge))&&Ae(ce,Ge,Pe[Ge])}),ce},Ie=function(ce,Oe){return Oe===void 0?C(ce):T(C(ce),Oe)},W=function(ce){var Oe=X(ce,!0),Pe=jt.call(this,Oe);return this===vt&&N(Nt,Oe)&&!N($t,Oe)?!1:Pe||!N(this,Oe)||!N(Nt,Oe)||N(this,Xe)&&this[Xe][Oe]?Pe:!0},O=function(ce,Oe){var Pe=R(ce),Te=X(Oe,!0);if(!(Pe===vt&&N(Nt,Te)&&!N($t,Te))){var Ge=kt(Pe,Te);return Ge&&N(Nt,Te)&&!(N(Pe,Xe)&&Pe[Xe][Te])&&(Ge.enumerable=!0),Ge}},P=function(ce){var Oe=At(R(ce)),Pe=[];return Qe(Oe,function(Te){!N(Nt,Te)&&!N(ue,Te)&&Pe.push(Te)}),Pe},ie=function(ce){var Oe=ce===vt,Pe=At(Oe?$t:R(ce)),Te=[];return Qe(Pe,function(Ge){N(Nt,Ge)&&(!Oe||N(vt,Ge))&&Te.push(Nt[Ge])}),Te};if(A||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var ce=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Oe=oe(ce),Pe=function(Te){this===vt&&Pe.call($t,Te),N(this,Xe)&&N(this[Xe],Oe)&&(this[Xe][Oe]=!1),we(this,Oe,M(1,Te))};return b&&K&&we(vt,Oe,{configurable:!0,set:Pe}),Re(Oe,ce)},ye(mt[pt],"toString",function(){return lt(this).tag}),ye(mt,"withoutSetter",function(ee){return Re(oe(ee),ee)}),te.f=W,fe.f=Ae,Y.f=O,J.f=q.f=P,Q.f=ie,Ve.f=function(ee){return Re(De(ee),ee)},b&&(It(mt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(vt,"propertyIsEnumerable",W,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:mt}),Qe(V(pe),function(ee){Le(ee)}),c({target:ut,stat:!0,forced:!A},{for:function(ee){var ce=String(ee);if(N(St,ce))return St[ce];var Oe=mt(ce);return St[ce]=Oe,Mt[Oe]=ce,Oe},keyFor:function(ce){if(!be(ce))throw TypeError(ce+" is not a symbol");if(N(Mt,ce))return Mt[ce]},useSetter:function(){K=!0},useSimple:function(){K=!1}}),c({target:"Object",stat:!0,forced:!A,sham:!b},{create:Ie,defineProperty:Ae,defineProperties:T,getOwnPropertyDescriptor:O}),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:P,getOwnPropertySymbols:ie}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(ce){return Q.f(H(ce))}}),dt){var D=!A||L(function(){var ee=mt();return dt([ee])!="[null]"||dt({a:ee})!="{}"||dt(Object(ee))!="{}"});c({target:"JSON",stat:!0,forced:D},{stringify:function(ce,Oe,Pe){for(var Te=[ce],Ge=1,He;arguments.length>Ge;)Te.push(arguments[Ge++]);if(He=Oe,!(!j(Oe)&&ce===void 0||be(ce)))return B(Oe)||(Oe=function(it,gt){if(typeof He=="function"&&(gt=He.call(this,it,gt)),!be(gt))return gt}),Te[1]=Oe,dt.apply(null,Te)}})}mt[pt][yt]||ne(mt[pt],yt,mt[pt].valueOf),ke(mt,ut),ue[Xe]=!0},45915:(h,I,o)=>{var c=o(66349);c("matchAll")},28394:(h,I,o)=>{var c=o(66349);c("match")},61766:(h,I,o)=>{var c=o(66349);c("replace")},62737:(h,I,o)=>{var c=o(66349);c("search")},89911:(h,I,o)=>{var c=o(66349);c("species")},74315:(h,I,o)=>{var c=o(66349);c("split")},63131:(h,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(h,I,o)=>{var c=o(66349);c("toStringTag")},70659:(h,I,o)=>{var c=o(66349);c("unscopables")},54334:(h,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),d=o(24683),b=o(8850),A=o(10941),g=o(45402).enforce,L=o(38019),N=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,_=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},H=h.exports=d("WeakMap",_,b);if(L&&N){j=b.getConstructor(_,"WeakMap",!0),x.REQUIRED=!0;var R=H.prototype,X=R.delete,M=R.has,C=R.get,V=R.set;v(R,{delete:function(J){if(A(J)&&!B(J)){var q=g(this);return q.frozen||(q.frozen=new j),X.call(this,J)||q.frozen.delete(J)}return X.call(this,J)},has:function(q){if(A(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,q)||Q.frozen.has(q)}return M.call(this,q)},get:function(q){if(A(q)&&!B(q)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,q)?C.call(this,q):Q.frozen.get(q)}return C.call(this,q)},set:function(q,Q){if(A(q)&&!B(q)){var Y=g(this);Y.frozen||(Y.frozen=new j),M.call(this,q)?V.call(this,q,Q):Y.frozen.set(q,Q)}else V.call(this,q,Q);return this}})}},89731:(h,I,o)=>{o(47627)},55708:(h,I,o)=>{o(4560)},88731:(h,I,o)=>{o(91302)},30014:(h,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),A=x(d);return(A.error?b.reject:b.resolve)(A.value),b.promise}})},28783:(h,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(h,I,o)=>{var c=o(66349);c("dispose")},65799:(h,I,o)=>{var c=o(66349);c("matcher")},45414:(h,I,o)=>{var c=o(66349);c("metadata")},46774:(h,I,o)=>{var c=o(66349);c("observable")},80620:(h,I,o)=>{var c=o(66349);c("patternMatch")},36172:(h,I,o)=>{var c=o(66349);c("replaceAll")},7634:(h,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),d=o(32029),b=o(12077),A=o(99813),g=A("toStringTag");for(var L in c){var N=v[L],B=N&&N.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,o)=>{var c=o(54493);h.exports=c},62908:(h,I,o)=>{var c=o(12710);h.exports=c},49216:(h,I,o)=>{var c=o(99324);h.exports=c},8065:(h,I,o)=>{var c=o(56043);h.exports=c},57448:(h,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.entries;return b===x||b instanceof Array&&A===x.entries||d.hasOwnProperty(v(b))?c:A}},11955:(h,I,o)=>{var c=o(2480);h.exports=c},61577:(h,I,o)=>{var c=o(32236);h.exports=c},46279:(h,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var A=b.forEach;return b===x||b instanceof Array&&A===x.forEach||d.hasOwnProperty(v(b))?c:A}},33778:(h,I,o)=>{var c=o(58557);h.exports=c},61798:(h,I,o)=>{var c=o(88287);h.exports=c},82073:(h,I,o)=>{var c=o(69601);h.exports=c},2348:(h,I,o)=>{var c=o(18339);h.exports=c},8933:(h,I,o)=>{var c=o(84426);h.exports=c},63383:(h,I,o)=>{var c=o(45999);h.exports=c},86209:(h,I,o)=>{var c=o(73081);h.exports=c},23059:(h,I,o)=>{var c=o(48494);h.exports=c},27460:(h,I,o)=>{var c=o(52956);h.exports=c},72010:(h,I,o)=>{var c=o(32304);h.exports=c},31905:function(){(function(h){var I=function(o){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(te){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(te){return te&&DataView.prototype.isPrototypeOf(te)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(te){return te&&x.indexOf(Object.prototype.toString.call(te))>-1};function b(te){if(typeof te!="string"&&(te=String(te)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(te))throw new TypeError("Invalid character in header field name");return te.toLowerCase()}function A(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var ne={next:function(){var ye=te.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ne[Symbol.iterator]=function(){return ne}),ne}function L(te){this.map={},te instanceof L?te.forEach(function(ne,ye){this.append(ye,ne)},this):Array.isArray(te)?te.forEach(function(ne){this.append(ne[0],ne[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(ne){this.append(ne,te[ne])},this)}L.prototype.append=function(te,ne){te=b(te),ne=A(ne);var ye=this.map[te];this.map[te]=ye?ye+", "+ne:ne},L.prototype.delete=function(te){delete this.map[b(te)]},L.prototype.get=function(te){return te=b(te),this.has(te)?this.map[te]:null},L.prototype.has=function(te){return this.map.hasOwnProperty(b(te))},L.prototype.set=function(te,ne){this.map[b(te)]=A(ne)},L.prototype.forEach=function(te,ne){for(var ye in this.map)this.map.hasOwnProperty(ye)&&te.call(ne,this.map[ye],ye,this)},L.prototype.keys=function(){var te=[];return this.forEach(function(ne,ye){te.push(ye)}),g(te)},L.prototype.values=function(){var te=[];return this.forEach(function(ne){te.push(ne)}),g(te)},L.prototype.entries=function(){var te=[];return this.forEach(function(ne,ye){te.push([ye,ne])}),g(te)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function N(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function B(te){return new Promise(function(ne,ye){te.onload=function(){ne(te.result)},te.onerror=function(){ye(te.error)}})}function j(te){var ne=new FileReader,ye=B(ne);return ne.readAsArrayBuffer(te),ye}function _(te){var ne=new FileReader,ye=B(ne);return ne.readAsText(te),ye}function H(te){for(var ne=new Uint8Array(te),ye=new Array(ne.length),ve=0;ve<ne.length;ve++)ye[ve]=String.fromCharCode(ne[ve]);return ye.join("")}function R(te){if(te.slice)return te.slice(0);var ne=new Uint8Array(te.byteLength);return ne.set(new Uint8Array(te)),ne.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(te){this._bodyInit=te,te?typeof te=="string"?this._bodyText=te:c.blob&&Blob.prototype.isPrototypeOf(te)?this._bodyBlob=te:c.formData&&FormData.prototype.isPrototypeOf(te)?this._bodyFormData=te:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)?this._bodyText=te.toString():c.arrayBuffer&&c.blob&&v(te)?(this._bodyArrayBuffer=R(te.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(te)||d(te))?this._bodyArrayBuffer=R(te):this._bodyText=te=Object.prototype.toString.call(te):this._bodyText="",this.headers.get("content-type")||(typeof te=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(te)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?N(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var te=N(this);if(te)return te;if(this._bodyBlob)return _(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(H(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(te){var ne=te.toUpperCase();return M.indexOf(ne)>-1?ne:te}function V(te,ne){ne=ne||{};var ye=ne.body;if(te instanceof V){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,ne.headers||(this.headers=new L(te.headers)),this.method=te.method,this.mode=te.mode,this.signal=te.signal,!ye&&te._bodyInit!=null&&(ye=te._bodyInit,te.bodyUsed=!0)}else this.url=String(te);if(this.credentials=ne.credentials||this.credentials||"same-origin",(ne.headers||!this.headers)&&(this.headers=new L(ne.headers)),this.method=C(ne.method||this.method||"GET"),this.mode=ne.mode||this.mode||null,this.signal=ne.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(te){var ne=new FormData;return te.trim().split("&").forEach(function(ye){if(ye){var ve=ye.split("="),de=ve.shift().replace(/\+/g," "),ue=ve.join("=").replace(/\+/g," ");ne.append(decodeURIComponent(de),decodeURIComponent(ue))}}),ne}function q(te){var ne=new L,ye=te.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(ve){var de=ve.split(":"),ue=de.shift().trim();if(ue){var oe=de.join(":").trim();ne.append(ue,oe)}}),ne}X.call(V.prototype);function Q(te,ne){ne||(ne={}),this.type="default",this.status=ne.status===void 0?200:ne.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ne?ne.statusText:"OK",this.headers=new L(ne.headers),this.url=ne.url||"",this._initBody(te)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var te=new Q(null,{status:0,statusText:""});return te.type="error",te};var Y=[301,302,303,307,308];Q.redirect=function(te,ne){if(Y.indexOf(ne)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ne,headers:{location:te}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(te){o.DOMException=function(ne,ye){this.message=ne,this.name=ye;var ve=Error(ne);this.stack=ve.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(te,ne){return new Promise(function(ye,ve){var de=new V(te,ne);if(de.signal&&de.signal.aborted)return ve(new o.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function oe(){ue.abort()}ue.onload=function(){var De={status:ue.status,statusText:ue.statusText,headers:q(ue.getAllResponseHeaders()||"")};De.url="responseURL"in ue?ue.responseURL:De.headers.get("X-Request-URL");var Ve="response"in ue?ue.response:ue.responseText;ye(new Q(Ve,De))},ue.onerror=function(){ve(new TypeError("Network request failed"))},ue.ontimeout=function(){ve(new TypeError("Network request failed"))},ue.onabort=function(){ve(new o.DOMException("Aborted","AbortError"))},ue.open(de.method,de.url,!0),de.credentials==="include"?ue.withCredentials=!0:de.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),de.headers.forEach(function(De,Ve){ue.setRequestHeader(Ve,De)}),de.signal&&(de.signal.addEventListener("abort",oe),ue.onreadystatechange=function(){ue.readyState===4&&de.signal.removeEventListener("abort",oe)}),ue.send(typeof de._bodyInit=="undefined"?null:de._bodyInit)})}return fe.polyfill=!0,h.fetch||(h.fetch=fe,h.Headers=L,h.Request=V,h.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=fe,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var o=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=o.DOMException}return x.prototype=o,new x}();(function(x){var d=function(b){var A={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(A.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],N=ArrayBuffer.isView||function(ue){return ue&&L.indexOf(Object.prototype.toString.call(ue))>-1};function B(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function j(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function _(ue){var oe={next:function(){var De=ue.shift();return{done:De===void 0,value:De}}};return A.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function H(ue){this.map={},ue instanceof H?ue.forEach(function(oe,De){this.append(De,oe)},this):Array.isArray(ue)?ue.forEach(function(oe){this.append(oe[0],oe[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(oe){this.append(oe,ue[oe])},this)}H.prototype.append=function(ue,oe){ue=B(ue),oe=j(oe);var De=this.map[ue];this.map[ue]=De?De+", "+oe:oe},H.prototype.delete=function(ue){delete this.map[B(ue)]},H.prototype.get=function(ue){return ue=B(ue),this.has(ue)?this.map[ue]:null},H.prototype.has=function(ue){return this.map.hasOwnProperty(B(ue))},H.prototype.set=function(ue,oe){this.map[B(ue)]=j(oe)},H.prototype.forEach=function(ue,oe){for(var De in this.map)this.map.hasOwnProperty(De)&&ue.call(oe,this.map[De],De,this)},H.prototype.keys=function(){var ue=[];return this.forEach(function(oe,De){ue.push(De)}),_(ue)},H.prototype.values=function(){var ue=[];return this.forEach(function(oe){ue.push(oe)}),_(ue)},H.prototype.entries=function(){var ue=[];return this.forEach(function(oe,De){ue.push([De,oe])}),_(ue)},A.iterable&&(H.prototype[Symbol.iterator]=H.prototype.entries);function R(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function X(ue){return new Promise(function(oe,De){ue.onload=function(){oe(ue.result)},ue.onerror=function(){De(ue.error)}})}function M(ue){var oe=new FileReader,De=X(oe);return oe.readAsArrayBuffer(ue),De}function C(ue){var oe=new FileReader,De=X(oe);return oe.readAsText(ue),De}function V(ue){for(var oe=new Uint8Array(ue),De=new Array(oe.length),Ve=0;Ve<oe.length;Ve++)De[Ve]=String.fromCharCode(oe[Ve]);return De.join("")}function J(ue){if(ue.slice)return ue.slice(0);var oe=new Uint8Array(ue.byteLength);return oe.set(new Uint8Array(ue)),oe.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:A.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:A.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():A.arrayBuffer&&A.blob&&g(ue)?(this._bodyArrayBuffer=J(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||N(ue))?this._bodyArrayBuffer=J(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var ue=R(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?R(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(M)}),this.text=function(){var ue=R(this);if(ue)return ue;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(ue){var oe=ue.toUpperCase();return Q.indexOf(oe)>-1?oe:ue}function fe(ue,oe){oe=oe||{};var De=oe.body;if(ue instanceof fe){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,oe.headers||(this.headers=new H(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!De&&ue._bodyInit!=null&&(De=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new H(oe.headers)),this.method=Y(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&De)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(De)}fe.prototype.clone=function(){return new fe(this,{body:this._bodyInit})};function te(ue){var oe=new FormData;return ue.trim().split("&").forEach(function(De){if(De){var Ve=De.split("="),Le=Ve.shift().replace(/\+/g," "),ke=Ve.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Le),decodeURIComponent(ke))}}),oe}function ne(ue){var oe=new H,De=ue.replace(/\r?\n[\t ]+/g," ");return De.split(/\r?\n/).forEach(function(Ve){var Le=Ve.split(":"),ke=Le.shift().trim();if(ke){var rt=Le.join(":").trim();oe.append(ke,rt)}}),oe}q.call(fe.prototype);function ye(ue,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new H(oe.headers),this.url=oe.url||"",this._initBody(ue)}q.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ye.error=function(){var ue=new ye(null,{status:0,statusText:""});return ue.type="error",ue};var ve=[301,302,303,307,308];ye.redirect=function(ue,oe){if(ve.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:oe,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(oe,De){this.message=oe,this.name=De;var Ve=Error(oe);this.stack=Ve.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function de(ue,oe){return new Promise(function(De,Ve){var Le=new fe(ue,oe);if(Le.signal&&Le.signal.aborted)return Ve(new b.DOMException("Aborted","AbortError"));var ke=new XMLHttpRequest;function rt(){ke.abort()}ke.onload=function(){var Qe={status:ke.status,statusText:ke.statusText,headers:ne(ke.getAllResponseHeaders()||"")};Qe.url="responseURL"in ke?ke.responseURL:Qe.headers.get("X-Request-URL");var Xe="response"in ke?ke.response:ke.responseText;De(new ye(Xe,Qe))},ke.onerror=function(){Ve(new TypeError("Network request failed"))},ke.ontimeout=function(){Ve(new TypeError("Network request failed"))},ke.onabort=function(){Ve(new b.DOMException("Aborted","AbortError"))},ke.open(Le.method,Le.url,!0),Le.credentials==="include"?ke.withCredentials=!0:Le.credentials==="omit"&&(ke.withCredentials=!1),"responseType"in ke&&A.blob&&(ke.responseType="blob"),Le.headers.forEach(function(Qe,Xe){ke.setRequestHeader(Xe,Qe)}),Le.signal&&(Le.signal.addEventListener("abort",rt),ke.onreadystatechange=function(){ke.readyState===4&&Le.signal.removeEventListener("abort",rt)}),ke.send(typeof Le._bodyInit=="undefined"?null:Le._bodyInit)})}return de.polyfill=!0,x.fetch||(x.fetch=de,x.Headers=H,x.Request=fe,x.Response=ye),b.Headers=H,b.Request=fe,b.Response=ye,b.fetch=de,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
47
47
|
`,""]);const A=b},58635:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>V});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=o(61667),A=o.n(b),g=new URL(o(17735),o.b),L=new URL(o(56089),o.b),N=new URL(o(46050),o.b),B=new URL(o(71090),o.b),j=new URL(o(96192),o.b),_=d()(v()),H=A()(g),R=A()(L),X=A()(N),M=A()(B),C=A()(j);_.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+H+")}.CodeMirror-lint-mark-error{background-image:url("+R+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+M+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
48
48
|
`,""]);const V=_},45272:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
49
49
|
`,""]);const A=b},40961:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>A});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
@@ -72,18 +72,18 @@ b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.
|
|
|
72
72
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
73
73
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
74
74
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
-
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(N,B){typeof N=="object"&&N!==null?Array.isArray(N)?L[B]=d(N):v(N)?L[B]=x(N):L[B]=A({},N):L[B]=N}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var A=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),N,B,j;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(H){if(B=b(g,H),N=b(_,H),N!==g)if(typeof N!="object"||N===null){g[H]=N;return}else if(Array.isArray(N)){g[H]=d(N);return}else if(v(N)){g[H]=x(N);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[H]=A({},N);return}else{g[H]=A(B,N);return}})}),g}},36632:(h,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>
|
|
75
|
+
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(N,B){typeof N=="object"&&N!==null?Array.isArray(N)?L[B]=d(N):v(N)?L[B]=x(N):L[B]=A({},N):L[B]=N}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var A=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),N,B,j;return L.forEach(function(_){typeof _!="object"||_===null||Array.isArray(_)||Object.keys(_).forEach(function(H){if(B=b(g,H),N=b(_,H),N!==g)if(typeof N!="object"||N===null){g[H]=N;return}else if(Array.isArray(N)){g[H]=d(N);return}else if(v(N)){g[H]=x(N);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[H]=A({},N);return}else{g[H]=A(B,N);return}})}),g}},36632:(h,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>rd,TryItPanel:()=>cf});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Gr,_areEquals:()=>Tl,applyOperation:()=>ba,applyPatch:()=>wa,applyReducer:()=>ug,deepClone:()=>sg,getValueByPointer:()=>Ol,validate:()=>xp,validator:()=>rf});var v={};o.r(v),o.d(v,{compare:()=>yg,generate:()=>Vc,observe:()=>gg,unobserve:()=>vg});var x={};o.r(x),o.d(x,{cookie:()=>zy,header:()=>Hy,path:()=>jy,query:()=>Vy});var d=o(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function A(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function g(t,r,i){return r&&A(t.prototype,r),i&&A(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function N(){return N=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},N.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}function j(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?B(Object(i),!0).forEach(function(a){L(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function _(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&R(t,r)}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},H(t)}function R(t,r){return R=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},R(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function M(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=M(t,r),a,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)a=p[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function q(t){var r=X();return function(){var a=H(t),s;if(r){var p=H(this).constructor;s=Reflect.construct(a,arguments,p)}else s=a.apply(this,arguments);return J(this,s)}}function Q(t,r){return te(t)||ye(t,r)||ve(t,r)||oe()}function Y(t){return fe(t)||ne(t)||ve(t)||ue()}function fe(t){if(Array.isArray(t))return de(t)}function te(t){if(Array.isArray(t))return t}function ne(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function ye(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],a=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),S;!(a=(S=y.next()).done)&&(i.push(S.value),!(r&&i.length===r));a=!0);}catch(w){s=!0,p=w}finally{try{!a&&y.return!=null&&y.return()}finally{if(s)throw p}}return i}}function ve(t,r){if(!!t){if(typeof t=="string")return de(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return de(t,r)}}function de(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function ue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
76
76
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
77
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=ve(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
78
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,S;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){y=!0,S=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw S}}}}function Ve(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Le=Ve(function(t){function r(k,$){for(var ae=0,re=0;re<k.length;re++)ae=(ae<<5)-ae+k.charCodeAt(re),ae|=0;return $[Math.abs(ae)%$.length]}function i(k,$){var ae=$.namespace;if($.useColors){var re=$.color,le="[3"+(re<8?re:"8;5;"+re),ge=" ".concat(le,";1m").concat(ae," [0m");k[0]=ge+k[0].split(`
|
|
79
79
|
`).join(`
|
|
80
|
-
`+ge)}else k[0]=ae+" "+k[0]}function a(k,$){if(k[0]=($.useColors?"%c":"")+$.namespace,!!$.useColors){var ae="color: "+$.color,re=0,le=0;k[0].replace(/%[a-zA-Z%]/g,function(ge){ge!=="%%"&&(re++,ge==="%c"&&(le=re))}),k.splice(le,0,ae)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch($){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:a}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function S(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$=arguments.length>1?arguments[1]:void 0;return function(){for(var ae=arguments.length,re=new Array(ae),le=0;le<ae;le++)re[le]=arguments[le];k&&re.unshift(k);var ge=$.namespaces.split(",").map(function(Fe){return Fe[Fe.length-1]==="*"?new RegExp("^"+Fe.slice(0,Fe.length-1)+".*$"):new RegExp("^"+Fe+"$")}),he=ge.some(function(Fe){return Fe.test(k)}),Se={color:r(k,$.colors),namespace:k,useColors:$.useColors};if(!1)var xe}}function w(k){return S(k,y())}function E(k){return S(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),ke=Le("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?a:s},Qe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Qe(r),"").replace(/\./,"")},pt=function(r,i){var a=Qe(i),s=ut(i),p=a?Ze(r,a):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},yt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return y===S.length-1?(s[p]=a,s[p]):s[p]===void 0?(Number.isInteger(+S[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+S[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return s===void 0?s:(y===S.length-1&&(delete s[p],a=!0),s[p])},r),a},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return s===void 0?s:(y===S.length-1&&Array.isArray(s)&&(a=s.splice(p,1)),s[p])},r),a},vt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},mt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},dt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return vt(i).length===0}},{key:"get",value:function(i,a){var s=Ze(i,a);return s}},{key:"has",value:function(i,a){return pt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)ke("SETTING",a,s),yt(i,a,s);else if(mt(a)&&t.get(i,a)!==void 0){ke("Special case SETTING",a,"to undefined"),yt(i,a,void 0);var p=rt(a);p=p.slice(0,p.length-1),kt(i,p)}else!mt(a)&&t.get(i,a)!==void 0&&(ke("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){ke("DELETE",a),mt(a)?(ke("ARRAY",a),this.pullOut(i,a)):qe(i,a);var s=rt(a);s=s.slice(0,s.length-1),kt(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),p=s[s.length-1];s=s.slice(0,s.length-1),ke("Pulling out:",s,"index",p);var y=Ze(i,s);ke("Array",y),Array.isArray(y)&<(y,p),kt(i,s)}}]),t}();function kt(t,r){if(r.length!==0){var i=Ze(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&qe(t,r),kt(t,r.slice(0,r.length-1))}}var It=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),St=d.createContext({}),Vt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Nt=d.createContext(),Gt=d.createContext(),wt=d.createContext(),Mt=d.createContext(),pe=d.createContext(),G=d.createContext(),K=d.createContext(),we=d.createContext();function Re(){var t=(0,d.useContext)(Vt);return t}function be(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),a=(0,d.useState)(t),s=Q(a,2),p=s[0],y=s[1];r.current=p;var S=function(k){r.current=k,i.current&&y(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,S,w]}var Ae=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},T=function(r){var i={};if(r.inner){if(r.inner.length===0){dt.set(i,r.path,r.message);return}var a=De(r.inner),s;try{for(a.s();!(s=a.n()).done;){var p=s.value;dt.get(i,p.path)||dt.set(i,p.path,p.message)}}catch(y){a.e(y)}finally{a.f()}}return i},Ie=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=T(s);return a}},W=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},O=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return W(a)}},P=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,S=s.keyword,w=s.params,E=y;S==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),dt.set(a,E,p)}),a},ie=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,a=r=="x"?i:i&3|8;return a.toString(16)})},D=function(r,i){var a;return function(){for(var p=arguments.length,y=new Array(p),S=0;S<p;S++)y[S]=arguments[S];var w=function(){clearTimeout(a),r.apply(void 0,y)};clearTimeout(a),a=setTimeout(w,i)}},ee=function(r,i,a){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],S=i["ui:before"],w=i["ui:after"],E=i.oneOf,k=i.items,$=i.enum,ae=i.title,re=i.minimum,le=i.maximum,ge=i.minLength,he=i.maxLength,Se=i.pattern,xe=i.type,Fe=i.properties,Ke=ie();y&&y.id&&(Ke=y.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:xe,uiBefore:S,uiAfter:w,properties:xe==="object"?Fe:void 0,items:xe==="array"?k:void 0,props:j(j({label:ae,id:Ke,min:re,max:le,minLength:ge,maxLength:he,pattern:Se},p),y)};if(E){var $e=i.oneOf.map(function(We){var Xe=We["input:props"],ze=Xe===void 0?{}:Xe;return j({value:We.const,label:We.title},ze)});Ue.props.options=$e}if($){var Be=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Be}if(k&&k.oneOf){var je=k.oneOf.map(function(We){var Xe=We["input:props"],ze=Xe===void 0?{}:Xe;return j({value:We.const,label:We.title},ze)});Ue.props.options=je}return Ue},ce=function(r,i,a){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,S=r.propertyOrder,w=S===void 0?[]:S;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(k,$){var ae=w.indexOf(k),re=w.indexOf($);return(ae>-1?ae:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var $=p[k],ae=ee(k,$,a);return ae});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},Oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Pe=function(r,i){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Te=function(r,i){for(var a=0,s=-1,p=!0;p&&a<r.length;)r[a]==i[a]?s=a:p=!1,a=a+1;return s},Ge=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=Pe(i,a),p=s.findIndex(function(he){return typeof he!="string"}),y=s.length-Y(s).reverse().findIndex(function(he){return typeof he!="string"}),S=[],w=a.split(""),E=0,k=0,$=Te(s.slice(0,p),w.slice(0,p));$>-1&&(E=$+1,S=S.concat(s.slice(0,$+1)),k=$+1),$<0&&(S=S.concat(s.slice(0,p)),k=p);for(var ae=k;ae<s.length;ae++){var re=s[ae];if(E!=w.length){var le=w[E];if(typeof re=="function")S.push(re(le)),E=E+1;else{var ge=typeof re=="string"?re===le:re.test(le);ge&&typeof re=="string"?(S.push(re),E=E+1):!ge&&typeof re=="string"?E!=w.length&&S.push(re):ge&&typeof re!="string"?(S.push(le),E=E+1):!ge&&typeof re!="string"&&(E=E+1,ae=ae-1)}}else if(typeof re=="string"&&ae>=y)S.push(re);else break}return{value:S.join(""),offset:a?S.length-a.length:0}},He=function(r,i){var a,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),S=(a=(s=y.formatToParts(.1).find(function(he){var Se=he.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(he,Se){return he instanceof RegExp&&Se instanceof RegExp&&he.source===Se.source&&he.global===Se.global&&he.ignoreCase===Se.ignoreCase&&he.multiline===Se.multiline}function E(he,Se){for(var xe=he.length;xe--;)if(Se(he[xe]))return xe;return-1}function k(he,Se,xe){var Fe=Y(he);return Array.isArray(xe)?Fe.splice.apply(Fe,[Se,0].concat(Y(xe))):Fe.splice(Se,0,xe),Fe}function $(he){return"".concat(he).replace(/\D/g,"")}function ae(he){return"".concat(he).split(S).map(function(Se){return $(Se)}).join(".")}function re(he){if(typeof he=="number")return he;var Se=parseFloat(ae(he));return Number.isNaN(Se)?void 0:Se}function le(he){var Se=ae(he),xe="".concat(Se).split(".")[1],Fe=p.formatToParts(Number(Se));xe==="0"&&Fe.push({type:"decimal",value:S},{type:"fraction",value:xe});var Ke=Fe.reduce(function(Be,je){var We=je.type,Xe=je.value;return["decimal","fraction"].includes(We)&&xe==null?Be:["integer","fraction"].includes(We)?[].concat(Y(Be),Y(Xe.split("").filter(function(ze,et){return We==="fraction"?et<xe.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Be),Y(Xe.split(""))):[].concat(Y(Be),[Xe])},[]),Ue=E(Ke,function(Be){return w(Be,/\d/)});Ke.indexOf(S)===-1&&"".concat(he).indexOf(S)!==-1&&(Ke=k(Ke,Ue+1,[S,"[]"]),Ue+=2);var $e=Ke.slice(Ue+1).join("");return Ke=[].concat(Y(Ke.slice(0,Ue+1)),[$e]),Ke}var ge=function(Se){if(Se!=null)return re(Se)};return{formatter:le,parser:ge}},it=Object.freeze({__proto__:null,getChildDisplayName:Ae,yupToFormErrors:T,validateYupSchema:Ie,yupToFormError:W,validateYupField:O,validateAjvSchema:P,uuidv4:ie,debounce:D,computeFieldFromProperty:ee,computeFieldsFromSchema:ce,getSchemaPathFromJsonPath:Oe,informedFormat:Ge,createIntlNumberFormatter:He}),gt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Ct=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=be(0),S=Q(y,3),w=S[0],E=S[1],k=S[2],$=be(0),ae=Q($,3),re=ae[0],le=ae[1],ge=ae[2];return gt(function(){if(a.current!=null&&k()){var he=k()+ge();ge()!=0&&p?a.current.setSelectionRange(he+1,he+1):p&&a.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:le,setCursor:E,cursor:w,getCursor:k,cursorOffset:re}},Kt=function(r,i){var a=(0,d.useRef)(!0),s=a.current;(0,d.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Ft=Le("informed:useField "),Sn=function(r,i,a,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(a&&!s){var y=Ge(r,a);return y.value}return r}},qr=function(r,i,a,s){if(i&&a)return i(r);if(s){var p=Ge(r,s);return p.value}return r},Pn=function(r,i,a){var s=a.required;if(r||i)return function(p,y){if(i)return O(i,p);if(r)return r(p,y)};if(s)return function(p){return In(p,s)}},$i=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,S=function(E){return a(E)};return(i==="text"||i==="textArea"||i==="number")&&(S=function(E){return a(E.target.value,E)}),i==="select"&&(S=function(){var E=Array.from(y.current).filter(function(k){return k.selected}).map(function(k){return k.value});a(p?E:E[0]||"")}),i==="checkbox"&&(S=function(E){a(E.target.checked),s&&s(E)}),function(w){S(w)}},jr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},Bn=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},$n=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},In=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Kn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,a=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,S=t.maskWithCursorOffset,w=t.format,E=t.parse,k=t.formatter,$=t.parser,ae=t.initialValue,re=t.validateOnChange,le=t.validateOnBlur,ge=t.validateOnMount,he=t.asyncValidateOnBlur,Se=t.maskOnBlur,xe=t.allowEmptyString,Fe=t.onValueChange,Ke=t.notify,Ue=t.keepState,$e=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Xe=t.fieldType,ze=t.multiple,et=t.onChange,bt=t.onBlur,Dt=t.formController,Ht=t.relevant,sr=t.required,Lr=t.keepStateIfRelevant,Or=t.initialize,Yr=t.formatterDependencies,br=Yr===void 0?[]:Yr,Ur=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wn=(0,d.useState)(ie()),Jt=Q(wn,1),Rt=Jt[0],Bt=(0,d.useContext)(It),lr=(0,d.useContext)(we),an=lr||Lr,hr=Re(),ys=(0,d.useRef)(),Fl=(0,d.useRef)(!0),va=(0,d.useRef)(),zi=(0,d.useRef)(!1),kl=function(){return!zi.current},yf=function(){return zi.current};Dt&&(Bt=Dt.updater,hr=Dt.getFormApi());var bi=Pn(a,p,{required:sr}),Rl=(0,d.useState)(function(){return Bt.getInitialValue(i)}),vm=Q(Rl,1),gm=vm[0],mf=Bt.getSavedValue(i),xf,oh;(Ue||an)&&mf?(Ft("Setting field ".concat(bd,"'s kept state"),mf),xf=mf.value,oh=mf.touched,hr.removeSavedState(bd)):ae!=null?xf=ae:xf=gm;var ym=be(Sn(xf,y,k,$,Or)),ad=Q(ym,3),Ml=ad[0],sd=ad[1],mm=ad[2],xm=be(ge?bi(Ml):void 0),ld=Q(xm,3),ah=ld[0],sh=ld[1],bm=ld[2],wm=be(oh),ud=Q(wm,3),lh=ud[0],Sm=ud[1],uh=ud[2],Am=(0,d.useState)(function(){return qr(Ml,w,E,k)}),fh=Q(Am,2),fd=fh[0],cd=fh[1],ch=(0,d.useRef)();ch.current=fd;var dh=(0,d.useRef)(ae),ga=(0,d.useRef)(i),ph=(0,d.useRef)();dh.current=ae,ga.current=i;var Em=(0,d.useRef)(null),Gi=d.useMemo(function(){return r||Em},[]),dd=Ct({value:Ml,inputRef:Gi,maintainCursor:!!$e}),pd=dd.getCursor,Cm=dd.setCursor,hd=dd.setCursorOffset,Om=function(){return!0},vd=function(ur){var sn=Ht||Om,Dn=hr.getFullField(ga.current)||ga.current,Xt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,Nl){return dt.get(Nn,Nl)}};return lr&&lr.relevant?sn(ur,Xt)&&lr.relevant(ur,Xt):sn(ur,Xt)},Tm=be(vd(hr.getValues())),gd=Q(Tm,3),bf=gd[0],Pm=gd[1],hh=gd[2],Im=function(ur){return lr&&lr.relevant?lr.relevant(ur):!0},Fm=function(){var ur=vd(hr.getValues()),sn=hh();return ur!=sn&&Pm(ur),ur};(0,d.useEffect)(function(){!bf&&!Ue&&ys.current.reset()},[bf]);var ai=function(){return je?hr.getDerrivedValue(i):mm()},Ll=function(ur){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=sn.preventUpdate;We&&hr.getStep()<We?(Ft("Setting ".concat(i,"'s error to undefined as we are not at that step")),sh(void 0),Bt.setError(Rt,void 0,!Dn)):(Ft("Setting ".concat(i,"'s error to ").concat(ur)),sh(ur),Bt.setError(Rt,ur,!Dn))},yd=function(ur,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=ur;zi.current=!0,Ft("Setting ".concat(i," to ").concat(Xt)),Or&&(Xt=Or(Xt));var ya=hr.getOptions(),Nn=Xt;if(Xt===""&&!xe&&!Dn.allowEmptyString&&!ya.allowEmptyStrings&&(Xt=void 0),(t.type==="number"||Xe==="number")&&Xt!==void 0&&(Xt=+Xt),sn&&sn.target&&sn.target.selectionStart&&Cm(sn.target.selectionStart),y&&!Se&&(Nn=y(Xt,pd()),Xt=y(Xt,pd())),S&&!Se){var Nl=S(Xt,pd());Nn=Nl.value,Xt=Nl.value,hd(Nl.offset)}if(w&&E&&(Xt=E(Xt),Nn=w(Xt)),k){var vh=Ge(Xt,k);hd(vh.offset),Nn=vh.value,Xt=Nn}$&&(Xt=Xt!=null?$(Xt):Xt),bi&&re&&!Dn.initial&&(Ft("Validating after change ".concat(i," ").concat(Xt)),Ll(bi(Xt,hr.getValues()))),sd(Xt),cd(Nn),Fe&&Fe(Xt),Bt.setValue(Rt,Xt,!Dn.preventUpdate)};Kt(function(){ys.current.setValue(ch.current)},Y(br));var md=function(ur,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Dn.preventUpdate;if(Ft("Field ".concat(i," has been touched")),bi&&le&&!sn&&ur&&(Ft("Validating after blur ".concat(i," ").concat(ai())),Ll(bi(ai(),hr.getValues()))),s&&he&&!sn&&ur&&(Ft("Validating async after blur ".concat(i," ").concat(ai())),s(ai(),hr.getValues())),y&&Se){var ya=y(ai());sd(ya),cd(ya),Fe&&Fe(ya),Bt.setValue(Rt,ya,!Xt)}if(S&&Se){var Nn=S(ai());hd(Nn.offset),sd(Nn.value),cd(Nn.value),Fe&&Fe(Nn.value),Bt.setValue(Rt,Nn.value,!Xt)}Sm(ur),Bt.setTouched(Rt,ur,!Xt)},km=function(){var ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=ur.preventUpdate,Dn=Sn(dh.current||Bt.getInitialValue(ga.current),y,k,$,Or);yd(Dn,null,{initial:!0,preventUpdate:sn}),Ll(ge?bi(Dn):void 0,{preventUpdate:sn}),md(void 0,!0,{preventUpdate:sn}),zi.current=!1},Rm=function(ur){bi&&(Ft("Field validating ".concat(i," ").concat(ai())),Ll(bi(ai(),ur||hr.getValues())))},Mm=function(ur){s&&(Ft("Field async validating ".concat(i," ").concat(ai())),s(ai(),ur||hr.getValues()))},xd={setValue:yd,setTouched:md,setError:Ll,reset:km,validate:Rm,asyncValidate:Mm,getValue:ai,getTouched:uh,getError:bm,getIsRelevant:hh,getDirty:yf,getPristine:kl,getFieldState:function(){return{value:ai(),touched:uh(),dirty:yf(),pristine:kl()}},relevant:vd,multistepRelevant:Im,checkRelevant:Fm};ys.current=xd;var Dl={value:Ml,error:ah,touched:lh,maskedValue:fd,isRelevant:bf,dirty:zi.current,pristine:!zi.current};je&&(Dl={error:ah,touched:lh}),Ft("Render",hr.getFullField(i),Dl),gt(function(){var _r=hr.getFullField(ga.current);return Ft("Register",Rt,ga.current),va.current={field:_r,fieldId:Rt,fieldApi:xd,fieldState:Dl,notify:Ke,keepState:Ue,inMultistep:an,shadow:je},Bt.register(Rt,va.current),function(){var ur=hr.getFullField(ga.current);Ft("Deregister",Rt,ur),Bt.deregister(Rt)}},[]),(0,d.useEffect)(function(){var _r=hr.getFullField(i);return Fl.current?Fl.current=!1:(Ft("Update",i,an),va.current.field=_r,Bt.update(Rt,va.current,ph.current)),function(){ph.current=_r}},[i]),gt(function(){Be&&Gi&&(Gi.current.style.border="5px solid orange",setTimeout(function(){Gi.current.style.borderWidth="2px",Gi.current.style.borderStyle="inset",Gi.current.style.borderColor="initial",Gi.current.style.borderImage="initial"},500))});var Lm=[].concat(Y(Object.values(Dl)),Y(Object.values(t)),Y(Object.values(Ur))),Dm=function(ur){return(0,d.useMemo)(function(){return bf?ur:null},Y(Lm))},bd=i,Nm=$i({fieldType:Xe,setValue:yd,onChange:et,multiple:ze,ref:Gi}),Bm=jr({setTouched:md,onBlur:bt}),Um=Bn({fieldType:Xe,maskedValue:fd,multiple:ze,value:Ml}),jm=$n(Xe);return{fieldState:Dl,fieldApi:xd,render:Dm,ref:Gi,userProps:j(j({},Ur),{},{multiple:ze,onChange:et,onBlur:bt,id:Ur.id||Rt}),informed:j({name:bd,multiple:ze,onChange:Nm,onBlur:Bm,value:Um,ref:Gi,type:jm,id:Ur.id||Rt},Ur)}}var vn=function(r){var i=d.forwardRef(function(a,s){var p=Kn(a,s),y=p.fieldState,S=p.fieldApi,w=p.render,E=p.ref,k=p.userProps;return w(d.createElement(r,N({fieldApi:S,fieldState:y,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},k)))});return i.displayName="asField(".concat(Ae(r),")"),i},ma=Le("informed:Text "),Lo=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ae=s.forwardedRef,re=s.debug,le=s.label,ge=s.title,he=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return ma("Render",k),gt(function(){re&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),d.createElement(d.Fragment,null,le?d.createElement("label",{htmlFor:he}," ",le," "):null,d.createElement("input",N({},Se,{id:he,name:k,ref:ae,value:!p&&p!==0?"":p,onChange:function(Fe){y(Fe.target.value,Fe),w&&w(Fe)},onBlur:function(Fe){S(!0),E&&E(Fe)}})))},An=vn(Lo),Yn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ae=s.forwardedRef,re=s.debug,le=s.label,ge=s.id,he=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return gt(function(){re&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),d.createElement(d.Fragment,null,le?d.createElement("label",{htmlFor:ge}," ",le," "):null,d.createElement("textarea",N({},he,{id:ge,name:k,ref:ae,value:p||"",onChange:function(xe){y(xe.target.value,xe),w&&w(xe)},onBlur:function(xe){S(!0),E&&E(xe)}})))},wi=vn(Yn),Ki=Le("informed:Select "),Un=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,y=i.setTouched,S=s.onChange,w=s.onBlur,E=s.field,k=s.initialValue,$=s.options,ae=s.children,re=s.forwardedRef,le=s.debug,ge=s.multiple,he=s.label,Se=s.id,xe=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Fe=(0,d.useRef)(),Ke=function($e){var Be=Array.from((re||Fe).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ge?Be:Be[0]||""),S&&$e&&S($e)};return gt(function(){le&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),Ki("Render",E,p),d.createElement(d.Fragment,null,he?d.createElement("label",{htmlFor:Se}," ",he," "):null,d.createElement("select",N({},xe,{id:Se,multiple:ge,name:E,ref:re||Fe,value:p||(ge?[]:""),onChange:Ke,onBlur:function($e){y(!0),w&&w($e)}}),$?$.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ae))},Si=vn(Un),xa=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ae=s.debug,re=s.forwardedRef,le=s.id,ge=s.label,he=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:le}," ",ge," "):null,d.createElement("input",N({},he,{id:le,name:k,ref:re,checked:!!p,onChange:function(xe){y(xe.target.checked),w&&w(xe)},onBlur:function(xe){S(!0),E&&E(xe)},type:"checkbox"})))},Fn=vn(xa),En=function(r){return d.forwardRef(function(i,a){return d.createElement(Nt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,N({radioGroupApi:p,radioGroupState:y,ref:a},i))})})},Ai=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=a.value,y=i.setValue,S=i.setTouched,w=i.onChange,E=i.onBlur,k=s.value,$=s.onChange,ae=s.onBlur,re=s.field,le=s.initialValue,ge=s.forwardedRef,he=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",N({},he,{name:re,ref:ge,value:k,checked:p===k,onChange:function(xe){!xe.target.checked||(y(k),$&&$(xe),w&&w(xe))},onBlur:function(xe){S(!0),ae&&ae(xe),E&&E(xe)},type:"radio"}))},gr=En(Ai),At=function(t){_(i,t);var r=q(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(Nt.Provider,{value:this.groupContext},p?p.map(function(S){return d.createElement("label",{key:S.value},S.label," ",d.createElement(gr,{value:S.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),si=vn(At);function Ei(){return(0,d.useContext)(wt)}var Cn=function(){var r=Ei(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function qt(){return(0,d.useContext)(Mt)}var jn=function(){var r=qt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Jn=Le("informed:useArrayField "),ho=function(r){var i=r.field,a=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),S=Re(),w=(0,d.useState)(new Map),E=Q(w,1),k=E[0],$=(0,d.useContext)(It),ae=S.getFullField(i),re=$.getInitialValue(i)||a||[],le=S.getSavedValue(ae)&&S.getSavedValue(ae).value,ge=be(le||re),he=Q(ge,3),Se=he[0],xe=he[1],Fe=he[2],Ke=Se?Se.map(function(){return ie()}):[],Ue=be(Ke),$e=Q(Ue,3),Be=$e[0],je=$e[1],We=$e[2],Xe=(0,d.useMemo)(function(){return function(Jt,Rt){var Bt=We()==null?0:We().length;return s?s(Jt,Bt,Rt):void 0}}),ze=Kn(j({field:i,validate:s?Xe:void 0,shadow:!0},y)),et=ze.fieldApi;gt(function(){var Jt=function(Bt){Bt!==ae&&(Jn("".concat(ae," changed")),RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Bt)&&et.validate())};return S.emitter.on("value",Jt),function(){S.emitter.removeListener("value",Jt)}},[i]);var bt=function(Rt){Jn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Be.length-1,"]")),$.expectRemoval("".concat(i,"[").concat(Rt,"]")),$.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var Bt=Be.slice(0,Rt).concat(Be.slice(Rt+1,Be.length));je(Bt);var lr=Fe(),an=lr.slice(0,Rt).concat(lr.slice(Rt+1,lr.length));xe(an)},Dt=function(Rt,Bt){Jn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Bt,"]"));var lr=Y(Be);Be[Rt]&&Be[Bt]?(lr[Rt]=Be[Bt],lr[Bt]=Be[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Bt," but one of them does not exist :(")),je(lr)},Ht=function(){Be.push(ie()),je(Y(Be))},sr=function(Rt){Be.push(ie()),je(Y(Be));var Bt=Y(Fe());Bt[Be.length-1]=Rt,xe(Bt)},Lr=function(){var Rt=$.getInitialValue(i)||a||[];xe(Rt);var Bt=Rt?Rt.map(function(){return ie()}):[];je(Bt)},Or=Be.map(function(Jt,Rt){var Bt={remove:function(){return bt(Rt)}},lr={initialValue:Se&&Se[Rt],key:Jt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Bt,arrayFieldItemState:lr},Bt),lr)}),Yr={add:Ht,swap:Dt,addWithInitialValue:sr,reset:Lr};p&&(p.current=Yr);var br={fields:Or,field:i},Ur=j(j({},$),{},{register:function(Rt,Bt){k.set(Rt,Bt);for(var lr=arguments.length,an=new Array(lr>2?lr-2:0),hr=2;hr<lr;hr++)an[hr-2]=arguments[hr];$.register.apply($,[Rt,Bt].concat(an))},deregister:function(Rt){k.delete(Rt);for(var Bt=arguments.length,lr=new Array(Bt>1?Bt-1:0),an=1;an<Bt;an++)lr[an-1]=arguments[an];$.deregister.apply($,[Rt].concat(lr))},getInitialValue:function(Rt){if(RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Rt)){var Bt=Rt.replace(i,""),lr=dt.get(Fe(),Bt);return Jn("Resetting ".concat(Bt," to ").concat(lr)),lr}return $.getInitialValue(Rt)}}),wn=function(Rt){return d.createElement(It.Provider,{value:Ur},d.createElement(wt.Provider,{value:Yr},d.createElement(Gt.Provider,{value:br},Rt)))};return{render:wn,add:Ht,swap:Dt,addWithInitialValue:sr,fields:Or,arrayFieldState:br,arrayFieldApi:Yr,field:i}},nt=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Re(),i=(0,d.useMemo)(function(){return nt(t,r)},[t]);return i}function li(){var t=(0,d.useContext)(St);return t}var se=function(r){var i=r.when,a=r.children,s=li(),p=i(s);return p?a:null},Ee=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),p=Re();if(i){var y=p.getFullField(a),S={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(k,$){return dt.get(k,$)}},w=function(k){var $=k.values;return i($,S)};return d.createElement(se,{when:w},d.createElement(_e,N({field:a},s)))}else return d.createElement(_e,N({field:a},s))},_e=function(r){var i=r.children,a=C(r,["children"]),s=ho(a),p=s.render,y=s.arrayFieldState,S=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:S,arrayFieldState:y},S),y)):i)},ot=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(It),y=Re(),S=(0,d.useState)(0),w=Q(S,2),E=w[0],k=w[1],$=(0,d.useState)(new Map),ae=Q($,1),re=ae[0],le=i.field,ge=Lt(le),he=function(){var Be=y.getState(),je=Be.values,We=Be.errors,Xe=Be.touched,ze={values:dt.get(je,le),errors:dt.get(We,le),touched:dt.get(Xe,le)};return ze};(0,d.useEffect)(function(){var $e=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===le&&k(Math.random())};return y.emitter.on("value",$e),function(){y.emitter.removeListener("value",$e)}},[le]);var Se=function(){re.forEach(function(Be){Be.fieldApi.reset()})},xe=he(),Fe=j(j({},p),{},{register:function(Be,je,We){re.set(Be,je),p.register(Be,je,We)},deregister:function(Be){re.delete(Be);for(var je=arguments.length,We=new Array(je>1?je-1:0),Xe=1;Xe<je;Xe++)We[Xe-1]=arguments[Xe];p.deregister.apply(p,[Be].concat(We))}}),Ke=j(j(j({},a),ge),{},{reset:Se}),Ue=j(j({},i),xe);return typeof s=="function"?d.createElement(It.Provider,{value:Fe},d.createElement(Mt.Provider,{value:Ke},d.createElement(pe.Provider,{value:Ue},s(j(j({arrayFieldItemApi:Ke,arrayFieldItemState:Ue},Ke),Ue))))):d.createElement(It.Provider,{value:Fe},d.createElement(Mt.Provider,{value:Ke},d.createElement(pe.Provider,{value:Ue},s)))};Ee.Items=function(t){var r=t.children,i=(0,d.useContext)(Gt),a=i.fields;return a.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,S=p.key;return d.createElement(ot,{key:S,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,a=(0,d.useContext)(It),s=a.fieldMap;return i?i.map(function(p,y){var S=p["ui:control"],w=s[S];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},$t=Le("informed:FormFields "),Qt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(It),y=p.fieldMap,S=(0,d.useMemo)(function(){var w=ce(i,s,a),E=w.map(function(k,$){var ae=k.field,re=k.props,le=k.type,ge=k.properties,he=k.items,Se=k.componentType,xe=k.uiBefore,Fe=k.uiAfter,Ke=k.allOf,Ue=y[Se];return $t("Rendering Field",ae,k),!Ue&&le==="object"&&ge?d.createElement(t,{schema:k,prefix:ae,key:"ScheamField-".concat($)}):!Ue&&le==="array"&&he?d.createElement(Tr,N({key:"ScheamField-".concat($),field:ae,items:he,uiBefore:xe,uiAfter:Fe},re)):Ue&&Se==="array"&&he&&le==="array"?d.createElement(Ue,N({key:"ScheamField-".concat($),field:ae,items:he,uiBefore:xe,uiAfter:Fe},re)):Se==="conditionals"?Ke.map(function($e){var Be=$e.then,je=$e.if.properties,We=function(ze){var et=ze.values;return Object.keys(je).every(function(bt){var Dt=je[bt];return et[bt]===Dt.const})};return d.createElement(se,{key:"ScheamField-".concat($),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,N({key:"ScheamField-".concat($),field:ae},re)):null});return E},[i,a]);return S},Tr=function(r){var i=r.field,a=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ee,N({field:i},y),d.createElement(st,{components:s}),d.createElement(Ee.Items,null,function(S){var w=S.field;return d.createElement(d.Fragment,null,d.createElement(st,{components:a["ui:before"]}),d.createElement(Qt,{schema:a,prefix:w}),d.createElement(st,{components:a["ui:after"]}))}),d.createElement(st,{components:p}))},Pr={select:Si,input:An,textarea:wi,checkbox:Fn,radio:si,add:Cn,remove:jn,array:Tr},er=Le("informed:Controller "),Bl=function(r,i){var a=Object.keys(i).find(function(p){return r.includes(p)});if(!!a){var s=r.slice(0,a.length);return s===a}},en=function(){},ms=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var a=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=p||Pr,this.fieldsById=new Map,this.fieldsByName={get:function(S){var w;return r.fieldsById.forEach(function(E){E&&E.field===S&&(w=E)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:en,setTouched:en,setError:en,reset:en,validate:en,getValue:en,getTouched:en,getError:en,getFieldState:en,checkRelevant:en,getPristine:en,getDirty:en}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);k.shadow||dt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||dt.delete(r.state.values,k.field),r.fieldsById.forEach(function($){var ae=$.fieldApi.checkRelevant();(!$.fieldApi.multistepRelevant(r.state.values)||!ae&&!$.keepState)&&(dt.delete(r.state.values,$.field),dt.delete(r.state.touched,$.field),dt.delete(r.state.errors,$.field))}),E&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&dt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&dt.set(r.state.touched,k.field,k.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",k.field))},setError:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&dt.set(r.state.errors,k.field,k.fieldApi.getError());var $=dt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof $=="string")&&dt.set(r.state.errors,k.field,k.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",k.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),p=1;p<a;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.forEach(function(S){return S.apply(void 0,s)})}},{key:"on",value:function(i,a){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(a)}},{key:"removeListener",value:function(i,a){var s=this.subscriptions.get(i);s.delete(a)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,a,s){this.getField(i).fieldApi.setValue(a,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,a){this.getField(i).fieldApi.setTouched(a)}},{key:"setError",value:function(i,a){this.getField(i).fieldApi.setError(a)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,a){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(er("Submit",this.state),this.emit("submit")):(er("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,a){dt.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return er("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var a=this.getValues();return dt.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return er("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return er("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return er("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return er("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return er("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return er("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return er("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return er("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.get(this.savedValues,"shadow-".concat(i)):dt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.delete(this.savedValues,"shadow-".concat(i)):dt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return dt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){er("Getting Field",i);var a=this.fieldsByName.get(i);return a||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var a=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(i),S="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=a.getField(S);w&&(er("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(dt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!dt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){er("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){er("Setting values"),this.fieldsById.forEach(function(a){var s=dt.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;er("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Ie(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(dt.has(s,w.field)){var E=dt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=P(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(dt.has(p,w.field)){var E=dt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(a),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(a);this.setFormError(y)}if(this.options.validateFields){var S=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(dt.has(S,w.field)){var E=dt.get(S,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){er("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(er("Submit",this.state),this.emit("submit")):(er("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(a){i.emit("field",a.field)})}},{key:"register",value:function(i,a,s){var p=a.field,y=a.state;er("Register ID:",i,"Name:",p,y,"Initial",s);var S=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,k){E&&E.field===p&&(w=k)}),w&&(a.keepState||a.inMultistep)?(er("Already Registered",p),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),er("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),er("clearing expected removal",S),delete this.expectedRemovals[S],delete this.pulledOut[S],!a.shadow&&(this.updater.setValue(i,a.fieldApi.getValue(),!1),this.updater.setError(i,a.fieldApi.getError(),!1),this.updater.setTouched(i,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;er("Deregister",i,s),delete this.onScreen[i];var p=Bl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!p&&(er("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?dt.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):dt.set(this.savedValues,s,a.fieldApi.getFieldState())),(p||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(er("Removing field",s),this.fieldsById.delete(i),p||(dt.delete(this.state.values,s),dt.delete(this.state.touched,s),dt.delete(this.state.errors,s),a.shadow?dt.delete(this.savedValues,"shadow-".concat(s)):dt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(er("Pulling out",s,"with magic value",y),dt.pullOut(this.state.values,y),dt.pullOut(this.state.touched,y),dt.pullOut(this.state.errors,y),dt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){er("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){er("Update",i,a.field,s,a.fieldState.value);var p=a.fieldApi.getValue(),y=a.fieldApi.getError(),S=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(dt.set(this.state.values,s),dt.set(this.state.errors,s),dt.set(this.state.touched,s)),dt.set(this.state.values,a.field,p),dt.set(this.state.errors,a.field,y),dt.set(this.state.touched,a.field,S),this.emit("change")}}]),t}(),ba=Le("informed:FormProvider "),xs=function(r){var i=r.children,a=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(ba("Render FormProvider"),a)return ba("Render FormProvider with given values"),d.createElement(It.Provider,{value:s.updater},d.createElement(Vt.Provider,{value:a},d.createElement(St.Provider,{value:p},i)));ba("Render FormProvider with generated values");var S=ws(y);return d.createElement(It.Provider,{value:S.formController.updater},d.createElement(Vt.Provider,{value:S.formApi},d.createElement(St.Provider,{value:S.formState},i)))},bs=Le("informed:useForm "),ws=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,S=r.preventEnter,w=r.getApi,E=r.apiRef,k=r.onChange,$=r.onReset,ae=r.onSubmit,re=r.onValueChange,le=r.onSubmitFailure,ge=r.validationSchema,he=r.schema,Se=r.ajv,xe=r.fieldMap,Fe=r.onlyValidateSchema,Ke=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);bs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:S,validationSchema:ge,schema:he,ajv:Se,fieldMap:xe}},[i,a,s,p,y,S,ge,he,Se,xe]),$e=(0,d.useState)(function(){return new ms(Ue)}),Be=Q($e,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),gt(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Xe=Q(We,2),ze=Xe[0],et=Xe[1];gt(function(){var Lr=function(){return k&&k(je.getFormState())},Or=function(){return $&&$()},Yr=function(){return ae&&ae(je.getFormState().values)},br=function(){return re&&re(je.getFormState().values)},Ur=function(){return le&&le(je.getFormState().errors)};return je.on("change",Lr),je.on("reset",Or),je.on("submit",Yr),je.on("value",br),je.on("failure",Ur),function(){je.removeListener("change",Lr),je.removeListener("reset",Or),je.removeListener("submit",Yr),je.removeListener("value",br),je.removeListener("failure",Ur)}},[k,$,ae,re,le]),(0,d.useState)(function(){var Lr=function(){bs("Setting form state"),et(je.getFormState())};je.on("change",Lr),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var bt=(0,d.useState)(function(){return je.getFormApi()}),Dt=Q(bt,1),Ht=Dt[0],sr=function(Or){return d.createElement(xs,{formApi:Ht,formState:ze,formController:je},d.createElement(d.Fragment,null,Or||d.createElement(Qt,{schema:he,onlyValidateSchema:Fe})))};return{formApi:Ht,formState:ze,formController:je,render:sr,userProps:Ke}},Ul=Le("informed:Form "),jl=function(r){var i=r.children,a=r.render,s=r.component,p=C(r,["children","render","component"]);Ul("Render FORM");var y=ws(p),S=y.formApi,w=y.formController,E=y.formState,k=y.render,$=y.userProps,ae=function(){var le={formState:E,formApi:S};return s?d.createElement(s,le,i):a?a(le):typeof i=="function"?i(le):i};return k(d.createElement("form",N({},$,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ae()))},wf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},Sf=function(r,i){var a=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,S=i.setError,w=i.update,E=i.getField,k=i.expectRemoval,$=i.getInitialValue,ae=i.fieldMap,re=i.getSavedValue;return{register:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return a.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},deregister:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return s.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},update:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return w.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setValue:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return p.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setTouched:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return y.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setError:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return S.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getField:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return E.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},expectRemoval:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),xe=1;xe<he;xe++)Se[xe-1]=arguments[xe];return k.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getInitialValue:function(ge){return $("".concat(r,".").concat(ge))},getSavedValue:function(ge){return re("".concat(r,".").concat(ge))},fieldMap:ae}},Af=function(r){var i=r.scope,a=r.children,s=useContext(It),p=Re(),y=li(),S=useMemo(function(){return wf(i,p)},[i]),w=useMemo(function(){return Sf(i,s)},[i]);return React.createElement(It.Provider,{value:w},React.createElement(Vt.Provider,{value:S},React.createElement(St.Provider,{value:y},a)))},Ci=function(r){var i=li(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){a[re]=i[re]}):a=i;var s=a,p=s.pristine,y=s.dirty,S=s.invalid,w=s.values,E=s.errors,k=s.touched,$=s.validating,ae=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:S,values:w,errors:E,touched:k,validating:$,submitting:ae},null,2)))},Ef=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Re(),p=s.getValues,y=s.validate,S=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),k=E[0],$=(0,d.useRef)(0),ae=be({current:i,steps:[],goal:null}),re=Q(ae,3),le=re[0],ge=re[1],he=re[2],Se=(0,d.useState)(function(){var Ue=function(){var je=he(),We=je.current,Xe=k.get(We);return Xe},$e={getState:function(){return he()},getCurrentStep:Ue,getStep:function(je){return k.get(je)},getNumberOfSteps:function(){return k.size},next:function(){if(y(),S()){var je=Ue(),We=je.getNext,Xe=We(),ze=typeof Xe=="function"?Xe(p()):Xe;ze&&ge(function(et){return j(j({},et),{},{current:ze})})}},back:function(){var je=Ue(),We=je.getPrevious,Xe=We(),ze=typeof Xe=="function"?Xe(p()):Xe;ze&&ge(function(et){return j(j({},et),{},{current:ze})})},setCurrent:function(je){if(je){var We=k.get(je).index;We<Ue().index?ge(function(Xe){return j(j({},Xe),{},{current:je,goal:null})}):ge(function(Xe){return j(j({},Xe),{},{goal:je})})}},register:function(je,We,Xe){Xe?($.current=$.current+1,k.set(je,j(j({},We),{},{index:$.current}))):ge(function(ze){return j(j({},ze),{},{steps:Array.from(k.keys())})})},deregister:function(je){k.delete(je),$.current=$.current-1,ge(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return a&&(a.current=$e),$e}),xe=Q(Se,1),Fe=xe[0],Ke=function($e){return d.createElement(K.Provider,{value:Fe},d.createElement(G.Provider,{value:le},$e))};return j(j(j({},Fe),le),{},{render:Ke})};function Cf(){return(0,d.useContext)(G)}function wa(){return(0,d.useContext)(K)}var Do=function(r){var i=r.step,a=r.next,s=r.previous,p=r.relevant,y=li(),S=y.values,w=Cf(),E=w.current,k=w.goal,$=wa(),ae=$.register,re=$.deregister,le=$.next,ge=i===E,he=p?p(S):!0,Se=(0,d.useRef)(a),xe=(0,d.useRef)(s),Fe=(0,d.useRef)();Se.current=a,xe.current=s,Fe.current=p,(0,d.useState)(function(){ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return xe.current}},!0)}),(0,d.useEffect)(function(){return ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return xe.current}}),function(){re(i)}},[i]),(0,d.useEffect)(function(){k&&ge&&k!==i&&le()},[k,ge]);var Ke=function($e){return d.createElement(we.Provider,{value:{relevant:function(je){return Fe.current?Fe.current(je):!0},multistep:!0}},ge&&he?$e:null)};return{isCurrent:ge,isRelevant:he,step:i,render:Ke}};function Of(t){var r=t.children,i=C(t,["children"]),a=Ef(i),s=a.render,p=C(a,["render"]);return s(typeof r=="function"?r(p):r)}Of.Step=function(r){var i=r.children,a=C(r,["children"]),s=Do(a),p=s.render;return p(i)};var wd=function(r){var i=r.field,a=useContext(It),s=a.fieldMap,p=Re(),y=p.getFullField,S=p.getOptions,w=y(i),E=S(),k=E.schema,$=Oe(w),ae=dt.get(k,$);if(!ae)return null;var re=ee(i,ae),le=re.props,ge=re.componentType,he=s[ge];return React.createElement(he,N({field:i},le))},Sd=function(){var r=Re(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Qt,{schema:s})},Ad=function(r){return React.forwardRef(function(i,a){return React.createElement(Vt.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:a},i))})})},Vl=function(r){return React.forwardRef(function(i,a){return React.createElement(St.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:a},i))})})},Wl=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Hl(t){var r=Re(),i=useMemo(function(){return Wl(r,t)},[t]);return i}function zl(t){var r=Hl(t),i=Re(),a=React.useState(),s=Q(a,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return gt(function(){var S=function(E){E===t&&y()};return i.emitter.on("field",S),function(){i.emitter.removeListener("field",S)}},[]),gt(function(){y()},[]),r.getFieldState()||{}}var Tf=function(r){return function(i){return function(a){var s=zl(r);return React.createElement(i,N({fieldState:s},a))}}},Ss=function(r){return function(i){return function(a){var s=Hl(r);return React.createElement(i,N({fieldApi:s},a))}}},As=function(r){var i=r.value,a=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:a,value:i,key:i},p),s)},Gl=null,No=o(80150),zt=o(25446),Yi=o(25805),Ut=o(76671),Et=o(39713),Ir=o(23485),Pf=Object.defineProperty,If=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertySymbols,Oi=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Xn=(t,r,i)=>r in t?Pf(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ji=(t,r)=>{for(var i in r||(r={}))Oi.call(r,i)&&Xn(t,i,r[i]);if(Cs)for(var i of Cs(r))Os.call(r,i)&&Xn(t,i,r[i]);return t},Sa=(t,r)=>If(t,Es(r));const Xi=Ir.iv`
|
|
80
|
+
`+ge)}else k[0]=ae+" "+k[0]}function a(k,$){if(k[0]=($.useColors?"%c":"")+$.namespace,!!$.useColors){var ae="color: "+$.color,re=0,le=0;k[0].replace(/%[a-zA-Z%]/g,function(ge){ge!=="%%"&&(re++,ge==="%c"&&(le=re))}),k.splice(le,0,ae)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch($){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:a}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function S(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$=arguments.length>1?arguments[1]:void 0;return function(){for(var ae=arguments.length,re=new Array(ae),le=0;le<ae;le++)re[le]=arguments[le];k&&re.unshift(k);var ge=$.namespaces.split(",").map(function(Fe){return Fe[Fe.length-1]==="*"?new RegExp("^"+Fe.slice(0,Fe.length-1)+".*$"):new RegExp("^"+Fe+"$")}),he=ge.some(function(Fe){return Fe.test(k)}),Se={color:r(k,$.colors),namespace:k,useColors:$.useColors};if(!1)var me}}function w(k){return S(k,y())}function E(k){return S(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),ke=Le("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?a:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Xe(r),"").replace(/\./,"")},pt=function(r,i){var a=Xe(i),s=ut(i),p=a?Qe(r,a):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},yt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return y===S.length-1?(s[p]=a,s[p]):s[p]===void 0?(Number.isInteger(+S[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+S[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},qe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return s===void 0?s:(y===S.length-1&&(delete s[p],a=!0),s[p])},r),a},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,S){return s===void 0?s:(y===S.length-1&&Array.isArray(s)&&(a=s.splice(p,1)),s[p])},r),a},vt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},mt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},dt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return vt(i).length===0}},{key:"get",value:function(i,a){var s=Qe(i,a);return s}},{key:"has",value:function(i,a){return pt(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)ke("SETTING",a,s),yt(i,a,s);else if(mt(a)&&t.get(i,a)!==void 0){ke("Special case SETTING",a,"to undefined"),yt(i,a,void 0);var p=rt(a);p=p.slice(0,p.length-1),kt(i,p)}else!mt(a)&&t.get(i,a)!==void 0&&(ke("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){ke("DELETE",a),mt(a)?(ke("ARRAY",a),this.pullOut(i,a)):qe(i,a);var s=rt(a);s=s.slice(0,s.length-1),kt(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),p=s[s.length-1];s=s.slice(0,s.length-1),ke("Pulling out:",s,"index",p);var y=Qe(i,s);ke("Array",y),Array.isArray(y)&<(y,p),kt(i,s)}}]),t}();function kt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&qe(t,r),kt(t,r.slice(0,r.length-1))}}var It=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),At=d.createContext({}),jt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Nt=d.createContext(),$t=d.createContext(),St=d.createContext(),Mt=d.createContext(),pe=d.createContext(),G=d.createContext(),K=d.createContext(),we=d.createContext();function Re(){var t=(0,d.useContext)(jt);return t}function be(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),a=(0,d.useState)(t),s=Q(a,2),p=s[0],y=s[1];r.current=p;var S=function(k){r.current=k,i.current&&y(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,S,w]}var Ae=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},T=function(r){var i={};if(r.inner){if(r.inner.length===0){dt.set(i,r.path,r.message);return}var a=De(r.inner),s;try{for(a.s();!(s=a.n()).done;){var p=s.value;dt.get(i,p.path)||dt.set(i,p.path,p.message)}}catch(y){a.e(y)}finally{a.f()}}return i},Ie=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=T(s);return a}},W=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},O=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return W(a)}},P=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,S=s.keyword,w=s.params,E=y;S==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),dt.set(a,E,p)}),a},ie=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,a=r=="x"?i:i&3|8;return a.toString(16)})},D=function(r,i){var a;return function(){for(var p=arguments.length,y=new Array(p),S=0;S<p;S++)y[S]=arguments[S];var w=function(){clearTimeout(a),r.apply(void 0,y)};clearTimeout(a),a=setTimeout(w,i)}},ee=function(r,i,a){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],S=i["ui:before"],w=i["ui:after"],E=i.oneOf,k=i.items,$=i.enum,ae=i.title,re=i.minimum,le=i.maximum,ge=i.minLength,he=i.maxLength,Se=i.pattern,me=i.type,Fe=i.properties,Ke=ie();y&&y.id&&(Ke=y.id);var Ue={componentType:s,field:a?"".concat(a,".").concat(r):r,type:me,uiBefore:S,uiAfter:w,properties:me==="object"?Fe:void 0,items:me==="array"?k:void 0,props:j(j({label:ae,id:Ke,min:re,max:le,minLength:ge,maxLength:he,pattern:Se},p),y)};if(E){var $e=i.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});Ue.props.options=$e}if($){var Be=i.enum.map(function(We){return{value:We,label:We}});Ue.props.options=Be}if(k&&k.oneOf){var je=k.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});Ue.props.options=je}return Ue},ce=function(r,i,a){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,S=r.propertyOrder,w=S===void 0?[]:S;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(k,$){var ae=w.indexOf(k),re=w.indexOf($);return(ae>-1?ae:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var $=p[k],ae=ee(k,$,a);return ae});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},Oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Pe=function(r,i){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Te=function(r,i){for(var a=0,s=-1,p=!0;p&&a<r.length;)r[a]==i[a]?s=a:p=!1,a=a+1;return s},Ge=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=Pe(i,a),p=s.findIndex(function(he){return typeof he!="string"}),y=s.length-Y(s).reverse().findIndex(function(he){return typeof he!="string"}),S=[],w=a.split(""),E=0,k=0,$=Te(s.slice(0,p),w.slice(0,p));$>-1&&(E=$+1,S=S.concat(s.slice(0,$+1)),k=$+1),$<0&&(S=S.concat(s.slice(0,p)),k=p);for(var ae=k;ae<s.length;ae++){var re=s[ae];if(E!=w.length){var le=w[E];if(typeof re=="function")S.push(re(le)),E=E+1;else{var ge=typeof re=="string"?re===le:re.test(le);ge&&typeof re=="string"?(S.push(re),E=E+1):!ge&&typeof re=="string"?E!=w.length&&S.push(re):ge&&typeof re!="string"?(S.push(le),E=E+1):!ge&&typeof re!="string"&&(E=E+1,ae=ae-1)}}else if(typeof re=="string"&&ae>=y)S.push(re);else break}return{value:S.join(""),offset:a?S.length-a.length:0}},He=function(r,i){var a,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),S=(a=(s=y.formatToParts(.1).find(function(he){var Se=he.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(he,Se){return he instanceof RegExp&&Se instanceof RegExp&&he.source===Se.source&&he.global===Se.global&&he.ignoreCase===Se.ignoreCase&&he.multiline===Se.multiline}function E(he,Se){for(var me=he.length;me--;)if(Se(he[me]))return me;return-1}function k(he,Se,me){var Fe=Y(he);return Array.isArray(me)?Fe.splice.apply(Fe,[Se,0].concat(Y(me))):Fe.splice(Se,0,me),Fe}function $(he){return"".concat(he).replace(/\D/g,"")}function ae(he){return"".concat(he).split(S).map(function(Se){return $(Se)}).join(".")}function re(he){if(typeof he=="number")return he;var Se=parseFloat(ae(he));return Number.isNaN(Se)?void 0:Se}function le(he){var Se=ae(he),me="".concat(Se).split(".")[1],Fe=p.formatToParts(Number(Se));me==="0"&&Fe.push({type:"decimal",value:S},{type:"fraction",value:me});var Ke=Fe.reduce(function(Be,je){var We=je.type,Je=je.value;return["decimal","fraction"].includes(We)&&me==null?Be:["integer","fraction"].includes(We)?[].concat(Y(Be),Y(Je.split("").filter(function(ze,et){return We==="fraction"?et<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Be),Y(Je.split(""))):[].concat(Y(Be),[Je])},[]),Ue=E(Ke,function(Be){return w(Be,/\d/)});Ke.indexOf(S)===-1&&"".concat(he).indexOf(S)!==-1&&(Ke=k(Ke,Ue+1,[S,"[]"]),Ue+=2);var $e=Ke.slice(Ue+1).join("");return Ke=[].concat(Y(Ke.slice(0,Ue+1)),[$e]),Ke}var ge=function(Se){if(Se!=null)return re(Se)};return{formatter:le,parser:ge}},it=Object.freeze({__proto__:null,getChildDisplayName:Ae,yupToFormErrors:T,validateYupSchema:Ie,yupToFormError:W,validateYupField:O,validateAjvSchema:P,uuidv4:ie,debounce:D,computeFieldFromProperty:ee,computeFieldsFromSchema:ce,getSchemaPathFromJsonPath:Oe,informedFormat:Ge,createIntlNumberFormatter:He}),gt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Ct=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=be(0),S=Q(y,3),w=S[0],E=S[1],k=S[2],$=be(0),ae=Q($,3),re=ae[0],le=ae[1],ge=ae[2];return gt(function(){if(a.current!=null&&k()){var he=k()+ge();ge()!=0&&p?a.current.setSelectionRange(he+1,he+1):p&&a.current.setSelectionRange(he,he)}},[i]),{setCursorOffset:le,setCursor:E,cursor:w,getCursor:k,cursorOffset:re}},Jt=function(r,i){var a=(0,d.useRef)(!0),s=a.current;(0,d.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Ft=Le("informed:useField "),wn=function(r,i,a,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(a&&!s){var y=Ge(r,a);return y.value}return r}},Zr=function(r,i,a,s){if(i&&a)return i(r);if(s){var p=Ge(r,s);return p.value}return r},On=function(r,i,a){var s=a.required;if(r||i)return function(p,y){if(i)return O(i,p);if(r)return r(p,y)};if(s)return function(p){return Tn(p,s)}},Gi=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,S=function(E){return a(E)};return(i==="text"||i==="textArea"||i==="number")&&(S=function(E){return a(E.target.value,E)}),i==="select"&&(S=function(){var E=Array.from(y.current).filter(function(k){return k.selected}).map(function(k){return k.value});a(p?E:E[0]||"")}),i==="checkbox"&&(S=function(E){a(E.target.checked),s&&s(E)}),function(w){S(w)}},jr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},Nn=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},$n=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Tn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Kn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,a=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,S=t.maskWithCursorOffset,w=t.format,E=t.parse,k=t.formatter,$=t.parser,ae=t.initialValue,re=t.validateOnChange,le=t.validateOnBlur,ge=t.validateOnMount,he=t.asyncValidateOnBlur,Se=t.maskOnBlur,me=t.allowEmptyString,Fe=t.onValueChange,Ke=t.notify,Ue=t.keepState,$e=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Je=t.fieldType,ze=t.multiple,et=t.onChange,wt=t.onBlur,Dt=t.formController,Wt=t.relevant,lr=t.required,Mr=t.keepStateIfRelevant,Or=t.initialize,Kr=t.formatterDependencies,Sr=Kr===void 0?[]:Kr,Ur=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),bn=(0,d.useState)(ie()),Xt=Q(bn,1),Rt=Xt[0],Bt=(0,d.useContext)(It),ur=(0,d.useContext)(we),on=ur||Mr,gr=Re(),ys=(0,d.useRef)(),Fl=(0,d.useRef)(!0),Aa=(0,d.useRef)(),Hi=(0,d.useRef)(!1),kl=function(){return!Hi.current},df=function(){return Hi.current};Dt&&(Bt=Dt.updater,gr=Dt.getFormApi());var gi=On(a,p,{required:lr}),Rl=(0,d.useState)(function(){return Bt.getInitialValue(i)}),gm=Q(Rl,1),ym=gm[0],pf=Bt.getSavedValue(i),hf,ah;(Ue||on)&&pf?(Ft("Setting field ".concat(yd,"'s kept state"),pf),hf=pf.value,ah=pf.touched,gr.removeSavedState(yd)):ae!=null?hf=ae:hf=ym;var mm=be(wn(hf,y,k,$,Or)),nd=Q(mm,3),Ml=nd[0],id=nd[1],xm=nd[2],bm=be(ge?gi(Ml):void 0),od=Q(bm,3),sh=od[0],lh=od[1],wm=od[2],Sm=be(ah),ad=Q(Sm,3),uh=ad[0],Am=ad[1],fh=ad[2],Em=(0,d.useState)(function(){return Zr(Ml,w,E,k)}),ch=Q(Em,2),sd=ch[0],ld=ch[1],dh=(0,d.useRef)();dh.current=sd;var ph=(0,d.useRef)(ae),Ea=(0,d.useRef)(i),hh=(0,d.useRef)();ph.current=ae,Ea.current=i;var Cm=(0,d.useRef)(null),zi=d.useMemo(function(){return r||Cm},[]),ud=Ct({value:Ml,inputRef:zi,maintainCursor:!!$e}),fd=ud.getCursor,Om=ud.setCursor,cd=ud.setCursorOffset,Tm=function(){return!0},dd=function(fr){var an=Wt||Tm,Ln=gr.getFullField(Ea.current)||Ea.current,Qt={path:Ln,parentPath:Ln.replace(/(.*)[.[].*/,"$1"),get:function(Dn,Nl){return dt.get(Dn,Nl)}};return ur&&ur.relevant?an(fr,Qt)&&ur.relevant(fr,Qt):an(fr,Qt)},Pm=be(dd(gr.getValues())),pd=Q(Pm,3),vf=pd[0],Im=pd[1],vh=pd[2],Fm=function(fr){return ur&&ur.relevant?ur.relevant(fr):!0},km=function(){var fr=dd(gr.getValues()),an=vh();return fr!=an&&Im(fr),fr};(0,d.useEffect)(function(){!vf&&!Ue&&ys.current.reset()},[vf]);var _n=function(){return je?gr.getDerrivedValue(i):xm()},Ll=function(fr){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln=an.preventUpdate;We&&gr.getStep()<We?(Ft("Setting ".concat(i,"'s error to undefined as we are not at that step")),lh(void 0),Bt.setError(Rt,void 0,!Ln)):(Ft("Setting ".concat(i,"'s error to ").concat(fr)),lh(fr),Bt.setError(Rt,fr,!Ln))},hd=function(fr,an){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=fr;Hi.current=!0,Ft("Setting ".concat(i," to ").concat(Qt)),Or&&(Qt=Or(Qt));var Ca=gr.getOptions(),Dn=Qt;if(Qt===""&&!me&&!Ln.allowEmptyString&&!Ca.allowEmptyStrings&&(Qt=void 0),(t.type==="number"||Je==="number")&&Qt!==void 0&&(Qt=+Qt),an&&an.target&&an.target.selectionStart&&Om(an.target.selectionStart),y&&!Se&&(Dn=y(Qt,fd()),Qt=y(Qt,fd())),S&&!Se){var Nl=S(Qt,fd());Dn=Nl.value,Qt=Nl.value,cd(Nl.offset)}if(w&&E&&(Qt=E(Qt),Dn=w(Qt)),k){var gh=Ge(Qt,k);cd(gh.offset),Dn=gh.value,Qt=Dn}$&&(Qt=Qt!=null?$(Qt):Qt),gi&&re&&!Ln.initial&&(Ft("Validating after change ".concat(i," ").concat(Qt)),Ll(gi(Qt,gr.getValues()))),id(Qt),ld(Dn),Fe&&Fe(Qt),Bt.setValue(Rt,Qt,!Ln.preventUpdate)};Jt(function(){ys.current.setValue(dh.current)},Y(Sr));var vd=function(fr,an){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qt=Ln.preventUpdate;if(Ft("Field ".concat(i," has been touched")),gi&&le&&!an&&fr&&(Ft("Validating after blur ".concat(i," ").concat(_n())),Ll(gi(_n(),gr.getValues()))),s&&he&&!an&&fr&&(Ft("Validating async after blur ".concat(i," ").concat(_n())),s(_n(),gr.getValues())),y&&Se){var Ca=y(_n());id(Ca),ld(Ca),Fe&&Fe(Ca),Bt.setValue(Rt,Ca,!Qt)}if(S&&Se){var Dn=S(_n());cd(Dn.offset),id(Dn.value),ld(Dn.value),Fe&&Fe(Dn.value),Bt.setValue(Rt,Dn.value,!Qt)}Am(fr),Bt.setTouched(Rt,fr,!Qt)},Rm=function(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},an=fr.preventUpdate,Ln=wn(ph.current||Bt.getInitialValue(Ea.current),y,k,$,Or);hd(Ln,null,{initial:!0,preventUpdate:an}),Ll(ge?gi(Ln):void 0,{preventUpdate:an}),vd(void 0,!0,{preventUpdate:an}),Hi.current=!1},Mm=function(fr){gi&&(Ft("Field validating ".concat(i," ").concat(_n())),Ll(gi(_n(),fr||gr.getValues())))},Lm=function(fr){s&&(Ft("Field async validating ".concat(i," ").concat(_n())),s(_n(),fr||gr.getValues()))},gd={setValue:hd,setTouched:vd,setError:Ll,reset:Rm,validate:Mm,asyncValidate:Lm,getValue:_n,getTouched:fh,getError:wm,getIsRelevant:vh,getDirty:df,getPristine:kl,getFieldState:function(){return{value:_n(),touched:fh(),dirty:df(),pristine:kl()}},relevant:dd,multistepRelevant:Fm,checkRelevant:km};ys.current=gd;var Dl={value:Ml,error:sh,touched:uh,maskedValue:sd,isRelevant:vf,dirty:Hi.current,pristine:!Hi.current};je&&(Dl={error:sh,touched:uh}),Ft("Render",gr.getFullField(i),Dl),gt(function(){var Qr=gr.getFullField(Ea.current);return Ft("Register",Rt,Ea.current),Aa.current={field:Qr,fieldId:Rt,fieldApi:gd,fieldState:Dl,notify:Ke,keepState:Ue,inMultistep:on,shadow:je},Bt.register(Rt,Aa.current),function(){var fr=gr.getFullField(Ea.current);Ft("Deregister",Rt,fr),Bt.deregister(Rt)}},[]),(0,d.useEffect)(function(){var Qr=gr.getFullField(i);return Fl.current?Fl.current=!1:(Ft("Update",i,on),Aa.current.field=Qr,Bt.update(Rt,Aa.current,hh.current)),function(){hh.current=Qr}},[i]),gt(function(){Be&&zi&&(zi.current.style.border="5px solid orange",setTimeout(function(){zi.current.style.borderWidth="2px",zi.current.style.borderStyle="inset",zi.current.style.borderColor="initial",zi.current.style.borderImage="initial"},500))});var Dm=[].concat(Y(Object.values(Dl)),Y(Object.values(t)),Y(Object.values(Ur))),Nm=function(fr){return(0,d.useMemo)(function(){return vf?fr:null},Y(Dm))},yd=i,Bm=Gi({fieldType:Je,setValue:hd,onChange:et,multiple:ze,ref:zi}),Um=jr({setTouched:vd,onBlur:wt}),jm=Nn({fieldType:Je,maskedValue:sd,multiple:ze,value:Ml}),Vm=$n(Je);return{fieldState:Dl,fieldApi:gd,render:Nm,ref:zi,userProps:j(j({},Ur),{},{multiple:ze,onChange:et,onBlur:wt,id:Ur.id||Rt}),informed:j({name:yd,multiple:ze,onChange:Bm,onBlur:Um,value:jm,ref:zi,type:Vm,id:Ur.id||Rt},Ur)}}var pn=function(r){var i=d.forwardRef(function(a,s){var p=Kn(a,s),y=p.fieldState,S=p.fieldApi,w=p.render,E=p.ref,k=p.userProps;return w(d.createElement(r,N({fieldApi:S,fieldState:y,field:a.field,forwardedRef:E,debug:a.debug,type:a.type},k)))});return i.displayName="asField(".concat(Ae(r),")"),i},Oa=Le("informed:Text "),jo=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ae=s.forwardedRef,re=s.debug,le=s.label,ge=s.title,he=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Oa("Render",k),gt(function(){re&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),d.createElement(d.Fragment,null,le?d.createElement("label",{htmlFor:he}," ",le," "):null,d.createElement("input",N({},Se,{id:he,name:k,ref:ae,value:!p&&p!==0?"":p,onChange:function(Fe){y(Fe.target.value,Fe),w&&w(Fe)},onBlur:function(Fe){S(!0),E&&E(Fe)}})))},Sn=pn(jo),Yn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ae=s.forwardedRef,re=s.debug,le=s.label,ge=s.id,he=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return gt(function(){re&&ae&&(ae.current.style.background="red",setTimeout(function(){ae.current.style.background="white"},500))}),d.createElement(d.Fragment,null,le?d.createElement("label",{htmlFor:ge}," ",le," "):null,d.createElement("textarea",N({},he,{id:ge,name:k,ref:ae,value:p||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){S(!0),E&&E(me)}})))},yi=pn(Yn),$i=Le("informed:Select "),Bn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,y=i.setTouched,S=s.onChange,w=s.onBlur,E=s.field,k=s.initialValue,$=s.options,ae=s.children,re=s.forwardedRef,le=s.debug,ge=s.multiple,he=s.label,Se=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Fe=(0,d.useRef)(),Ke=function($e){var Be=Array.from((re||Fe).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ge?Be:Be[0]||""),S&&$e&&S($e)};return gt(function(){le&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),$i("Render",E,p),d.createElement(d.Fragment,null,he?d.createElement("label",{htmlFor:Se}," ",he," "):null,d.createElement("select",N({},me,{id:Se,multiple:ge,name:E,ref:re||Fe,value:p||(ge?[]:""),onChange:Ke,onBlur:function($e){y(!0),w&&w($e)}}),$?$.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ae))},mi=pn(Bn),Ta=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,y=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ae=s.debug,re=s.forwardedRef,le=s.id,ge=s.label,he=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:le}," ",ge," "):null,d.createElement("input",N({},he,{id:le,name:k,ref:re,checked:!!p,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){S(!0),E&&E(me)},type:"checkbox"})))},Pn=pn(Ta),An=function(r){return d.forwardRef(function(i,a){return d.createElement(Nt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,N({radioGroupApi:p,radioGroupState:y,ref:a},i))})})},xi=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=a.value,y=i.setValue,S=i.setTouched,w=i.onChange,E=i.onBlur,k=s.value,$=s.onChange,ae=s.onBlur,re=s.field,le=s.initialValue,ge=s.forwardedRef,he=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",N({},he,{name:re,ref:ge,value:k,checked:p===k,onChange:function(me){!me.target.checked||(y(k),$&&$(me),w&&w(me))},onBlur:function(me){S(!0),ae&&ae(me),E&&E(me)},type:"radio"}))},mr=An(xi),Et=function(t){_(i,t);var r=q(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(Nt.Provider,{value:this.groupContext},p?p.map(function(S){return d.createElement("label",{key:S.value},S.label," ",d.createElement(mr,{value:S.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),qn=pn(Et);function bi(){return(0,d.useContext)(St)}var En=function(){var r=bi(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function qt(){return(0,d.useContext)(Mt)}var Un=function(){var r=qt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Jn=Le("informed:useArrayField "),po=function(r){var i=r.field,a=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),S=Re(),w=(0,d.useState)(new Map),E=Q(w,1),k=E[0],$=(0,d.useContext)(It),ae=S.getFullField(i),re=$.getInitialValue(i)||a||[],le=S.getSavedValue(ae)&&S.getSavedValue(ae).value,ge=be(le||re),he=Q(ge,3),Se=he[0],me=he[1],Fe=he[2],Ke=Se?Se.map(function(){return ie()}):[],Ue=be(Ke),$e=Q(Ue,3),Be=$e[0],je=$e[1],We=$e[2],Je=(0,d.useMemo)(function(){return function(Xt,Rt){var Bt=We()==null?0:We().length;return s?s(Xt,Bt,Rt):void 0}}),ze=Kn(j({field:i,validate:s?Je:void 0,shadow:!0},y)),et=ze.fieldApi;gt(function(){var Xt=function(Bt){Bt!==ae&&(Jn("".concat(ae," changed")),RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Bt)&&et.validate())};return S.emitter.on("value",Xt),function(){S.emitter.removeListener("value",Xt)}},[i]);var wt=function(Rt){Jn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Be.length-1,"]")),$.expectRemoval("".concat(i,"[").concat(Rt,"]")),$.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var Bt=Be.slice(0,Rt).concat(Be.slice(Rt+1,Be.length));je(Bt);var ur=Fe(),on=ur.slice(0,Rt).concat(ur.slice(Rt+1,ur.length));me(on)},Dt=function(Rt,Bt){Jn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Bt,"]"));var ur=Y(Be);Be[Rt]&&Be[Bt]?(ur[Rt]=Be[Bt],ur[Bt]=Be[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Bt," but one of them does not exist :(")),je(ur)},Wt=function(){Be.push(ie()),je(Y(Be))},lr=function(Rt){Be.push(ie()),je(Y(Be));var Bt=Y(Fe());Bt[Be.length-1]=Rt,me(Bt)},Mr=function(){var Rt=$.getInitialValue(i)||a||[];me(Rt);var Bt=Rt?Rt.map(function(){return ie()}):[];je(Bt)},Or=Be.map(function(Xt,Rt){var Bt={remove:function(){return wt(Rt)}},ur={initialValue:Se&&Se[Rt],key:Xt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Bt,arrayFieldItemState:ur},Bt),ur)}),Kr={add:Wt,swap:Dt,addWithInitialValue:lr,reset:Mr};p&&(p.current=Kr);var Sr={fields:Or,field:i},Ur=j(j({},$),{},{register:function(Rt,Bt){k.set(Rt,Bt);for(var ur=arguments.length,on=new Array(ur>2?ur-2:0),gr=2;gr<ur;gr++)on[gr-2]=arguments[gr];$.register.apply($,[Rt,Bt].concat(on))},deregister:function(Rt){k.delete(Rt);for(var Bt=arguments.length,ur=new Array(Bt>1?Bt-1:0),on=1;on<Bt;on++)ur[on-1]=arguments[on];$.deregister.apply($,[Rt].concat(ur))},getInitialValue:function(Rt){if(RegExp("".concat(ae,"\\[[0-9]+\\]")).test(Rt)){var Bt=Rt.replace(i,""),ur=dt.get(Fe(),Bt);return Jn("Resetting ".concat(Bt," to ").concat(ur)),ur}return $.getInitialValue(Rt)}}),bn=function(Rt){return d.createElement(It.Provider,{value:Ur},d.createElement(St.Provider,{value:Kr},d.createElement($t.Provider,{value:Sr},Rt)))};return{render:bn,add:Wt,swap:Dt,addWithInitialValue:lr,fields:Or,arrayFieldState:Sr,arrayFieldApi:Kr,field:i}},nt=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Re(),i=(0,d.useMemo)(function(){return nt(t,r)},[t]);return i}function ei(){var t=(0,d.useContext)(At);return t}var se=function(r){var i=r.when,a=r.children,s=ei(),p=i(s);return p?a:null},Ce=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),p=Re();if(i){var y=p.getFullField(a),S={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(k,$){return dt.get(k,$)}},w=function(k){var $=k.values;return i($,S)};return d.createElement(se,{when:w},d.createElement(_e,N({field:a},s)))}else return d.createElement(_e,N({field:a},s))},_e=function(r){var i=r.children,a=C(r,["children"]),s=po(a),p=s.render,y=s.arrayFieldState,S=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:S,arrayFieldState:y},S),y)):i)},ot=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(It),y=Re(),S=(0,d.useState)(0),w=Q(S,2),E=w[0],k=w[1],$=(0,d.useState)(new Map),ae=Q($,1),re=ae[0],le=i.field,ge=Lt(le),he=function(){var Be=y.getState(),je=Be.values,We=Be.errors,Je=Be.touched,ze={values:dt.get(je,le),errors:dt.get(We,le),touched:dt.get(Je,le)};return ze};(0,d.useEffect)(function(){var $e=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===le&&k(Math.random())};return y.emitter.on("value",$e),function(){y.emitter.removeListener("value",$e)}},[le]);var Se=function(){re.forEach(function(Be){Be.fieldApi.reset()})},me=he(),Fe=j(j({},p),{},{register:function(Be,je,We){re.set(Be,je),p.register(Be,je,We)},deregister:function(Be){re.delete(Be);for(var je=arguments.length,We=new Array(je>1?je-1:0),Je=1;Je<je;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[Be].concat(We))}}),Ke=j(j(j({},a),ge),{},{reset:Se}),Ue=j(j({},i),me);return typeof s=="function"?d.createElement(It.Provider,{value:Fe},d.createElement(Mt.Provider,{value:Ke},d.createElement(pe.Provider,{value:Ue},s(j(j({arrayFieldItemApi:Ke,arrayFieldItemState:Ue},Ke),Ue))))):d.createElement(It.Provider,{value:Fe},d.createElement(Mt.Provider,{value:Ke},d.createElement(pe.Provider,{value:Ue},s)))};Ce.Items=function(t){var r=t.children,i=(0,d.useContext)($t),a=i.fields;return a.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,S=p.key;return d.createElement(ot,{key:S,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,a=(0,d.useContext)(It),s=a.fieldMap;return i?i.map(function(p,y){var S=p["ui:control"],w=s[S];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Le("informed:FormFields "),Zt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(It),y=p.fieldMap,S=(0,d.useMemo)(function(){var w=ce(i,s,a),E=w.map(function(k,$){var ae=k.field,re=k.props,le=k.type,ge=k.properties,he=k.items,Se=k.componentType,me=k.uiBefore,Fe=k.uiAfter,Ke=k.allOf,Ue=y[Se];return Kt("Rendering Field",ae,k),!Ue&&le==="object"&&ge?d.createElement(t,{schema:k,prefix:ae,key:"ScheamField-".concat($)}):!Ue&&le==="array"&&he?d.createElement(Tr,N({key:"ScheamField-".concat($),field:ae,items:he,uiBefore:me,uiAfter:Fe},re)):Ue&&Se==="array"&&he&&le==="array"?d.createElement(Ue,N({key:"ScheamField-".concat($),field:ae,items:he,uiBefore:me,uiAfter:Fe},re)):Se==="conditionals"?Ke.map(function($e){var Be=$e.then,je=$e.if.properties,We=function(ze){var et=ze.values;return Object.keys(je).every(function(wt){var Dt=je[wt];return et[wt]===Dt.const})};return d.createElement(se,{key:"ScheamField-".concat($),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,N({key:"ScheamField-".concat($),field:ae},re)):null});return E},[i,a]);return S},Tr=function(r){var i=r.field,a=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ce,N({field:i},y),d.createElement(st,{components:s}),d.createElement(Ce.Items,null,function(S){var w=S.field;return d.createElement(d.Fragment,null,d.createElement(st,{components:a["ui:before"]}),d.createElement(Zt,{schema:a,prefix:w}),d.createElement(st,{components:a["ui:after"]}))}),d.createElement(st,{components:p}))},Pr={select:mi,input:Sn,textarea:yi,checkbox:Pn,radio:qn,add:En,remove:Un,array:Tr},er=Le("informed:Controller "),Bl=function(r,i){var a=Object.keys(i).find(function(p){return r.includes(p)});if(!!a){var s=r.slice(0,a.length);return s===a}},_r=function(){},ms=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var a=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=p||Pr,this.fieldsById=new Map,this.fieldsByName={get:function(S){var w;return r.fieldsById.forEach(function(E){E&&E.field===S&&(w=E)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:_r,setTouched:_r,setError:_r,reset:_r,validate:_r,getValue:_r,getTouched:_r,getError:_r,getFieldState:_r,checkRelevant:_r,getPristine:_r,getDirty:_r}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);k.shadow||dt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||dt.delete(r.state.values,k.field),r.fieldsById.forEach(function($){var ae=$.fieldApi.checkRelevant();(!$.fieldApi.multistepRelevant(r.state.values)||!ae&&!$.keepState)&&(dt.delete(r.state.values,$.field),dt.delete(r.state.touched,$.field),dt.delete(r.state.errors,$.field))}),E&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&dt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&dt.set(r.state.touched,k.field,k.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",k.field))},setError:function(S,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(S);!k.shadow&&k.fieldApi.getIsRelevant()&&dt.set(r.state.errors,k.field,k.fieldApi.getError());var $=dt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof $=="string")&&dt.set(r.state.errors,k.field,k.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",k.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),p=1;p<a;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.forEach(function(S){return S.apply(void 0,s)})}},{key:"on",value:function(i,a){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(a)}},{key:"removeListener",value:function(i,a){var s=this.subscriptions.get(i);s.delete(a)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,a,s){this.getField(i).fieldApi.setValue(a,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,a){this.getField(i).fieldApi.setTouched(a)}},{key:"setError",value:function(i,a){this.getField(i).fieldApi.setError(a)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,a){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(er("Submit",this.state),this.emit("submit")):(er("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,a){dt.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return er("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var a=this.getValues();return dt.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return er("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return er("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return er("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return er("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return er("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return er("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return er("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return er("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.get(this.savedValues,"shadow-".concat(i)):dt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?dt.delete(this.savedValues,"shadow-".concat(i)):dt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return dt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){er("Getting Field",i);var a=this.fieldsByName.get(i);return a||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var a=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(i),S="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=a.getField(S);w&&(er("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(dt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!dt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){er("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){er("Setting values"),this.fieldsById.forEach(function(a){var s=dt.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;er("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Ie(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(dt.has(s,w.field)){var E=dt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=P(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(dt.has(p,w.field)){var E=dt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(a),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(a);this.setFormError(y)}if(this.options.validateFields){var S=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(dt.has(S,w.field)){var E=dt.get(S,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){er("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(er("Submit",this.state),this.emit("submit")):(er("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(a){i.emit("field",a.field)})}},{key:"register",value:function(i,a,s){var p=a.field,y=a.state;er("Register ID:",i,"Name:",p,y,"Initial",s);var S=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,k){E&&E.field===p&&(w=k)}),w&&(a.keepState||a.inMultistep)?(er("Already Registered",p),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),er("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),er("clearing expected removal",S),delete this.expectedRemovals[S],delete this.pulledOut[S],!a.shadow&&(this.updater.setValue(i,a.fieldApi.getValue(),!1),this.updater.setError(i,a.fieldApi.getError(),!1),this.updater.setTouched(i,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;er("Deregister",i,s),delete this.onScreen[i];var p=Bl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!p&&(er("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?dt.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):dt.set(this.savedValues,s,a.fieldApi.getFieldState())),(p||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(er("Removing field",s),this.fieldsById.delete(i),p||(dt.delete(this.state.values,s),dt.delete(this.state.touched,s),dt.delete(this.state.errors,s),a.shadow?dt.delete(this.savedValues,"shadow-".concat(s)):dt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(er("Pulling out",s,"with magic value",y),dt.pullOut(this.state.values,y),dt.pullOut(this.state.touched,y),dt.pullOut(this.state.errors,y),dt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){er("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){er("Update",i,a.field,s,a.fieldState.value);var p=a.fieldApi.getValue(),y=a.fieldApi.getError(),S=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(dt.set(this.state.values,s),dt.set(this.state.errors,s),dt.set(this.state.touched,s)),dt.set(this.state.values,a.field,p),dt.set(this.state.errors,a.field,y),dt.set(this.state.touched,a.field,S),this.emit("change")}}]),t}(),Pa=Le("informed:FormProvider "),xs=function(r){var i=r.children,a=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(Pa("Render FormProvider"),a)return Pa("Render FormProvider with given values"),d.createElement(It.Provider,{value:s.updater},d.createElement(jt.Provider,{value:a},d.createElement(At.Provider,{value:p},i)));Pa("Render FormProvider with generated values");var S=ws(y);return d.createElement(It.Provider,{value:S.formController.updater},d.createElement(jt.Provider,{value:S.formApi},d.createElement(At.Provider,{value:S.formState},i)))},bs=Le("informed:useForm "),ws=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,S=r.preventEnter,w=r.getApi,E=r.apiRef,k=r.onChange,$=r.onReset,ae=r.onSubmit,re=r.onValueChange,le=r.onSubmitFailure,ge=r.validationSchema,he=r.schema,Se=r.ajv,me=r.fieldMap,Fe=r.onlyValidateSchema,Ke=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);bs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:S,validationSchema:ge,schema:he,ajv:Se,fieldMap:me}},[i,a,s,p,y,S,ge,he,Se,me]),$e=(0,d.useState)(function(){return new ms(Ue)}),Be=Q($e,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),gt(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Je=Q(We,2),ze=Je[0],et=Je[1];gt(function(){var Mr=function(){return k&&k(je.getFormState())},Or=function(){return $&&$()},Kr=function(){return ae&&ae(je.getFormState().values)},Sr=function(){return re&&re(je.getFormState().values)},Ur=function(){return le&&le(je.getFormState().errors)};return je.on("change",Mr),je.on("reset",Or),je.on("submit",Kr),je.on("value",Sr),je.on("failure",Ur),function(){je.removeListener("change",Mr),je.removeListener("reset",Or),je.removeListener("submit",Kr),je.removeListener("value",Sr),je.removeListener("failure",Ur)}},[k,$,ae,re,le]),(0,d.useState)(function(){var Mr=function(){bs("Setting form state"),et(je.getFormState())};je.on("change",Mr),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var wt=(0,d.useState)(function(){return je.getFormApi()}),Dt=Q(wt,1),Wt=Dt[0],lr=function(Or){return d.createElement(xs,{formApi:Wt,formState:ze,formController:je},d.createElement(d.Fragment,null,Or||d.createElement(Zt,{schema:he,onlyValidateSchema:Fe})))};return{formApi:Wt,formState:ze,formController:je,render:lr,userProps:Ke}},Ul=Le("informed:Form "),jl=function(r){var i=r.children,a=r.render,s=r.component,p=C(r,["children","render","component"]);Ul("Render FORM");var y=ws(p),S=y.formApi,w=y.formController,E=y.formState,k=y.render,$=y.userProps,ae=function(){var le={formState:E,formApi:S};return s?d.createElement(s,le,i):a?a(le):typeof i=="function"?i(le):i};return k(d.createElement("form",N({},$,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ae()))},gf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},yf=function(r,i){var a=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,S=i.setError,w=i.update,E=i.getField,k=i.expectRemoval,$=i.getInitialValue,ae=i.fieldMap,re=i.getSavedValue;return{register:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return a.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},deregister:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},update:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setValue:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setTouched:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setError:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return S.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getField:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},expectRemoval:function(ge){for(var he=arguments.length,Se=new Array(he>1?he-1:0),me=1;me<he;me++)Se[me-1]=arguments[me];return k.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getInitialValue:function(ge){return $("".concat(r,".").concat(ge))},getSavedValue:function(ge){return re("".concat(r,".").concat(ge))},fieldMap:ae}},mf=function(r){var i=r.scope,a=r.children,s=useContext(It),p=Re(),y=ei(),S=useMemo(function(){return gf(i,p)},[i]),w=useMemo(function(){return yf(i,s)},[i]);return React.createElement(It.Provider,{value:w},React.createElement(jt.Provider,{value:S},React.createElement(At.Provider,{value:y},a)))},wi=function(r){var i=ei(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){a[re]=i[re]}):a=i;var s=a,p=s.pristine,y=s.dirty,S=s.invalid,w=s.values,E=s.errors,k=s.touched,$=s.validating,ae=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:S,values:w,errors:E,touched:k,validating:$,submitting:ae},null,2)))},xf=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Re(),p=s.getValues,y=s.validate,S=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),k=E[0],$=(0,d.useRef)(0),ae=be({current:i,steps:[],goal:null}),re=Q(ae,3),le=re[0],ge=re[1],he=re[2],Se=(0,d.useState)(function(){var Ue=function(){var je=he(),We=je.current,Je=k.get(We);return Je},$e={getState:function(){return he()},getCurrentStep:Ue,getStep:function(je){return k.get(je)},getNumberOfSteps:function(){return k.size},next:function(){if(y(),S()){var je=Ue(),We=je.getNext,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&ge(function(et){return j(j({},et),{},{current:ze})})}},back:function(){var je=Ue(),We=je.getPrevious,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&ge(function(et){return j(j({},et),{},{current:ze})})},setCurrent:function(je){if(je){var We=k.get(je).index;We<Ue().index?ge(function(Je){return j(j({},Je),{},{current:je,goal:null})}):ge(function(Je){return j(j({},Je),{},{goal:je})})}},register:function(je,We,Je){Je?($.current=$.current+1,k.set(je,j(j({},We),{},{index:$.current}))):ge(function(ze){return j(j({},ze),{},{steps:Array.from(k.keys())})})},deregister:function(je){k.delete(je),$.current=$.current-1,ge(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return a&&(a.current=$e),$e}),me=Q(Se,1),Fe=me[0],Ke=function($e){return d.createElement(K.Provider,{value:Fe},d.createElement(G.Provider,{value:le},$e))};return j(j(j({},Fe),le),{},{render:Ke})};function bf(){return(0,d.useContext)(G)}function Ia(){return(0,d.useContext)(K)}var Vo=function(r){var i=r.step,a=r.next,s=r.previous,p=r.relevant,y=ei(),S=y.values,w=bf(),E=w.current,k=w.goal,$=Ia(),ae=$.register,re=$.deregister,le=$.next,ge=i===E,he=p?p(S):!0,Se=(0,d.useRef)(a),me=(0,d.useRef)(s),Fe=(0,d.useRef)();Se.current=a,me.current=s,Fe.current=p,(0,d.useState)(function(){ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return ae(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return me.current}}),function(){re(i)}},[i]),(0,d.useEffect)(function(){k&&ge&&k!==i&&le()},[k,ge]);var Ke=function($e){return d.createElement(we.Provider,{value:{relevant:function(je){return Fe.current?Fe.current(je):!0},multistep:!0}},ge&&he?$e:null)};return{isCurrent:ge,isRelevant:he,step:i,render:Ke}};function wf(t){var r=t.children,i=C(t,["children"]),a=xf(i),s=a.render,p=C(a,["render"]);return s(typeof r=="function"?r(p):r)}wf.Step=function(r){var i=r.children,a=C(r,["children"]),s=Vo(a),p=s.render;return p(i)};var md=function(r){var i=r.field,a=useContext(It),s=a.fieldMap,p=Re(),y=p.getFullField,S=p.getOptions,w=y(i),E=S(),k=E.schema,$=Oe(w),ae=dt.get(k,$);if(!ae)return null;var re=ee(i,ae),le=re.props,ge=re.componentType,he=s[ge];return React.createElement(he,N({field:i},le))},xd=function(){var r=Re(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Zt,{schema:s})},bd=function(r){return React.forwardRef(function(i,a){return React.createElement(jt.Consumer,null,function(s){return React.createElement(r,N({formApi:s,ref:a},i))})})},Vl=function(r){return React.forwardRef(function(i,a){return React.createElement(At.Consumer,null,function(s){return React.createElement(r,N({formState:s,ref:a},i))})})},Wl=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Hl(t){var r=Re(),i=useMemo(function(){return Wl(r,t)},[t]);return i}function zl(t){var r=Hl(t),i=Re(),a=React.useState(),s=Q(a,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return gt(function(){var S=function(E){E===t&&y()};return i.emitter.on("field",S),function(){i.emitter.removeListener("field",S)}},[]),gt(function(){y()},[]),r.getFieldState()||{}}var Sf=function(r){return function(i){return function(a){var s=zl(r);return React.createElement(i,N({fieldState:s},a))}}},Ss=function(r){return function(i){return function(a){var s=Hl(r);return React.createElement(i,N({fieldApi:s},a))}}},As=function(r){var i=r.value,a=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",N({ref:a,value:i,key:i},p),s)},Gl=null,Wo=o(80150),zt=o(25446),Ki=o(25805),Gt=o(76671),Yi=o(78005),xt=o(39713),In=o(23485),Af=Object.defineProperty,Es=Object.defineProperties,$l=Object.getOwnPropertyDescriptors,ti=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,Ho=(t,r,i)=>r in t?Af(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ho=(t,r)=>{for(var i in r||(r={}))Cs.call(r,i)&&Ho(t,i,r[i]);if(ti)for(var i of ti(r))ri.call(r,i)&&Ho(t,i,r[i]);return t},Ji=(t,r)=>Es(t,$l(r));const Kl=In.iv`
|
|
81
81
|
border: none;
|
|
82
82
|
outline: none;
|
|
83
83
|
padding: 8px;
|
|
84
84
|
border-radius: ${({theme:t})=>t.shape.borderRadius};
|
|
85
85
|
background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor};
|
|
86
|
-
${({theme:t})=>(0,
|
|
86
|
+
${({theme:t})=>(0,In.QG)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}
|
|
87
87
|
|
|
88
88
|
&::placeholder {
|
|
89
89
|
opacity: 0.6;
|
|
@@ -93,16 +93,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
93
93
|
&:-webkit-autofill {
|
|
94
94
|
background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
`,Yl=In.ZP.div`
|
|
97
97
|
display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
|
|
98
98
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
99
|
-
`,
|
|
99
|
+
`,Ef=In.ZP.div`
|
|
100
100
|
position: relative;
|
|
101
|
-
`,
|
|
102
|
-
${
|
|
101
|
+
`,Cf=In.ZP.input`
|
|
102
|
+
${Kl}
|
|
103
103
|
${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
|
|
104
104
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
105
|
-
`,
|
|
105
|
+
`,Os=In.ZP.span`
|
|
106
106
|
position: absolute;
|
|
107
107
|
right: 0;
|
|
108
108
|
line-height: normal;
|
|
@@ -111,81 +111,81 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
111
111
|
padding: calc(8px / 0.8);
|
|
112
112
|
cursor: pointer;
|
|
113
113
|
text-align: center;
|
|
114
|
-
${({theme:t})=>(0,
|
|
115
|
-
`;function
|
|
114
|
+
${({theme:t})=>(0,In.QG)({color:t.rightPanel.textColor})}
|
|
115
|
+
`;function Jl(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[p,y]=d.useState(s==="password"),S=d.useCallback(()=>{y(!p)},[p]);return d.createElement(Yl,{fullWidth:i,type:s},d.createElement(Ef,null,d.createElement(Cf,Ji(ho({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement(Os,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement(Os,{onClick:S},p?"show":"hide"):null),a?d.createElement(xt.Xq,null,a):null)}const zo=d.forwardRef(Jl);function hn(t){const r=Kn(ho({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,p=r.informed;return a(d.createElement(zo,Ji(ho(ho({},i),p),{errorMessage:s.error})))}const Go=pn(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((E,k)=>({value:E.title||E.value,idx:k,origValue:E.value})),p=s.find(E=>E.origValue===t),[y,S]=d.useState(p==null?void 0:p.value);d.useEffect(()=>{t&&i.setValue(t)},[]);const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),S(s[E.idx].value)},[s]);return d.createElement(Yl,{fullWidth:!0},d.createElement(Yi.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),a.error?d.createElement(xt.Xq,null,a.error):null)});function Xl(t){const{name:r,value:i,description:a,variableEnum:s,onChange:p,defaultValue:y}=t,S=k=>p(k.target.value),w=k=>p(k.value),E=s?s.map((k,$)=>({value:k,idx:$})):[];return d.createElement(xt.NI,null,d.createElement(xt.lX,null,r,":"),E&&E.length?d.createElement(Yi.Dropdown,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement(zo,{fullWidth:!0,value:i,onChange:S,placeholder:y}),a&&d.createElement(Of,null,a))}const Of=Gt.styled.small`
|
|
116
116
|
display: inline-block;
|
|
117
117
|
margin-top: 5px;
|
|
118
118
|
color: #d0d0d0;
|
|
119
|
-
`;var
|
|
120
|
-
${(0,
|
|
119
|
+
`;var Vr=o(7241),$o=Object.defineProperty,vo=Object.defineProperties,Tf=Object.getOwnPropertyDescriptor,Pf=Object.getOwnPropertyDescriptors,Ql=Object.getOwnPropertySymbols,Ko=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,Ts=(t,r,i)=>r in t?$o(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ps=(t,r)=>{for(var i in r||(r={}))Ko.call(r,i)&&Ts(t,i,r[i]);if(Ql)for(var i of Ql(r))Wr.call(r,i)&&Ts(t,i,r[i]);return t},go=(t,r)=>vo(t,Pf(r)),If=(t,r,i,a)=>{for(var s=a>1?void 0:a?Tf(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&$o(r,i,s),s},Fa=(t,r,i)=>(Ts(t,typeof r!="symbol"?r+"":r,i),i);let Is=class extends d.Component{constructor(){super(...arguments);Fa(this,"state",{activeIdx:0,variables:{}}),Fa(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(a=>a.url===t.serverUrl),i=(0,Vr.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:i}),(0,zt.WW)("serverUrl",t.serverUrl||""),this.setState({variables:i})}),Fa(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],a=go(Ps({},this.state.variables),{[t]:r||(0,Vr.mj)(i)[t]});this.setState({variables:a}),(0,Vr.UY)(t,r),this.props.onChange(go(Ps({},i),{variables:a}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,zt.YQ)("serverUrl"),a=r.servers.findIndex(s=>s.url===i);return{activeIdx:a<0?0:a}}componentDidMount(){const t=(0,Vr.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,i=this.props.operation.servers.map((s,p)=>({idx:p,serverUrl:s.url,value:`
|
|
120
|
+
${(0,Vr.nq)((0,Vr.v5)(s.url,this.state.variables),s.variables)}
|
|
121
121
|
- ${s.description||"Default"}
|
|
122
|
-
`})),a=Object.keys(this.state.variables);return d.createElement(
|
|
122
|
+
`})),a=Object.keys(this.state.variables);return d.createElement(Fs,null,d.createElement(xt.lX,{htmlFor:"server"},"Target server: "),d.createElement(xt.NI,null,d.createElement(Yi.Dropdown,{variant:"dark",value:i[t].value,options:i,fullWidth:!0,onChange:this.handleServerChange})),a.length?a.map(s=>{var p;const y=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(y)return d.createElement(Xl,{key:s,name:s,value:this.state.variables[s],defaultValue:y.default,onChange:S=>this.handleVariableChange(s,S),variableEnum:y.enum,description:y.description})}):null)}};Is=If([Wo.Pi],Is);const Fs=Gt.styled.div`
|
|
123
123
|
margin-top: 20px;
|
|
124
|
-
`,
|
|
124
|
+
`,Zl=t=>{(0,d.useEffect)(()=>{t()},[])},Sd=t=>{useEffect(()=>()=>{t()},[])},_l=pn(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=d.useState(t),p=r.map((S,w)=>({idx:w,value:S})),y=S=>{i.setValue(S.value),s(S.value)};return Zl(()=>{t&&i.setValue(t)}),d.createElement(Yi.Dropdown,{fullWidth:!0,variant:"dark",value:a,options:p,onChange:y})});var Si;(function(t){t.ARRAY="array",t.OBJECT="object"})(Si||(Si={}));const Ff=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Yo(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function ni(t){const r={};return t.forEach(i=>{Yo(r,i.in,i)}),r}const ka=["path","query","cookie","header"];function ks(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===Si.ARRAY&&Array.isArray(r)){if(r.length>(t.schema.rawSchema&&t.schema.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.schema.rawSchema.maxItems}`;if(r.length<(t.schema.rawSchema&&t.schema.rawSchema.minItems||0)){const i=t.schema.rawSchema.minItems;return`You should select at least ${i===1?`${i} item`:`${i} items`}`}}}}function ql(t){if(t.schema.type===Si.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&t.schema.rawSchema.items){if(t.schema.rawSchema.items.default)return[t.schema.rawSchema.items.default];if(t.schema.rawSchema.items.example)return[t.schema.rawSchema.items.example]}return r||[]}else return t.schema.default||t.schema.example}function Xn({values:t,operation:r}){function i(S,w){const E=d.useMemo(()=>ks(w),[w]),k=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,$=ql(w),ae=S.split(".").map(re=>(0,zt.dw)(re));return k?d.createElement(xt.NI,null,d.createElement(_l,{initValue:$,paramEnum:k,field:S})):d.createElement(hn,{fullWidth:!0,"data-cy":"parameter-input",id:S,field:S,placeholder:Ff(w),validate:E,initialValue:$||(0,zt.U2)(t,ae),validateOnBlur:!0,validateOnChange:!0})}function a({oneOfType:S,type:w,items:E}){return S||w===Si.ARRAY&&(E==null?void 0:E.type)===Si.OBJECT&&"Array of objects"}function s(S,w,E){var k;const $=E?(0,zt.s1)(E,S.name):S.name,ae=a(S.schema);if(ae&&console.warn(`Unsupported parameter definition: "${ae}"`),S.schema.type===Si.OBJECT)return(k=S.schema.fields)==null?void 0:k.map(ge=>s(ge,w,$));const re=E?[w,E]:[S.in],le=(0,zt.s1)(...re,(0,zt.A8)(S.name));return d.createElement(xt.NI,{key:le},d.createElement(xt.lX,{required:S.required},$,":"),ae?d.createElement(xt.GE,null,"Unsupported field schema definition"):i(le,S))}function p(S,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:S},d.createElement(xt.NI,null,d.createElement(xt.iG,null," # ",S," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,S)))}const y=ni(r.parameters||[]);return d.createElement(xt.iA,null,ka.map(S=>p(S,y[S])))}var vn=o(78722),Ra=o(55346),Xi=o(59219);function eu(t,r,i){const a=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,Vr.v5)(t,a);const S=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const E=S(w);return E?(0,Gt.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const kf=({loading:t,operation:r,hasResponse:i,execute:a,params:s={}})=>d.createElement(Rs,null,d.createElement(Ra._,null,d.createElement(Xi.FH,{type:r.httpVerb},r.httpVerb),d.createElement(Ra.y,{wrap:"true"},eu(r.path,s,r.parameters))),d.createElement(tu,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&a()},t?"Sending...":i?"Resend":"Send")),tu=(0,Gt.styled)(Xi.zx)`
|
|
125
125
|
width: ${({theme:t})=>t.components.tryItSendButton.fullWidth?"100%":"auto"};
|
|
126
|
-
`,
|
|
126
|
+
`,Rs=(0,Gt.styled)(vn.k1)`
|
|
127
127
|
${({theme:t})=>t.components.tryItSendButton.fullWidth?`
|
|
128
128
|
flex-direction: column;
|
|
129
129
|
align-items: flex-start;`:""};
|
|
130
|
-
`,
|
|
130
|
+
`,yo=d.memo(kf);var gn=o(55366);function ru({response:t}){return d.createElement(d.Fragment,null,d.createElement(Ds,null," Body: "),nu(t))}function nu(t){return t.body?d.createElement(Gt.JsonViewer,{data:t.body}):t.fileInfo?d.createElement(Gt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(Gt.SourceCodeWithText,{lang:(0,Gt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):d.createElement(Ns,null,d.createElement("i",null,"(no content)")):null}const Rf=Gt.styled.div`
|
|
131
131
|
margin-bottom: 10px;
|
|
132
|
-
`,Ms=
|
|
132
|
+
`,Ms=Gt.styled.div`
|
|
133
133
|
display: inline-block;
|
|
134
134
|
margin-right: 20px;
|
|
135
135
|
padding: 2px 0;
|
|
136
136
|
text-align: center;
|
|
137
137
|
color: ${({theme:t})=>t.colors.text.light};
|
|
138
|
-
`,
|
|
138
|
+
`,Mf=(0,Gt.styled)(Ms)`
|
|
139
139
|
color: ${({theme:t,code:r})=>r>=200&&r<300?t.colors.responses.success.tabTextColor:r>=300&&r<400?t.colors.responses.redirect.tabTextColor:r>400?t.colors.responses.error.tabTextColor:t.colors.responses.info.tabTextColor};
|
|
140
|
-
`,
|
|
140
|
+
`,iu=Gt.styled.strong`
|
|
141
141
|
text-transform: capitalize;
|
|
142
142
|
display: inline-block;
|
|
143
143
|
padding-right: 5px;
|
|
144
|
-
`,Ls=
|
|
144
|
+
`,Ls=Gt.styled.header`
|
|
145
145
|
font-weight: bold;
|
|
146
146
|
margin-bottom: 10px;
|
|
147
|
-
`,
|
|
147
|
+
`,Jo=Gt.styled.code`
|
|
148
148
|
border-left: 3px solid #ff4040;
|
|
149
149
|
padding-left: 5px;
|
|
150
|
-
`,
|
|
150
|
+
`,Ds=Gt.styled.div`
|
|
151
151
|
margin-bottom: 10px;
|
|
152
152
|
|
|
153
153
|
&:not(:first-child) {
|
|
154
154
|
margin-top: 10px;
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,Ns=(0,Gt.styled)(gn.nr)`
|
|
157
157
|
border-top-left-radius: 0;
|
|
158
158
|
border-top-right-radius: 0;
|
|
159
|
-
`;class
|
|
160
|
-
`;break;case 114:Fe+="\r";break;case 116:Fe+=" ";break;case 117:var Be=ae(4,!0);Be>=0?Fe+=String.fromCharCode(Be):$=4;break;default:$=5}Ke=a;continue}if(Ue>=0&&Ue<=31)if(Qi(Ue)){Fe+=t.substring(Ke,a),$=2;break}else $=6;a++}return Fe}function he(){if(s="",$=0,p=a,w=S,k=E,a>=i)return p=i,y=17;var Fe=t.charCodeAt(a);if(
|
|
161
|
-
`),S++,E=a,y=14;switch(Fe){case 123:return a++,y=1;case 125:return a++,y=2;case 91:return a++,y=3;case 93:return a++,y=4;case 58:return a++,y=6;case 44:return a++,y=5;case 34:return a++,s=ge(),y=10;case 47:var Ke=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Qi(t.charCodeAt(a));)a++;return s=t.substring(Ke,a),y=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,$e=!1;a<Ue;){var Be=t.charCodeAt(a);if(Be===42&&t.charCodeAt(a+1)===47){a+=2,$e=!0;break}a++,Qi(Be)&&(Be===13&&t.charCodeAt(a)===10&&a++,S++,E=a)}return $e||(a++,$=1),s=t.substring(Ke,a),y=13}return s+=String.fromCharCode(Fe),a++,y=16;case 45:if(s+=String.fromCharCode(Fe),a++,a===i||!
|
|
159
|
+
`;class Bs extends d.PureComponent{render(){const{error:r,response:i,time:a}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let y;if(p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s)return d.createElement(d.Fragment,null,d.createElement(Ls,null," Could not get any response "),d.createElement(Jo,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(Ls,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - ","The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition"));if(!s)return d.createElement(d.Fragment,null,"Something went wrong");const S=Object.keys(s.headers);return d.createElement(d.Fragment,null,d.createElement(Rf,null,d.createElement(Mf,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(Ms,null,d.createElement("span",null," Time: "),a,"ms"),d.createElement(Ms,null,d.createElement("span",null," Size: "),y)),d.createElement("div",null,d.createElement(Ds,null," Headers: "),d.createElement(Ns,null,S.map(w=>d.createElement("div",{key:w},d.createElement(iu,null,w,":"),d.createElement("code",null," ",s.headers[w])))),d.createElement(ru,{response:s})))}}var Ma=o(9996),Us=o.n(Ma),La=o(29656),qr=o(4631);function Xo(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",p=0,y=16,S=0,w=0,E=0,k=0,$=0;function ae(Fe,Ke){for(var Ue=0,$e=0;Ue<Fe||!Ke;){var Be=t.charCodeAt(a);if(Be>=48&&Be<=57)$e=$e*16+Be-48;else if(Be>=65&&Be<=70)$e=$e*16+Be-65+10;else if(Be>=97&&Be<=102)$e=$e*16+Be-97+10;else break;a++,Ue++}return Ue<Fe&&($e=-1),$e}function re(Fe){a=Fe,s="",p=0,y=16,$=0}function le(){var Fe=a;if(t.charCodeAt(a)===48)a++;else for(a++;a<t.length&&Zi(t.charCodeAt(a));)a++;if(a<t.length&&t.charCodeAt(a)===46)if(a++,a<t.length&&Zi(t.charCodeAt(a)))for(a++;a<t.length&&Zi(t.charCodeAt(a));)a++;else return $=3,t.substring(Fe,a);var Ke=a;if(a<t.length&&(t.charCodeAt(a)===69||t.charCodeAt(a)===101))if(a++,(a<t.length&&t.charCodeAt(a)===43||t.charCodeAt(a)===45)&&a++,a<t.length&&Zi(t.charCodeAt(a))){for(a++;a<t.length&&Zi(t.charCodeAt(a));)a++;Ke=a}else $=3;return t.substring(Fe,Ke)}function ge(){for(var Fe="",Ke=a;;){if(a>=i){Fe+=t.substring(Ke,a),$=2;break}var Ue=t.charCodeAt(a);if(Ue===34){Fe+=t.substring(Ke,a),a++;break}if(Ue===92){if(Fe+=t.substring(Ke,a),a++,a>=i){$=2;break}var $e=t.charCodeAt(a++);switch($e){case 34:Fe+='"';break;case 92:Fe+="\\";break;case 47:Fe+="/";break;case 98:Fe+="\b";break;case 102:Fe+="\f";break;case 110:Fe+=`
|
|
160
|
+
`;break;case 114:Fe+="\r";break;case 116:Fe+=" ";break;case 117:var Be=ae(4,!0);Be>=0?Fe+=String.fromCharCode(Be):$=4;break;default:$=5}Ke=a;continue}if(Ue>=0&&Ue<=31)if(Qi(Ue)){Fe+=t.substring(Ke,a),$=2;break}else $=6;a++}return Fe}function he(){if(s="",$=0,p=a,w=S,k=E,a>=i)return p=i,y=17;var Fe=t.charCodeAt(a);if(Qo(Fe)){do a++,s+=String.fromCharCode(Fe),Fe=t.charCodeAt(a);while(Qo(Fe));return y=15}if(Qi(Fe))return a++,s+=String.fromCharCode(Fe),Fe===13&&t.charCodeAt(a)===10&&(a++,s+=`
|
|
161
|
+
`),S++,E=a,y=14;switch(Fe){case 123:return a++,y=1;case 125:return a++,y=2;case 91:return a++,y=3;case 93:return a++,y=4;case 58:return a++,y=6;case 44:return a++,y=5;case 34:return a++,s=ge(),y=10;case 47:var Ke=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Qi(t.charCodeAt(a));)a++;return s=t.substring(Ke,a),y=12}if(t.charCodeAt(a+1)===42){a+=2;for(var Ue=i-1,$e=!1;a<Ue;){var Be=t.charCodeAt(a);if(Be===42&&t.charCodeAt(a+1)===47){a+=2,$e=!0;break}a++,Qi(Be)&&(Be===13&&t.charCodeAt(a)===10&&a++,S++,E=a)}return $e||(a++,$=1),s=t.substring(Ke,a),y=13}return s+=String.fromCharCode(Fe),a++,y=16;case 45:if(s+=String.fromCharCode(Fe),a++,a===i||!Zi(t.charCodeAt(a)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=le(),y=11;default:for(;a<i&&Se(Fe);)a++,Fe=t.charCodeAt(a);if(p!==a){switch(s=t.substring(p,a),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Fe),a++,y=16}}function Se(Fe){if(Qo(Fe)||Qi(Fe))return!1;switch(Fe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var Fe;do Fe=he();while(Fe>=12&&Fe<=15);return Fe}return{setPosition:re,getPosition:function(){return a},scan:r?me:he,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return a-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return $}}}function Qo(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Qi(t){return t===10||t===13||t===8232||t===8233}function Zi(t){return t>=48&&t<=57}function ou(t,r,i){var a,s,p,y,S;if(r){for(y=r.offset,S=y+r.length,p=y;p>0&&!au(t,p-1);)p--;for(var w=S;w<t.length&&!au(t,w);)w++;s=t.substring(p,w),a=Lf(s,i)}else s=t,a=0,p=0,y=0,S=t.length;var E=Df(i,t),k=!1,$=0,ae;i.insertSpaces?ae=Zo(" ",i.tabSize||4):ae=" ";var re=Xo(s,!1),le=!1;function ge(){return E+Zo(ae,a+$)}function he(){var ze=re.scan();for(k=!1;ze===15||ze===14;)k=k||ze===14,ze=re.scan();return le=ze===16||re.getTokenError()!==0,ze}var Se=[];function me(ze,et,wt){!le&&et<S&&wt>y&&t.substring(et,wt)!==ze&&Se.push({offset:et,length:wt-et,content:ze})}var Fe=he();if(Fe!==17){var Ke=re.getTokenOffset()+p,Ue=Zo(ae,a);me(Ue,p,Ke)}for(;Fe!==17;){for(var $e=re.getTokenOffset()+re.getTokenLength()+p,Be=he(),je="";!k&&(Be===12||Be===13);){var We=re.getTokenOffset()+p;me(" ",$e,We),$e=re.getTokenOffset()+re.getTokenLength()+p,je=Be===12?ge():"",Be=he()}if(Be===2)Fe!==1&&($--,je=ge());else if(Be===4)Fe!==3&&($--,je=ge());else{switch(Fe){case 3:case 1:$++,je=ge();break;case 5:case 12:je=ge();break;case 13:k?je=ge():je=" ";break;case 6:je=" ";break;case 10:if(Be===6){je="";break}case 7:case 8:case 9:case 11:case 2:case 4:Be===12||Be===13?je=" ":Be!==5&&Be!==17&&(le=!0);break;case 16:le=!0;break}k&&(Be===12||Be===13)&&(je=ge())}var Je=re.getTokenOffset()+p;me(je,$e,Je),Fe=Be}return Se}function Zo(t,r){for(var i="",a=0;a<r;a++)i+=t;return i}function Lf(t,r){for(var i=0,a=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")a++;else if(p===" ")a+=s;else break;i++}return Math.floor(a/s)}function Df(t,r){for(var i=0;i<r.length;i++){var a=r.charAt(i);if(a==="\r")return i+1<r.length&&r.charAt(i+1)===`
|
|
162
162
|
`?`\r
|
|
163
163
|
`:"\r";if(a===`
|
|
164
164
|
`)return`
|
|
165
165
|
`}return t&&t.eol||`
|
|
166
|
-
`}function
|
|
167
|
-
`.indexOf(t.charAt(r))!==-1}var Ho;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Ho||(Ho={}));function Zi(t,r){var i=[],a=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function S(w,E,k,$){p.value=w,p.offset=E,p.length=k,p.type=$,p.colonOffset=void 0,s=p}try{_n(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,k){if(r<E||(S(w,E,k,"property"),i[i.length-1]=w,r<=E+k))throw a},onObjectEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw a;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onLiteralValue:function(w,E,k){if(r<E||(S(w,E,k,di(w)),r<=E+k))throw a},onSeparator:function(w,E,k){if(r<=E)throw a;if(w===":"&&s&&s.type==="property")s.colonOffset=E,y=!1,s=void 0;else if(w===","){var $=i[i.length-1];typeof $=="number"?i[i.length-1]=$+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var E=0,k=0;E<w.length&&k<i.length;k++)if(w[E]===i[k]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function mo(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Ho.DEFAULT);var a=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var S={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,a=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};return _n(t,S,i),s[0]}function xo(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Ho.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){a.type==="property"&&(a.length=w-a.offset,a=a.parent)}function p(w){return a.children.push(w),w}var y={onObjectBegin:function(w){a=p({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,k){a=p({type:"property",offset:E,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:w,offset:E,length:k,parent:a})},onObjectEnd:function(w,E){s(w+E),a.length=w+E-a.offset,a=a.parent,s(w+E)},onArrayBegin:function(w,E){a=p({type:"array",offset:w,length:-1,parent:a,children:[]})},onArrayEnd:function(w,E){a.length=w+E-a.offset,a=a.parent,s(w+E)},onLiteralValue:function(w,E,k){p({type:di(w),offset:E,length:k,parent:a,value:w}),s(E+k)},onSeparator:function(w,E,k){a.type==="property"&&(w===":"?a.colonOffset=E:w===","&&s(E))},onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};_n(t,y,i);var S=a.children[0];return S&&delete S.parent,S}function Us(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var p=s[a];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,S=0,w=i.children;S<w.length;S++){var E=w[S];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],y=!0;break}}if(!y)return}else{var k=p;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function Pa(t){if(!t.parent||!t.parent.children)return[];var r=Pa(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var a=t.parent.children.indexOf(t);a!==-1&&r.push(a)}return r}function Ia(t){switch(t.type){case"array":return t.children.map(Ia);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],p=s.children[1];p&&(r[s.children[0].value]=Ia(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function js(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Fi(t,r,i){if(i===void 0&&(i=!1),js(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var p=Fi(a[s],r,i);if(p)return p}return t}}function _n(t,r,i){i===void 0&&(i=Ho.DEFAULT);var a=yn(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Xe){return We(Xe,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),S=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),k=s(r.onArrayEnd),$=p(r.onLiteralValue),ae=p(r.onSeparator),re=s(r.onComment),le=p(r.onError),ge=i&&i.disallowComments,he=i&&i.allowTrailingComma;function Se(){for(;;){var We=a.scan();switch(a.getTokenError()){case 4:xe(14);break;case 5:xe(15);break;case 3:xe(13);break;case 1:ge||xe(11);break;case 2:xe(12);break;case 6:xe(16);break}switch(We){case 12:case 13:ge?xe(10):re();break;case 16:xe(1);break;case 15:case 14:break;default:return We}}}function xe(We,Xe,ze){if(Xe===void 0&&(Xe=[]),ze===void 0&&(ze=[]),le(We),Xe.length+ze.length>0)for(var et=a.getToken();et!==17;){if(Xe.indexOf(et)!==-1){Se();break}else if(ze.indexOf(et)!==-1)break;et=Se()}}function Fe(We){var Xe=a.getTokenValue();return We?$(Xe):S(Xe),Se(),!0}function Ke(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Xe=Number(We);isNaN(Xe)&&(xe(2),Xe=0),$(Xe);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return Se(),!0}function Ue(){return a.getToken()!==10?(xe(3,[],[2,5]),!1):(Fe(!1),a.getToken()===6?(ae(":"),Se(),je()||xe(4,[],[2,5])):xe(5,[],[2,5]),!0)}function $e(){y(),Se();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||xe(4,[],[]),ae(","),Se(),a.getToken()===2&&he)break}else We&&xe(6,[],[]);Ue()||xe(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?xe(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||xe(4,[],[]),ae(","),Se(),a.getToken()===4&&he)break}else We&&xe(6,[],[]);je()||xe(4,[],[4,5]),We=!0}return k(),a.getToken()!==4?xe(8,[4],[]):Se(),!0}function je(){switch(a.getToken()){case 3:return Be();case 1:return $e();case 10:return Fe(!0);default:return Ke()}}return Se(),a.getToken()===17?i.allowEmptyContent?!0:(xe(4,[],[]),!1):je()?(a.getToken()!==17&&xe(9,[],[]),!0):(xe(4,[],[]),!1)}function ln(t,r){var i=yn(t),a=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&a.push(t.substring(p,y)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return a.join("")}function di(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function _i(t,r,i){return Fa(t,r,void 0,i)}function Fa(t,r,i,a){for(var s,p=r.slice(),y=[],S=parseTree(t,y),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(S,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[E]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var $=w.children.indexOf(k.parent),ae=void 0,re=k.parent.offset+k.parent.length;if($>0){var le=w.children[$-1];ae=le.offset+le.length}else if(ae=w.offset+1,w.children.length>1){var ge=w.children[1];re=ge.offset}return qi(t,{offset:ae,length:re-ae,content:""},a)}else return qi(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var he=JSON.stringify(E)+": "+JSON.stringify(i),Se=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,xe=void 0;if(Se>0){var le=w.children[Se-1];xe={offset:le.offset+le.length,length:0,content:","+he}}else w.children.length===0?xe={offset:w.offset+1,length:0,content:he}:xe={offset:w.offset+1,length:0,content:he+","};return qi(t,xe,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Fe=E;if(Fe===-1){var he=""+JSON.stringify(i),xe=void 0;if(w.children.length===0)xe={offset:w.offset+1,length:0,content:he};else{var le=w.children[w.children.length-1];xe={offset:le.offset+le.length,length:0,content:","+he}}return qi(t,xe,a)}else if(i===void 0&&w.children.length>=0){var Ke=E,Ue=w.children[Ke],xe=void 0;if(w.children.length===1)xe={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===Ke){var le=w.children[Ke-1],$e=le.offset+le.length,Be=w.offset+w.length;xe={offset:$e,length:Be-2-$e,content:""}}else xe={offset:Ue.offset,length:w.children[Ke+1].offset-Ue.offset,content:""};return qi(t,xe,a)}else if(i!==void 0){var xe=void 0,he=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var je=w.children[E];xe={offset:je.offset,length:je.length,content:he}}else if(w.children.length===0||E===0)xe={offset:w.offset+1,length:0,content:w.children.length===0?he:he+","};else{var Se=E>w.children.length?w.children.length:E,le=w.children[Se-1];xe={offset:le.offset+le.length,length:0,content:","+he}}return qi(t,xe,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Fe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof E!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return qi(t,{offset:S?S.offset:0,length:S?S.length:0,content:JSON.stringify(i)},a)}}function qi(t,r,i){if(!i.formattingOptions)return[r];var a=Vs(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;p<a.length&&!isEOL(a,p);)p++}for(var y=format(a,{offset:s,length:p-s},i.formattingOptions),S=y.length-1;S>=0;S--){var w=y[S];a=Vs(a,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(a.length-p)-s;return[{offset:s,length:E,content:a.substring(s,p)}]}function Vs(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function ka(t,r){return`\r
|
|
168
|
-
`.indexOf(t.charAt(r))!==-1}var eo=yn,lu=Zi,Ra=mo,Od=xo,uu=Us,fu=Fi,Ws=Pa,Hs=Ia,zo=_n,zs=ln;function Gf(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function Ma(t,r,i){return au(t,r,i)}function Td(t,r,i,a){return edit.setProperty(t,r,i,a)}function Pd(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Go(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,a;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Go(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var p=[];for(a in r)p.push(a);if(p.sort(),!Go(s,p))return!1;for(i=0;i<s.length;i++)if(!Go(t[s[i]],r[s[i]]))return!1}return!0}function un(t){return typeof t=="number"}function Vn(t){return typeof t!="undefined"}function fn(t){return typeof t=="boolean"}function $o(t){return typeof t=="string"}var cu;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(cu||(cu={}));var to;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(to||(to={}));var kn;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=to.MAX_VALUE),s===Number.MAX_VALUE&&(s=to.MAX_VALUE),{line:a,character:s}}t.create=r;function i(a){var s=a;return Je.objectLiteral(s)&&Je.uinteger(s.line)&&Je.uinteger(s.character)}t.is=i})(kn||(kn={}));var Zt;(function(t){function r(a,s,p,y){if(Je.uinteger(a)&&Je.uinteger(s)&&Je.uinteger(p)&&Je.uinteger(y))return{start:kn.create(a,s),end:kn.create(p,y)};if(kn.is(a)&&kn.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+p+", "+y+"]")}t.create=r;function i(a){var s=a;return Je.objectLiteral(s)&&kn.is(s.start)&&kn.is(s.end)}t.is=i})(Zt||(Zt={}));var bo;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Zt.is(s.range)&&(Je.string(s.uri)||Je.undefined(s.uri))}t.is=i})(bo||(bo={}));var ki;(function(t){function r(a,s,p,y){return{targetUri:a,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Zt.is(s.targetRange)&&Je.string(s.targetUri)&&(Zt.is(s.targetSelectionRange)||Je.undefined(s.targetSelectionRange))&&(Zt.is(s.originSelectionRange)||Je.undefined(s.originSelectionRange))}t.is=i})(ki||(ki={}));var ro;(function(t){function r(a,s,p,y){return{red:a,green:s,blue:p,alpha:y}}t.create=r;function i(a){var s=a;return Je.numberRange(s.red,0,1)&&Je.numberRange(s.green,0,1)&&Je.numberRange(s.blue,0,1)&&Je.numberRange(s.alpha,0,1)}t.is=i})(ro||(ro={}));var Ri;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return Zt.is(s.range)&&ro.is(s.color)}t.is=i})(Ri||(Ri={}));var wo;(function(t){function r(a,s,p){return{label:a,textEdit:s,additionalTextEdits:p}}t.create=r;function i(a){var s=a;return Je.string(s.label)&&(Je.undefined(s.textEdit)||Wn.is(s))&&(Je.undefined(s.additionalTextEdits)||Je.typedArray(s.additionalTextEdits,Wn.is))}t.is=i})(wo||(wo={}));var qn;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(qn||(qn={}));var Gs;(function(t){function r(a,s,p,y,S){var w={startLine:a,endLine:s};return Je.defined(p)&&(w.startCharacter=p),Je.defined(y)&&(w.endCharacter=y),Je.defined(S)&&(w.kind=S),w}t.create=r;function i(a){var s=a;return Je.uinteger(s.startLine)&&Je.uinteger(s.startLine)&&(Je.undefined(s.startCharacter)||Je.uinteger(s.startCharacter))&&(Je.undefined(s.endCharacter)||Je.uinteger(s.endCharacter))&&(Je.undefined(s.kind)||Je.string(s.kind))}t.is=i})(Gs||(Gs={}));var La;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Je.defined(s)&&bo.is(s.location)&&Je.string(s.message)}t.is=i})(La||(La={}));var Wt;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Wt||(Wt={}));var du;(function(t){t.Unnecessary=1,t.Deprecated=2})(du||(du={}));var Mi;(function(t){function r(i){var a=i;return a!=null&&Je.string(a.href)}t.is=r})(Mi||(Mi={}));var cn;(function(t){function r(a,s,p,y,S,w){var E={range:a,message:s};return Je.defined(p)&&(E.severity=p),Je.defined(y)&&(E.code=y),Je.defined(S)&&(E.source=S),Je.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,p=a;return Je.defined(p)&&Zt.is(p.range)&&Je.string(p.message)&&(Je.number(p.severity)||Je.undefined(p.severity))&&(Je.integer(p.code)||Je.string(p.code)||Je.undefined(p.code))&&(Je.undefined(p.codeDescription)||Je.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(Je.string(p.source)||Je.undefined(p.source))&&(Je.undefined(p.relatedInformation)||Je.typedArray(p.relatedInformation,La.is))}t.is=i})(cn||(cn={}));var Ko;(function(t){function r(a,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var S={title:a,command:s};return Je.defined(p)&&p.length>0&&(S.arguments=p),S}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.string(s.title)&&Je.string(s.command)}t.is=i})(Ko||(Ko={}));var Wn;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function a(p){return{range:p,newText:""}}t.del=a;function s(p){var y=p;return Je.objectLiteral(y)&&Je.string(y.newText)&&Zt.is(y.range)}t.is=s})(Wn||(Wn={}));var So;(function(t){function r(a,s,p){var y={label:a};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(a){var s=a;return s!==void 0&&Je.objectLiteral(s)&&Je.string(s.label)&&(Je.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Je.string(s.description)||s.description===void 0)}t.is=i})(So||(So={}));var tn;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(tn||(tn={}));var Li;(function(t){function r(p,y,S){return{range:p,newText:y,annotationId:S}}t.replace=r;function i(p,y,S){return{range:{start:p,end:p},newText:y,annotationId:S}}t.insert=i;function a(p,y){return{range:p,newText:"",annotationId:y}}t.del=a;function s(p){var y=p;return Wn.is(y)&&(So.is(y.annotationId)||tn.is(y.annotationId))}t.is=s})(Li||(Li={}));var Da;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Na.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Da||(Da={}));var Gr;(function(t){function r(a,s,p){var y={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(a){var s=a;return s&&s.kind==="create"&&Je.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Je.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Je.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||tn.is(s.annotationId))}t.is=i})(Gr||(Gr={}));var yr;(function(t){function r(a,s,p,y){var S={kind:"rename",oldUri:a,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(S.options=p),y!==void 0&&(S.annotationId=y),S}t.create=r;function i(a){var s=a;return s&&s.kind==="rename"&&Je.string(s.oldUri)&&Je.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Je.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Je.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||tn.is(s.annotationId))}t.is=i})(yr||(yr={}));var Dr;(function(t){function r(a,s,p){var y={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(a){var s=a;return s&&s.kind==="delete"&&Je.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Je.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Je.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||tn.is(s.annotationId))}t.is=i})(Dr||(Dr={}));var kr;(function(t){function r(i){var a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Je.string(s.kind)?Gr.is(s)||yr.is(s)||Dr.is(s):Da.is(s)}))}t.is=r})(kr||(kr={}));var Di=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,p;if(a===void 0?s=Wn.insert(r,i):tn.is(a)?(p=a,s=Li.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Li.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,a){var s,p;if(a===void 0?s=Wn.replace(r,i):tn.is(a)?(p=a,s=Li.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Li.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=Wn.del(r):tn.is(i)?(s=i,a=Li.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=Li.del(r,s)),this.edits.push(a),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),pu=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var a;if(tn.is(r)?a=r:(a=this.nextId(),i=r),this._annotations[a]!==void 0)throw new Error("Id "+a+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+a);return this._annotations[a]=i,this._size++,a},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),$s=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new pu(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Da.is(a)){var s=new Di(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Di(r.changes[a]);i._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Na.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},a=this._textEditChanges[i.uri];if(!a){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),a=new Di(s,this._changeAnnotations),this._textEditChanges[i.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new Di(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new pu,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;So.is(i)||tn.is(i)?s=i:a=i;var p,y;if(s===void 0?p=Gr.create(r,a):(y=tn.is(s)?s:this._changeAnnotations.manage(s),p=Gr.create(r,a,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,i,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;So.is(a)||tn.is(a)?p=a:s=a;var y,S;if(p===void 0?y=yr.create(r,i,s):(S=tn.is(p)?p:this._changeAnnotations.manage(p),y=yr.create(r,i,s,S)),this._workspaceEdit.documentChanges.push(y),S!==void 0)return S},t.prototype.deleteFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;So.is(i)||tn.is(i)?s=i:a=i;var p,y;if(s===void 0?p=Dr.create(r,a):(y=tn.is(s)?s:this._changeAnnotations.manage(s),p=Dr.create(r,a,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),hu;(function(t){function r(a){return{uri:a}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.string(s.uri)}t.is=i})(hu||(hu={}));var vu;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.string(s.uri)&&Je.integer(s.version)}t.is=i})(vu||(vu={}));var Na;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.string(s.uri)&&(s.version===null||Je.integer(s.version))}t.is=i})(Na||(Na={}));var Ba;(function(t){function r(a,s,p,y){return{uri:a,languageId:s,version:p,text:y}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.string(s.uri)&&Je.string(s.languageId)&&Je.integer(s.version)&&Je.string(s.text)}t.is=i})(Ba||(Ba={}));var ei;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(ei||(ei={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(ei||(ei={}));var Yo;(function(t){function r(i){var a=i;return Je.objectLiteral(i)&&ei.is(a.kind)&&Je.string(a.value)}t.is=r})(Yo||(Yo={}));var On;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(On||(On={}));var Rr;(function(t){t.PlainText=1,t.Snippet=2})(Rr||(Rr={}));var Ua;(function(t){t.Deprecated=1})(Ua||(Ua={}));var Ks;(function(t){function r(a,s,p){return{newText:a,insert:s,replace:p}}t.create=r;function i(a){var s=a;return s&&Je.string(s.newText)&&Zt.is(s.insert)&&Zt.is(s.replace)}t.is=i})(Ks||(Ks={}));var Ys;(function(t){t.asIs=1,t.adjustIndentation=2})(Ys||(Ys={}));var Jo;(function(t){function r(i){return{label:i}}t.create=r})(Jo||(Jo={}));var Js;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(Js||(Js={}));var Ni;(function(t){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(a){var s=a;return Je.string(s)||Je.objectLiteral(s)&&Je.string(s.language)&&Je.string(s.value)}t.is=i})(Ni||(Ni={}));var gu;(function(t){function r(i){var a=i;return!!a&&Je.objectLiteral(a)&&(Yo.is(a.contents)||Ni.is(a.contents)||Je.typedArray(a.contents,Ni.is))&&(i.range===void 0||Zt.is(i.range))}t.is=r})(gu||(gu={}));var Xo;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})(Xo||(Xo={}));var ti;(function(t){function r(i,a){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return Je.defined(a)&&(y.documentation=a),Je.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(ti||(ti={}));var Xs;(function(t){t.Text=1,t.Read=2,t.Write=3})(Xs||(Xs={}));var yu;(function(t){function r(i,a){var s={range:i};return Je.number(a)&&(s.kind=a),s}t.create=r})(yu||(yu={}));var Hn;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Hn||(Hn={}));var mn;(function(t){t.Deprecated=1})(mn||(mn={}));var _t;(function(t){function r(i,a,s,p,y){var S={name:i,kind:a,location:{uri:p,range:s}};return y&&(S.containerName=y),S}t.create=r})(_t||(_t={}));var Rn;(function(t){function r(a,s,p,y,S,w){var E={name:a,detail:s,kind:p,range:y,selectionRange:S};return w!==void 0&&(E.children=w),E}t.create=r;function i(a){var s=a;return s&&Je.string(s.name)&&Je.number(s.kind)&&Zt.is(s.range)&&Zt.is(s.selectionRange)&&(s.detail===void 0||Je.string(s.detail))&&(s.deprecated===void 0||Je.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Rn||(Rn={}));var pi;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(pi||(pi={}));var hi;(function(t){function r(a,s){var p={diagnostics:a};return s!=null&&(p.only=s),p}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.typedArray(s.diagnostics,cn.is)&&(s.only===void 0||Je.typedArray(s.only,Je.string))}t.is=i})(hi||(hi={}));var Qs;(function(t){function r(a,s,p){var y={title:a},S=!0;return typeof s=="string"?(S=!1,y.kind=s):Ko.is(s)?y.command=s:y.edit=s,S&&p!==void 0&&(y.kind=p),y}t.create=r;function i(a){var s=a;return s&&Je.string(s.title)&&(s.diagnostics===void 0||Je.typedArray(s.diagnostics,cn.is))&&(s.kind===void 0||Je.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Ko.is(s.command))&&(s.isPreferred===void 0||Je.boolean(s.isPreferred))&&(s.edit===void 0||kr.is(s.edit))}t.is=i})(Qs||(Qs={}));var ja;(function(t){function r(a,s){var p={range:a};return Je.defined(s)&&(p.data=s),p}t.create=r;function i(a){var s=a;return Je.defined(s)&&Zt.is(s.range)&&(Je.undefined(s.command)||Ko.is(s.command))}t.is=i})(ja||(ja={}));var Zs;(function(t){function r(a,s){return{tabSize:a,insertSpaces:s}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Je.uinteger(s.tabSize)&&Je.boolean(s.insertSpaces)}t.is=i})(Zs||(Zs={}));var mu;(function(t){function r(a,s,p){return{range:a,target:s,data:p}}t.create=r;function i(a){var s=a;return Je.defined(s)&&Zt.is(s.range)&&(Je.undefined(s.target)||Je.string(s.target))}t.is=i})(mu||(mu={}));var Ao;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&Zt.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Ao||(Ao={}));var Va=null,_s;(function(t){function r(p,y,S,w){return new qs(p,y,S,w)}t.create=r;function i(p){var y=p;return!!(Je.defined(y)&&Je.string(y.uri)&&(Je.undefined(y.languageId)||Je.string(y.languageId))&&Je.uinteger(y.lineCount)&&Je.func(y.getText)&&Je.func(y.positionAt)&&Je.func(y.offsetAt))}t.is=i;function a(p,y){for(var S=p.getText(),w=s(y,function(le,ge){var he=le.range.start.line-ge.range.start.line;return he===0?le.range.start.character-ge.range.start.character:he}),E=S.length,k=w.length-1;k>=0;k--){var $=w[k],ae=p.offsetAt($.range.start),re=p.offsetAt($.range.end);if(re<=E)S=S.substring(0,ae)+$.newText+S.substring(re,S.length);else throw new Error("Overlapping edit");E=ae}return S}t.applyEdits=a;function s(p,y){if(p.length<=1)return p;var S=p.length/2|0,w=p.slice(0,S),E=p.slice(S);s(w,y),s(E,y);for(var k=0,$=0,ae=0;k<w.length&&$<E.length;){var re=y(w[k],E[$]);re<=0?p[ae++]=w[k++]:p[ae++]=E[$++]}for(;k<w.length;)p[ae++]=w[k++];for(;$<E.length;)p[ae++]=E[$++];return p}})(_s||(_s={}));var qs=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,a=!0,s=0;s<i.length;s++){a&&(r.push(s),a=!1);var p=i.charAt(s);a=p==="\r"||p===`
|
|
166
|
+
`}function au(t,r){return`\r
|
|
167
|
+
`.indexOf(t.charAt(r))!==-1}var jn;(function(t){t.DEFAULT={allowTrailingComma:!1}})(jn||(jn={}));function mo(t,r){var i=[],a=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function S(w,E,k,$){p.value=w,p.offset=E,p.length=k,p.type=$,p.colonOffset=void 0,s=p}try{$r(t,{onObjectBegin:function(w,E){if(r<=w)throw a;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,k){if(r<E||(S(w,E,k,"property"),i[i.length-1]=w,r<=E+k))throw a},onObjectEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw a;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw a;s=void 0,i.pop()},onLiteralValue:function(w,E,k){if(r<E||(S(w,E,k,ii(w)),r<=E+k))throw a},onSeparator:function(w,E,k){if(r<=E)throw a;if(w===":"&&s&&s.type==="property")s.colonOffset=E,y=!1,s=void 0;else if(w===","){var $=i[i.length-1];typeof $=="number"?i[i.length-1]=$+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var E=0,k=0;E<w.length&&k<i.length;k++)if(w[E]===i[k]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function xo(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=jn.DEFAULT);var a=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var S={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,a=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};return $r(t,S,i),s[0]}function js(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=jn.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){a.type==="property"&&(a.length=w-a.offset,a=a.parent)}function p(w){return a.children.push(w),w}var y={onObjectBegin:function(w){a=p({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,E,k){a=p({type:"property",offset:E,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:w,offset:E,length:k,parent:a})},onObjectEnd:function(w,E){s(w+E),a.length=w+E-a.offset,a=a.parent,s(w+E)},onArrayBegin:function(w,E){a=p({type:"array",offset:w,length:-1,parent:a,children:[]})},onArrayEnd:function(w,E){a.length=w+E-a.offset,a=a.parent,s(w+E)},onLiteralValue:function(w,E,k){p({type:ii(w),offset:E,length:k,parent:a,value:w}),s(E+k)},onSeparator:function(w,E,k){a.type==="property"&&(w===":"?a.colonOffset=E:w===","&&s(E))},onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};$r(t,y,i);var S=a.children[0];return S&&delete S.parent,S}function Vs(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var p=s[a];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,S=0,w=i.children;S<w.length;S++){var E=w[S];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],y=!0;break}}if(!y)return}else{var k=p;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function Ws(t){if(!t.parent||!t.parent.children)return[];var r=Ws(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var a=t.parent.children.indexOf(t);a!==-1&&r.push(a)}return r}function _o(t){switch(t.type){case"array":return t.children.map(_o);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],p=s.children[1];p&&(r[s.children[0].value]=_o(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function _i(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Ai(t,r,i){if(i===void 0&&(i=!1),_i(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var p=Ai(a[s],r,i);if(p)return p}return t}}function $r(t,r,i){i===void 0&&(i=jn.DEFAULT);var a=Xo(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),S=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),k=s(r.onArrayEnd),$=p(r.onLiteralValue),ae=p(r.onSeparator),re=s(r.onComment),le=p(r.onError),ge=i&&i.disallowComments,he=i&&i.allowTrailingComma;function Se(){for(;;){var We=a.scan();switch(a.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ge||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ge?me(10):re();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Je,ze){if(Je===void 0&&(Je=[]),ze===void 0&&(ze=[]),le(We),Je.length+ze.length>0)for(var et=a.getToken();et!==17;){if(Je.indexOf(et)!==-1){Se();break}else if(ze.indexOf(et)!==-1)break;et=Se()}}function Fe(We){var Je=a.getTokenValue();return We?$(Je):S(Je),Se(),!0}function Ke(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Je=Number(We);isNaN(Je)&&(me(2),Je=0),$(Je);break;case 7:$(null);break;case 8:$(!0);break;case 9:$(!1);break;default:return!1}return Se(),!0}function Ue(){return a.getToken()!==10?(me(3,[],[2,5]),!1):(Fe(!1),a.getToken()===6?(ae(":"),Se(),je()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function $e(){y(),Se();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ae(","),Se(),a.getToken()===2&&he)break}else We&&me(6,[],[]);Ue()||me(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?me(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ae(","),Se(),a.getToken()===4&&he)break}else We&&me(6,[],[]);je()||me(4,[],[4,5]),We=!0}return k(),a.getToken()!==4?me(8,[4],[]):Se(),!0}function je(){switch(a.getToken()){case 3:return Be();case 1:return $e();case 10:return Fe(!0);default:return Ke()}}return Se(),a.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):je()?(a.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function Ei(t,r){var i=Xo(t),a=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&a.push(t.substring(p,y)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return a.join("")}function ii(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Hs(t,r,i){return Nf(t,r,void 0,i)}function Nf(t,r,i,a){for(var s,p=r.slice(),y=[],S=parseTree(t,y),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(S,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[E]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var $=w.children.indexOf(k.parent),ae=void 0,re=k.parent.offset+k.parent.length;if($>0){var le=w.children[$-1];ae=le.offset+le.length}else if(ae=w.offset+1,w.children.length>1){var ge=w.children[1];re=ge.offset}return Ci(t,{offset:ae,length:re-ae,content:""},a)}else return Ci(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var he=JSON.stringify(E)+": "+JSON.stringify(i),Se=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Se>0){var le=w.children[Se-1];me={offset:le.offset+le.length,length:0,content:","+he}}else w.children.length===0?me={offset:w.offset+1,length:0,content:he}:me={offset:w.offset+1,length:0,content:he+","};return Ci(t,me,a)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Fe=E;if(Fe===-1){var he=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:he};else{var le=w.children[w.children.length-1];me={offset:le.offset+le.length,length:0,content:","+he}}return Ci(t,me,a)}else if(i===void 0&&w.children.length>=0){var Ke=E,Ue=w.children[Ke],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===Ke){var le=w.children[Ke-1],$e=le.offset+le.length,Be=w.offset+w.length;me={offset:$e,length:Be-2-$e,content:""}}else me={offset:Ue.offset,length:w.children[Ke+1].offset-Ue.offset,content:""};return Ci(t,me,a)}else if(i!==void 0){var me=void 0,he=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>E){var je=w.children[E];me={offset:je.offset,length:je.length,content:he}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?he:he+","};else{var Se=E>w.children.length?w.children.length:E,le=w.children[Se-1];me={offset:le.offset+le.length,length:0,content:","+he}}return Ci(t,me,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Fe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof E!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return Ci(t,{offset:S?S.offset:0,length:S?S.length:0,content:JSON.stringify(i)},a)}}function Ci(t,r,i){if(!i.formattingOptions)return[r];var a=bo(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;p<a.length&&!isEOL(a,p);)p++}for(var y=format(a,{offset:s,length:p-s},i.formattingOptions),S=y.length-1;S>=0;S--){var w=y[S];a=bo(a,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(a.length-p)-s;return[{offset:s,length:E,content:a.substring(s,p)}]}function bo(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Bf(t,r){return`\r
|
|
168
|
+
`.indexOf(t.charAt(r))!==-1}var Oi=Xo,zs=mo,Uf=xo,su=js,jf=Vs,Gs=Ai,$s=Ws,wo=_o,Ks=$r,Vf=Ei;function Ys(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function Wf(t,r,i){return ou(t,r,i)}function Ed(t,r,i,a){return edit.setProperty(t,r,i,a)}function Cd(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function qi(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,a;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!qi(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var p=[];for(a in r)p.push(a);if(p.sort(),!qi(s,p))return!1;for(i=0;i<s.length;i++)if(!qi(t[s[i]],r[s[i]]))return!1}return!0}function sn(t){return typeof t=="number"}function yn(t){return typeof t!="undefined"}function mn(t){return typeof t=="boolean"}function Hf(t){return typeof t=="string"}var qo;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(qo||(qo={}));var ea;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(ea||(ea={}));var ln;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=ea.MAX_VALUE),s===Number.MAX_VALUE&&(s=ea.MAX_VALUE),{line:a,character:s}}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(ln||(ln={}));var tr;(function(t){function r(a,s,p,y){if(Ze.uinteger(a)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(y))return{start:ln.create(a,s),end:ln.create(p,y)};if(ln.is(a)&&ln.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+p+", "+y+"]")}t.create=r;function i(a){var s=a;return Ze.objectLiteral(s)&&ln.is(s.start)&&ln.is(s.end)}t.is=i})(tr||(tr={}));var Vn;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(Vn||(Vn={}));var So;(function(t){function r(a,s,p,y){return{targetUri:a,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.targetRange)&&Ze.string(s.targetUri)&&(tr.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(tr.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(So||(So={}));var oi;(function(t){function r(a,s,p,y){return{red:a,green:s,blue:p,alpha:y}}t.create=r;function i(a){var s=a;return Ze.numberRange(s.red,0,1)&&Ze.numberRange(s.green,0,1)&&Ze.numberRange(s.blue,0,1)&&Ze.numberRange(s.alpha,0,1)}t.is=i})(oi||(oi={}));var Ao;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return tr.is(s.range)&&oi.is(s.color)}t.is=i})(Ao||(Ao={}));var eo;(function(t){function r(a,s,p){return{label:a,textEdit:s,additionalTextEdits:p}}t.create=r;function i(a){var s=a;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||Wn.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,Wn.is))}t.is=i})(eo||(eo={}));var Eo;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Eo||(Eo={}));var Js;(function(t){function r(a,s,p,y,S){var w={startLine:a,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(y)&&(w.endCharacter=y),Ze.defined(S)&&(w.kind=S),w}t.create=r;function i(a){var s=a;return Ze.uinteger(s.startLine)&&Ze.uinteger(s.startLine)&&(Ze.undefined(s.startCharacter)||Ze.uinteger(s.startCharacter))&&(Ze.undefined(s.endCharacter)||Ze.uinteger(s.endCharacter))&&(Ze.undefined(s.kind)||Ze.string(s.kind))}t.is=i})(Js||(Js={}));var Da;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Vn.is(s.location)&&Ze.string(s.message)}t.is=i})(Da||(Da={}));var Ht;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ht||(Ht={}));var Ti;(function(t){t.Unnecessary=1,t.Deprecated=2})(Ti||(Ti={}));var Pi;(function(t){function r(i){var a=i;return a!=null&&Ze.string(a.href)}t.is=r})(Pi||(Pi={}));var ai;(function(t){function r(a,s,p,y,S,w){var E={range:a,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(y)&&(E.code=y),Ze.defined(S)&&(E.source=S),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(a){var s,p=a;return Ze.defined(p)&&tr.is(p.range)&&Ze.string(p.message)&&(Ze.number(p.severity)||Ze.undefined(p.severity))&&(Ze.integer(p.code)||Ze.string(p.code)||Ze.undefined(p.code))&&(Ze.undefined(p.codeDescription)||Ze.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(Ze.string(p.source)||Ze.undefined(p.source))&&(Ze.undefined(p.relatedInformation)||Ze.typedArray(p.relatedInformation,Da.is))}t.is=i})(ai||(ai={}));var ta;(function(t){function r(a,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var S={title:a,command:s};return Ze.defined(p)&&p.length>0&&(S.arguments=p),S}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(ta||(ta={}));var Wn;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function a(p){return{range:p,newText:""}}t.del=a;function s(p){var y=p;return Ze.objectLiteral(y)&&Ze.string(y.newText)&&tr.is(y.range)}t.is=s})(Wn||(Wn={}));var Co;(function(t){function r(a,s,p){var y={label:a};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(a){var s=a;return s!==void 0&&Ze.objectLiteral(s)&&Ze.string(s.label)&&(Ze.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Ze.string(s.description)||s.description===void 0)}t.is=i})(Co||(Co={}));var en;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(en||(en={}));var Ii;(function(t){function r(p,y,S){return{range:p,newText:y,annotationId:S}}t.replace=r;function i(p,y,S){return{range:{start:p,end:p},newText:y,annotationId:S}}t.insert=i;function a(p,y){return{range:p,newText:"",annotationId:y}}t.del=a;function s(p){var y=p;return Wn.is(y)&&(Co.is(y.annotationId)||en.is(y.annotationId))}t.is=s})(Ii||(Ii={}));var Yr;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Oo.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(Yr||(Yr={}));var xr;(function(t){function r(a,s,p){var y={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(a){var s=a;return s&&s.kind==="create"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||en.is(s.annotationId))}t.is=i})(xr||(xr={}));var Lr;(function(t){function r(a,s,p,y){var S={kind:"rename",oldUri:a,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(S.options=p),y!==void 0&&(S.annotationId=y),S}t.create=r;function i(a){var s=a;return s&&s.kind==="rename"&&Ze.string(s.oldUri)&&Ze.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Ze.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Ze.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||en.is(s.annotationId))}t.is=i})(Lr||(Lr={}));var br;(function(t){function r(a,s,p){var y={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(a){var s=a;return s&&s.kind==="delete"&&Ze.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Ze.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Ze.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||en.is(s.annotationId))}t.is=i})(br||(br={}));var to;(function(t){function r(i){var a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Ze.string(s.kind)?xr.is(s)||Lr.is(s)||br.is(s):Yr.is(s)}))}t.is=r})(to||(to={}));var Na=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,p;if(a===void 0?s=Wn.insert(r,i):en.is(a)?(p=a,s=Ii.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Ii.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,a){var s,p;if(a===void 0?s=Wn.replace(r,i):en.is(a)?(p=a,s=Ii.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Ii.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=Wn.del(r):en.is(i)?(s=i,a=Ii.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=Ii.del(r,s)),this.edits.push(a),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),ra=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var a;if(en.is(r)?a=r:(a=this.nextId(),i=r),this._annotations[a]!==void 0)throw new Error("Id "+a+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+a);return this._annotations[a]=i,this._size++,a},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Od=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new ra(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Yr.is(a)){var s=new Na(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Na(r.changes[a]);i._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(Oo.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},a=this._textEditChanges[i.uri];if(!a){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),a=new Na(s,this._changeAnnotations),this._textEditChanges[i.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new Na(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ra,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Co.is(i)||en.is(i)?s=i:a=i;var p,y;if(s===void 0?p=xr.create(r,a):(y=en.is(s)?s:this._changeAnnotations.manage(s),p=xr.create(r,a,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,i,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;Co.is(a)||en.is(a)?p=a:s=a;var y,S;if(p===void 0?y=Lr.create(r,i,s):(S=en.is(p)?p:this._changeAnnotations.manage(p),y=Lr.create(r,i,s,S)),this._workspaceEdit.documentChanges.push(y),S!==void 0)return S},t.prototype.deleteFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Co.is(i)||en.is(i)?s=i:a=i;var p,y;if(s===void 0?p=br.create(r,a):(y=en.is(s)?s:this._changeAnnotations.manage(s),p=br.create(r,a,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),lu;(function(t){function r(a){return{uri:a}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})(lu||(lu={}));var uu;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(uu||(uu={}));var Oo;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(Oo||(Oo={}));var Xs;(function(t){function r(a,s,p,y){return{uri:a,languageId:s,version:p,text:y}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(Xs||(Xs={}));var Hn;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Hn||(Hn={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(Hn||(Hn={}));var Qs;(function(t){function r(i){var a=i;return Ze.objectLiteral(i)&&Hn.is(a.kind)&&Ze.string(a.value)}t.is=r})(Qs||(Qs={}));var un;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(un||(un={}));var Ir;(function(t){t.PlainText=1,t.Snippet=2})(Ir||(Ir={}));var Zs;(function(t){t.Deprecated=1})(Zs||(Zs={}));var _s;(function(t){function r(a,s,p){return{newText:a,insert:s,replace:p}}t.create=r;function i(a){var s=a;return s&&Ze.string(s.newText)&&tr.is(s.insert)&&tr.is(s.replace)}t.is=i})(_s||(_s={}));var Ba;(function(t){t.asIs=1,t.adjustIndentation=2})(Ba||(Ba={}));var Ua;(function(t){function r(i){return{label:i}}t.create=r})(Ua||(Ua={}));var To;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(To||(To={}));var ja;(function(t){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(a){var s=a;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(ja||(ja={}));var na;(function(t){function r(i){var a=i;return!!a&&Ze.objectLiteral(a)&&(Qs.is(a.contents)||ja.is(a.contents)||Ze.typedArray(a.contents,ja.is))&&(i.range===void 0||tr.is(i.range))}t.is=r})(na||(na={}));var Qn;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})(Qn||(Qn={}));var qs;(function(t){function r(i,a){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return Ze.defined(a)&&(y.documentation=a),Ze.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(qs||(qs={}));var fu;(function(t){t.Text=1,t.Read=2,t.Write=3})(fu||(fu={}));var el;(function(t){function r(i,a){var s={range:i};return Ze.number(a)&&(s.kind=a),s}t.create=r})(el||(el={}));var Ar;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ar||(Ar={}));var _t;(function(t){t.Deprecated=1})(_t||(_t={}));var Fn;(function(t){function r(i,a,s,p,y){var S={name:i,kind:a,location:{uri:p,range:s}};return y&&(S.containerName=y),S}t.create=r})(Fn||(Fn={}));var si;(function(t){function r(a,s,p,y,S,w){var E={name:a,detail:s,kind:p,range:y,selectionRange:S};return w!==void 0&&(E.children=w),E}t.create=r;function i(a){var s=a;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&tr.is(s.range)&&tr.is(s.selectionRange)&&(s.detail===void 0||Ze.string(s.detail))&&(s.deprecated===void 0||Ze.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(si||(si={}));var li;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(li||(li={}));var tl;(function(t){function r(a,s){var p={diagnostics:a};return s!=null&&(p.only=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,ai.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(tl||(tl={}));var Va;(function(t){function r(a,s,p){var y={title:a},S=!0;return typeof s=="string"?(S=!1,y.kind=s):ta.is(s)?y.command=s:y.edit=s,S&&p!==void 0&&(y.kind=p),y}t.create=r;function i(a){var s=a;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,ai.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||ta.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||to.is(s.edit))}t.is=i})(Va||(Va={}));var rl;(function(t){function r(a,s){var p={range:a};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.range)&&(Ze.undefined(s.command)||ta.is(s.command))}t.is=i})(rl||(rl={}));var cu;(function(t){function r(a,s){return{tabSize:a,insertSpaces:s}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(cu||(cu={}));var Wa;(function(t){function r(a,s,p){return{range:a,target:s,data:p}}t.create=r;function i(a){var s=a;return Ze.defined(s)&&tr.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(Wa||(Wa={}));var Fi;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&tr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Fi||(Fi={}));var zf=null,Ha;(function(t){function r(p,y,S,w){return new ki(p,y,S,w)}t.create=r;function i(p){var y=p;return!!(Ze.defined(y)&&Ze.string(y.uri)&&(Ze.undefined(y.languageId)||Ze.string(y.languageId))&&Ze.uinteger(y.lineCount)&&Ze.func(y.getText)&&Ze.func(y.positionAt)&&Ze.func(y.offsetAt))}t.is=i;function a(p,y){for(var S=p.getText(),w=s(y,function(le,ge){var he=le.range.start.line-ge.range.start.line;return he===0?le.range.start.character-ge.range.start.character:he}),E=S.length,k=w.length-1;k>=0;k--){var $=w[k],ae=p.offsetAt($.range.start),re=p.offsetAt($.range.end);if(re<=E)S=S.substring(0,ae)+$.newText+S.substring(re,S.length);else throw new Error("Overlapping edit");E=ae}return S}t.applyEdits=a;function s(p,y){if(p.length<=1)return p;var S=p.length/2|0,w=p.slice(0,S),E=p.slice(S);s(w,y),s(E,y);for(var k=0,$=0,ae=0;k<w.length&&$<E.length;){var re=y(w[k],E[$]);re<=0?p[ae++]=w[k++]:p[ae++]=E[$++]}for(;k<w.length;)p[ae++]=w[k++];for(;$<E.length;)p[ae++]=E[$++];return p}})(Ha||(Ha={}));var ki=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,a=!0,s=0;s<i.length;s++){a&&(r.push(s),a=!1);var p=i.charAt(s);a=p==="\r"||p===`
|
|
169
169
|
`,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
|
|
170
|
-
`&&s++}a&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return kn.create(0,r);for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var y=a-1;return kn.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),Je;(function(t){var r=Object.prototype.toString;function i(re){return typeof re!="undefined"}t.defined=i;function a(re){return typeof re=="undefined"}t.undefined=a;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function y(re){return r.call(re)==="[object Number]"}t.number=y;function S(re,le,ge){return r.call(re)==="[object Number]"&&le<=re&&re<=ge}t.numberRange=S;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function E(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=E;function k(re){return r.call(re)==="[object Function]"}t.func=k;function $(re){return re!==null&&typeof re=="object"}t.objectLiteral=$;function ae(re,le){return Array.isArray(re)&&re.every(le)}t.typedArray=ae})(Je||(Je={}));var el=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){for(var a=0,s=r;a<s.length;a++){var p=s[a];if(t.isIncremental(p)){var y=Wa(p.range),S=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,S)+p.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),k=Math.max(y.end.line,0),$=this._lineOffsets,ae=Zo(p.text,!1,S);if(k-E===ae.length)for(var re=0,le=ae.length;re<le;re++)$[re+E+1]=ae[re];else ae.length<1e4?$.splice.apply($,[E+1,k-E].concat(ae)):this._lineOffsets=$=$.slice(0,E+1).concat(ae,$.slice(k+1));var ge=p.text.length-(w-S);if(ge!==0)for(var re=E+1+ae.length,le=$.length;re<le;re++)$[re]=$[re]+ge}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Zo(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return{line:0,character:r};for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var y=a-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Qo;(function(t){function r(s,p,y,S){return new el(s,p,y,S)}t.create=r;function i(s,p,y){if(s instanceof el)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,p){for(var y=s.getText(),S=tl(p.map(xu),function(le,ge){var he=le.range.start.line-ge.range.start.line;return he===0?le.range.start.character-ge.range.start.character:he}),w=0,E=[],k=0,$=S;k<$.length;k++){var ae=$[k],re=s.offsetAt(ae.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&E.push(y.substring(w,re)),ae.newText.length&&E.push(ae.newText),w=s.offsetAt(ae.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=a})(Qo||(Qo={}));function tl(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);tl(a,r),tl(s,r);for(var p=0,y=0,S=0;p<a.length&&y<s.length;){var w=r(a[p],s[y]);w<=0?t[S++]=a[p++]:t[S++]=s[y++]}for(;p<a.length;)t[S++]=a[p++];for(;y<s.length;)t[S++]=s[y++];return t}function Zo(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function Wa(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function xu(t){var r=Wa(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var Yt;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(Yt||(Yt={}));var rl;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ei.Markdown,ei.PlainText],commitCharactersSupport:!0}}}}})(rl||(rl={}));var no=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),$f={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},ri=function(){function t(r,i,a){this.offset=i,this.length=a,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),bu=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(ri),wu=function(t){no(r,t);function r(i,a,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=a,p}return r}(ri),Kf=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(ri),Su=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(ri),io=function(t){no(r,t);function r(i,a,s){var p=t.call(this,i,a,s)||this;return p.type="string",p.value="",p}return r}(ri),nl=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(ri),Ha=function(t){no(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(ri);function dn(t){return fn(t)?t?{}:{not:{}}:t}var za;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(za||(za={}));var Au=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||ol(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),il=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),pn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,a=r;i<a.length;i++){var s=a[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,a=this.problems;i<a.length;i++){var s=a[i];s.code===Yt.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Xr(t,r){return r===void 0&&(r=[]),new al(t,r,[])}function zn(t){return Hs(t)}function Ga(t){return Ws(t)}function ol(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var al=function(){function t(r,i,a){i===void 0&&(i=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=i,this.comments=a}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return fu(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),p=a.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new pn;return wr(this.root,i,a,il.instance),a.problems.map(function(s){var p=Zt.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return cn.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,a){i===void 0&&(i=-1),a===void 0&&(a=null);var s=new Au(i,a);return this.root&&r&&wr(this.root,r,new pn,s),s.schemas},t}();function wr(t,r,i,a){if(!t||!a.include(t))return;switch(t.type){case"object":w(t,r,i,a);break;case"array":S(t,r,i,a);break;case"string":y(t,r,i,a);break;case"number":p(t,r,i,a);break;case"property":return wr(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Wt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Wt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,$=r.allOf;k<$.length;k++){var ae=$[k];wr(t,dn(ae),i,a)}var re=dn(r.not);if(re){var le=new pn,ge=a.newSub();wr(t,re,le,ge),le.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Wt.Warning,message:"Matches a schema that is not allowed."});for(var he=0,Se=ge.schemas;he<Se.length;he++){var xe=Se[he];xe.inverted=!xe.inverted,a.add(xe)}}var Fe=function(et,bt){for(var Dt=[],Ht=null,sr=0,Lr=et;sr<Lr.length;sr++){var Or=Lr[sr],Yr=dn(Or),br=new pn,Ur=a.newSub();if(wr(t,Yr,br,Ur),br.hasProblems()||Dt.push(Yr),!Ht)Ht={schema:Yr,validationResult:br,matchingSchemas:Ur};else if(!bt&&!br.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Ur),Ht.validationResult.propertiesMatches+=br.propertiesMatches,Ht.validationResult.propertiesValueMatches+=br.propertiesValueMatches;else{var wn=br.compare(Ht.validationResult);wn>0?Ht={schema:Yr,validationResult:br,matchingSchemas:Ur}:wn===0&&(Ht.matchingSchemas.merge(Ur),Ht.validationResult.mergeEnumValues(br))}}return Dt.length>1&&bt&&i.problems.push({location:{offset:t.offset,length:1},severity:Wt.Warning,message:"Matches multiple schemas when only one must validate."}),Ht!==null&&(i.merge(Ht.validationResult),i.propertiesMatches+=Ht.validationResult.propertiesMatches,i.propertiesValueMatches+=Ht.validationResult.propertiesValueMatches,a.merge(Ht.matchingSchemas)),Dt.length};Array.isArray(r.anyOf)&&Fe(r.anyOf,!1),Array.isArray(r.oneOf)&&Fe(r.oneOf,!0);var Ke=function(et){var bt=new pn,Dt=a.newSub();wr(t,dn(et),bt,Dt),i.merge(bt),i.propertiesMatches+=bt.propertiesMatches,i.propertiesValueMatches+=bt.propertiesValueMatches,a.merge(Dt)},Ue=function(et,bt,Dt){var Ht=dn(et),sr=new pn,Lr=a.newSub();wr(t,Ht,sr,Lr),a.merge(Lr),sr.hasProblems()?Dt&&Ke(Dt):bt&&Ke(bt)},$e=dn(r.if);if($e&&Ue($e,dn(r.then),dn(r.else)),Array.isArray(r.enum)){for(var Be=zn(t),je=!1,We=0,Xe=r.enum;We<Xe.length;We++){var ze=Xe[We];if(Go(Be,ze)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Wt.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(Vn(r.const)){var Be=zn(t);Go(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Wt.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Wt.Warning,message:r.deprecationMessage})}function p(E,k,$,ae){var re=E.value;un(k.multipleOf)&&re%k.multipleOf!=0&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function le(Ke,Ue){if(un(Ue))return Ue;if(fn(Ue)&&Ue)return Ke}function ge(Ke,Ue){if(!fn(Ue)||!Ue)return Ke}var he=le(k.minimum,k.exclusiveMinimum);un(he)&&re<=he&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Value is below the exclusive minimum of "+he+"."});var Se=le(k.maximum,k.exclusiveMaximum);un(Se)&&re>=Se&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var xe=ge(k.minimum,k.exclusiveMinimum);un(xe)&&re<xe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Value is below the minimum of "+xe+"."});var Fe=ge(k.maximum,k.exclusiveMaximum);un(Fe)&&re>Fe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Value is above the maximum of "+Fe+"."})}function y(E,k,$,ae){if(un(k.minLength)&&E.value.length<k.minLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),un(k.maxLength)&&E.value.length>k.maxLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),$o(k.pattern)){var re=new RegExp(k.pattern);re.test(E.value)||$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var le=void 0;if(!E.value)le="URI expected.";else{var ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ge?!ge[2]&&k.format==="uri"&&(le="URI with a scheme is expected."):le="URI is expected."}le&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+le})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=$f[k.format];(!E.value||!he.pattern.exec(E.value))&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:k.patternErrorMessage||k.errorMessage||he.errorMessage});break;default:}}function S(E,k,$,ae){if(Array.isArray(k.items)){for(var re=k.items,le=0;le<re.length;le++){var ge=re[le],he=dn(ge),Se=new pn,xe=E.items[le];xe?(wr(xe,he,Se,ae),$.mergePropertyMatch(Se)):E.items.length>=re.length&&$.propertiesValueMatches++}if(E.items.length>re.length)if(typeof k.additionalItems=="object")for(var Fe=re.length;Fe<E.items.length;Fe++){var Se=new pn;wr(E.items[Fe],k.additionalItems,Se,ae),$.mergePropertyMatch(Se)}else k.additionalItems===!1&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var Ke=dn(k.items);if(Ke)for(var Ue=0,$e=E.items;Ue<$e.length;Ue++){var xe=$e[Ue],Se=new pn;wr(xe,Ke,Se,ae),$.mergePropertyMatch(Se)}}var Be=dn(k.contains);if(Be){var je=E.items.some(function(ze){var et=new pn;return wr(ze,Be,et,il.instance),!et.hasProblems()});je||$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:k.errorMessage||"Array does not contain required item."})}if(un(k.minItems)&&E.items.length<k.minItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),un(k.maxItems)&&E.items.length>k.maxItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=zn(E),Xe=We.some(function(ze,et){return et!==We.lastIndexOf(ze)});Xe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Array has duplicate items."})}}function w(E,k,$,ae){for(var re=Object.create(null),le=[],ge=0,he=E.properties;ge<he.length;ge++){var Se=he[ge],xe=Se.keyNode.value;re[xe]=Se.valueNode,le.push(xe)}if(Array.isArray(k.required))for(var Fe=0,Ke=k.required;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(!re[Ue]){var $e=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=$e?{offset:$e.offset,length:$e.length}:{offset:E.offset,length:1};$.problems.push({location:Be,severity:Wt.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(bi){for(var Rl=le.indexOf(bi);Rl>=0;)le.splice(Rl,1),Rl=le.indexOf(bi)};if(k.properties)for(var We=0,Xe=Object.keys(k.properties);We<Xe.length;We++){var Ue=Xe[We];je(Ue);var ze=k.properties[Ue],et=re[Ue];if(et)if(fn(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=et.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Wt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var bt=new pn;wr(et,ze,bt,ae),$.mergePropertyMatch(bt)}}if(k.patternProperties)for(var Dt=0,Ht=Object.keys(k.patternProperties);Dt<Ht.length;Dt++)for(var sr=Ht[Dt],Lr=new RegExp(sr),Or=0,Yr=le.slice(0);Or<Yr.length;Or++){var Ue=Yr[Or];if(Lr.test(Ue)){je(Ue);var et=re[Ue];if(et){var ze=k.patternProperties[sr];if(fn(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=et.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Wt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var bt=new pn;wr(et,ze,bt,ae),$.mergePropertyMatch(bt)}}}}if(typeof k.additionalProperties=="object")for(var br=0,Ur=le;br<Ur.length;br++){var Ue=Ur[br],et=re[Ue];if(et){var bt=new pn;wr(et,k.additionalProperties,bt,ae),$.mergePropertyMatch(bt)}}else if(k.additionalProperties===!1&&le.length>0)for(var wn=0,Jt=le;wn<Jt.length;wn++){var Ue=Jt[wn],et=re[Ue];if(et){var Se=et.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Wt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}}if(un(k.maxProperties)&&E.properties.length>k.maxProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),un(k.minProperties)&&E.properties.length<k.minProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Rt=0,Bt=Object.keys(k.dependencies);Rt<Bt.length;Rt++){var xe=Bt[Rt],lr=re[xe];if(lr){var an=k.dependencies[xe];if(Array.isArray(an))for(var hr=0,ys=an;hr<ys.length;hr++){var Fl=ys[hr];re[Fl]?$.propertiesValueMatches++:$.problems.push({location:{offset:E.offset,length:E.length},severity:Wt.Warning,message:"Object is missing property "+Fl+" required by property {$key}."})}else{var ze=dn(an);if(ze){var bt=new pn;wr(E,ze,bt,ae),$.mergePropertyMatch(bt)}}}}var va=dn(k.propertyNames);if(va)for(var zi=0,kl=E.properties;zi<kl.length;zi++){var yf=kl[zi],xe=yf.keyNode;xe&&wr(xe,va,$,il.instance)}}}function $a(t,r){var i=[],a=-1,s=t.getText(),p=eo(s,!1),y=r&&r.collectComments?[]:void 0;function S(){for(;;){var $e=p.scan();switch($(),$e){case 12:case 13:Array.isArray(y)&&y.push(Zt.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return $e}}}function w($e){return p.getToken()===$e?(S(),!0):!1}function E($e,Be,je,We,Xe){if(Xe===void 0&&(Xe=Wt.Error),i.length===0||je!==a){var ze=Zt.create(t.positionAt(je),t.positionAt(We));i.push(cn.create(ze,$e,Xe,Be,t.languageId)),a=je}}function k($e,Be,je,We,Xe){je===void 0&&(je=null),We===void 0&&(We=[]),Xe===void 0&&(Xe=[]);var ze=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(ze===et&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;et=ze+1}if(E($e,Be,ze,et),je&&ae(je,!1),We.length+Xe.length>0)for(var bt=p.getToken();bt!==17;){if(We.indexOf(bt)!==-1){S();break}else if(Xe.indexOf(bt)!==-1)break;bt=S()}return je}function $(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",Yt.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",Yt.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",Yt.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",Yt.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",Yt.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",Yt.InvalidCharacter),!0}return!1}function ae($e,Be){return $e.length=p.getTokenOffset()+p.getTokenLength()-$e.offset,Be&&S(),$e}function re($e){if(p.getToken()!==3)return null;var Be=new Kf($e,p.getTokenOffset());S();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",Yt.ValueExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===4){We&&E("Trailing comma",Yt.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var ze=Fe(Be,je++);ze?Be.items.push(ze):k("Value expected",Yt.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",Yt.CommaOrCloseBacketExpected,Be):ae(Be,!0)}function le($e,Be){var je=new nl($e,p.getTokenOffset()),We=he(je);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",Yt.Undefined);var Xe=new io(je,p.getTokenOffset(),p.getTokenLength());Xe.value=p.getTokenValue(),We=Xe,S()}else return null;je.keyNode=We;var ze=Be[We.value];if(ze?(E("Duplicate object key",Yt.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Wt.Warning),typeof ze=="object"&&E("DuplicateKeyWarning",Yt.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,Wt.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),S();else if(k("Colon expected",Yt.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var et=Fe(je,We.value);return et?(je.valueNode=et,je.length=et.offset+et.length-je.offset,je):k("Value expected",Yt.ValueExpected,je,[],[2,5])}function ge($e){if(p.getToken()!==1)return null;var Be=new Ha($e,p.getTokenOffset()),je=Object.create(null);S();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",Yt.PropertyExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===2){We&&E("Trailing comma",Yt.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var ze=le(Be,je);ze?Be.properties.push(ze):k("Property expected",Yt.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",Yt.CommaOrCloseBraceExpected,Be):ae(Be,!0)}function he($e){if(p.getToken()!==10)return null;var Be=new io($e,p.getTokenOffset());return Be.value=p.getTokenValue(),ae(Be,!0)}function Se($e){if(p.getToken()!==11)return null;var Be=new Su($e,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!un(We))return k("Invalid number format.",Yt.Undefined,Be);Be.value=We}catch(Xe){return k("Invalid number format.",Yt.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return ae(Be,!0)}function xe($e){var Be;switch(p.getToken()){case 7:return ae(new bu($e,p.getTokenOffset()),!0);case 8:return ae(new wu($e,!0,p.getTokenOffset()),!0);case 9:return ae(new wu($e,!1,p.getTokenOffset()),!0);default:return null}}function Fe($e,Be){return re($e)||ge($e)||he($e)||Se($e)||xe($e)}var Ke=null,Ue=S();return Ue!==17&&(Ke=Fe(null,null),Ke?p.getToken()!==17&&k("End of file expected.",Yt.Undefined):k("Expected a JSON object, array or literal.",Yt.Undefined)),new al(Ke,i,y)}function Ka(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
171
|
-
`,p=0;p<t.length;p++)s+=a+
|
|
170
|
+
`&&s++}a&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return ln.create(0,r);for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var y=a-1;return ln.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),Ze;(function(t){var r=Object.prototype.toString;function i(re){return typeof re!="undefined"}t.defined=i;function a(re){return typeof re=="undefined"}t.undefined=a;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function y(re){return r.call(re)==="[object Number]"}t.number=y;function S(re,le,ge){return r.call(re)==="[object Number]"&&le<=re&&re<=ge}t.numberRange=S;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function E(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=E;function k(re){return r.call(re)==="[object Function]"}t.func=k;function $(re){return re!==null&&typeof re=="object"}t.objectLiteral=$;function ae(re,le){return Array.isArray(re)&&re.every(le)}t.typedArray=ae})(Ze||(Ze={}));var nl=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){for(var a=0,s=r;a<s.length;a++){var p=s[a];if(t.isIncremental(p)){var y=il(p.range),S=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,S)+p.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),k=Math.max(y.end.line,0),$=this._lineOffsets,ae=Ga(p.text,!1,S);if(k-E===ae.length)for(var re=0,le=ae.length;re<le;re++)$[re+E+1]=ae[re];else ae.length<1e4?$.splice.apply($,[E+1,k-E].concat(ae)):this._lineOffsets=$=$.slice(0,E+1).concat(ae,$.slice(k+1));var ge=p.text.length-(w-S);if(ge!==0)for(var re=E+1+ae.length,le=$.length;re<le;re++)$[re]=$[re]+ge}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Ga(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return{line:0,character:r};for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var y=a-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),za;(function(t){function r(s,p,y,S){return new nl(s,p,y,S)}t.create=r;function i(s,p,y){if(s instanceof nl)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,p){for(var y=s.getText(),S=Po(p.map(Gf),function(le,ge){var he=le.range.start.line-ge.range.start.line;return he===0?le.range.start.character-ge.range.start.character:he}),w=0,E=[],k=0,$=S;k<$.length;k++){var ae=$[k],re=s.offsetAt(ae.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&E.push(y.substring(w,re)),ae.newText.length&&E.push(ae.newText),w=s.offsetAt(ae.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=a})(za||(za={}));function Po(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);Po(a,r),Po(s,r);for(var p=0,y=0,S=0;p<a.length&&y<s.length;){var w=r(a[p],s[y]);w<=0?t[S++]=a[p++]:t[S++]=s[y++]}for(;p<a.length;)t[S++]=a[p++];for(;y<s.length;)t[S++]=s[y++];return t}function Ga(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function il(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function Gf(t){var r=il(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var Yt;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(Yt||(Yt={}));var du;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Hn.Markdown,Hn.PlainText],commitCharactersSupport:!0}}}}})(du||(du={}));var ro=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),$a={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Ri=function(){function t(r,i,a){this.offset=i,this.length=a,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),$f=function(t){ro(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(Ri),pu=function(t){ro(r,t);function r(i,a,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=a,p}return r}(Ri),hu=function(t){ro(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(Ri),Io=function(t){ro(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(Ri),Ka=function(t){ro(r,t);function r(i,a,s){var p=t.call(this,i,a,s)||this;return p.type="string",p.value="",p}return r}(Ri),Ya=function(t){ro(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(Ri),vu=function(t){ro(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(Ri);function tn(t){return mn(t)?t?{}:{not:{}}:t}var ol;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(ol||(ol={}));var Kf=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||al(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Ja=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),rr=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,a=r;i<a.length;i++){var s=a[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,a=this.problems;i<a.length;i++){var s=a[i];s.code===Yt.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Xa(t,r){return r===void 0&&(r=[]),new no(t,r,[])}function ui(t){return wo(t)}function Qa(t){return $s(t)}function al(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var no=function(){function t(r,i,a){i===void 0&&(i=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=i,this.comments=a}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return Gs(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),p=a.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new rr;return Dr(this.root,i,a,Ja.instance),a.problems.map(function(s){var p=tr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return ai.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,a){i===void 0&&(i=-1),a===void 0&&(a=null);var s=new Kf(i,a);return this.root&&r&&Dr(this.root,r,new rr,s),s.schemas},t}();function Dr(t,r,i,a){if(!t||!a.include(t))return;switch(t.type){case"object":w(t,r,i,a);break;case"array":S(t,r,i,a);break;case"string":y(t,r,i,a);break;case"number":p(t,r,i,a);break;case"property":return Dr(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function E(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,$=r.allOf;k<$.length;k++){var ae=$[k];Dr(t,tn(ae),i,a)}var re=tn(r.not);if(re){var le=new rr,ge=a.newSub();Dr(t,re,le,ge),le.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,message:"Matches a schema that is not allowed."});for(var he=0,Se=ge.schemas;he<Se.length;he++){var me=Se[he];me.inverted=!me.inverted,a.add(me)}}var Fe=function(et,wt){for(var Dt=[],Wt=null,lr=0,Mr=et;lr<Mr.length;lr++){var Or=Mr[lr],Kr=tn(Or),Sr=new rr,Ur=a.newSub();if(Dr(t,Kr,Sr,Ur),Sr.hasProblems()||Dt.push(Kr),!Wt)Wt={schema:Kr,validationResult:Sr,matchingSchemas:Ur};else if(!wt&&!Sr.hasProblems()&&!Wt.validationResult.hasProblems())Wt.matchingSchemas.merge(Ur),Wt.validationResult.propertiesMatches+=Sr.propertiesMatches,Wt.validationResult.propertiesValueMatches+=Sr.propertiesValueMatches;else{var bn=Sr.compare(Wt.validationResult);bn>0?Wt={schema:Kr,validationResult:Sr,matchingSchemas:Ur}:bn===0&&(Wt.matchingSchemas.merge(Ur),Wt.validationResult.mergeEnumValues(Sr))}}return Dt.length>1&&wt&&i.problems.push({location:{offset:t.offset,length:1},severity:Ht.Warning,message:"Matches multiple schemas when only one must validate."}),Wt!==null&&(i.merge(Wt.validationResult),i.propertiesMatches+=Wt.validationResult.propertiesMatches,i.propertiesValueMatches+=Wt.validationResult.propertiesValueMatches,a.merge(Wt.matchingSchemas)),Dt.length};Array.isArray(r.anyOf)&&Fe(r.anyOf,!1),Array.isArray(r.oneOf)&&Fe(r.oneOf,!0);var Ke=function(et){var wt=new rr,Dt=a.newSub();Dr(t,tn(et),wt,Dt),i.merge(wt),i.propertiesMatches+=wt.propertiesMatches,i.propertiesValueMatches+=wt.propertiesValueMatches,a.merge(Dt)},Ue=function(et,wt,Dt){var Wt=tn(et),lr=new rr,Mr=a.newSub();Dr(t,Wt,lr,Mr),a.merge(Mr),lr.hasProblems()?Dt&&Ke(Dt):wt&&Ke(wt)},$e=tn(r.if);if($e&&Ue($e,tn(r.then),tn(r.else)),Array.isArray(r.enum)){for(var Be=ui(t),je=!1,We=0,Je=r.enum;We<Je.length;We++){var ze=Je[We];if(qi(Be,ze)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(yn(r.const)){var Be=ui(t);qi(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Ht.Warning,code:Yt.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:Ht.Warning,message:r.deprecationMessage})}function p(E,k,$,ae){var re=E.value;sn(k.multipleOf)&&re%k.multipleOf!=0&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function le(Ke,Ue){if(sn(Ue))return Ue;if(mn(Ue)&&Ue)return Ke}function ge(Ke,Ue){if(!mn(Ue)||!Ue)return Ke}var he=le(k.minimum,k.exclusiveMinimum);sn(he)&&re<=he&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is below the exclusive minimum of "+he+"."});var Se=le(k.maximum,k.exclusiveMaximum);sn(Se)&&re>=Se&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var me=ge(k.minimum,k.exclusiveMinimum);sn(me)&&re<me&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is below the minimum of "+me+"."});var Fe=ge(k.maximum,k.exclusiveMaximum);sn(Fe)&&re>Fe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Value is above the maximum of "+Fe+"."})}function y(E,k,$,ae){if(sn(k.minLength)&&E.value.length<k.minLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),sn(k.maxLength)&&E.value.length>k.maxLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),Hf(k.pattern)){var re=new RegExp(k.pattern);re.test(E.value)||$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var le=void 0;if(!E.value)le="URI expected.";else{var ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ge?!ge[2]&&k.format==="uri"&&(le="URI with a scheme is expected."):le="URI is expected."}le&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+le})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var he=$a[k.format];(!E.value||!he.pattern.exec(E.value))&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.patternErrorMessage||k.errorMessage||he.errorMessage});break;default:}}function S(E,k,$,ae){if(Array.isArray(k.items)){for(var re=k.items,le=0;le<re.length;le++){var ge=re[le],he=tn(ge),Se=new rr,me=E.items[le];me?(Dr(me,he,Se,ae),$.mergePropertyMatch(Se)):E.items.length>=re.length&&$.propertiesValueMatches++}if(E.items.length>re.length)if(typeof k.additionalItems=="object")for(var Fe=re.length;Fe<E.items.length;Fe++){var Se=new rr;Dr(E.items[Fe],k.additionalItems,Se,ae),$.mergePropertyMatch(Se)}else k.additionalItems===!1&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var Ke=tn(k.items);if(Ke)for(var Ue=0,$e=E.items;Ue<$e.length;Ue++){var me=$e[Ue],Se=new rr;Dr(me,Ke,Se,ae),$.mergePropertyMatch(Se)}}var Be=tn(k.contains);if(Be){var je=E.items.some(function(ze){var et=new rr;return Dr(ze,Be,et,Ja.instance),!et.hasProblems()});je||$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:k.errorMessage||"Array does not contain required item."})}if(sn(k.minItems)&&E.items.length<k.minItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),sn(k.maxItems)&&E.items.length>k.maxItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=ui(E),Je=We.some(function(ze,et){return et!==We.lastIndexOf(ze)});Je&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Array has duplicate items."})}}function w(E,k,$,ae){for(var re=Object.create(null),le=[],ge=0,he=E.properties;ge<he.length;ge++){var Se=he[ge],me=Se.keyNode.value;re[me]=Se.valueNode,le.push(me)}if(Array.isArray(k.required))for(var Fe=0,Ke=k.required;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(!re[Ue]){var $e=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=$e?{offset:$e.offset,length:$e.length}:{offset:E.offset,length:1};$.problems.push({location:Be,severity:Ht.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(gi){for(var Rl=le.indexOf(gi);Rl>=0;)le.splice(Rl,1),Rl=le.indexOf(gi)};if(k.properties)for(var We=0,Je=Object.keys(k.properties);We<Je.length;We++){var Ue=Je[We];je(Ue);var ze=k.properties[Ue],et=re[Ue];if(et)if(mn(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=et.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Ht.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var wt=new rr;Dr(et,ze,wt,ae),$.mergePropertyMatch(wt)}}if(k.patternProperties)for(var Dt=0,Wt=Object.keys(k.patternProperties);Dt<Wt.length;Dt++)for(var lr=Wt[Dt],Mr=new RegExp(lr),Or=0,Kr=le.slice(0);Or<Kr.length;Or++){var Ue=Kr[Or];if(Mr.test(Ue)){je(Ue);var et=re[Ue];if(et){var ze=k.patternProperties[lr];if(mn(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=et.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Ht.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var wt=new rr;Dr(et,ze,wt,ae),$.mergePropertyMatch(wt)}}}}if(typeof k.additionalProperties=="object")for(var Sr=0,Ur=le;Sr<Ur.length;Sr++){var Ue=Ur[Sr],et=re[Ue];if(et){var wt=new rr;Dr(et,k.additionalProperties,wt,ae),$.mergePropertyMatch(wt)}}else if(k.additionalProperties===!1&&le.length>0)for(var bn=0,Xt=le;bn<Xt.length;bn++){var Ue=Xt[bn],et=re[Ue];if(et){var Se=et.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Ht.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}}if(sn(k.maxProperties)&&E.properties.length>k.maxProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),sn(k.minProperties)&&E.properties.length<k.minProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Rt=0,Bt=Object.keys(k.dependencies);Rt<Bt.length;Rt++){var me=Bt[Rt],ur=re[me];if(ur){var on=k.dependencies[me];if(Array.isArray(on))for(var gr=0,ys=on;gr<ys.length;gr++){var Fl=ys[gr];re[Fl]?$.propertiesValueMatches++:$.problems.push({location:{offset:E.offset,length:E.length},severity:Ht.Warning,message:"Object is missing property "+Fl+" required by property {$key}."})}else{var ze=tn(on);if(ze){var wt=new rr;Dr(E,ze,wt,ae),$.mergePropertyMatch(wt)}}}}var Aa=tn(k.propertyNames);if(Aa)for(var Hi=0,kl=E.properties;Hi<kl.length;Hi++){var df=kl[Hi],me=df.keyNode;me&&Dr(me,Aa,$,Ja.instance)}}}function gu(t,r){var i=[],a=-1,s=t.getText(),p=Oi(s,!1),y=r&&r.collectComments?[]:void 0;function S(){for(;;){var $e=p.scan();switch($(),$e){case 12:case 13:Array.isArray(y)&&y.push(tr.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return $e}}}function w($e){return p.getToken()===$e?(S(),!0):!1}function E($e,Be,je,We,Je){if(Je===void 0&&(Je=Ht.Error),i.length===0||je!==a){var ze=tr.create(t.positionAt(je),t.positionAt(We));i.push(ai.create(ze,$e,Je,Be,t.languageId)),a=je}}function k($e,Be,je,We,Je){je===void 0&&(je=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var ze=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(ze===et&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;et=ze+1}if(E($e,Be,ze,et),je&&ae(je,!1),We.length+Je.length>0)for(var wt=p.getToken();wt!==17;){if(We.indexOf(wt)!==-1){S();break}else if(Je.indexOf(wt)!==-1)break;wt=S()}return je}function $(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",Yt.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",Yt.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",Yt.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",Yt.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",Yt.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",Yt.InvalidCharacter),!0}return!1}function ae($e,Be){return $e.length=p.getTokenOffset()+p.getTokenLength()-$e.offset,Be&&S(),$e}function re($e){if(p.getToken()!==3)return null;var Be=new hu($e,p.getTokenOffset());S();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",Yt.ValueExpected);var Je=p.getTokenOffset();if(S(),p.getToken()===4){We&&E("Trailing comma",Yt.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var ze=Fe(Be,je++);ze?Be.items.push(ze):k("Value expected",Yt.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",Yt.CommaOrCloseBacketExpected,Be):ae(Be,!0)}function le($e,Be){var je=new Ya($e,p.getTokenOffset()),We=he(je);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",Yt.Undefined);var Je=new Ka(je,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,S()}else return null;je.keyNode=We;var ze=Be[We.value];if(ze?(E("Duplicate object key",Yt.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Ht.Warning),typeof ze=="object"&&E("DuplicateKeyWarning",Yt.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,Ht.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),S();else if(k("Colon expected",Yt.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var et=Fe(je,We.value);return et?(je.valueNode=et,je.length=et.offset+et.length-je.offset,je):k("Value expected",Yt.ValueExpected,je,[],[2,5])}function ge($e){if(p.getToken()!==1)return null;var Be=new vu($e,p.getTokenOffset()),je=Object.create(null);S();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",Yt.PropertyExpected);var Je=p.getTokenOffset();if(S(),p.getToken()===2){We&&E("Trailing comma",Yt.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",Yt.CommaExpected);var ze=le(Be,je);ze?Be.properties.push(ze):k("Property expected",Yt.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",Yt.CommaOrCloseBraceExpected,Be):ae(Be,!0)}function he($e){if(p.getToken()!==10)return null;var Be=new Ka($e,p.getTokenOffset());return Be.value=p.getTokenValue(),ae(Be,!0)}function Se($e){if(p.getToken()!==11)return null;var Be=new Io($e,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!sn(We))return k("Invalid number format.",Yt.Undefined,Be);Be.value=We}catch(Je){return k("Invalid number format.",Yt.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return ae(Be,!0)}function me($e){var Be;switch(p.getToken()){case 7:return ae(new $f($e,p.getTokenOffset()),!0);case 8:return ae(new pu($e,!0,p.getTokenOffset()),!0);case 9:return ae(new pu($e,!1,p.getTokenOffset()),!0);default:return null}}function Fe($e,Be){return re($e)||ge($e)||he($e)||Se($e)||me($e)}var Ke=null,Ue=S();return Ue!==17&&(Ke=Fe(null,null),Ke?p.getToken()!==17&&k("End of file expected.",Yt.Undefined):k("Expected a JSON object, array or literal.",Yt.Undefined)),new no(Ke,i,y)}function Za(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
171
|
+
`,p=0;p<t.length;p++)s+=a+Za(t[p],a,i),p<t.length-1&&(s+=","),s+=`
|
|
172
172
|
`;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
|
|
173
|
-
`,p=0;p<y.length;p++){var S=y[p];s+=a+JSON.stringify(S)+": "+
|
|
174
|
-
`}return s+=r+"}",s}}return i(t)}function
|
|
173
|
+
`,p=0;p<y.length;p++){var S=y[p];s+=a+JSON.stringify(S)+": "+Za(t[S],a,i),p<y.length-1&&(s+=","),s+=`
|
|
174
|
+
`}return s+=r+"}",s}}return i(t)}function yu(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function Mi(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function mu(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function sl(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var xu=[",","}","]"],ia=[":"],Yf=function(){function t(r,i,a,s){i===void 0&&(i=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var a=this.contributions[i].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,a){var s=this,p={items:[],isIncomplete:!1},y=r.getText(),S=r.offsetAt(i),w=a.getNodeFromOffset(S,!0);if(this.isInComment(r,w?w.offset:0,S))return Promise.resolve(p);if(w&&S===w.offset+w.length&&S>0){var E=y[S-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var k=this.getCurrentWord(r,S),$=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))$=tr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ae=S-k.length;ae>0&&y[ae-1]==='"'&&ae--,$=tr.create(r.positionAt(ae),i)}var re=this.doesSupportsCommitCharacters(),le={},ge={add:function(he){var Se=le[he.label];Se?Se.documentation||(Se.documentation=he.documentation):(le[he.label]=he,$&&(he.textEdit=Wn.replace($,he.insertText)),re&&(he.commitCharacters=he.kind===un.Property?ia:xu),p.items.push(he))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(he){console.error(he)},log:function(he){console.log(he)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(he){var Se=[],me=!0,Fe="",Ke=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(me=!Ue.valueNode,Ke=Ue,Fe=y.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===S)return p;var $e=w.properties;$e.forEach(function(Je){(!Ke||Ke!==Je)&&(le[Je.keyNode.value]=Ua.create("__"))});var Be="";me&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt($.end))),he?s.getPropertyCompletions(he,a,w,me,Be,ge):s.getSchemaLessPropertyCompletions(a,w,Fe,ge);var je=Qa(w);s.contributions.forEach(function(Je){var ze=Je.collectPropertyCompletions(r.uri,je,k,me,Be==="",ge);ze&&Se.push(ze)}),!he&&k.length>0&&y.charAt(S-k.length-1)!=='"'&&(ge.add({kind:un.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Be),insertTextFormat:Ir.Snippet,documentation:""}),ge.setAsIncomplete())}var We={};return he?s.getValueCompletions(he,a,w,S,r,ge,We):s.getSchemaLessValueCompletions(a,w,S,r,ge),s.contributions.length>0&&s.getContributedValueCompletions(a,w,S,r,ge,Se),s.promiseConstructor.all(Se).then(function(){if(ge.getNumberOfProposals()===0){var Je=S;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var ze=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,ze,ge)}return p})})},t.prototype.getPropertyCompletions=function(r,i,a,s,p,y){var S=this,w=i.getMatchingSchemas(r.schema,a.offset);w.forEach(function(E){if(E.node===a&&!E.inverted){var k=E.schema.properties;k&&Object.keys(k).forEach(function($){var ae=k[$],re=!1;if(typeof ae=="object"&&ae.allOf)for(var le=0,ge=ae.allOf;le<ge.length;le++){var he=ge[le];if(he.readOnly){re=!0;break}}if(typeof ae=="object"&&!ae.deprecationMessage&&!ae.doNotSuggest&&!re){var Se={kind:un.Property,label:S.sanitizeLabel($),insertText:S.getInsertTextForProperty($,ae,s,p),insertTextFormat:Ir.Snippet,filterText:S.getFilterTextForValue($),documentation:S.fromMarkup(ae.markdownDescription)||ae.description||""};Mi(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,a,s){var p=this,y=function(w){w.properties.forEach(function(E){var k=E.keyNode.value;s.add({kind:un.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:Ir.Snippet,filterText:p.getFilterTextForValue(k),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var S=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===S&&w.valueNode&&w.valueNode.type==="object"&&y(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&y(w)});else i.type==="object"&&s.add({kind:un.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Ir.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,a,s,p){var y=this,S=a;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(S=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Ir.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Ir.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,S),E=function(re){al(re.parent,a,!0)||p.add({kind:y.getSuggestionKind(re.type),label:y.getLabelTextForMatchingNode(re,s),insertText:y.getInsertTextForMatchingNode(re,s,w),insertTextFormat:Ir.Snippet,documentation:""}),re.type==="boolean"&&y.addBooleanValueCompletion(!re.value,w,p)};if(i.type==="property"&&a>i.colonOffset){var k=i.valueNode;if(k&&(a>k.offset+k.length||k.type==="object"||k.type==="array"))return;var $=i.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===$&&re.valueNode&&E(re.valueNode),!0}),$==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var ae=i.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===ae&&re.valueNode&&re.valueNode.type==="array"&&re.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,a,s,p,y,S){var w=this,E=s,k=null,$=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(E=a.offset+a.length,$=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",y,S);return}if(a.type==="property"&&s>a.colonOffset){var ae=a.valueNode;if(ae&&s>ae.offset+ae.length)return;k=a.keyNode.value,a=a.parent}if(a&&(k!==null||a.type==="array")){var re=this.evaluateSeparatorAfter(p,E),le=i.getMatchingSchemas(r.schema,a.offset,$);le.forEach(function(ge){if(ge.node===a&&!ge.inverted&&ge.schema){if(a.type==="array"&&ge.schema.items)if(Array.isArray(ge.schema.items)){var he=w.findItemAtOffset(a,p,s);he<ge.schema.items.length&&w.addSchemaValueCompletions(ge.schema.items[he],re,y,S)}else w.addSchemaValueCompletions(ge.schema.items,re,y,S);if(ge.schema.properties){var Se=ge.schema.properties[k];Se&&w.addSchemaValueCompletions(Se,re,y,S)}}}),k==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(re,y),S.boolean&&(this.addBooleanValueCompletion(!0,re,y),this.addBooleanValueCompletion(!1,re,y)),S.null&&this.addNullValueCompletion(re,y)}},t.prototype.getContributedValueCompletions=function(r,i,a,s,p,y){if(!i)this.contributions.forEach(function(k){var $=k.collectDefaultCompletions(s.uri,p);$&&y.push($)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&a>i.colonOffset){var S=i.keyNode.value,w=i.valueNode;if(!w||a<=w.offset+w.length){var E=Qa(i.parent);this.contributions.forEach(function(k){var $=k.collectValueCompletions(s.uri,E,S,p);$&&y.push($)})}}},t.prototype.addSchemaValueCompletions=function(r,i,a,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,a),this.addDefaultValueCompletions(r,i,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,a,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,a,s){var p=this;s===void 0&&(s=0);var y=!1;if(yn(r.default)){for(var S=r.type,w=r.default,E=s;E>0;E--)w=[w],S="array";a.add({kind:this.getSuggestionKind(S),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Ir.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var $=r.type,ae=k,re=s;re>0;re--)ae=[ae],$="array";a.add({kind:p.getSuggestionKind($),label:p.getLabelForValue(ae),insertText:p.getInsertTextForValue(ae,i),insertTextFormat:Ir.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var $=r.type,ae=k.body,re=k.label,le,ge;if(yn(ae)){for(var he=r.type,Se=s;Se>0;Se--)ae=[ae],he="array";le=p.getInsertTextForSnippetValue(ae,i),ge=p.getFilterTextForSnippetValue(ae),re=re||p.getLabelForSnippetValue(ae)}else if(typeof k.bodyText=="string"){for(var me="",Fe="",Ke="",Se=s;Se>0;Se--)me=me+Ke+`[
|
|
175
175
|
`,Fe=Fe+`
|
|
176
|
-
`+Ke+"]",Ke+=" ",$="array";le=
|
|
176
|
+
`+Ke+"]",Ke+=" ",$="array";le=me+Ke+k.bodyText.split(`
|
|
177
177
|
`).join(`
|
|
178
|
-
`+Ke)+Fe+i,re=re||p.sanitizeLabel(le),ge=le.replace(/[\n]/g,"")}a.add({kind:p.getSuggestionKind($),label:re,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:le,insertTextFormat:
|
|
179
|
-
\r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=
|
|
178
|
+
`+Ke)+Fe+i,re=re||p.sanitizeLabel(le),ge=le.replace(/[\n]/g,"")}a.add({kind:p.getSuggestionKind($),label:re,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:le,insertTextFormat:Ir.Snippet,filterText:ge}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,a,s+1)},t.prototype.addEnumValueCompletions=function(r,i,a){if(yn(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Ir.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var y=r.enum[s],S=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?S=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(S=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:Ir.Snippet,documentation:S})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||yn(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return i[s]=!0}):i[a]=!0}},t.prototype.addFillerValueCompletions=function(r,i,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Ir.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Ir.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Ir.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Ir.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:un.Module,label:a.getLabelForValue(p),filterText:a.getFilterTextForValue(p),insertText:a.getInsertTextForValue(p,r),insertTextFormat:Ir.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+i:a==="[]"?"[$1]"+i:this.getInsertTextForPlainText(a+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return Za(r,"",a)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return un.Value;switch(r){case"string":return un.Value;case"object":return un.Module;case"property":return un.Property;default:return un.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=i.getText().substr(r.offset,r.length);return a}},t.prototype.getInsertTextForMatchingNode=function(r,i,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=i.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,a,s){var p=this.getInsertTextForValue(r,"");if(!a)return p;var y=p+": ",S,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;yn(E)&&(S=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!S&&i.enum.length===1&&(S=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),yn(i.default)&&(S||(S=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var k=Array.isArray(i.type)?i.type[0]:i.type;switch(k||(i.properties?k="object":i.items&&(k="array")),k){case"boolean":S="$1";break;case"string":S='"$1"';break;case"object":S="{$1}";break;case"array":S="[$1]";break;case"number":case"integer":S="${1:0}";break;case"null":S="${1:null}";break;default:return p}}}return(!S||w>1)&&(S="$1"),y+S+s},t.prototype.getCurrentWord=function(r,i){for(var a=i-1,s=r.getText();a>=0&&`
|
|
179
|
+
\r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=Oi(r.getText(),!0);a.setPosition(i);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,a){for(var s=Oi(i.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var S=p[y];if(a>S.offset+S.length){s.setPosition(S.offset+S.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(a>=S.offset)return y}return 0},t.prototype.isInComment=function(r,i,a){var s=Oi(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<a;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:Hn.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!yn(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(Hn.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!yn(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),Fo=function(){function t(r,i,a){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=a||Promise}return t.prototype.doHover=function(r,i,a){var s=r.offsetAt(i),p=a.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var y=p;if(p.type==="string"){var S=p.parent;if(S&&S.type==="property"&&S.keyNode===p&&(p=S.valueNode,!p))return this.promise.resolve(null)}for(var w=tr.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(le){var ge={contents:le,range:w};return ge},k=Qa(p),$=this.contributions.length-1;$>=0;$--){var ae=this.contributions[$],re=ae.getInfoContribution(r.uri,k);if(re)return re.then(function(le){return E(le)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(le){if(le){var ge=a.getMatchingSchemas(le.schema,p.offset),he=null,Se=null,me=null,Fe=null;ge.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(he=he||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||_a(Ue.schema.description),Ue.schema.enum)){var $e=Ue.schema.enum.indexOf(ui(p));Ue.schema.markdownEnumDescriptions?me=Ue.schema.markdownEnumDescriptions[$e]:Ue.schema.enumDescriptions&&(me=_a(Ue.schema.enumDescriptions[$e])),me&&(Fe=Ue.schema.enum[$e],typeof Fe!="string"&&(Fe=JSON.stringify(Fe)))}return!0});var Ke="";return he&&(Ke=_a(he)),Se&&(Ke.length>0&&(Ke+=`
|
|
180
180
|
|
|
181
|
-
`),Ke+=Se),
|
|
181
|
+
`),Ke+=Se),me&&(Ke.length>0&&(Ke+=`
|
|
182
182
|
|
|
183
|
-
`),Ke+="`"+
|
|
183
|
+
`),Ke+="`"+bu(Fe)+"`: "+me),E([Ke])}return null})},t}();function _a(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
184
184
|
|
|
185
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ou(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Tu=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Sr,vi;if(typeof process=="object")vi=!1;else if(typeof navigator=="object"){var qo=navigator.userAgent;vi=qo.indexOf("Windows")>=0}function Xa(t){return 55296<=t&&t<=56319}function Qa(t){return 56320<=t&&t<=57343}function Xf(t){return t>=97&&t<=102}function Qf(t){return t>=97&&t<=122}function Pu(t){return t>=65&&t<=90}function oo(t){return Qf(t)||Pu(t)}var Co=/^\w[\w\d+.-]*$/,ea=/^\//,Zf=/^\/\//;function Iu(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!Co.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!ea.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Zf.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function _f(t,r){return!t&&!r?"file":t}function qf(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==cr&&(r=cr+r):r=cr;break}return r}var fr="",cr="/",Fu=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,sl=function(){function t(r,i,a,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||fr,this.authority=r.authority||fr,this.path=r.path||fr,this.query=r.query||fr,this.fragment=r.fragment||fr):(this.scheme=_f(r,y),this.authority=i||fr,this.path=qf(this.scheme,a||fr),this.query=s||fr,this.fragment=p||fr,Iu(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Mu(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,a=r.authority,s=r.path,p=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=fr),a===void 0?a=this.authority:a===null&&(a=fr),s===void 0?s=this.path:s===null&&(s=fr),p===void 0?p=this.query:p===null&&(p=fr),y===void 0?y=this.fragment:y===null&&(y=fr),i===this.scheme&&a===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new Oo(i,a,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var a=Fu.exec(r);return a?new Oo(a[2]||fr,Ui(a[4]||fr),Ui(a[5]||fr),Ui(a[7]||fr),Ui(a[9]||fr),i):new Oo(fr,fr,fr,fr,fr)},t.file=function(r){var i=fr;if(vi&&(r=r.replace(/\\/g,cr)),r[0]===cr&&r[1]===cr){var a=r.indexOf(cr,2);a===-1?(i=r.substring(2),r=cr):(i=r.substring(2,a),r=r.substring(a)||cr)}return new Oo("file",i,r,fr,fr)},t.from=function(r){return new Oo(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),fl(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new Oo(r);return i._formatted=r.external,i._fsPath=r._sep===ku?r.fsPath:null,i}else return r},t}(),ku=vi?1:void 0,Oo=function(t){Tu(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Mu(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?fl(this,!0):(this._formatted||(this._formatted=fl(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=ku),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(sl),ll=(Sr={},Sr[58]="%3A",Sr[47]="%2F",Sr[63]="%3F",Sr[35]="%23",Sr[91]="%5B",Sr[93]="%5D",Sr[64]="%40",Sr[33]="%21",Sr[36]="%24",Sr[38]="%26",Sr[39]="%27",Sr[40]="%28",Sr[41]="%29",Sr[42]="%2A",Sr[43]="%2B",Sr[44]="%2C",Sr[59]="%3B",Sr[61]="%3D",Sr[32]="%20",Sr);function ul(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var y=ll[p];y!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=y):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function Ru(t){for(var r=void 0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a===35||a===63?(r===void 0&&(r=t.substr(0,i)),r+=ll[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Mu(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,vi&&(i=i.replace(/\//g,"\\")),i}function fl(t,r){var i=r?Ru:ul,a="",s=t.scheme,p=t.authority,y=t.path,S=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(p||s==="file")&&(a+=cr,a+=cr),p){var E=p.indexOf("@");if(E!==-1){var k=p.substr(0,E);p=p.substr(E+1),E=k.indexOf(":"),E===-1?a+=i(k,!1):(a+=i(k.substr(0,E),!1),a+=":",a+=i(k.substr(E+1),!1)),a+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?a+=i(p,!1):(a+=i(p.substr(0,E),!1),a+=p.substr(E))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var $=y.charCodeAt(1);$>=65&&$<=90&&(y="/"+String.fromCharCode($+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var $=y.charCodeAt(0);$>=65&&$<=90&&(y=String.fromCharCode($+32)+":"+y.substr(2))}a+=i(y,!0)}return S&&(a+="?",a+=i(S,!1)),w&&(a+="#",a+=r?w:ul(w,!1)),a}function Lu(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+Lu(t.substr(3)):t}}var gi=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ui(t){return t.match(gi)?t.replace(gi,function(r){return Lu(r)}):t}var Za=function(){function t(r){try{this.patternRegExp=new RegExp(Eo(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),ta=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new xn(a)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),xn=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Du=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return dn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var a=r.shift();if(i.properties&&typeof i.properties[a])return this.getSectionRecursive(r,i.properties[a]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var y=p[s],S=new RegExp(y);if(S.test(a))return this.getSectionRecursive(r,i.patternProperties[y])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(a,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),ec=function(){function t(r,i,a){this.contextService=i,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var a=sl.parse(i).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,a=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var y=s.pop(),S=0;S<p.length;S++){var w=p[S];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[S]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return sl.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var a in i){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,i[a])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var S=p[y];this.contributionAssociations[y]=S;for(var w=this.getOrAddFilePatternAssociation(y),E=0,k=S;E<k.length;E++){var $=k[E],a=this.normalizeId($);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new ta(this,r,i);return this.schemasById[r]=a,a},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new Za(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,a){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,y=i;p<y.length;p++){var S=y[p];this.getOrAddFilePatternAssociation(S).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var y=p[s],r=this.normalizeId(y);a.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),a=this.schemasById[i];return a?a.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+yi(r)+"'. No schema request service available";return this.promise.resolve(new xn({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+yi(r)+"': No content.";return new xn({},[s])}var p={},y=[];p=Ra(a,y);var S=y.length?["Unable to parse content from '"+yi(r)+"': Parse error at offset "+y[0].offset]:[];return new xn(p,S)},function(a){var s="Unable to load schema from '"+yi(r)+"': "+a.toString();return new xn({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var S=this.normalizeId(y.$schema);if(S==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Du({},["Draft-03 schemas are not supported."]));S==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(re,le){if(!le)return re;var ge=re;return le[0]==="/"&&(le=le.substr(1)),le.split("/").some(function(he){return ge=ge[he],!ge}),ge},k=function(re,le,ge,he){var Se=E(le,he);if(Se)for(var xe in Se)Se.hasOwnProperty(xe)&&!re.hasOwnProperty(xe)&&(re[xe]=Se[xe]);else p.push("$ref '"+he+"' in '"+ge+"' can not be resolved.")},$=function(re,le,ge,he,Se){w&&!/^\w+:\/\/.*/.test(le)&&(le=w.resolveRelativePath(le,he)),le=s.normalizeId(le);var xe=s.getOrAddSchemaHandle(le);return xe.getUnresolvedSchema().then(function(Fe){if(Se[le]=!0,Fe.errors.length){var Ke=ge?le+"#"+ge:le;p.push("Problems loading reference '"+Ke+"': "+Fe.errors[0]+".")}return k(re,Fe.schema,le,ge),ae(re,Fe.schema,le,xe.dependencies)})},ae=function(re,le,ge,he){if(!re||typeof re!="object")return Promise.resolve(null);for(var Se=[re],xe=[],Fe=[],Ke=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,et=We;ze<et.length;ze++){var bt=et[ze];typeof bt=="object"&&Se.push(bt)}},Ue=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,et=We;ze<et.length;ze++){var bt=et[ze];if(typeof bt=="object")for(var Dt in bt){var Ht=bt[Dt];typeof Ht=="object"&&Se.push(Ht)}}},$e=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,et=We;ze<et.length;ze++){var bt=et[ze];if(Array.isArray(bt))for(var Dt=0,Ht=bt;Dt<Ht.length;Dt++){var sr=Ht[Dt];typeof sr=="object"&&Se.push(sr)}}},Be=function(We){for(var Xe=[];We.$ref;){var ze=We.$ref,et=ze.split("#",2);if(delete We.$ref,et[0].length>0){Fe.push($(We,et[0],et[1],ge,he));return}else Xe.indexOf(ze)===-1&&(k(We,le,ge,et[1]),Xe.push(ze))}Ke(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ue(We.definitions,We.properties,We.patternProperties,We.dependencies),$e(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var je=Se.pop();xe.indexOf(je)>=0||(xe.push(je),Be(je))}return s.promise.all(Fe)};return ae(y,y,i,a).then(function(re){return new Du(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(le){return le.keyNode.value==="$schema"&&le.valueNode&&le.valueNode.type==="string"});if(a.length>0){var s=zn(a[0].valueNode);if(s&&Eu(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),S=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var k=E[w];if(k.matchesPattern(r))for(var $=0,ae=k.getSchemas();$<ae.length;$++){var re=ae[$];y[re]||(S.push(re),y[re]=!0)}}return S.length>0?this.createCombinedSchema(r,S).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(a,s)},t}();function yi(t){try{}catch(r){}return t}var Nu=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Wt.Error)},t.prototype.doValidation=function(r,i,a,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],S={},w=function($){var ae=$.range.start.line+" "+$.range.start.character+" "+$.message;S[ae]||(S[ae]=!0,y.push($))},E=function($){var ae=a?ao(a.trailingCommas):Wt.Error,re=a?ao(a.comments):p.commentSeverity;if($){if($.errors.length&&i.root){var le=i.root,ge=le.type==="object"?le.properties[0]:null;if(ge&&ge.keyNode.value==="$schema"){var he=ge.valueNode||ge,Se=Zt.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));w(cn.create(Se,$.errors[0],Wt.Warning,Yt.SchemaResolveError))}else{var Se=Zt.create(r.positionAt(le.offset),r.positionAt(le.offset+1));w(cn.create(Se,$.errors[0],Wt.Warning,Yt.SchemaResolveError))}}else{var xe=i.validate(r,$.schema);xe&&xe.forEach(w)}cl($.schema)&&(re=void 0),ra($.schema)&&(ae=void 0)}for(var Fe=0,Ke=i.syntaxErrors;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(Ue.code===Yt.TrailingComma){if(typeof ae!="number")continue;Ue.severity=ae}w(Ue)}if(typeof re=="number"){var $e="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(cn.create(Be,$e,re,Yt.CommentNotPermitted))})}return y};if(s){var k=s.id||"schemaservice://untitled/"+Bu++;return this.jsonSchemaService.resolveSchemaContent(new xn(s),k,{}).then(function($){return E($)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function($){return E($)})},t}(),Bu=0;function cl(t){if(t&&typeof t=="object"){if(fn(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=cl(a);if(fn(s))return s}}}function ra(t){if(t&&typeof t=="object"){if(fn(t.allowTrailingCommas))return t.allowTrailingCommas;if(fn(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=ra(a);if(fn(s))return s}}}function ao(t){switch(t){case"error":return Wt.Error;case"warning":return Wt.Warning;case"ignore":return}}var _a=48,dl=57,pl=65,qa=97,na=102;function Ar(t){return t<_a?0:t<=dl?t-_a:(t<qa&&(t+=qa-pl),t>=qa&&t<=na?t-qa+10:0)}function tc(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Ar(t.charCodeAt(1))*17/255,green:Ar(t.charCodeAt(2))*17/255,blue:Ar(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Ar(t.charCodeAt(1))*17/255,green:Ar(t.charCodeAt(2))*17/255,blue:Ar(t.charCodeAt(3))*17/255,alpha:Ar(t.charCodeAt(4))*17/255};case 7:return{red:(Ar(t.charCodeAt(1))*16+Ar(t.charCodeAt(2)))/255,green:(Ar(t.charCodeAt(3))*16+Ar(t.charCodeAt(4)))/255,blue:(Ar(t.charCodeAt(5))*16+Ar(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Ar(t.charCodeAt(1))*16+Ar(t.charCodeAt(2)))/255,green:(Ar(t.charCodeAt(3))*16+Ar(t.charCodeAt(4)))/255,blue:(Ar(t.charCodeAt(5))*16+Ar(t.charCodeAt(6)))/255,alpha:(Ar(t.charCodeAt(7))*16+Ar(t.charCodeAt(8)))/255}}return null}function rc(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var es=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Ya(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var ae=0,re=$.properties;ae<re.length;ae++){var le=re[ae];if(le.keyNode.value==="key"&&le.valueNode){var ge=bo.create(r.uri,ji(r,$));if(w.push({name:zn(le.valueNode),kind:Hn.Function,location:ge}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var he=function(xe,Fe,Ke){return y>=0&&(Fe.type==="array"?Fe.items.forEach(function(Ue){return he(xe,Ue,Ke)}):Fe.type==="object"&&Fe.properties.forEach(function(Ue){if(y>=0){var $e=Ue.valueNode;if($e){y--;var Be=bo.create(r.uri,ji(r,Ue)),je=Ke?Ke+"."+Ue.keyNode.value:Ue.keyNode.value;xe.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),location:Be,containerName:Ke}),he(xe,$e,je)}}})),xe},Se=he([],p,void 0);return y<0&&(Se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),Se},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Ya(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var ae=0,re=$.properties;ae<re.length;ae++){var le=re[ae];if(le.keyNode.value==="key"&&le.valueNode){var ge=ji(r,$),he=ji(r,le.keyNode);if(w.push({name:zn(le.valueNode),kind:Hn.Function,range:ge,selectionRange:he}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var Se=function(Fe,Ke){return y>=0&&(Ke.type==="array"?Ke.items.forEach(function(Ue,$e){if(Ue&&y>=0){y--;var Be=ji(r,Ue),je=Be,We=String($e),Xe=Se([],Ue);Fe.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Xe})}}):Ke.type==="object"&&Ke.properties.forEach(function(Ue){var $e=Ue.valueNode;if($e&&y>=0){y--;var Be=ji(r,Ue),je=ji(r,Ue.keyNode),We=Se([],$e);Fe.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),range:Be,selectionRange:je,children:We})}})),Fe},xe=Se([],p);return y<0&&(xe.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),xe},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Hn.Module;case"string":return Hn.String;case"number":return Hn.Number;case"array":return Hn.Array;case"boolean":return Hn.Boolean;default:return Hn.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,a){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var y=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,S=i.getMatchingSchemas(s.schema),w={},E=0,k=S;E<k.length;E++){var $=k[E];if(!$.inverted&&$.schema&&($.schema.format==="color"||$.schema.format==="color-hex")&&$.node&&$.node.type==="string"){var ae=String($.node.offset);if(!w[ae]){var re=tc(zn($.node));if(re){var le=ji(r,$.node);p.push({color:re,range:le})}if(w[ae]=!0,y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,a,s){var p=[],y=Math.round(a.red*255),S=Math.round(a.green*255),w=Math.round(a.blue*255);function E($){var ae=$.toString(16);return ae.length!==2?"0"+ae:ae}var k;return a.alpha===1?k="#"+E(y)+E(S)+E(w):k="#"+E(y)+E(S)+E(w)+E(Math.round(a.alpha*255)),p.push({label:k,textEdit:Wn.replace(s,JSON.stringify(k))}),p},t}();function ji(t,r){return Zt.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var nc={schemaAssociations:{},schemas:{}};function ia(t,r){var i=[],a=[],s=[],p=-1,y=eo(t.getText(),!1),S=y.scan();function w(Xe){i.push(Xe),a.push(s.length)}for(;S!==17;){switch(S){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,k={startLine:E,endLine:E,kind:S===1?"object":"array"};s.push(k);break}case 2:case 4:{var $=S===2?"object":"array";if(s.length>0&&s[s.length-1].kind===$){var k=s.pop(),ae=t.positionAt(y.getTokenOffset()).line;k&&ae>k.startLine+1&&p!==k.startLine&&(k.endLine=ae-1,w(k),p=k.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,re=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(kn.create(E+1,0))):E<re&&(w({startLine:E,endLine:re,kind:qn.Comment}),p=E);break}case 12:{var le=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ge=le.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ge){var ae=t.positionAt(y.getTokenOffset()).line;if(ge[1]){var k={startLine:ae,endLine:ae,kind:qn.Region};s.push(k)}else{for(var he=s.length-1;he>=0&&s[he].kind!==qn.Region;)he--;if(he>=0){var k=s[he];s.length=he,ae>k.startLine&&p!==k.startLine&&(k.endLine=ae,w(k),p=k.startLine)}}}break}}S=y.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var xe=[],Fe=0,Ke=a;Fe<Ke.length;Fe++){var Ue=Ke[Fe];Ue<30&&(xe[Ue]=(xe[Ue]||0)+1)}for(var $e=0,Be=0,he=0;he<xe.length;he++){var je=xe[he];if(je){if(je+$e>Se){Be=he;break}$e+=je}}for(var We=[],he=0;he<i.length;he++){var Ue=a[he];typeof Ue=="number"&&(Ue<Be||Ue===Be&&$e++<Se)&&We.push(i[he])}return We}function Uu(t,r,i){function a(S){for(var w=t.offsetAt(S),E=i.getNodeFromOffset(w,!0),k=[];E;){switch(E.type){case"string":case"object":case"array":var $=E.offset+1,ae=E.offset+E.length-1;$<ae&&w>=$&&w<=ae&&k.push(s($,ae)),k.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":k.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var re=y(E.offset+E.length,5);re!==-1&&k.push(s(E.offset,re))}E=E.parent}for(var le=void 0,ge=k.length-1;ge>=0;ge--)le=Ao.create(k[ge],le);return le||(le=Ao.create(Zt.create(S,S))),le}function s(S,w){return Zt.create(t.positionAt(S),t.positionAt(w))}var p=eo(t.getText(),!0);function y(S,w){p.setPosition(S);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(a)}function ju(t){var r=t.promiseConstructor||Promise,i=new ec(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(nc);var a=new _o(i,t.contributions,r,t.clientCapabilities),s=new Jf(i,t.contributions,r),p=new es(i),y=new Nu(i,r);return{configure:function(S){i.clearExternalSchemas(),S.schemas&&S.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(S)},resetSchema:function(S){return i.onResourceChange(S)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(S){return $a(S,{collectComments:!0})},newJSONDocument:function(S,w){return Xr(S,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(S,w){return p.findDocumentColors(S,w).then(function(E){return E.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:ia,getSelectionRanges:Uu,format:function(S,w,E){var k=void 0;if(w){var $=S.offsetAt(w.start),ae=S.offsetAt(w.end)-$;k={offset:$,length:ae}}var re={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
186
|
-
`};return
|
|
185
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function bu(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var wu=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),dr,fi;if(typeof process=="object")fi=!1;else if(typeof navigator=="object"){var oa=navigator.userAgent;fi=oa.indexOf("Windows")>=0}function qa(t){return 55296<=t&&t<=56319}function Jf(t){return 56320<=t&&t<=57343}function Td(t){return t>=97&&t<=102}function Su(t){return t>=97&&t<=122}function Li(t){return t>=65&&t<=90}function aa(t){return Su(t)||Li(t)}var sa=/^\w[\w\d+.-]*$/,Xf=/^\//,Au=/^\/\//;function Qf(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!sa.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Xf.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Au.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Zf(t,r){return!t&&!r?"file":t}function _f(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==kn&&(r=kn+r):r=kn;break}return r}var Vt="",kn="/",qf=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ll=function(){function t(r,i,a,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||Vt,this.authority=r.authority||Vt,this.path=r.path||Vt,this.query=r.query||Vt,this.fragment=r.fragment||Vt):(this.scheme=Zf(r,y),this.authority=i||Vt,this.path=_f(this.scheme,a||Vt),this.query=s||Vt,this.fragment=p||Vt,Qf(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Cu(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,a=r.authority,s=r.path,p=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=Vt),a===void 0?a=this.authority:a===null&&(a=Vt),s===void 0?s=this.path:s===null&&(s=Vt),p===void 0?p=this.query:p===null&&(p=Vt),y===void 0?y=this.fragment:y===null&&(y=Vt),i===this.scheme&&a===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new io(i,a,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var a=qf.exec(r);return a?new io(a[2]||Vt,oo(a[4]||Vt),oo(a[5]||Vt),oo(a[7]||Vt),oo(a[9]||Vt),i):new io(Vt,Vt,Vt,Vt,Vt)},t.file=function(r){var i=Vt;if(fi&&(r=r.replace(/\\/g,kn)),r[0]===kn&&r[1]===kn){var a=r.indexOf(kn,2);a===-1?(i=r.substring(2),r=kn):(i=r.substring(2,a),r=r.substring(a)||kn)}return new io("file",i,r,Vt,Vt)},t.from=function(r){return new io(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),cl(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new io(r);return i._formatted=r.external,i._fsPath=r._sep===Eu?r.fsPath:null,i}else return r},t}(),Eu=fi?1:void 0,io=function(t){wu(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Cu(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?cl(this,!0):(this._formatted||(this._formatted=cl(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Eu),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(ll),ul=(dr={},dr[58]="%3A",dr[47]="%2F",dr[63]="%3F",dr[35]="%23",dr[91]="%5B",dr[93]="%5D",dr[64]="%40",dr[33]="%21",dr[36]="%24",dr[38]="%26",dr[39]="%27",dr[40]="%28",dr[41]="%29",dr[42]="%2A",dr[43]="%2B",dr[44]="%2C",dr[59]="%3B",dr[61]="%3D",dr[32]="%20",dr);function fl(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var y=ul[p];y!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=y):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function ec(t){for(var r=void 0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a===35||a===63?(r===void 0&&(r=t.substr(0,i)),r+=ul[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Cu(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,fi&&(i=i.replace(/\//g,"\\")),i}function cl(t,r){var i=r?ec:fl,a="",s=t.scheme,p=t.authority,y=t.path,S=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(p||s==="file")&&(a+=kn,a+=kn),p){var E=p.indexOf("@");if(E!==-1){var k=p.substr(0,E);p=p.substr(E+1),E=k.indexOf(":"),E===-1?a+=i(k,!1):(a+=i(k.substr(0,E),!1),a+=":",a+=i(k.substr(E+1),!1)),a+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?a+=i(p,!1):(a+=i(p.substr(0,E),!1),a+=p.substr(E))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var $=y.charCodeAt(1);$>=65&&$<=90&&(y="/"+String.fromCharCode($+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var $=y.charCodeAt(0);$>=65&&$<=90&&(y=String.fromCharCode($+32)+":"+y.substr(2))}a+=i(y,!0)}return S&&(a+="?",a+=i(S,!1)),w&&(a+="#",a+=r?w:fl(w,!1)),a}function ci(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+ci(t.substr(3)):t}}var ko=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oo(t){return t.match(ko)?t.replace(ko,function(r){return ci(r)}):t}var la=function(){function t(r){try{this.patternRegExp=new RegExp(mu(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),di=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new Ro(a)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),Ro=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Ou=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return tn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var a=r.shift();if(i.properties&&typeof i.properties[a])return this.getSectionRecursive(r,i.properties[a]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var y=p[s],S=new RegExp(y);if(S.test(a))return this.getSectionRecursive(r,i.patternProperties[y])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(a,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),Mo=function(){function t(r,i,a){this.contextService=i,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var a=ll.parse(i).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,a=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var y=s.pop(),S=0;S<p.length;S++){var w=p[S];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[S]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return ll.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var a in i){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,i[a])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var S=p[y];this.contributionAssociations[y]=S;for(var w=this.getOrAddFilePatternAssociation(y),E=0,k=S;E<k.length;E++){var $=k[E],a=this.normalizeId($);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new di(this,r,i);return this.schemasById[r]=a,a},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new la(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,a){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,y=i;p<y.length;p++){var S=y[p];this.getOrAddFilePatternAssociation(S).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var y=p[s],r=this.normalizeId(y);a.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),a=this.schemasById[i];return a?a.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+ua(r)+"'. No schema request service available";return this.promise.resolve(new Ro({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+ua(r)+"': No content.";return new Ro({},[s])}var p={},y=[];p=Uf(a,y);var S=y.length?["Unable to parse content from '"+ua(r)+"': Parse error at offset "+y[0].offset]:[];return new Ro(p,S)},function(a){var s="Unable to load schema from '"+ua(r)+"': "+a.toString();return new Ro({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var S=this.normalizeId(y.$schema);if(S==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Ou({},["Draft-03 schemas are not supported."]));S==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(re,le){if(!le)return re;var ge=re;return le[0]==="/"&&(le=le.substr(1)),le.split("/").some(function(he){return ge=ge[he],!ge}),ge},k=function(re,le,ge,he){var Se=E(le,he);if(Se)for(var me in Se)Se.hasOwnProperty(me)&&!re.hasOwnProperty(me)&&(re[me]=Se[me]);else p.push("$ref '"+he+"' in '"+ge+"' can not be resolved.")},$=function(re,le,ge,he,Se){w&&!/^\w+:\/\/.*/.test(le)&&(le=w.resolveRelativePath(le,he)),le=s.normalizeId(le);var me=s.getOrAddSchemaHandle(le);return me.getUnresolvedSchema().then(function(Fe){if(Se[le]=!0,Fe.errors.length){var Ke=ge?le+"#"+ge:le;p.push("Problems loading reference '"+Ke+"': "+Fe.errors[0]+".")}return k(re,Fe.schema,le,ge),ae(re,Fe.schema,le,me.dependencies)})},ae=function(re,le,ge,he){if(!re||typeof re!="object")return Promise.resolve(null);for(var Se=[re],me=[],Fe=[],Ke=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var wt=et[ze];typeof wt=="object"&&Se.push(wt)}},Ue=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var wt=et[ze];if(typeof wt=="object")for(var Dt in wt){var Wt=wt[Dt];typeof Wt=="object"&&Se.push(Wt)}}},$e=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var wt=et[ze];if(Array.isArray(wt))for(var Dt=0,Wt=wt;Dt<Wt.length;Dt++){var lr=Wt[Dt];typeof lr=="object"&&Se.push(lr)}}},Be=function(We){for(var Je=[];We.$ref;){var ze=We.$ref,et=ze.split("#",2);if(delete We.$ref,et[0].length>0){Fe.push($(We,et[0],et[1],ge,he));return}else Je.indexOf(ze)===-1&&(k(We,le,ge,et[1]),Je.push(ze))}Ke(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ue(We.definitions,We.properties,We.patternProperties,We.dependencies),$e(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var je=Se.pop();me.indexOf(je)>=0||(me.push(je),Be(je))}return s.promise.all(Fe)};return ae(y,y,i,a).then(function(re){return new Ou(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(le){return le.keyNode.value==="$schema"&&le.valueNode&&le.valueNode.type==="string"});if(a.length>0){var s=ui(a[0].valueNode);if(s&&yu(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),S=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var k=E[w];if(k.matchesPattern(r))for(var $=0,ae=k.getSchemas();$<ae.length;$++){var re=ae[$];y[re]||(S.push(re),y[re]=!0)}}return S.length>0?this.createCombinedSchema(r,S).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(a,s)},t}();function ua(t){try{}catch(r){}return t}var Tu=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Ht.Error)},t.prototype.doValidation=function(r,i,a,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],S={},w=function($){var ae=$.range.start.line+" "+$.range.start.character+" "+$.message;S[ae]||(S[ae]=!0,y.push($))},E=function($){var ae=a?es(a.trailingCommas):Ht.Error,re=a?es(a.comments):p.commentSeverity;if($){if($.errors.length&&i.root){var le=i.root,ge=le.type==="object"?le.properties[0]:null;if(ge&&ge.keyNode.value==="$schema"){var he=ge.valueNode||ge,Se=tr.create(r.positionAt(he.offset),r.positionAt(he.offset+he.length));w(ai.create(Se,$.errors[0],Ht.Warning,Yt.SchemaResolveError))}else{var Se=tr.create(r.positionAt(le.offset),r.positionAt(le.offset+1));w(ai.create(Se,$.errors[0],Ht.Warning,Yt.SchemaResolveError))}}else{var me=i.validate(r,$.schema);me&&me.forEach(w)}fa($.schema)&&(re=void 0),ao($.schema)&&(ae=void 0)}for(var Fe=0,Ke=i.syntaxErrors;Fe<Ke.length;Fe++){var Ue=Ke[Fe];if(Ue.code===Yt.TrailingComma){if(typeof ae!="number")continue;Ue.severity=ae}w(Ue)}if(typeof re=="number"){var $e="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(ai.create(Be,$e,re,Yt.CommentNotPermitted))})}return y};if(s){var k=s.id||"schemaservice://untitled/"+Pu++;return this.jsonSchemaService.resolveSchemaContent(new Ro(s),k,{}).then(function($){return E($)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function($){return E($)})},t}(),Pu=0;function fa(t){if(t&&typeof t=="object"){if(mn(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=fa(a);if(mn(s))return s}}}function ao(t){if(t&&typeof t=="object"){if(mn(t.allowTrailingCommas))return t.allowTrailingCommas;if(mn(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=ao(a);if(mn(s))return s}}}function es(t){switch(t){case"error":return Ht.Error;case"warning":return Ht.Warning;case"ignore":return}}var ts=48,dl=57,tc=65,Di=97,Iu=102;function Fr(t){return t<ts?0:t<=dl?t-ts:(t<Di&&(t+=Di-tc),t>=Di&&t<=Iu?t-Di+10:0)}function Fu(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Fr(t.charCodeAt(1))*17/255,green:Fr(t.charCodeAt(2))*17/255,blue:Fr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Fr(t.charCodeAt(1))*17/255,green:Fr(t.charCodeAt(2))*17/255,blue:Fr(t.charCodeAt(3))*17/255,alpha:Fr(t.charCodeAt(4))*17/255};case 7:return{red:(Fr(t.charCodeAt(1))*16+Fr(t.charCodeAt(2)))/255,green:(Fr(t.charCodeAt(3))*16+Fr(t.charCodeAt(4)))/255,blue:(Fr(t.charCodeAt(5))*16+Fr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Fr(t.charCodeAt(1))*16+Fr(t.charCodeAt(2)))/255,green:(Fr(t.charCodeAt(3))*16+Fr(t.charCodeAt(4)))/255,blue:(Fr(t.charCodeAt(5))*16+Fr(t.charCodeAt(6)))/255,alpha:(Fr(t.charCodeAt(7))*16+Fr(t.charCodeAt(8)))/255}}return null}function pl(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var rc=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Mi(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var ae=0,re=$.properties;ae<re.length;ae++){var le=re[ae];if(le.keyNode.value==="key"&&le.valueNode){var ge=Vn.create(r.uri,Ni(r,$));if(w.push({name:ui(le.valueNode),kind:Ar.Function,location:ge}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var he=function(me,Fe,Ke){return y>=0&&(Fe.type==="array"?Fe.items.forEach(function(Ue){return he(me,Ue,Ke)}):Fe.type==="object"&&Fe.properties.forEach(function(Ue){if(y>=0){var $e=Ue.valueNode;if($e){y--;var Be=Vn.create(r.uri,Ni(r,Ue)),je=Ke?Ke+"."+Ue.keyNode.value:Ue.keyNode.value;me.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),location:Be,containerName:Ke}),he(me,$e,je)}}})),me},Se=he([],p,void 0);return y<0&&(Se.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),Se},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=a.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||Mi(S.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,k=p.items;E<k.length;E++){var $=k[E];if($.type==="object")for(var ae=0,re=$.properties;ae<re.length;ae++){var le=re[ae];if(le.keyNode.value==="key"&&le.valueNode){var ge=Ni(r,$),he=Ni(r,le.keyNode);if(w.push({name:ui(le.valueNode),kind:Ar.Function,range:ge,selectionRange:he}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S),w}}}return w}var Se=function(Fe,Ke){return y>=0&&(Ke.type==="array"?Ke.items.forEach(function(Ue,$e){if(Ue&&y>=0){y--;var Be=Ni(r,Ue),je=Be,We=String($e),Je=Se([],Ue);Fe.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Je})}}):Ke.type==="object"&&Ke.properties.forEach(function(Ue){var $e=Ue.valueNode;if($e&&y>=0){y--;var Be=Ni(r,Ue),je=Ni(r,Ue.keyNode),We=Se([],$e);Fe.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind($e.type),range:Be,selectionRange:je,children:We})}})),Fe},me=Se([],p);return y<0&&(me.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(S)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Ar.Module;case"string":return Ar.String;case"number":return Ar.Number;case"array":return Ar.Array;case"boolean":return Ar.Boolean;default:return Ar.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,a){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var y=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,S=i.getMatchingSchemas(s.schema),w={},E=0,k=S;E<k.length;E++){var $=k[E];if(!$.inverted&&$.schema&&($.schema.format==="color"||$.schema.format==="color-hex")&&$.node&&$.node.type==="string"){var ae=String($.node.offset);if(!w[ae]){var re=Fu(ui($.node));if(re){var le=Ni(r,$.node);p.push({color:re,range:le})}if(w[ae]=!0,y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,a,s){var p=[],y=Math.round(a.red*255),S=Math.round(a.green*255),w=Math.round(a.blue*255);function E($){var ae=$.toString(16);return ae.length!==2?"0"+ae:ae}var k;return a.alpha===1?k="#"+E(y)+E(S)+E(w):k="#"+E(y)+E(S)+E(w)+E(Math.round(a.alpha*255)),p.push({label:k,textEdit:Wn.replace(s,JSON.stringify(k))}),p},t}();function Ni(t,r){return tr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var ca={schemaAssociations:{},schemas:{}};function ku(t,r){var i=[],a=[],s=[],p=-1,y=Oi(t.getText(),!1),S=y.scan();function w(Je){i.push(Je),a.push(s.length)}for(;S!==17;){switch(S){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,k={startLine:E,endLine:E,kind:S===1?"object":"array"};s.push(k);break}case 2:case 4:{var $=S===2?"object":"array";if(s.length>0&&s[s.length-1].kind===$){var k=s.pop(),ae=t.positionAt(y.getTokenOffset()).line;k&&ae>k.startLine+1&&p!==k.startLine&&(k.endLine=ae-1,w(k),p=k.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,re=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(ln.create(E+1,0))):E<re&&(w({startLine:E,endLine:re,kind:Eo.Comment}),p=E);break}case 12:{var le=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ge=le.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ge){var ae=t.positionAt(y.getTokenOffset()).line;if(ge[1]){var k={startLine:ae,endLine:ae,kind:Eo.Region};s.push(k)}else{for(var he=s.length-1;he>=0&&s[he].kind!==Eo.Region;)he--;if(he>=0){var k=s[he];s.length=he,ae>k.startLine&&p!==k.startLine&&(k.endLine=ae,w(k),p=k.startLine)}}}break}}S=y.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Fe=0,Ke=a;Fe<Ke.length;Fe++){var Ue=Ke[Fe];Ue<30&&(me[Ue]=(me[Ue]||0)+1)}for(var $e=0,Be=0,he=0;he<me.length;he++){var je=me[he];if(je){if(je+$e>Se){Be=he;break}$e+=je}}for(var We=[],he=0;he<i.length;he++){var Ue=a[he];typeof Ue=="number"&&(Ue<Be||Ue===Be&&$e++<Se)&&We.push(i[he])}return We}function Ru(t,r,i){function a(S){for(var w=t.offsetAt(S),E=i.getNodeFromOffset(w,!0),k=[];E;){switch(E.type){case"string":case"object":case"array":var $=E.offset+1,ae=E.offset+E.length-1;$<ae&&w>=$&&w<=ae&&k.push(s($,ae)),k.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":k.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var re=y(E.offset+E.length,5);re!==-1&&k.push(s(E.offset,re))}E=E.parent}for(var le=void 0,ge=k.length-1;ge>=0;ge--)le=Fi.create(k[ge],le);return le||(le=Fi.create(tr.create(S,S))),le}function s(S,w){return tr.create(t.positionAt(S),t.positionAt(w))}var p=Oi(t.getText(),!0);function y(S,w){p.setPosition(S);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(a)}function nc(t){var r=t.promiseConstructor||Promise,i=new Mo(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(ca);var a=new Yf(i,t.contributions,r,t.clientCapabilities),s=new Fo(i,t.contributions,r),p=new rc(i),y=new Tu(i,r);return{configure:function(S){i.clearExternalSchemas(),S.schemas&&S.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(S)},resetSchema:function(S){return i.onResourceChange(S)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(S){return gu(S,{collectComments:!0})},newJSONDocument:function(S,w){return Xa(S,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(S,w){return p.findDocumentColors(S,w).then(function(E){return E.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:ku,getSelectionRanges:Ru,format:function(S,w,E){var k=void 0;if(w){var $=S.offsetAt(w.start),ae=S.offsetAt(w.end)-$;k={offset:$,length:ae}}var re={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
186
|
+
`};return Wf(S.getText(),k,re).map(function(le){return Wn.replace(tr.create(S.positionAt(le.offset),S.positionAt(le.offset+le.length)),le.content)})}}}var Mu=o(96876),ic=o(4328),Pd=o(3256),oc=o(71707),ac=o(82801),Id=o(32095),Lu=o(86081),rs=o(44254),ns=o(75019),Fd=o(13837),hl=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const Lo=nc({});qr.registerHelper("lint","json",function(t,r){return hl(this,null,function*(){const{schema:i,setError:a}=r;Lo.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=za.create(r.id+".json","json",0,t),p=Lo.parseJSONDocument(s),y=yield Lo.doValidation(s,p);return y.length?a&&a(y[0].message):a&&a(void 0),y.map(S=>({from:qr.Pos(S.range.start.line,S.range.start.character),to:qr.Pos(S.range.end.line,S.range.end.character),message:S.message}))})}),qr.registerHelper("hint","json",(t,r)=>hl(void 0,null,function*(){const i=r.schema;if(!i)return;Lo.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const a=t.getDoc().getCursor(),s=t.getTokenAt(a),p=za.create(r.id+".json","json",0,t.getValue()),y=Lo.parseJSONDocument(p),S=yield Lo.doComplete(p,{line:a.line,character:a.ch},y),w=k=>{let $="";for(;k--;)$+=" ";return $};let E=S?S.items.map(k=>({text:k.insertText,displayText:k.label,filter:k.filterText||k.label,from:{line:k.textEdit.range.start.line,ch:k.textEdit.range.start.character},to:{line:k.textEdit.range.end.line,ch:k.textEdit.range.end.character},hint:($,ae,re)=>{const le="_$__REDOC_CURSOR_HERE";let ge=re.text.replace(/(\$1|\${1:[^}]+})/,le)||"";if(ge=ge.replace(/(\$\d+|\${[^}]+})/g,"")||"",$.setSelection(re.from,re.to),ge.indexOf(`
|
|
187
187
|
`)>-1){const Se=$.getLine($.getCursor().line).search(/(\S|$)/);ge=ge.replace(/\n/g,`
|
|
188
|
-
`+w(Se))}$.replaceSelection(ge);const he=$.getSearchCursor(le,re.from);he.findNext()&&($.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:
|
|
188
|
+
`+w(Se))}$.replaceSelection(ge);const he=$.getSearchCursor(le,re.from);he.findNext()&&($.setCursor(he.from()),he.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:qr.Pos(a.line,s.start),to:qr.Pos(a.line,a.ch),list:E}}));var sc=Object.defineProperty,lc=(t,r,i)=>r in t?sc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,is=(t,r,i)=>(lc(t,typeof r!="symbol"?r+"":r,i),i);const Du=Gt.createGlobalStyle`
|
|
189
189
|
.cm-s-material.CodeMirror {
|
|
190
190
|
background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
|
|
191
191
|
color: ${({theme:t})=>t.colors.text.light}!important;
|
|
@@ -233,24 +233,24 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ou(t){return t.i
|
|
|
233
233
|
flex: 1;
|
|
234
234
|
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
235
235
|
}
|
|
236
|
-
`;class
|
|
236
|
+
`;class uc extends d.Component{constructor(){super(...arguments);is(this,"editor"),is(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),is(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),is(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:a,setError:s}=this.props.fieldApi,{onChange:p,onBlur:y,forwardedRef:S}=this.props;return d.createElement(d.Fragment,null,d.createElement(Du,null),d.createElement(La.fk,{editorDidMount:this.initEditor,value:r||"",ref:S||void 0,onBeforeChange:(w,E,k)=>{i(k),p&&p(k)},onBlur:w=>{a(),y&&y(w)},options:{mode:this.props.mode||"application/json",theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const fc=pn(uc),Nu=(0,In.ZP)(Xi.A3)`
|
|
237
237
|
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
238
238
|
margin-bottom: 10px;
|
|
239
|
-
`;var
|
|
239
|
+
`;var os=o(67897),da=o(64776),kd=o(68929),Bi;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(Bi||(Bi={}));var pi;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(pi||(pi={}));var Do;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded"})(Do||(Do={}));var pa=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const Bu=Object.values(pi),cc=["application/octet-stream","application/pdf","application/gzip","application/zip"],Uu=["image/","audio/","video/"];function cr(t){if(Uu.some(r=>t.startsWith(r)))return t}function as(t){return cc.includes(t)?!0:Uu.some(r=>t.startsWith(r))}function vl(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(as(i)?"binary":"");return r.type===Bi.STRING&&Bu.includes(a)}function No(t,r){if(!t||!t.type||t.type==="any")return as(r);const i=t.format||t.contentEncoding||"";return t.type===Bi.STRING&&Bu.includes(i)}function Rn(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const p=a.result.replace(/data:.*\/.*;base64,/g,"");r(p)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function ha({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(pi.BASE64)}function gl(t,r){return pa(this,null,function*(){const i=Object.values(t);let a=i.length===1?i[0]:i;return r.type===Bi.STRING&&ha(r)?a=yield Rn(i[0]):r.type===Bi.ARRAY&&r.items&&(ha(r.items)?a=yield Promise.all(i.map(p=>pa(this,null,function*(){return yield Rn(p)}))):a=i),a})}var ju=Object.defineProperty,va=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,xl=(t,r,i)=>r in t?ju(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dc=(t,r)=>{for(var i in r||(r={}))yl.call(r,i)&&xl(t,i,r[i]);if(va)for(var i of va(r))ml.call(r,i)&&xl(t,i,r[i]);return t},bl=(t,r)=>{var i={};for(var a in t)yl.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&va)for(var a of va(t))r.indexOf(a)<0&&ml.call(t,a)&&(i[a]=t[a]);return i},Vu=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const nr=d.forwardRef((t,r)=>{var i=bl(t,[]);const{schema:a,contentName:s,onChange:p,name:y}=i,{render:S}=Kn(dc({field:y},i)),w=E=>Vu(void 0,null,function*(){const k=yield gl(E.target.files,a);p(s,k)});return S(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:w,multiple:i.multiple,accept:i.accept,ref:r}))}),Wu=(0,Wo.Pi)(t=>{var r,i,a,s,p;const{mediaType:y,onChange:S}=t,w=(((i=(r=y.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=y.schema)==null?void 0:s.oneOf[(a=y.schema)==null?void 0:a.activeOneOf].fields)||[]:((p=y.schema)==null?void 0:p.fields)||[]).filter(k=>!k.schema.readOnly),E=y.schema||{};return No(E,y.name)?d.createElement(Hu,null,d.createElement(xt.NI,null,d.createElement(so,{fullWidth:!0,id:`body.${y.name}`,name:`body.${y.name}`,accept:cr(y.name),schema:E,contentName:y.name,onChange:S}))):E.type!==Bi.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${y.name}"`,E),null):d.createElement(Hu,null,w.map(k=>{const $=k.schema||{},ae=y.name===Do.MULTIPART&&vl($),re=$.contentMediaType||"",le=ae?d.createElement(so,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:cr(re),multiple:$.type==="array",schema:$,contentName:k.name,onChange:S}):d.createElement(hn,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:$.description||k.name});return d.createElement(xt.NI,{key:k.name},d.createElement(xt.lX,null,k.name,":"),le)}))}),Hu=Gt.styled.div`
|
|
240
240
|
> div {
|
|
241
241
|
margin-top: 10px;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
244
|
-
${
|
|
243
|
+
`,so=(0,Gt.styled)(nr)`
|
|
244
|
+
${Kl}
|
|
245
245
|
${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
|
|
246
246
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
247
|
-
`;var
|
|
247
|
+
`;var pc=Object.defineProperty,ss=Object.defineProperties,hc=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Gu=Object.prototype.propertyIsEnumerable,$u=(t,r,i)=>r in t?pc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ls=(t,r)=>{for(var i in r||(r={}))zu.call(r,i)&&$u(t,i,r[i]);if(pr)for(var i of pr(r))Gu.call(r,i)&&$u(t,i,r[i]);return t},e=(t,r)=>ss(t,hc(r)),n=(t,r)=>{var i={};for(var a in t)zu.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&pr)for(var a of pr(t))r.indexOf(a)<0&&Gu.call(t,a)&&(i[a]=t[a]);return i},u=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const l=(0,Wo.Pi)(t=>{var r=t,{properties:i={}}=r,a=n(r,["properties"]),s,p;const y=le=>{var ge;const he=a.body.content;if(!he||!he.hasSample)return"";const Se=(ge=he.active)==null?void 0:ge.examples;if(!(Se==null?void 0:Se[le]))return"";const me=Us()(Se==null?void 0:Se[le].value,i,{arrayMerge:da.QQ});return JSON.stringify(me,null,2)},S=(p=(s=a.body.content)==null?void 0:s.operation)==null?void 0:p.activeExampleName,w=le=>{var ge,he;(he=(ge=a.body.content)==null?void 0:ge.operation)==null||he.activateExampleName(le),a.console.formApi.setValue("body",y(le))},E=le=>{if(!le)return"";if(le.mime==="application/x-www-form-urlencoded")return le.value;const ge=Us()(le.value,i,{arrayMerge:da.QQ});return JSON.stringify(ge,null,2)},k=(le,ge)=>u(void 0,null,function*(){const he=a.console.formApi,{setValue:Se}=he;Se(`body.${le}`,ge)});(0,d.useEffect)(()=>{S!==!1?S&&a.console.formApi.setValue("body",y(S)):a.console.formApi.setValue("body",JSON.stringify(i,null,2))},[S]);const{validate:$,body:ae}=a,re=le=>d.createElement(Gt.DropdownOrLabel,e(ls({},le),{variant:"dark",fullWidth:!0,Label:Nu,Dropdown:Yi.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(Gt.MediaTypesSwitch,{content:ae.content,renderDropdown:re},le=>{var ge;const he=le.examples||{},Se=Object.keys(he),me=le.schema,Fe=No(me||{},le.name)||le.name===Do.MULTIPART||le.name===Do.URL_ENCODED,{exampleKey:Ke}=(0,os.C6)(le.operation,he),Ue=he[Ke];return d.createElement(d.Fragment,null,Se.length&&Se.length!==1&&d.createElement(os.b_,{examples:he,onChange:w,exampleKey:Ke})||null,Fe?d.createElement(Wu,{mediaType:le,onChange:k.bind(void 0)}):d.createElement(fc,{id:"body"+a.id,field:"body",initialValue:E(Ue),schema:(((ge=a==null?void 0:a.resolvedBody)==null?void 0:ge.content[le.name])||{}).schema,mode:le.name,validate:$}))}))});var f=o(39895);const m=Gt.styled.div`
|
|
248
248
|
display: flex;
|
|
249
249
|
font-size: 12px;
|
|
250
250
|
button {
|
|
251
251
|
margin: 0;
|
|
252
252
|
}
|
|
253
|
-
`,
|
|
253
|
+
`,F=Gt.styled.button`
|
|
254
254
|
outline: none;
|
|
255
255
|
border: none;
|
|
256
256
|
background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
|
|
@@ -283,20 +283,20 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ou(t){return t.i
|
|
|
283
283
|
|
|
284
284
|
${({active:t,theme:r})=>t&&`
|
|
285
285
|
border-bottom: 4px solid ${r.colors.accent.main};
|
|
286
|
-
background-color: ${(0,
|
|
286
|
+
background-color: ${(0,f._j)(.05,r.rightPanel.panelBackgroundColor)};
|
|
287
287
|
`||""}
|
|
288
288
|
|
|
289
289
|
${({disabled:t,theme:r})=>t&&`
|
|
290
290
|
cursor: default;
|
|
291
|
-
color: ${(0,
|
|
291
|
+
color: ${(0,f.DZ)(.3,r.colors.text.light)};
|
|
292
292
|
`||""}
|
|
293
|
-
`;class
|
|
293
|
+
`;class U extends d.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return d.createElement(m,null,d.createElement(F,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),d.createElement(F,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var z=Object.defineProperty,Z=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ye=(t,r,i)=>r in t?z(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,tt=(t,r)=>{for(var i in r||(r={}))Ne.call(r,i)&&Ye(t,i,r[i]);if(Ee)for(var i of Ee(r))Me.call(r,i)&&Ye(t,i,r[i]);return t},at=(t,r)=>Z(t,xe(r));const ft=In.ZP.input`
|
|
294
294
|
cursor: pointer;
|
|
295
295
|
vertical-align: middle;
|
|
296
296
|
margin-left: 0;
|
|
297
297
|
margin-right: 5px;
|
|
298
298
|
height: 20px;
|
|
299
|
-
`,
|
|
299
|
+
`,ht=In.ZP.label`
|
|
300
300
|
display: inline-block;
|
|
301
301
|
cursor: pointer;
|
|
302
302
|
vertical-align: middle;
|
|
@@ -306,7 +306,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ou(t){return t.i
|
|
|
306
306
|
|
|
307
307
|
overflow-wrap: break-word;
|
|
308
308
|
line-height: 20px;
|
|
309
|
-
`,
|
|
309
|
+
`,ct=In.ZP.div`
|
|
310
310
|
width: ${({fullWidth:t})=>t?"100%":"50%"};
|
|
311
311
|
display: inline-flex;
|
|
312
312
|
align-items: center;
|
|
@@ -314,12 +314,12 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ou(t){return t.i
|
|
|
314
314
|
& > label {
|
|
315
315
|
white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
|
|
316
316
|
}
|
|
317
|
-
`;function
|
|
317
|
+
`;function bt(t,r){const{fullWidth:i,id:a,label:s,nowrap:p}=t;return d.createElement(ct,{fullWidth:i,nowrap:p},d.createElement(ft,at(tt({},t),{type:"checkbox",ref:r})),d.createElement(ht,{htmlFor:a},s))}const Pt=d.forwardRef(bt);var Ot=Object.defineProperty,Ut=(t,r,i)=>r in t?Ot(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ar=(t,r,i)=>(Ut(t,typeof r!="symbol"?r+"":r,i),i);const Hr=11;class vr extends d.Component{constructor(){super(...arguments);ar(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(a)p=[...s,i];else{const y=s.indexOf(i);p=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:a,maxDisplayedItems:s,showControls:p,trimItemsLength:y}=this.props,{collapsed:S}=this.state,w=i.getError(),E=s||Hr,k=y&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(fn,null,d.createElement(gn.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(gn.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map($=>d.createElement(Pt,{nowrap:!0,id:$,value:$,checked:this.isFieldChecked($),label:$,key:$,onChange:ae=>{this.onCheckBoxClick(ae),a&&i.validate()}})),r.length>E&&y?d.createElement(kr,{onClick:()=>{this.toggle()}},S?"Show all":"Collapse"):null),w?d.createElement(xt.Xq,null,w):"")}}const xn=pn(vr),fn=(0,Gt.styled)(gn.xp)`
|
|
318
318
|
opacity: 1;
|
|
319
319
|
text-align: left;
|
|
320
|
-
`,
|
|
320
|
+
`,kr=(0,Gt.styled)(gn.J4)`
|
|
321
321
|
float: right;
|
|
322
|
-
`;function
|
|
322
|
+
`;function rn(t){const{scopes:r,id:i}=t;let a=[];try{a=JSON.parse((0,zt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(xt.NI,null,d.createElement(xt.lX,null," Scopes: "),d.createElement(xn,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var zr=o(17673),Nr=o(73555),Rr=Object.defineProperty,wr=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,zn=(t,r,i)=>r in t?Rr(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Er=(t,r)=>{for(var i in r||(r={}))Ui.call(r,i)&&zn(t,i,r[i]);if(lo)for(var i of lo(r))Jr.call(r,i)&&zn(t,i,r[i]);return t},wl=(t,r)=>wr(t,cn(r)),Cn=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});const ji="/oauth2-redirect.html";class Xr{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:S,errorCallback:w}){const E=Rd({date:new Date().toString()}),k=new URL(r),$=p==="/"?"":p,ae=`${window.location.origin}${$}${ji}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",y||ae),k.searchParams.set("response_type","token"),k.searchParams.set("state",E),Array.isArray(a)&&k.searchParams.set("scope",a.join(" "));for(const re in s)k.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:a},state:E,successCallback:re=>{S(re),Xr.clearRedirectData("implicit")},errorCallback:re=>{w(re),Xr.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:S,extraParams:w={},routingBasePath:E,redirectUri:k,successCallback:$,errorCallback:ae}){const re=new URL(r),le=E==="/"?"":E,ge=`${window.location.origin}${le}${ji}`,he=Rd({date:new Date().toString()});re.searchParams.set("client_id",a),re.searchParams.set("redirect_uri",k||ge),re.searchParams.set("response_type","code"),re.searchParams.set("state",he),Array.isArray(S)&&re.searchParams.set("scope",S.join(" ")),y&&(re.searchParams.set("code_challenge",y),re.searchParams.set("code_challenge_method","S256"));for(const Se in w)re.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:S},state:he,successCallback:Se=>Cn(this,[Se],function*({auth_code:me}){try{const Fe=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:zr.stringify(Er(wl(Er({client_id:a,client_secret:s},p&&{code_verifier:p}),{code:me,grant_type:"authorization_code",redirect_uri:k||ge}),w))});yield uo(Fe,$,ae)}catch(Fe){ae(Fe)}Xr.clearRedirectData("authorizationCode")}),errorCallback:Se=>{ae(Se),Xr.clearRedirectData("authorizationCode")}},window.open(re.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return Cn(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:p=[],extraParams:y={},successCallback:S,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:zr.stringify(Er({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield uo(E,S,w)}catch(E){w(E)}})}}const dn=new Xr;function uo(t,r,i){return Cn(this,null,function*(){if(t.ok){const a=yield t.json();r(a)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function us(t=32){let r="";for(;r.length<t;)r+=Math.random().toString(32).substring(2);return r.substring(0,t)}function Rd(t){const r=Er({randomStr:us()},t);return btoa(JSON.stringify(r))}function yh(t){return Cn(this,null,function*(){var r;const i=new TextEncoder().encode(t);return(r=Nr.EA)==null?void 0:r.subtle.digest("SHA-256",i)})}function mh(t){if(!!t)return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Md(t){return Cn(this,null,function*(){return mh(yield yh(t))})}var xh=Object.defineProperty,bh=Object.defineProperties,wh=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,Sh=Object.prototype.hasOwnProperty,Ah=Object.prototype.propertyIsEnumerable,vc=(t,r,i)=>r in t?xh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Dd=(t,r)=>{for(var i in r||(r={}))Sh.call(r,i)&&vc(t,i,r[i]);if(Ld)for(var i of Ld(r))Ah.call(r,i)&&vc(t,i,r[i]);return t},Nd=(t,r)=>bh(t,wh(r)),Ku=(t,r,i)=>(vc(t,typeof r!="symbol"?r+"":r,i),i),Eh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function Ch(t){if(!t)return"Token is required"}class Oh extends d.Component{constructor(){super(...arguments);Ku(this,"state",{error:"",loading:!1,tokenMasked:!0}),Ku(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),Ku(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),Ku(this,"requestToken",()=>Eh(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,Vr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield Xr.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,successCallback:S=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,S),this.setState({loading:!1})},errorCallback:S=>{this.clearToken(),this.setState({error:S.message,loading:!1})}})}))}get values(){var r,i,a;return((a=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:a[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:p}=this.props,y=Object.keys(this.props.flow.scopes);let S=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);S=S?JSON.parse(S):"";const w=(0,zt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(xt.n5,null,d.createElement(xt.NI,null,d.createElement(xt.lX,null,"Client ID:"),w?d.createElement(Go,Nd(Dd({},E),{options:w})):d.createElement(hn,Nd(Dd({},E),{type:"password"}))),d.createElement(xt.NI,null,d.createElement(xt.lX,null,"Client Secret:"),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(hn,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:S,validate:Ch}),d.createElement(rn,{id:s,scopes:y})),d.createElement(Xi.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(xt.ph,null," Access Token "),i?d.createElement(xt.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(xt.TR,null,d.createElement(xt.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),d.createElement(xt.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),d.createElement(xt.h,{onClick:this.clearToken}," Clear ")):d.createElement(xt.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Th=Oh,Ph=Gt.styled.div`
|
|
323
323
|
position: relative;
|
|
324
324
|
height: 4px;
|
|
325
325
|
display: block;
|
|
@@ -421,54 +421,54 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ou(t){return t.i
|
|
|
421
421
|
right: -8%;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
`,
|
|
424
|
+
`,Bd=()=>d.createElement(Ph,null,d.createElement("div",{className:"indeterminate"}));var Ih=Object.defineProperty,Fh=Object.defineProperties,kh=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,Rh=Object.prototype.hasOwnProperty,Mh=Object.prototype.propertyIsEnumerable,gc=(t,r,i)=>r in t?Ih(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Yu=(t,r)=>{for(var i in r||(r={}))Rh.call(r,i)&&gc(t,i,r[i]);if(Ud)for(var i of Ud(r))Mh.call(r,i)&&gc(t,i,r[i]);return t},yc=(t,r)=>Fh(t,kh(r)),Sl=(t,r,i)=>(gc(t,typeof r!="symbol"?r+"":r,i),i),Lh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function jd(t){if(!t)return"Field is required"}class Ju extends d.Component{constructor(){super(...arguments);Sl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),Sl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),Sl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),Sl(this,"handleCodeVerifierChange",r=>Lh(this,[r],function*({target:{value:i}}){const a=yield Md(i);this.setState({codeVerifier:i,validCodeChallenge:a})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=us(43);Md(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:a,id:s,tokenUrl:p,authCorsProxyUrl:y}=this.props;if(!(0,da.Qr)(this.errors))return;this.setState({loading:!0,error:null});const S=y?y+(0,Vr.jg)(r):r,w=y&&p?y+(0,Vr.jg)(p):p,E=this.props.formApi.getValue(`auth.${s}.scopes`),k={authorizationUrl:S.startsWith("http")?S:this.props.server+S,clientId:this.values.client_id,scopes:E,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:$=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,$),this.setState({loading:!1,error:null})},errorCallback:$=>{this.setState({loading:!1,error:($==null?void 0:$.message)||"Failed to retrieve the access token"})}};i==="implicit"&&Xr.authorizeImplicit(k),i==="authorizationCode"&&Xr.authorizeAuthorizationCode(Yu(yc(Yu({},k),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),Xr.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:a,scopes:s,authorizationUrl:p,flow:y,usePkce:S,defaultValues:w}=this.props;if(!p)return d.createElement(xt.Xq,null,"No flow info");let E=(0,zt.YQ)(`auth.${a}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const k=(0,zt.Al)(a,"client_id"),$={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:jd,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(xt.n5,null,d.createElement(xt.NI,null,d.createElement(xt.lX,null," Client ID: "),k?d.createElement(Go,yc(Yu({},$),{options:k})):d.createElement(hn,yc(Yu({},$),{"data-cy":"client-id-input"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,d.createElement(xt.NI,null,d.createElement(xt.lX,null,"Client Secret:"),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,zt.YQ)(`auth.${a}.client_secret`)||(w==null?void 0:w.client_secret),validate:jd,validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),S&&d.createElement(Bh,null,d.createElement(Pt,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Uh,null,d.createElement(xt.NI,null,d.createElement(xt.lX,null,"Code Verifier"),d.createElement(zo,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(xt.NI,null,d.createElement(xt.lX,null,"Code Challenge"),d.createElement(zo,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ae}})=>{this.setState({codeChallenge:ae})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(hn,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:E}),d.createElement(rn,{id:a,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(xt.NI,null,d.createElement(xt.lX,null," Access Token: "),d.createElement(zo,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(Nh,null,this.values.token&&this.values.token.access_token?d.createElement(Xi.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(Xi.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Bd,null)):d.createElement(Xi.zx,{fullWidth:!0,disabled:!(0,da.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(xt.n5,null,d.createElement(xt.NI,null,i?d.createElement(xt.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(Dh,null,d.createElement(xt.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(xt.GE,null," No Access Token. Please, Authorize. "):null)))}}Sl(Ju,"contextType",Gt.OptionsContext);const Dh=Gt.styled.div`
|
|
425
425
|
font-family: monospace;
|
|
426
426
|
margin-top: 10px;
|
|
427
427
|
line-height: 1;
|
|
428
428
|
padding-left: 10px;
|
|
429
429
|
border-left: 1px solid gray;
|
|
430
|
-
`,
|
|
430
|
+
`,Nh=Gt.styled.div`
|
|
431
431
|
margin-bottom: 15px;
|
|
432
|
-
`,
|
|
432
|
+
`,Bh=Gt.styled.div`
|
|
433
433
|
padding: 8px 0 20px;
|
|
434
|
-
`,
|
|
434
|
+
`,Uh=Gt.styled.div`
|
|
435
435
|
padding: 4px 0;
|
|
436
|
-
`;var
|
|
436
|
+
`;var jh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function Vh(t){return jh(this,null,function*(){return(yield fetch(t)).json()})}var Wh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function Hh(t){var r;const{scheme:i,defaultValues:a}=t,[s,p]=d.useState({}),[y,S]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{k(i.openIdConnectUrl)},[i.openIdConnectUrl]);const k=$=>Wh(this,null,function*(){E(!0),S("");try{const ae=yield Vh($);p(ae)}catch(ae){S(ae.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Bd,null)):d.createElement("div",null,y?d.createElement(xt.Xq,null,y):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(zh,null,"OAuth2 Implicit Flow"),d.createElement(Ju,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:a})):d.createElement("div",null,"Unsupported flow")))}const zh=Gt.styled.div`
|
|
437
437
|
margin-top: 5px;
|
|
438
438
|
margin-bottom: 10px;
|
|
439
|
-
`;var Al=o(51027),
|
|
440
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,S;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){y=!0,S=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw S}}}}var
|
|
441
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
442
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
439
|
+
`;var Al=o(51027),Gh=Object.defineProperty,$h=Object.defineProperties,Kh=Object.getOwnPropertyDescriptors,Vd=Object.getOwnPropertySymbols,Yh=Object.prototype.hasOwnProperty,Jh=Object.prototype.propertyIsEnumerable,mc=(t,r,i)=>r in t?Gh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,fs=(t,r)=>{for(var i in r||(r={}))Yh.call(r,i)&&mc(t,i,r[i]);if(Vd)for(var i of Vd(r))Jh.call(r,i)&&mc(t,i,r[i]);return t},El=(t,r)=>$h(t,Kh(r)),Wd=(t,r,i)=>(mc(t,typeof r!="symbol"?r+"":r,i),i);function cs(t){if(!t)return"Field is required"}const Xh=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function Hd(t){if(t.in==="cookie")return Xh(t.name)}class Qh extends d.Component{constructor(){super(...arguments);Wd(this,"state",{activeScheme:0}),Wd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(y=>y.schemes.map(S=>S.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),p=a.findIndex(y=>y===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,p=a.map(y=>y.schemes.map(S=>S.id).join(" and ")).map((y,S)=>({value:y,idx:S}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(xt.n5,null,p.length>1&&d.createElement(xt.NI,null,d.createElement(xt.lX,null," Security scheme: "),d.createElement(Yi.Dropdown,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(y=>{var S,w,E,k,$,ae,re;const le=(0,zt.A8)(y.id);if(y.type==="apiKey"){const ge=(0,zt.Al)(le,""),he={field:`auth.${le}`,fullWidth:!0,initialValue:Hd(y)||(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:Hd(y)||(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:cs,validateOnBlur:!0,validateOnChange:!0};return d.createElement(xt.NI,{key:le},d.createElement(xt.lX,null," ",y.name,": "),ge?d.createElement(Go,El(fs({},he),{options:ge})):d.createElement(hn,El(fs({},he),{type:"password","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ge=(0,zt.Al)(le,"username"),he={field:`auth.${le}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${le}.username`)||((S=r==null?void 0:r[le])==null?void 0:S.username),initValue:(0,zt.YQ)(`auth.${le}.username`)||((w=r==null?void 0:r[le])==null?void 0:w.username),validate:cs,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:le},d.createElement(xt.NI,null,d.createElement(xt.lX,null," ",(0,Al.l)("tryItAuthBasicUsername"),": "),ge?d.createElement(Go,El(fs({},he),{options:ge})):d.createElement(hn,fs({},he))),d.createElement(xt.NI,null,d.createElement(xt.lX,null," ",(0,Al.l)("tryItAuthBasicPassword"),": "),d.createElement(hn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${le}.password`,validate:cs,initialValue:(0,zt.YQ)(`auth.${le}.password`)||((E=r==null?void 0:r[le])==null?void 0:E.password),validateOnBlur:!0,validateOnChange:!0})))}else if(y.scheme==="bearer"){const ge=(0,zt.Al)(le,""),he={field:`auth.${le}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),initValue:(0,zt.YQ)(`auth.${le}`)||(r==null?void 0:r[le]),validate:cs,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:le},d.createElement(xt.NI,null,d.createElement(xt.lX,null," Bearer Token: "),ge?d.createElement(Go,El(fs({},he),{options:ge})):d.createElement(hn,El(fs({},he),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(Th,{key:le,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(Ju,{key:le,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((($=(k=y==null?void 0:y.flows)==null?void 0:k.implicit)==null?void 0:$.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(Ju,{key:le,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ae=y.flows.authorizationCode)==null?void 0:ae.scopes)||{}),server:this.props.activeServer,id:le,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[le]});if(y.type==="oauth2"){let ge=(0,zt.YQ)(`auth.${le}.token`)||JSON.stringify((re=r==null?void 0:r[le])==null?void 0:re.token);return ge=ge?JSON.parse(ge):{},d.createElement(d.Fragment,{key:le},d.createElement(xt.NI,null,d.createElement(xt.lX,null," Access Token Type: "),d.createElement(hn,{fullWidth:!0,field:`auth.${le}.token.token_type`,initialValue:ge.token_type||"Bearer"})),d.createElement(xt.NI,null,d.createElement(xt.lX,null," Access Token: "),d.createElement(hn,{type:"password",fullWidth:!0,field:`auth.${le}.token.access_token`,validate:cs,initialValue:ge.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(y.type==="openIdConnect")return d.createElement(Hh,{key:le,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:le,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[le]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var zd=o(11429),Gd=o(89356),Xu=o(63263),Zh=o(30699),xc=o(58377),$d=o(28834),Kd=o(13038),_h=o(32752),bc=o(44341);function Yd(t,r,i){return r in t?bc(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function Jd(t,r){var i=Gd(t);if(Xu){var a=Xu(t);r&&(a=Zh(a).call(a,function(s){return xc(t,s).enumerable})),i.push.apply(i,a)}return i}function Cr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;$d(a=Jd(Object(i),!0)).call(a,function(p){Yd(t,p,i[p])})}else if(Kd)_h(t,Kd(i));else{var s;$d(s=Jd(Object(i))).call(s,function(p){bc(t,p,xc(i,p))})}}return t}var qh=o(28583),Qu=o.n(qh),ev=o(10240),Xd=o.n(ev),Bo=o(8575),ga=o(51446),wc=o(19996),Sc=o(78363),tv=o(95238),Qd=o(53592);function Ac(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function Ec(t,r){var i;if(!!t){if(typeof t=="string")return Ac(t,r);var a=tv(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Qd(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ac(t,r)}}function ya(t,r){var i=typeof ga!="undefined"&&wc(t)||t["@@iterator"];if(!i){if(Sc(t)||(i=Ec(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
440
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,S;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){y=!0,S=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw S}}}}var rv=o(23882);function hr(t){return typeof ga=="function"&&typeof rv=="symbol"?hr=function(i){return typeof i}:hr=function(i){return i&&typeof ga=="function"&&i.constructor===ga&&i!==ga.prototype?"symbol":typeof i},hr(t)}function nv(t){if(Sc(t))return t}function iv(t,r){var i=t&&(typeof ga!="undefined"&&wc(t)||t["@@iterator"]);if(i!=null){var a=[],s=!0,p=!1,y,S;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(a.push(y.value),!(r&&a.length===r));s=!0);}catch(w){p=!0,S=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw S}}return a}}function ov(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
441
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hi(t,r){return nv(t)||iv(t,r)||Ec(t,r)||ov()}var Zd=o(69798);function _d(t,r,i,a,s,p,y){try{var S=t[p](y),w=S.value}catch(E){i(E);return}S.done?r(w):Zd.resolve(w).then(a,s)}function Cc(t){return function(){var r=this,i=arguments;return new Zd(function(a,s){var p=t.apply(r,i);function y(w){_d(p,a,s,y,S,"next",w)}function S(w){_d(p,a,s,y,S,"throw",w)}y(void 0)})}}var av=o(63109),Vi=o.n(av),sv=o(78580),Oc=o.n(sv),lv=o(72119),qd=o.n(lv),uv=o(66419),fv=o.n(uv),cv=o(59340),Zu=o.n(cv),dv=o(2991),ir=o.n(dv),pv=o(86902),or=o.n(pv),hv=o(77766),Tt=o.n(hv),vv=o(26295),ep=o.n(vv),gv=o(20116),Mn=o.n(gv),Wm=o(31905),yv=o(92495),Tc=o.n(yv),mv=o(93320),tp=o.n(mv),xv=o(78718),Pc=o.n(xv),bv=o(23560),Cl=o.n(bv),rp=o(88996);function Ic(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function np(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),bc(t,a.key,a)}}function Fc(t,r,i){return r&&np(t.prototype,r),i&&np(t,i),t}var ip=o(83863),op=o(79542),ap=o(24889);function ds(t){return ds=op?ap:function(i){return i.__proto__||ap(i)},ds(t)}function wv(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=ds(t),t!==null););return t}function _u(t,r,i){return typeof Reflect!="undefined"&&ip?_u=ip:_u=function(s,p,y){var S=wv(s,p);if(!!S){var w=xc(S,p);return w.get?w.get.call(y):w.value}},_u(t,r,i||t)}var Sv=o(189);function kc(t,r){return kc=op||function(a,s){return a.__proto__=s,a},kc(t,r)}function Av(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Sv(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&kc(t,r)}var qu=o(13535);function Ev(){if(typeof Reflect=="undefined"||!qu||qu.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(qu(Boolean,[],function(){})),!0}catch(t){return!1}}function Cv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ov(t,r){return r&&(hr(r)==="object"||typeof r=="function")?r:Cv(t)}function Tv(t){var r=Ev();return function(){var a=ds(t),s;if(r){var p=ds(this).constructor;s=qu(a,arguments,p)}else s=a.apply(this,arguments);return Ov(this,s)}}var Pv=o(94473),Iv=o.n(Pv),Fv=o(57514),kv=o.n(Fv),Rv=function(r){var i=function(p,y){return{name:p,value:y}};if(Cl()(r.prototype.set)||Cl()(r.prototype.get)||Cl()(r.prototype.getAll)||Cl()(r.prototype.has))return r;var a=function(s){Av(y,s);var p=Tv(y);function y(S){var w;return Ic(this,y),w=p.call(this,S),w.entryList=[],w}return Fc(y,[{key:"append",value:function(w,E,k){return this.entryList.push(i(w,E)),_u(ds(y.prototype),"append",this).call(this,w,E,k)}},{key:"set",value:function(w,E){var k,$=i(w,E);this.entryList=Mn()(k=this.entryList).call(k,function(ae){return ae.name!==w}),this.entryList.push($)}},{key:"get",value:function(w){var E,k=Iv()(E=this.entryList).call(E,function($){return $.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var E,k;return ir()(E=Mn()(k=this.entryList).call(k,function($){return $.name===w})).call(E,function($){return $.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),y}(r);return a};const Mv=Rv(kv());function Lv(t){if(Sc(t))return Ac(t)}function Dv(t){if(typeof ga!="undefined"&&wc(t)!=null||t["@@iterator"]!=null)return Qd(t)}function Nv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
442
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ma(t){return Lv(t)||Dv(t)||Ec(t)||Nv()}var Bv=o(3649),Wi=o.n(Bv),Uv=o(88996),jv=Uv.Buffer,Vv=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Wv=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function ps(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!a?t:s?JSON.parse(t):ir()(r=ma(t)).call(r,function(p){var y,S;if(Wv(p)||Vv(p)&&a==="unsafe")return p;var w=ir()(y=ir()(S=jv.from(p).toJSON().data||[]).call(S,function(E){var k;return Wi()(k="0".concat(E.toString(16).toUpperCase())).call(k,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function Rc(t){var r=t.value;return Array.isArray(r)?Hv(t):hr(r)==="object"?zv(t):Gv(t)}function Hv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,y=function($){return ps($,{escape:p})};if(a==="simple")return ir()(i).call(i,function(k){return y(k)}).join(",");if(a==="label")return".".concat(ir()(i).call(i,function(k){return y(k)}).join("."));if(a==="matrix")return ir()(i).call(i,function(k){return y(k)}).reduce(function(k,$){var ae;if(!k||s){var re,le;return Tt()(re=Tt()(le="".concat(k||"",";")).call(le,r,"=")).call(re,$)}return Tt()(ae="".concat(k,",")).call(ae,$)},"");if(a==="form"){var S=s?"&".concat(r,"="):",";return ir()(i).call(i,function(k){return y(k)}).join(S)}if(a==="spaceDelimited"){var w=s?"".concat(r,"="):"";return ir()(i).call(i,function(k){return y(k)}).join(" ".concat(w))}if(a==="pipeDelimited"){var E=s?"".concat(r,"="):"";return ir()(i).call(i,function(k){return y(k)}).join("|".concat(E))}}function zv(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,y=function(E){return ps(E,{escape:p})},S=or()(i);if(a==="simple")return S.reduce(function(w,E){var k,$,ae,re=y(i[E]),le=s?"=":",",ge=w?"".concat(w,","):"";return Tt()(k=Tt()($=Tt()(ae="".concat(ge)).call(ae,E)).call($,le)).call(k,re)},"");if(a==="label")return S.reduce(function(w,E){var k,$,ae,re=y(i[E]),le=s?"=":".",ge=w?"".concat(w,"."):".";return Tt()(k=Tt()($=Tt()(ae="".concat(ge)).call(ae,E)).call($,le)).call(k,re)},"");if(a==="matrix"&&s)return S.reduce(function(w,E){var k,$,ae=y(i[E]),re=w?"".concat(w,";"):";";return Tt()(k=Tt()($="".concat(re)).call($,E,"=")).call(k,ae)},"");if(a==="matrix")return S.reduce(function(w,E){var k,$,ae=y(i[E]),re=w?"".concat(w,","):";".concat(r,"=");return Tt()(k=Tt()($="".concat(re)).call($,E,",")).call(k,ae)},"");if(a==="form")return S.reduce(function(w,E){var k,$,ae,re,le=y(i[E]),ge=w?Tt()(k="".concat(w)).call(k,s?"&":","):"",he=s?"=":",";return Tt()($=Tt()(ae=Tt()(re="".concat(ge)).call(re,E)).call(ae,he)).call($,le)},"")}function Gv(t){var r=t.key,i=t.value,a=t.style,s=t.escape,p=function(w){return ps(w,{escape:s})};if(a==="simple")return p(i);if(a==="label")return".".concat(p(i));if(a==="matrix"){var y;return Tt()(y=";".concat(r,"=")).call(y,p(i))}if(a==="form")return p(i);if(a==="deepObject")return p(i,{},!0)}var Mc={serializeRes:sp,mergeInQueryOrForm:pp};function ef(t){return Lc.apply(this,arguments)}function Lc(){return Lc=Cc(Vi().mark(function t(r){var i,a,s,p,y,S=arguments;return Vi().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=S.length>1&&S[1]!==void 0?S[1]:{},hr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Mc.mergeInQueryOrForm(i),i.headers&&or()(i.headers).forEach(function(k){var $=i.headers[k];typeof $=="string"&&(i.headers[k]=$.replace(/\n+/g," "))}),!i.requestInterceptor){E.next=12;break}return E.next=8,i.requestInterceptor(i);case 8:if(E.t0=E.sent,E.t0){E.next=11;break}E.t0=i;case 11:i=E.t0;case 12:return a=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(a)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),E.prev=14,E.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=E.sent,E.next=20,Mc.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Lc.apply(this,arguments)}var $v=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Kv(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):tp().safeLoad(t)}function sp(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.loadSpec,s=a===void 0?!1:a,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:lp(t.headers)},y=p.headers["content-type"],S=s||$v(y),w=S?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,S)try{var k=Kv(E,y);p.body=k,p.obj=k}catch($){p.parseError=$}return p})}function Yv(t){var r=Oc()(t).call(t,", ");return r?t.split(", "):t}function lp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Cl()(qd()(t))?fv()(qd()(t).call(t)).reduce(function(r,i){var a=hi(i,2),s=a[0],p=a[1];return r[s]=Yv(p),r},{}):{}}function Dc(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&hr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof rp.Buffer!="undefined"&&t instanceof rp.Buffer?!0:t!==null&&hr(t)==="object"&&typeof t.pipe=="function"}function up(t,r){return Array.isArray(t)&&t.some(function(i){return Dc(i,r)})}var Jv={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Xv={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function fp(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,S=hr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function($){return $.toString()}:function($){return encodeURIComponent($)},E=w(t);if(typeof S=="undefined"&&s)return[[E,""]];if(Dc(S)||up(S))return[[E,S]];if(p)return cp(t,S,i,p);if(y){if([hr(y.style),hr(y.explode),hr(y.allowReserved)].some(function($){return $!=="undefined"}))return cp(t,S,i,Pc()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var k=typeof S=="string"?S:Zu()(S);return[[E,w(k)]]}return[[E,w(S.toString())]]}return hr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)&&S.every(function($){return hr($)!=="object"})?[[E,ir()(S).call(S,w).join(",")]]:[[E,w(Zu()(S))]]}return hr(S)!=="object"?[[E,w(S)]]:Array.isArray(S)?a==="multi"?[[E,ir()(S).call(S,w)]]:[[E,ir()(S).call(S,w).join(Xv[a||"csv"])]]:[[E,""]]}function cp(t,r,i,a){var s,p=a.style||"form",y=typeof a.explode=="undefined"?p==="form":a.explode,S=i?!1:a&&a.allowReserved?"unsafe":"reserved",w=function(re){return ps(re,{escape:S})},E=i?function(ae){return ae}:function(ae){return ps(ae,{escape:S})};if(hr(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return y?[[E(t),ir()(r).call(r,w)]]:[[E(t),ir()(r).call(r,w).join(Jv[p])]];if(p==="deepObject"){var k;return ir()(k=or()(r)).call(k,function(ae){var re;return[E(Tt()(re="".concat(t,"[")).call(re,ae,"]")),w(r[ae])]})}if(y){var $;return ir()($=or()(r)).call($,function(ae){return[E(ae),w(r[ae])]})}return[[E(t),ir()(s=or()(r)).call(s,function(ae){var re;return[Tt()(re="".concat(E(ae),",")).call(re,w(r[ae]))]}).join(",")]]}function Qv(t){return ep()(t).reduce(function(r,i){var a=hi(i,2),s=a[0],p=a[1],y=ya(fp(s,p,!0)),S;try{for(y.s();!(S=y.n()).done;){var w=hi(S.value,2),E=w[0],k=w[1];if(Array.isArray(k)){var $=ya(k),ae;try{for($.s();!(ae=$.n()).done;){var re=ae.value;r.append(E,re)}}catch(le){$.e(le)}finally{$.f()}}else r.append(E,k)}}catch(le){y.e(le)}finally{y.f()}return r},new Mv)}function dp(t){var r=or()(t).reduce(function(i,a){var s=ya(fp(a,t[a])),p;try{for(s.s();!(p=s.n()).done;){var y=hi(p.value,2),S=y[0],w=y[1];i[S]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Tc().stringify(r,{encode:!1,indices:!1})||""}function pp(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,a=t.query,s=t.form,p=function(){for(var Se=arguments.length,me=new Array(Se),Fe=0;Fe<Se;Fe++)me[Fe]=arguments[Fe];var Ke=Mn()(me).call(me,function(Ue){return Ue}).join("&");return Ke?"?".concat(Ke):""};if(s){var y=or()(s).some(function(he){var Se=s[he].value;return Dc(Se)||up(Se)}),S=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(S)?t.body=Qv(t.form):t.body=dp(s),delete t.form}if(a){var w=i.split("?"),E=hi(w,2),k=E[0],$=E[1],ae="";if($){var re=Tc().parse($),le=or()(a);le.forEach(function(he){return delete re[he]}),ae=Tc().stringify(re,{encode:!0})}var ge=p(ae,dp(a));t.url=k+ge,delete t.query}return t}function Zv(t,r,i){return i=i||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Mc.mergeInQueryOrForm(a),a=r(a),i(t(a))}}var _v=o(51942),vi=o.n(_v),qv=o(93476),xa=o.n(qv),eg=o(92762),tg=o.n(eg),rg=o(13311),ng=o.n(rg),ig=o(50308),hp=o.n(ig);/*!
|
|
443
443
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
444
444
|
* (c) 2017 Joachim Wester
|
|
445
445
|
* MIT license
|
|
446
|
-
*/var
|
|
447
|
-
`)}var
|
|
446
|
+
*/var og=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),ag=Object.prototype.hasOwnProperty;function tf(t,r){return ag.call(t,r)}function Nc(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var a in t)tf(t,a)&&i.push(a);return i}function Gn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Bc(t){for(var r=0,i=t.length,a;r<i;){if(a=t.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function fo(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function vp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function gp(t,r){var i;for(var a in t)if(tf(t,a)){if(t[a]===r)return fo(a)+"/";if(typeof t[a]=="object"&&(i=gp(t[a],r),i!=""))return fo(a)+"/"+i}return""}function Hm(t,r){if(t===r)return"/";var i=gp(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Uc(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Uc(t[r]))return!0}else if(typeof t=="object"){for(var a=Nc(t),s=a.length,r=0;r<s;r++)if(Uc(t[a[r]]))return!0}}return!1}function yp(t,r){var i=[t];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&i.push(a+": "+s)}return i.join(`
|
|
447
|
+
`)}var mp=function(t){og(r,t);function r(i,a,s,p,y){var S=this.constructor,w=t.call(this,yp(i,{name:a,index:s,operation:p,tree:y}))||this;return w.name=a,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,S.prototype),w.message=yp(i,{name:a,index:s,operation:p,tree:y}),w}return r}(Error),Gr=mp,sg=Gn,hs={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var a=t[r];return delete t[r],{newDocument:i,removed:a}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:function(t,r,i){var a=Ol(i,this.path);a&&(a=Gn(a));var s=ba(i,{op:"remove",path:this.from}).removed;return ba(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=Ol(i,this.from);return ba(i,{op:"add",path:this.path,value:Gn(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Tl(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},lg={add:function(t,r,i){return Bc(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var a=t.splice(r,1);return{newDocument:i,removed:a[0]}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:hs.move,copy:hs.copy,test:hs.test,_get:hs._get};function Ol(t,r){if(r=="")return t;var i={op:"_get",path:r};return ba(t,i),i.value}function ba(t,r,i,a,s,p){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):rf(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Ol(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=Tl(t,r.value),y.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{a||(t=Gn(t));var S=r.path||"",w=S.split("/"),E=t,k=1,$=w.length,ae=void 0,re=void 0,le=void 0;for(typeof i=="function"?le=i:le=rf;;){if(re=w[k],s&&re=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&ae===void 0&&(E[re]===void 0?ae=w.slice(0,k).join("/"):k==$-1&&(ae=r.path),ae!==void 0&&le(r,0,t,ae)),k++,Array.isArray(E)){if(re==="-")re=E.length;else{if(i&&!Bc(re))throw new Gr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);Bc(re)&&(re=~~re)}if(k>=$){if(i&&r.op==="add"&&re>E.length)throw new Gr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=lg[r.op].call(r,E,re,t);if(y.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(re&&re.indexOf("~")!=-1&&(re=vp(re)),k>=$){var y=hs[r.op].call(r,E,re,t);if(y.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}E=E[re]}}}function wa(t,r,i,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(t=Gn(t));for(var p=new Array(r.length),y=0,S=r.length;y<S;y++)p[y]=ba(t,r[y],i,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function ug(t,r,i){var a=ba(t,r);if(a.test===!1)throw new Gr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return a.newDocument}function rf(t,r,i,a){if(typeof t!="object"||t===null||Array.isArray(t))throw new Gr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(hs[t.op]){if(typeof t.path!="string")throw new Gr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Gr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Gr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Uc(t.value))throw new Gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=a.split("/").length;if(s!==p+1&&s!==p)throw new Gr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==a)throw new Gr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},S=xp([y],i);if(S&&S.name==="OPERATION_PATH_UNRESOLVABLE")throw new Gr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function xp(t,r,i){try{if(!Array.isArray(t))throw new Gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)wa(Gn(r),Gn(t),i||!0);else{i=i||rf;for(var a=0;a<t.length;a++)i(t[a],a,r,void 0)}}catch(s){if(s instanceof Gr)return s;throw s}}function Tl(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),a=Array.isArray(r),s,p,y;if(i&&a){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Tl(t[s],r[s]))return!1;return!0}if(i!=a)return!1;var S=Object.keys(t);if(p=S.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(S[s]))return!1;for(s=p;s--!=0;)if(y=S[s],!Tl(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
|
|
448
448
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
449
449
|
* (c) 2017 Joachim Wester
|
|
450
450
|
* MIT license
|
|
451
|
-
*/var Hc=new WeakMap,ug=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),fg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function cg(t){return Hc.get(t)}function dg(t,r){return t.observers.get(r)}function pg(t,r){t.observers.delete(r.callback)}function hg(t,r){r.unobserve()}function vg(t,r){var i=[],a,s=cg(t);if(!s)s=new ug(t),Hc.set(t,s);else{var p=dg(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=Gn(t),r){a.callback=r,a.next=null;var y=function(){zc(a)},S=function(){clearTimeout(a.next),a.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return a.patches=i,a.object=t,a.unobserve=function(){zc(a),clearTimeout(a.next),pg(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new fg(r,a)),a}function zc(t,r){r===void 0&&(r=!1);var i=Hc.get(t.object);Gc(i.value,t.object,t.patches,"",r),t.patches.length&&pa(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Gc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=jc(r),y=jc(t),S=!1,w=!1,E=y.length-1;E>=0;E--){var k=y[E],$=t[k];if(sf(r,k)&&!(r[k]===void 0&&$!==void 0&&Array.isArray(r)===!1)){var ae=r[k];typeof $=="object"&&$!=null&&typeof ae=="object"&&ae!=null?Gc($,ae,i,a+"/"+co(k),s):$!==ae&&(S=!0,s&&i.push({op:"test",path:a+"/"+co(k),value:Gn($)}),i.push({op:"replace",path:a+"/"+co(k),value:Gn(ae)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+co(k),value:Gn($)}),i.push({op:"remove",path:a+"/"+co(k)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),S=!0)}if(!(!w&&p.length==y.length))for(var E=0;E<p.length;E++){var k=p[E];!sf(t,k)&&r[k]!==void 0&&i.push({op:"add",path:a+"/"+co(k),value:Gn(r[k])})}}}function gg(t,r,i){i===void 0&&(i=!1);var a=[];return Gc(t,r,a,"",i),a}const Hm=Object.assign({},c,v,{JsonPatchError:yp,deepClone:Gn,escapePathComponent:co,unescapePathComponent:hp});var yg=o(31312),mg=o.n(yg),xg=o(50361),bg=o.n(xg);const ar={add:Sg,replace:$c,remove:Ag,merge:Eg,mergeDeep:Cg,context:Og,getIn:Fg,applyPatch:wg,parentPathMatch:Ig,flatten:Pl,fullyNormalizeArray:kg,normalizeArray:wp,isPromise:Rg,forEachNew:Tg,forEachNewPrimitive:Pg,isJsonPatch:Ep,isContextPatch:Dg,isPatch:ff,isMutation:Cp,isAdditiveMutation:uf,isGenerator:Lg,isFunction:Ap,isObject:Mo,isError:Mg};function wg(t,r,i){if(i=i||{},r=Cr(Cr({},r),{},{path:r.path&&xp(r.path)}),r.op==="merge"){var a=Jc(t,r.path);xi()(a,r.value),pa(t,[$c(r.path,a)])}else if(r.op==="mergeDeep"){var s=Jc(t,r.path);for(var p in r.value){var y=r.value[p],S=Array.isArray(y);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,y)}else if(Mo(y)&&!S){var E=Cr({},s[p]);for(var k in y)if(Object.prototype.hasOwnProperty.call(E,k)){E=mg()(bg()(E),y);break}else xi()(E,Kd({},k,y[k]));s[p]=E}else s[p]=y}}else if(r.op==="add"&&r.path===""&&Mo(r.value)){var $=nr()(r.value).reduce(function(he,Se){return he.push({op:"add",path:"/".concat(xp(Se)),value:r.value[Se]}),he},[]);pa(t,$)}else if(r.op==="replace"&&r.path===""){var ae=r,re=ae.value;i.allowMetaPatches&&r.meta&&uf(r)&&(Array.isArray(r.value)||Mo(r.value))&&(re=Cr(Cr({},re),r.meta)),t=re}else if(pa(t,[r]),i.allowMetaPatches&&r.meta&&uf(r)&&(Array.isArray(r.value)||Mo(r.value))){var le=Jc(t,r.path),ge=Cr(Cr({},le),r.meta);pa(t,[$c(r.path,ge)])}return t}function xp(t){return Array.isArray(t)?t.length<1?"":"/".concat(rr()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function Sg(t,r){return{op:"add",path:t,value:r}}function $c(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ag(t){return{op:"remove",path:t}}function Eg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Cg(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function Og(t,r){return{type:"context",path:t,value:r}}function Tg(t,r){try{return bp(t,Yc,r)}catch(i){return i}}function Pg(t,r){try{return bp(t,Kc,r)}catch(i){return i}}function bp(t,r,i){var a,s=rr()(a=Ln()(t).call(t,uf)).call(a,function(S){return r(S.value,i,S.path)})||[],p=Pl(s),y=Sp(p);return y}function Kc(t,r,i){if(i=i||[],Array.isArray(t))return rr()(t).call(t,function(s,p){return Kc(s,r,Tt()(i).call(i,p))});if(Mo(t)){var a;return rr()(a=nr()(t)).call(a,function(s){return Kc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Yc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=rr()(t).call(t,function(w,E){return Yc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(Mo(t)){var y,S=rr()(y=nr()(t)).call(y,function(w){return Yc(t[w],r,Tt()(i).call(i,w))});S&&(a=Tt()(a).call(a,S))}return a=Pl(a),a}function Ig(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function Fg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function kg(t){return Sp(Pl(wp(t)))}function wp(t){return Array.isArray(t)?t:[t]}function Pl(t){var r;return Tt()(r=[]).apply(r,fa(rr()(t).call(t,function(i){return Array.isArray(i)?Pl(i):i})))}function Sp(t){return Ln()(t).call(t,function(r){return typeof r!="undefined"})}function Mo(t){return t&&dr(t)==="object"}function Rg(t){return Mo(t)&&Ap(t.then)}function Ap(t){return t&&typeof t=="function"}function Mg(t){return t instanceof Error}function Ep(t){if(ff(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Lg(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Cp(t){return Ep(t)||ff(t)&&t.type==="mutation"}function uf(t){return Cp(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Dg(t){return ff(t)&&t.type==="context"}function ff(t){return t&&dr(t)==="object"}function Jc(t,r){try{return Ol(t,r)}catch(i){return console.error(i),{}}}var Ng=o(52424),Bg=o.n(Ng),Ug=o(54098),jg=o(9779),Op=o.n(jg);function Tp(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Vg=o(13692),Wg=o.n(Vg),Hg=o(47037),zg=o.n(Hg),Gg=["properties"],$g=["properties"],Kg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Yg=["schema/example","items/example"];function Pp(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Gg.indexOf(r)>-1&&$g.indexOf(i)===-1||Kg.indexOf(a)>-1||Yg.some(function(s){return a.indexOf(s)>-1})}function Jg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var k;return a.getContext(Tt()(k=[]).call(k,fa(r),fa(E))).baseDoc}:s,y=i.targetKeys,S=y===void 0?["$ref","$$ref"]:y,w=[];return Wg()(t).forEach(function(){if(Ic()(S).call(S,this.key)&&zg()(this.node)){var k=this.path,$=Tt()(r).call(r,this.path),ae=Xc(this.node,p(k));w.push(a.replace($,ae))}}),w}function Xc(t,r){var i,a=t.split("#"),s=mi(a,2),p=s[0],y=s[1],S=Ro.resolve(p||"",r||"");return y?Tt()(i="".concat(S,"#")).call(i,y):S}var Ip="application/json, application/yaml",Xg=new RegExp("^([a-z]+://|//)","i"),vs=Tp("JSONRefError",function(r,i,a){this.originalError=a,xi()(this,i||{})}),po={},Fp=new(Bg()),Qg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],Zg=function(r){return Qg.some(function(i){return i(r)})},_g={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),y=Hi()(a).call(a,0,-1);if(!(Pp(y)||Zg(y))){var S=s.getContext(a),w=S.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Mp(r),k=E[0],$=E[1]||"",ae;try{ae=w||k?Rp(k,w):null}catch(xe){return Qc(xe,{pointer:$,$ref:r,basePath:ae,fullPath:a})}var re,le;if(iy($,ae,y,s)&&!p.useCircularStructures){var ge=Xc(r,ae);return r===ge?null:ar.replace(a,ge)}if(ae==null?(le=_c($),re=s.get(le),typeof re=="undefined"&&(re=new vs("Could not resolve reference: ".concat(r),{pointer:$,$ref:r,baseDoc:w,fullPath:a}))):(re=Lp(ae,$),re.__value!=null?re=re.__value:re=re.catch(function(xe){throw Qc(xe,{pointer:$,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[ar.remove(a),re];var he=Xc(r,ae),Se=ar.replace(y,re,{$$ref:he});if(ae&&ae!==w)return[Se,ar.context(y,{baseDoc:ae})];try{if(!oy(s.state,Se)||p.useCircularStructures)return Se}catch(xe){return null}}}},kp=xi()(_g,{docCache:po,absoluteify:Rp,clearCache:ey,JSONRefError:vs,wrapError:Qc,getDoc:Dp,split:Mp,extractFromDoc:Lp,fetchJSON:ty,extract:Zc,jsonPointerToArray:_c,unescapeJsonPointerToken:Np});const qg=kp;function Rp(t,r){if(!Xg.test(t)){if(!r){var i;throw new vs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ro.resolve(r,t)}return t}function Qc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new vs("Could not resolve reference: ".concat(i),r,t)}function Mp(t){return(t+"").split("#")}function Lp(t,r){var i=po[t];if(i&&!ar.isPromise(i))try{var a=Zc(r,i);return xi()(ca().resolve(a),{__value:a})}catch(s){return ca().reject(s)}return Dp(t).then(function(s){return Zc(r,s)})}function ey(t){typeof t!="undefined"?delete po[t]:nr()(po).forEach(function(r){delete po[r]})}function Dp(t){var r=po[t];return r?ar.isPromise(r)?r:ca().resolve(r):(po[t]=kp.fetchJSON(t).then(function(i){return po[t]=i,i}),po[t])}function ty(t){return(0,Ug.fetch)(t,{headers:{Accept:Ip},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return ep().safeLoad(r)})}function Zc(t,r){var i=_c(t);if(i.length<1)return r;var a=ar.getIn(r,i);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function _c(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(dr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:rr()(r=t.split("/")).call(r,Np)}function Np(t){return typeof t!="string"?t:Op().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Bp(t){return Op().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function ry(t){return t.length===0?"":"/".concat(rr()(t).call(t,Bp).join("/"))}var ny=function(r){return!r||r==="/"||r==="#"};function qc(t,r){if(ny(r))return!0;var i=t.charAt(r.length),a=Hi()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function iy(t,r,i,a){var s,p,y=Fp.get(a);y||(y={},Fp.set(a,y));var S=ry(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),k=a.contextTree.get([]).baseDoc;if(r==k&&qc(E,t))return!0;var $="",ae=i.some(function(re){var le;return $=Tt()(le="".concat($,"/")).call(le,Bp(re)),y[$]&&y[$].some(function(ge){return qc(ge,w)||qc(w,ge)})});if(ae)return!0;y[E]=Tt()(p=y[E]||[]).call(p,w)}function oy(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return ar.isObject(s)&&(i.indexOf(s)>=0||nr()(s).some(function(p){return a(s[p])}))}}var ay=o(41609),sy=o.n(ay);const ly={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var y=Hi()(a).call(a,0,-1);if(!Pp(y)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=a,S}var w=!1,E=p.value;if(y.forEach(function(ae){!E||(E=E[ae])}),E=Cr({},E),!sy()(E)){delete E.allOf;var k=[];if(k.push(s.replace(y,{})),r.forEach(function(ae,re){if(!s.isObject(ae)){if(w)return null;w=!0;var le=new TypeError("Elements in allOf must be objects");return le.fullPath=a,k.push(le)}k.push(s.mergeDeep(y,ae));var ge=Hi()(a).call(a,0,-1),he=Jg(ae,ge,{getBaseUrlForNodePath:function(xe){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,fa(a),[re],fa(xe))).baseDoc},specmap:s});k.push.apply(k,fa(he))}),k.push(s.mergeDeep(y,E)),!E.$$ref){var $;k.push(s.remove(Tt()($=[]).call($,y,"$$ref")))}return k}}}}},uy={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=xi()([],r),y=Hi()(a).call(a,0,-1),S=Cr({},ar.getIn(s.spec,y));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch($){var k=new Error($);return k.fullPath=a,k}}),ar.replace(a,p)}return ar.replace(a,r)}},fy={key:"properties",plugin:function(r,i,a,s){var p=Cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(E){var S=new Error(E);return S.fullPath=a,S}var w=ar.replace(a,p);return w}};var cy=function(){function t(r){Rc(this,t),this.root=ed(r||{})}return Mc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){cf(this.root,a,null);return}var p=i[i.length-1],y=s.children;if(y[p]){cf(y[p],a,s);return}y[p]=ed(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,y=0;y<i.length&&(p=i[y],s=a.children,!!s[p]);y+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Hi()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&a&&(y[p]=ed(null,s)),y[p]},this.root)}}]),t}();function ed(t,r){return cf({children:{}},t,r)}function cf(t,r,i){return t.value=r||{},t.protoValue=i?Cr(Cr({},i.protoValue),t.value):t.value,nr()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=cf(s,s.value,t)}),t}var Up=100,dy=function(){function t(r){var i=this,a,s;Rc(this,t),xi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new cy,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:xi()(Object.create(this),ar,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Ln()(a=rr()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,ar.isFunction),this.patches.push(ar.add([],this.spec)),this.patches.push(ar.context([],this.context)),this.updatePatches(this.patches)}return Mc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,y=new Array(p>1?p-1:0),S=1;S<p;S++)y[S-1]=arguments[S];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):ar.isFunction(i)?y=i:ar.isObject(i)&&(y=S(i)),xi()(y.bind(p),{pluginName:i.name||a,isGenerator:ar.isGenerator(y)});function S(w){var E=function($,ae){return Array.isArray($)?$.every(function(re,le){return re===ae[le]}):!0};return Wi().mark(function k($,ae){var re,le,ge,he,Se,xe;return Wi().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:xe=function($e,Be,je){var We,Xe,ze,et,bt,Dt,Ht,sr,Lr,Or,Yr,br,Ur;return Wi().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(ar.isObject($e)){Jt.next=6;break}if(w.key!==Be[Be.length-1]){Jt.next=4;break}return Jt.next=4,w.plugin($e,w.key,Be,ae);case 4:Jt.next=30;break;case 6:We=Be.length-1,Xe=Be[We],ze=Be.indexOf("properties"),et=Xe==="properties"&&We===ze,bt=ae.allowMetaPatches&&le[$e.$$ref],Dt=0,Ht=nr()($e);case 12:if(!(Dt<Ht.length)){Jt.next=30;break}if(sr=Ht[Dt],Lr=$e[sr],Or=Tt()(Be).call(Be,sr),Yr=ar.isObject(Lr),br=$e.$$ref,bt){Jt.next=22;break}if(!Yr){Jt.next=22;break}return ae.allowMetaPatches&&br&&(le[br]=!0),Jt.delegateYield(xe(Lr,Or,je),"t0",22);case 22:if(!(!et&&sr===w.key)){Jt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Jt.next=27;break}return Jt.next=27,w.plugin(Lr,sr,Or,ae,je);case 27:Dt++,Jt.next=12;break;case 30:case"end":return Jt.stop()}},re)},re=Wi().mark(xe),le={},ge=ua(Ln()($).call($,ar.isAdditiveMutation)),Ke.prev=4,ge.s();case 6:if((he=ge.n()).done){Ke.next=11;break}return Se=he.value,Ke.delegateYield(xe(Se.value,Se.path,Se),"t0",9);case 9:Ke.next=6;break;case 11:Ke.next=16;break;case 13:Ke.prev=13,Ke.t1=Ke.catch(4),ge.e(Ke.t1);case 16:return Ke.prev=16,ge.f(),Ke.finish(16);case 19:case"end":return Ke.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return rg()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return ca().race(rr()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;ar.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!ar.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),ar.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(ar.isContextPatch(s)){a.setContext(s.path,s.value);return}if(ar.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){dr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Cr({},i.value));var a=ar.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}eg()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Cr(Cr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Hi()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return ar.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),ca().resolve(y)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Up){var S;return ca().resolve({spec:a.state,errors:Tt()(S=a.errors).call(S,new Error("We've reached a hard limit of ".concat(Up," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=rr()(w=this.promisedPatches).call(w,function(ae){return ae.value});return ca().all(rr()(E).call(E,function(ae){return ae.then(pp(),pp())})).then(function(){return i.dispatch()})}return k();function k(){a.currentPlugin=s;var ae=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var le=ua(s(ae,a.getLib())),ge;try{for(le.s();!(ge=le.n()).done;){var he=ge.value;$(he)}}catch(xe){le.e(xe)}finally{le.f()}}else{var Se=s(ae,a.getLib());$(Se)}}catch(xe){console.error(xe),$([xi()(Object.create(xe),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function $(ae){ae&&(ae=ar.fullyNormalizeArray(ae),a.updatePatches(ae,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Ln()(i).call(i,a)}}]),t}();function py(t){return new dy(t).dispatch()}var ha={refs:qg,allOf:ly,parameters:uy,properties:fy},hy=o(13218),jp=o.n(hy),Vp=function(r){return String.prototype.toLowerCase.call(r)},Wp=function(r){return r.replace(/[^\w]/gi,"_")};function Hp(t){var r=t.openapi;return r?Jd()(r,"3"):!1}function zm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function df(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||dr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Wp(t.operationId):vy(r,i,{v2OperationIdCompatibilityMode:s})}function vy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,y,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(y="".concat(t.substring(1),"_")).call(y,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Vp(r))).call(i,Wp(t))}function zp(t,r){var i;return Tt()(i="".concat(Vp(r),"-")).call(i,t)}function gy(t,r){return!t||!t.paths?null:yy(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||dr(p)!=="object")return!1;var y=p.operationId,S=df(p,a,s),w=zp(a,s);return[S,w,y].some(function(E){return E&&E===r})})}function yy(t,r){return Gp(t,r,!0)||null}function Gp(t,r,i){if(!t||dr(t)!=="object"||!t.paths||dr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var y=a[s][p];if(!(!y||dr(y)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(S);if(i&&w)return S}}}function $p(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!jp()(p)){var y=p.parameters,S=function($){var ae=p[$];if(!jp()(ae))return"continue";var re=df(ae,s,$);if(re){a[re]?a[re].push(ae):a[re]=[ae];var le=a[re];if(le.length>1)le.forEach(function(Xe,ze){var et;Xe.__originalOperationId=Xe.__originalOperationId||Xe.operationId,Xe.operationId=Tt()(et="".concat(re)).call(et,ze+1)});else if(typeof ae.operationId!="undefined"){var ge=le[0];ge.__originalOperationId=ge.__originalOperationId||ae.operationId,ge.operationId=re}}if($!=="parameters"){var he=[],Se={};for(var xe in r)(xe==="produces"||xe==="consumes"||xe==="security")&&(Se[xe]=r[xe],he.push(Se));if(y&&(Se.parameters=y,he.push(Se)),he.length){var Fe=ua(he),Ke;try{for(Fe.s();!(Ke=Fe.n()).done;){var Ue=Ke.value;for(var $e in Ue)if(!ae[$e])ae[$e]=Ue[$e];else if($e==="parameters"){var Be=ua(Ue[$e]),je;try{var We=function(){var ze=je.value,et=ae[$e].some(function(bt){return bt.name&&bt.name===ze.name||bt.$ref&&bt.$ref===ze.$ref||bt.$$ref&&bt.$$ref===ze.$$ref||bt===ze});et||ae[$e].push(ze)};for(Be.s();!(je=Be.n()).done;)We()}catch(Xe){Be.e(Xe)}finally{Be.f()}}}}catch(Xe){Fe.e(Xe)}finally{Fe.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function Kp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Ip},credentials:s}).then(function(y){return y.body})}}function my(){ha.refs.clearCache()}function Yp(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,k=t.requestInterceptor,$=t.responseInterceptor,ae=t.skipNormalization,re=t.useCircularStructures,le=t.http,ge=t.baseDoc;if(ge=ge||a,le=r||le||af,!i)return Kp(le,{requestInterceptor:k,responseInterceptor:$})(ge).then(he);return he(i);function he(Se){ge&&(ha.refs.docCache[ge]=Se),ha.refs.fetchJSON=Kp(le,{requestInterceptor:k,responseInterceptor:$});var xe=[ha.refs];return typeof E=="function"&&xe.push(ha.parameters),typeof w=="function"&&xe.push(ha.properties),s!=="strict"&&xe.push(ha.allOf),py({spec:Se,context:{baseDoc:ge},plugins:xe,allowMetaPatches:y,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(ae?function(){var Fe=Pc(Wi().mark(function Ke(Ue){return Wi().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ke)}));return function(Ke){return Fe.apply(this,arguments)}}():$p)}}var xy=o(27361),Il=o.n(xy);function by(t,r){return td.apply(this,arguments)}function td(){return td=Pc(Wi().mark(function t(r,i){var a,s,p,y,S,w,E,k,$,ae,re,le,ge=arguments;return Wi().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ge.length>2&&ge[2]!==void 0?ge[2]:{},s=a.returnEntireTree,p=a.baseDoc,y=a.requestInterceptor,S=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,k=a.useCircularStructures,$={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:k},ae=$p({spec:r}),re=ae.spec,Se.next=6,Yp(Cr(Cr({},$),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=Se.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=Il()(le.spec,i)||null),Se.abrupt("return",le);case 9:case"end":return Se.stop()}},t)})),td.apply(this,arguments)}var wy=function(){return null},Sy=function(r){return Array.isArray(r)?r:[r]},pf={mapTagOperations:Cy,makeExecute:Ay};function Ay(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Cr(Cr({spec:t.spec},kc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},y))}}}function Gm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=pf.makeExecute(t),i=pf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function Ey(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=pf.makeExecute(t);return{apis:pf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Cy(t){var r=t.spec,i=t.cb,a=i===void 0?wy:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,S={},w={};return Gp(r,function(E){var k=E.pathName,$=E.method,ae=E.operation,re=ae.tags?Sy(ae.tags):[p];re.forEach(function(le){if(typeof le=="string"){w[le]=w[le]||{};var ge=w[le],he=df(ae,k,$,{v2OperationIdCompatibilityMode:y}),Se=a({spec:r,pathName:k,method:$,operation:ae,operationId:he});if(S[he]){var xe;S[he]+=1,ge[Tt()(xe="".concat(he)).call(xe,S[he])]=Se}else if(typeof ge[he]!="undefined"){var Fe,Ke,Ue=S[he]||1;S[he]=Ue+1,ge[Tt()(Fe="".concat(he)).call(Fe,S[he])]=Se;var $e=ge[he];delete ge[he],ge[Tt()(Ke="".concat(he)).call(Ke,Ue)]=$e}else ge[he]=Se}})}),w}var Jp=o(95683);function Oy(t,r){if(t==null)return{};var i={},a=zd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(Jp(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Ty(t,r){if(t==null)return{};var i=Oy(t,r),a,s;if(ef){var p=ef(t);for(s=0;s<p.length;s++)a=p[s],!(Jp(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var Py=o(68630),Xp=o.n(Py),Iy=o(1469),Fy=o.n(Iy),ky=o(76489);const Ry={body:My,header:Dy,query:By,path:Ny,formData:Ly};function My(t){var r=t.req,i=t.value;r.body=i}function Ly(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Dy(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Ny(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function By(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function hf(t,r){return Ic()(r).call(r,"application/json")?typeof t=="string"?t:rf()(t):t.toString()}function Uy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,y=a.explode,S=a.content;if(S){var w=nr()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(ps(hf(i,w),{escape:!0}));return}var E=Dc({key:a.name,value:i,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function jy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=nr()(a.content)[0];r.query[a.name]=hf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:kc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Vy=["accept","authorization","content-type"];function Wy(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Vy.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=nr()(i.content)[0];r.headers[i.name]=hf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Dc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function Hy(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=dr(a);if(i.content){var p,y=nr()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,hf(a,y));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Dc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var zy=o(50706),Qp=o.n(zy);function Gy(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=$y({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=nr()(w.content||{}),k=S&&E.indexOf(S)>-1;if(a||y){if(S&&k)r.headers["Content-Type"]=S;else if(!S){var $=E[0];$&&(r.headers["Content-Type"]=$,S=$)}}else S&&k&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var ae,re=Ln()(ae=qd()(i.responses)).call(ae,function(ge){var he=mi(ge,2),Se=he[0],xe=he[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Xp()(xe.content)}).reduce(function(ge,he){var Se=mi(he,2),xe=Se[1];return Tt()(ge).call(ge,nr()(xe.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(dr(a)==="object"){var le=(w.content[S]||{}).encoding||{};r.form={},nr()(a).forEach(function(ge){r.form[ge]={value:a[ge],encoding:le[ge]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function $y(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,S=tf()({},r),w=a.authorized,E=w===void 0?{}:w,k=p.security||y.security||[],$=E&&!!nr()(E).length,ae=Il()(y,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!nr()(a).length||!$||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){nr()(re).forEach(function(le){var ge=E[le],he=ae[le];if(!!ge){var Se=ge.value||ge,xe=he.type;if(ge){if(xe==="apiKey")he.in==="query"&&(S.query[he.name]=Se),he.in==="header"&&(S.headers[he.name]=Se),he.in==="cookie"&&(S.cookies[he.name]=Se);else if(xe==="http"){if(/^basic$/i.test(he.scheme)){var Fe,Ke=Se.username||"",Ue=Se.password||"",$e=Qp()(Tt()(Fe="".concat(Ke,":")).call(Fe,Ue));S.headers.Authorization="Basic ".concat($e)}/^bearer$/i.test(he.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(xe==="oauth2"||xe==="openIdConnect"){var Be,je=ge.token||{},We=he["x-tokenName"]||"access_token",Xe=je[We],ze=je.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),S.headers.Authorization=Tt()(Be="".concat(ze," ")).call(Be,Xe)}}}})}),S)}function Ky(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=Yy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var k=mi(a.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var $=mi(i.consumes,1);r.headers["Content-Type"]=$[0]}else a.parameters&&Ln()(w=a.parameters).call(w,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Ln()(E=a.parameters).call(E,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ae,re,le=a.parameters&&Ln()(ae=a.parameters).call(ae,function(he){return he.in==="body"}).length>0,ge=a.parameters&&Ln()(re=a.parameters).call(re,function(he){return he.in==="formData"}).length>0;(le||ge)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Yy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,S=tf()({},r),w=a.authorized,E=w===void 0?{}:w,k=a.specSecurity,$=k===void 0?[]:k,ae=p.security||$,re=E&&!!nr()(E).length,le=y.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!nr()(a).length||!re||!ae||Array.isArray(p.security)&&!p.security.length?r:(ae.forEach(function(ge){nr()(ge).forEach(function(he){var Se=E[he];if(!!Se){var xe=Se.token,Fe=Se.value||Se,Ke=le[he],Ue=Ke.type,$e=Ke["x-tokenName"]||"access_token",Be=xe&&xe[$e],je=xe&&xe.token_type;if(Se){if(Ue==="apiKey"){var We=Ke.in==="query"?"query":"headers";S[We]=S[We]||{},S[We][Ke.name]=Fe}else if(Ue==="basic")if(Fe.header)S.headers.authorization=Fe.header;else{var Xe,ze=Fe.username||"",et=Fe.password||"";Fe.base64=Qp()(Tt()(Xe="".concat(ze,":")).call(Xe,et)),S.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var bt;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,S.headers.authorization=Tt()(bt="".concat(je," ")).call(bt,Be)}}}})}),S)}var Zp=function(r){return Array.isArray(r)?r:[]},Jy=Tp("OperationNotFoundError",function(r,i,a){this.originalError=a,xi()(this,i||{})}),Xy=function(r,i){return Ln()(i).call(i,function(a){return a.name===r})},Qy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return nr()(i).forEach(function(s){nr()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},Zy={buildRequest:_p};function _y(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,y=t.method,S=t.parameters,w=t.securities,E=Ty(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||af;p&&y&&!s&&(s=zp(p,y));var $=Zy.buildRequest(Cr({spec:a,operationId:s,parameters:S,securities:w,http:k},E));return $.body&&(Xp()($.body)||Fy()($.body))&&($.body=rf()($.body)),k($)}function _p(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,k=t.userFetch,$=t.server,ae=t.serverVariables,re=t.http,le=t.parameters,ge=t.parameterBuilders,he=Hp(a);ge||(he?ge=x:ge=Ry);var Se=re&&re.withCredentials?"include":"same-origin",xe={url:"",credentials:Se,headers:{},cookies:{}};S&&(xe.requestInterceptor=S),w&&(xe.responseInterceptor=w),k&&(xe.userFetch=k);var Fe=gy(a,s);if(!Fe)throw new Jy("Operation ".concat(s," not found"));var Ke=Fe.operation,Ue=Ke===void 0?{}:Ke,$e=Fe.method,Be=Fe.pathName;if(xe.url+=qp({spec:a,scheme:y,contextUrl:E,server:$,serverVariables:ae,pathName:Be,method:$e}),!s)return delete xe.cookies,xe;xe.url+=Be,xe.method="".concat($e).toUpperCase(),le=le||{};var je=a.paths[Be]||{};p&&(xe.headers.accept=p);var We=Qy(Tt()(r=Tt()(i=[]).call(i,Zp(Ue.parameters))).call(r,Zp(je.parameters)));We.forEach(function(et){var bt=ge[et.in],Dt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Dt=le),Dt=et&&et.name&&le[et.name],typeof Dt=="undefined"){var Ht;Dt=et&&et.name&&le[Tt()(Ht="".concat(et.in,".")).call(Ht,et.name)]}else if(Xy(et.name,We).length>1){var sr;console.warn(Tt()(sr="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Dt!==null){if(typeof et.default!="undefined"&&typeof Dt=="undefined"&&(Dt=et.default),typeof Dt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(he&&et.schema&&et.schema.type==="object"&&typeof Dt=="string")try{Dt=JSON.parse(Dt)}catch(Lr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:xe,parameter:et,value:Dt,operation:Ue,spec:a})}});var Xe=Cr(Cr({},t),{},{operation:Ue});if(he?xe=Gy(Xe,xe):xe=Ky(Xe,xe),xe.cookies&&nr()(xe.cookies).length){var ze=nr()(xe.cookies).reduce(function(et,bt){var Dt=xe.cookies[bt],Ht=et?"&":"",sr=ky.serialize(bt,Dt);return et+Ht+sr},"");xe.headers.Cookie=ze}return xe.cookies&&delete xe.cookies,dp(xe),xe}var rd=function(r){return r?r.replace(/\W/g,""):null};function qp(t){var r=Hp(t.spec);return r?qy(t):rm(t)}function qy(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,S=y===void 0?{}:y,w=Il()(r,["paths",i,(a||"").toLowerCase(),"servers"])||Il()(r,["paths",i,"servers"])||Il()(r,["servers"]),E="",k=null;if(s&&w&&w.length){var $=rr()(w).call(w,function(le){return le.url});$.indexOf(s)>-1&&(E=s,k=w[$.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ae=mi(w,1);k=ae[0]}if(E.indexOf("{")>-1){var re=tm(E);re.forEach(function(le){if(k.variables&&k.variables[le]){var ge=k.variables[le],he=S[le]||ge.default,Se=new RegExp("{".concat(le,"}"),"g");E=E.replace(Se,he)}})}return em(E,p)}function em(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ro.parse(Ro.resolve(r,t)):Ro.parse(t),a=Ro.parse(r),s=rd(i.protocol)||rd(a.protocol)||"",p=i.host||a.host,y=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+y)}else S=y;return S[S.length-1]==="/"?Hi()(S).call(S,0,-1):S}function tm(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function rm(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Ro.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||y||rd(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",k;if(S&&w){var $;k=Tt()($="".concat(S,"://")).call($,w+E)}else k=E;return k[k.length-1]==="/"?Hi()(k).call(k,0,-1):k}Br.http=af,Br.makeHttp=Qv.bind(null,Br.http),Br.resolve=Yp,Br.resolveSubtree=by,Br.execute=_y,Br.serializeRes=ap,Br.serializeHeaders=sp,Br.clearCache=my,Br.makeApisTagOperation=Ey,Br.buildRequest=_p,Br.helpers={opId:df},Br.getBaseUrl=qp;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);tf()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||tf()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:af,execute:function(r){return this.applyDefaults(),Br.execute(Cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Jd()(i,"http")){var a=Ro.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var $m=Br.helpers;const nm=Br;var im=o(71057),om=o(72940),eh=Object.defineProperty,am=Object.defineProperties,sm=Object.getOwnPropertyDescriptor,lm=Object.getOwnPropertyDescriptors,vf=Object.getOwnPropertySymbols,th=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable,nd=(t,r,i)=>r in t?eh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,on=(t,r)=>{for(var i in r||(r={}))th.call(r,i)&&nd(t,i,r[i]);if(vf)for(var i of vf(r))rh.call(r,i)&&nd(t,i,r[i]);return t},oi=(t,r)=>am(t,lm(r)),id=(t,r)=>{var i={};for(var a in t)th.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&vf)for(var a of vf(t))r.indexOf(a)<0&&rh.call(t,a)&&(i[a]=t[a]);return i},um=(t,r,i,a)=>{for(var s=a>1?void 0:a?sm(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&eh(r,i,s),s},gs=(t,r,i)=>(nd(t,typeof r!="symbol"?r+"":r,i),i),nh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function ih(t){return t.startsWith("//")?"https:"+t:t}const fm={flex:1,display:"flex",flexDirection:"column"};let od=class extends d.Component{constructor(t){super(t);gs(this,"formApi"),gs(this,"setFormApi",(r,i=r.getState())=>{var a=i,{values:s}=a,p=id(a,["values"]);this.formApi=r,setTimeout(()=>{const y=oi(on({},p),{values:oi(on({},s),{query:(0,zr.FU)(s.query||{})})});this.setState({form:y})},0)}),gs(this,"handleChange",r=>{var i=r,{values:a}=i,s=id(i,["values"]);const p=oi(on({},s),{values:oi(on({},a),{query:(0,zr.FU)(a.query||{})})});this.setState({form:p}),(0,zr.Hc)(p)}),gs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),gs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),gs(this,"handleExecute",()=>nh(this,null,function*(){var r,i,a,s,p,y,S;const{store:w,operation:E,onResponse:k}=this.props,{values:$,invalid:ae}=this.state.form;if(this.formApi.submitForm(),ae){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:Hd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,le=re&&re.content&&re.content.active&&re.content.active.name||"";let ge=$.body;if(/json/.test(le))try{ge=JSON.parse(ge)}catch(ze){console.error(ze)}this.setState({loading:!0});const he=this.state.resolvedRawSpec,Se=(0,zt.U2)(he,["paths",E.path,(E.httpVerb||"").toLowerCase(),"servers"])||(0,zt.U2)(he,["paths",E.path,"servers"])||(0,zt.U2)(he,["servers"]);if(!Se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const xe=Se.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),Fe=Date.now(),Ke=!!window.document.documentMode;let Ue,$e=$.auth;if($.auth){const ze=Object.keys($.auth)[0],et=(0,zt.dw)(ze);Ue=oi(on({},he),{components:oi(on({},he.components),{securitySchemes:oi(on({},he.components.securitySchemes),{[et]:oi(on({},he.components.securitySchemes[et]),{type:he.components.securitySchemes[et].type==="openIdConnect"?"oauth2":he.components.securitySchemes[et].type})})})}),$e=oi(on({},$e),{[et]:$e[ze]})}else Ue=on({},he);const Be=w.options.corsProxyUrl;Be&&he.servers&&he.servers.length&&(Ue.servers=he.servers.map(ze=>oi(on({},ze),{url:Be+ih(ze.url)})));const je=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(je&&ge&&ir(je)){const ze=Object.values(ge);ge=ze.length>1?ze:ze[0]}const We=(ze,et)=>bt=>(this.props.store.options.sendXUserAgentInTryIt&&(bt.headers["X-User-Agent"]="Redocly Try it API console"),ze?ze(bt,et):bt),Xe={userFetch:Ke&&o(54098).fetch,server:Be?Be+ih(xe.url):xe.url,serverVariables:this.state.server.variables,spec:Ue,pathName:E.path,method:E.httpVerb,parameters:on(on(on(on({},$.path),$.query),$.header),$.cookie),securities:{authorized:$e},requestBody:ge,requestContentType:je,responseContentType:((p=$.header)==null?void 0:p.Accept)||null,requestInterceptor:We(w.options.requestInterceptor,E)};try{const ze=yield nm.execute(Xe),et=ze==null?void 0:ze.data;et instanceof Blob&&(ir(et.type)&&(ze.fileInfo={rawData:et,fileName:(0,zr.AM)(ze.headers)}),ze.data=yield et.text()),k==null||k({request:Xe,response:ze}),this.setState({response:ze,error:void 0})}catch(ze){ze&&ze.response&&ze.response.data instanceof Blob&&(ze.response.data=yield ze.response.data.text(),k==null||k({request:Xe,response:ze.response})),this.setState({response:void 0,error:ze})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Fe}),(S=(y=w==null?void 0:w.options.events)==null?void 0:y.tryItSent)==null||S.call(y,{eventType:Hd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,zr.ZS)(t.operation.parameters,"path"),cookie:(0,zr.ZS)(t.operation.parameters,"cookie"),header:(0,zr.ZS)(t.operation.parameters,"header"),query:(0,zr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return nh(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:y,loading:S,error:w}=this.state,E=!!(y||w);return d.createElement(dm,{shaking:a,className:r,rootElement:i},d.createElement(Jr.k1,null,d.createElement(F,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Yi.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Yi.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Yi.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Rs,{hasResponse:E,params:p.values,operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,k=y&&Ut.JsonPointer.get(y,r.pointer);let $=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!$||!p.values.auth[$])&&($=void 0),$&&(p.values.auth[$].token!==void 0||p.values.auth[$].client_id!==void 0||p.values.auth[$].client_secret!==void 0)&&(!p.values.auth[$].token||!p.values.auth[$].token.access_token)&&($=void 0),$&&p.values.auth[$].username!=null&&(!p.values.auth[$].username||!p.values.auth[$].password)&&($=void 0);const ae=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(jl,{onChange:this.handleChange,getApi:this.setFormApi,style:oi(on({},fm),{margin:0})},d.createElement(Jr.UQ,{initialActiveIdx:r.security.length&&$?1:0},r.security.length&&d.createElement(gf,{header:(0,Al.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!$&&!!w.auth,success:!!$},re?d.createElement(pm,{field:"auth",validate:cs},le=>d.createElement(im.Q,{Hook:re,props:{server:S,operation:r,onChange:le,OAuth2:Qr}})):d.createElement(Xh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(gf,{header:(0,Al.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(u,{validate:cm,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:a}))||null,ae.length&&d.createElement(gf,{header:(0,Al.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(_l,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Ea,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(iu,{response:t,error:r,time:i})}};od=um([No.Pi],od);function cm(){}function dm(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Yi.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function pm(t){const{fieldApi:r,render:i,userProps:a}=Kn(on({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function gf(t){var r=t,{header:i,error:a,success:s}=r,p=id(r,["header","error","success"]);const y=({toggle:S,expanded:w})=>d.createElement(Jr.h4,{onClick:S,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(Jr.xz,null,d.createElement(Jr.Dx,null,i),d.createElement(Ut.ShelfIcon,{direction:w?"down":"right"})),a&&d.createElement(Ut.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&d.createElement(Ut.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(hm,oi(on({},p),{header:y}))}const hm=(0,Ir.ZP)(Jr.s_)`
|
|
452
|
-
${
|
|
451
|
+
*/var jc=new WeakMap,fg=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),cg=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function dg(t){return jc.get(t)}function pg(t,r){return t.observers.get(r)}function hg(t,r){t.observers.delete(r.callback)}function vg(t,r){r.unobserve()}function gg(t,r){var i=[],a,s=dg(t);if(!s)s=new fg(t),jc.set(t,s);else{var p=pg(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=Gn(t),r){a.callback=r,a.next=null;var y=function(){Vc(a)},S=function(){clearTimeout(a.next),a.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return a.patches=i,a.object=t,a.unobserve=function(){Vc(a),clearTimeout(a.next),hg(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",S),window.removeEventListener("keyup",S),window.removeEventListener("mousedown",S),window.removeEventListener("keydown",S),window.removeEventListener("change",S))},s.observers.set(r,new cg(r,a)),a}function Vc(t,r){r===void 0&&(r=!1);var i=jc.get(t.object);Wc(i.value,t.object,t.patches,"",r),t.patches.length&&wa(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Wc(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Nc(r),y=Nc(t),S=!1,w=!1,E=y.length-1;E>=0;E--){var k=y[E],$=t[k];if(tf(r,k)&&!(r[k]===void 0&&$!==void 0&&Array.isArray(r)===!1)){var ae=r[k];typeof $=="object"&&$!=null&&typeof ae=="object"&&ae!=null?Wc($,ae,i,a+"/"+fo(k),s):$!==ae&&(S=!0,s&&i.push({op:"test",path:a+"/"+fo(k),value:Gn($)}),i.push({op:"replace",path:a+"/"+fo(k),value:Gn(ae)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+fo(k),value:Gn($)}),i.push({op:"remove",path:a+"/"+fo(k)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),S=!0)}if(!(!w&&p.length==y.length))for(var E=0;E<p.length;E++){var k=p[E];!tf(t,k)&&r[k]!==void 0&&i.push({op:"add",path:a+"/"+fo(k),value:Gn(r[k])})}}}function yg(t,r,i){i===void 0&&(i=!1);var a=[];return Wc(t,r,a,"",i),a}const zm=Object.assign({},c,v,{JsonPatchError:mp,deepClone:Gn,escapePathComponent:fo,unescapePathComponent:vp});var mg=o(31312),xg=o.n(mg),bg=o(50361),wg=o.n(bg);const sr={add:Ag,replace:Hc,remove:Eg,merge:Cg,mergeDeep:Og,context:Tg,getIn:kg,applyPatch:Sg,parentPathMatch:Fg,flatten:Pl,fullyNormalizeArray:Rg,normalizeArray:Sp,isPromise:Mg,forEachNew:Pg,forEachNewPrimitive:Ig,isJsonPatch:Cp,isContextPatch:Ng,isPatch:of,isMutation:Op,isAdditiveMutation:nf,isGenerator:Dg,isFunction:Ep,isObject:Uo,isError:Lg};function Sg(t,r,i){if(i=i||{},r=Cr(Cr({},r),{},{path:r.path&&bp(r.path)}),r.op==="merge"){var a=$c(t,r.path);vi()(a,r.value),wa(t,[Hc(r.path,a)])}else if(r.op==="mergeDeep"){var s=$c(t,r.path);for(var p in r.value){var y=r.value[p],S=Array.isArray(y);if(S){var w=s[p]||[];s[p]=Tt()(w).call(w,y)}else if(Uo(y)&&!S){var E=Cr({},s[p]);for(var k in y)if(Object.prototype.hasOwnProperty.call(E,k)){E=xg()(wg()(E),y);break}else vi()(E,Yd({},k,y[k]));s[p]=E}else s[p]=y}}else if(r.op==="add"&&r.path===""&&Uo(r.value)){var $=or()(r.value).reduce(function(he,Se){return he.push({op:"add",path:"/".concat(bp(Se)),value:r.value[Se]}),he},[]);wa(t,$)}else if(r.op==="replace"&&r.path===""){var ae=r,re=ae.value;i.allowMetaPatches&&r.meta&&nf(r)&&(Array.isArray(r.value)||Uo(r.value))&&(re=Cr(Cr({},re),r.meta)),t=re}else if(wa(t,[r]),i.allowMetaPatches&&r.meta&&nf(r)&&(Array.isArray(r.value)||Uo(r.value))){var le=$c(t,r.path),ge=Cr(Cr({},le),r.meta);wa(t,[Hc(r.path,ge)])}return t}function bp(t){return Array.isArray(t)?t.length<1?"":"/".concat(ir()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function Ag(t,r){return{op:"add",path:t,value:r}}function Hc(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Eg(t){return{op:"remove",path:t}}function Cg(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Og(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function Tg(t,r){return{type:"context",path:t,value:r}}function Pg(t,r){try{return wp(t,Gc,r)}catch(i){return i}}function Ig(t,r){try{return wp(t,zc,r)}catch(i){return i}}function wp(t,r,i){var a,s=ir()(a=Mn()(t).call(t,nf)).call(a,function(S){return r(S.value,i,S.path)})||[],p=Pl(s),y=Ap(p);return y}function zc(t,r,i){if(i=i||[],Array.isArray(t))return ir()(t).call(t,function(s,p){return zc(s,r,Tt()(i).call(i,p))});if(Uo(t)){var a;return ir()(a=or()(t)).call(a,function(s){return zc(t[s],r,Tt()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Gc(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Tt()(a).call(a,s))}if(Array.isArray(t)){var p=ir()(t).call(t,function(w,E){return Gc(w,r,Tt()(i).call(i,E))});p&&(a=Tt()(a).call(a,p))}else if(Uo(t)){var y,S=ir()(y=or()(t)).call(y,function(w){return Gc(t[w],r,Tt()(i).call(i,w))});S&&(a=Tt()(a).call(a,S))}return a=Pl(a),a}function Fg(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function kg(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Rg(t){return Ap(Pl(Sp(t)))}function Sp(t){return Array.isArray(t)?t:[t]}function Pl(t){var r;return Tt()(r=[]).apply(r,ma(ir()(t).call(t,function(i){return Array.isArray(i)?Pl(i):i})))}function Ap(t){return Mn()(t).call(t,function(r){return typeof r!="undefined"})}function Uo(t){return t&&hr(t)==="object"}function Mg(t){return Uo(t)&&Ep(t.then)}function Ep(t){return t&&typeof t=="function"}function Lg(t){return t instanceof Error}function Cp(t){if(of(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Dg(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Op(t){return Cp(t)||of(t)&&t.type==="mutation"}function nf(t){return Op(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Ng(t){return of(t)&&t.type==="context"}function of(t){return t&&hr(t)==="object"}function $c(t,r){try{return Ol(t,r)}catch(i){return console.error(i),{}}}var Bg=o(52424),Ug=o.n(Bg),jg=o(54098),Vg=o(9779),Tp=o.n(Vg);function Pp(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var Wg=o(13692),Hg=o.n(Wg),zg=o(47037),Gg=o.n(zg),$g=["properties"],Kg=["properties"],Yg=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Jg=["schema/example","items/example"];function Ip(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return $g.indexOf(r)>-1&&Kg.indexOf(i)===-1||Yg.indexOf(a)>-1||Jg.some(function(s){return a.indexOf(s)>-1})}function Xg(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var k;return a.getContext(Tt()(k=[]).call(k,ma(r),ma(E))).baseDoc}:s,y=i.targetKeys,S=y===void 0?["$ref","$$ref"]:y,w=[];return Hg()(t).forEach(function(){if(Oc()(S).call(S,this.key)&&Gg()(this.node)){var k=this.path,$=Tt()(r).call(r,this.path),ae=Kc(this.node,p(k));w.push(a.replace($,ae))}}),w}function Kc(t,r){var i,a=t.split("#"),s=hi(a,2),p=s[0],y=s[1],S=Bo.resolve(p||"",r||"");return y?Tt()(i="".concat(S,"#")).call(i,y):S}var Fp="application/json, application/yaml",Qg=new RegExp("^([a-z]+://|//)","i"),vs=Pp("JSONRefError",function(r,i,a){this.originalError=a,vi()(this,i||{})}),co={},kp=new(Ug()),Zg=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],_g=function(r){return Zg.some(function(i){return i(r)})},qg={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),y=Wi()(a).call(a,0,-1);if(!(Ip(y)||_g(y))){var S=s.getContext(a),w=S.baseDoc;if(typeof r!="string")return new vs("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var E=Lp(r),k=E[0],$=E[1]||"",ae;try{ae=w||k?Mp(k,w):null}catch(me){return Yc(me,{pointer:$,$ref:r,basePath:ae,fullPath:a})}var re,le;if(oy($,ae,y,s)&&!p.useCircularStructures){var ge=Kc(r,ae);return r===ge?null:sr.replace(a,ge)}if(ae==null?(le=Xc($),re=s.get(le),typeof re=="undefined"&&(re=new vs("Could not resolve reference: ".concat(r),{pointer:$,$ref:r,baseDoc:w,fullPath:a}))):(re=Dp(ae,$),re.__value!=null?re=re.__value:re=re.catch(function(me){throw Yc(me,{pointer:$,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[sr.remove(a),re];var he=Kc(r,ae),Se=sr.replace(y,re,{$$ref:he});if(ae&&ae!==w)return[Se,sr.context(y,{baseDoc:ae})];try{if(!ay(s.state,Se)||p.useCircularStructures)return Se}catch(me){return null}}}},Rp=vi()(qg,{docCache:co,absoluteify:Mp,clearCache:ty,JSONRefError:vs,wrapError:Yc,getDoc:Np,split:Lp,extractFromDoc:Dp,fetchJSON:ry,extract:Jc,jsonPointerToArray:Xc,unescapeJsonPointerToken:Bp});const ey=Rp;function Mp(t,r){if(!Qg.test(t)){if(!r){var i;throw new vs(Tt()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Bo.resolve(r,t)}return t}function Yc(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Tt()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new vs("Could not resolve reference: ".concat(i),r,t)}function Lp(t){return(t+"").split("#")}function Dp(t,r){var i=co[t];if(i&&!sr.isPromise(i))try{var a=Jc(r,i);return vi()(xa().resolve(a),{__value:a})}catch(s){return xa().reject(s)}return Np(t).then(function(s){return Jc(r,s)})}function ty(t){typeof t!="undefined"?delete co[t]:or()(co).forEach(function(r){delete co[r]})}function Np(t){var r=co[t];return r?sr.isPromise(r)?r:xa().resolve(r):(co[t]=Rp.fetchJSON(t).then(function(i){return co[t]=i,i}),co[t])}function ry(t){return(0,jg.fetch)(t,{headers:{Accept:Fp},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return tp().safeLoad(r)})}function Jc(t,r){var i=Xc(t);if(i.length<1)return r;var a=sr.getIn(r,i);if(typeof a=="undefined")throw new vs("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function Xc(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(hr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:ir()(r=t.split("/")).call(r,Bp)}function Bp(t){return typeof t!="string"?t:Tp().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function Up(t){return Tp().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function ny(t){return t.length===0?"":"/".concat(ir()(t).call(t,Up).join("/"))}var iy=function(r){return!r||r==="/"||r==="#"};function Qc(t,r){if(iy(r))return!0;var i=t.charAt(r.length),a=Wi()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function oy(t,r,i,a){var s,p,y=kp.get(a);y||(y={},kp.set(a,y));var S=ny(i),w=Tt()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),k=a.contextTree.get([]).baseDoc;if(r==k&&Qc(E,t))return!0;var $="",ae=i.some(function(re){var le;return $=Tt()(le="".concat($,"/")).call(le,Up(re)),y[$]&&y[$].some(function(ge){return Qc(ge,w)||Qc(w,ge)})});if(ae)return!0;y[E]=Tt()(p=y[E]||[]).call(p,w)}function ay(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return sr.isObject(s)&&(i.indexOf(s)>=0||or()(s).some(function(p){return a(s[p])}))}}var sy=o(41609),ly=o.n(sy);const uy={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var y=Wi()(a).call(a,0,-1);if(!Ip(y)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=a,S}var w=!1,E=p.value;if(y.forEach(function(ae){!E||(E=E[ae])}),E=Cr({},E),!ly()(E)){delete E.allOf;var k=[];if(k.push(s.replace(y,{})),r.forEach(function(ae,re){if(!s.isObject(ae)){if(w)return null;w=!0;var le=new TypeError("Elements in allOf must be objects");return le.fullPath=a,k.push(le)}k.push(s.mergeDeep(y,ae));var ge=Wi()(a).call(a,0,-1),he=Xg(ae,ge,{getBaseUrlForNodePath:function(me){var Fe;return s.getContext(Tt()(Fe=[]).call(Fe,ma(a),[re],ma(me))).baseDoc},specmap:s});k.push.apply(k,ma(he))}),k.push(s.mergeDeep(y,E)),!E.$$ref){var $;k.push(s.remove(Tt()($=[]).call($,y,"$$ref")))}return k}}}}},fy={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=vi()([],r),y=Wi()(a).call(a,0,-1),S=Cr({},sr.getIn(s.spec,y));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch($){var k=new Error($);return k.fullPath=a,k}}),sr.replace(a,p)}return sr.replace(a,r)}},cy={key:"properties",plugin:function(r,i,a,s){var p=Cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(E){var S=new Error(E);return S.fullPath=a,S}var w=sr.replace(a,p);return w}};var dy=function(){function t(r){Ic(this,t),this.root=Zc(r||{})}return Fc(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){af(this.root,a,null);return}var p=i[i.length-1],y=s.children;if(y[p]){af(y[p],a,s);return}y[p]=Zc(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,y=0;y<i.length&&(p=i[y],s=a.children,!!s[p]);y+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:Wi()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&a&&(y[p]=Zc(null,s)),y[p]},this.root)}}]),t}();function Zc(t,r){return af({children:{}},t,r)}function af(t,r,i){return t.value=r||{},t.protoValue=i?Cr(Cr({},i.protoValue),t.value):t.value,or()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=af(s,s.value,t)}),t}var jp=100,py=function(){function t(r){var i=this,a,s;Ic(this,t),vi()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new dy,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:vi()(Object.create(this),sr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Mn()(a=ir()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,sr.isFunction),this.patches.push(sr.add([],this.spec)),this.patches.push(sr.context([],this.context)),this.updatePatches(this.patches)}return Fc(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,y=new Array(p>1?p-1:0),S=1;S<p;S++)y[S-1]=arguments[S];(a=console).log.apply(a,Tt()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):sr.isFunction(i)?y=i:sr.isObject(i)&&(y=S(i)),vi()(y.bind(p),{pluginName:i.name||a,isGenerator:sr.isGenerator(y)});function S(w){var E=function($,ae){return Array.isArray($)?$.every(function(re,le){return re===ae[le]}):!0};return Vi().mark(function k($,ae){var re,le,ge,he,Se,me;return Vi().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:me=function($e,Be,je){var We,Je,ze,et,wt,Dt,Wt,lr,Mr,Or,Kr,Sr,Ur;return Vi().wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(sr.isObject($e)){Xt.next=6;break}if(w.key!==Be[Be.length-1]){Xt.next=4;break}return Xt.next=4,w.plugin($e,w.key,Be,ae);case 4:Xt.next=30;break;case 6:We=Be.length-1,Je=Be[We],ze=Be.indexOf("properties"),et=Je==="properties"&&We===ze,wt=ae.allowMetaPatches&&le[$e.$$ref],Dt=0,Wt=or()($e);case 12:if(!(Dt<Wt.length)){Xt.next=30;break}if(lr=Wt[Dt],Mr=$e[lr],Or=Tt()(Be).call(Be,lr),Kr=sr.isObject(Mr),Sr=$e.$$ref,wt){Xt.next=22;break}if(!Kr){Xt.next=22;break}return ae.allowMetaPatches&&Sr&&(le[Sr]=!0),Xt.delegateYield(me(Mr,Or,je),"t0",22);case 22:if(!(!et&&lr===w.key)){Xt.next=27;break}if(Ur=E(s,Be),!(!s||Ur)){Xt.next=27;break}return Xt.next=27,w.plugin(Mr,lr,Or,ae,je);case 27:Dt++,Xt.next=12;break;case 30:case"end":return Xt.stop()}},re)},re=Vi().mark(me),le={},ge=ya(Mn()($).call($,sr.isAdditiveMutation)),Ke.prev=4,ge.s();case 6:if((he=ge.n()).done){Ke.next=11;break}return Se=he.value,Ke.delegateYield(me(Se.value,Se.path,Se),"t0",9);case 9:Ke.next=6;break;case 11:Ke.next=16;break;case 13:Ke.prev=13,Ke.t1=Ke.catch(4),ge.e(Ke.t1);case 16:return Ke.prev=16,ge.f(),Ke.finish(16);case 19:case"end":return Ke.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return ng()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return xa().race(ir()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;sr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!sr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),sr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(sr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(sr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){hr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=Cr({},i.value));var a=sr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}tg()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=Cr(Cr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),Wi()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return sr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),xa().resolve(y)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>jp){var S;return xa().resolve({spec:a.state,errors:Tt()(S=a.errors).call(S,new Error("We've reached a hard limit of ".concat(jp," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=ir()(w=this.promisedPatches).call(w,function(ae){return ae.value});return xa().all(ir()(E).call(E,function(ae){return ae.then(hp(),hp())})).then(function(){return i.dispatch()})}return k();function k(){a.currentPlugin=s;var ae=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var le=ya(s(ae,a.getLib())),ge;try{for(le.s();!(ge=le.n()).done;){var he=ge.value;$(he)}}catch(me){le.e(me)}finally{le.f()}}else{var Se=s(ae,a.getLib());$(Se)}}catch(me){console.error(me),$([vi()(Object.create(me),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function $(ae){ae&&(ae=sr.fullyNormalizeArray(ae),a.updatePatches(ae,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return Mn()(i).call(i,a)}}]),t}();function hy(t){return new py(t).dispatch()}var Sa={refs:ey,allOf:uy,parameters:fy,properties:cy},vy=o(13218),Vp=o.n(vy),Wp=function(r){return String.prototype.toLowerCase.call(r)},Hp=function(r){return r.replace(/[^\w]/gi,"_")};function zp(t){var r=t.openapi;return r?Xd()(r,"3"):!1}function Gm(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function sf(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||hr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?Hp(t.operationId):gy(r,i,{v2OperationIdCompatibilityMode:s})}function gy(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,y,S=Tt()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Tt()(y="".concat(t.substring(1),"_")).call(y,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Tt()(i="".concat(Wp(r))).call(i,Hp(t))}function Gp(t,r){var i;return Tt()(i="".concat(Wp(r),"-")).call(i,t)}function yy(t,r){return!t||!t.paths?null:my(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||hr(p)!=="object")return!1;var y=p.operationId,S=sf(p,a,s),w=Gp(a,s);return[S,w,y].some(function(E){return E&&E===r})})}function my(t,r){return $p(t,r,!0)||null}function $p(t,r,i){if(!t||hr(t)!=="object"||!t.paths||hr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var y=a[s][p];if(!(!y||hr(y)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(S);if(i&&w)return S}}}function Kp(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!Vp()(p)){var y=p.parameters,S=function($){var ae=p[$];if(!Vp()(ae))return"continue";var re=sf(ae,s,$);if(re){a[re]?a[re].push(ae):a[re]=[ae];var le=a[re];if(le.length>1)le.forEach(function(Je,ze){var et;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Tt()(et="".concat(re)).call(et,ze+1)});else if(typeof ae.operationId!="undefined"){var ge=le[0];ge.__originalOperationId=ge.__originalOperationId||ae.operationId,ge.operationId=re}}if($!=="parameters"){var he=[],Se={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Se[me]=r[me],he.push(Se));if(y&&(Se.parameters=y,he.push(Se)),he.length){var Fe=ya(he),Ke;try{for(Fe.s();!(Ke=Fe.n()).done;){var Ue=Ke.value;for(var $e in Ue)if(!ae[$e])ae[$e]=Ue[$e];else if($e==="parameters"){var Be=ya(Ue[$e]),je;try{var We=function(){var ze=je.value,et=ae[$e].some(function(wt){return wt.name&&wt.name===ze.name||wt.$ref&&wt.$ref===ze.$ref||wt.$$ref&&wt.$$ref===ze.$$ref||wt===ze});et||ae[$e].push(ze)};for(Be.s();!(je=Be.n()).done;)We()}catch(Je){Be.e(Je)}finally{Be.f()}}}}catch(Je){Fe.e(Je)}finally{Fe.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function Yp(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:Fp},credentials:s}).then(function(y){return y.body})}}function xy(){Sa.refs.clearCache()}function Jp(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,k=t.requestInterceptor,$=t.responseInterceptor,ae=t.skipNormalization,re=t.useCircularStructures,le=t.http,ge=t.baseDoc;if(ge=ge||a,le=r||le||ef,!i)return Yp(le,{requestInterceptor:k,responseInterceptor:$})(ge).then(he);return he(i);function he(Se){ge&&(Sa.refs.docCache[ge]=Se),Sa.refs.fetchJSON=Yp(le,{requestInterceptor:k,responseInterceptor:$});var me=[Sa.refs];return typeof E=="function"&&me.push(Sa.parameters),typeof w=="function"&&me.push(Sa.properties),s!=="strict"&&me.push(Sa.allOf),hy({spec:Se,context:{baseDoc:ge},plugins:me,allowMetaPatches:y,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:re}).then(ae?function(){var Fe=Cc(Vi().mark(function Ke(Ue){return Vi().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ke)}));return function(Ke){return Fe.apply(this,arguments)}}():Kp)}}var by=o(27361),Il=o.n(by);function wy(t,r){return _c.apply(this,arguments)}function _c(){return _c=Cc(Vi().mark(function t(r,i){var a,s,p,y,S,w,E,k,$,ae,re,le,ge=arguments;return Vi().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return a=ge.length>2&&ge[2]!==void 0?ge[2]:{},s=a.returnEntireTree,p=a.baseDoc,y=a.requestInterceptor,S=a.responseInterceptor,w=a.parameterMacro,E=a.modelPropertyMacro,k=a.useCircularStructures,$={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:k},ae=Kp({spec:r}),re=ae.spec,Se.next=6,Jp(Cr(Cr({},$),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return le=Se.sent,!s&&Array.isArray(i)&&i.length&&(le.spec=Il()(le.spec,i)||null),Se.abrupt("return",le);case 9:case"end":return Se.stop()}},t)})),_c.apply(this,arguments)}var Sy=function(){return null},Ay=function(r){return Array.isArray(r)?r:[r]},lf={mapTagOperations:Oy,makeExecute:Ey};function Ey(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(Cr(Cr({spec:t.spec},Pc()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},y))}}}function $m(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=lf.makeExecute(t),i=lf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function Cy(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=lf.makeExecute(t);return{apis:lf.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Oy(t){var r=t.spec,i=t.cb,a=i===void 0?Sy:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,S={},w={};return $p(r,function(E){var k=E.pathName,$=E.method,ae=E.operation,re=ae.tags?Ay(ae.tags):[p];re.forEach(function(le){if(typeof le=="string"){w[le]=w[le]||{};var ge=w[le],he=sf(ae,k,$,{v2OperationIdCompatibilityMode:y}),Se=a({spec:r,pathName:k,method:$,operation:ae,operationId:he});if(S[he]){var me;S[he]+=1,ge[Tt()(me="".concat(he)).call(me,S[he])]=Se}else if(typeof ge[he]!="undefined"){var Fe,Ke,Ue=S[he]||1;S[he]=Ue+1,ge[Tt()(Fe="".concat(he)).call(Fe,S[he])]=Se;var $e=ge[he];delete ge[he],ge[Tt()(Ke="".concat(he)).call(Ke,Ue)]=$e}else ge[he]=Se}})}),w}var Xp=o(95683);function Ty(t,r){if(t==null)return{};var i={},a=Gd(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(Xp(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Py(t,r){if(t==null)return{};var i=Ty(t,r),a,s;if(Xu){var p=Xu(t);for(s=0;s<p.length;s++)a=p[s],!(Xp(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var Iy=o(68630),Qp=o.n(Iy),Fy=o(1469),ky=o.n(Fy),Ry=o(76489);const My={body:Ly,header:Ny,query:Uy,path:By,formData:Dy};function Ly(t){var r=t.req,i=t.value;r.body=i}function Dy(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Ny(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function By(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Uy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function uf(t,r){return Oc()(r).call(r,"application/json")?typeof t=="string"?t:Zu()(t):t.toString()}function jy(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,y=a.explode,S=a.content;if(S){var w=or()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(ps(uf(i,w),{escape:!0}));return}var E=Rc({key:a.name,value:i,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Vy(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=or()(a.content)[0];r.query[a.name]=uf(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:Pc()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Wy=["accept","authorization","content-type"];function Hy(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(Wy.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=or()(i.content)[0];r.headers[i.name]=uf(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=Rc({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function zy(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=hr(a);if(i.content){var p,y=or()(i.content)[0];r.headers.Cookie=Tt()(p="".concat(i.name,"=")).call(p,uf(a,y));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+Rc({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Gy=o(50706),Zp=o.n(Gy);function $y(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=Ky({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=or()(w.content||{}),k=S&&E.indexOf(S)>-1;if(a||y){if(S&&k)r.headers["Content-Type"]=S;else if(!S){var $=E[0];$&&(r.headers["Content-Type"]=$,S=$)}}else S&&k&&(r.headers["Content-Type"]=S);if(!t.responseContentType&&i.responses){var ae,re=Mn()(ae=ep()(i.responses)).call(ae,function(ge){var he=hi(ge,2),Se=he[0],me=he[1],Fe=parseInt(Se,10);return Fe>=200&&Fe<300&&Qp()(me.content)}).reduce(function(ge,he){var Se=hi(he,2),me=Se[1];return Tt()(ge).call(ge,or()(me.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(hr(a)==="object"){var le=(w.content[S]||{}).encoding||{};r.form={},or()(a).forEach(function(ge){r.form[ge]={value:a[ge],encoding:le[ge]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function Ky(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,S=Qu()({},r),w=a.authorized,E=w===void 0?{}:w,k=p.security||y.security||[],$=E&&!!or()(E).length,ae=Il()(y,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!$||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){or()(re).forEach(function(le){var ge=E[le],he=ae[le];if(!!ge){var Se=ge.value||ge,me=he.type;if(ge){if(me==="apiKey")he.in==="query"&&(S.query[he.name]=Se),he.in==="header"&&(S.headers[he.name]=Se),he.in==="cookie"&&(S.cookies[he.name]=Se);else if(me==="http"){if(/^basic$/i.test(he.scheme)){var Fe,Ke=Se.username||"",Ue=Se.password||"",$e=Zp()(Tt()(Fe="".concat(Ke,":")).call(Fe,Ue));S.headers.Authorization="Basic ".concat($e)}/^bearer$/i.test(he.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(me==="oauth2"||me==="openIdConnect"){var Be,je=ge.token||{},We=he["x-tokenName"]||"access_token",Je=je[We],ze=je.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),S.headers.Authorization=Tt()(Be="".concat(ze," ")).call(Be,Je)}}}})}),S)}function Yy(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=Jy({request:r,securities:s,operation:a,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var k=hi(a.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var $=hi(i.consumes,1);r.headers["Content-Type"]=$[0]}else a.parameters&&Mn()(w=a.parameters).call(w,function(he){return he.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&Mn()(E=a.parameters).call(E,function(he){return he.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ae,re,le=a.parameters&&Mn()(ae=a.parameters).call(ae,function(he){return he.in==="body"}).length>0,ge=a.parameters&&Mn()(re=a.parameters).call(re,function(he){return he.in==="formData"}).length>0;(le||ge)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function Jy(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,S=Qu()({},r),w=a.authorized,E=w===void 0?{}:w,k=a.specSecurity,$=k===void 0?[]:k,ae=p.security||$,re=E&&!!or()(E).length,le=y.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!or()(a).length||!re||!ae||Array.isArray(p.security)&&!p.security.length?r:(ae.forEach(function(ge){or()(ge).forEach(function(he){var Se=E[he];if(!!Se){var me=Se.token,Fe=Se.value||Se,Ke=le[he],Ue=Ke.type,$e=Ke["x-tokenName"]||"access_token",Be=me&&me[$e],je=me&&me.token_type;if(Se){if(Ue==="apiKey"){var We=Ke.in==="query"?"query":"headers";S[We]=S[We]||{},S[We][Ke.name]=Fe}else if(Ue==="basic")if(Fe.header)S.headers.authorization=Fe.header;else{var Je,ze=Fe.username||"",et=Fe.password||"";Fe.base64=Zp()(Tt()(Je="".concat(ze,":")).call(Je,et)),S.headers.authorization="Basic ".concat(Fe.base64)}else if(Ue==="oauth2"&&Be){var wt;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,S.headers.authorization=Tt()(wt="".concat(je," ")).call(wt,Be)}}}})}),S)}var _p=function(r){return Array.isArray(r)?r:[]},Xy=Pp("OperationNotFoundError",function(r,i,a){this.originalError=a,vi()(this,i||{})}),Qy=function(r,i){return Mn()(i).call(i,function(a){return a.name===r})},Zy=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return or()(i).forEach(function(s){or()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},_y={buildRequest:qp};function qy(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,y=t.method,S=t.parameters,w=t.securities,E=Py(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||ef;p&&y&&!s&&(s=Gp(p,y));var $=_y.buildRequest(Cr({spec:a,operationId:s,parameters:S,securities:w,http:k},E));return $.body&&(Qp()($.body)||ky()($.body))&&($.body=Zu()($.body)),k($)}function qp(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,k=t.userFetch,$=t.server,ae=t.serverVariables,re=t.http,le=t.parameters,ge=t.parameterBuilders,he=zp(a);ge||(he?ge=x:ge=My);var Se=re&&re.withCredentials?"include":"same-origin",me={url:"",credentials:Se,headers:{},cookies:{}};S&&(me.requestInterceptor=S),w&&(me.responseInterceptor=w),k&&(me.userFetch=k);var Fe=yy(a,s);if(!Fe)throw new Xy("Operation ".concat(s," not found"));var Ke=Fe.operation,Ue=Ke===void 0?{}:Ke,$e=Fe.method,Be=Fe.pathName;if(me.url+=eh({spec:a,scheme:y,contextUrl:E,server:$,serverVariables:ae,pathName:Be,method:$e}),!s)return delete me.cookies,me;me.url+=Be,me.method="".concat($e).toUpperCase(),le=le||{};var je=a.paths[Be]||{};p&&(me.headers.accept=p);var We=Zy(Tt()(r=Tt()(i=[]).call(i,_p(Ue.parameters))).call(r,_p(je.parameters)));We.forEach(function(et){var wt=ge[et.in],Dt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Dt=le),Dt=et&&et.name&&le[et.name],typeof Dt=="undefined"){var Wt;Dt=et&&et.name&&le[Tt()(Wt="".concat(et.in,".")).call(Wt,et.name)]}else if(Qy(et.name,We).length>1){var lr;console.warn(Tt()(lr="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(lr,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Dt!==null){if(typeof et.default!="undefined"&&typeof Dt=="undefined"&&(Dt=et.default),typeof Dt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(he&&et.schema&&et.schema.type==="object"&&typeof Dt=="string")try{Dt=JSON.parse(Dt)}catch(Mr){throw new Error("Could not parse object parameter value string as JSON")}wt&&wt({req:me,parameter:et,value:Dt,operation:Ue,spec:a})}});var Je=Cr(Cr({},t),{},{operation:Ue});if(he?me=$y(Je,me):me=Yy(Je,me),me.cookies&&or()(me.cookies).length){var ze=or()(me.cookies).reduce(function(et,wt){var Dt=me.cookies[wt],Wt=et?"&":"",lr=Ry.serialize(wt,Dt);return et+Wt+lr},"");me.headers.Cookie=ze}return me.cookies&&delete me.cookies,pp(me),me}var qc=function(r){return r?r.replace(/\W/g,""):null};function eh(t){var r=zp(t.spec);return r?em(t):nm(t)}function em(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,S=y===void 0?{}:y,w=Il()(r,["paths",i,(a||"").toLowerCase(),"servers"])||Il()(r,["paths",i,"servers"])||Il()(r,["servers"]),E="",k=null;if(s&&w&&w.length){var $=ir()(w).call(w,function(le){return le.url});$.indexOf(s)>-1&&(E=s,k=w[$.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ae=hi(w,1);k=ae[0]}if(E.indexOf("{")>-1){var re=rm(E);re.forEach(function(le){if(k.variables&&k.variables[le]){var ge=k.variables[le],he=S[le]||ge.default,Se=new RegExp("{".concat(le,"}"),"g");E=E.replace(Se,he)}})}return tm(E,p)}function tm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Bo.parse(Bo.resolve(r,t)):Bo.parse(t),a=Bo.parse(r),s=qc(i.protocol)||qc(a.protocol)||"",p=i.host||a.host,y=i.pathname||"",S;if(s&&p){var w;S=Tt()(w="".concat(s,"://")).call(w,p+y)}else S=y;return S[S.length-1]==="/"?Wi()(S).call(S,0,-1):S}function rm(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function nm(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Bo.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||y||qc(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",k;if(S&&w){var $;k=Tt()($="".concat(S,"://")).call($,w+E)}else k=E;return k[k.length-1]==="/"?Wi()(k).call(k,0,-1):k}Br.http=ef,Br.makeHttp=Zv.bind(null,Br.http),Br.resolve=Jp,Br.resolveSubtree=wy,Br.execute=qy,Br.serializeRes=sp,Br.serializeHeaders=lp,Br.clearCache=xy,Br.makeApisTagOperation=Cy,Br.buildRequest=qp,Br.helpers={opId:sf},Br.getBaseUrl=eh;function Br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof Br))return new Br(i);Qu()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||Qu()(r,Br.makeApisTagOperation(r)),r});return a.client=this,a}Br.prototype={http:ef,execute:function(r){return this.applyDefaults(),Br.execute(Cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Br.resolve(Cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Xd()(i,"http")){var a=Bo.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Km=Br.helpers;const im=Br;var om=o(71057),am=o(72940),th=Object.defineProperty,sm=Object.defineProperties,lm=Object.getOwnPropertyDescriptor,um=Object.getOwnPropertyDescriptors,ff=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,nh=Object.prototype.propertyIsEnumerable,ed=(t,r,i)=>r in t?th(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,nn=(t,r)=>{for(var i in r||(r={}))rh.call(r,i)&&ed(t,i,r[i]);if(ff)for(var i of ff(r))nh.call(r,i)&&ed(t,i,r[i]);return t},Zn=(t,r)=>sm(t,um(r)),td=(t,r)=>{var i={};for(var a in t)rh.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&ff)for(var a of ff(t))r.indexOf(a)<0&&nh.call(t,a)&&(i[a]=t[a]);return i},fm=(t,r,i,a)=>{for(var s=a>1?void 0:a?lm(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&th(r,i,s),s},gs=(t,r,i)=>(ed(t,typeof r!="symbol"?r+"":r,i),i),ih=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},y=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);S((i=i.apply(t,r)).next())});function oh(t){return t.startsWith("//")?"https:"+t:t}const cm={flex:1,display:"flex",flexDirection:"column"};let rd=class extends d.Component{constructor(t){super(t);gs(this,"formApi"),gs(this,"setFormApi",(r,i=r.getState())=>{var a=i,{values:s}=a,p=td(a,["values"]);this.formApi=r,setTimeout(()=>{const y=Zn(nn({},p),{values:Zn(nn({},s),{query:(0,Vr.FU)(s.query||{})})});this.setState({form:y})},0)}),gs(this,"handleChange",r=>{var i=r,{values:a}=i,s=td(i,["values"]);const p=Zn(nn({},s),{values:Zn(nn({},a),{query:(0,Vr.FU)(a.query||{})})});this.setState({form:p}),(0,Vr.Hc)(p)}),gs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),gs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),gs(this,"handleExecute",()=>ih(this,null,function*(){var r,i,a,s,p,y,S;const{store:w,operation:E,onResponse:k}=this.props,{values:$,invalid:ae}=this.state.form;if(this.formApi.submitForm(),ae){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:zd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const re=this.props.operation.requestBody,le=re&&re.content&&re.content.active&&re.content.active.name||"";let ge=$.body;if(/json/.test(le))try{ge=JSON.parse(ge)}catch(ze){console.error(ze)}this.setState({loading:!0});const he=this.state.resolvedRawSpec,Se=(0,zt.U2)(he,["paths",E.path,(E.httpVerb||"").toLowerCase(),"servers"])||(0,zt.U2)(he,["paths",E.path,"servers"])||(0,zt.U2)(he,["servers"]);if(!Se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const me=Se.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),Fe=Date.now(),Ke=!!window.document.documentMode;let Ue,$e=$.auth;if($.auth){const ze=Object.keys($.auth)[0],et=(0,zt.dw)(ze);Ue=Zn(nn({},he),{components:Zn(nn({},he.components),{securitySchemes:Zn(nn({},he.components.securitySchemes),{[et]:Zn(nn({},he.components.securitySchemes[et]),{type:he.components.securitySchemes[et].type==="openIdConnect"?"oauth2":he.components.securitySchemes[et].type})})})}),$e=Zn(nn({},$e),{[et]:$e[ze]})}else Ue=nn({},he);const Be=w.options.corsProxyUrl;Be&&he.servers&&he.servers.length&&(Ue.servers=he.servers.map(ze=>Zn(nn({},ze),{url:Be+oh(ze.url)})));const je=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(je&&ge&&as(je)){const ze=Object.values(ge);ge=ze.length>1?ze:ze[0]}const We=(ze,et)=>wt=>(this.props.store.options.sendXUserAgentInTryIt&&(wt.headers["X-User-Agent"]="Redocly Try it API console"),ze?ze(wt,et):wt),Je={userFetch:Ke&&o(54098).fetch,server:Be?Be+oh(me.url):me.url,serverVariables:this.state.server.variables,spec:Ue,pathName:E.path,method:E.httpVerb,parameters:nn(nn(nn(nn({},$.path),$.query),$.header),$.cookie),securities:{authorized:$e},requestBody:ge,requestContentType:je,responseContentType:((p=$.header)==null?void 0:p.Accept)||null,requestInterceptor:We(w.options.requestInterceptor,E)};try{const ze=yield im.execute(Je),et=ze==null?void 0:ze.data;et instanceof Blob&&(as(et.type)&&(ze.fileInfo={rawData:et,fileName:(0,Vr.AM)(ze.headers)}),ze.data=yield et.text()),k==null||k({request:Je,response:ze}),this.setState({response:ze,error:void 0})}catch(ze){ze&&ze.response&&ze.response.data instanceof Blob&&(ze.response.data=yield ze.response.data.text(),k==null||k({request:Je,response:ze.response})),this.setState({response:void 0,error:ze})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Fe}),(S=(y=w==null?void 0:w.options.events)==null?void 0:y.tryItSent)==null||S.call(y,{eventType:zd.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description})}})),this.state={form:{values:{path:(0,Vr.ZS)(t.operation.parameters,"path"),cookie:(0,Vr.ZS)(t.operation.parameters,"cookie"),header:(0,Vr.ZS)(t.operation.parameters,"header"),query:(0,Vr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return ih(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:y,loading:S,error:w}=this.state,E=!!(y||w);return d.createElement(pm,{shaking:a,className:r,rootElement:i},d.createElement(vn.k1,null,d.createElement(U,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Ki.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Ki.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Ki.RE,{hidden:s!==1},this.renderResponse()),d.createElement(yo,{hasResponse:E,params:p.values,operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,k=y&&Gt.JsonPointer.get(y,r.pointer);let $=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!$||!p.values.auth[$])&&($=void 0),$&&(p.values.auth[$].token!==void 0||p.values.auth[$].client_id!==void 0||p.values.auth[$].client_secret!==void 0)&&(!p.values.auth[$].token||!p.values.auth[$].token.access_token)&&($=void 0),$&&p.values.auth[$].username!=null&&(!p.values.auth[$].username||!p.values.auth[$].password)&&($=void 0);const ae=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(jl,{onChange:this.handleChange,getApi:this.setFormApi,style:Zn(nn({},cm),{margin:0})},d.createElement(vn.UQ,{initialActiveIdx:r.security.length&&$?1:0},r.security.length&&d.createElement(cf,{header:(0,Al.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!$&&!!w.auth,success:!!$},re?d.createElement(hm,{field:"auth",validate:cs},le=>d.createElement(om.Q,{Hook:re,props:{server:S,operation:r,onChange:le,OAuth2:Xr}})):d.createElement(Qh,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(cf,{header:(0,Al.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(l,{validate:dm,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:a}))||null,ae.length&&d.createElement(cf,{header:(0,Al.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Xn,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(Is,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Bs,{response:t,error:r,time:i})}};rd=fm([Wo.Pi],rd);function dm(){}function pm(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Ki.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function hm(t){const{fieldApi:r,render:i,userProps:a}=Kn(nn({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}function cf(t){var r=t,{header:i,error:a,success:s}=r,p=td(r,["header","error","success"]);const y=({toggle:S,expanded:w})=>d.createElement(vn.h4,{onClick:S,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(vn.xz,null,d.createElement(vn.Dx,null,i),d.createElement(Gt.ShelfIcon,{direction:w?"down":"right"})),a&&d.createElement(Gt.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&d.createElement(Gt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(vm,Zn(nn({},p),{header:y}))}const vm=(0,In.ZP)(vn.s_)`
|
|
452
|
+
${vn.h4} {
|
|
453
453
|
color: white;
|
|
454
454
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
455
455
|
padding: 10px;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
${
|
|
458
|
+
${Gt.ShelfIcon} path {
|
|
459
459
|
fill: white;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
${
|
|
462
|
+
${am.N} {
|
|
463
463
|
padding: 15px 10px;
|
|
464
464
|
background-color: #3e4c59;
|
|
465
465
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
466
466
|
border-top: 0;
|
|
467
467
|
}
|
|
468
|
-
`},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var A=o.call(arguments,1),g,L=function(){if(this instanceof g){var H=b.apply(this,A.concat(o.call(arguments)));return Object(H)===H?H:this}else return b.apply(d,A.concat(o.call(arguments)))},N=Math.max(0,b.length-A.length),B=[],j=0;j<N;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var _=function(){};_.prototype=b.prototype,g.prototype=new _,_.prototype=null}return g}},58612:(h,I,o)=>{"use strict";var c=o(17648);h.exports=Function.prototype.bind||c},40210:(h,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(ve){}},A=Object.getOwnPropertyDescriptor;if(A)try{A({},"")}catch(ye){A=null}var g=function(){throw new d},L=A?function(){try{return arguments.callee,g}catch(ye){try{return A(arguments,"callee").get}catch(ve){return g}}}():g,N=o(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":N?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!N?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!N?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?B(""[Symbol.iterator]()):c,"%Symbol%":N?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":_,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},R=function ye(ve){var de;if(ve==="%AsyncFunction%")de=b("async function () {}");else if(ve==="%GeneratorFunction%")de=b("function* () {}");else if(ve==="%AsyncGeneratorFunction%")de=b("async function* () {}");else if(ve==="%AsyncGenerator%"){var ue=ye("%AsyncGeneratorFunction%");ue&&(de=ue.prototype)}else if(ve==="%AsyncIteratorPrototype%"){var oe=ye("%AsyncGenerator%");oe&&(de=B(oe.prototype))}return H[ve]=de,de},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(58612),C=o(17642),V=M.call(Function.call,Array.prototype.concat),J=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,te=function(ve){var de=Q(ve,0,1),ue=Q(ve,-1);if(de==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&de!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return q(ve,Y,function(De,Ve,Le,ke){oe[oe.length]=Le?q(ke,fe,"$1"):Ve||De}),oe},ne=function(ve,de){var ue=ve,oe;if(C(X,ue)&&(oe=X[ue],ue="%"+oe[0]+"%"),C(H,ue)){var De=H[ue];if(De===j&&(De=R(ue)),typeof De=="undefined"&&!de)throw new d("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:oe,name:ue,value:De}}throw new v("intrinsic "+ve+" does not exist!")};h.exports=function(ve,de){if(typeof ve!="string"||ve.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=te(ve),oe=ue.length>0?ue[0]:"",De=ne("%"+oe+"%",de),Ve=De.name,Le=De.value,ke=!1,rt=De.alias;rt&&(oe=rt[0],J(ue,V([0,1],rt)));for(var Ze=1,Qe=!0;Ze<ue.length;Ze+=1){var ut=ue[Ze],pt=Q(ut,0,1),yt=Q(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||yt==='"'||yt==="'"||yt==="`")&&pt!==yt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Qe)&&(ke=!0),oe+="."+ut,Ve="%"+oe+"%",C(H,Ve))Le=H[Ve];else if(Le!=null){if(!(ut in Le)){if(!de)throw new d("base intrinsic for "+ve+" exists, but the property is not available.");return}if(A&&Ze+1>=ue.length){var qe=A(Le,ut);Qe=!!qe,Qe&&"get"in qe&&!("originalValue"in qe.get)?Le=qe.get:Le=Le[ut]}else Qe=C(Le,ut),Le=Le[ut];Qe&&!ke&&(H[Ve]=Le)}}return Le}},41405:(h,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;o[c]=x;for(c in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var d=Object.getOwnPropertySymbols(o);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(o,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(o,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,o)=>{"use strict";var c=o(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,d){var b,A,g=d*8-x-1,L=(1<<g)-1,N=L>>1,B=-7,j=v?d-1:0,_=v?-1:1,H=o[c+j];for(j+=_,b=H&(1<<-B)-1,H>>=-B,B+=g;B>0;b=b*256+o[c+j],j+=_,B-=8);for(A=b&(1<<-B)-1,b>>=-B,B+=x;B>0;A=A*256+o[c+j],j+=_,B-=8);if(b===0)b=1-N;else{if(b===L)return A?NaN:(H?-1:1)*(1/0);A=A+Math.pow(2,x),b=b-N}return(H?-1:1)*A*Math.pow(2,b-x)},I.write=function(o,c,v,x,d,b){var A,g,L,N=b*8-d-1,B=(1<<N)-1,j=B>>1,_=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=x?0:b-1,R=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,A=B):(A=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-A))<1&&(A--,L*=2),A+j>=1?c+=_/L:c+=_*Math.pow(2,1-j),c*L>=2&&(A++,L/=2),A+j>=B?(g=0,A=B):A+j>=1?(g=(c*L-1)*Math.pow(2,d),A=A+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),A=0));d>=8;o[v+H]=g&255,H+=R,g/=256,d-=8);for(A=A<<d|g,N+=d;N>0;o[v+H]=A&255,H+=R,A/=256,N-=8);o[v+H-R]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,o)=>{"use strict";var c=o(51294);h.exports=c},51294:(h,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=o(53899),h.exports.Schema=o(82409),h.exports.FAILSAFE_SCHEMA=o(75322),h.exports.JSON_SCHEMA=o(65796),h.exports.CORE_SCHEMA=o(17318),h.exports.DEFAULT_SAFE_SCHEMA=o(5972),h.exports.DEFAULT_FULL_SCHEMA=o(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=o(14884),h.exports.MINIMAL_SCHEMA=o(75322),h.exports.SAFE_SCHEMA=o(5972),h.exports.DEFAULT_SCHEMA=o(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function o(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,A){var g,L,N,B;if(A)for(B=Object.keys(A),g=0,L=B.length;g<L;g+=1)N=B[g],b[N]=A[N];return b}function x(b,A){var g="",L;for(L=0;L<A;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=o,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),d=o(5972),b=Object.prototype.toString,A=Object.prototype.hasOwnProperty,g=9,L=10,N=13,B=32,j=33,_=34,H=35,R=37,X=38,M=39,C=42,V=44,J=45,q=58,Q=61,Y=62,fe=63,te=64,ne=91,ye=93,ve=96,de=123,ue=124,oe=125,De={};De[0]="\\0",De[7]="\\a",De[8]="\\b",De[9]="\\t",De[10]="\\n",De[11]="\\v",De[12]="\\f",De[13]="\\r",De[27]="\\e",De[34]='\\"',De[92]="\\\\",De[133]="\\N",De[160]="\\_",De[8232]="\\L",De[8233]="\\P";var Ve=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Le(D,ee){var ce,Oe,Pe,Te,Ge,He,it;if(ee===null)return{};for(ce={},Oe=Object.keys(ee),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)Ge=Oe[Pe],He=String(ee[Ge]),Ge.slice(0,2)==="!!"&&(Ge="tag:yaml.org,2002:"+Ge.slice(2)),it=D.compiledTypeMap.fallback[Ge],it&&A.call(it.styleAliases,He)&&(He=it.styleAliases[He]),ce[Ge]=He;return ce}function ke(D){var ee,ce,Oe;if(ee=D.toString(16).toUpperCase(),D<=255)ce="x",Oe=2;else if(D<=65535)ce="u",Oe=4;else if(D<=4294967295)ce="U",Oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ce+c.repeat("0",Oe-ee.length)+ee}function rt(D){this.schema=D.schema||x,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=Le(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ze(D,ee){for(var ce=c.repeat(" ",ee),Oe=0,Pe=-1,Te="",Ge,He=D.length;Oe<He;)Pe=D.indexOf(`
|
|
468
|
+
`},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var A=o.call(arguments,1),g,L=function(){if(this instanceof g){var H=b.apply(this,A.concat(o.call(arguments)));return Object(H)===H?H:this}else return b.apply(d,A.concat(o.call(arguments)))},N=Math.max(0,b.length-A.length),B=[],j=0;j<N;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var _=function(){};_.prototype=b.prototype,g.prototype=new _,_.prototype=null}return g}},58612:(h,I,o)=>{"use strict";var c=o(17648);h.exports=Function.prototype.bind||c},40210:(h,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(ve){}},A=Object.getOwnPropertyDescriptor;if(A)try{A({},"")}catch(ye){A=null}var g=function(){throw new d},L=A?function(){try{return arguments.callee,g}catch(ye){try{return A(arguments,"callee").get}catch(ve){return g}}}():g,N=o(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},_=typeof Uint8Array=="undefined"?c:B(Uint8Array),H={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":N?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!N?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!N?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N?B(""[Symbol.iterator]()):c,"%Symbol%":N?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":_,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},R=function ye(ve){var de;if(ve==="%AsyncFunction%")de=b("async function () {}");else if(ve==="%GeneratorFunction%")de=b("function* () {}");else if(ve==="%AsyncGeneratorFunction%")de=b("async function* () {}");else if(ve==="%AsyncGenerator%"){var ue=ye("%AsyncGeneratorFunction%");ue&&(de=ue.prototype)}else if(ve==="%AsyncIteratorPrototype%"){var oe=ye("%AsyncGenerator%");oe&&(de=B(oe.prototype))}return H[ve]=de,de},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=o(58612),C=o(17642),V=M.call(Function.call,Array.prototype.concat),J=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,te=function(ve){var de=Q(ve,0,1),ue=Q(ve,-1);if(de==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&de!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return q(ve,Y,function(De,Ve,Le,ke){oe[oe.length]=Le?q(ke,fe,"$1"):Ve||De}),oe},ne=function(ve,de){var ue=ve,oe;if(C(X,ue)&&(oe=X[ue],ue="%"+oe[0]+"%"),C(H,ue)){var De=H[ue];if(De===j&&(De=R(ue)),typeof De=="undefined"&&!de)throw new d("intrinsic "+ve+" exists, but is not available. Please file an issue!");return{alias:oe,name:ue,value:De}}throw new v("intrinsic "+ve+" does not exist!")};h.exports=function(ve,de){if(typeof ve!="string"||ve.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=te(ve),oe=ue.length>0?ue[0]:"",De=ne("%"+oe+"%",de),Ve=De.name,Le=De.value,ke=!1,rt=De.alias;rt&&(oe=rt[0],J(ue,V([0,1],rt)));for(var Qe=1,Xe=!0;Qe<ue.length;Qe+=1){var ut=ue[Qe],pt=Q(ut,0,1),yt=Q(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||yt==='"'||yt==="'"||yt==="`")&&pt!==yt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Xe)&&(ke=!0),oe+="."+ut,Ve="%"+oe+"%",C(H,Ve))Le=H[Ve];else if(Le!=null){if(!(ut in Le)){if(!de)throw new d("base intrinsic for "+ve+" exists, but the property is not available.");return}if(A&&Qe+1>=ue.length){var qe=A(Le,ut);Xe=!!qe,Xe&&"get"in qe&&!("originalValue"in qe.get)?Le=qe.get:Le=Le[ut]}else Xe=C(Le,ut),Le=Le[ut];Xe&&!ke&&(H[Ve]=Le)}}return Le}},41405:(h,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;o[c]=x;for(c in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var d=Object.getOwnPropertySymbols(o);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(o,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(o,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,o)=>{"use strict";var c=o(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,d){var b,A,g=d*8-x-1,L=(1<<g)-1,N=L>>1,B=-7,j=v?d-1:0,_=v?-1:1,H=o[c+j];for(j+=_,b=H&(1<<-B)-1,H>>=-B,B+=g;B>0;b=b*256+o[c+j],j+=_,B-=8);for(A=b&(1<<-B)-1,b>>=-B,B+=x;B>0;A=A*256+o[c+j],j+=_,B-=8);if(b===0)b=1-N;else{if(b===L)return A?NaN:(H?-1:1)*(1/0);A=A+Math.pow(2,x),b=b-N}return(H?-1:1)*A*Math.pow(2,b-x)},I.write=function(o,c,v,x,d,b){var A,g,L,N=b*8-d-1,B=(1<<N)-1,j=B>>1,_=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=x?0:b-1,R=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,A=B):(A=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-A))<1&&(A--,L*=2),A+j>=1?c+=_/L:c+=_*Math.pow(2,1-j),c*L>=2&&(A++,L/=2),A+j>=B?(g=0,A=B):A+j>=1?(g=(c*L-1)*Math.pow(2,d),A=A+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),A=0));d>=8;o[v+H]=g&255,H+=R,g/=256,d-=8);for(A=A<<d|g,N+=d;N>0;o[v+H]=A&255,H+=R,A/=256,N-=8);o[v+H-R]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,o)=>{"use strict";var c=o(51294);h.exports=c},51294:(h,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=o(53899),h.exports.Schema=o(82409),h.exports.FAILSAFE_SCHEMA=o(75322),h.exports.JSON_SCHEMA=o(65796),h.exports.CORE_SCHEMA=o(17318),h.exports.DEFAULT_SAFE_SCHEMA=o(5972),h.exports.DEFAULT_FULL_SCHEMA=o(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=o(14884),h.exports.MINIMAL_SCHEMA=o(75322),h.exports.SAFE_SCHEMA=o(5972),h.exports.DEFAULT_SCHEMA=o(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function o(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,A){var g,L,N,B;if(A)for(B=Object.keys(A),g=0,L=B.length;g<L;g+=1)N=B[g],b[N]=A[N];return b}function x(b,A){var g="",L;for(L=0;L<A;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=o,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),d=o(5972),b=Object.prototype.toString,A=Object.prototype.hasOwnProperty,g=9,L=10,N=13,B=32,j=33,_=34,H=35,R=37,X=38,M=39,C=42,V=44,J=45,q=58,Q=61,Y=62,fe=63,te=64,ne=91,ye=93,ve=96,de=123,ue=124,oe=125,De={};De[0]="\\0",De[7]="\\a",De[8]="\\b",De[9]="\\t",De[10]="\\n",De[11]="\\v",De[12]="\\f",De[13]="\\r",De[27]="\\e",De[34]='\\"',De[92]="\\\\",De[133]="\\N",De[160]="\\_",De[8232]="\\L",De[8233]="\\P";var Ve=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Le(D,ee){var ce,Oe,Pe,Te,Ge,He,it;if(ee===null)return{};for(ce={},Oe=Object.keys(ee),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)Ge=Oe[Pe],He=String(ee[Ge]),Ge.slice(0,2)==="!!"&&(Ge="tag:yaml.org,2002:"+Ge.slice(2)),it=D.compiledTypeMap.fallback[Ge],it&&A.call(it.styleAliases,He)&&(He=it.styleAliases[He]),ce[Ge]=He;return ce}function ke(D){var ee,ce,Oe;if(ee=D.toString(16).toUpperCase(),D<=255)ce="x",Oe=2;else if(D<=65535)ce="u",Oe=4;else if(D<=4294967295)ce="U",Oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ce+c.repeat("0",Oe-ee.length)+ee}function rt(D){this.schema=D.schema||x,this.indent=Math.max(1,D.indent||2),this.noArrayIndent=D.noArrayIndent||!1,this.skipInvalid=D.skipInvalid||!1,this.flowLevel=c.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=Le(this.schema,D.styles||null),this.sortKeys=D.sortKeys||!1,this.lineWidth=D.lineWidth||80,this.noRefs=D.noRefs||!1,this.noCompatMode=D.noCompatMode||!1,this.condenseFlow=D.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(D,ee){for(var ce=c.repeat(" ",ee),Oe=0,Pe=-1,Te="",Ge,He=D.length;Oe<He;)Pe=D.indexOf(`
|
|
469
469
|
`,Oe),Pe===-1?(Ge=D.slice(Oe),Oe=He):(Ge=D.slice(Oe,Pe+1),Oe=Pe+1),Ge.length&&Ge!==`
|
|
470
|
-
`&&(Te+=ce),Te+=Ge;return Te}function
|
|
471
|
-
`+c.repeat(" ",D.indent*ee)}function ut(D,ee){var ce,Oe,Pe;for(ce=0,Oe=D.implicitTypes.length;ce<Oe;ce+=1)if(Pe=D.implicitTypes[ce],Pe.resolve(ee))return!0;return!1}function pt(D){return D===B||D===g}function yt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function qe(D){return yt(D)&&!pt(D)&&D!==65279&&D!==N&&D!==L}function lt(D,ee){return yt(D)&&D!==65279&&D!==V&&D!==ne&&D!==ye&&D!==de&&D!==oe&&D!==q&&(D!==H||ee&&qe(ee))}function vt(D){return yt(D)&&D!==65279&&!pt(D)&&D!==J&&D!==fe&&D!==q&&D!==V&&D!==ne&&D!==ye&&D!==de&&D!==oe&&D!==H&&D!==X&&D!==C&&D!==j&&D!==ue&&D!==Q&&D!==Y&&D!==M&&D!==_&&D!==R&&D!==te&&D!==ve}function mt(D){var ee=/^\n* /;return ee.test(D)}var dt=1,kt=2,It=3,
|
|
470
|
+
`&&(Te+=ce),Te+=Ge;return Te}function Xe(D,ee){return`
|
|
471
|
+
`+c.repeat(" ",D.indent*ee)}function ut(D,ee){var ce,Oe,Pe;for(ce=0,Oe=D.implicitTypes.length;ce<Oe;ce+=1)if(Pe=D.implicitTypes[ce],Pe.resolve(ee))return!0;return!1}function pt(D){return D===B||D===g}function yt(D){return 32<=D&&D<=126||161<=D&&D<=55295&&D!==8232&&D!==8233||57344<=D&&D<=65533&&D!==65279||65536<=D&&D<=1114111}function qe(D){return yt(D)&&!pt(D)&&D!==65279&&D!==N&&D!==L}function lt(D,ee){return yt(D)&&D!==65279&&D!==V&&D!==ne&&D!==ye&&D!==de&&D!==oe&&D!==q&&(D!==H||ee&&qe(ee))}function vt(D){return yt(D)&&D!==65279&&!pt(D)&&D!==J&&D!==fe&&D!==q&&D!==V&&D!==ne&&D!==ye&&D!==de&&D!==oe&&D!==H&&D!==X&&D!==C&&D!==j&&D!==ue&&D!==Q&&D!==Y&&D!==M&&D!==_&&D!==R&&D!==te&&D!==ve}function mt(D){var ee=/^\n* /;return ee.test(D)}var dt=1,kt=2,It=3,At=4,jt=5;function Nt(D,ee,ce,Oe,Pe){var Te,Ge,He,it=!1,gt=!1,Ct=Oe!==-1,Jt=-1,Ft=vt(D.charCodeAt(0))&&!pt(D.charCodeAt(D.length-1));if(ee)for(Te=0;Te<D.length;Te++){if(Ge=D.charCodeAt(Te),!yt(Ge))return jt;He=Te>0?D.charCodeAt(Te-1):null,Ft=Ft&<(Ge,He)}else{for(Te=0;Te<D.length;Te++){if(Ge=D.charCodeAt(Te),Ge===L)it=!0,Ct&&(gt=gt||Te-Jt-1>Oe&&D[Jt+1]!==" ",Jt=Te);else if(!yt(Ge))return jt;He=Te>0?D.charCodeAt(Te-1):null,Ft=Ft&<(Ge,He)}gt=gt||Ct&&Te-Jt-1>Oe&&D[Jt+1]!==" "}return!it&&!gt?Ft&&!Pe(D)?dt:kt:ce>9&&mt(D)?jt:gt?At:It}function $t(D,ee,ce,Oe){D.dump=function(){if(ee.length===0)return"''";if(!D.noCompatMode&&Ve.indexOf(ee)!==-1)return"'"+ee+"'";var Pe=D.indent*Math.max(1,ce),Te=D.lineWidth===-1?-1:Math.max(Math.min(D.lineWidth,40),D.lineWidth-Pe),Ge=Oe||D.flowLevel>-1&&ce>=D.flowLevel;function He(it){return ut(D,it)}switch(Nt(ee,Ge,D.indent,Te,He)){case dt:return ee;case kt:return"'"+ee.replace(/'/g,"''")+"'";case It:return"|"+St(ee,D.indent)+Mt(Qe(ee,Pe));case At:return">"+St(ee,D.indent)+Mt(Qe(pe(ee,Te),Pe));case jt:return'"'+K(ee,Te)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(D,ee){var ce=mt(D)?String(ee):"",Oe=D[D.length-1]===`
|
|
472
472
|
`,Pe=Oe&&(D[D.length-2]===`
|
|
473
473
|
`||D===`
|
|
474
474
|
`),Te=Pe?"+":Oe?"":"-";return ce+Te+`
|
|
@@ -479,27 +479,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
479
479
|
`:"")+G(it,ee),Pe=Te}return Oe}function G(D,ee){if(D===""||D[0]===" ")return D;for(var ce=/ [^ ]/g,Oe,Pe=0,Te,Ge=0,He=0,it="";Oe=ce.exec(D);)He=Oe.index,He-Pe>ee&&(Te=Ge>Pe?Ge:He,it+=`
|
|
480
480
|
`+D.slice(Pe,Te),Pe=Te+1),Ge=He;return it+=`
|
|
481
481
|
`,D.length-Pe>ee&&Ge>Pe?it+=D.slice(Pe,Ge)+`
|
|
482
|
-
`+D.slice(Ge+1):it+=D.slice(Pe),it.slice(1)}function K(D){for(var ee="",ce,Oe,Pe,Te=0;Te<D.length;Te++){if(ce=D.charCodeAt(Te),ce>=55296&&ce<=56319&&(Oe=D.charCodeAt(Te+1),Oe>=56320&&Oe<=57343)){ee+=ke((ce-55296)*1024+Oe-56320+65536),Te++;continue}Pe=De[ce],ee+=!Pe&&yt(ce)?D[Te]:Pe||ke(ce)}return ee}function we(D,ee,ce){var Oe="",Pe=D.tag,Te,Ge;for(Te=0,Ge=ce.length;Te<Ge;Te+=1)Ie(D,ee,ce[Te],!1,!1)&&(Te!==0&&(Oe+=","+(D.condenseFlow?"":" ")),Oe+=D.dump);D.tag=Pe,D.dump="["+Oe+"]"}function Re(D,ee,ce,Oe){var Pe="",Te=D.tag,Ge,He;for(Ge=0,He=ce.length;Ge<He;Ge+=1)Ie(D,ee+1,ce[Ge],!0,!0)&&((!Oe||Ge!==0)&&(Pe+=
|
|
482
|
+
`+D.slice(Ge+1):it+=D.slice(Pe),it.slice(1)}function K(D){for(var ee="",ce,Oe,Pe,Te=0;Te<D.length;Te++){if(ce=D.charCodeAt(Te),ce>=55296&&ce<=56319&&(Oe=D.charCodeAt(Te+1),Oe>=56320&&Oe<=57343)){ee+=ke((ce-55296)*1024+Oe-56320+65536),Te++;continue}Pe=De[ce],ee+=!Pe&&yt(ce)?D[Te]:Pe||ke(ce)}return ee}function we(D,ee,ce){var Oe="",Pe=D.tag,Te,Ge;for(Te=0,Ge=ce.length;Te<Ge;Te+=1)Ie(D,ee,ce[Te],!1,!1)&&(Te!==0&&(Oe+=","+(D.condenseFlow?"":" ")),Oe+=D.dump);D.tag=Pe,D.dump="["+Oe+"]"}function Re(D,ee,ce,Oe){var Pe="",Te=D.tag,Ge,He;for(Ge=0,He=ce.length;Ge<He;Ge+=1)Ie(D,ee+1,ce[Ge],!0,!0)&&((!Oe||Ge!==0)&&(Pe+=Xe(D,ee)),D.dump&&L===D.dump.charCodeAt(0)?Pe+="-":Pe+="- ",Pe+=D.dump);D.tag=Te,D.dump=Pe||"[]"}function be(D,ee,ce){var Oe="",Pe=D.tag,Te=Object.keys(ce),Ge,He,it,gt,Ct;for(Ge=0,He=Te.length;Ge<He;Ge+=1)Ct="",Ge!==0&&(Ct+=", "),D.condenseFlow&&(Ct+='"'),it=Te[Ge],gt=ce[it],!!Ie(D,ee,it,!1,!1)&&(D.dump.length>1024&&(Ct+="? "),Ct+=D.dump+(D.condenseFlow?'"':"")+":"+(D.condenseFlow?"":" "),!!Ie(D,ee,gt,!1,!1)&&(Ct+=D.dump,Oe+=Ct));D.tag=Pe,D.dump="{"+Oe+"}"}function Ae(D,ee,ce,Oe){var Pe="",Te=D.tag,Ge=Object.keys(ce),He,it,gt,Ct,Jt,Ft;if(D.sortKeys===!0)Ge.sort();else if(typeof D.sortKeys=="function")Ge.sort(D.sortKeys);else if(D.sortKeys)throw new v("sortKeys must be a boolean or a function");for(He=0,it=Ge.length;He<it;He+=1)Ft="",(!Oe||He!==0)&&(Ft+=Xe(D,ee)),gt=Ge[He],Ct=ce[gt],!!Ie(D,ee+1,gt,!0,!0,!0)&&(Jt=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,Jt&&(D.dump&&L===D.dump.charCodeAt(0)?Ft+="?":Ft+="? "),Ft+=D.dump,Jt&&(Ft+=Xe(D,ee)),!!Ie(D,ee+1,Ct,!0,Jt)&&(D.dump&&L===D.dump.charCodeAt(0)?Ft+=":":Ft+=": ",Ft+=D.dump,Pe+=Ft));D.tag=Te,D.dump=Pe||"{}"}function T(D,ee,ce){var Oe,Pe,Te,Ge,He,it;for(Pe=ce?D.explicitTypes:D.implicitTypes,Te=0,Ge=Pe.length;Te<Ge;Te+=1)if(He=Pe[Te],(He.instanceOf||He.predicate)&&(!He.instanceOf||typeof ee=="object"&&ee instanceof He.instanceOf)&&(!He.predicate||He.predicate(ee))){if(D.tag=ce?He.tag:"?",He.represent){if(it=D.styleMap[He.tag]||He.defaultStyle,b.call(He.represent)==="[object Function]")Oe=He.represent(ee,it);else if(A.call(He.represent,it))Oe=He.represent[it](ee,it);else throw new v("!<"+He.tag+'> tag resolver accepts not "'+it+'" style');D.dump=Oe}return!0}return!1}function Ie(D,ee,ce,Oe,Pe,Te){D.tag=null,D.dump=ce,T(D,ce,!1)||T(D,ce,!0);var Ge=b.call(D.dump);Oe&&(Oe=D.flowLevel<0||D.flowLevel>ee);var He=Ge==="[object Object]"||Ge==="[object Array]",it,gt;if(He&&(it=D.duplicates.indexOf(ce),gt=it!==-1),(D.tag!==null&&D.tag!=="?"||gt||D.indent!==2&&ee>0)&&(Pe=!1),gt&&D.usedDuplicates[it])D.dump="*ref_"+it;else{if(He&>&&!D.usedDuplicates[it]&&(D.usedDuplicates[it]=!0),Ge==="[object Object]")Oe&&Object.keys(D.dump).length!==0?(Ae(D,ee,D.dump,Pe),gt&&(D.dump="&ref_"+it+D.dump)):(be(D,ee,D.dump),gt&&(D.dump="&ref_"+it+" "+D.dump));else if(Ge==="[object Array]"){var Ct=D.noArrayIndent&&ee>0?ee-1:ee;Oe&&D.dump.length!==0?(Re(D,Ct,D.dump,Pe),gt&&(D.dump="&ref_"+it+D.dump)):(we(D,Ct,D.dump),gt&&(D.dump="&ref_"+it+" "+D.dump))}else if(Ge==="[object String]")D.tag!=="?"&&$t(D,D.dump,ee,Te);else{if(D.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ge)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function W(D,ee){var ce=[],Oe=[],Pe,Te;for(O(D,ce,Oe),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)ee.duplicates.push(ce[Oe[Pe]]);ee.usedDuplicates=new Array(Te)}function O(D,ee,ce){var Oe,Pe,Te;if(D!==null&&typeof D=="object")if(Pe=ee.indexOf(D),Pe!==-1)ce.indexOf(Pe)===-1&&ce.push(Pe);else if(ee.push(D),Array.isArray(D))for(Pe=0,Te=D.length;Pe<Te;Pe+=1)O(D[Pe],ee,ce);else for(Oe=Object.keys(D),Pe=0,Te=Oe.length;Pe<Te;Pe+=1)O(D[Oe[Pe]],ee,ce)}function P(D,ee){ee=ee||{};var ce=new rt(ee);return ce.noRefs||W(D,ce),Ie(ce,0,D,!0,!0)?ce.dump+`
|
|
483
483
|
`:""}function ie(D,ee){return P(D,c.extend({schema:d},ee))}h.exports.dump=P,h.exports.safeDump=ie},14884:h=>{"use strict";function I(o,c){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(77334),d=o(5972),b=o(19321),A=Object.prototype.hasOwnProperty,g=1,L=2,N=3,B=4,j=1,_=2,H=3,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(T){return Object.prototype.toString.call(T)}function q(T){return T===10||T===13}function Q(T){return T===9||T===32}function Y(T){return T===9||T===32||T===10||T===13}function fe(T){return T===44||T===91||T===93||T===123||T===125}function te(T){var Ie;return 48<=T&&T<=57?T-48:(Ie=T|32,97<=Ie&&Ie<=102?Ie-97+10:-1)}function ne(T){return T===120?2:T===117?4:T===85?8:0}function ye(T){return 48<=T&&T<=57?T-48:-1}function ve(T){return T===48?"\0":T===97?"\x07":T===98?"\b":T===116||T===9?" ":T===110?`
|
|
484
|
-
`:T===118?"\v":T===102?"\f":T===114?"\r":T===101?"":T===32?" ":T===34?'"':T===47?"/":T===92?"\\":T===78?"\x85":T===95?"\xA0":T===76?"\u2028":T===80?"\u2029":""}function de(T){return T<=65535?String.fromCharCode(T):String.fromCharCode((T-65536>>10)+55296,(T-65536&1023)+56320)}for(var ue=new Array(256),oe=new Array(256),De=0;De<256;De++)ue[De]=ve(De)?1:0,oe[De]=ve(De);function Ve(T,Ie){this.input=T,this.filename=Ie.filename||null,this.schema=Ie.schema||b,this.onWarning=Ie.onWarning||null,this.legacy=Ie.legacy||!1,this.json=Ie.json||!1,this.listener=Ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=T.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Le(T,Ie){return new v(Ie,new x(T.filename,T.input,T.position,T.line,T.position-T.lineStart))}function ke(T,Ie){throw Le(T,Ie)}function rt(T,Ie){T.onWarning&&T.onWarning.call(null,Le(T,Ie))}var
|
|
485
|
-
`,Ie-1))}function mt(T,Ie,W){var O,P,ie,D,ee,ce,Oe,Pe,Te=T.kind,Ge=T.result,He;if(He=T.input.charCodeAt(T.position),Y(He)||fe(He)||He===35||He===38||He===42||He===33||He===124||He===62||He===39||He===34||He===37||He===64||He===96||(He===63||He===45)&&(P=T.input.charCodeAt(T.position+1),Y(P)||W&&fe(P)))return!1;for(T.kind="scalar",T.result="",ie=D=T.position,ee=!1;He!==0;){if(He===58){if(P=T.input.charCodeAt(T.position+1),Y(P)||W&&fe(P))break}else if(He===35){if(O=T.input.charCodeAt(T.position-1),Y(O))break}else{if(T.position===T.lineStart&<(T)||W&&fe(He))break;if(q(He))if(ce=T.line,Oe=T.lineStart,Pe=T.lineIndent,qe(T,!1,-1),T.lineIndent>=Ie){ee=!0,He=T.input.charCodeAt(T.position);continue}else{T.position=D,T.line=ce,T.lineStart=Oe,T.lineIndent=Pe;break}}ee&&(
|
|
484
|
+
`:T===118?"\v":T===102?"\f":T===114?"\r":T===101?"":T===32?" ":T===34?'"':T===47?"/":T===92?"\\":T===78?"\x85":T===95?"\xA0":T===76?"\u2028":T===80?"\u2029":""}function de(T){return T<=65535?String.fromCharCode(T):String.fromCharCode((T-65536>>10)+55296,(T-65536&1023)+56320)}for(var ue=new Array(256),oe=new Array(256),De=0;De<256;De++)ue[De]=ve(De)?1:0,oe[De]=ve(De);function Ve(T,Ie){this.input=T,this.filename=Ie.filename||null,this.schema=Ie.schema||b,this.onWarning=Ie.onWarning||null,this.legacy=Ie.legacy||!1,this.json=Ie.json||!1,this.listener=Ie.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=T.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Le(T,Ie){return new v(Ie,new x(T.filename,T.input,T.position,T.line,T.position-T.lineStart))}function ke(T,Ie){throw Le(T,Ie)}function rt(T,Ie){T.onWarning&&T.onWarning.call(null,Le(T,Ie))}var Qe={YAML:function(Ie,W,O){var P,ie,D;Ie.version!==null&&ke(Ie,"duplication of %YAML directive"),O.length!==1&&ke(Ie,"YAML directive accepts exactly one argument"),P=/^([0-9]+)\.([0-9]+)$/.exec(O[0]),P===null&&ke(Ie,"ill-formed argument of the YAML directive"),ie=parseInt(P[1],10),D=parseInt(P[2],10),ie!==1&&ke(Ie,"unacceptable YAML version of the document"),Ie.version=O[0],Ie.checkLineBreaks=D<2,D!==1&&D!==2&&rt(Ie,"unsupported YAML version of the document")},TAG:function(Ie,W,O){var P,ie;O.length!==2&&ke(Ie,"TAG directive accepts exactly two arguments"),P=O[0],ie=O[1],C.test(P)||ke(Ie,"ill-formed tag handle (first argument) of the TAG directive"),A.call(Ie.tagMap,P)&&ke(Ie,'there is a previously declared suffix for "'+P+'" tag handle'),V.test(ie)||ke(Ie,"ill-formed tag prefix (second argument) of the TAG directive"),Ie.tagMap[P]=ie}};function Xe(T,Ie,W,O){var P,ie,D,ee;if(Ie<W){if(ee=T.input.slice(Ie,W),O)for(P=0,ie=ee.length;P<ie;P+=1)D=ee.charCodeAt(P),D===9||32<=D&&D<=1114111||ke(T,"expected valid JSON character");else R.test(ee)&&ke(T,"the stream contains non-printable characters");T.result+=ee}}function ut(T,Ie,W,O){var P,ie,D,ee;for(c.isObject(W)||ke(T,"cannot merge mappings; the provided source object is unacceptable"),P=Object.keys(W),D=0,ee=P.length;D<ee;D+=1)ie=P[D],A.call(Ie,ie)||(Ie[ie]=W[ie],O[ie]=!0)}function pt(T,Ie,W,O,P,ie,D,ee){var ce,Oe;if(Array.isArray(P))for(P=Array.prototype.slice.call(P),ce=0,Oe=P.length;ce<Oe;ce+=1)Array.isArray(P[ce])&&ke(T,"nested arrays are not supported inside keys"),typeof P=="object"&&J(P[ce])==="[object Object]"&&(P[ce]="[object Object]");if(typeof P=="object"&&J(P)==="[object Object]"&&(P="[object Object]"),P=String(P),Ie===null&&(Ie={}),O==="tag:yaml.org,2002:merge")if(Array.isArray(ie))for(ce=0,Oe=ie.length;ce<Oe;ce+=1)ut(T,Ie,ie[ce],W);else ut(T,Ie,ie,W);else!T.json&&!A.call(W,P)&&A.call(Ie,P)&&(T.line=D||T.line,T.position=ee||T.position,ke(T,"duplicated mapping key")),Ie[P]=ie,delete W[P];return Ie}function yt(T){var Ie;Ie=T.input.charCodeAt(T.position),Ie===10?T.position++:Ie===13?(T.position++,T.input.charCodeAt(T.position)===10&&T.position++):ke(T,"a line break is expected"),T.line+=1,T.lineStart=T.position}function qe(T,Ie,W){for(var O=0,P=T.input.charCodeAt(T.position);P!==0;){for(;Q(P);)P=T.input.charCodeAt(++T.position);if(Ie&&P===35)do P=T.input.charCodeAt(++T.position);while(P!==10&&P!==13&&P!==0);if(q(P))for(yt(T),P=T.input.charCodeAt(T.position),O++,T.lineIndent=0;P===32;)T.lineIndent++,P=T.input.charCodeAt(++T.position);else break}return W!==-1&&O!==0&&T.lineIndent<W&&rt(T,"deficient indentation"),O}function lt(T){var Ie=T.position,W;return W=T.input.charCodeAt(Ie),!!((W===45||W===46)&&W===T.input.charCodeAt(Ie+1)&&W===T.input.charCodeAt(Ie+2)&&(Ie+=3,W=T.input.charCodeAt(Ie),W===0||Y(W)))}function vt(T,Ie){Ie===1?T.result+=" ":Ie>1&&(T.result+=c.repeat(`
|
|
485
|
+
`,Ie-1))}function mt(T,Ie,W){var O,P,ie,D,ee,ce,Oe,Pe,Te=T.kind,Ge=T.result,He;if(He=T.input.charCodeAt(T.position),Y(He)||fe(He)||He===35||He===38||He===42||He===33||He===124||He===62||He===39||He===34||He===37||He===64||He===96||(He===63||He===45)&&(P=T.input.charCodeAt(T.position+1),Y(P)||W&&fe(P)))return!1;for(T.kind="scalar",T.result="",ie=D=T.position,ee=!1;He!==0;){if(He===58){if(P=T.input.charCodeAt(T.position+1),Y(P)||W&&fe(P))break}else if(He===35){if(O=T.input.charCodeAt(T.position-1),Y(O))break}else{if(T.position===T.lineStart&<(T)||W&&fe(He))break;if(q(He))if(ce=T.line,Oe=T.lineStart,Pe=T.lineIndent,qe(T,!1,-1),T.lineIndent>=Ie){ee=!0,He=T.input.charCodeAt(T.position);continue}else{T.position=D,T.line=ce,T.lineStart=Oe,T.lineIndent=Pe;break}}ee&&(Xe(T,ie,D,!1),vt(T,T.line-ce),ie=D=T.position,ee=!1),Q(He)||(D=T.position+1),He=T.input.charCodeAt(++T.position)}return Xe(T,ie,D,!1),T.result?!0:(T.kind=Te,T.result=Ge,!1)}function dt(T,Ie){var W,O,P;if(W=T.input.charCodeAt(T.position),W!==39)return!1;for(T.kind="scalar",T.result="",T.position++,O=P=T.position;(W=T.input.charCodeAt(T.position))!==0;)if(W===39)if(Xe(T,O,T.position,!0),W=T.input.charCodeAt(++T.position),W===39)O=T.position,T.position++,P=T.position;else return!0;else q(W)?(Xe(T,O,P,!0),vt(T,qe(T,!1,Ie)),O=P=T.position):T.position===T.lineStart&<(T)?ke(T,"unexpected end of the document within a single quoted scalar"):(T.position++,P=T.position);ke(T,"unexpected end of the stream within a single quoted scalar")}function kt(T,Ie){var W,O,P,ie,D,ee;if(ee=T.input.charCodeAt(T.position),ee!==34)return!1;for(T.kind="scalar",T.result="",T.position++,W=O=T.position;(ee=T.input.charCodeAt(T.position))!==0;){if(ee===34)return Xe(T,W,T.position,!0),T.position++,!0;if(ee===92){if(Xe(T,W,T.position,!0),ee=T.input.charCodeAt(++T.position),q(ee))qe(T,!1,Ie);else if(ee<256&&ue[ee])T.result+=oe[ee],T.position++;else if((D=ne(ee))>0){for(P=D,ie=0;P>0;P--)ee=T.input.charCodeAt(++T.position),(D=te(ee))>=0?ie=(ie<<4)+D:ke(T,"expected hexadecimal character");T.result+=de(ie),T.position++}else ke(T,"unknown escape sequence");W=O=T.position}else q(ee)?(Xe(T,W,O,!0),vt(T,qe(T,!1,Ie)),W=O=T.position):T.position===T.lineStart&<(T)?ke(T,"unexpected end of the document within a double quoted scalar"):(T.position++,O=T.position)}ke(T,"unexpected end of the stream within a double quoted scalar")}function It(T,Ie){var W=!0,O,P=T.tag,ie,D=T.anchor,ee,ce,Oe,Pe,Te,Ge={},He,it,gt,Ct;if(Ct=T.input.charCodeAt(T.position),Ct===91)ce=93,Te=!1,ie=[];else if(Ct===123)ce=125,Te=!0,ie={};else return!1;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ie),Ct=T.input.charCodeAt(++T.position);Ct!==0;){if(qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===ce)return T.position++,T.tag=P,T.anchor=D,T.kind=Te?"mapping":"sequence",T.result=ie,!0;W||ke(T,"missed comma between flow collection entries"),it=He=gt=null,Oe=Pe=!1,Ct===63&&(ee=T.input.charCodeAt(T.position+1),Y(ee)&&(Oe=Pe=!0,T.position++,qe(T,!0,Ie))),O=T.line,pe(T,Ie,g,!1,!0),it=T.tag,He=T.result,qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),(Pe||T.line===O)&&Ct===58&&(Oe=!0,Ct=T.input.charCodeAt(++T.position),qe(T,!0,Ie),pe(T,Ie,g,!1,!0),gt=T.result),Te?pt(T,ie,Ge,it,He,gt):Oe?ie.push(pt(T,null,Ge,it,He,gt)):ie.push(He),qe(T,!0,Ie),Ct=T.input.charCodeAt(T.position),Ct===44?(W=!0,Ct=T.input.charCodeAt(++T.position)):W=!1}ke(T,"unexpected end of the stream within a flow collection")}function At(T,Ie){var W,O,P=j,ie=!1,D=!1,ee=Ie,ce=0,Oe=!1,Pe,Te;if(Te=T.input.charCodeAt(T.position),Te===124)O=!1;else if(Te===62)O=!0;else return!1;for(T.kind="scalar",T.result="";Te!==0;)if(Te=T.input.charCodeAt(++T.position),Te===43||Te===45)j===P?P=Te===43?H:_:ke(T,"repeat of a chomping mode identifier");else if((Pe=ye(Te))>=0)Pe===0?ke(T,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?ke(T,"repeat of an indentation width identifier"):(ee=Ie+Pe-1,D=!0);else break;if(Q(Te)){do Te=T.input.charCodeAt(++T.position);while(Q(Te));if(Te===35)do Te=T.input.charCodeAt(++T.position);while(!q(Te)&&Te!==0)}for(;Te!==0;){for(yt(T),T.lineIndent=0,Te=T.input.charCodeAt(T.position);(!D||T.lineIndent<ee)&&Te===32;)T.lineIndent++,Te=T.input.charCodeAt(++T.position);if(!D&&T.lineIndent>ee&&(ee=T.lineIndent),q(Te)){ce++;continue}if(T.lineIndent<ee){P===H?T.result+=c.repeat(`
|
|
486
486
|
`,ie?1+ce:ce):P===j&&ie&&(T.result+=`
|
|
487
487
|
`);break}for(O?Q(Te)?(Oe=!0,T.result+=c.repeat(`
|
|
488
488
|
`,ie?1+ce:ce)):Oe?(Oe=!1,T.result+=c.repeat(`
|
|
489
489
|
`,ce+1)):ce===0?ie&&(T.result+=" "):T.result+=c.repeat(`
|
|
490
490
|
`,ce):T.result+=c.repeat(`
|
|
491
|
-
`,ie?1+ce:ce),ie=!0,D=!0,ce=0,W=T.position;!q(Te)&&Te!==0;)Te=T.input.charCodeAt(++T.position);
|
|
491
|
+
`,ie?1+ce:ce),ie=!0,D=!0,ce=0,W=T.position;!q(Te)&&Te!==0;)Te=T.input.charCodeAt(++T.position);Xe(T,W,T.position,!1)}return!0}function jt(T,Ie){var W,O=T.tag,P=T.anchor,ie=[],D,ee=!1,ce;for(T.anchor!==null&&(T.anchorMap[T.anchor]=ie),ce=T.input.charCodeAt(T.position);ce!==0&&!(ce!==45||(D=T.input.charCodeAt(T.position+1),!Y(D)));){if(ee=!0,T.position++,qe(T,!0,-1)&&T.lineIndent<=Ie){ie.push(null),ce=T.input.charCodeAt(T.position);continue}if(W=T.line,pe(T,Ie,N,!1,!0),ie.push(T.result),qe(T,!0,-1),ce=T.input.charCodeAt(T.position),(T.line===W||T.lineIndent>Ie)&&ce!==0)ke(T,"bad indentation of a sequence entry");else if(T.lineIndent<Ie)break}return ee?(T.tag=O,T.anchor=P,T.kind="sequence",T.result=ie,!0):!1}function Nt(T,Ie,W){var O,P,ie,D,ee=T.tag,ce=T.anchor,Oe={},Pe={},Te=null,Ge=null,He=null,it=!1,gt=!1,Ct;for(T.anchor!==null&&(T.anchorMap[T.anchor]=Oe),Ct=T.input.charCodeAt(T.position);Ct!==0;){if(O=T.input.charCodeAt(T.position+1),ie=T.line,D=T.position,(Ct===63||Ct===58)&&Y(O))Ct===63?(it&&(pt(T,Oe,Pe,Te,Ge,null),Te=Ge=He=null),gt=!0,it=!0,P=!0):it?(it=!1,P=!0):ke(T,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),T.position+=1,Ct=O;else if(pe(T,W,L,!1,!0))if(T.line===ie){for(Ct=T.input.charCodeAt(T.position);Q(Ct);)Ct=T.input.charCodeAt(++T.position);if(Ct===58)Ct=T.input.charCodeAt(++T.position),Y(Ct)||ke(T,"a whitespace character is expected after the key-value separator within a block mapping"),it&&(pt(T,Oe,Pe,Te,Ge,null),Te=Ge=He=null),gt=!0,it=!1,P=!1,Te=T.tag,Ge=T.result;else if(gt)ke(T,"can not read an implicit mapping pair; a colon is missed");else return T.tag=ee,T.anchor=ce,!0}else if(gt)ke(T,"can not read a block mapping entry; a multiline key may not be an implicit key");else return T.tag=ee,T.anchor=ce,!0;else break;if((T.line===ie||T.lineIndent>Ie)&&(pe(T,Ie,B,!0,P)&&(it?Ge=T.result:He=T.result),it||(pt(T,Oe,Pe,Te,Ge,He,ie,D),Te=Ge=He=null),qe(T,!0,-1),Ct=T.input.charCodeAt(T.position)),T.lineIndent>Ie&&Ct!==0)ke(T,"bad indentation of a mapping entry");else if(T.lineIndent<Ie)break}return it&&pt(T,Oe,Pe,Te,Ge,null),gt&&(T.tag=ee,T.anchor=ce,T.kind="mapping",T.result=Oe),gt}function $t(T){var Ie,W=!1,O=!1,P,ie,D;if(D=T.input.charCodeAt(T.position),D!==33)return!1;if(T.tag!==null&&ke(T,"duplication of a tag property"),D=T.input.charCodeAt(++T.position),D===60?(W=!0,D=T.input.charCodeAt(++T.position)):D===33?(O=!0,P="!!",D=T.input.charCodeAt(++T.position)):P="!",Ie=T.position,W){do D=T.input.charCodeAt(++T.position);while(D!==0&&D!==62);T.position<T.length?(ie=T.input.slice(Ie,T.position),D=T.input.charCodeAt(++T.position)):ke(T,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!Y(D);)D===33&&(O?ke(T,"tag suffix cannot contain exclamation marks"):(P=T.input.slice(Ie-1,T.position+1),C.test(P)||ke(T,"named tag handle cannot contain such characters"),O=!0,Ie=T.position+1)),D=T.input.charCodeAt(++T.position);ie=T.input.slice(Ie,T.position),M.test(ie)&&ke(T,"tag suffix cannot contain flow indicator characters")}return ie&&!V.test(ie)&&ke(T,"tag name cannot contain such characters: "+ie),W?T.tag=ie:A.call(T.tagMap,P)?T.tag=T.tagMap[P]+ie:P==="!"?T.tag="!"+ie:P==="!!"?T.tag="tag:yaml.org,2002:"+ie:ke(T,'undeclared tag handle "'+P+'"'),!0}function St(T){var Ie,W;if(W=T.input.charCodeAt(T.position),W!==38)return!1;for(T.anchor!==null&&ke(T,"duplication of an anchor property"),W=T.input.charCodeAt(++T.position),Ie=T.position;W!==0&&!Y(W)&&!fe(W);)W=T.input.charCodeAt(++T.position);return T.position===Ie&&ke(T,"name of an anchor node must contain at least one character"),T.anchor=T.input.slice(Ie,T.position),!0}function Mt(T){var Ie,W,O;if(O=T.input.charCodeAt(T.position),O!==42)return!1;for(O=T.input.charCodeAt(++T.position),Ie=T.position;O!==0&&!Y(O)&&!fe(O);)O=T.input.charCodeAt(++T.position);return T.position===Ie&&ke(T,"name of an alias node must contain at least one character"),W=T.input.slice(Ie,T.position),A.call(T.anchorMap,W)||ke(T,'unidentified alias "'+W+'"'),T.result=T.anchorMap[W],qe(T,!0,-1),!0}function pe(T,Ie,W,O,P){var ie,D,ee,ce=1,Oe=!1,Pe=!1,Te,Ge,He,it,gt;if(T.listener!==null&&T.listener("open",T),T.tag=null,T.anchor=null,T.kind=null,T.result=null,ie=D=ee=B===W||N===W,O&&qe(T,!0,-1)&&(Oe=!0,T.lineIndent>Ie?ce=1:T.lineIndent===Ie?ce=0:T.lineIndent<Ie&&(ce=-1)),ce===1)for(;$t(T)||St(T);)qe(T,!0,-1)?(Oe=!0,ee=ie,T.lineIndent>Ie?ce=1:T.lineIndent===Ie?ce=0:T.lineIndent<Ie&&(ce=-1)):ee=!1;if(ee&&(ee=Oe||P),(ce===1||B===W)&&(g===W||L===W?it=Ie:it=Ie+1,gt=T.position-T.lineStart,ce===1?ee&&(jt(T,gt)||Nt(T,gt,it))||It(T,it)?Pe=!0:(D&&At(T,it)||dt(T,it)||kt(T,it)?Pe=!0:Mt(T)?(Pe=!0,(T.tag!==null||T.anchor!==null)&&ke(T,"alias node should not have any properties")):mt(T,it,g===W)&&(Pe=!0,T.tag===null&&(T.tag="?")),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):ce===0&&(Pe=ee&&jt(T,gt))),T.tag!==null&&T.tag!=="!")if(T.tag==="?"){for(T.result!==null&&T.kind!=="scalar"&&ke(T,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+T.kind+'"'),Te=0,Ge=T.implicitTypes.length;Te<Ge;Te+=1)if(He=T.implicitTypes[Te],He.resolve(T.result)){T.result=He.construct(T.result),T.tag=He.tag,T.anchor!==null&&(T.anchorMap[T.anchor]=T.result);break}}else A.call(T.typeMap[T.kind||"fallback"],T.tag)?(He=T.typeMap[T.kind||"fallback"][T.tag],T.result!==null&&He.kind!==T.kind&&ke(T,"unacceptable node kind for !<"+T.tag+'> tag; it should be "'+He.kind+'", not "'+T.kind+'"'),He.resolve(T.result)?(T.result=He.construct(T.result),T.anchor!==null&&(T.anchorMap[T.anchor]=T.result)):ke(T,"cannot resolve a node with !<"+T.tag+"> explicit tag")):ke(T,"unknown tag !<"+T.tag+">");return T.listener!==null&&T.listener("close",T),T.tag!==null||T.anchor!==null||Pe}function G(T){var Ie=T.position,W,O,P,ie=!1,D;for(T.version=null,T.checkLineBreaks=T.legacy,T.tagMap={},T.anchorMap={};(D=T.input.charCodeAt(T.position))!==0&&(qe(T,!0,-1),D=T.input.charCodeAt(T.position),!(T.lineIndent>0||D!==37));){for(ie=!0,D=T.input.charCodeAt(++T.position),W=T.position;D!==0&&!Y(D);)D=T.input.charCodeAt(++T.position);for(O=T.input.slice(W,T.position),P=[],O.length<1&&ke(T,"directive name must not be less than one character in length");D!==0;){for(;Q(D);)D=T.input.charCodeAt(++T.position);if(D===35){do D=T.input.charCodeAt(++T.position);while(D!==0&&!q(D));break}if(q(D))break;for(W=T.position;D!==0&&!Y(D);)D=T.input.charCodeAt(++T.position);P.push(T.input.slice(W,T.position))}D!==0&&yt(T),A.call(Qe,O)?Qe[O](T,O,P):rt(T,'unknown document directive "'+O+'"')}if(qe(T,!0,-1),T.lineIndent===0&&T.input.charCodeAt(T.position)===45&&T.input.charCodeAt(T.position+1)===45&&T.input.charCodeAt(T.position+2)===45?(T.position+=3,qe(T,!0,-1)):ie&&ke(T,"directives end mark is expected"),pe(T,T.lineIndent-1,B,!1,!0),qe(T,!0,-1),T.checkLineBreaks&&X.test(T.input.slice(Ie,T.position))&&rt(T,"non-ASCII line breaks are interpreted as content"),T.documents.push(T.result),T.position===T.lineStart&<(T)){T.input.charCodeAt(T.position)===46&&(T.position+=3,qe(T,!0,-1));return}if(T.position<T.length-1)ke(T,"end of the stream or a document separator is expected");else return}function K(T,Ie){T=String(T),Ie=Ie||{},T.length!==0&&(T.charCodeAt(T.length-1)!==10&&T.charCodeAt(T.length-1)!==13&&(T+=`
|
|
492
492
|
`),T.charCodeAt(0)===65279&&(T=T.slice(1)));var W=new Ve(T,Ie),O=T.indexOf("\0");for(O!==-1&&(W.position=O,ke(W,"null byte is not allowed in input")),W.input+="\0";W.input.charCodeAt(W.position)===32;)W.lineIndent+=1,W.position+=1;for(;W.position<W.length-1;)G(W);return W.documents}function we(T,Ie,W){Ie!==null&&typeof Ie=="object"&&typeof W=="undefined"&&(W=Ie,Ie=null);var O=K(T,W);if(typeof Ie!="function")return O;for(var P=0,ie=O.length;P<ie;P+=1)Ie(O[P])}function Re(T,Ie){var W=K(T,Ie);if(W.length!==0){if(W.length===1)return W[0];throw new v("expected a single document in the stream, but found more")}}function be(T,Ie,W){return typeof Ie=="object"&&Ie!==null&&typeof W=="undefined"&&(W=Ie,Ie=null),we(T,Ie,c.extend({schema:d},W))}function Ae(T,Ie){return Re(T,c.extend({schema:d},Ie))}h.exports.loadAll=we,h.exports.load=Re,h.exports.safeLoadAll=be,h.exports.safeLoad=Ae},77334:(h,I,o)=>{"use strict";var c=o(25596);function v(x,d,b,A,g){this.name=x,this.buffer=d,this.position=b,this.line=A,this.column=g}v.prototype.getSnippet=function(d,b){var A,g,L,N,B;if(!this.buffer)return null;for(d=d||4,b=b||75,A="",g=this.position;g>0&&`\0\r
|
|
493
493
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){A=" ... ",g+=5;break}for(L="",N=this.position;N<this.buffer.length&&`\0\r
|
|
494
494
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(N))===-1;)if(N+=1,N-this.position>b/2-1){L=" ... ",N-=5;break}return B=this.buffer.slice(g,N),c.repeat(" ",d)+A+B+L+`
|
|
495
495
|
`+c.repeat(" ",d+this.position-g+A.length)+"^"},v.prototype.toString=function(d){var b,A="";return this.name&&(A+='in "'+this.name+'" '),A+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(A+=`:
|
|
496
496
|
`+b)),A},h.exports=v},82409:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(53899);function d(g,L,N){var B=[];return g.include.forEach(function(j){N=d(j,L,N)}),g[L].forEach(function(j){N.forEach(function(_,H){_.tag===j.tag&&_.kind===j.kind&&B.push(H)}),N.push(j)}),N.filter(function(j,_){return B.indexOf(_)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,N;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,N=arguments.length;L<N;L+=1)arguments[L].forEach(B);return g}function A(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}A.DEFAULT=null,A.create=function(){var L,N;switch(arguments.length){case 1:L=A.DEFAULT,N=arguments[0];break;case 2:L=arguments[0],N=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),N=c.toArray(N),!L.every(function(B){return B instanceof A}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!N.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new A({include:L,explicit:N})},h.exports=A},17318:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(65796)]})},19321:(h,I,o)=>{"use strict";var c=o(82409);h.exports=c.DEFAULT=new c({include:[o(5972)],explicit:[o(70575),o(97287),o(89811)]})},5972:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(17318)],implicit:[o(56145),o(243)],explicit:[o(18964),o(3878),o(68244),o(67300)]})},75322:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({explicit:[o(79483),o(43745),o(86553)]})},65796:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(75322)],implicit:[o(3022),o(2648),o(95979),o(53456)]})},53899:(h,I,o)=>{"use strict";var c=o(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(A){var g={};return A!==null&&Object.keys(A).forEach(function(L){A[L].forEach(function(N){g[String(N)]=L})}),g}function b(A,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+A+'" YAML type.')}),this.tag=A,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+A+'" YAML type.')}h.exports=b},18964:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(48764).Buffer}catch(N){}var x=o(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
497
|
-
\r`;function b(N){if(N===null)return!1;var B,j,_=0,H=N.length,R=d;for(j=0;j<H;j++)if(B=R.indexOf(N.charAt(j)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function A(N){var B,j,_=N.replace(/[\r\n=]/g,""),H=_.length,R=d,X=0,M=[];for(B=0;B<H;B++)B%4==0&&B&&(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)),X=X<<6|R.indexOf(_.charAt(B));return j=H%4*6,j===0?(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)):j===18?(M.push(X>>10&255),M.push(X>>2&255)):j===12&&M.push(X>>4&255),c?c.from?c.from(M):new c(M):M}function g(N){var B="",j=0,_,H,R=N.length,X=d;for(_=0;_<R;_++)_%3==0&&_&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+N[_];return H=R%3,H===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):H===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):H===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(N){return c&&c.isBuffer(N)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:A,predicate:L,represent:g})},2648:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!1;var A=b.length;return A===4&&(b==="true"||b==="True"||b==="TRUE")||A===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(N){return!(N===null||!x.test(N)||N[N.length-1]==="_")}function b(N){var B,j,_,H;return B=N.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,H=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(R){H.unshift(parseFloat(R,10))}),B=0,_=1,H.forEach(function(R){B+=R*_,_*=60}),j*B):j*parseFloat(B,10)}var A=/^[-+]?[0-9]+e/;function g(N,B){var j;if(isNaN(N))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(N))return"-0.0";return j=N.toString(10),A.test(j)?j.replace("e",".e"):j}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!=0||c.isNegativeZero(N))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899);function x(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function d(N){return 48<=N&&N<=55}function b(N){return 48<=N&&N<=57}function A(N){if(N===null)return!1;var B=N.length,j=0,_=!1,H;if(!B)return!1;if(H=N[j],(H==="-"||H==="+")&&(H=N[++j]),H==="0"){if(j+1===B)return!0;if(H=N[++j],H==="b"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(H!=="0"&&H!=="1")return!1;_=!0}return _&&H!=="_"}if(H==="x"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(!x(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}for(;j<B;j++)if(H=N[j],H!=="_"){if(!d(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}if(H==="_")return!1;for(;j<B;j++)if(H=N[j],H!=="_"){if(H===":")break;if(!b(N.charCodeAt(j)))return!1;_=!0}return!_||H==="_"?!1:H!==":"?!0:/^(:[0-5]?[0-9])+$/.test(N.slice(j))}function g(N){var B=N,j=1,_,H,R=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),_=B[0],(_==="-"||_==="+")&&(_==="-"&&(j=-1),B=B.slice(1),_=B[0]),B==="0"?0:_==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){R.unshift(parseInt(X,10))}),B=0,H=1,R.forEach(function(X){B+=X*H,H*=60}),j*B):j*parseInt(B,10)}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1==0&&!c.isNegativeZero(N)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:g,predicate:L,represent:{binary:function(N){return N>=0?"0b"+N.toString(2):"-0b"+N.toString(2).slice(1)},octal:function(N){return N>=0?"0"+N.toString(8):"-0"+N.toString(8).slice(1)},decimal:function(N){return N.toString(10)},hexadecimal:function(N){return N>=0?"0x"+N.toString(16).toUpperCase():"-0x"+N.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=o(53899);function d(L){if(L===null)return!1;try{var N="("+L+")",B=c.parse(N,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var N="("+L+")",B=c.parse(N,{range:!0}),j=[],_;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(H){j.push(H.name)}),_=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,N.slice(_[0]+1,_[1]-1)):new Function(j,"return "+N.slice(_[0],_[1]))}function A(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:A})},97287:(h,I,o)=>{"use strict";var c=o(53899);function v(A){if(A===null||A.length===0)return!1;var g=A,L=/\/([gim]*)$/.exec(A),N="";return!(g[0]==="/"&&(L&&(N=L[1]),N.length>3||g[g.length-N.length-1]!=="/"))}function x(A){var g=A,L=/\/([gim]*)$/.exec(A),N="";return g[0]==="/"&&(L&&(N=L[1]),g=g.slice(1,g.length-N.length-1)),new RegExp(g,N)}function d(A){var g="/"+A.source+"/";return A.global&&(g+="g"),A.multiline&&(g+="m"),A.ignoreCase&&(g+="i"),g}function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function d(){return""}function b(A){return typeof A=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!0;var A=b.length;return A===1&&b==="~"||A===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(A){if(A===null)return!0;var g=[],L,N,B,j,_,H=A;for(L=0,N=H.length;L<N;L+=1){if(B=H[L],_=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!_)_=!0;else return!1;if(!_)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(A){return A!==null?A:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var A,g,L,N,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1){if(L=j[A],v.call(L)!=="[object Object]"||(N=Object.keys(L),N.length!==1))return!1;B[A]=[N[0],L[N[0]]]}return!0}function d(b){if(b===null)return[];var A,g,L,N,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1)L=j[A],N=Object.keys(L),B[A]=[N[0],L[N[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var A,g=b;for(A in g)if(v.call(g,A)&&g[A]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,o)=>{"use strict";var c=o(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,N,B,j,_,H,R,X=0,M=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(N=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(N,B,j));if(_=+L[4],H=+L[5],R=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),J=new Date(Date.UTC(N,B,j,_,H,R,X)),M&&J.setTime(J.getTime()-M),J}function A(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:A})},18552:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),d=o(21327),b=o(81866);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},38407:(h,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),d=o(67518),b=o(13399);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},57071:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");h.exports=x},83369:(h,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),d=o(49916),b=o(95265);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},53818:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");h.exports=x},88668:(h,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function d(b){var A=-1,g=b==null?0:b.length;for(this.__data__=new c;++A<g;)this.add(b[A])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),d=o(67599),b=o(44758),A=o(34309);function g(L){var N=this.__data__=new c(L);this.size=N.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=A,h.exports=g},62705:(h,I,o)=>{var c=o(55639),v=c.Symbol;h.exports=v},11149:(h,I,o)=>{var c=o(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(o,c,v){switch(v.length){case 0:return o.call(c);case 1:return o.call(c,v[0]);case 2:return o.call(c,v[0],v[1]);case 3:return o.call(c,v[0],v[1],v[2])}return o.apply(c,v)}h.exports=I},77412:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}h.exports=I},34963:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=0,b=[];++v<x;){var A=o[v];c(A,v,o)&&(b[d++]=A)}return b}h.exports=I},14636:(h,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),d=o(44144),b=o(65776),A=o(36719),g=Object.prototype,L=g.hasOwnProperty;function N(B,j){var _=x(B),H=!_&&v(B),R=!_&&!H&&d(B),X=!_&&!H&&!R&&A(B),M=_||H||R||X,C=M?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(M&&(J=="length"||R&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=N},29932:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=Array(x);++v<x;)d[v]=c(o[v],v,o);return d}h.exports=I},62488:h=>{function I(o,c){for(var v=-1,x=c.length,d=o.length;++v<x;)o[d+v]=c[v];return o}h.exports=I},82908:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x;)if(c(o[v],v,o))return!0;return!1}h.exports=I},34865:(h,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L){var N=A[g];(!(d.call(A,g)&&v(N,L))||L===void 0&&!(g in A))&&c(A,g,L)}h.exports=b},18470:(h,I,o)=>{var c=o(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,o)=>{var c=o(98363),v=o(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,o)=>{var c=o(98363),v=o(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,o)=>{var c=o(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(o,c,v){return o===o&&(v!==void 0&&(o=o<=v?o:v),c!==void 0&&(o=o>=c?o:c)),o}h.exports=I},85990:(h,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),d=o(44037),b=o(63886),A=o(64626),g=o(278),L=o(18805),N=o(1911),B=o(58234),j=o(46904),_=o(98882),H=o(43824),R=o(29148),X=o(38517),M=o(1469),C=o(44144),V=o(56688),J=o(13218),q=o(72928),Q=o(3674),Y=o(81704),fe=1,te=2,ne=4,ye="[object Arguments]",ve="[object Array]",de="[object Boolean]",ue="[object Date]",oe="[object Error]",De="[object Function]",Ve="[object GeneratorFunction]",Le="[object Map]",ke="[object Number]",rt="[object Object]",Ze="[object RegExp]",Qe="[object Set]",ut="[object String]",pt="[object Symbol]",yt="[object WeakMap]",qe="[object ArrayBuffer]",lt="[object DataView]",vt="[object Float32Array]",mt="[object Float64Array]",dt="[object Int8Array]",kt="[object Int16Array]",It="[object Int32Array]",St="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",Gt="[object Uint32Array]",wt={};wt[ye]=wt[ve]=wt[qe]=wt[lt]=wt[de]=wt[ue]=wt[vt]=wt[mt]=wt[dt]=wt[kt]=wt[It]=wt[Le]=wt[ke]=wt[rt]=wt[Ze]=wt[Qe]=wt[ut]=wt[pt]=wt[St]=wt[Vt]=wt[Nt]=wt[Gt]=!0,wt[oe]=wt[De]=wt[yt]=!1;function Mt(pe,G,K,we,Re,be){var Ae,T=G&fe,Ie=G&te,W=G≠if(K&&(Ae=Re?K(pe,we,Re,be):K(pe)),Ae!==void 0)return Ae;if(!J(pe))return pe;var O=M(pe);if(O){if(Ae=H(pe),!T)return g(pe,Ae)}else{var P=_(pe),ie=P==De||P==Ve;if(C(pe))return A(pe,T);if(P==rt||P==ye||ie&&!Re){if(Ae=Ie||ie?{}:X(pe),!T)return Ie?N(pe,b(Ae,pe)):L(pe,d(Ae,pe))}else{if(!wt[P])return Re?pe:{};Ae=R(pe,P,T)}}be||(be=new c);var D=be.get(pe);if(D)return D;be.set(pe,Ae),q(pe)?pe.forEach(function(Oe){Ae.add(Mt(Oe,G,K,Oe,pe,be))}):V(pe)&&pe.forEach(function(Oe,Pe){Ae.set(Pe,Mt(Oe,G,K,Pe,pe,be))});var ee=W?Ie?j:B:Ie?Y:Q,ce=O?void 0:ee(pe);return v(ce||pe,function(Oe,Pe){ce&&(Pe=Oe,Oe=pe[Pe]),x(Ae,Pe,Mt(Oe,G,K,Pe,pe,be))}),Ae}h.exports=Mt},3118:(h,I,o)=>{var c=o(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var A=new d;return d.prototype=void 0,A}}();h.exports=x},41848:h=>{function I(o,c,v,x){for(var d=o.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(o[b],b,o))return b;return-1}h.exports=I},35764:(h,I,o)=>{var c=o(62488),v=o(37285);function x(d,b,A,g,L){var N=-1,B=d.length;for(A||(A=v),L||(L=[]);++N<B;){var j=d[N];b>0&&A(j)?b>1?x(j,b-1,A,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,o)=>{var c=o(71811),v=o(40327);function x(d,b){b=c(b,d);for(var A=0,g=b.length;d!=null&&A<g;)d=d[v(b[A++])];return A&&A==g?d:void 0}h.exports=x},68866:(h,I,o)=>{var c=o(62488),v=o(1469);function x(d,b,A){var g=b(d);return v(d)?g:c(g,A(d))}h.exports=x},44239:(h,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),d="[object Null]",b="[object Undefined]",A=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:A&&A in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(o,c){return o!=null&&c in Object(o)}h.exports=I},9454:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,o)=>{var c=o(2492),v=o(37005);function x(d,b,A,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,A,g,x,L)}h.exports=x},2492:(h,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),d=o(16096),b=o(98882),A=o(1469),g=o(44144),L=o(36719),N=1,B="[object Arguments]",j="[object Array]",_="[object Object]",H=Object.prototype,R=H.hasOwnProperty;function X(M,C,V,J,q,Q){var Y=A(M),fe=A(C),te=Y?j:b(M),ne=fe?j:b(C);te=te==B?_:te,ne=ne==B?_:ne;var ye=te==_,ve=ne==_,de=te==ne;if(de&&g(M)){if(!g(C))return!1;Y=!0,ye=!1}if(de&&!ye)return Q||(Q=new c),Y||L(M)?v(M,C,V,J,q,Q):x(M,C,te,V,J,q,Q);if(!(V&N)){var ue=ye&&R.call(M,"__wrapped__"),oe=ve&&R.call(C,"__wrapped__");if(ue||oe){var De=ue?M.value():M,Ve=oe?C.value():C;return Q||(Q=new c),q(De,Ve,V,J,Q)}}return de?(Q||(Q=new c),d(M,C,V,J,q,Q)):!1}h.exports=X},25588:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,o)=>{var c=o(46384),v=o(90939),x=1,d=2;function b(A,g,L,N){var B=L.length,j=B,_=!N;if(A==null)return!j;for(A=Object(A);B--;){var H=L[B];if(_&&H[2]?H[1]!==A[H[0]]:!(H[0]in A))return!1}for(;++B<j;){H=L[B];var R=H[0],X=A[R],M=H[1];if(_&&H[2]){if(X===void 0&&!(R in A))return!1}else{var C=new c;if(N)var V=N(X,M,R,A,g,C);if(!(V===void 0?v(M,X,x|d,N,C):V))return!1}}return!0}h.exports=b},28458:(h,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),d=o(80346),b=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,N=g.toString,B=L.hasOwnProperty,j=RegExp("^"+N.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(H){if(!x(H)||v(H))return!1;var R=c(H)?j:A;return R.test(d(H))}h.exports=_},29221:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),d="[object Arguments]",b="[object Array]",A="[object Boolean]",g="[object Date]",L="[object Error]",N="[object Function]",B="[object Map]",j="[object Number]",_="[object Object]",H="[object RegExp]",R="[object Set]",X="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",q="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",fe="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",de={};de[J]=de[q]=de[Q]=de[Y]=de[fe]=de[te]=de[ne]=de[ye]=de[ve]=!0,de[d]=de[b]=de[C]=de[A]=de[V]=de[g]=de[L]=de[N]=de[B]=de[j]=de[_]=de[H]=de[R]=de[X]=de[M]=!1;function ue(oe){return x(oe)&&v(oe.length)&&!!de[c(oe)]}h.exports=ue},67206:(h,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),d=o(1469),b=o(39601);function A(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=A},280:(h,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,d=x.hasOwnProperty;function b(A){if(!c(A))return v(A);var g=[];for(var L in Object(A))d.call(A,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),d=Object.prototype,b=d.hasOwnProperty;function A(g){if(!c(g))return x(g);var L=v(g),N=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||N.push(B);return N}h.exports=A},91573:(h,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function d(b){var A=v(b);return A.length==1&&A[0][2]?x(A[0][0],A[0][1]):function(g){return g===b||c(g,b,A)}}h.exports=d},16432:(h,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),d=o(15403),b=o(89162),A=o(42634),g=o(40327),L=1,N=2;function B(j,_){return d(j)&&b(_)?A(g(j),_):function(H){var R=v(H,j);return R===void 0&&R===_?x(H,j):c(_,R,L|N)}}h.exports=B},25970:(h,I,o)=>{var c=o(63012),v=o(79095);function x(d,b){return c(d,b,function(A,g){return v(d,g)})}h.exports=x},63012:(h,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function d(b,A,g){for(var L=-1,N=A.length,B={};++L<N;){var j=A[L],_=c(b,j);g(_,j)&&v(B,x(j,b),_)}return B}h.exports=d},40371:h=>{function I(o){return function(c){return c==null?void 0:c[o]}}h.exports=I},79152:(h,I,o)=>{var c=o(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function d(b,A){return x(v(b,A,c),b+"")}h.exports=d},10611:(h,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),d=o(13218),b=o(40327);function A(g,L,N,B){if(!d(g))return g;L=v(L,g);for(var j=-1,_=L.length,H=_-1,R=g;R!=null&&++j<_;){var X=b(L[j]),M=N;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=H){var C=R[X];M=B?B(C,X,R):void 0,M===void 0&&(M=d(C)?C:x(L[j+1])?[]:{})}c(R,X,M),R=R[X]}return g}h.exports=A},56560:(h,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),d=v?function(b,A){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(A),writable:!0})}:x;h.exports=d},22545:h=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}h.exports=I},80531:(h,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),d=o(33448),b=1/0,A=c?c.prototype:void 0,g=A?A.toString:void 0;function L(N){if(typeof N=="string")return N;if(x(N))return v(N,L)+"";if(d(N))return g?g.call(N):"";var B=N+"";return B=="0"&&1/N==-b?"-0":B}h.exports=L},27561:(h,I,o)=>{var c=o(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(o){return function(c){return o(c)}}h.exports=I},74757:h=>{function I(o,c){return o.has(c)}h.exports=I},71811:(h,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),d=o(79833);function b(A,g){return c(A)?A:v(A,g)?[A]:x(d(A))}h.exports=b},74318:(h,I,o)=>{var c=o(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,A=b?b.allocUnsafe:void 0;function g(L,N){if(N)return L.slice();var B=L.length,j=A?A(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=o},40419:(h,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}h.exports=I},98363:(h,I,o)=>{var c=o(34865),v=o(89465);function x(d,b,A,g){var L=!A;A||(A={});for(var N=-1,B=b.length;++N<B;){var j=b[N],_=g?g(A[j],d[j],j,A,d):void 0;_===void 0&&(_=d[j]),L?v(A,j,_):c(A,j,_)}return A}h.exports=x},18805:(h,I,o)=>{var c=o(98363),v=o(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,o)=>{var c=o(98363),v=o(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,o)=>{var c=o(5976),v=o(16612);function x(d){return c(function(b,A){var g=-1,L=A.length,N=L>1?A[L-1]:void 0,B=L>2?A[2]:void 0;for(N=d.length>3&&typeof N=="function"?(L--,N):void 0,B&&v(A[0],A[1],B)&&(N=L<3?void 0:N,L=1),b=Object(b);++g<L;){var j=A[g];j&&d(b,j,g,N)}return b})}h.exports=x},67740:(h,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function d(b){return function(A,g,L){var N=Object(A);if(!v(A)){var B=c(g,3);A=x(A),g=function(_){return B(N[_],_,N)}}var j=b(A,g,L);return j>-1?N[B?A[j]:j]:void 0}}h.exports=d},38777:(h,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),d=1,b=2;function A(g,L,N,B,j,_){var H=N&d,R=g.length,X=L.length;if(R!=X&&!(H&&X>R))return!1;var M=_.get(g),C=_.get(L);if(M&&C)return M==L&&C==g;var V=-1,J=!0,q=N&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<R;){var Q=g[V],Y=L[V];if(B)var fe=H?B(Y,Q,V,L,g,_):B(Q,Y,V,g,L,_);if(fe!==void 0){if(fe)continue;J=!1;break}if(q){if(!v(L,function(te,ne){if(!x(q,ne)&&(Q===te||j(Q,te,N,B,_)))return q.push(ne)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,N,B,_))){J=!1;break}}return _.delete(g),_.delete(L),J}h.exports=A},18351:(h,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),d=o(67114),b=o(68776),A=o(21814),g=1,L=2,N="[object Boolean]",B="[object Date]",j="[object Error]",_="[object Map]",H="[object Number]",R="[object RegExp]",X="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",q=c?c.prototype:void 0,Q=q?q.valueOf:void 0;function Y(fe,te,ne,ye,ve,de,ue){switch(ne){case J:if(fe.byteLength!=te.byteLength||fe.byteOffset!=te.byteOffset)return!1;fe=fe.buffer,te=te.buffer;case V:return!(fe.byteLength!=te.byteLength||!de(new v(fe),new v(te)));case N:case B:case H:return x(+fe,+te);case j:return fe.name==te.name&&fe.message==te.message;case R:case M:return fe==te+"";case _:var oe=b;case X:var De=ye&g;if(oe||(oe=A),fe.size!=te.size&&!De)return!1;var Ve=ue.get(fe);if(Ve)return Ve==te;ye|=L,ue.set(fe,te);var Le=d(oe(fe),oe(te),ye,ve,de,ue);return ue.delete(fe),Le;case C:if(Q)return Q.call(fe)==Q.call(te)}return!1}h.exports=Y},16096:(h,I,o)=>{var c=o(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L,N,B,j){var _=L&v,H=c(A),R=H.length,X=c(g),M=X.length;if(R!=M&&!_)return!1;for(var C=R;C--;){var V=H[C];if(!(_?V in g:d.call(g,V)))return!1}var J=j.get(A),q=j.get(g);if(J&&q)return J==g&&q==A;var Q=!0;j.set(A,g),j.set(g,A);for(var Y=_;++C<R;){V=H[C];var fe=A[V],te=g[V];if(N)var ne=_?N(te,fe,V,g,A,j):N(fe,te,V,A,g,j);if(!(ne===void 0?fe===te||B(fe,te,L,N,j):ne)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var ye=A.constructor,ve=g.constructor;ye!=ve&&"constructor"in A&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof ve=="function"&&ve instanceof ve)&&(Q=!1)}return j.delete(A),j.delete(g),Q}h.exports=b},99021:(h,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=c},58234:(h,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,o)=>{var c=o(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,o)=>{var c=o(89162),v=o(3674);function x(d){for(var b=v(d),A=b.length;A--;){var g=b[A],L=d[g];b[A]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,o)=>{var c=o(28458),v=o(47801);function x(d,b){var A=v(d,b);return c(A)?A:void 0}h.exports=x},85924:(h,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function A(g){var L=x.call(g,b),N=g[b];try{g[b]=void 0;var B=!0}catch(_){}var j=d.call(g);return B&&(L?g[b]=N:delete g[b]),j}h.exports=A},99551:(h,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,A=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=A},51442:(h,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),d=o(70479),b=Object.getOwnPropertySymbols,A=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=A},98882:(h,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),d=o(58525),b=o(70577),A=o(44239),g=o(80346),L="[object Map]",N="[object Object]",B="[object Promise]",j="[object Set]",_="[object WeakMap]",H="[object DataView]",R=g(c),X=g(v),M=g(x),C=g(d),V=g(b),J=A;(c&&J(new c(new ArrayBuffer(1)))!=H||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=_)&&(J=function(q){var Q=A(q),Y=Q==N?q.constructor:void 0,fe=Y?g(Y):"";if(fe)switch(fe){case R:return H;case X:return L;case M:return B;case C:return j;case V:return _}return Q}),h.exports=J},47801:h=>{function I(o,c){return o==null?void 0:o[c]}h.exports=I},222:(h,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),d=o(65776),b=o(41780),A=o(40327);function g(L,N,B){N=c(N,L);for(var j=-1,_=N.length,H=!1;++j<_;){var R=A(N[j]);if(!(H=L!=null&&B(L,R)))break;L=L[R]}return H||++j!=_?H:(_=L==null?0:L.length,!!_&&b(_)&&d(R,_)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(A){var g=this.__data__;if(c){var L=g[A];return L===v?void 0:L}return d.call(g,A)?g[A]:void 0}h.exports=b},21327:(h,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var A=this.__data__;return c?A[b]!==void 0:x.call(A,b)}h.exports=d},81866:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(d,b){var A=this.__data__;return this.size+=this.has(d)?0:1,A[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),d=o(40419),b=o(77133),A="[object Boolean]",g="[object Date]",L="[object Map]",N="[object Number]",B="[object RegExp]",j="[object Set]",_="[object String]",H="[object Symbol]",R="[object ArrayBuffer]",X="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",fe="[object Uint16Array]",te="[object Uint32Array]";function ne(ye,ve,de){var ue=ye.constructor;switch(ve){case R:return c(ye);case A:case g:return new ue(+ye);case X:return v(ye,de);case M:case C:case V:case J:case q:case Q:case Y:case fe:case te:return b(ye,de);case L:return new ue;case N:case _:return new ue(ye);case B:return x(ye);case j:return new ue;case H:return d(ye)}}h.exports=ne},38517:(h,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),d=c?c.isConcatSpreadable:void 0;function b(A){return x(A)||v(A)||!!(d&&A&&A[d])}h.exports=b},65776:h=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),d=o(13218);function b(A,g,L){if(!d(L))return!1;var N=typeof g;return(N=="number"?v(L)&&x(g,L.length):N=="string"&&g in L)?c(L[g],A):!1}h.exports=b},15403:(h,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(A,g){if(c(A))return!1;var L=typeof A;return L=="number"||L=="symbol"||L=="boolean"||A==null||v(A)?!0:d.test(A)||!x.test(A)||g!=null&&A in Object(g)}h.exports=b},37019:h=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}h.exports=I},15346:(h,I,o)=>{var c=o(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=o},89162:(h,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function d(b){var A=this.__data__,g=c(A,b);if(g<0)return!1;var L=A.length-1;return g==L?A.pop():x.call(A,g,1),--this.size,!0}h.exports=d},82117:(h,I,o)=>{var c=o(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,o)=>{var c=o(18470);function v(x,d){var b=this.__data__,A=c(b,x);return A<0?(++this.size,b.push([x,d])):b[A][1]=d,this}h.exports=v},24785:(h,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,o)=>{var c=o(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,o)=>{var c=o(45050);function v(x,d){var b=c(this,x),A=b.size;return b.set(x,d),this.size+=b.size==A?0:1,this}h.exports=v},68776:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}h.exports=I},24523:(h,I,o)=>{var c=o(88306),v=500;function x(d){var b=c(d,function(g){return A.size===v&&A.clear(),g}),A=b.cache;return b}h.exports=x},94536:(h,I,o)=>{var c=o(10852),v=c(Object,"create");h.exports=v},86916:(h,I,o)=>{var c=o(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}h.exports=I},31167:(h,I,o)=>{h=o.nmd(h);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,A=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=A},2333:h=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}h.exports=c},5569:h=>{function I(o,c){return function(v){return o(c(v))}}h.exports=I},45357:(h,I,o)=>{var c=o(96874),v=Math.max;function x(d,b,A){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,N=v(g.length-b,0),B=Array(N);++L<N;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=A(B),c(d,this,j)}}h.exports=x},55639:(h,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}h.exports=o},72385:h=>{function I(o){return this.__data__.has(o)}h.exports=I},21814:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,o)=>{var c=o(56560),v=o(21275),x=v(c);h.exports=x},21275:h=>{var I=800,o=16,c=Date.now;function v(x){var d=0,b=0;return function(){var A=c(),g=o-(A-b);if(b=A,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}h.exports=I},67599:h=>{function I(o){return this.__data__.get(o)}h.exports=I},44758:h=>{function I(o){return this.__data__.has(o)}h.exports=I},34309:(h,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),d=200;function b(A,g){var L=this.__data__;if(L instanceof c){var N=L.__data__;if(!v||N.length<d-1)return N.push([A,g]),this.size=++L.size,this;L=this.__data__=new x(N)}return L.set(A,g),this.size=L.size,this}h.exports=b},55514:(h,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(v,function(g,L,N,B){A.push(N?B.replace(x,"$1"):L||g)}),A});h.exports=d},40327:(h,I,o)=>{var c=o(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,o=I.toString;function c(v){if(v!=null){try{return o.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=o},28583:(h,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),d=o(98612),b=o(25726),A=o(3674),g=Object.prototype,L=g.hasOwnProperty,N=x(function(B,j){if(b(j)||d(j)){v(j,A(j),B);return}for(var _ in j)L.call(j,_)&&c(B,_,j[_])});h.exports=N},50361:(h,I,o)=>{var c=o(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(o){return function(){return o}}h.exports=I},77813:h=>{function I(o,c){return o===c||o!==o&&c!==c}h.exports=I},13311:(h,I,o)=>{var c=o(67740),v=o(30998),x=c(v);h.exports=x},30998:(h,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),d=Math.max;function b(A,g,L){var N=A==null?0:A.length;if(!N)return-1;var B=L==null?0:x(L);return B<0&&(B=d(N+B,0)),c(A,v(g,3),B)}h.exports=b},85564:(h,I,o)=>{var c=o(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,o)=>{var c=o(97786);function v(x,d,b){var A=x==null?void 0:c(x,d);return A===void 0?b:A}h.exports=v},79095:(h,I,o)=>{var c=o(13),v=o(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(o){return o}h.exports=I},35694:(h,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,A=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=A},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,o)=>{var c=o(23560),v=o(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,A=b?c.Buffer:void 0,g=A?A.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,o)=>{var c=o(280),v=o(98882),x=o(35694),d=o(1469),b=o(98612),A=o(44144),g=o(25726),L=o(36719),N="[object Map]",B="[object Set]",j=Object.prototype,_=j.hasOwnProperty;function H(R){if(R==null)return!0;if(b(R)&&(d(R)||typeof R=="string"||typeof R.splice=="function"||A(R)||L(R)||x(R)))return!R.length;var X=v(R);if(X==N||X==B)return!R.size;if(g(R))return!c(R).length;for(var M in R)if(_.call(R,M))return!1;return!0}h.exports=H},23560:(h,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",A="[object Proxy]";function g(L){if(!v(L))return!1;var N=c(L);return N==d||N==b||N==x||N==A}h.exports=g},41780:h=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=o},56688:(h,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(o){return o!=null&&typeof o=="object"}h.exports=I},68630:(h,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),d="[object Object]",b=Function.prototype,A=Object.prototype,g=b.toString,L=A.hasOwnProperty,N=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var _=v(j);if(_===null)return!0;var H=L.call(_,"constructor")&&_.constructor;return typeof H=="function"&&H instanceof H&&g.call(H)==N}h.exports=B},72928:(h,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),d="[object String]";function b(A){return typeof A=="string"||!v(A)&&x(A)&&c(A)==d}h.exports=b},33448:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,o)=>{var c=o(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var A=function(){var g=arguments,L=b?b.apply(this,g):g[0],N=A.cache;if(N.has(L))return N.get(L);var B=d.apply(this,g);return A.cache=N.set(L,B)||N,B};return A.cache=new(x.Cache||c),A}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,o)=>{var c=o(25970),v=o(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),d=o(40327);function b(A){return x(A)?c(d(A)):v(A)}h.exports=b},10240:(h,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),d=o(79833);function b(A,g,L){return A=d(A),L=L==null?0:c(x(L),0,A.length),g=v(g),A.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var A=b<0?-1:1;return A*x}return b===b?b:0}h.exports=d},40554:(h,I,o)=>{var c=o(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function N(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var _=A.test(B);return _||g.test(B)?L(B.slice(2),_?2:8):b.test(B)?d:+B}h.exports=N},79833:(h,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,o)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,A=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&A&&typeof A.get=="function"?A.get:null,L=b&&Set.prototype.forEach,N=typeof WeakMap=="function"&&WeakMap.prototype,B=N?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,_=j?WeakSet.prototype.has:null,H=typeof WeakRef=="function"&&WeakRef.prototype,R=H?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Y=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=Object.prototype.propertyIsEnumerable,te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null),ne=o(24654).custom,ye=ne&&Qe(ne)?ne:null,ve=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null;h.exports=function be(Ae,T,Ie,W){var O=T||{};if(yt(O,"quoteStyle")&&O.quoteStyle!=="single"&&O.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yt(O,"maxStringLength")&&(typeof O.maxStringLength=="number"?O.maxStringLength<0&&O.maxStringLength!==1/0:O.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=yt(O,"customInspect")?O.customInspect:!0;if(typeof P!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(yt(O,"indent")&&O.indent!==null&&O.indent!==" "&&!(parseInt(O.indent,10)===O.indent&&O.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof Ae=="undefined")return"undefined";if(Ae===null)return"null";if(typeof Ae=="boolean")return Ae?"true":"false";if(typeof Ae=="string")return Nt(Ae,O);if(typeof Ae=="number")return Ae===0?1/0/Ae>0?"0":"-0":String(Ae);if(typeof Ae=="bigint")return String(Ae)+"n";var ie=typeof O.depth=="undefined"?5:O.depth;if(typeof Ie=="undefined"&&(Ie=0),Ie>=ie&&ie>0&&typeof Ae=="object")return oe(Ae)?"[Array]":"[Object]";var D=K(O,Ie);if(typeof W=="undefined")W=[];else if(vt(W,Ae)>=0)return"[Circular]";function ee(Bn,$n,In){if($n&&(W=W.slice(),W.push($n)),In){var Kn={depth:O.depth};return yt(O,"quoteStyle")&&(Kn.quoteStyle=O.quoteStyle),be(Bn,Kn,Ie+1,W)}return be(Bn,O,Ie+1,W)}if(typeof Ae=="function"){var ce=lt(Ae),Oe=Re(Ae,ee);return"[Function"+(ce?": "+ce:" (anonymous)")+"]"+(Oe.length>0?" { "+Oe.join(", ")+" }":"")}if(Qe(Ae)){var Pe=Y?String(Ae).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(Ae);return typeof Ae=="object"&&!Y?wt(Pe):Pe}if(Vt(Ae)){for(var Te="<"+String(Ae.nodeName).toLowerCase(),Ge=Ae.attributes||[],He=0;He<Ge.length;He++)Te+=" "+Ge[He].name+"="+de(ue(Ge[He].value),"double",O);return Te+=">",Ae.childNodes&&Ae.childNodes.length&&(Te+="..."),Te+="</"+String(Ae.nodeName).toLowerCase()+">",Te}if(oe(Ae)){if(Ae.length===0)return"[]";var it=Re(Ae,ee);return D&&!G(it)?"["+we(it,D)+"]":"[ "+it.join(", ")+" ]"}if(Le(Ae)){var gt=Re(Ae,ee);return gt.length===0?"["+String(Ae)+"]":"{ ["+String(Ae)+"] "+gt.join(", ")+" }"}if(typeof Ae=="object"&&P){if(ye&&typeof Ae[ye]=="function")return Ae[ye]();if(typeof Ae.inspect=="function")return Ae.inspect()}if(mt(Ae)){var Ct=[];return d.call(Ae,function(Bn,$n){Ct.push(ee($n,Ae,!0)+" => "+ee(Bn,Ae))}),pe("Map",x.call(Ae),Ct,D)}if(It(Ae)){var Kt=[];return L.call(Ae,function(Bn){Kt.push(ee(Bn,Ae))}),pe("Set",g.call(Ae),Kt,D)}if(dt(Ae))return Mt("WeakMap");if(St(Ae))return Mt("WeakSet");if(kt(Ae))return Mt("WeakRef");if(rt(Ae))return wt(ee(Number(Ae)));if(ut(Ae))return wt(ee(J.call(Ae)));if(Ze(Ae))return wt(X.call(Ae));if(ke(Ae))return wt(ee(String(Ae)));if(!De(Ae)&&!Ve(Ae)){var Ft=Re(Ae,ee),Sn=te?te(Ae)===Object.prototype:Ae instanceof Object||Ae.constructor===Object,qr=Ae instanceof Object?"":"null prototype",Pn=!Sn&&ve&&Object(Ae)===Ae&&ve in Ae?qe(Ae).slice(8,-1):qr?"Object":"",$i=Sn||typeof Ae.constructor!="function"?"":Ae.constructor.name?Ae.constructor.name+" ":"",jr=$i+(Pn||qr?"["+[].concat(Pn||[],qr||[]).join(": ")+"] ":"");return Ft.length===0?jr+"{}":D?jr+"{"+we(Ft,D)+"}":jr+"{ "+Ft.join(", ")+" }"}return String(Ae)};function de(be,Ae,T){var Ie=(T.quoteStyle||Ae)==="double"?'"':"'";return Ie+be+Ie}function ue(be){return String(be).replace(/"/g,""")}function oe(be){return qe(be)==="[object Array]"&&(!ve||!(typeof be=="object"&&ve in be))}function De(be){return qe(be)==="[object Date]"&&(!ve||!(typeof be=="object"&&ve in be))}function Ve(be){return qe(be)==="[object RegExp]"&&(!ve||!(typeof be=="object"&&ve in be))}function Le(be){return qe(be)==="[object Error]"&&(!ve||!(typeof be=="object"&&ve in be))}function ke(be){return qe(be)==="[object String]"&&(!ve||!(typeof be=="object"&&ve in be))}function rt(be){return qe(be)==="[object Number]"&&(!ve||!(typeof be=="object"&&ve in be))}function Ze(be){return qe(be)==="[object Boolean]"&&(!ve||!(typeof be=="object"&&ve in be))}function Qe(be){if(Y)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch(Ae){}return!1}function ut(be){if(!be||typeof be!="object"||!J)return!1;try{return J.call(be),!0}catch(Ae){}return!1}var pt=Object.prototype.hasOwnProperty||function(be){return be in this};function yt(be,Ae){return pt.call(be,Ae)}function qe(be){return M.call(be)}function lt(be){if(be.name)return be.name;var Ae=V.call(C.call(be),/^function\s*([\w$]+)/);return Ae?Ae[1]:null}function vt(be,Ae){if(be.indexOf)return be.indexOf(Ae);for(var T=0,Ie=be.length;T<Ie;T++)if(be[T]===Ae)return T;return-1}function mt(be){if(!x||!be||typeof be!="object")return!1;try{x.call(be);try{g.call(be)}catch(Ae){return!0}return be instanceof Map}catch(Ae){}return!1}function dt(be){if(!B||!be||typeof be!="object")return!1;try{B.call(be,B);try{_.call(be,_)}catch(Ae){return!0}return be instanceof WeakMap}catch(Ae){}return!1}function kt(be){if(!R||!be||typeof be!="object")return!1;try{return R.call(be),!0}catch(Ae){}return!1}function It(be){if(!g||!be||typeof be!="object")return!1;try{g.call(be);try{x.call(be)}catch(Ae){return!0}return be instanceof Set}catch(Ae){}return!1}function St(be){if(!_||!be||typeof be!="object")return!1;try{_.call(be,_);try{B.call(be,B)}catch(Ae){return!0}return be instanceof WeakSet}catch(Ae){}return!1}function Vt(be){return!be||typeof be!="object"?!1:typeof HTMLElement!="undefined"&&be instanceof HTMLElement?!0:typeof be.nodeName=="string"&&typeof be.getAttribute=="function"}function Nt(be,Ae){if(be.length>Ae.maxStringLength){var T=be.length-Ae.maxStringLength,Ie="... "+T+" more character"+(T>1?"s":"");return Nt(be.slice(0,Ae.maxStringLength),Ae)+Ie}var W=be.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,Gt);return de(W,"single",Ae)}function Gt(be){var Ae=be.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ae];return T?"\\"+T:"\\x"+(Ae<16?"0":"")+Ae.toString(16).toUpperCase()}function wt(be){return"Object("+be+")"}function Mt(be){return be+" { ? }"}function pe(be,Ae,T,Ie){var W=Ie?we(T,Ie):T.join(", ");return be+" ("+Ae+") {"+W+"}"}function G(be){for(var Ae=0;Ae<be.length;Ae++)if(vt(be[Ae],`
|
|
497
|
+
\r`;function b(N){if(N===null)return!1;var B,j,_=0,H=N.length,R=d;for(j=0;j<H;j++)if(B=R.indexOf(N.charAt(j)),!(B>64)){if(B<0)return!1;_+=6}return _%8==0}function A(N){var B,j,_=N.replace(/[\r\n=]/g,""),H=_.length,R=d,X=0,M=[];for(B=0;B<H;B++)B%4==0&&B&&(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)),X=X<<6|R.indexOf(_.charAt(B));return j=H%4*6,j===0?(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)):j===18?(M.push(X>>10&255),M.push(X>>2&255)):j===12&&M.push(X>>4&255),c?c.from?c.from(M):new c(M):M}function g(N){var B="",j=0,_,H,R=N.length,X=d;for(_=0;_<R;_++)_%3==0&&_&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+N[_];return H=R%3,H===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):H===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):H===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(N){return c&&c.isBuffer(N)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:A,predicate:L,represent:g})},2648:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!1;var A=b.length;return A===4&&(b==="true"||b==="True"||b==="TRUE")||A===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(N){return!(N===null||!x.test(N)||N[N.length-1]==="_")}function b(N){var B,j,_,H;return B=N.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,H=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(R){H.unshift(parseFloat(R,10))}),B=0,_=1,H.forEach(function(R){B+=R*_,_*=60}),j*B):j*parseFloat(B,10)}var A=/^[-+]?[0-9]+e/;function g(N,B){var j;if(isNaN(N))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===N)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===N)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(N))return"-0.0";return j=N.toString(10),A.test(j)?j.replace("e",".e"):j}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&(N%1!=0||c.isNegativeZero(N))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899);function x(N){return 48<=N&&N<=57||65<=N&&N<=70||97<=N&&N<=102}function d(N){return 48<=N&&N<=55}function b(N){return 48<=N&&N<=57}function A(N){if(N===null)return!1;var B=N.length,j=0,_=!1,H;if(!B)return!1;if(H=N[j],(H==="-"||H==="+")&&(H=N[++j]),H==="0"){if(j+1===B)return!0;if(H=N[++j],H==="b"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(H!=="0"&&H!=="1")return!1;_=!0}return _&&H!=="_"}if(H==="x"){for(j++;j<B;j++)if(H=N[j],H!=="_"){if(!x(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}for(;j<B;j++)if(H=N[j],H!=="_"){if(!d(N.charCodeAt(j)))return!1;_=!0}return _&&H!=="_"}if(H==="_")return!1;for(;j<B;j++)if(H=N[j],H!=="_"){if(H===":")break;if(!b(N.charCodeAt(j)))return!1;_=!0}return!_||H==="_"?!1:H!==":"?!0:/^(:[0-5]?[0-9])+$/.test(N.slice(j))}function g(N){var B=N,j=1,_,H,R=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),_=B[0],(_==="-"||_==="+")&&(_==="-"&&(j=-1),B=B.slice(1),_=B[0]),B==="0"?0:_==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){R.unshift(parseInt(X,10))}),B=0,H=1,R.forEach(function(X){B+=X*H,H*=60}),j*B):j*parseInt(B,10)}function L(N){return Object.prototype.toString.call(N)==="[object Number]"&&N%1==0&&!c.isNegativeZero(N)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:g,predicate:L,represent:{binary:function(N){return N>=0?"0b"+N.toString(2):"-0b"+N.toString(2).slice(1)},octal:function(N){return N>=0?"0"+N.toString(8):"-0"+N.toString(8).slice(1)},decimal:function(N){return N.toString(10)},hexadecimal:function(N){return N>=0?"0x"+N.toString(16).toUpperCase():"-0x"+N.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=o(53899);function d(L){if(L===null)return!1;try{var N="("+L+")",B=c.parse(N,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var N="("+L+")",B=c.parse(N,{range:!0}),j=[],_;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(H){j.push(H.name)}),_=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,N.slice(_[0]+1,_[1]-1)):new Function(j,"return "+N.slice(_[0],_[1]))}function A(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:A})},97287:(h,I,o)=>{"use strict";var c=o(53899);function v(A){if(A===null||A.length===0)return!1;var g=A,L=/\/([gim]*)$/.exec(A),N="";return!(g[0]==="/"&&(L&&(N=L[1]),N.length>3||g[g.length-N.length-1]!=="/"))}function x(A){var g=A,L=/\/([gim]*)$/.exec(A),N="";return g[0]==="/"&&(L&&(N=L[1]),g=g.slice(1,g.length-N.length-1)),new RegExp(g,N)}function d(A){var g="/"+A.source+"/";return A.global&&(g+="g"),A.multiline&&(g+="m"),A.ignoreCase&&(g+="i"),g}function b(A){return Object.prototype.toString.call(A)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function d(){return""}function b(A){return typeof A=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!0;var A=b.length;return A===1&&b==="~"||A===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(A){if(A===null)return!0;var g=[],L,N,B,j,_,H=A;for(L=0,N=H.length;L<N;L+=1){if(B=H[L],_=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!_)_=!0;else return!1;if(!_)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(A){return A!==null?A:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var A,g,L,N,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1){if(L=j[A],v.call(L)!=="[object Object]"||(N=Object.keys(L),N.length!==1))return!1;B[A]=[N[0],L[N[0]]]}return!0}function d(b){if(b===null)return[];var A,g,L,N,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1)L=j[A],N=Object.keys(L),B[A]=[N[0],L[N[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var A,g=b;for(A in g)if(v.call(g,A)&&g[A]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,o)=>{"use strict";var c=o(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,N,B,j,_,H,R,X=0,M=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(N=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(N,B,j));if(_=+L[4],H=+L[5],R=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),J=new Date(Date.UTC(N,B,j,_,H,R,X)),M&&J.setTime(J.getTime()-M),J}function A(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:A})},18552:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),d=o(21327),b=o(81866);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},38407:(h,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),d=o(67518),b=o(13399);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},57071:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");h.exports=x},83369:(h,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),d=o(49916),b=o(95265);function A(g){var L=-1,N=g==null?0:g.length;for(this.clear();++L<N;){var B=g[L];this.set(B[0],B[1])}}A.prototype.clear=c,A.prototype.delete=v,A.prototype.get=x,A.prototype.has=d,A.prototype.set=b,h.exports=A},53818:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");h.exports=x},88668:(h,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function d(b){var A=-1,g=b==null?0:b.length;for(this.__data__=new c;++A<g;)this.add(b[A])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),d=o(67599),b=o(44758),A=o(34309);function g(L){var N=this.__data__=new c(L);this.size=N.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=A,h.exports=g},62705:(h,I,o)=>{var c=o(55639),v=c.Symbol;h.exports=v},11149:(h,I,o)=>{var c=o(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(o,c,v){switch(v.length){case 0:return o.call(c);case 1:return o.call(c,v[0]);case 2:return o.call(c,v[0],v[1]);case 3:return o.call(c,v[0],v[1],v[2])}return o.apply(c,v)}h.exports=I},77412:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}h.exports=I},34963:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=0,b=[];++v<x;){var A=o[v];c(A,v,o)&&(b[d++]=A)}return b}h.exports=I},14636:(h,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),d=o(44144),b=o(65776),A=o(36719),g=Object.prototype,L=g.hasOwnProperty;function N(B,j){var _=x(B),H=!_&&v(B),R=!_&&!H&&d(B),X=!_&&!H&&!R&&A(B),M=_||H||R||X,C=M?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(M&&(J=="length"||R&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=N},29932:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=Array(x);++v<x;)d[v]=c(o[v],v,o);return d}h.exports=I},62488:h=>{function I(o,c){for(var v=-1,x=c.length,d=o.length;++v<x;)o[d+v]=c[v];return o}h.exports=I},82908:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x;)if(c(o[v],v,o))return!0;return!1}h.exports=I},34865:(h,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L){var N=A[g];(!(d.call(A,g)&&v(N,L))||L===void 0&&!(g in A))&&c(A,g,L)}h.exports=b},18470:(h,I,o)=>{var c=o(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,o)=>{var c=o(98363),v=o(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,o)=>{var c=o(98363),v=o(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,o)=>{var c=o(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(o,c,v){return o===o&&(v!==void 0&&(o=o<=v?o:v),c!==void 0&&(o=o>=c?o:c)),o}h.exports=I},85990:(h,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),d=o(44037),b=o(63886),A=o(64626),g=o(278),L=o(18805),N=o(1911),B=o(58234),j=o(46904),_=o(98882),H=o(43824),R=o(29148),X=o(38517),M=o(1469),C=o(44144),V=o(56688),J=o(13218),q=o(72928),Q=o(3674),Y=o(81704),fe=1,te=2,ne=4,ye="[object Arguments]",ve="[object Array]",de="[object Boolean]",ue="[object Date]",oe="[object Error]",De="[object Function]",Ve="[object GeneratorFunction]",Le="[object Map]",ke="[object Number]",rt="[object Object]",Qe="[object RegExp]",Xe="[object Set]",ut="[object String]",pt="[object Symbol]",yt="[object WeakMap]",qe="[object ArrayBuffer]",lt="[object DataView]",vt="[object Float32Array]",mt="[object Float64Array]",dt="[object Int8Array]",kt="[object Int16Array]",It="[object Int32Array]",At="[object Uint8Array]",jt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",$t="[object Uint32Array]",St={};St[ye]=St[ve]=St[qe]=St[lt]=St[de]=St[ue]=St[vt]=St[mt]=St[dt]=St[kt]=St[It]=St[Le]=St[ke]=St[rt]=St[Qe]=St[Xe]=St[ut]=St[pt]=St[At]=St[jt]=St[Nt]=St[$t]=!0,St[oe]=St[De]=St[yt]=!1;function Mt(pe,G,K,we,Re,be){var Ae,T=G&fe,Ie=G&te,W=G≠if(K&&(Ae=Re?K(pe,we,Re,be):K(pe)),Ae!==void 0)return Ae;if(!J(pe))return pe;var O=M(pe);if(O){if(Ae=H(pe),!T)return g(pe,Ae)}else{var P=_(pe),ie=P==De||P==Ve;if(C(pe))return A(pe,T);if(P==rt||P==ye||ie&&!Re){if(Ae=Ie||ie?{}:X(pe),!T)return Ie?N(pe,b(Ae,pe)):L(pe,d(Ae,pe))}else{if(!St[P])return Re?pe:{};Ae=R(pe,P,T)}}be||(be=new c);var D=be.get(pe);if(D)return D;be.set(pe,Ae),q(pe)?pe.forEach(function(Oe){Ae.add(Mt(Oe,G,K,Oe,pe,be))}):V(pe)&&pe.forEach(function(Oe,Pe){Ae.set(Pe,Mt(Oe,G,K,Pe,pe,be))});var ee=W?Ie?j:B:Ie?Y:Q,ce=O?void 0:ee(pe);return v(ce||pe,function(Oe,Pe){ce&&(Pe=Oe,Oe=pe[Pe]),x(Ae,Pe,Mt(Oe,G,K,Pe,pe,be))}),Ae}h.exports=Mt},3118:(h,I,o)=>{var c=o(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var A=new d;return d.prototype=void 0,A}}();h.exports=x},41848:h=>{function I(o,c,v,x){for(var d=o.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(o[b],b,o))return b;return-1}h.exports=I},35764:(h,I,o)=>{var c=o(62488),v=o(37285);function x(d,b,A,g,L){var N=-1,B=d.length;for(A||(A=v),L||(L=[]);++N<B;){var j=d[N];b>0&&A(j)?b>1?x(j,b-1,A,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,o)=>{var c=o(71811),v=o(40327);function x(d,b){b=c(b,d);for(var A=0,g=b.length;d!=null&&A<g;)d=d[v(b[A++])];return A&&A==g?d:void 0}h.exports=x},68866:(h,I,o)=>{var c=o(62488),v=o(1469);function x(d,b,A){var g=b(d);return v(d)?g:c(g,A(d))}h.exports=x},44239:(h,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),d="[object Null]",b="[object Undefined]",A=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:A&&A in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(o,c){return o!=null&&c in Object(o)}h.exports=I},9454:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,o)=>{var c=o(2492),v=o(37005);function x(d,b,A,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,A,g,x,L)}h.exports=x},2492:(h,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),d=o(16096),b=o(98882),A=o(1469),g=o(44144),L=o(36719),N=1,B="[object Arguments]",j="[object Array]",_="[object Object]",H=Object.prototype,R=H.hasOwnProperty;function X(M,C,V,J,q,Q){var Y=A(M),fe=A(C),te=Y?j:b(M),ne=fe?j:b(C);te=te==B?_:te,ne=ne==B?_:ne;var ye=te==_,ve=ne==_,de=te==ne;if(de&&g(M)){if(!g(C))return!1;Y=!0,ye=!1}if(de&&!ye)return Q||(Q=new c),Y||L(M)?v(M,C,V,J,q,Q):x(M,C,te,V,J,q,Q);if(!(V&N)){var ue=ye&&R.call(M,"__wrapped__"),oe=ve&&R.call(C,"__wrapped__");if(ue||oe){var De=ue?M.value():M,Ve=oe?C.value():C;return Q||(Q=new c),q(De,Ve,V,J,Q)}}return de?(Q||(Q=new c),d(M,C,V,J,q,Q)):!1}h.exports=X},25588:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,o)=>{var c=o(46384),v=o(90939),x=1,d=2;function b(A,g,L,N){var B=L.length,j=B,_=!N;if(A==null)return!j;for(A=Object(A);B--;){var H=L[B];if(_&&H[2]?H[1]!==A[H[0]]:!(H[0]in A))return!1}for(;++B<j;){H=L[B];var R=H[0],X=A[R],M=H[1];if(_&&H[2]){if(X===void 0&&!(R in A))return!1}else{var C=new c;if(N)var V=N(X,M,R,A,g,C);if(!(V===void 0?v(M,X,x|d,N,C):V))return!1}}return!0}h.exports=b},28458:(h,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),d=o(80346),b=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,N=g.toString,B=L.hasOwnProperty,j=RegExp("^"+N.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(H){if(!x(H)||v(H))return!1;var R=c(H)?j:A;return R.test(d(H))}h.exports=_},29221:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),d="[object Arguments]",b="[object Array]",A="[object Boolean]",g="[object Date]",L="[object Error]",N="[object Function]",B="[object Map]",j="[object Number]",_="[object Object]",H="[object RegExp]",R="[object Set]",X="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",q="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",fe="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",de={};de[J]=de[q]=de[Q]=de[Y]=de[fe]=de[te]=de[ne]=de[ye]=de[ve]=!0,de[d]=de[b]=de[C]=de[A]=de[V]=de[g]=de[L]=de[N]=de[B]=de[j]=de[_]=de[H]=de[R]=de[X]=de[M]=!1;function ue(oe){return x(oe)&&v(oe.length)&&!!de[c(oe)]}h.exports=ue},67206:(h,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),d=o(1469),b=o(39601);function A(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=A},280:(h,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,d=x.hasOwnProperty;function b(A){if(!c(A))return v(A);var g=[];for(var L in Object(A))d.call(A,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),d=Object.prototype,b=d.hasOwnProperty;function A(g){if(!c(g))return x(g);var L=v(g),N=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||N.push(B);return N}h.exports=A},91573:(h,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function d(b){var A=v(b);return A.length==1&&A[0][2]?x(A[0][0],A[0][1]):function(g){return g===b||c(g,b,A)}}h.exports=d},16432:(h,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),d=o(15403),b=o(89162),A=o(42634),g=o(40327),L=1,N=2;function B(j,_){return d(j)&&b(_)?A(g(j),_):function(H){var R=v(H,j);return R===void 0&&R===_?x(H,j):c(_,R,L|N)}}h.exports=B},25970:(h,I,o)=>{var c=o(63012),v=o(79095);function x(d,b){return c(d,b,function(A,g){return v(d,g)})}h.exports=x},63012:(h,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function d(b,A,g){for(var L=-1,N=A.length,B={};++L<N;){var j=A[L],_=c(b,j);g(_,j)&&v(B,x(j,b),_)}return B}h.exports=d},40371:h=>{function I(o){return function(c){return c==null?void 0:c[o]}}h.exports=I},79152:(h,I,o)=>{var c=o(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function d(b,A){return x(v(b,A,c),b+"")}h.exports=d},10611:(h,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),d=o(13218),b=o(40327);function A(g,L,N,B){if(!d(g))return g;L=v(L,g);for(var j=-1,_=L.length,H=_-1,R=g;R!=null&&++j<_;){var X=b(L[j]),M=N;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=H){var C=R[X];M=B?B(C,X,R):void 0,M===void 0&&(M=d(C)?C:x(L[j+1])?[]:{})}c(R,X,M),R=R[X]}return g}h.exports=A},56560:(h,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),d=v?function(b,A){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(A),writable:!0})}:x;h.exports=d},22545:h=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}h.exports=I},80531:(h,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),d=o(33448),b=1/0,A=c?c.prototype:void 0,g=A?A.toString:void 0;function L(N){if(typeof N=="string")return N;if(x(N))return v(N,L)+"";if(d(N))return g?g.call(N):"";var B=N+"";return B=="0"&&1/N==-b?"-0":B}h.exports=L},27561:(h,I,o)=>{var c=o(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(o){return function(c){return o(c)}}h.exports=I},74757:h=>{function I(o,c){return o.has(c)}h.exports=I},71811:(h,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),d=o(79833);function b(A,g){return c(A)?A:v(A,g)?[A]:x(d(A))}h.exports=b},74318:(h,I,o)=>{var c=o(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,A=b?b.allocUnsafe:void 0;function g(L,N){if(N)return L.slice();var B=L.length,j=A?A(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=o},40419:(h,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}h.exports=I},98363:(h,I,o)=>{var c=o(34865),v=o(89465);function x(d,b,A,g){var L=!A;A||(A={});for(var N=-1,B=b.length;++N<B;){var j=b[N],_=g?g(A[j],d[j],j,A,d):void 0;_===void 0&&(_=d[j]),L?v(A,j,_):c(A,j,_)}return A}h.exports=x},18805:(h,I,o)=>{var c=o(98363),v=o(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,o)=>{var c=o(98363),v=o(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,o)=>{var c=o(5976),v=o(16612);function x(d){return c(function(b,A){var g=-1,L=A.length,N=L>1?A[L-1]:void 0,B=L>2?A[2]:void 0;for(N=d.length>3&&typeof N=="function"?(L--,N):void 0,B&&v(A[0],A[1],B)&&(N=L<3?void 0:N,L=1),b=Object(b);++g<L;){var j=A[g];j&&d(b,j,g,N)}return b})}h.exports=x},67740:(h,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function d(b){return function(A,g,L){var N=Object(A);if(!v(A)){var B=c(g,3);A=x(A),g=function(_){return B(N[_],_,N)}}var j=b(A,g,L);return j>-1?N[B?A[j]:j]:void 0}}h.exports=d},38777:(h,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),d=1,b=2;function A(g,L,N,B,j,_){var H=N&d,R=g.length,X=L.length;if(R!=X&&!(H&&X>R))return!1;var M=_.get(g),C=_.get(L);if(M&&C)return M==L&&C==g;var V=-1,J=!0,q=N&b?new c:void 0;for(_.set(g,L),_.set(L,g);++V<R;){var Q=g[V],Y=L[V];if(B)var fe=H?B(Y,Q,V,L,g,_):B(Q,Y,V,g,L,_);if(fe!==void 0){if(fe)continue;J=!1;break}if(q){if(!v(L,function(te,ne){if(!x(q,ne)&&(Q===te||j(Q,te,N,B,_)))return q.push(ne)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,N,B,_))){J=!1;break}}return _.delete(g),_.delete(L),J}h.exports=A},18351:(h,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),d=o(67114),b=o(68776),A=o(21814),g=1,L=2,N="[object Boolean]",B="[object Date]",j="[object Error]",_="[object Map]",H="[object Number]",R="[object RegExp]",X="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",q=c?c.prototype:void 0,Q=q?q.valueOf:void 0;function Y(fe,te,ne,ye,ve,de,ue){switch(ne){case J:if(fe.byteLength!=te.byteLength||fe.byteOffset!=te.byteOffset)return!1;fe=fe.buffer,te=te.buffer;case V:return!(fe.byteLength!=te.byteLength||!de(new v(fe),new v(te)));case N:case B:case H:return x(+fe,+te);case j:return fe.name==te.name&&fe.message==te.message;case R:case M:return fe==te+"";case _:var oe=b;case X:var De=ye&g;if(oe||(oe=A),fe.size!=te.size&&!De)return!1;var Ve=ue.get(fe);if(Ve)return Ve==te;ye|=L,ue.set(fe,te);var Le=d(oe(fe),oe(te),ye,ve,de,ue);return ue.delete(fe),Le;case C:if(Q)return Q.call(fe)==Q.call(te)}return!1}h.exports=Y},16096:(h,I,o)=>{var c=o(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L,N,B,j){var _=L&v,H=c(A),R=H.length,X=c(g),M=X.length;if(R!=M&&!_)return!1;for(var C=R;C--;){var V=H[C];if(!(_?V in g:d.call(g,V)))return!1}var J=j.get(A),q=j.get(g);if(J&&q)return J==g&&q==A;var Q=!0;j.set(A,g),j.set(g,A);for(var Y=_;++C<R;){V=H[C];var fe=A[V],te=g[V];if(N)var ne=_?N(te,fe,V,g,A,j):N(fe,te,V,A,g,j);if(!(ne===void 0?fe===te||B(fe,te,L,N,j):ne)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var ye=A.constructor,ve=g.constructor;ye!=ve&&"constructor"in A&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof ve=="function"&&ve instanceof ve)&&(Q=!1)}return j.delete(A),j.delete(g),Q}h.exports=b},99021:(h,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=c},58234:(h,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,o)=>{var c=o(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,o)=>{var c=o(89162),v=o(3674);function x(d){for(var b=v(d),A=b.length;A--;){var g=b[A],L=d[g];b[A]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,o)=>{var c=o(28458),v=o(47801);function x(d,b){var A=v(d,b);return c(A)?A:void 0}h.exports=x},85924:(h,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function A(g){var L=x.call(g,b),N=g[b];try{g[b]=void 0;var B=!0}catch(_){}var j=d.call(g);return B&&(L?g[b]=N:delete g[b]),j}h.exports=A},99551:(h,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,A=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=A},51442:(h,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),d=o(70479),b=Object.getOwnPropertySymbols,A=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=A},98882:(h,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),d=o(58525),b=o(70577),A=o(44239),g=o(80346),L="[object Map]",N="[object Object]",B="[object Promise]",j="[object Set]",_="[object WeakMap]",H="[object DataView]",R=g(c),X=g(v),M=g(x),C=g(d),V=g(b),J=A;(c&&J(new c(new ArrayBuffer(1)))!=H||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=_)&&(J=function(q){var Q=A(q),Y=Q==N?q.constructor:void 0,fe=Y?g(Y):"";if(fe)switch(fe){case R:return H;case X:return L;case M:return B;case C:return j;case V:return _}return Q}),h.exports=J},47801:h=>{function I(o,c){return o==null?void 0:o[c]}h.exports=I},222:(h,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),d=o(65776),b=o(41780),A=o(40327);function g(L,N,B){N=c(N,L);for(var j=-1,_=N.length,H=!1;++j<_;){var R=A(N[j]);if(!(H=L!=null&&B(L,R)))break;L=L[R]}return H||++j!=_?H:(_=L==null?0:L.length,!!_&&b(_)&&d(R,_)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(A){var g=this.__data__;if(c){var L=g[A];return L===v?void 0:L}return d.call(g,A)?g[A]:void 0}h.exports=b},21327:(h,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var A=this.__data__;return c?A[b]!==void 0:x.call(A,b)}h.exports=d},81866:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(d,b){var A=this.__data__;return this.size+=this.has(d)?0:1,A[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),d=o(40419),b=o(77133),A="[object Boolean]",g="[object Date]",L="[object Map]",N="[object Number]",B="[object RegExp]",j="[object Set]",_="[object String]",H="[object Symbol]",R="[object ArrayBuffer]",X="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",q="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",fe="[object Uint16Array]",te="[object Uint32Array]";function ne(ye,ve,de){var ue=ye.constructor;switch(ve){case R:return c(ye);case A:case g:return new ue(+ye);case X:return v(ye,de);case M:case C:case V:case J:case q:case Q:case Y:case fe:case te:return b(ye,de);case L:return new ue;case N:case _:return new ue(ye);case B:return x(ye);case j:return new ue;case H:return d(ye)}}h.exports=ne},38517:(h,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),d=c?c.isConcatSpreadable:void 0;function b(A){return x(A)||v(A)||!!(d&&A&&A[d])}h.exports=b},65776:h=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),d=o(13218);function b(A,g,L){if(!d(L))return!1;var N=typeof g;return(N=="number"?v(L)&&x(g,L.length):N=="string"&&g in L)?c(L[g],A):!1}h.exports=b},15403:(h,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(A,g){if(c(A))return!1;var L=typeof A;return L=="number"||L=="symbol"||L=="boolean"||A==null||v(A)?!0:d.test(A)||!x.test(A)||g!=null&&A in Object(g)}h.exports=b},37019:h=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}h.exports=I},15346:(h,I,o)=>{var c=o(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=o},89162:(h,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function d(b){var A=this.__data__,g=c(A,b);if(g<0)return!1;var L=A.length-1;return g==L?A.pop():x.call(A,g,1),--this.size,!0}h.exports=d},82117:(h,I,o)=>{var c=o(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,o)=>{var c=o(18470);function v(x,d){var b=this.__data__,A=c(b,x);return A<0?(++this.size,b.push([x,d])):b[A][1]=d,this}h.exports=v},24785:(h,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,o)=>{var c=o(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,o)=>{var c=o(45050);function v(x,d){var b=c(this,x),A=b.size;return b.set(x,d),this.size+=b.size==A?0:1,this}h.exports=v},68776:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}h.exports=I},24523:(h,I,o)=>{var c=o(88306),v=500;function x(d){var b=c(d,function(g){return A.size===v&&A.clear(),g}),A=b.cache;return b}h.exports=x},94536:(h,I,o)=>{var c=o(10852),v=c(Object,"create");h.exports=v},86916:(h,I,o)=>{var c=o(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}h.exports=I},31167:(h,I,o)=>{h=o.nmd(h);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,A=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=A},2333:h=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}h.exports=c},5569:h=>{function I(o,c){return function(v){return o(c(v))}}h.exports=I},45357:(h,I,o)=>{var c=o(96874),v=Math.max;function x(d,b,A){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,N=v(g.length-b,0),B=Array(N);++L<N;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=A(B),c(d,this,j)}}h.exports=x},55639:(h,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}h.exports=o},72385:h=>{function I(o){return this.__data__.has(o)}h.exports=I},21814:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,o)=>{var c=o(56560),v=o(21275),x=v(c);h.exports=x},21275:h=>{var I=800,o=16,c=Date.now;function v(x){var d=0,b=0;return function(){var A=c(),g=o-(A-b);if(b=A,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}h.exports=I},67599:h=>{function I(o){return this.__data__.get(o)}h.exports=I},44758:h=>{function I(o){return this.__data__.has(o)}h.exports=I},34309:(h,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),d=200;function b(A,g){var L=this.__data__;if(L instanceof c){var N=L.__data__;if(!v||N.length<d-1)return N.push([A,g]),this.size=++L.size,this;L=this.__data__=new x(N)}return L.set(A,g),this.size=L.size,this}h.exports=b},55514:(h,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var A=[];return b.charCodeAt(0)===46&&A.push(""),b.replace(v,function(g,L,N,B){A.push(N?B.replace(x,"$1"):L||g)}),A});h.exports=d},40327:(h,I,o)=>{var c=o(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,o=I.toString;function c(v){if(v!=null){try{return o.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=o},28583:(h,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),d=o(98612),b=o(25726),A=o(3674),g=Object.prototype,L=g.hasOwnProperty,N=x(function(B,j){if(b(j)||d(j)){v(j,A(j),B);return}for(var _ in j)L.call(j,_)&&c(B,_,j[_])});h.exports=N},50361:(h,I,o)=>{var c=o(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(o){return function(){return o}}h.exports=I},77813:h=>{function I(o,c){return o===c||o!==o&&c!==c}h.exports=I},13311:(h,I,o)=>{var c=o(67740),v=o(30998),x=c(v);h.exports=x},30998:(h,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),d=Math.max;function b(A,g,L){var N=A==null?0:A.length;if(!N)return-1;var B=L==null?0:x(L);return B<0&&(B=d(N+B,0)),c(A,v(g,3),B)}h.exports=b},85564:(h,I,o)=>{var c=o(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,o)=>{var c=o(97786);function v(x,d,b){var A=x==null?void 0:c(x,d);return A===void 0?b:A}h.exports=v},79095:(h,I,o)=>{var c=o(13),v=o(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(o){return o}h.exports=I},35694:(h,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,A=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=A},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,o)=>{var c=o(23560),v=o(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,A=b?c.Buffer:void 0,g=A?A.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,o)=>{var c=o(280),v=o(98882),x=o(35694),d=o(1469),b=o(98612),A=o(44144),g=o(25726),L=o(36719),N="[object Map]",B="[object Set]",j=Object.prototype,_=j.hasOwnProperty;function H(R){if(R==null)return!0;if(b(R)&&(d(R)||typeof R=="string"||typeof R.splice=="function"||A(R)||L(R)||x(R)))return!R.length;var X=v(R);if(X==N||X==B)return!R.size;if(g(R))return!c(R).length;for(var M in R)if(_.call(R,M))return!1;return!0}h.exports=H},23560:(h,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",A="[object Proxy]";function g(L){if(!v(L))return!1;var N=c(L);return N==d||N==b||N==x||N==A}h.exports=g},41780:h=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=o},56688:(h,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(o){return o!=null&&typeof o=="object"}h.exports=I},68630:(h,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),d="[object Object]",b=Function.prototype,A=Object.prototype,g=b.toString,L=A.hasOwnProperty,N=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var _=v(j);if(_===null)return!0;var H=L.call(_,"constructor")&&_.constructor;return typeof H=="function"&&H instanceof H&&g.call(H)==N}h.exports=B},72928:(h,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),d="[object String]";function b(A){return typeof A=="string"||!v(A)&&x(A)&&c(A)==d}h.exports=b},33448:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,o)=>{var c=o(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var A=function(){var g=arguments,L=b?b.apply(this,g):g[0],N=A.cache;if(N.has(L))return N.get(L);var B=d.apply(this,g);return A.cache=N.set(L,B)||N,B};return A.cache=new(x.Cache||c),A}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,o)=>{var c=o(25970),v=o(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),d=o(40327);function b(A){return x(A)?c(d(A)):v(A)}h.exports=b},10240:(h,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),d=o(79833);function b(A,g,L){return A=d(A),L=L==null?0:c(x(L),0,A.length),g=v(g),A.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var A=b<0?-1:1;return A*x}return b===b?b:0}h.exports=d},40554:(h,I,o)=>{var c=o(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function N(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var _=A.test(B);return _||g.test(B)?L(B.slice(2),_?2:8):b.test(B)?d:+B}h.exports=N},79833:(h,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,o)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,A=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&A&&typeof A.get=="function"?A.get:null,L=b&&Set.prototype.forEach,N=typeof WeakMap=="function"&&WeakMap.prototype,B=N?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,_=j?WeakSet.prototype.has:null,H=typeof WeakRef=="function"&&WeakRef.prototype,R=H?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=typeof BigInt=="function"?BigInt.prototype.valueOf:null,q=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Y=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=Object.prototype.propertyIsEnumerable,te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null),ne=o(24654).custom,ye=ne&&Xe(ne)?ne:null,ve=typeof Symbol=="function"&&typeof Symbol.toStringTag!="undefined"?Symbol.toStringTag:null;h.exports=function be(Ae,T,Ie,W){var O=T||{};if(yt(O,"quoteStyle")&&O.quoteStyle!=="single"&&O.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yt(O,"maxStringLength")&&(typeof O.maxStringLength=="number"?O.maxStringLength<0&&O.maxStringLength!==1/0:O.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var P=yt(O,"customInspect")?O.customInspect:!0;if(typeof P!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(yt(O,"indent")&&O.indent!==null&&O.indent!==" "&&!(parseInt(O.indent,10)===O.indent&&O.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof Ae=="undefined")return"undefined";if(Ae===null)return"null";if(typeof Ae=="boolean")return Ae?"true":"false";if(typeof Ae=="string")return Nt(Ae,O);if(typeof Ae=="number")return Ae===0?1/0/Ae>0?"0":"-0":String(Ae);if(typeof Ae=="bigint")return String(Ae)+"n";var ie=typeof O.depth=="undefined"?5:O.depth;if(typeof Ie=="undefined"&&(Ie=0),Ie>=ie&&ie>0&&typeof Ae=="object")return oe(Ae)?"[Array]":"[Object]";var D=K(O,Ie);if(typeof W=="undefined")W=[];else if(vt(W,Ae)>=0)return"[Circular]";function ee(Nn,$n,Tn){if($n&&(W=W.slice(),W.push($n)),Tn){var Kn={depth:O.depth};return yt(O,"quoteStyle")&&(Kn.quoteStyle=O.quoteStyle),be(Nn,Kn,Ie+1,W)}return be(Nn,O,Ie+1,W)}if(typeof Ae=="function"){var ce=lt(Ae),Oe=Re(Ae,ee);return"[Function"+(ce?": "+ce:" (anonymous)")+"]"+(Oe.length>0?" { "+Oe.join(", ")+" }":"")}if(Xe(Ae)){var Pe=Y?String(Ae).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(Ae);return typeof Ae=="object"&&!Y?St(Pe):Pe}if(jt(Ae)){for(var Te="<"+String(Ae.nodeName).toLowerCase(),Ge=Ae.attributes||[],He=0;He<Ge.length;He++)Te+=" "+Ge[He].name+"="+de(ue(Ge[He].value),"double",O);return Te+=">",Ae.childNodes&&Ae.childNodes.length&&(Te+="..."),Te+="</"+String(Ae.nodeName).toLowerCase()+">",Te}if(oe(Ae)){if(Ae.length===0)return"[]";var it=Re(Ae,ee);return D&&!G(it)?"["+we(it,D)+"]":"[ "+it.join(", ")+" ]"}if(Le(Ae)){var gt=Re(Ae,ee);return gt.length===0?"["+String(Ae)+"]":"{ ["+String(Ae)+"] "+gt.join(", ")+" }"}if(typeof Ae=="object"&&P){if(ye&&typeof Ae[ye]=="function")return Ae[ye]();if(typeof Ae.inspect=="function")return Ae.inspect()}if(mt(Ae)){var Ct=[];return d.call(Ae,function(Nn,$n){Ct.push(ee($n,Ae,!0)+" => "+ee(Nn,Ae))}),pe("Map",x.call(Ae),Ct,D)}if(It(Ae)){var Jt=[];return L.call(Ae,function(Nn){Jt.push(ee(Nn,Ae))}),pe("Set",g.call(Ae),Jt,D)}if(dt(Ae))return Mt("WeakMap");if(At(Ae))return Mt("WeakSet");if(kt(Ae))return Mt("WeakRef");if(rt(Ae))return St(ee(Number(Ae)));if(ut(Ae))return St(ee(J.call(Ae)));if(Qe(Ae))return St(X.call(Ae));if(ke(Ae))return St(ee(String(Ae)));if(!De(Ae)&&!Ve(Ae)){var Ft=Re(Ae,ee),wn=te?te(Ae)===Object.prototype:Ae instanceof Object||Ae.constructor===Object,Zr=Ae instanceof Object?"":"null prototype",On=!wn&&ve&&Object(Ae)===Ae&&ve in Ae?qe(Ae).slice(8,-1):Zr?"Object":"",Gi=wn||typeof Ae.constructor!="function"?"":Ae.constructor.name?Ae.constructor.name+" ":"",jr=Gi+(On||Zr?"["+[].concat(On||[],Zr||[]).join(": ")+"] ":"");return Ft.length===0?jr+"{}":D?jr+"{"+we(Ft,D)+"}":jr+"{ "+Ft.join(", ")+" }"}return String(Ae)};function de(be,Ae,T){var Ie=(T.quoteStyle||Ae)==="double"?'"':"'";return Ie+be+Ie}function ue(be){return String(be).replace(/"/g,""")}function oe(be){return qe(be)==="[object Array]"&&(!ve||!(typeof be=="object"&&ve in be))}function De(be){return qe(be)==="[object Date]"&&(!ve||!(typeof be=="object"&&ve in be))}function Ve(be){return qe(be)==="[object RegExp]"&&(!ve||!(typeof be=="object"&&ve in be))}function Le(be){return qe(be)==="[object Error]"&&(!ve||!(typeof be=="object"&&ve in be))}function ke(be){return qe(be)==="[object String]"&&(!ve||!(typeof be=="object"&&ve in be))}function rt(be){return qe(be)==="[object Number]"&&(!ve||!(typeof be=="object"&&ve in be))}function Qe(be){return qe(be)==="[object Boolean]"&&(!ve||!(typeof be=="object"&&ve in be))}function Xe(be){if(Y)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch(Ae){}return!1}function ut(be){if(!be||typeof be!="object"||!J)return!1;try{return J.call(be),!0}catch(Ae){}return!1}var pt=Object.prototype.hasOwnProperty||function(be){return be in this};function yt(be,Ae){return pt.call(be,Ae)}function qe(be){return M.call(be)}function lt(be){if(be.name)return be.name;var Ae=V.call(C.call(be),/^function\s*([\w$]+)/);return Ae?Ae[1]:null}function vt(be,Ae){if(be.indexOf)return be.indexOf(Ae);for(var T=0,Ie=be.length;T<Ie;T++)if(be[T]===Ae)return T;return-1}function mt(be){if(!x||!be||typeof be!="object")return!1;try{x.call(be);try{g.call(be)}catch(Ae){return!0}return be instanceof Map}catch(Ae){}return!1}function dt(be){if(!B||!be||typeof be!="object")return!1;try{B.call(be,B);try{_.call(be,_)}catch(Ae){return!0}return be instanceof WeakMap}catch(Ae){}return!1}function kt(be){if(!R||!be||typeof be!="object")return!1;try{return R.call(be),!0}catch(Ae){}return!1}function It(be){if(!g||!be||typeof be!="object")return!1;try{g.call(be);try{x.call(be)}catch(Ae){return!0}return be instanceof Set}catch(Ae){}return!1}function At(be){if(!_||!be||typeof be!="object")return!1;try{_.call(be,_);try{B.call(be,B)}catch(Ae){return!0}return be instanceof WeakSet}catch(Ae){}return!1}function jt(be){return!be||typeof be!="object"?!1:typeof HTMLElement!="undefined"&&be instanceof HTMLElement?!0:typeof be.nodeName=="string"&&typeof be.getAttribute=="function"}function Nt(be,Ae){if(be.length>Ae.maxStringLength){var T=be.length-Ae.maxStringLength,Ie="... "+T+" more character"+(T>1?"s":"");return Nt(be.slice(0,Ae.maxStringLength),Ae)+Ie}var W=be.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,$t);return de(W,"single",Ae)}function $t(be){var Ae=be.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ae];return T?"\\"+T:"\\x"+(Ae<16?"0":"")+Ae.toString(16).toUpperCase()}function St(be){return"Object("+be+")"}function Mt(be){return be+" { ? }"}function pe(be,Ae,T,Ie){var W=Ie?we(T,Ie):T.join(", ");return be+" ("+Ae+") {"+W+"}"}function G(be){for(var Ae=0;Ae<be.length;Ae++)if(vt(be[Ae],`
|
|
498
498
|
`)>=0)return!1;return!0}function K(be,Ae){var T;if(be.indent===" ")T=" ";else if(typeof be.indent=="number"&&be.indent>0)T=Array(be.indent+1).join(" ");else return null;return{base:T,prev:Array(Ae+1).join(T)}}function we(be,Ae){if(be.length===0)return"";var T=`
|
|
499
499
|
`+Ae.prev+Ae.base;return T+be.join(","+T)+`
|
|
500
|
-
`+Ae.prev}function Re(be,Ae){var T=oe(be),Ie=[];if(T){Ie.length=be.length;for(var W=0;W<be.length;W++)Ie[W]=yt(be,W)?Ae(be[W],be):""}var O=typeof q=="function"?q(be):[],P;if(Y){P={};for(var ie=0;ie<O.length;ie++)P["$"+O[ie]]=O[ie]}for(var D in be)!yt(be,D)||T&&String(Number(D))===D&&D<be.length||Y&&P["$"+D]instanceof Symbol||(/[^\w$]/.test(D)?Ie.push(Ae(D,be)+": "+Ae(be[D],be)):Ie.push(D+": "+Ae(be[D],be)));if(typeof q=="function")for(var ee=0;ee<O.length;ee++)fe.call(be,O[ee])&&Ie.push("["+Ae(O[ee])+"]: "+Ae(be[O[ee]],be));return Ie}},9779:(h,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,N){for(var B=new v(L.length),j=0,_,H,R,X=0,M=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:_=0,H=0,j=1;break;case 43:N&&(C=32);default:B[M++]=C;break}break;case 1:if(R=C,C>=48&&C<=57)_=C-48;else if(C>=65&&C<=70)_=C-65+10;else if(C>=97&&C<=102)_=C-97+10;else{B[M++]=37,B[M++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)H=C-48;else if(C>=65&&C<=70)H=C-65+10;else if(C>=97&&C<=102)H=C-97+10;else{B[M++]=37,B[M++]=R,B[M++]=C;break}B[M++]=16*_+H;break}}return B.slice(0,M-1)};function x(L,N){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,N).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var N="",B=0,j=0;j<L.length;++j){var _=L.charCodeAt(j);if(!(_===33||_===45||_===46||_===95||_===126||_>=39&&_<=42||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122)){if(j-B>0&&(N+=L.slice(B,j)),_<128){B=j+1,N+=d[_];continue}if(_<2048){B=j+1,N+=d[192|_>>6]+d[128|_&63];continue}if(_<55296||_>=57344){B=j+1,N+=d[224|_>>12]+d[128|_>>6&63]+d[128|_&63];continue}++j;var H;if(j<L.length)H=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,_=65536+((_&1023)<<10|H),N+=d[240|_>>18]+d[128|_>>12&63]+d[128|_>>6&63]+d[128|_&63]}}return B===0?L:B<L.length?N+L.slice(B):N};var A=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,N,B,j){N=N||"&",B=B||"=";var _=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(_=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var H=Object.keys(L),R=H.length,X=R-1,M="",C=0;C<R;++C){var V=H[C],J=L[V],q=_(A(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,fe=0;fe<Q;++fe)M+=q+_(A(J[fe])),fe<Y&&(M+=N);Q&&C<X&&(M+=N)}else M+=q+_(A(J)),C<X&&(M+=N)}return M}return""},c.parse=c.decode=function(L,N,B,j){N=N||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof N!="string"&&(N+="");var H=B.length,R=N.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var M=1/0;X>0&&(M=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],q=0,Q=0,Y=0,fe="",te="",ne=V,ye=V,ve=0,de=0;de<L.length;++de){var ue=L.charCodeAt(de);if(ue===N.charCodeAt(Q)){if(++Q===R){var oe=de-Q+1;if(Y<H?q<oe&&(fe+=L.slice(q,oe)):q<oe&&(te+=L.slice(q,oe)),ne&&(fe=g(fe,C)),ye&&(te=g(te,C)),J.indexOf(fe)===-1)_[fe]=te,J[J.length]=fe;else{var De=_[fe];De instanceof Array?De[De.length]=te:_[fe]=[De,te]}if(--M==0)break;ne=ye=V,ve=0,fe=te="",q=de+1,Q=Y=0}continue}else Q=0,ye||(ue===37?ve=1:ve>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ve==3&&(ye=!0):ve=0);if(Y<H)if(ue===B.charCodeAt(Y)){if(++Y===H){var oe=de-Y+1;q<oe&&(fe+=L.slice(q,oe)),ve=0,q=de+1}continue}else Y=0,ne||(ue===37?ve=1:ve>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ve==3&&(ne=!0):ve=0);ue===43&&(Y<H?(de-q>0&&(fe+=L.slice(q,de)),fe+="%20",ne=!0):(de-q>0&&(te+=L.slice(q,de)),te+="%20",ye=!0),q=de+1)}if(M>0&&(q<L.length||Y>0))if(q<L.length&&(Y<H?fe+=L.slice(q):Q<R&&(te+=L.slice(q))),ne&&(fe=g(fe,C)),ye&&(te=g(te,C)),J.indexOf(fe)===-1)_[fe]=te,J[J.length]=fe;else{var De=_[fe];De instanceof Array?De[De.length]=te:_[fe]=[De,te]}return _};function g(L,N){try{return N(L)}catch(B){return c.unescape(L,!0)}}},29656:(h,I,o)=>{"use strict";var c;function v(){return v=Object.assign||function(_){for(var H=1;H<arguments.length;H++){var R=arguments[H];for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&(_[X]=R[X])}return _},v.apply(this,arguments)}function x(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(R){return typeof R}:x=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},x(_)}var d=function(){var _=function(R,X){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var V in C)C.hasOwnProperty(V)&&(M[V]=C[V])},_(R,X)};return function(H,R){_(H,R);function X(){this.constructor=H}H.prototype=R===null?Object.create(R):(X.prototype=R.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=o(67294),A=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,g;A||(g=o(4631));var L=function(){function _(){}return _.equals=function(H,R){var X=this,M=Object.keys,C=x(H),V=x(R);return H&&R&&C==="object"&&C===V?M(H).length===M(R).length&&M(H).every(function(J){return X.equals(H[J],R[J])}):H===R},_}(),N=function(){function _(H,R){this.editor=H,this.props=R}return _.prototype.delegateCursor=function(H,R,X){var M=this.editor.getDoc();X&&this.editor.focus(),R?M.setCursor(H):M.setCursor(H,null,{scroll:!1})},_.prototype.delegateScroll=function(H){this.editor.scrollTo(H.x,H.y)},_.prototype.delegateSelection=function(H,R){var X=this.editor.getDoc();X.setSelections(H),R&&this.editor.focus()},_.prototype.apply=function(H){H&&H.selection&&H.selection.ranges&&this.delegateSelection(H.selection.ranges,H.selection.focus||!1),H&&H.cursor&&this.delegateCursor(H.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1),H&&H.scroll&&this.delegateScroll(H.scroll)},_.prototype.applyNext=function(H,R,X){H&&H.selection&&H.selection.ranges&&R&&R.selection&&R.selection.ranges&&!L.equals(H.selection.ranges,R.selection.ranges)&&this.delegateSelection(R.selection.ranges,R.selection.focus||!1),H&&H.cursor&&R&&R.cursor&&!L.equals(H.cursor,R.cursor)&&this.delegateCursor(X.cursor||R.cursor,R.autoScroll||!1,R.autoCursor||!1),H&&H.scroll&&R&&R.scroll&&!L.equals(H.scroll,R.scroll)&&this.delegateScroll(R.scroll)},_.prototype.applyUserDefined=function(H,R){R&&R.cursor&&this.delegateCursor(R.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1)},_.prototype.wire=function(H){var R=this;Object.keys(H||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":R.editor.on("blur",function(M,C){R.props.onBlur(R.editor,C)});break;case"onContextMenu":{R.editor.on("contextmenu",function(M,C){R.props.onContextMenu(R.editor,C)});break}case"onCopy":{R.editor.on("copy",function(M,C){R.props.onCopy(R.editor,C)});break}case"onCursor":R.editor.on("cursorActivity",function(M){R.props.onCursor(R.editor,R.editor.getDoc().getCursor())});break;case"onCursorActivity":R.editor.on("cursorActivity",function(M){R.props.onCursorActivity(R.editor)});break;case"onCut":{R.editor.on("cut",function(M,C){R.props.onCut(R.editor,C)});break}case"onDblClick":{R.editor.on("dblclick",function(M,C){R.props.onDblClick(R.editor,C)});break}case"onDragEnter":R.editor.on("dragenter",function(M,C){R.props.onDragEnter(R.editor,C)});break;case"onDragLeave":{R.editor.on("dragleave",function(M,C){R.props.onDragLeave(R.editor,C)});break}case"onDragOver":R.editor.on("dragover",function(M,C){R.props.onDragOver(R.editor,C)});break;case"onDragStart":{R.editor.on("dragstart",function(M,C){R.props.onDragStart(R.editor,C)});break}case"onDrop":R.editor.on("drop",function(M,C){R.props.onDrop(R.editor,C)});break;case"onFocus":R.editor.on("focus",function(M,C){R.props.onFocus(R.editor,C)});break;case"onGutterClick":R.editor.on("gutterClick",function(M,C,V,J){R.props.onGutterClick(R.editor,C,V,J)});break;case"onInputRead":R.editor.on("inputRead",function(M,C){R.props.onInputRead(R.editor,C)});break;case"onKeyDown":R.editor.on("keydown",function(M,C){R.props.onKeyDown(R.editor,C)});break;case"onKeyHandled":R.editor.on("keyHandled",function(M,C,V){R.props.onKeyHandled(R.editor,C,V)});break;case"onKeyPress":R.editor.on("keypress",function(M,C){R.props.onKeyPress(R.editor,C)});break;case"onKeyUp":R.editor.on("keyup",function(M,C){R.props.onKeyUp(R.editor,C)});break;case"onMouseDown":{R.editor.on("mousedown",function(M,C){R.props.onMouseDown(R.editor,C)});break}case"onPaste":{R.editor.on("paste",function(M,C){R.props.onPaste(R.editor,C)});break}case"onRenderLine":{R.editor.on("renderLine",function(M,C,V){R.props.onRenderLine(R.editor,C,V)});break}case"onScroll":R.editor.on("scroll",function(M){R.props.onScroll(R.editor,R.editor.getScrollInfo())});break;case"onSelection":R.editor.on("beforeSelectionChange",function(M,C){R.props.onSelection(R.editor,C)});break;case"onTouchStart":{R.editor.on("touchstart",function(M,C){R.props.onTouchStart(R.editor,C)});break}case"onUpdate":R.editor.on("update",function(M){R.props.onUpdate(R.editor)});break;case"onViewportChange":R.editor.on("viewportChange",function(M,C,V){R.props.onViewportChange(R.editor,C,V)});break}})},_}(),B=function(_){d(H,_);function H(R){var X=_.call(this,R)||this;return A||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return H.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){M.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(R.value):this.initChange(R.value||"")),this.hydrated=!0},H.prototype.initChange=function(R){this.emulating=!0;var X=this.editor.getDoc(),M=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(R||"",{line:0,ch:0},{line:M,ch:C}),this.mirror.setValue(R),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},H.prototype.resolveChange=function(R){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),R&&R!==X.getValue()){var M=X.getCursor();X.setValue(R),X.setCursor(M)}this.emulating=!1,this.deferred=null},H.prototype.mirrorChange=function(R){var X=this.editor.getDoc();return R.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):R.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(R.text,R.from,R.to,R.origin),this.mirror.getValue()},H.prototype.componentDidMount=function(){var R=this;A||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){R.mirror.setHistory(R.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){R.mirror.setCursor(R.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,M){if(!R.emulating){M.cancel(),R.deferred=M;var C=R.mirrorChange(R.deferred);R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,R.deferred,C)}}),this.editor.on("change",function(X,M){!R.mounted||R.props.onChange&&R.props.onChange(R.editor,M,R.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},H.prototype.componentDidUpdate=function(R){if(!A){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(R,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0}},H.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(R,X){return!A},H.prototype.render=function(){var R=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},H}(b.Component);I.fk=B;var j=function(_){d(H,_);function H(R){var X=_.call(this,R)||this;return A||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return H.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){M.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),q=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(R.value||"",{line:0,ch:0},{line:q,ch:Q})}this.hydrated=!0},H.prototype.componentDidMount=function(){var R=this;A||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.editor.on("beforeChange",function(X,M){R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,M,R.editor.getValue(),R.onBeforeChangeCb)}),this.editor.on("change",function(X,M){!R.mounted||!R.props.onChange||(R.props.onBeforeChange?R.continueChange&&R.props.onChange(R.editor,M,R.editor.getValue()):R.props.onChange(R.editor,M,R.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},H.prototype.componentDidUpdate=function(R){if(this.detached&&this.props.detach===!1&&(this.detached=!1,R.editorDidAttach&&R.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,R.editorDidDetach&&R.editorDidDetach(this.editor)),!(A||this.detached)){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!R.autoCursor&&R.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(R),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0)}},H.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(R,X){var M=!0;return A&&(M=!1),this.detached&&R.detach&&(M=!1),M},H.prototype.render=function(){var R=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},H}(b.Component);c=j},35666:h=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",A=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Ve,Le,ke){return Object.defineProperty(Ve,Le,{value:ke,enumerable:!0,configurable:!0,writable:!0}),Ve[Le]}try{L({},"")}catch(Ve){L=function(Le,ke,rt){return Le[ke]=rt}}function N(Ve,Le,ke,rt){var Ze=Le&&Le.prototype instanceof M?Le:M,Qe=Object.create(Ze.prototype),ut=new ue(rt||[]);return Qe._invoke=ne(Ve,ke,ut),Qe}o.wrap=N;function B(Ve,Le,ke){try{return{type:"normal",arg:Ve.call(Le,ke)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",_="suspendedYield",H="executing",R="completed",X={};function M(){}function C(){}function V(){}var J={};J[b]=function(){return this};var q=Object.getPrototypeOf,Q=q&&q(q(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=M.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function fe(Ve){["next","throw","return"].forEach(function(Le){L(Ve,Le,function(ke){return this._invoke(Le,ke)})})}o.isGeneratorFunction=function(Ve){var Le=typeof Ve=="function"&&Ve.constructor;return Le?Le===C||(Le.displayName||Le.name)==="GeneratorFunction":!1},o.mark=function(Ve){return Object.setPrototypeOf?Object.setPrototypeOf(Ve,V):(Ve.__proto__=V,L(Ve,g,"GeneratorFunction")),Ve.prototype=Object.create(Y),Ve},o.awrap=function(Ve){return{__await:Ve}};function te(Ve,Le){function ke(Qe,ut,pt,yt){var qe=B(Ve[Qe],Ve,ut);if(qe.type==="throw")yt(qe.arg);else{var lt=qe.arg,vt=lt.value;return vt&&typeof vt=="object"&&v.call(vt,"__await")?Le.resolve(vt.__await).then(function(mt){ke("next",mt,pt,yt)},function(mt){ke("throw",mt,pt,yt)}):Le.resolve(vt).then(function(mt){lt.value=mt,pt(lt)},function(mt){return ke("throw",mt,pt,yt)})}}var rt;function Ze(Qe,ut){function pt(){return new Le(function(yt,qe){ke(Qe,ut,yt,qe)})}return rt=rt?rt.then(pt,pt):pt()}this._invoke=Ze}fe(te.prototype),te.prototype[A]=function(){return this},o.AsyncIterator=te,o.async=function(Ve,Le,ke,rt,Ze){Ze===void 0&&(Ze=Promise);var Qe=new te(N(Ve,Le,ke,rt),Ze);return o.isGeneratorFunction(Le)?Qe:Qe.next().then(function(ut){return ut.done?ut.value:Qe.next()})};function ne(Ve,Le,ke){var rt=j;return function(Qe,ut){if(rt===H)throw new Error("Generator is already running");if(rt===R){if(Qe==="throw")throw ut;return De()}for(ke.method=Qe,ke.arg=ut;;){var pt=ke.delegate;if(pt){var yt=ye(pt,ke);if(yt){if(yt===X)continue;return yt}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(rt===j)throw rt=R,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);rt=H;var qe=B(Ve,Le,ke);if(qe.type==="normal"){if(rt=ke.done?R:_,qe.arg===X)continue;return{value:qe.arg,done:ke.done}}else qe.type==="throw"&&(rt=R,ke.method="throw",ke.arg=qe.arg)}}}function ye(Ve,Le){var ke=Ve.iterator[Le.method];if(ke===x){if(Le.delegate=null,Le.method==="throw"){if(Ve.iterator.return&&(Le.method="return",Le.arg=x,ye(Ve,Le),Le.method==="throw"))return X;Le.method="throw",Le.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(ke,Ve.iterator,Le.arg);if(rt.type==="throw")return Le.method="throw",Le.arg=rt.arg,Le.delegate=null,X;var Ze=rt.arg;if(!Ze)return Le.method="throw",Le.arg=new TypeError("iterator result is not an object"),Le.delegate=null,X;if(Ze.done)Le[Ve.resultName]=Ze.value,Le.next=Ve.nextLoc,Le.method!=="return"&&(Le.method="next",Le.arg=x);else return Ze;return Le.delegate=null,X}fe(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function ve(Ve){var Le={tryLoc:Ve[0]};1 in Ve&&(Le.catchLoc=Ve[1]),2 in Ve&&(Le.finallyLoc=Ve[2],Le.afterLoc=Ve[3]),this.tryEntries.push(Le)}function de(Ve){var Le=Ve.completion||{};Le.type="normal",delete Le.arg,Ve.completion=Le}function ue(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(ve,this),this.reset(!0)}o.keys=function(Ve){var Le=[];for(var ke in Ve)Le.push(ke);return Le.reverse(),function rt(){for(;Le.length;){var Ze=Le.pop();if(Ze in Ve)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function oe(Ve){if(Ve){var Le=Ve[b];if(Le)return Le.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var ke=-1,rt=function Ze(){for(;++ke<Ve.length;)if(v.call(Ve,ke))return Ze.value=Ve[ke],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:De}}o.values=oe;function De(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(Ve){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(de),!Ve)for(var Le in this)Le.charAt(0)==="t"&&v.call(this,Le)&&!isNaN(+Le.slice(1))&&(this[Le]=x)},stop:function(){this.done=!0;var Ve=this.tryEntries[0],Le=Ve.completion;if(Le.type==="throw")throw Le.arg;return this.rval},dispatchException:function(Ve){if(this.done)throw Ve;var Le=this;function ke(yt,qe){return Qe.type="throw",Qe.arg=Ve,Le.next=yt,qe&&(Le.method="next",Le.arg=x),!!qe}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Qe=Ze.completion;if(Ze.tryLoc==="root")return ke("end");if(Ze.tryLoc<=this.prev){var ut=v.call(Ze,"catchLoc"),pt=v.call(Ze,"finallyLoc");if(ut&&pt){if(this.prev<Ze.catchLoc)return ke(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return ke(Ze.finallyLoc)}else if(ut){if(this.prev<Ze.catchLoc)return ke(Ze.catchLoc,!0)}else if(pt){if(this.prev<Ze.finallyLoc)return ke(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ve,Le){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var rt=this.tryEntries[ke];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Ve==="break"||Ve==="continue")&&Ze.tryLoc<=Le&&Le<=Ze.finallyLoc&&(Ze=null);var Qe=Ze?Ze.completion:{};return Qe.type=Ve,Qe.arg=Le,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Qe)},complete:function(Ve,Le){if(Ve.type==="throw")throw Ve.arg;return Ve.type==="break"||Ve.type==="continue"?this.next=Ve.arg:Ve.type==="return"?(this.rval=this.arg=Ve.arg,this.method="return",this.next="end"):Ve.type==="normal"&&Le&&(this.next=Le),X},finish:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.finallyLoc===Ve)return this.complete(ke.completion,ke.afterLoc),de(ke),X}},catch:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.tryLoc===Ve){var rt=ke.completion;if(rt.type==="throw"){var Ze=rt.arg;de(ke)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Ve,Le,ke){return this.delegate={iterator:oe(Ve),resultName:Le,nextLoc:ke},this.method==="next"&&(this.arg=x),X}},o}(h.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),A=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),N=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),_=v("Map.prototype.has",!0),H=function(C,V){for(var J=C,q;(q=J.next)!==null;J=q)if(q.key===V)return J.next=q.next,q.next=C.next,C.next=q,q},R=function(C,V){var J=H(C,V);return J&&J.value},X=function(C,V,J){var q=H(C,V);q?q.value=J:C.next={key:V,next:C.next,value:J}},M=function(C,V){return!!H(C,V)};h.exports=function(){var V,J,q,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(A){if(J)return B(J,Y)}else if(q)return R(q,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return N(V,Y)}else if(A){if(J)return _(J,Y)}else if(q)return M(q,Y);return!1},set:function(Y,fe){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,fe)):A?(J||(J=new A),j(J,Y,fe)):(q||(q={key:{},next:null}),X(q,Y,fe))}};return Q}},13837:(h,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,o)=>{"use strict";/*!
|
|
500
|
+
`+Ae.prev}function Re(be,Ae){var T=oe(be),Ie=[];if(T){Ie.length=be.length;for(var W=0;W<be.length;W++)Ie[W]=yt(be,W)?Ae(be[W],be):""}var O=typeof q=="function"?q(be):[],P;if(Y){P={};for(var ie=0;ie<O.length;ie++)P["$"+O[ie]]=O[ie]}for(var D in be)!yt(be,D)||T&&String(Number(D))===D&&D<be.length||Y&&P["$"+D]instanceof Symbol||(/[^\w$]/.test(D)?Ie.push(Ae(D,be)+": "+Ae(be[D],be)):Ie.push(D+": "+Ae(be[D],be)));if(typeof q=="function")for(var ee=0;ee<O.length;ee++)fe.call(be,O[ee])&&Ie.push("["+Ae(O[ee])+"]: "+Ae(be[O[ee]],be));return Ie}},9779:(h,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,N){for(var B=new v(L.length),j=0,_,H,R,X=0,M=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:_=0,H=0,j=1;break;case 43:N&&(C=32);default:B[M++]=C;break}break;case 1:if(R=C,C>=48&&C<=57)_=C-48;else if(C>=65&&C<=70)_=C-65+10;else if(C>=97&&C<=102)_=C-97+10;else{B[M++]=37,B[M++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)H=C-48;else if(C>=65&&C<=70)H=C-65+10;else if(C>=97&&C<=102)H=C-97+10;else{B[M++]=37,B[M++]=R,B[M++]=C;break}B[M++]=16*_+H;break}}return B.slice(0,M-1)};function x(L,N){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,N).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var N="",B=0,j=0;j<L.length;++j){var _=L.charCodeAt(j);if(!(_===33||_===45||_===46||_===95||_===126||_>=39&&_<=42||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122)){if(j-B>0&&(N+=L.slice(B,j)),_<128){B=j+1,N+=d[_];continue}if(_<2048){B=j+1,N+=d[192|_>>6]+d[128|_&63];continue}if(_<55296||_>=57344){B=j+1,N+=d[224|_>>12]+d[128|_>>6&63]+d[128|_&63];continue}++j;var H;if(j<L.length)H=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,_=65536+((_&1023)<<10|H),N+=d[240|_>>18]+d[128|_>>12&63]+d[128|_>>6&63]+d[128|_&63]}}return B===0?L:B<L.length?N+L.slice(B):N};var A=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,N,B,j){N=N||"&",B=B||"=";var _=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(_=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var H=Object.keys(L),R=H.length,X=R-1,M="",C=0;C<R;++C){var V=H[C],J=L[V],q=_(A(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,fe=0;fe<Q;++fe)M+=q+_(A(J[fe])),fe<Y&&(M+=N);Q&&C<X&&(M+=N)}else M+=q+_(A(J)),C<X&&(M+=N)}return M}return""},c.parse=c.decode=function(L,N,B,j){N=N||"&",B=B||"=";var _={};if(typeof L!="string"||L.length===0)return _;typeof N!="string"&&(N+="");var H=B.length,R=N.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var M=1/0;X>0&&(M=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],q=0,Q=0,Y=0,fe="",te="",ne=V,ye=V,ve=0,de=0;de<L.length;++de){var ue=L.charCodeAt(de);if(ue===N.charCodeAt(Q)){if(++Q===R){var oe=de-Q+1;if(Y<H?q<oe&&(fe+=L.slice(q,oe)):q<oe&&(te+=L.slice(q,oe)),ne&&(fe=g(fe,C)),ye&&(te=g(te,C)),J.indexOf(fe)===-1)_[fe]=te,J[J.length]=fe;else{var De=_[fe];De instanceof Array?De[De.length]=te:_[fe]=[De,te]}if(--M==0)break;ne=ye=V,ve=0,fe=te="",q=de+1,Q=Y=0}continue}else Q=0,ye||(ue===37?ve=1:ve>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ve==3&&(ye=!0):ve=0);if(Y<H)if(ue===B.charCodeAt(Y)){if(++Y===H){var oe=de-Y+1;q<oe&&(fe+=L.slice(q,oe)),ve=0,q=de+1}continue}else Y=0,ne||(ue===37?ve=1:ve>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++ve==3&&(ne=!0):ve=0);ue===43&&(Y<H?(de-q>0&&(fe+=L.slice(q,de)),fe+="%20",ne=!0):(de-q>0&&(te+=L.slice(q,de)),te+="%20",ye=!0),q=de+1)}if(M>0&&(q<L.length||Y>0))if(q<L.length&&(Y<H?fe+=L.slice(q):Q<R&&(te+=L.slice(q))),ne&&(fe=g(fe,C)),ye&&(te=g(te,C)),J.indexOf(fe)===-1)_[fe]=te,J[J.length]=fe;else{var De=_[fe];De instanceof Array?De[De.length]=te:_[fe]=[De,te]}return _};function g(L,N){try{return N(L)}catch(B){return c.unescape(L,!0)}}},29656:(h,I,o)=>{"use strict";var c;function v(){return v=Object.assign||function(_){for(var H=1;H<arguments.length;H++){var R=arguments[H];for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&(_[X]=R[X])}return _},v.apply(this,arguments)}function x(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(R){return typeof R}:x=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},x(_)}var d=function(){var _=function(R,X){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var V in C)C.hasOwnProperty(V)&&(M[V]=C[V])},_(R,X)};return function(H,R){_(H,R);function X(){this.constructor=H}H.prototype=R===null?Object.create(R):(X.prototype=R.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=o(67294),A=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,g;A||(g=o(4631));var L=function(){function _(){}return _.equals=function(H,R){var X=this,M=Object.keys,C=x(H),V=x(R);return H&&R&&C==="object"&&C===V?M(H).length===M(R).length&&M(H).every(function(J){return X.equals(H[J],R[J])}):H===R},_}(),N=function(){function _(H,R){this.editor=H,this.props=R}return _.prototype.delegateCursor=function(H,R,X){var M=this.editor.getDoc();X&&this.editor.focus(),R?M.setCursor(H):M.setCursor(H,null,{scroll:!1})},_.prototype.delegateScroll=function(H){this.editor.scrollTo(H.x,H.y)},_.prototype.delegateSelection=function(H,R){var X=this.editor.getDoc();X.setSelections(H),R&&this.editor.focus()},_.prototype.apply=function(H){H&&H.selection&&H.selection.ranges&&this.delegateSelection(H.selection.ranges,H.selection.focus||!1),H&&H.cursor&&this.delegateCursor(H.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1),H&&H.scroll&&this.delegateScroll(H.scroll)},_.prototype.applyNext=function(H,R,X){H&&H.selection&&H.selection.ranges&&R&&R.selection&&R.selection.ranges&&!L.equals(H.selection.ranges,R.selection.ranges)&&this.delegateSelection(R.selection.ranges,R.selection.focus||!1),H&&H.cursor&&R&&R.cursor&&!L.equals(H.cursor,R.cursor)&&this.delegateCursor(X.cursor||R.cursor,R.autoScroll||!1,R.autoCursor||!1),H&&H.scroll&&R&&R.scroll&&!L.equals(H.scroll,R.scroll)&&this.delegateScroll(R.scroll)},_.prototype.applyUserDefined=function(H,R){R&&R.cursor&&this.delegateCursor(R.cursor,H.autoScroll||!1,this.editor.getOption("autofocus")||!1)},_.prototype.wire=function(H){var R=this;Object.keys(H||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":R.editor.on("blur",function(M,C){R.props.onBlur(R.editor,C)});break;case"onContextMenu":{R.editor.on("contextmenu",function(M,C){R.props.onContextMenu(R.editor,C)});break}case"onCopy":{R.editor.on("copy",function(M,C){R.props.onCopy(R.editor,C)});break}case"onCursor":R.editor.on("cursorActivity",function(M){R.props.onCursor(R.editor,R.editor.getDoc().getCursor())});break;case"onCursorActivity":R.editor.on("cursorActivity",function(M){R.props.onCursorActivity(R.editor)});break;case"onCut":{R.editor.on("cut",function(M,C){R.props.onCut(R.editor,C)});break}case"onDblClick":{R.editor.on("dblclick",function(M,C){R.props.onDblClick(R.editor,C)});break}case"onDragEnter":R.editor.on("dragenter",function(M,C){R.props.onDragEnter(R.editor,C)});break;case"onDragLeave":{R.editor.on("dragleave",function(M,C){R.props.onDragLeave(R.editor,C)});break}case"onDragOver":R.editor.on("dragover",function(M,C){R.props.onDragOver(R.editor,C)});break;case"onDragStart":{R.editor.on("dragstart",function(M,C){R.props.onDragStart(R.editor,C)});break}case"onDrop":R.editor.on("drop",function(M,C){R.props.onDrop(R.editor,C)});break;case"onFocus":R.editor.on("focus",function(M,C){R.props.onFocus(R.editor,C)});break;case"onGutterClick":R.editor.on("gutterClick",function(M,C,V,J){R.props.onGutterClick(R.editor,C,V,J)});break;case"onInputRead":R.editor.on("inputRead",function(M,C){R.props.onInputRead(R.editor,C)});break;case"onKeyDown":R.editor.on("keydown",function(M,C){R.props.onKeyDown(R.editor,C)});break;case"onKeyHandled":R.editor.on("keyHandled",function(M,C,V){R.props.onKeyHandled(R.editor,C,V)});break;case"onKeyPress":R.editor.on("keypress",function(M,C){R.props.onKeyPress(R.editor,C)});break;case"onKeyUp":R.editor.on("keyup",function(M,C){R.props.onKeyUp(R.editor,C)});break;case"onMouseDown":{R.editor.on("mousedown",function(M,C){R.props.onMouseDown(R.editor,C)});break}case"onPaste":{R.editor.on("paste",function(M,C){R.props.onPaste(R.editor,C)});break}case"onRenderLine":{R.editor.on("renderLine",function(M,C,V){R.props.onRenderLine(R.editor,C,V)});break}case"onScroll":R.editor.on("scroll",function(M){R.props.onScroll(R.editor,R.editor.getScrollInfo())});break;case"onSelection":R.editor.on("beforeSelectionChange",function(M,C){R.props.onSelection(R.editor,C)});break;case"onTouchStart":{R.editor.on("touchstart",function(M,C){R.props.onTouchStart(R.editor,C)});break}case"onUpdate":R.editor.on("update",function(M){R.props.onUpdate(R.editor)});break;case"onViewportChange":R.editor.on("viewportChange",function(M,C,V){R.props.onViewportChange(R.editor,C,V)});break}})},_}(),B=function(_){d(H,_);function H(R){var X=_.call(this,R)||this;return A||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return H.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){M.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(R.value):this.initChange(R.value||"")),this.hydrated=!0},H.prototype.initChange=function(R){this.emulating=!0;var X=this.editor.getDoc(),M=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(R||"",{line:0,ch:0},{line:M,ch:C}),this.mirror.setValue(R),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},H.prototype.resolveChange=function(R){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),R&&R!==X.getValue()){var M=X.getCursor();X.setValue(R),X.setCursor(M)}this.emulating=!1,this.deferred=null},H.prototype.mirrorChange=function(R){var X=this.editor.getDoc();return R.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):R.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(R.text,R.from,R.to,R.origin),this.mirror.getValue()},H.prototype.componentDidMount=function(){var R=this;A||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){R.mirror.setHistory(R.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){R.mirror.setCursor(R.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,M){if(!R.emulating){M.cancel(),R.deferred=M;var C=R.mirrorChange(R.deferred);R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,R.deferred,C)}}),this.editor.on("change",function(X,M){!R.mounted||R.props.onChange&&R.props.onChange(R.editor,M,R.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},H.prototype.componentDidUpdate=function(R){if(!A){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(R,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0}},H.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(R,X){return!A},H.prototype.render=function(){var R=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},H}(b.Component);I.fk=B;var j=function(_){d(H,_);function H(R){var X=_.call(this,R)||this;return A||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return H.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){M.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),q=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(R.value||"",{line:0,ch:0},{line:q,ch:Q})}this.hydrated=!0},H.prototype.componentDidMount=function(){var R=this;A||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new N(this.editor,this.props),this.editor.on("beforeChange",function(X,M){R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,M,R.editor.getValue(),R.onBeforeChangeCb)}),this.editor.on("change",function(X,M){!R.mounted||!R.props.onChange||(R.props.onBeforeChange?R.continueChange&&R.props.onChange(R.editor,M,R.editor.getValue()):R.props.onChange(R.editor,M,R.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},H.prototype.componentDidUpdate=function(R){if(this.detached&&this.props.detach===!1&&(this.detached=!1,R.editorDidAttach&&R.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,R.editorDidDetach&&R.editorDidDetach(this.editor)),!(A||this.detached)){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!R.autoCursor&&R.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(R),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0)}},H.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},H.prototype.shouldComponentUpdate=function(R,X){var M=!0;return A&&(M=!1),this.detached&&R.detach&&(M=!1),M},H.prototype.render=function(){var R=this;if(A)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},H}(b.Component);c=j},35666:h=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",A=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Ve,Le,ke){return Object.defineProperty(Ve,Le,{value:ke,enumerable:!0,configurable:!0,writable:!0}),Ve[Le]}try{L({},"")}catch(Ve){L=function(Le,ke,rt){return Le[ke]=rt}}function N(Ve,Le,ke,rt){var Qe=Le&&Le.prototype instanceof M?Le:M,Xe=Object.create(Qe.prototype),ut=new ue(rt||[]);return Xe._invoke=ne(Ve,ke,ut),Xe}o.wrap=N;function B(Ve,Le,ke){try{return{type:"normal",arg:Ve.call(Le,ke)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",_="suspendedYield",H="executing",R="completed",X={};function M(){}function C(){}function V(){}var J={};J[b]=function(){return this};var q=Object.getPrototypeOf,Q=q&&q(q(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=M.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function fe(Ve){["next","throw","return"].forEach(function(Le){L(Ve,Le,function(ke){return this._invoke(Le,ke)})})}o.isGeneratorFunction=function(Ve){var Le=typeof Ve=="function"&&Ve.constructor;return Le?Le===C||(Le.displayName||Le.name)==="GeneratorFunction":!1},o.mark=function(Ve){return Object.setPrototypeOf?Object.setPrototypeOf(Ve,V):(Ve.__proto__=V,L(Ve,g,"GeneratorFunction")),Ve.prototype=Object.create(Y),Ve},o.awrap=function(Ve){return{__await:Ve}};function te(Ve,Le){function ke(Xe,ut,pt,yt){var qe=B(Ve[Xe],Ve,ut);if(qe.type==="throw")yt(qe.arg);else{var lt=qe.arg,vt=lt.value;return vt&&typeof vt=="object"&&v.call(vt,"__await")?Le.resolve(vt.__await).then(function(mt){ke("next",mt,pt,yt)},function(mt){ke("throw",mt,pt,yt)}):Le.resolve(vt).then(function(mt){lt.value=mt,pt(lt)},function(mt){return ke("throw",mt,pt,yt)})}}var rt;function Qe(Xe,ut){function pt(){return new Le(function(yt,qe){ke(Xe,ut,yt,qe)})}return rt=rt?rt.then(pt,pt):pt()}this._invoke=Qe}fe(te.prototype),te.prototype[A]=function(){return this},o.AsyncIterator=te,o.async=function(Ve,Le,ke,rt,Qe){Qe===void 0&&(Qe=Promise);var Xe=new te(N(Ve,Le,ke,rt),Qe);return o.isGeneratorFunction(Le)?Xe:Xe.next().then(function(ut){return ut.done?ut.value:Xe.next()})};function ne(Ve,Le,ke){var rt=j;return function(Xe,ut){if(rt===H)throw new Error("Generator is already running");if(rt===R){if(Xe==="throw")throw ut;return De()}for(ke.method=Xe,ke.arg=ut;;){var pt=ke.delegate;if(pt){var yt=ye(pt,ke);if(yt){if(yt===X)continue;return yt}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(rt===j)throw rt=R,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);rt=H;var qe=B(Ve,Le,ke);if(qe.type==="normal"){if(rt=ke.done?R:_,qe.arg===X)continue;return{value:qe.arg,done:ke.done}}else qe.type==="throw"&&(rt=R,ke.method="throw",ke.arg=qe.arg)}}}function ye(Ve,Le){var ke=Ve.iterator[Le.method];if(ke===x){if(Le.delegate=null,Le.method==="throw"){if(Ve.iterator.return&&(Le.method="return",Le.arg=x,ye(Ve,Le),Le.method==="throw"))return X;Le.method="throw",Le.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(ke,Ve.iterator,Le.arg);if(rt.type==="throw")return Le.method="throw",Le.arg=rt.arg,Le.delegate=null,X;var Qe=rt.arg;if(!Qe)return Le.method="throw",Le.arg=new TypeError("iterator result is not an object"),Le.delegate=null,X;if(Qe.done)Le[Ve.resultName]=Qe.value,Le.next=Ve.nextLoc,Le.method!=="return"&&(Le.method="next",Le.arg=x);else return Qe;return Le.delegate=null,X}fe(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function ve(Ve){var Le={tryLoc:Ve[0]};1 in Ve&&(Le.catchLoc=Ve[1]),2 in Ve&&(Le.finallyLoc=Ve[2],Le.afterLoc=Ve[3]),this.tryEntries.push(Le)}function de(Ve){var Le=Ve.completion||{};Le.type="normal",delete Le.arg,Ve.completion=Le}function ue(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(ve,this),this.reset(!0)}o.keys=function(Ve){var Le=[];for(var ke in Ve)Le.push(ke);return Le.reverse(),function rt(){for(;Le.length;){var Qe=Le.pop();if(Qe in Ve)return rt.value=Qe,rt.done=!1,rt}return rt.done=!0,rt}};function oe(Ve){if(Ve){var Le=Ve[b];if(Le)return Le.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var ke=-1,rt=function Qe(){for(;++ke<Ve.length;)if(v.call(Ve,ke))return Qe.value=Ve[ke],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return rt.next=rt}}return{next:De}}o.values=oe;function De(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(Ve){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(de),!Ve)for(var Le in this)Le.charAt(0)==="t"&&v.call(this,Le)&&!isNaN(+Le.slice(1))&&(this[Le]=x)},stop:function(){this.done=!0;var Ve=this.tryEntries[0],Le=Ve.completion;if(Le.type==="throw")throw Le.arg;return this.rval},dispatchException:function(Ve){if(this.done)throw Ve;var Le=this;function ke(yt,qe){return Xe.type="throw",Xe.arg=Ve,Le.next=yt,qe&&(Le.method="next",Le.arg=x),!!qe}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Qe=this.tryEntries[rt],Xe=Qe.completion;if(Qe.tryLoc==="root")return ke("end");if(Qe.tryLoc<=this.prev){var ut=v.call(Qe,"catchLoc"),pt=v.call(Qe,"finallyLoc");if(ut&&pt){if(this.prev<Qe.catchLoc)return ke(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return ke(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return ke(Qe.catchLoc,!0)}else if(pt){if(this.prev<Qe.finallyLoc)return ke(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ve,Le){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var rt=this.tryEntries[ke];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Qe=rt;break}}Qe&&(Ve==="break"||Ve==="continue")&&Qe.tryLoc<=Le&&Le<=Qe.finallyLoc&&(Qe=null);var Xe=Qe?Qe.completion:{};return Xe.type=Ve,Xe.arg=Le,Qe?(this.method="next",this.next=Qe.finallyLoc,X):this.complete(Xe)},complete:function(Ve,Le){if(Ve.type==="throw")throw Ve.arg;return Ve.type==="break"||Ve.type==="continue"?this.next=Ve.arg:Ve.type==="return"?(this.rval=this.arg=Ve.arg,this.method="return",this.next="end"):Ve.type==="normal"&&Le&&(this.next=Le),X},finish:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.finallyLoc===Ve)return this.complete(ke.completion,ke.afterLoc),de(ke),X}},catch:function(Ve){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ke=this.tryEntries[Le];if(ke.tryLoc===Ve){var rt=ke.completion;if(rt.type==="throw"){var Qe=rt.arg;de(ke)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(Ve,Le,ke){return this.delegate={iterator:oe(Ve),resultName:Le,nextLoc:ke},this.method==="next"&&(this.arg=x),X}},o}(h.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),A=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),N=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),_=v("Map.prototype.has",!0),H=function(C,V){for(var J=C,q;(q=J.next)!==null;J=q)if(q.key===V)return J.next=q.next,q.next=C.next,C.next=q,q},R=function(C,V){var J=H(C,V);return J&&J.value},X=function(C,V,J){var q=H(C,V);q?q.value=J:C.next={key:V,next:C.next,value:J}},M=function(C,V){return!!H(C,V)};h.exports=function(){var V,J,q,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(A){if(J)return B(J,Y)}else if(q)return R(q,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return N(V,Y)}else if(A){if(J)return _(J,Y)}else if(q)return M(q,Y);return!1},set:function(Y,fe){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,fe)):A?(J||(J=new A),j(J,Y,fe)):(q||(q={key:{},next:null}),X(q,Y,fe))}};return Q}},13837:(h,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,o)=>{"use strict";/*!
|
|
501
501
|
* The buffer module from node.js, for the browser.
|
|
502
502
|
*
|
|
503
503
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
504
504
|
* @license MIT
|
|
505
|
-
*/const c=o(79742),v=o(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const W=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(W,O),W.foo()===42}catch(W){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function A(W){if(W>d)throw new RangeError('The value "'+W+'" is invalid for option "size"');const O=new Uint8Array(W);return Object.setPrototypeOf(O,g.prototype),O}function g(W,O,P){if(typeof W=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(W)}return L(W,O,P)}g.poolSize=8192;function L(W,O,P){if(typeof W=="string")return _(W,O);if(ArrayBuffer.isView(W))return R(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Re(W,ArrayBuffer)||W&&Re(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Re(W,SharedArrayBuffer)||W&&Re(W.buffer,SharedArrayBuffer)))return X(W,O,P);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ie=W.valueOf&&W.valueOf();if(ie!=null&&ie!==W)return g.from(ie,O,P);const D=M(W);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return g.from(W[Symbol.toPrimitive]("string"),O,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}g.from=function(W,O,P){return L(W,O,P)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function N(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function B(W,O,P){return N(W),W<=0?A(W):O!==void 0?typeof P=="string"?A(W).fill(O,P):A(W).fill(O):A(W)}g.alloc=function(W,O,P){return B(W,O,P)};function j(W){return N(W),A(W<0?0:C(W)|0)}g.allocUnsafe=function(W){return j(W)},g.allocUnsafeSlow=function(W){return j(W)};function _(W,O){if((typeof O!="string"||O==="")&&(O="utf8"),!g.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const P=J(W,O)|0;let ie=A(P);const D=ie.write(W,O);return D!==P&&(ie=ie.slice(0,D)),ie}function H(W){const O=W.length<0?0:C(W.length)|0,P=A(O);for(let ie=0;ie<O;ie+=1)P[ie]=W[ie]&255;return P}function R(W){if(Re(W,Uint8Array)){const O=new Uint8Array(W);return X(O.buffer,O.byteOffset,O.byteLength)}return H(W)}function X(W,O,P){if(O<0||W.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<O+(P||0))throw new RangeError('"length" is outside of buffer bounds');let ie;return O===void 0&&P===void 0?ie=new Uint8Array(W):P===void 0?ie=new Uint8Array(W,O):ie=new Uint8Array(W,O,P),Object.setPrototypeOf(ie,g.prototype),ie}function M(W){if(g.isBuffer(W)){const O=C(W.length)|0,P=A(O);return P.length===0||W.copy(P,0,0,O),P}if(W.length!==void 0)return typeof W.length!="number"||be(W.length)?A(0):H(W);if(W.type==="Buffer"&&Array.isArray(W.data))return H(W.data)}function C(W){if(W>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return W|0}function V(W){return+W!=W&&(W=0),g.alloc(+W)}g.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==g.prototype},g.compare=function(O,P){if(Re(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),Re(P,Uint8Array)&&(P=g.from(P,P.offset,P.byteLength)),!g.isBuffer(O)||!g.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===P)return 0;let ie=O.length,D=P.length;for(let ee=0,ce=Math.min(ie,D);ee<ce;++ee)if(O[ee]!==P[ee]){ie=O[ee],D=P[ee];break}return ie<D?-1:D<ie?1:0},g.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(O,P){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return g.alloc(0);let ie;if(P===void 0)for(P=0,ie=0;ie<O.length;++ie)P+=O[ie].length;const D=g.allocUnsafe(P);let ee=0;for(ie=0;ie<O.length;++ie){let ce=O[ie];if(Re(ce,Uint8Array))ee+ce.length>D.length?(g.isBuffer(ce)||(ce=g.from(ce)),ce.copy(D,ee)):Uint8Array.prototype.set.call(D,ce,ee);else if(g.isBuffer(ce))ce.copy(D,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ce.length}return D};function J(W,O){if(g.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Re(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const P=W.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&P===0)return 0;let D=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return Mt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return K(W).length;default:if(D)return ie?-1:Mt(W).length;O=(""+O).toLowerCase(),D=!0}}g.byteLength=J;function q(W,O,P){let ie=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,O>>>=0,P<=O))return"";for(W||(W="utf8");;)switch(W){case"hex":return rt(this,O,P);case"utf8":case"utf-8":return oe(this,O,P);case"ascii":return Le(this,O,P);case"latin1":case"binary":return ke(this,O,P);case"base64":return ue(this,O,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,O,P);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ie=!0}}g.prototype._isBuffer=!0;function Q(W,O,P){const ie=W[O];W[O]=W[P],W[P]=ie}g.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<O;P+=2)Q(this,P,P+1);return this},g.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<O;P+=4)Q(this,P,P+3),Q(this,P+1,P+2);return this},g.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<O;P+=8)Q(this,P,P+7),Q(this,P+1,P+6),Q(this,P+2,P+5),Q(this,P+3,P+4);return this},g.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?oe(this,0,O):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(O){if(!g.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:g.compare(this,O)===0},g.prototype.inspect=function(){let O="";const P=I.INSPECT_MAX_BYTES;return O=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(O+=" ... "),"<Buffer "+O+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(O,P,ie,D,ee){if(Re(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(P===void 0&&(P=0),ie===void 0&&(ie=O?O.length:0),D===void 0&&(D=0),ee===void 0&&(ee=this.length),P<0||ie>O.length||D<0||ee>this.length)throw new RangeError("out of range index");if(D>=ee&&P>=ie)return 0;if(D>=ee)return-1;if(P>=ie)return 1;if(P>>>=0,ie>>>=0,D>>>=0,ee>>>=0,this===O)return 0;let ce=ee-D,Oe=ie-P;const Pe=Math.min(ce,Oe),Te=this.slice(D,ee),Ge=O.slice(P,ie);for(let He=0;He<Pe;++He)if(Te[He]!==Ge[He]){ce=Te[He],Oe=Ge[He];break}return ce<Oe?-1:Oe<ce?1:0};function Y(W,O,P,ie,D){if(W.length===0)return-1;if(typeof P=="string"?(ie=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,be(P)&&(P=D?0:W.length-1),P<0&&(P=W.length+P),P>=W.length){if(D)return-1;P=W.length-1}else if(P<0)if(D)P=0;else return-1;if(typeof O=="string"&&(O=g.from(O,ie)),g.isBuffer(O))return O.length===0?-1:fe(W,O,P,ie,D);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(W,O,P):Uint8Array.prototype.lastIndexOf.call(W,O,P):fe(W,[O],P,ie,D);throw new TypeError("val must be string, number or Buffer")}function fe(W,O,P,ie,D){let ee=1,ce=W.length,Oe=O.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(W.length<2||O.length<2)return-1;ee=2,ce/=2,Oe/=2,P/=2}function Pe(Ge,He){return ee===1?Ge[He]:Ge.readUInt16BE(He*ee)}let Te;if(D){let Ge=-1;for(Te=P;Te<ce;Te++)if(Pe(W,Te)===Pe(O,Ge===-1?0:Te-Ge)){if(Ge===-1&&(Ge=Te),Te-Ge+1===Oe)return Ge*ee}else Ge!==-1&&(Te-=Te-Ge),Ge=-1}else for(P+Oe>ce&&(P=ce-Oe),Te=P;Te>=0;Te--){let Ge=!0;for(let He=0;He<Oe;He++)if(Pe(W,Te+He)!==Pe(O,He)){Ge=!1;break}if(Ge)return Te}return-1}g.prototype.includes=function(O,P,ie){return this.indexOf(O,P,ie)!==-1},g.prototype.indexOf=function(O,P,ie){return Y(this,O,P,ie,!0)},g.prototype.lastIndexOf=function(O,P,ie){return Y(this,O,P,ie,!1)};function te(W,O,P,ie){P=Number(P)||0;const D=W.length-P;ie?(ie=Number(ie),ie>D&&(ie=D)):ie=D;const ee=O.length;ie>ee/2&&(ie=ee/2);let ce;for(ce=0;ce<ie;++ce){const Oe=parseInt(O.substr(ce*2,2),16);if(be(Oe))return ce;W[P+ce]=Oe}return ce}function ne(W,O,P,ie){return we(Mt(O,W.length-P),W,P,ie)}function ye(W,O,P,ie){return we(pe(O),W,P,ie)}function ve(W,O,P,ie){return we(K(O),W,P,ie)}function de(W,O,P,ie){return we(G(O,W.length-P),W,P,ie)}g.prototype.write=function(O,P,ie,D){if(P===void 0)D="utf8",ie=this.length,P=0;else if(ie===void 0&&typeof P=="string")D=P,ie=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(ie)?(ie=ie>>>0,D===void 0&&(D="utf8")):(D=ie,ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-P;if((ie===void 0||ie>ee)&&(ie=ee),O.length>0&&(ie<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let ce=!1;for(;;)switch(D){case"hex":return te(this,O,P,ie);case"utf8":case"utf-8":return ne(this,O,P,ie);case"ascii":case"latin1":case"binary":return ye(this,O,P,ie);case"base64":return ve(this,O,P,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,O,P,ie);default:if(ce)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),ce=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(W,O,P){return O===0&&P===W.length?c.fromByteArray(W):c.fromByteArray(W.slice(O,P))}function oe(W,O,P){P=Math.min(W.length,P);const ie=[];let D=O;for(;D<P;){const ee=W[D];let ce=null,Oe=ee>239?4:ee>223?3:ee>191?2:1;if(D+Oe<=P){let Pe,Te,Ge,He;switch(Oe){case 1:ee<128&&(ce=ee);break;case 2:Pe=W[D+1],(Pe&192)==128&&(He=(ee&31)<<6|Pe&63,He>127&&(ce=He));break;case 3:Pe=W[D+1],Te=W[D+2],(Pe&192)==128&&(Te&192)==128&&(He=(ee&15)<<12|(Pe&63)<<6|Te&63,He>2047&&(He<55296||He>57343)&&(ce=He));break;case 4:Pe=W[D+1],Te=W[D+2],Ge=W[D+3],(Pe&192)==128&&(Te&192)==128&&(Ge&192)==128&&(He=(ee&15)<<18|(Pe&63)<<12|(Te&63)<<6|Ge&63,He>65535&&He<1114112&&(ce=He))}}ce===null?(ce=65533,Oe=1):ce>65535&&(ce-=65536,ie.push(ce>>>10&1023|55296),ce=56320|ce&1023),ie.push(ce),D+=Oe}return Ve(ie)}const De=4096;function Ve(W){const O=W.length;if(O<=De)return String.fromCharCode.apply(String,W);let P="",ie=0;for(;ie<O;)P+=String.fromCharCode.apply(String,W.slice(ie,ie+=De));return P}function Le(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]&127);return ie}function ke(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]);return ie}function rt(W,O,P){const ie=W.length;(!O||O<0)&&(O=0),(!P||P<0||P>ie)&&(P=ie);let D="";for(let ee=O;ee<P;++ee)D+=Ae[W[ee]];return D}function Ze(W,O,P){const ie=W.slice(O,P);let D="";for(let ee=0;ee<ie.length-1;ee+=2)D+=String.fromCharCode(ie[ee]+ie[ee+1]*256);return D}g.prototype.slice=function(O,P){const ie=this.length;O=~~O,P=P===void 0?ie:~~P,O<0?(O+=ie,O<0&&(O=0)):O>ie&&(O=ie),P<0?(P+=ie,P<0&&(P=0)):P>ie&&(P=ie),P<O&&(P=O);const D=this.subarray(O,P);return Object.setPrototypeOf(D,g.prototype),D};function Qe(W,O,P){if(W%1!=0||W<0)throw new RangeError("offset is not uint");if(W+O>P)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Qe(O,P,this.length);let D=this[O],ee=1,ce=0;for(;++ce<P&&(ee*=256);)D+=this[O+ce]*ee;return D},g.prototype.readUintBE=g.prototype.readUIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Qe(O,P,this.length);let D=this[O+--P],ee=1;for(;P>0&&(ee*=256);)D+=this[O+--P]*ee;return D},g.prototype.readUint8=g.prototype.readUInt8=function(O,P){return O=O>>>0,P||Qe(O,1,this.length),this[O]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(O,P){return O=O>>>0,P||Qe(O,2,this.length),this[O]|this[O+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(O,P){return O=O>>>0,P||Qe(O,2,this.length),this[O]<<8|this[O+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(O,P){return O=O>>>0,P||Qe(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(O,P){return O=O>>>0,P||Qe(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},g.prototype.readBigUInt64LE=T(function(O){O=O>>>0,Vt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=P+this[++O]*vr(2,8)+this[++O]*vr(2,16)+this[++O]*vr(2,24),ee=this[++O]+this[++O]*vr(2,8)+this[++O]*vr(2,16)+ie*vr(2,24);return BigInt(D)+(BigInt(ee)<<BigInt(32))}),g.prototype.readBigUInt64BE=T(function(O){O=O>>>0,Vt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=P*vr(2,24)+this[++O]*vr(2,16)+this[++O]*vr(2,8)+this[++O],ee=this[++O]*vr(2,24)+this[++O]*vr(2,16)+this[++O]*vr(2,8)+ie;return(BigInt(D)<<BigInt(32))+BigInt(ee)}),g.prototype.readIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Qe(O,P,this.length);let D=this[O],ee=1,ce=0;for(;++ce<P&&(ee*=256);)D+=this[O+ce]*ee;return ee*=128,D>=ee&&(D-=Math.pow(2,8*P)),D},g.prototype.readIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Qe(O,P,this.length);let D=P,ee=1,ce=this[O+--D];for(;D>0&&(ee*=256);)ce+=this[O+--D]*ee;return ee*=128,ce>=ee&&(ce-=Math.pow(2,8*P)),ce},g.prototype.readInt8=function(O,P){return O=O>>>0,P||Qe(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},g.prototype.readInt16LE=function(O,P){O=O>>>0,P||Qe(O,2,this.length);const ie=this[O]|this[O+1]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt16BE=function(O,P){O=O>>>0,P||Qe(O,2,this.length);const ie=this[O+1]|this[O]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt32LE=function(O,P){return O=O>>>0,P||Qe(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},g.prototype.readInt32BE=function(O,P){return O=O>>>0,P||Qe(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},g.prototype.readBigInt64LE=T(function(O){O=O>>>0,Vt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=this[O+4]+this[O+5]*vr(2,8)+this[O+6]*vr(2,16)+(ie<<24);return(BigInt(D)<<BigInt(32))+BigInt(P+this[++O]*vr(2,8)+this[++O]*vr(2,16)+this[++O]*vr(2,24))}),g.prototype.readBigInt64BE=T(function(O){O=O>>>0,Vt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=(P<<24)+this[++O]*vr(2,16)+this[++O]*vr(2,8)+this[++O];return(BigInt(D)<<BigInt(32))+BigInt(this[++O]*vr(2,24)+this[++O]*vr(2,16)+this[++O]*vr(2,8)+ie)}),g.prototype.readFloatLE=function(O,P){return O=O>>>0,P||Qe(O,4,this.length),v.read(this,O,!0,23,4)},g.prototype.readFloatBE=function(O,P){return O=O>>>0,P||Qe(O,4,this.length),v.read(this,O,!1,23,4)},g.prototype.readDoubleLE=function(O,P){return O=O>>>0,P||Qe(O,8,this.length),v.read(this,O,!0,52,8)},g.prototype.readDoubleBE=function(O,P){return O=O>>>0,P||Qe(O,8,this.length),v.read(this,O,!1,52,8)};function ut(W,O,P,ie,D,ee){if(!g.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>D||O<ee)throw new RangeError('"value" argument is out of bounds');if(P+ie>W.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=1,ce=0;for(this[P]=O&255;++ce<ie&&(ee*=256);)this[P+ce]=O/ee&255;return P+ie},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=ie-1,ce=1;for(this[P+ee]=O&255;--ee>=0&&(ce*=256);)this[P+ee]=O/ce&255;return P+ie},g.prototype.writeUint8=g.prototype.writeUInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,255,0),this[P]=O&255,P+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P+3]=O>>>24,this[P+2]=O>>>16,this[P+1]=O>>>8,this[P]=O&255,P+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4};function pt(W,O,P,ie,D){St(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee;let ce=Number(O>>BigInt(32)&BigInt(4294967295));return W[P++]=ce,ce=ce>>8,W[P++]=ce,ce=ce>>8,W[P++]=ce,ce=ce>>8,W[P++]=ce,P}function yt(W,O,P,ie,D){St(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P+7]=ee,ee=ee>>8,W[P+6]=ee,ee=ee>>8,W[P+5]=ee,ee=ee>>8,W[P+4]=ee;let ce=Number(O>>BigInt(32)&BigInt(4294967295));return W[P+3]=ce,ce=ce>>8,W[P+2]=ce,ce=ce>>8,W[P+1]=ce,ce=ce>>8,W[P]=ce,P+8}g.prototype.writeBigUInt64LE=T(function(O,P=0){return pt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=T(function(O,P=0){return yt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=0,ce=1,Oe=0;for(this[P]=O&255;++ee<ie&&(ce*=256);)O<0&&Oe===0&&this[P+ee-1]!==0&&(Oe=1),this[P+ee]=(O/ce>>0)-Oe&255;return P+ie},g.prototype.writeIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=ie-1,ce=1,Oe=0;for(this[P+ee]=O&255;--ee>=0&&(ce*=256);)O<0&&Oe===0&&this[P+ee+1]!==0&&(Oe=1),this[P+ee]=(O/ce>>0)-Oe&255;return P+ie},g.prototype.writeInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,127,-128),O<0&&(O=255+O+1),this[P]=O&255,P+1},g.prototype.writeInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),this[P]=O&255,this[P+1]=O>>>8,this[P+2]=O>>>16,this[P+3]=O>>>24,P+4},g.prototype.writeInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4},g.prototype.writeBigInt64LE=T(function(O,P=0){return pt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=T(function(O,P=0){return yt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(W,O,P,ie,D,ee){if(P+ie>W.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function lt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,4,34028234663852886e22,-34028234663852886e22),v.write(W,O,P,ie,23,4),P+4}g.prototype.writeFloatLE=function(O,P,ie){return lt(this,O,P,!0,ie)},g.prototype.writeFloatBE=function(O,P,ie){return lt(this,O,P,!1,ie)};function vt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,8,17976931348623157e292,-17976931348623157e292),v.write(W,O,P,ie,52,8),P+8}g.prototype.writeDoubleLE=function(O,P,ie){return vt(this,O,P,!0,ie)},g.prototype.writeDoubleBE=function(O,P,ie){return vt(this,O,P,!1,ie)},g.prototype.copy=function(O,P,ie,D){if(!g.isBuffer(O))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),!D&&D!==0&&(D=this.length),P>=O.length&&(P=O.length),P||(P=0),D>0&&D<ie&&(D=ie),D===ie||O.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(ie<0||ie>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),O.length-P<D-ie&&(D=O.length-P+ie);const ee=D-ie;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,ie,D):Uint8Array.prototype.set.call(O,this.subarray(ie,D),P),ee},g.prototype.fill=function(O,P,ie,D){if(typeof O=="string"){if(typeof P=="string"?(D=P,P=0,ie=this.length):typeof ie=="string"&&(D=ie,ie=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!g.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(O.length===1){const ce=O.charCodeAt(0);(D==="utf8"&&ce<128||D==="latin1")&&(O=ce)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(P<0||this.length<P||this.length<ie)throw new RangeError("Out of range index");if(ie<=P)return this;P=P>>>0,ie=ie===void 0?this.length:ie>>>0,O||(O=0);let ee;if(typeof O=="number")for(ee=P;ee<ie;++ee)this[ee]=O;else{const ce=g.isBuffer(O)?O:g.from(O,D),Oe=ce.length;if(Oe===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(ee=0;ee<ie-P;++ee)this[ee+P]=ce[ee%Oe]}return this};const mt={};function dt(W,O,P){mt[W]=class extends P{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(W,O){return`The "${W}" argument must be of type number. Received type ${typeof O}`},TypeError),dt("ERR_OUT_OF_RANGE",function(W,O,P){let ie=`The value of "${W}" is out of range.`,D=P;return Number.isInteger(P)&&Math.abs(P)>vr(2,32)?D=kt(String(P)):typeof P=="bigint"&&(D=String(P),(P>vr(BigInt(2),BigInt(32))||P<-vr(BigInt(2),BigInt(32)))&&(D=kt(D)),D+="n"),ie+=` It must be ${O}. Received ${D}`,ie},RangeError);function kt(W){let O="",P=W.length;const ie=W[0]==="-"?1:0;for(;P>=ie+4;P-=3)O=`_${W.slice(P-3,P)}${O}`;return`${W.slice(0,P)}${O}`}function It(W,O,P){Vt(O,"offset"),(W[O]===void 0||W[O+P]===void 0)&&Nt(O,W.length-(P+1))}function St(W,O,P,ie,D,ee){if(W>P||W<O){const ce=typeof O=="bigint"?"n":"";let Oe;throw ee>3?O===0||O===BigInt(0)?Oe=`>= 0${ce} and < 2${ce} ** ${(ee+1)*8}${ce}`:Oe=`>= -(2${ce} ** ${(ee+1)*8-1}${ce}) and < 2 ** ${(ee+1)*8-1}${ce}`:Oe=`>= ${O}${ce} and <= ${P}${ce}`,new mt.ERR_OUT_OF_RANGE("value",Oe,W)}It(ie,D,ee)}function Vt(W,O){if(typeof W!="number")throw new mt.ERR_INVALID_ARG_TYPE(O,"number",W)}function Nt(W,O,P){throw Math.floor(W)!==W?(Vt(W,P),new mt.ERR_OUT_OF_RANGE(P||"offset","an integer",W)):O<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(P||"offset",`>= ${P?1:0} and <= ${O}`,W)}const Gt=/[^+/0-9A-Za-z-_]/g;function wt(W){if(W=W.split("=")[0],W=W.trim().replace(Gt,""),W.length<2)return"";for(;W.length%4!=0;)W=W+"=";return W}function Mt(W,O){O=O||1/0;let P;const ie=W.length;let D=null;const ee=[];for(let ce=0;ce<ie;++ce){if(P=W.charCodeAt(ce),P>55295&&P<57344){if(!D){if(P>56319){(O-=3)>-1&&ee.push(239,191,189);continue}else if(ce+1===ie){(O-=3)>-1&&ee.push(239,191,189);continue}D=P;continue}if(P<56320){(O-=3)>-1&&ee.push(239,191,189),D=P;continue}P=(D-55296<<10|P-56320)+65536}else D&&(O-=3)>-1&&ee.push(239,191,189);if(D=null,P<128){if((O-=1)<0)break;ee.push(P)}else if(P<2048){if((O-=2)<0)break;ee.push(P>>6|192,P&63|128)}else if(P<65536){if((O-=3)<0)break;ee.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((O-=4)<0)break;ee.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return ee}function pe(W){const O=[];for(let P=0;P<W.length;++P)O.push(W.charCodeAt(P)&255);return O}function G(W,O){let P,ie,D;const ee=[];for(let ce=0;ce<W.length&&!((O-=2)<0);++ce)P=W.charCodeAt(ce),ie=P>>8,D=P%256,ee.push(D),ee.push(ie);return ee}function K(W){return c.toByteArray(wt(W))}function we(W,O,P,ie){let D;for(D=0;D<ie&&!(D+P>=O.length||D>=W.length);++D)O[D+P]=W[D];return D}function Re(W,O){return W instanceof O||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===O.name}function be(W){return W!==W}const Ae=function(){const W="0123456789abcdef",O=new Array(256);for(let P=0;P<16;++P){const ie=P*16;for(let D=0;D<16;++D)O[ie+D]=W[P]+W[D]}return O}();function T(W){return typeof BigInt=="undefined"?Ie:W}function Ie(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,o,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(H){return H.replace(/&#(\d+);/g,function(R,X){return String.fromCharCode(parseInt(X,10))})},A=function(H,R){return H&&typeof H=="string"&&R.comma&&H.indexOf(",")>-1?H.split(","):H},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",N=function(R,X){var M={},C=X.ignoreQueryPrefix?R.replace(/^\?/,""):R,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),q=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),q=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==q){var fe=J[Q],te=fe.indexOf("]="),ne=te===-1?fe.indexOf("="):te+1,ye,ve;ne===-1?(ye=X.decoder(fe,d.decoder,Y,"key"),ve=X.strictNullHandling?null:""):(ye=X.decoder(fe.slice(0,ne),d.decoder,Y,"key"),ve=c.maybeMap(A(fe.slice(ne+1),X),function(de){return X.decoder(de,d.decoder,Y,"value")})),ve&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(ve=b(ve)),fe.indexOf("[]=")>-1&&(ve=x(ve)?[ve]:ve),v.call(M,ye)?M[ye]=c.combine(M[ye],ve):M[ye]=ve}return M},B=function(H,R,X,M){for(var C=M?R:A(R,X),V=H.length-1;V>=0;--V){var J,q=H[V];if(q==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&q!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(R,X,M,C){if(!!R){var V=M.allowDots?R.replace(/\.([^.[]+)/g,"[$1]"):R,J=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Q=M.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,fe=[];if(Y){if(!M.plainObjects&&v.call(Object.prototype,Y)&&!M.allowPrototypes)return;fe.push(Y)}for(var te=0;M.depth>0&&(Q=q.exec(V))!==null&&te<M.depth;){if(te+=1,!M.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!M.allowPrototypes)return;fe.push(Q[1])}return Q&&fe.push("["+V.slice(Q.index)+"]"),B(fe,X,M,C)}},_=function(R){if(!R)return d;if(R.decoder!==null&&R.decoder!==void 0&&typeof R.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof R.charset=="undefined"?d.charset:R.charset;return{allowDots:typeof R.allowDots=="undefined"?d.allowDots:!!R.allowDots,allowPrototypes:typeof R.allowPrototypes=="boolean"?R.allowPrototypes:d.allowPrototypes,allowSparse:typeof R.allowSparse=="boolean"?R.allowSparse:d.allowSparse,arrayLimit:typeof R.arrayLimit=="number"?R.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:d.charsetSentinel,comma:typeof R.comma=="boolean"?R.comma:d.comma,decoder:typeof R.decoder=="function"?R.decoder:d.decoder,delimiter:typeof R.delimiter=="string"||c.isRegExp(R.delimiter)?R.delimiter:d.delimiter,depth:typeof R.depth=="number"||R.depth===!1?+R.depth:d.depth,ignoreQueryPrefix:R.ignoreQueryPrefix===!0,interpretNumericEntities:typeof R.interpretNumericEntities=="boolean"?R.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof R.parameterLimit=="number"?R.parameterLimit:d.parameterLimit,parseArrays:R.parseArrays!==!1,plainObjects:typeof R.plainObjects=="boolean"?R.plainObjects:d.plainObjects,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:d.strictNullHandling}};h.exports=function(H,R){var X=_(R);if(H===""||H===null||typeof H=="undefined")return X.plainObjects?Object.create(null):{};for(var M=typeof H=="string"?N(H,X):H,C=X.plainObjects?Object.create(null):{},V=Object.keys(M),J=0;J<V.length;++J){var q=V[J],Q=j(q,M[q],X,typeof H=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,C){return M+"["+C+"]"},repeat:function(M){return M}},A=Array.isArray,g=Array.prototype.push,L=function(X,M){g.apply(X,A(M)?M:[M])},N=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(M){return N.call(M)},skipNulls:!1,strictNullHandling:!1},_=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},H=function X(M,C,V,J,q,Q,Y,fe,te,ne,ye,ve,de,ue,oe){var De=M;if(oe.has(M))throw new RangeError("Cyclic object value");if(typeof Y=="function"?De=Y(C,De):De instanceof Date?De=ne(De):V==="comma"&&A(De)&&(De=v.maybeMap(De,function(qe){return qe instanceof Date?ne(qe):qe})),De===null){if(J)return Q&&!de?Q(C,j.encoder,ue,"key",ye):C;De=""}if(_(De)||v.isBuffer(De)){if(Q){var Ve=de?C:Q(C,j.encoder,ue,"key",ye);return[ve(Ve)+"="+ve(Q(De,j.encoder,ue,"value",ye))]}return[ve(C)+"="+ve(String(De))]}var Le=[];if(typeof De=="undefined")return Le;var ke;if(V==="comma"&&A(De))ke=[{value:De.length>0?De.join(",")||null:void 0}];else if(A(Y))ke=Y;else{var rt=Object.keys(De);ke=fe?rt.sort(fe):rt}for(var Ze=0;Ze<ke.length;++Ze){var Qe=ke[Ze],ut=typeof Qe=="object"&&Qe.value!==void 0?Qe.value:De[Qe];if(!(q&&ut===null)){var pt=A(De)?typeof V=="function"?V(C,Qe):C:C+(te?"."+Qe:"["+Qe+"]");oe.set(M,!0);var yt=c();L(Le,X(ut,pt,V,J,q,Q,Y,fe,te,ne,ye,ve,de,ue,yt))}}return Le},R=function(M){if(!M)return j;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=M.charset||j.charset;if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof M.format!="undefined"){if(!d.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var J=x.formatters[V],q=j.filter;return(typeof M.filter=="function"||A(M.filter))&&(q=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:j.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?j.allowDots:!!M.allowDots,charset:C,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:j.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?j.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:j.encode,encoder:typeof M.encoder=="function"?M.encoder:j.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:j.encodeValuesOnly,filter:q,format:V,formatter:J,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:j.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:j.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:j.strictNullHandling}};h.exports=function(X,M){var C=X,V=R(M),J,q;typeof V.filter=="function"?(q=V.filter,C=q("",C)):A(V.filter)&&(q=V.filter,J=q);var Q=[];if(typeof C!="object"||C===null)return"";var Y;M&&M.arrayFormat in b?Y=M.arrayFormat:M&&"indices"in M?Y=M.indices?"indices":"repeat":Y="indices";var fe=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var te=c(),ne=0;ne<J.length;++ne){var ye=J[ne];V.skipNulls&&C[ye]===null||L(Q,H(C[ye],ye,fe,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,te))}var ve=Q.join(V.delimiter),de=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?de+="utf8=%26%2310003%3B&":de+="utf8=%E2%9C%93&"),ve.length>0?de+ve:""}},58760:(h,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var M=[],C=0;C<256;++C)M.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return M}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var q=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&q.push(J[Q]);V.obj[V.prop]=q}}},A=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},q=0;q<C.length;++q)typeof C[q]!="undefined"&&(J[q]=C[q]);return J},g=function M(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var q=C;return x(C)&&!x(V)&&(q=A(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var fe=C[Y];fe&&typeof fe=="object"&&Q&&typeof Q=="object"?C[Y]=M(fe,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var fe=V[Y];return v.call(Q,Y)?Q[Y]=M(Q[Y],fe,J):Q[Y]=fe,Q},q)},L=function(C,V){return Object.keys(V).reduce(function(J,q){return J[q]=V[q],J},C)},N=function(M,C,V){var J=M.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(q){return J}},B=function(C,V,J,q,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var fe="",te=0;te<Y.length;++te){var ne=Y.charCodeAt(te);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||Q===c.RFC1738&&(ne===40||ne===41)){fe+=Y.charAt(te);continue}if(ne<128){fe=fe+d[ne];continue}if(ne<2048){fe=fe+(d[192|ne>>6]+d[128|ne&63]);continue}if(ne<55296||ne>=57344){fe=fe+(d[224|ne>>12]+d[128|ne>>6&63]+d[128|ne&63]);continue}te+=1,ne=65536+((ne&1023)<<10|Y.charCodeAt(te)&1023),fe+=d[240|ne>>18]+d[128|ne>>12&63]+d[128|ne>>6&63]+d[128|ne&63]}return fe},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],q=0;q<V.length;++q)for(var Q=V[q],Y=Q.obj[Q.prop],fe=Object.keys(Y),te=0;te<fe.length;++te){var ne=fe[te],ye=Y[ne];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(V.push({obj:Y,prop:ne}),J.push(ye))}return b(V),C},_=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},H=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},R=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],q=0;q<C.length;q+=1)J.push(V(C[q]));return J}return V(C)};h.exports={arrayToObject:A,assign:L,combine:R,compact:j,decode:N,encode:B,isBuffer:H,isRegExp:_,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(R){return new o(R)};function o(R){this.value=R}o.prototype.get=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!H.call(X,C)){X=void 0;break}X=X[C]}return X},o.prototype.has=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!H.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(R,X){for(var M=this.value,C=0;C<R.length-1;C++){var V=R[C];H.call(M,V)||(M[V]={}),M=M[V]}return M[R[C]]=X,X},o.prototype.map=function(R){return c(this.value,R,!0)},o.prototype.forEach=function(R){return this.value=c(this.value,R,!1),this.value},o.prototype.reduce=function(R,X){var M=arguments.length===1,C=M?this.value:X;return this.forEach(function(V){(!this.isRoot||!M)&&(C=R.call(this,C,V))}),C},o.prototype.paths=function(){var R=[];return this.forEach(function(X){R.push(this.path)}),R},o.prototype.nodes=function(){var R=[];return this.forEach(function(X){R.push(this.node)}),R},o.prototype.clone=function(){var R=[],X=[];return function M(C){for(var V=0;V<R.length;V++)if(R[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return R.push(C),X.push(J),_(x(C),function(q){J[q]=M(C[q])}),R.pop(),X.pop(),J}else return C}(this.value)};function c(R,X,M){var C=[],V=[],J=!0;return function q(Q){var Y=M?v(Q):Q,fe={},te=!0,ne={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(de,ue){ne.isRoot||(ne.parent.node[ne.key]=de),ne.node=de,ue&&(te=!1)},delete:function(de){delete ne.parent.node[ne.key],de&&(te=!1)},remove:function(de){j(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],de&&(te=!1)},keys:null,before:function(de){fe.before=de},after:function(de){fe.after=de},pre:function(de){fe.pre=de},post:function(de){fe.post=de},stop:function(){J=!1},block:function(){te=!1}};if(!J)return ne;function ye(){if(typeof ne.node=="object"&&ne.node!==null){(!ne.keys||ne.node_!==ne.node)&&(ne.keys=x(ne.node)),ne.isLeaf=ne.keys.length==0;for(var de=0;de<V.length;de++)if(V[de].node_===Q){ne.circular=V[de];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}ye();var ve=X.call(ne,ne.node);return ve!==void 0&&ne.update&&ne.update(ve),fe.before&&fe.before.call(ne,ne.node),te&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(V.push(ne),ye(),_(ne.keys,function(de,ue){C.push(de),fe.pre&&fe.pre.call(ne,ne.node[de],de);var oe=q(ne.node[de]);M&&H.call(ne.node,de)&&(ne.node[de]=oe.node),oe.isLast=ue==ne.keys.length-1,oe.isFirst=ue==0,fe.post&&fe.post.call(ne,oe),C.pop()}),V.pop()),fe.after&&fe.after.call(ne,ne.node)),ne}(R).node}function v(R){if(typeof R=="object"&&R!==null){var X;if(j(R))X=[];else if(b(R))X=new Date(R.getTime?R.getTime():R);else if(A(R))X=new RegExp(R);else if(g(R))X={message:R.message};else if(L(R))X=new Boolean(R);else if(N(R))X=new Number(R);else if(B(R))X=new String(R);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(R));else if(R.constructor===Object)X={};else{var M=R.constructor&&R.constructor.prototype||R.__proto__||{},C=function(){};C.prototype=M,X=new C}return _(x(R),function(V){X[V]=R[V]}),X}else return R}var x=Object.keys||function(X){var M=[];for(var C in X)M.push(C);return M};function d(R){return Object.prototype.toString.call(R)}function b(R){return d(R)==="[object Date]"}function A(R){return d(R)==="[object RegExp]"}function g(R){return d(R)==="[object Error]"}function L(R){return d(R)==="[object Boolean]"}function N(R){return d(R)==="[object Number]"}function B(R){return d(R)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},_=function(R,X){if(R.forEach)return R.forEach(X);for(var M=0;M<R.length;M++)X(R[M],M,R)};_(x(o.prototype),function(R){I[R]=function(X){var M=[].slice.call(arguments,1),C=new o(X);return C[R].apply(C,M)}});var H=Object.hasOwnProperty||function(R,X){return X in R}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|
|
505
|
+
*/const c=o(79742),v=o(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const W=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(W,O),W.foo()===42}catch(W){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function A(W){if(W>d)throw new RangeError('The value "'+W+'" is invalid for option "size"');const O=new Uint8Array(W);return Object.setPrototypeOf(O,g.prototype),O}function g(W,O,P){if(typeof W=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(W)}return L(W,O,P)}g.poolSize=8192;function L(W,O,P){if(typeof W=="string")return _(W,O);if(ArrayBuffer.isView(W))return R(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Re(W,ArrayBuffer)||W&&Re(W.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Re(W,SharedArrayBuffer)||W&&Re(W.buffer,SharedArrayBuffer)))return X(W,O,P);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ie=W.valueOf&&W.valueOf();if(ie!=null&&ie!==W)return g.from(ie,O,P);const D=M(W);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return g.from(W[Symbol.toPrimitive]("string"),O,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}g.from=function(W,O,P){return L(W,O,P)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function N(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function B(W,O,P){return N(W),W<=0?A(W):O!==void 0?typeof P=="string"?A(W).fill(O,P):A(W).fill(O):A(W)}g.alloc=function(W,O,P){return B(W,O,P)};function j(W){return N(W),A(W<0?0:C(W)|0)}g.allocUnsafe=function(W){return j(W)},g.allocUnsafeSlow=function(W){return j(W)};function _(W,O){if((typeof O!="string"||O==="")&&(O="utf8"),!g.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const P=J(W,O)|0;let ie=A(P);const D=ie.write(W,O);return D!==P&&(ie=ie.slice(0,D)),ie}function H(W){const O=W.length<0?0:C(W.length)|0,P=A(O);for(let ie=0;ie<O;ie+=1)P[ie]=W[ie]&255;return P}function R(W){if(Re(W,Uint8Array)){const O=new Uint8Array(W);return X(O.buffer,O.byteOffset,O.byteLength)}return H(W)}function X(W,O,P){if(O<0||W.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<O+(P||0))throw new RangeError('"length" is outside of buffer bounds');let ie;return O===void 0&&P===void 0?ie=new Uint8Array(W):P===void 0?ie=new Uint8Array(W,O):ie=new Uint8Array(W,O,P),Object.setPrototypeOf(ie,g.prototype),ie}function M(W){if(g.isBuffer(W)){const O=C(W.length)|0,P=A(O);return P.length===0||W.copy(P,0,0,O),P}if(W.length!==void 0)return typeof W.length!="number"||be(W.length)?A(0):H(W);if(W.type==="Buffer"&&Array.isArray(W.data))return H(W.data)}function C(W){if(W>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return W|0}function V(W){return+W!=W&&(W=0),g.alloc(+W)}g.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==g.prototype},g.compare=function(O,P){if(Re(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),Re(P,Uint8Array)&&(P=g.from(P,P.offset,P.byteLength)),!g.isBuffer(O)||!g.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===P)return 0;let ie=O.length,D=P.length;for(let ee=0,ce=Math.min(ie,D);ee<ce;++ee)if(O[ee]!==P[ee]){ie=O[ee],D=P[ee];break}return ie<D?-1:D<ie?1:0},g.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(O,P){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return g.alloc(0);let ie;if(P===void 0)for(P=0,ie=0;ie<O.length;++ie)P+=O[ie].length;const D=g.allocUnsafe(P);let ee=0;for(ie=0;ie<O.length;++ie){let ce=O[ie];if(Re(ce,Uint8Array))ee+ce.length>D.length?(g.isBuffer(ce)||(ce=g.from(ce)),ce.copy(D,ee)):Uint8Array.prototype.set.call(D,ce,ee);else if(g.isBuffer(ce))ce.copy(D,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ce.length}return D};function J(W,O){if(g.isBuffer(W))return W.length;if(ArrayBuffer.isView(W)||Re(W,ArrayBuffer))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const P=W.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&P===0)return 0;let D=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return Mt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return K(W).length;default:if(D)return ie?-1:Mt(W).length;O=(""+O).toLowerCase(),D=!0}}g.byteLength=J;function q(W,O,P){let ie=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,O>>>=0,P<=O))return"";for(W||(W="utf8");;)switch(W){case"hex":return rt(this,O,P);case"utf8":case"utf-8":return oe(this,O,P);case"ascii":return Le(this,O,P);case"latin1":case"binary":return ke(this,O,P);case"base64":return ue(this,O,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,O,P);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ie=!0}}g.prototype._isBuffer=!0;function Q(W,O,P){const ie=W[O];W[O]=W[P],W[P]=ie}g.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<O;P+=2)Q(this,P,P+1);return this},g.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<O;P+=4)Q(this,P,P+3),Q(this,P+1,P+2);return this},g.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<O;P+=8)Q(this,P,P+7),Q(this,P+1,P+6),Q(this,P+2,P+5),Q(this,P+3,P+4);return this},g.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?oe(this,0,O):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(O){if(!g.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:g.compare(this,O)===0},g.prototype.inspect=function(){let O="";const P=I.INSPECT_MAX_BYTES;return O=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(O+=" ... "),"<Buffer "+O+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(O,P,ie,D,ee){if(Re(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(P===void 0&&(P=0),ie===void 0&&(ie=O?O.length:0),D===void 0&&(D=0),ee===void 0&&(ee=this.length),P<0||ie>O.length||D<0||ee>this.length)throw new RangeError("out of range index");if(D>=ee&&P>=ie)return 0;if(D>=ee)return-1;if(P>=ie)return 1;if(P>>>=0,ie>>>=0,D>>>=0,ee>>>=0,this===O)return 0;let ce=ee-D,Oe=ie-P;const Pe=Math.min(ce,Oe),Te=this.slice(D,ee),Ge=O.slice(P,ie);for(let He=0;He<Pe;++He)if(Te[He]!==Ge[He]){ce=Te[He],Oe=Ge[He];break}return ce<Oe?-1:Oe<ce?1:0};function Y(W,O,P,ie,D){if(W.length===0)return-1;if(typeof P=="string"?(ie=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,be(P)&&(P=D?0:W.length-1),P<0&&(P=W.length+P),P>=W.length){if(D)return-1;P=W.length-1}else if(P<0)if(D)P=0;else return-1;if(typeof O=="string"&&(O=g.from(O,ie)),g.isBuffer(O))return O.length===0?-1:fe(W,O,P,ie,D);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(W,O,P):Uint8Array.prototype.lastIndexOf.call(W,O,P):fe(W,[O],P,ie,D);throw new TypeError("val must be string, number or Buffer")}function fe(W,O,P,ie,D){let ee=1,ce=W.length,Oe=O.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(W.length<2||O.length<2)return-1;ee=2,ce/=2,Oe/=2,P/=2}function Pe(Ge,He){return ee===1?Ge[He]:Ge.readUInt16BE(He*ee)}let Te;if(D){let Ge=-1;for(Te=P;Te<ce;Te++)if(Pe(W,Te)===Pe(O,Ge===-1?0:Te-Ge)){if(Ge===-1&&(Ge=Te),Te-Ge+1===Oe)return Ge*ee}else Ge!==-1&&(Te-=Te-Ge),Ge=-1}else for(P+Oe>ce&&(P=ce-Oe),Te=P;Te>=0;Te--){let Ge=!0;for(let He=0;He<Oe;He++)if(Pe(W,Te+He)!==Pe(O,He)){Ge=!1;break}if(Ge)return Te}return-1}g.prototype.includes=function(O,P,ie){return this.indexOf(O,P,ie)!==-1},g.prototype.indexOf=function(O,P,ie){return Y(this,O,P,ie,!0)},g.prototype.lastIndexOf=function(O,P,ie){return Y(this,O,P,ie,!1)};function te(W,O,P,ie){P=Number(P)||0;const D=W.length-P;ie?(ie=Number(ie),ie>D&&(ie=D)):ie=D;const ee=O.length;ie>ee/2&&(ie=ee/2);let ce;for(ce=0;ce<ie;++ce){const Oe=parseInt(O.substr(ce*2,2),16);if(be(Oe))return ce;W[P+ce]=Oe}return ce}function ne(W,O,P,ie){return we(Mt(O,W.length-P),W,P,ie)}function ye(W,O,P,ie){return we(pe(O),W,P,ie)}function ve(W,O,P,ie){return we(K(O),W,P,ie)}function de(W,O,P,ie){return we(G(O,W.length-P),W,P,ie)}g.prototype.write=function(O,P,ie,D){if(P===void 0)D="utf8",ie=this.length,P=0;else if(ie===void 0&&typeof P=="string")D=P,ie=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(ie)?(ie=ie>>>0,D===void 0&&(D="utf8")):(D=ie,ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-P;if((ie===void 0||ie>ee)&&(ie=ee),O.length>0&&(ie<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");let ce=!1;for(;;)switch(D){case"hex":return te(this,O,P,ie);case"utf8":case"utf-8":return ne(this,O,P,ie);case"ascii":case"latin1":case"binary":return ye(this,O,P,ie);case"base64":return ve(this,O,P,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,O,P,ie);default:if(ce)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),ce=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(W,O,P){return O===0&&P===W.length?c.fromByteArray(W):c.fromByteArray(W.slice(O,P))}function oe(W,O,P){P=Math.min(W.length,P);const ie=[];let D=O;for(;D<P;){const ee=W[D];let ce=null,Oe=ee>239?4:ee>223?3:ee>191?2:1;if(D+Oe<=P){let Pe,Te,Ge,He;switch(Oe){case 1:ee<128&&(ce=ee);break;case 2:Pe=W[D+1],(Pe&192)==128&&(He=(ee&31)<<6|Pe&63,He>127&&(ce=He));break;case 3:Pe=W[D+1],Te=W[D+2],(Pe&192)==128&&(Te&192)==128&&(He=(ee&15)<<12|(Pe&63)<<6|Te&63,He>2047&&(He<55296||He>57343)&&(ce=He));break;case 4:Pe=W[D+1],Te=W[D+2],Ge=W[D+3],(Pe&192)==128&&(Te&192)==128&&(Ge&192)==128&&(He=(ee&15)<<18|(Pe&63)<<12|(Te&63)<<6|Ge&63,He>65535&&He<1114112&&(ce=He))}}ce===null?(ce=65533,Oe=1):ce>65535&&(ce-=65536,ie.push(ce>>>10&1023|55296),ce=56320|ce&1023),ie.push(ce),D+=Oe}return Ve(ie)}const De=4096;function Ve(W){const O=W.length;if(O<=De)return String.fromCharCode.apply(String,W);let P="",ie=0;for(;ie<O;)P+=String.fromCharCode.apply(String,W.slice(ie,ie+=De));return P}function Le(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]&127);return ie}function ke(W,O,P){let ie="";P=Math.min(W.length,P);for(let D=O;D<P;++D)ie+=String.fromCharCode(W[D]);return ie}function rt(W,O,P){const ie=W.length;(!O||O<0)&&(O=0),(!P||P<0||P>ie)&&(P=ie);let D="";for(let ee=O;ee<P;++ee)D+=Ae[W[ee]];return D}function Qe(W,O,P){const ie=W.slice(O,P);let D="";for(let ee=0;ee<ie.length-1;ee+=2)D+=String.fromCharCode(ie[ee]+ie[ee+1]*256);return D}g.prototype.slice=function(O,P){const ie=this.length;O=~~O,P=P===void 0?ie:~~P,O<0?(O+=ie,O<0&&(O=0)):O>ie&&(O=ie),P<0?(P+=ie,P<0&&(P=0)):P>ie&&(P=ie),P<O&&(P=O);const D=this.subarray(O,P);return Object.setPrototypeOf(D,g.prototype),D};function Xe(W,O,P){if(W%1!=0||W<0)throw new RangeError("offset is not uint");if(W+O>P)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=this[O],ee=1,ce=0;for(;++ce<P&&(ee*=256);)D+=this[O+ce]*ee;return D},g.prototype.readUintBE=g.prototype.readUIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=this[O+--P],ee=1;for(;P>0&&(ee*=256);)D+=this[O+--P]*ee;return D},g.prototype.readUint8=g.prototype.readUInt8=function(O,P){return O=O>>>0,P||Xe(O,1,this.length),this[O]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(O,P){return O=O>>>0,P||Xe(O,2,this.length),this[O]|this[O+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(O,P){return O=O>>>0,P||Xe(O,2,this.length),this[O]<<8|this[O+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},g.prototype.readBigUInt64LE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=P+this[++O]*yr(2,8)+this[++O]*yr(2,16)+this[++O]*yr(2,24),ee=this[++O]+this[++O]*yr(2,8)+this[++O]*yr(2,16)+ie*yr(2,24);return BigInt(D)+(BigInt(ee)<<BigInt(32))}),g.prototype.readBigUInt64BE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=P*yr(2,24)+this[++O]*yr(2,16)+this[++O]*yr(2,8)+this[++O],ee=this[++O]*yr(2,24)+this[++O]*yr(2,16)+this[++O]*yr(2,8)+ie;return(BigInt(D)<<BigInt(32))+BigInt(ee)}),g.prototype.readIntLE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=this[O],ee=1,ce=0;for(;++ce<P&&(ee*=256);)D+=this[O+ce]*ee;return ee*=128,D>=ee&&(D-=Math.pow(2,8*P)),D},g.prototype.readIntBE=function(O,P,ie){O=O>>>0,P=P>>>0,ie||Xe(O,P,this.length);let D=P,ee=1,ce=this[O+--D];for(;D>0&&(ee*=256);)ce+=this[O+--D]*ee;return ee*=128,ce>=ee&&(ce-=Math.pow(2,8*P)),ce},g.prototype.readInt8=function(O,P){return O=O>>>0,P||Xe(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},g.prototype.readInt16LE=function(O,P){O=O>>>0,P||Xe(O,2,this.length);const ie=this[O]|this[O+1]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt16BE=function(O,P){O=O>>>0,P||Xe(O,2,this.length);const ie=this[O+1]|this[O]<<8;return ie&32768?ie|4294901760:ie},g.prototype.readInt32LE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},g.prototype.readInt32BE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},g.prototype.readBigInt64LE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=this[O+4]+this[O+5]*yr(2,8)+this[O+6]*yr(2,16)+(ie<<24);return(BigInt(D)<<BigInt(32))+BigInt(P+this[++O]*yr(2,8)+this[++O]*yr(2,16)+this[++O]*yr(2,24))}),g.prototype.readBigInt64BE=T(function(O){O=O>>>0,jt(O,"offset");const P=this[O],ie=this[O+7];(P===void 0||ie===void 0)&&Nt(O,this.length-8);const D=(P<<24)+this[++O]*yr(2,16)+this[++O]*yr(2,8)+this[++O];return(BigInt(D)<<BigInt(32))+BigInt(this[++O]*yr(2,24)+this[++O]*yr(2,16)+this[++O]*yr(2,8)+ie)}),g.prototype.readFloatLE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),v.read(this,O,!0,23,4)},g.prototype.readFloatBE=function(O,P){return O=O>>>0,P||Xe(O,4,this.length),v.read(this,O,!1,23,4)},g.prototype.readDoubleLE=function(O,P){return O=O>>>0,P||Xe(O,8,this.length),v.read(this,O,!0,52,8)},g.prototype.readDoubleBE=function(O,P){return O=O>>>0,P||Xe(O,8,this.length),v.read(this,O,!1,52,8)};function ut(W,O,P,ie,D,ee){if(!g.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>D||O<ee)throw new RangeError('"value" argument is out of bounds');if(P+ie>W.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=1,ce=0;for(this[P]=O&255;++ce<ie&&(ee*=256);)this[P+ce]=O/ee&255;return P+ie},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,ie=ie>>>0,!D){const Oe=Math.pow(2,8*ie)-1;ut(this,O,P,ie,Oe,0)}let ee=ie-1,ce=1;for(this[P+ee]=O&255;--ee>=0&&(ce*=256);)this[P+ee]=O/ce&255;return P+ie},g.prototype.writeUint8=g.prototype.writeUInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,255,0),this[P]=O&255,P+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,65535,0),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P+3]=O>>>24,this[P+2]=O>>>16,this[P+1]=O>>>8,this[P]=O&255,P+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,4294967295,0),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4};function pt(W,O,P,ie,D){At(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee,ee=ee>>8,W[P++]=ee;let ce=Number(O>>BigInt(32)&BigInt(4294967295));return W[P++]=ce,ce=ce>>8,W[P++]=ce,ce=ce>>8,W[P++]=ce,ce=ce>>8,W[P++]=ce,P}function yt(W,O,P,ie,D){At(O,ie,D,W,P,7);let ee=Number(O&BigInt(4294967295));W[P+7]=ee,ee=ee>>8,W[P+6]=ee,ee=ee>>8,W[P+5]=ee,ee=ee>>8,W[P+4]=ee;let ce=Number(O>>BigInt(32)&BigInt(4294967295));return W[P+3]=ce,ce=ce>>8,W[P+2]=ce,ce=ce>>8,W[P+1]=ce,ce=ce>>8,W[P]=ce,P+8}g.prototype.writeBigUInt64LE=T(function(O,P=0){return pt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=T(function(O,P=0){return yt(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=0,ce=1,Oe=0;for(this[P]=O&255;++ee<ie&&(ce*=256);)O<0&&Oe===0&&this[P+ee-1]!==0&&(Oe=1),this[P+ee]=(O/ce>>0)-Oe&255;return P+ie},g.prototype.writeIntBE=function(O,P,ie,D){if(O=+O,P=P>>>0,!D){const Pe=Math.pow(2,8*ie-1);ut(this,O,P,ie,Pe-1,-Pe)}let ee=ie-1,ce=1,Oe=0;for(this[P+ee]=O&255;--ee>=0&&(ce*=256);)O<0&&Oe===0&&this[P+ee+1]!==0&&(Oe=1),this[P+ee]=(O/ce>>0)-Oe&255;return P+ie},g.prototype.writeInt8=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,1,127,-128),O<0&&(O=255+O+1),this[P]=O&255,P+1},g.prototype.writeInt16LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O&255,this[P+1]=O>>>8,P+2},g.prototype.writeInt16BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,2,32767,-32768),this[P]=O>>>8,this[P+1]=O&255,P+2},g.prototype.writeInt32LE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),this[P]=O&255,this[P+1]=O>>>8,this[P+2]=O>>>16,this[P+3]=O>>>24,P+4},g.prototype.writeInt32BE=function(O,P,ie){return O=+O,P=P>>>0,ie||ut(this,O,P,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4},g.prototype.writeBigInt64LE=T(function(O,P=0){return pt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=T(function(O,P=0){return yt(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qe(W,O,P,ie,D,ee){if(P+ie>W.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function lt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,4,34028234663852886e22,-34028234663852886e22),v.write(W,O,P,ie,23,4),P+4}g.prototype.writeFloatLE=function(O,P,ie){return lt(this,O,P,!0,ie)},g.prototype.writeFloatBE=function(O,P,ie){return lt(this,O,P,!1,ie)};function vt(W,O,P,ie,D){return O=+O,P=P>>>0,D||qe(W,O,P,8,17976931348623157e292,-17976931348623157e292),v.write(W,O,P,ie,52,8),P+8}g.prototype.writeDoubleLE=function(O,P,ie){return vt(this,O,P,!0,ie)},g.prototype.writeDoubleBE=function(O,P,ie){return vt(this,O,P,!1,ie)},g.prototype.copy=function(O,P,ie,D){if(!g.isBuffer(O))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),!D&&D!==0&&(D=this.length),P>=O.length&&(P=O.length),P||(P=0),D>0&&D<ie&&(D=ie),D===ie||O.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(ie<0||ie>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),O.length-P<D-ie&&(D=O.length-P+ie);const ee=D-ie;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,ie,D):Uint8Array.prototype.set.call(O,this.subarray(ie,D),P),ee},g.prototype.fill=function(O,P,ie,D){if(typeof O=="string"){if(typeof P=="string"?(D=P,P=0,ie=this.length):typeof ie=="string"&&(D=ie,ie=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");if(typeof D=="string"&&!g.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(O.length===1){const ce=O.charCodeAt(0);(D==="utf8"&&ce<128||D==="latin1")&&(O=ce)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(P<0||this.length<P||this.length<ie)throw new RangeError("Out of range index");if(ie<=P)return this;P=P>>>0,ie=ie===void 0?this.length:ie>>>0,O||(O=0);let ee;if(typeof O=="number")for(ee=P;ee<ie;++ee)this[ee]=O;else{const ce=g.isBuffer(O)?O:g.from(O,D),Oe=ce.length;if(Oe===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(ee=0;ee<ie-P;++ee)this[ee+P]=ce[ee%Oe]}return this};const mt={};function dt(W,O,P){mt[W]=class extends P{constructor(){super();Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(D){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:D,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(W,O){return`The "${W}" argument must be of type number. Received type ${typeof O}`},TypeError),dt("ERR_OUT_OF_RANGE",function(W,O,P){let ie=`The value of "${W}" is out of range.`,D=P;return Number.isInteger(P)&&Math.abs(P)>yr(2,32)?D=kt(String(P)):typeof P=="bigint"&&(D=String(P),(P>yr(BigInt(2),BigInt(32))||P<-yr(BigInt(2),BigInt(32)))&&(D=kt(D)),D+="n"),ie+=` It must be ${O}. Received ${D}`,ie},RangeError);function kt(W){let O="",P=W.length;const ie=W[0]==="-"?1:0;for(;P>=ie+4;P-=3)O=`_${W.slice(P-3,P)}${O}`;return`${W.slice(0,P)}${O}`}function It(W,O,P){jt(O,"offset"),(W[O]===void 0||W[O+P]===void 0)&&Nt(O,W.length-(P+1))}function At(W,O,P,ie,D,ee){if(W>P||W<O){const ce=typeof O=="bigint"?"n":"";let Oe;throw ee>3?O===0||O===BigInt(0)?Oe=`>= 0${ce} and < 2${ce} ** ${(ee+1)*8}${ce}`:Oe=`>= -(2${ce} ** ${(ee+1)*8-1}${ce}) and < 2 ** ${(ee+1)*8-1}${ce}`:Oe=`>= ${O}${ce} and <= ${P}${ce}`,new mt.ERR_OUT_OF_RANGE("value",Oe,W)}It(ie,D,ee)}function jt(W,O){if(typeof W!="number")throw new mt.ERR_INVALID_ARG_TYPE(O,"number",W)}function Nt(W,O,P){throw Math.floor(W)!==W?(jt(W,P),new mt.ERR_OUT_OF_RANGE(P||"offset","an integer",W)):O<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(P||"offset",`>= ${P?1:0} and <= ${O}`,W)}const $t=/[^+/0-9A-Za-z-_]/g;function St(W){if(W=W.split("=")[0],W=W.trim().replace($t,""),W.length<2)return"";for(;W.length%4!=0;)W=W+"=";return W}function Mt(W,O){O=O||1/0;let P;const ie=W.length;let D=null;const ee=[];for(let ce=0;ce<ie;++ce){if(P=W.charCodeAt(ce),P>55295&&P<57344){if(!D){if(P>56319){(O-=3)>-1&&ee.push(239,191,189);continue}else if(ce+1===ie){(O-=3)>-1&&ee.push(239,191,189);continue}D=P;continue}if(P<56320){(O-=3)>-1&&ee.push(239,191,189),D=P;continue}P=(D-55296<<10|P-56320)+65536}else D&&(O-=3)>-1&&ee.push(239,191,189);if(D=null,P<128){if((O-=1)<0)break;ee.push(P)}else if(P<2048){if((O-=2)<0)break;ee.push(P>>6|192,P&63|128)}else if(P<65536){if((O-=3)<0)break;ee.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((O-=4)<0)break;ee.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return ee}function pe(W){const O=[];for(let P=0;P<W.length;++P)O.push(W.charCodeAt(P)&255);return O}function G(W,O){let P,ie,D;const ee=[];for(let ce=0;ce<W.length&&!((O-=2)<0);++ce)P=W.charCodeAt(ce),ie=P>>8,D=P%256,ee.push(D),ee.push(ie);return ee}function K(W){return c.toByteArray(St(W))}function we(W,O,P,ie){let D;for(D=0;D<ie&&!(D+P>=O.length||D>=W.length);++D)O[D+P]=W[D];return D}function Re(W,O){return W instanceof O||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===O.name}function be(W){return W!==W}const Ae=function(){const W="0123456789abcdef",O=new Array(256);for(let P=0;P<16;++P){const ie=P*16;for(let D=0;D<16;++D)O[ie+D]=W[P]+W[D]}return O}();function T(W){return typeof BigInt=="undefined"?Ie:W}function Ie(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,o,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(H){return H.replace(/&#(\d+);/g,function(R,X){return String.fromCharCode(parseInt(X,10))})},A=function(H,R){return H&&typeof H=="string"&&R.comma&&H.indexOf(",")>-1?H.split(","):H},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",N=function(R,X){var M={},C=X.ignoreQueryPrefix?R.replace(/^\?/,""):R,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),q=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),q=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==q){var fe=J[Q],te=fe.indexOf("]="),ne=te===-1?fe.indexOf("="):te+1,ye,ve;ne===-1?(ye=X.decoder(fe,d.decoder,Y,"key"),ve=X.strictNullHandling?null:""):(ye=X.decoder(fe.slice(0,ne),d.decoder,Y,"key"),ve=c.maybeMap(A(fe.slice(ne+1),X),function(de){return X.decoder(de,d.decoder,Y,"value")})),ve&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(ve=b(ve)),fe.indexOf("[]=")>-1&&(ve=x(ve)?[ve]:ve),v.call(M,ye)?M[ye]=c.combine(M[ye],ve):M[ye]=ve}return M},B=function(H,R,X,M){for(var C=M?R:A(R,X),V=H.length-1;V>=0;--V){var J,q=H[V];if(q==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&q!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(R,X,M,C){if(!!R){var V=M.allowDots?R.replace(/\.([^.[]+)/g,"[$1]"):R,J=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Q=M.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,fe=[];if(Y){if(!M.plainObjects&&v.call(Object.prototype,Y)&&!M.allowPrototypes)return;fe.push(Y)}for(var te=0;M.depth>0&&(Q=q.exec(V))!==null&&te<M.depth;){if(te+=1,!M.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!M.allowPrototypes)return;fe.push(Q[1])}return Q&&fe.push("["+V.slice(Q.index)+"]"),B(fe,X,M,C)}},_=function(R){if(!R)return d;if(R.decoder!==null&&R.decoder!==void 0&&typeof R.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof R.charset=="undefined"?d.charset:R.charset;return{allowDots:typeof R.allowDots=="undefined"?d.allowDots:!!R.allowDots,allowPrototypes:typeof R.allowPrototypes=="boolean"?R.allowPrototypes:d.allowPrototypes,allowSparse:typeof R.allowSparse=="boolean"?R.allowSparse:d.allowSparse,arrayLimit:typeof R.arrayLimit=="number"?R.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:d.charsetSentinel,comma:typeof R.comma=="boolean"?R.comma:d.comma,decoder:typeof R.decoder=="function"?R.decoder:d.decoder,delimiter:typeof R.delimiter=="string"||c.isRegExp(R.delimiter)?R.delimiter:d.delimiter,depth:typeof R.depth=="number"||R.depth===!1?+R.depth:d.depth,ignoreQueryPrefix:R.ignoreQueryPrefix===!0,interpretNumericEntities:typeof R.interpretNumericEntities=="boolean"?R.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof R.parameterLimit=="number"?R.parameterLimit:d.parameterLimit,parseArrays:R.parseArrays!==!1,plainObjects:typeof R.plainObjects=="boolean"?R.plainObjects:d.plainObjects,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:d.strictNullHandling}};h.exports=function(H,R){var X=_(R);if(H===""||H===null||typeof H=="undefined")return X.plainObjects?Object.create(null):{};for(var M=typeof H=="string"?N(H,X):H,C=X.plainObjects?Object.create(null):{},V=Object.keys(M),J=0;J<V.length;++J){var q=V[J],Q=j(q,M[q],X,typeof H=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,C){return M+"["+C+"]"},repeat:function(M){return M}},A=Array.isArray,g=Array.prototype.push,L=function(X,M){g.apply(X,A(M)?M:[M])},N=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(M){return N.call(M)},skipNulls:!1,strictNullHandling:!1},_=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},H=function X(M,C,V,J,q,Q,Y,fe,te,ne,ye,ve,de,ue,oe){var De=M;if(oe.has(M))throw new RangeError("Cyclic object value");if(typeof Y=="function"?De=Y(C,De):De instanceof Date?De=ne(De):V==="comma"&&A(De)&&(De=v.maybeMap(De,function(qe){return qe instanceof Date?ne(qe):qe})),De===null){if(J)return Q&&!de?Q(C,j.encoder,ue,"key",ye):C;De=""}if(_(De)||v.isBuffer(De)){if(Q){var Ve=de?C:Q(C,j.encoder,ue,"key",ye);return[ve(Ve)+"="+ve(Q(De,j.encoder,ue,"value",ye))]}return[ve(C)+"="+ve(String(De))]}var Le=[];if(typeof De=="undefined")return Le;var ke;if(V==="comma"&&A(De))ke=[{value:De.length>0?De.join(",")||null:void 0}];else if(A(Y))ke=Y;else{var rt=Object.keys(De);ke=fe?rt.sort(fe):rt}for(var Qe=0;Qe<ke.length;++Qe){var Xe=ke[Qe],ut=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:De[Xe];if(!(q&&ut===null)){var pt=A(De)?typeof V=="function"?V(C,Xe):C:C+(te?"."+Xe:"["+Xe+"]");oe.set(M,!0);var yt=c();L(Le,X(ut,pt,V,J,q,Q,Y,fe,te,ne,ye,ve,de,ue,yt))}}return Le},R=function(M){if(!M)return j;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=M.charset||j.charset;if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof M.format!="undefined"){if(!d.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var J=x.formatters[V],q=j.filter;return(typeof M.filter=="function"||A(M.filter))&&(q=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:j.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?j.allowDots:!!M.allowDots,charset:C,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:j.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?j.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:j.encode,encoder:typeof M.encoder=="function"?M.encoder:j.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:j.encodeValuesOnly,filter:q,format:V,formatter:J,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:j.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:j.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:j.strictNullHandling}};h.exports=function(X,M){var C=X,V=R(M),J,q;typeof V.filter=="function"?(q=V.filter,C=q("",C)):A(V.filter)&&(q=V.filter,J=q);var Q=[];if(typeof C!="object"||C===null)return"";var Y;M&&M.arrayFormat in b?Y=M.arrayFormat:M&&"indices"in M?Y=M.indices?"indices":"repeat":Y="indices";var fe=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var te=c(),ne=0;ne<J.length;++ne){var ye=J[ne];V.skipNulls&&C[ye]===null||L(Q,H(C[ye],ye,fe,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,te))}var ve=Q.join(V.delimiter),de=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?de+="utf8=%26%2310003%3B&":de+="utf8=%E2%9C%93&"),ve.length>0?de+ve:""}},58760:(h,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var M=[],C=0;C<256;++C)M.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return M}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var q=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&q.push(J[Q]);V.obj[V.prop]=q}}},A=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},q=0;q<C.length;++q)typeof C[q]!="undefined"&&(J[q]=C[q]);return J},g=function M(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var q=C;return x(C)&&!x(V)&&(q=A(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var fe=C[Y];fe&&typeof fe=="object"&&Q&&typeof Q=="object"?C[Y]=M(fe,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var fe=V[Y];return v.call(Q,Y)?Q[Y]=M(Q[Y],fe,J):Q[Y]=fe,Q},q)},L=function(C,V){return Object.keys(V).reduce(function(J,q){return J[q]=V[q],J},C)},N=function(M,C,V){var J=M.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(q){return J}},B=function(C,V,J,q,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var fe="",te=0;te<Y.length;++te){var ne=Y.charCodeAt(te);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||Q===c.RFC1738&&(ne===40||ne===41)){fe+=Y.charAt(te);continue}if(ne<128){fe=fe+d[ne];continue}if(ne<2048){fe=fe+(d[192|ne>>6]+d[128|ne&63]);continue}if(ne<55296||ne>=57344){fe=fe+(d[224|ne>>12]+d[128|ne>>6&63]+d[128|ne&63]);continue}te+=1,ne=65536+((ne&1023)<<10|Y.charCodeAt(te)&1023),fe+=d[240|ne>>18]+d[128|ne>>12&63]+d[128|ne>>6&63]+d[128|ne&63]}return fe},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],q=0;q<V.length;++q)for(var Q=V[q],Y=Q.obj[Q.prop],fe=Object.keys(Y),te=0;te<fe.length;++te){var ne=fe[te],ye=Y[ne];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(V.push({obj:Y,prop:ne}),J.push(ye))}return b(V),C},_=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},H=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},R=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],q=0;q<C.length;q+=1)J.push(V(C[q]));return J}return V(C)};h.exports={arrayToObject:A,assign:L,combine:R,compact:j,decode:N,encode:B,isBuffer:H,isRegExp:_,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(R){return new o(R)};function o(R){this.value=R}o.prototype.get=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!H.call(X,C)){X=void 0;break}X=X[C]}return X},o.prototype.has=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!H.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(R,X){for(var M=this.value,C=0;C<R.length-1;C++){var V=R[C];H.call(M,V)||(M[V]={}),M=M[V]}return M[R[C]]=X,X},o.prototype.map=function(R){return c(this.value,R,!0)},o.prototype.forEach=function(R){return this.value=c(this.value,R,!1),this.value},o.prototype.reduce=function(R,X){var M=arguments.length===1,C=M?this.value:X;return this.forEach(function(V){(!this.isRoot||!M)&&(C=R.call(this,C,V))}),C},o.prototype.paths=function(){var R=[];return this.forEach(function(X){R.push(this.path)}),R},o.prototype.nodes=function(){var R=[];return this.forEach(function(X){R.push(this.node)}),R},o.prototype.clone=function(){var R=[],X=[];return function M(C){for(var V=0;V<R.length;V++)if(R[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return R.push(C),X.push(J),_(x(C),function(q){J[q]=M(C[q])}),R.pop(),X.pop(),J}else return C}(this.value)};function c(R,X,M){var C=[],V=[],J=!0;return function q(Q){var Y=M?v(Q):Q,fe={},te=!0,ne={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(de,ue){ne.isRoot||(ne.parent.node[ne.key]=de),ne.node=de,ue&&(te=!1)},delete:function(de){delete ne.parent.node[ne.key],de&&(te=!1)},remove:function(de){j(ne.parent.node)?ne.parent.node.splice(ne.key,1):delete ne.parent.node[ne.key],de&&(te=!1)},keys:null,before:function(de){fe.before=de},after:function(de){fe.after=de},pre:function(de){fe.pre=de},post:function(de){fe.post=de},stop:function(){J=!1},block:function(){te=!1}};if(!J)return ne;function ye(){if(typeof ne.node=="object"&&ne.node!==null){(!ne.keys||ne.node_!==ne.node)&&(ne.keys=x(ne.node)),ne.isLeaf=ne.keys.length==0;for(var de=0;de<V.length;de++)if(V[de].node_===Q){ne.circular=V[de];break}}else ne.isLeaf=!0,ne.keys=null;ne.notLeaf=!ne.isLeaf,ne.notRoot=!ne.isRoot}ye();var ve=X.call(ne,ne.node);return ve!==void 0&&ne.update&&ne.update(ve),fe.before&&fe.before.call(ne,ne.node),te&&(typeof ne.node=="object"&&ne.node!==null&&!ne.circular&&(V.push(ne),ye(),_(ne.keys,function(de,ue){C.push(de),fe.pre&&fe.pre.call(ne,ne.node[de],de);var oe=q(ne.node[de]);M&&H.call(ne.node,de)&&(ne.node[de]=oe.node),oe.isLast=ue==ne.keys.length-1,oe.isFirst=ue==0,fe.post&&fe.post.call(ne,oe),C.pop()}),V.pop()),fe.after&&fe.after.call(ne,ne.node)),ne}(R).node}function v(R){if(typeof R=="object"&&R!==null){var X;if(j(R))X=[];else if(b(R))X=new Date(R.getTime?R.getTime():R);else if(A(R))X=new RegExp(R);else if(g(R))X={message:R.message};else if(L(R))X=new Boolean(R);else if(N(R))X=new Number(R);else if(B(R))X=new String(R);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(R));else if(R.constructor===Object)X={};else{var M=R.constructor&&R.constructor.prototype||R.__proto__||{},C=function(){};C.prototype=M,X=new C}return _(x(R),function(V){X[V]=R[V]}),X}else return R}var x=Object.keys||function(X){var M=[];for(var C in X)M.push(C);return M};function d(R){return Object.prototype.toString.call(R)}function b(R){return d(R)==="[object Date]"}function A(R){return d(R)==="[object RegExp]"}function g(R){return d(R)==="[object Error]"}function L(R){return d(R)==="[object Boolean]"}function N(R){return d(R)==="[object Number]"}function B(R){return d(R)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},_=function(R,X){if(R.forEach)return R.forEach(X);for(var M=0;M<R.length;M++)X(R[M],M,R)};_(x(o.prototype),function(R){I[R]=function(X){var M=[].slice.call(arguments,1),C=new o(X);return C[R].apply(C,M)}});var H=Object.hasOwnProperty||function(R,X){return X in R}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|