@redocly/reference-docs 2.23.0 → 2.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/bin/cli/commands/redocly-docs-cli.min.js +87 -72
  2. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
  3. package/dist/console.redocly-reference-docs.min.js +121 -121
  4. package/dist/oauth2-redirect.js +1 -1
  5. package/dist/redocly-reference-docs.min.js +866 -851
  6. package/lib/components/common/ClearButton/ClearButton.d.ts +3 -0
  7. package/lib/components/common/ClearButton/ClearButton.js +2 -0
  8. package/lib/components/common/ClearButton/index.d.ts +2 -0
  9. package/lib/components/common/ClearButton/index.js +2 -0
  10. package/lib/components/common/ClearButton/styled.d.ts +2 -0
  11. package/lib/components/common/ClearButton/styled.js +2 -0
  12. package/lib/components/common/ClearButton/types.d.ts +6 -0
  13. package/lib/components/common/ClearButton/types.js +2 -0
  14. package/lib/components/common/Dropdown/Dropdown.js +1 -1
  15. package/lib/components/common/Dropdown/styled.js +1 -1
  16. package/lib/components/common/Dropdown/types.d.ts +2 -0
  17. package/lib/components/console/CodemirrorInput.js +1 -1
  18. package/lib/components/console/ParameterDropdown.js +1 -1
  19. package/lib/components/console/RequestBody.js +1 -1
  20. package/lib/components/console/RequestBodyForm.js +1 -1
  21. package/lib/models/file-upload.d.ts +0 -5
  22. package/lib/models/file-upload.js +1 -1
  23. package/lib/redoc-lib/src/components/Loading/Loading.js +1 -1
  24. package/lib/redoc-lib/src/components/Loading/{Spinner.svg.d.ts → Spinner.d.ts} +0 -0
  25. package/lib/redoc-lib/src/components/Loading/{Spinner.svg.js → Spinner.js} +1 -1
  26. package/lib/redoc-lib/src/services/RedocNormalizedOptions.d.ts +1 -1
  27. package/lib/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  28. package/lib/redoc-lib/src/services/models/ApiInfo.js +1 -1
  29. package/lib/redoc-lib/src/services/models/Field.js +1 -1
  30. package/lib/redoc-lib/src/services/models/Schema.js +1 -1
  31. package/lib/redoc-lib/src/utils/openapi.js +1 -1
  32. package/lib/services/ProStore.js +1 -1
  33. package/lib/services/code-samples/generator.js +1 -1
  34. package/lib/services/code-samples/httpsnippet/index.js +1 -1
  35. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  36. package/lib/services/code-samples/httpsnippet/targets/go/native.js +1 -1
  37. package/lib/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
  38. package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
  39. package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
  40. package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
  41. package/lib/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
  42. package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  43. package/lib/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
  44. package/lib/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
  45. package/lib/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
  46. package/lib/types.d.ts +14 -0
  47. package/lib/types.js +2 -0
  48. package/lib/utils.d.ts +1 -0
  49. package/lib/utils.js +1 -1
  50. package/lib-esm/components/common/ClearButton/ClearButton.d.ts +3 -0
  51. package/lib-esm/components/common/ClearButton/ClearButton.js +2 -0
  52. package/lib-esm/components/common/ClearButton/index.d.ts +2 -0
  53. package/lib-esm/components/common/ClearButton/index.js +2 -0
  54. package/lib-esm/components/common/ClearButton/styled.d.ts +2 -0
  55. package/lib-esm/components/common/ClearButton/styled.js +2 -0
  56. package/lib-esm/components/common/ClearButton/types.d.ts +6 -0
  57. package/lib-esm/components/common/ClearButton/types.js +2 -0
  58. package/lib-esm/components/common/Dropdown/Dropdown.js +1 -1
  59. package/lib-esm/components/common/Dropdown/styled.js +1 -1
  60. package/lib-esm/components/common/Dropdown/types.d.ts +2 -0
  61. package/lib-esm/components/console/CodemirrorInput.js +1 -1
  62. package/lib-esm/components/console/ParameterDropdown.js +1 -1
  63. package/lib-esm/components/console/RequestBody.js +1 -1
  64. package/lib-esm/components/console/RequestBodyForm.js +1 -1
  65. package/lib-esm/models/file-upload.d.ts +0 -5
  66. package/lib-esm/models/file-upload.js +1 -1
  67. package/lib-esm/redoc-lib/src/components/Loading/Loading.js +1 -1
  68. package/lib-esm/redoc-lib/src/components/Loading/{Spinner.svg.d.ts → Spinner.d.ts} +0 -0
  69. package/lib-esm/redoc-lib/src/components/Loading/{Spinner.svg.js → Spinner.js} +1 -1
  70. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.d.ts +1 -1
  71. package/lib-esm/redoc-lib/src/services/RedocNormalizedOptions.js +1 -1
  72. package/lib-esm/redoc-lib/src/services/models/ApiInfo.js +1 -1
  73. package/lib-esm/redoc-lib/src/services/models/Field.js +1 -1
  74. package/lib-esm/redoc-lib/src/services/models/Schema.js +1 -1
  75. package/lib-esm/redoc-lib/src/utils/openapi.js +1 -1
  76. package/lib-esm/services/ProStore.js +1 -1
  77. package/lib-esm/services/code-samples/generator.js +1 -1
  78. package/lib-esm/services/code-samples/httpsnippet/index.js +1 -1
  79. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  80. package/lib-esm/services/code-samples/httpsnippet/targets/go/native.js +1 -1
  81. package/lib-esm/services/code-samples/httpsnippet/targets/java/httpclient.js +1 -1
  82. package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
  83. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
  84. package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
  85. package/lib-esm/services/code-samples/httpsnippet/targets/php/curl.js +1 -1
  86. package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
  87. package/lib-esm/services/code-samples/httpsnippet/targets/r/httr.js +1 -1
  88. package/lib-esm/services/code-samples/httpsnippet/targets/ruby/native.js +1 -1
  89. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.js +1 -1
  90. package/lib-esm/types.d.ts +14 -0
  91. package/lib-esm/types.js +2 -0
  92. package/lib-esm/utils.d.ts +1 -0
  93. package/lib-esm/utils.js +1 -1
  94. package/package.json +2 -2
@@ -2,52 +2,52 @@ var mr=Math.pow;/*!
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "2.23.0"
6
- */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,a)=>{h.exports=a(27698)},77766:(h,I,a)=>{h.exports=a(8065)},72119:(h,I,a)=>{h.exports=a(57448)},20116:(h,I,a)=>{h.exports=a(11955)},94473:(h,I,a)=>{h.exports=a(61577)},78580:(h,I,a)=>{h.exports=a(33778)},2991:(h,I,a)=>{h.exports=a(61798)},3649:(h,I,a)=>{h.exports=a(82073)},92762:(h,I,a)=>{h.exports=a(2348)},59340:(h,I,a)=>{h.exports=a(8933)},51942:(h,I,a)=>{h.exports=a(63383)},26295:(h,I,a)=>{h.exports=a(86209)},86902:(h,I,a)=>{h.exports=a(23059)},93476:(h,I,a)=>{h.exports=a(27460)},52424:(h,I,a)=>{h.exports=a(72010)},53592:(h,I,a)=>{h.exports=a(27385)},78363:(h,I,a)=>{h.exports=a(81522)},19996:(h,I,a)=>{h.exports=a(32209)},30699:(h,I,a)=>{h.exports=a(44442)},28834:(h,I,a)=>{h.exports=a(57152)},95683:(h,I,a)=>{h.exports=a(69447)},95238:(h,I,a)=>{h.exports=a(81493)},189:(h,I,a)=>{h.exports=a(76094)},32752:(h,I,a)=>{h.exports=a(70573)},44341:(h,I,a)=>{h.exports=a(73685)},58377:(h,I,a)=>{h.exports=a(27533)},13038:(h,I,a)=>{h.exports=a(39057)},63263:(h,I,a)=>{h.exports=a(84710)},24889:(h,I,a)=>{h.exports=a(74303)},89356:(h,I,a)=>{h.exports=a(93799)},79542:(h,I,a)=>{h.exports=a(55122)},69798:(h,I,a)=>{h.exports=a(29531)},13535:(h,I,a)=>{h.exports=a(10856)},83863:(h,I,a)=>{h.exports=a(31524)},51446:(h,I,a)=>{h.exports=a(86600)},23882:(h,I,a)=>{h.exports=a(9759)},63109:(h,I,a)=>{h.exports=a(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=ee;for(var a=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)a[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function A(W){var R=W.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=W.indexOf("=");Q===-1&&(Q=R);var M=Q===R?0:4-Q%4;return[Q,M]}function g(W){var R=A(W),Q=R[0],M=R[1];return(Q+M)*3/4-M}function L(W,R,Q){return(R+Q)*3/4-Q}function D(W){var R,Q=A(W),M=Q[0],C=Q[1],V=new v(L(W,M,C)),X=0,q=C>0?M-4:M,Z;for(Z=0;Z<q;Z+=4)R=c[W.charCodeAt(Z)]<<18|c[W.charCodeAt(Z+1)]<<12|c[W.charCodeAt(Z+2)]<<6|c[W.charCodeAt(Z+3)],V[X++]=R>>16&255,V[X++]=R>>8&255,V[X++]=R&255;return C===2&&(R=c[W.charCodeAt(Z)]<<2|c[W.charCodeAt(Z+1)]>>4,V[X++]=R&255),C===1&&(R=c[W.charCodeAt(Z)]<<10|c[W.charCodeAt(Z+1)]<<4|c[W.charCodeAt(Z+2)]>>2,V[X++]=R>>8&255,V[X++]=R&255),V}function B(W){return a[W>>18&63]+a[W>>12&63]+a[W>>6&63]+a[W&63]}function j(W,R,Q){for(var M,C=[],V=R;V<Q;V+=3)M=(W[V]<<16&16711680)+(W[V+1]<<8&65280)+(W[V+2]&255),C.push(B(M));return C.join("")}function ee(W){for(var R,Q=W.length,M=Q%3,C=[],V=16383,X=0,q=Q-M;X<q;X+=V)C.push(j(W,X,X+V>q?q:X+V));return M===1?(R=W[Q-1],C.push(a[R>>2]+a[R<<4&63]+"==")):M===2&&(R=(W[Q-2]<<8)+W[Q-1],C.push(a[R>>10]+a[R>>4&63]+a[R<<2&63]+"=")),C.join("")}},50706:(h,I,a)=>{var c=a(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,a)=>{"use strict";/*!
5
+ * Version: "2.25.1"
6
+ */(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,a)=>{h.exports=a(27698)},77766:(h,I,a)=>{h.exports=a(8065)},72119:(h,I,a)=>{h.exports=a(57448)},20116:(h,I,a)=>{h.exports=a(11955)},94473:(h,I,a)=>{h.exports=a(61577)},78580:(h,I,a)=>{h.exports=a(33778)},2991:(h,I,a)=>{h.exports=a(61798)},3649:(h,I,a)=>{h.exports=a(82073)},92762:(h,I,a)=>{h.exports=a(2348)},59340:(h,I,a)=>{h.exports=a(8933)},51942:(h,I,a)=>{h.exports=a(63383)},26295:(h,I,a)=>{h.exports=a(86209)},86902:(h,I,a)=>{h.exports=a(23059)},93476:(h,I,a)=>{h.exports=a(27460)},52424:(h,I,a)=>{h.exports=a(72010)},53592:(h,I,a)=>{h.exports=a(27385)},78363:(h,I,a)=>{h.exports=a(81522)},19996:(h,I,a)=>{h.exports=a(32209)},30699:(h,I,a)=>{h.exports=a(44442)},28834:(h,I,a)=>{h.exports=a(57152)},95683:(h,I,a)=>{h.exports=a(69447)},95238:(h,I,a)=>{h.exports=a(81493)},189:(h,I,a)=>{h.exports=a(76094)},32752:(h,I,a)=>{h.exports=a(70573)},44341:(h,I,a)=>{h.exports=a(73685)},58377:(h,I,a)=>{h.exports=a(27533)},13038:(h,I,a)=>{h.exports=a(39057)},63263:(h,I,a)=>{h.exports=a(84710)},24889:(h,I,a)=>{h.exports=a(74303)},89356:(h,I,a)=>{h.exports=a(93799)},79542:(h,I,a)=>{h.exports=a(55122)},69798:(h,I,a)=>{h.exports=a(29531)},13535:(h,I,a)=>{h.exports=a(10856)},83863:(h,I,a)=>{h.exports=a(31524)},51446:(h,I,a)=>{h.exports=a(86600)},23882:(h,I,a)=>{h.exports=a(9759)},63109:(h,I,a)=>{h.exports=a(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=ee;for(var a=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)a[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function S(W){var R=W.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Q=W.indexOf("=");Q===-1&&(Q=R);var M=Q===R?0:4-Q%4;return[Q,M]}function g(W){var R=S(W),Q=R[0],M=R[1];return(Q+M)*3/4-M}function L(W,R,Q){return(R+Q)*3/4-Q}function D(W){var R,Q=S(W),M=Q[0],C=Q[1],V=new v(L(W,M,C)),X=0,q=C>0?M-4:M,Z;for(Z=0;Z<q;Z+=4)R=c[W.charCodeAt(Z)]<<18|c[W.charCodeAt(Z+1)]<<12|c[W.charCodeAt(Z+2)]<<6|c[W.charCodeAt(Z+3)],V[X++]=R>>16&255,V[X++]=R>>8&255,V[X++]=R&255;return C===2&&(R=c[W.charCodeAt(Z)]<<2|c[W.charCodeAt(Z+1)]>>4,V[X++]=R&255),C===1&&(R=c[W.charCodeAt(Z)]<<10|c[W.charCodeAt(Z+1)]<<4|c[W.charCodeAt(Z+2)]>>2,V[X++]=R>>8&255,V[X++]=R&255),V}function B(W){return a[W>>18&63]+a[W>>12&63]+a[W>>6&63]+a[W&63]}function j(W,R,Q){for(var M,C=[],V=R;V<Q;V+=3)M=(W[V]<<16&16711680)+(W[V+1]<<8&65280)+(W[V+2]&255),C.push(B(M));return C.join("")}function ee(W){for(var R,Q=W.length,M=Q%3,C=[],V=16383,X=0,q=Q-M;X<q;X+=V)C.push(j(W,X,X+V>q?q:X+V));return M===1?(R=W[Q-1],C.push(a[R>>2]+a[R<<4&63]+"==")):M===2&&(R=(W[Q-2]<<8)+W[Q-1],C.push(a[R>>10]+a[R>>4&63]+a[R<<2&63]+"=")),C.join("")}},50706:(h,I,a)=>{var c=a(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,a)=>{"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=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(he,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(G),he.__proto__=g.prototype):(he===null&&(he=new g(G)),he.length=G),he}function g(he,G,K){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(he,G,K);if(typeof he=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,he)}return L(this,he,G,K)}g.poolSize=8192,g._augment=function(he){return he.__proto__=g.prototype,he};function L(he,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(he,G,K,we):typeof G=="string"?ee(he,G,K):Q(he,G)}g.from=function(he,G,K){return L(null,he,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 D(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function B(he,G,K,we){return D(G),G<=0?A(he,G):K!==void 0?typeof we=="string"?A(he,G).fill(K,we):A(he,G).fill(K):A(he,G)}g.alloc=function(he,G,K){return B(null,he,G,K)};function j(he,G){if(D(G),he=A(he,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var K=0;K<G;++K)he[K]=0;return he}g.allocUnsafe=function(he){return j(null,he)},g.allocUnsafeSlow=function(he){return j(null,he)};function ee(he,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;he=A(he,we);var Ie=he.write(G,K);return Ie!==we&&(he=he.slice(0,Ie)),he}function W(he,G){var K=G.length<0?0:M(G.length)|0;he=A(he,K);for(var we=0;we<K;we+=1)he[we]=G[we]&255;return he}function R(he,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?(he=G,he.__proto__=g.prototype):he=W(he,G),he}function Q(he,G){if(g.isBuffer(G)){var K=M(G.length)|0;return he=A(he,K),he.length===0||G.copy(he,0,0,K),he}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Dt(G.length)?A(he,0):W(he,G);if(G.type==="Buffer"&&x(G.data))return W(he,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(he){if(he>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return he|0}function C(he){return+he!=he&&(he=0),g.alloc(+he)}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,Ie=K.length,$e=0,Ke=Math.min(we,Ie);$e<Ke;++$e)if(G[$e]!==K[$e]){we=G[$e],Ie=K[$e];break}return we<Ie?-1:Ie<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 Ie=g.allocUnsafe(K),$e=0;for(we=0;we<G.length;++we){var Ke=G[we];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,$e),$e+=Ke.length}return Ie};function V(he,G){if(g.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var K=he.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 Ct(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Vt(he).length;default:if(we)return Ct(he).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=V;function X(he,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(he||(he="utf8");;)switch(he){case"hex":return et(this,G,K);case"utf8":case"utf-8":return se(this,G,K);case"ascii":return Re(this,G,K);case"latin1":case"binary":return Pe(this,G,K);case"base64":return fe(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: "+he);he=(he+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function q(he,G,K){var we=he[G];he[G]=he[K],he[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?se(this,0,G):X.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,Ie,$e){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),Ie===void 0&&(Ie=0),$e===void 0&&($e=this.length),K<0||we>G.length||Ie<0||$e>this.length)throw new RangeError("out of range index");if(Ie>=$e&&K>=we)return 0;if(Ie>=$e)return-1;if(K>=we)return 1;if(K>>>=0,we>>>=0,Ie>>>=0,$e>>>=0,this===G)return 0;for(var Ke=$e-Ie,P=we-K,Me=Math.min(Ke,P),Y=this.slice(Ie,$e),T=G.slice(K,we),O=0;O<Me;++O)if(Y[O]!==T[O]){Ke=Y[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Z(he,G,K,we,Ie){if(he.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=Ie?0:he.length-1),K<0&&(K=he.length+K),K>=he.length){if(Ie)return-1;K=he.length-1}else if(K<0)if(Ie)K=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:J(he,G,K,we,Ie);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(he,G,K):Uint8Array.prototype.lastIndexOf.call(he,G,K):J(he,[G],K,we,Ie);throw new TypeError("val must be string, number or Buffer")}function J(he,G,K,we,Ie){var $e=1,Ke=he.length,P=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(he.length<2||G.length<2)return-1;$e=2,Ke/=2,P/=2,K/=2}function Me(N,ne){return $e===1?N[ne]:N.readUInt16BE(ne*$e)}var Y;if(Ie){var T=-1;for(Y=K;Y<Ke;Y++)if(Me(he,Y)===Me(G,T===-1?0:Y-T)){if(T===-1&&(T=Y),Y-T+1===P)return T*$e}else T!==-1&&(Y-=Y-T),T=-1}else for(K+P>Ke&&(K=Ke-P),Y=K;Y>=0;Y--){for(var O=!0,le=0;le<P;le++)if(Me(he,Y+le)!==Me(G,le)){O=!1;break}if(O)return Y}return-1}g.prototype.includes=function(G,K,we){return this.indexOf(G,K,we)!==-1},g.prototype.indexOf=function(G,K,we){return Z(this,G,K,we,!0)},g.prototype.lastIndexOf=function(G,K,we){return Z(this,G,K,we,!1)};function de(he,G,K,we){K=Number(K)||0;var Ie=he.length-K;we?(we=Number(we),we>Ie&&(we=Ie)):we=Ie;var $e=G.length;if($e%2!=0)throw new TypeError("Invalid hex string");we>$e/2&&(we=$e/2);for(var Ke=0;Ke<we;++Ke){var P=parseInt(G.substr(Ke*2,2),16);if(isNaN(P))return Ke;he[K+Ke]=P}return Ke}function re(he,G,K,we){return Tt(Ct(G,he.length-K),he,K,we)}function ie(he,G,K,we){return Tt(Ht(G),he,K,we)}function ye(he,G,K,we){return ie(he,G,K,we)}function xe(he,G,K,we){return Tt(Vt(G),he,K,we)}function pe(he,G,K,we){return Tt(Lt(G,he.length-K),he,K,we)}g.prototype.write=function(G,K,we,Ie){if(K===void 0)Ie="utf8",we=this.length,K=0;else if(we===void 0&&typeof K=="string")Ie=K,we=this.length,K=0;else if(isFinite(K))K=K|0,isFinite(we)?(we=we|0,Ie===void 0&&(Ie="utf8")):(Ie=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var $e=this.length-K;if((we===void 0||we>$e)&&(we=$e),G.length>0&&(we<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return de(this,G,K,we);case"utf8":case"utf-8":return re(this,G,K,we);case"ascii":return ie(this,G,K,we);case"latin1":case"binary":return ye(this,G,K,we);case"base64":return xe(this,G,K,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,G,K,we);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(he,G,K){return G===0&&K===he.length?c.fromByteArray(he):c.fromByteArray(he.slice(G,K))}function se(he,G,K){K=Math.min(he.length,K);for(var we=[],Ie=G;Ie<K;){var $e=he[Ie],Ke=null,P=$e>239?4:$e>223?3:$e>191?2:1;if(Ie+P<=K){var Me,Y,T,O;switch(P){case 1:$e<128&&(Ke=$e);break;case 2:Me=he[Ie+1],(Me&192)==128&&(O=($e&31)<<6|Me&63,O>127&&(Ke=O));break;case 3:Me=he[Ie+1],Y=he[Ie+2],(Me&192)==128&&(Y&192)==128&&(O=($e&15)<<12|(Me&63)<<6|Y&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Me=he[Ie+1],Y=he[Ie+2],T=he[Ie+3],(Me&192)==128&&(Y&192)==128&&(T&192)==128&&(O=($e&15)<<18|(Me&63)<<12|(Y&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,we.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),we.push(Ke),Ie+=P}return De(we)}var Fe=4096;function De(he){var G=he.length;if(G<=Fe)return String.fromCharCode.apply(String,he);for(var K="",we=0;we<G;)K+=String.fromCharCode.apply(String,he.slice(we,we+=Fe));return K}function Re(he,G,K){var we="";K=Math.min(he.length,K);for(var Ie=G;Ie<K;++Ie)we+=String.fromCharCode(he[Ie]&127);return we}function Pe(he,G,K){var we="";K=Math.min(he.length,K);for(var Ie=G;Ie<K;++Ie)we+=String.fromCharCode(he[Ie]);return we}function et(he,G,K){var we=he.length;(!G||G<0)&&(G=0),(!K||K<0||K>we)&&(K=we);for(var Ie="",$e=G;$e<K;++$e)Ie+=Ft(he[$e]);return Ie}function Qe(he,G,K){for(var we=he.slice(G,K),Ie="",$e=0;$e<we.length;$e+=2)Ie+=String.fromCharCode(we[$e]+we[$e+1]*256);return Ie}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 Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(G,K),Ie.__proto__=g.prototype;else{var $e=K-G;Ie=new g($e,void 0);for(var Ke=0;Ke<$e;++Ke)Ie[Ke]=this[Ke+G]}return Ie};function Je(he,G,K){if(he%1!=0||he<0)throw new RangeError("offset is not uint");if(he+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||Je(G,K,this.length);for(var Ie=this[G],$e=1,Ke=0;++Ke<K&&($e*=256);)Ie+=this[G+Ke]*$e;return Ie},g.prototype.readUIntBE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Ie=this[G+--K],$e=1;K>0&&($e*=256);)Ie+=this[G+--K]*$e;return Ie},g.prototype.readUInt8=function(G,K){return K||Je(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,K){return K||Je(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,K){return K||Je(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,K){return K||Je(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||Je(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||Je(G,K,this.length);for(var Ie=this[G],$e=1,Ke=0;++Ke<K&&($e*=256);)Ie+=this[G+Ke]*$e;return $e*=128,Ie>=$e&&(Ie-=Math.pow(2,8*K)),Ie},g.prototype.readIntBE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Ie=K,$e=1,Ke=this[G+--Ie];Ie>0&&($e*=256);)Ke+=this[G+--Ie]*$e;return $e*=128,Ke>=$e&&(Ke-=Math.pow(2,8*K)),Ke},g.prototype.readInt8=function(G,K){return K||Je(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,K){K||Je(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||Je(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||Je(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||Je(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||Je(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,K){return K||Je(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,K){return K||Je(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,K){return K||Je(G,8,this.length),v.read(this,G,!1,52,8)};function ut(he,G,K,we,Ie,$e){if(!g.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ie||G<$e)throw new RangeError('"value" argument is out of bounds');if(K+we>he.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,K,we,Ie){if(G=+G,K=K|0,we=we|0,!Ie){var $e=Math.pow(2,8*we)-1;ut(this,G,K,we,$e,0)}var Ke=1,P=0;for(this[K]=G&255;++P<we&&(Ke*=256);)this[K+P]=G/Ke&255;return K+we},g.prototype.writeUIntBE=function(G,K,we,Ie){if(G=+G,K=K|0,we=we|0,!Ie){var $e=Math.pow(2,8*we)-1;ut(this,G,K,we,$e,0)}var Ke=we-1,P=1;for(this[K+Ke]=G&255;--Ke>=0&&(P*=256);)this[K+Ke]=G/P&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 ht(he,G,K,we){G<0&&(G=65535+G+1);for(var Ie=0,$e=Math.min(he.length-K,2);Ie<$e;++Ie)he[K+Ie]=(G&255<<8*(we?Ie:1-Ie))>>>(we?Ie:1-Ie)*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):ht(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):ht(this,G,K,!1),K+2};function wt(he,G,K,we){G<0&&(G=4294967295+G+1);for(var Ie=0,$e=Math.min(he.length-K,4);Ie<$e;++Ie)he[K+Ie]=G>>>(we?Ie:3-Ie)*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):wt(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):wt(this,G,K,!1),K+4},g.prototype.writeIntLE=function(G,K,we,Ie){if(G=+G,K=K|0,!Ie){var $e=Math.pow(2,8*we-1);ut(this,G,K,we,$e-1,-$e)}var Ke=0,P=1,Me=0;for(this[K]=G&255;++Ke<we&&(P*=256);)G<0&&Me===0&&this[K+Ke-1]!==0&&(Me=1),this[K+Ke]=(G/P>>0)-Me&255;return K+we},g.prototype.writeIntBE=function(G,K,we,Ie){if(G=+G,K=K|0,!Ie){var $e=Math.pow(2,8*we-1);ut(this,G,K,we,$e-1,-$e)}var Ke=we-1,P=1,Me=0;for(this[K+Ke]=G&255;--Ke>=0&&(P*=256);)G<0&&Me===0&&this[K+Ke+1]!==0&&(Me=1),this[K+Ke]=(G/P>>0)-Me&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):ht(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):ht(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):wt(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):wt(this,G,K,!1),K+4};function rt(he,G,K,we,Ie,$e){if(K+we>he.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function lt(he,G,K,we,Ie){return Ie||rt(he,G,K,4,34028234663852886e22,-34028234663852886e22),v.write(he,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 yt(he,G,K,we,Ie){return Ie||rt(he,G,K,8,17976931348623157e292,-17976931348623157e292),v.write(he,G,K,we,52,8),K+8}g.prototype.writeDoubleLE=function(G,K,we){return yt(this,G,K,!0,we)},g.prototype.writeDoubleBE=function(G,K,we){return yt(this,G,K,!1,we)},g.prototype.copy=function(G,K,we,Ie){if(we||(we=0),!Ie&&Ie!==0&&(Ie=this.length),K>=G.length&&(K=G.length),K||(K=0),Ie>0&&Ie<we&&(Ie=we),Ie===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(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),G.length-K<Ie-we&&(Ie=G.length-K+we);var $e=Ie-we,Ke;if(this===G&&we<K&&K<Ie)for(Ke=$e-1;Ke>=0;--Ke)G[Ke+K]=this[Ke+we];else if($e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<$e;++Ke)G[Ke+K]=this[Ke+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+$e),K);return $e},g.prototype.fill=function(G,K,we,Ie){if(typeof G=="string"){if(typeof K=="string"?(Ie=K,K=0,we=this.length):typeof we=="string"&&(Ie=we,we=this.length),G.length===1){var $e=G.charCodeAt(0);$e<256&&(G=$e)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}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 Ke;if(typeof G=="number")for(Ke=K;Ke<we;++Ke)this[Ke]=G;else{var P=g.isBuffer(G)?G:Ct(new g(G,Ie).toString()),Me=P.length;for(Ke=0;Ke<we-K;++Ke)this[Ke+K]=P[Ke%Me]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function pt(he){if(he=kt(he).replace(mt,""),he.length<2)return"";for(;he.length%4!=0;)he=he+"=";return he}function kt(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function Ft(he){return he<16?"0"+he.toString(16):he.toString(16)}function Ct(he,G){G=G||1/0;for(var K,we=he.length,Ie=null,$e=[],Ke=0;Ke<we;++Ke){if(K=he.charCodeAt(Ke),K>55295&&K<57344){if(!Ie){if(K>56319){(G-=3)>-1&&$e.push(239,191,189);continue}else if(Ke+1===we){(G-=3)>-1&&$e.push(239,191,189);continue}Ie=K;continue}if(K<56320){(G-=3)>-1&&$e.push(239,191,189),Ie=K;continue}K=(Ie-55296<<10|K-56320)+65536}else Ie&&(G-=3)>-1&&$e.push(239,191,189);if(Ie=null,K<128){if((G-=1)<0)break;$e.push(K)}else if(K<2048){if((G-=2)<0)break;$e.push(K>>6|192,K&63|128)}else if(K<65536){if((G-=3)<0)break;$e.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((G-=4)<0)break;$e.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return $e}function Ht(he){for(var G=[],K=0;K<he.length;++K)G.push(he.charCodeAt(K)&255);return G}function Lt(he,G){for(var K,we,Ie,$e=[],Ke=0;Ke<he.length&&!((G-=2)<0);++Ke)K=he.charCodeAt(Ke),we=K>>8,Ie=K%256,$e.push(Ie),$e.push(we);return $e}function Vt(he){return c.toByteArray(pt(he))}function Tt(he,G,K,we){for(var Ie=0;Ie<we&&!(Ie+K>=G.length||Ie>=he.length);++Ie)G[Ie+K]=he[Ie];return Ie}function Dt(he){return he!==he}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(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,a)=>{"use strict";var c=a(58612),v=a(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 ee=b(c,d,arguments);if(A&&g){var W=A(ee,"length");W.configurable&&g(ee,"length",{value:1+L(0,j.length-(arguments.length-1))})}return ee};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,a)=>{(function(c){c(a(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:D,Enter:B};function A(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),X="'"+V+"'";b[X]||(b[X]=g(V))}}A(v.pairs+"`");function g(M){return function(C){return W(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 D(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),X=M.listSelections(),q=0;q<X.length;q++){if(!X[q].empty())return c.Pass;var Z=R(M,X[q].head);if(!Z||V.indexOf(Z)%2!=0)return c.Pass}for(var q=X.length-1;q>=0;q--){var J=X[q].head;M.replaceRange("",x(J.line,J.ch-1),x(J.line,J.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 X=M.listSelections(),q=0;q<X.length;q++){if(!X[q].empty())return c.Pass;var Z=R(M,X[q].head);if(!Z||V.indexOf(Z)%2!=0)return c.Pass}M.operation(function(){var J=M.lineSeparator()||`
12
- `;M.replaceSelection(J+J,null),j(M,-1),X=M.listSelections();for(var de=0;de<X.length;de++){var re=X[de].head.line;M.indentLine(re,null,!0),M.indentLine(re+1,null,!0)}})}function j(M,C){for(var V=[],X=M.listSelections(),q=0,Z=0;Z<X.length;Z++){var J=X[Z];J.head==M.getCursor()&&(q=Z);var de=J.head.ch||C>0?{line:J.head.line,ch:J.head.ch+C}:{line:J.head.line-1};V.push({anchor:de,head:de})}M.setSelections(V,q)}function ee(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 W(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var X=d(V,"pairs"),q=X.indexOf(C);if(q==-1)return c.Pass;for(var Z=d(V,"closeBefore"),J=d(V,"triples"),de=X.charAt(q+1)==C,re=M.listSelections(),ie=q%2==0,ye,xe=0;xe<re.length;xe++){var pe=re[xe],fe=pe.head,se,Fe=M.getRange(fe,x(fe.line,fe.ch+1));if(ie&&!pe.empty())se="surround";else if((de||!ie)&&Fe==C)de&&Q(M,fe)?se="both":J.indexOf(C)>=0&&M.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?se="skipThree":se="skip";else if(de&&fe.ch>1&&J.indexOf(C)>=0&&M.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;se="addFour"}else if(de){var De=fe.ch==0?" ":M.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&De!=C&&!c.isWordChar(De))se="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Z.indexOf(Fe)>-1))se="both";else return c.Pass;if(!ye)ye=se;else if(ye!=se)return c.Pass}var Re=q%2?X.charAt(q-1):C,Pe=q%2?C:X.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 et=M.getSelections(),Qe=0;Qe<et.length;Qe++)et[Qe]=Re+et[Qe]+Pe;M.replaceSelections(et,"around"),et=M.listSelections().slice();for(var Qe=0;Qe<et.length;Qe++)et[Qe]=ee(et[Qe]);M.setSelections(et)}else ye=="both"?(M.replaceSelection(Re+Pe,null),M.triggerElectric(Re+Pe),j(M,-1)):ye=="addFour"&&(M.replaceSelection(Re+Re+Re+Re,"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 Q(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,a)=>{(function(c){c(a(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,ee,W){var R=j.getLineHandle(ee.line),Q=ee.ch-1,M=W&&W.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!M&&Q>=0&&C.test(R.text.charAt(Q))&&d[R.text.charAt(Q)]||C.test(R.text.charAt(Q+1))&&d[R.text.charAt(++Q)];if(!V)return null;var X=V.charAt(1)==">"?1:-1;if(W&&W.strict&&X>0!=(Q==ee.ch))return null;var q=j.getTokenTypeAt(x(ee.line,Q+1)),Z=g(j,x(ee.line,Q+(X>0?1:0)),X,q,W);return Z==null?null:{from:x(ee.line,Q),to:Z&&Z.pos,match:Z&&Z.ch==V.charAt(0),forward:X>0}}function g(j,ee,W,R,Q){for(var M=Q&&Q.maxScanLineLength||1e4,C=Q&&Q.maxScanLines||1e3,V=[],X=b(Q),q=W>0?Math.min(ee.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,ee.line-C),Z=ee.line;Z!=q;Z+=W){var J=j.getLine(Z);if(!!J){var de=W>0?0:J.length-1,re=W>0?J.length:-1;if(!(J.length>M))for(Z==ee.line&&(de=ee.ch-(W<0?1:0));de!=re;de+=W){var ie=J.charAt(de);if(X.test(ie)&&(R===void 0||(j.getTokenTypeAt(x(Z,de+1))||"")==(R||""))){var ye=d[ie];if(ye&&ye.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Z,de),ch:ie}}}}}return Z-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,ee,W){for(var R=j.state.matchBrackets.maxHighlightLineLength||1e3,Q=W&&W.highlightNonMatching,M=[],C=j.listSelections(),V=0;V<C.length;V++){var X=C[V].empty()&&A(j,C[V].head,W);if(X&&(X.match||Q!==!1)&&j.getLine(X.from.line).length<=R){var q=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(j.markText(X.from,x(X.from.line,X.from.ch+1),{className:q})),X.to&&j.getLine(X.to.line).length<=R&&M.push(j.markText(X.to,x(X.to.line,X.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Z=function(){j.operation(function(){for(var J=0;J<M.length;J++)M[J].clear()})};if(ee)setTimeout(Z,800);else return Z}}function D(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,ee,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),ee&&(j.state.matchBrackets=typeof ee=="object"?ee:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,ee,W){return(W||typeof ee=="boolean")&&(W?(W.strict=ee,ee=W):ee=ee?{strict:!0}:null),A(this,j,ee)}),c.defineExtension("scanForBracket",function(j,ee,W,R){return g(this,j,ee,W,R)})})},71707:(h,I,a)=>{(function(c){c(a(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 X={hint:C};if(V)for(var q in V)X[q]=V[q];return M.showHint(X)},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 X=this.state.completionActive=new d(this,M);!X.options.hint||(c.signal(this,"startCompletion",this),X.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],X=this;this.cm.operation(function(){V.hint?V.hint(X.cm,M,V):X.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),X.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 X=this;this.debounce=b(function(){X.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(X){C.tick==V&&C.finishUpdate(X,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 X=M.options.hintOptions,q={};for(var Z in Q)q[Z]=Q[Z];if(X)for(var Z in X)X[Z]!==void 0&&(q[Z]=X[Z]);if(V)for(var Z in V)V[Z]!==void 0&&(q[Z]=V[Z]);return q.hint.resolve&&(q.hint=q.hint.resolve(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function D(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},X=/Mac/.test(navigator.platform);X&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var q=M.options.customKeys,Z=q?{}:V;function J(ie,ye){var xe;typeof ye!="string"?xe=function(pe){return ye(pe,C)}:V.hasOwnProperty(ye)?xe=V[ye]:xe=ye,Z[ie]=xe}if(q)for(var de in q)q.hasOwnProperty(de)&&J(de,q[de]);var re=M.options.extraKeys;if(re)for(var de in re)re.hasOwnProperty(de)&&J(de,re[de]);return Z}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,X=M.cm,q=X.getInputField().ownerDocument,Z=q.defaultView||q.parentWindow,J=this.hints=q.createElement("ul");J.setAttribute("role","listbox"),J.setAttribute("aria-expanded","true"),J.id=this.id;var de=M.cm.options.theme;J.className="CodeMirror-hints "+de,this.selectedHint=C.selectedHint||0;for(var re=C.list,ie=0;ie<re.length;++ie){var ye=J.appendChild(q.createElement("li")),xe=re[ie],pe=v+(ie!=this.selectedHint?"":" "+x);xe.className!=null&&(pe=xe.className+" "+pe),ye.className=pe,ie==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ie,ye.setAttribute("role","option"),xe.render?xe.render(ye,C,xe):ye.appendChild(q.createTextNode(xe.displayText||L(xe))),ye.hintId=ie}var fe=M.options.container||q.body,se=X.cursorCoords(M.options.alignWithWord?C.from:null),Fe=se.left,De=se.bottom,Re=!0,Pe=0,et=0;if(fe!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Z.getComputedStyle(fe).position)!==-1,Je=Qe?fe:fe.offsetParent,ut=Je.getBoundingClientRect(),ht=q.body.getBoundingClientRect();Pe=ut.left-ht.left-Je.scrollLeft,et=ut.top-ht.top-Je.scrollTop}J.style.left=Fe-Pe+"px",J.style.top=De-et+"px";var wt=Z.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),rt=Z.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);fe.appendChild(J),X.getInputField().setAttribute("aria-autocomplete","list"),X.getInputField().setAttribute("aria-owns",this.id),X.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=M.options.moveOnOverlap?J.getBoundingClientRect():new DOMRect,yt=M.options.paddingForScrollbar?J.scrollHeight>J.clientHeight+1:!1,mt;setTimeout(function(){mt=X.getScrollInfo()});var pt=lt.bottom-rt;if(pt>0){var kt=lt.bottom-lt.top,Ft=se.top-(se.bottom-lt.top);if(Ft-kt>0)J.style.top=(De=se.top-kt-et)+"px",Re=!1;else if(kt>rt){J.style.height=rt-5+"px",J.style.top=(De=se.bottom-lt.top-et)+"px";var Ct=X.getCursor();C.from.ch!=Ct.ch&&(se=X.cursorCoords(Ct),J.style.left=(Fe=se.left-Pe)+"px",lt=J.getBoundingClientRect())}}var Ht=lt.right-wt;if(yt&&(Ht+=X.display.nativeBarWidth),Ht>0&&(lt.right-lt.left>wt&&(J.style.width=wt-5+"px",Ht-=lt.right-lt.left-wt),J.style.left=(Fe=se.left-Ht-Pe)+"px"),yt)for(var Lt=J.firstChild;Lt;Lt=Lt.nextSibling)Lt.style.paddingRight=X.display.nativeBarWidth+"px";if(X.addKeyMap(this.keyMap=D(M,{moveFocus:function(Dt,he){V.changeActive(V.selectedHint+Dt,he)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:re.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var Vt;X.on("blur",this.onBlur=function(){Vt=setTimeout(function(){M.close()},100)}),X.on("focus",this.onFocus=function(){clearTimeout(Vt)})}X.on("scroll",this.onScroll=function(){var Dt=X.getScrollInfo(),he=X.getWrapperElement().getBoundingClientRect();mt||(mt=X.getScrollInfo());var G=De+mt.top-Dt.top,K=G-(Z.pageYOffset||(q.documentElement||q.body).scrollTop);if(Re||(K+=J.offsetHeight),K<=he.top||K>=he.bottom)return M.close();J.style.top=G+"px",J.style.left=Fe+mt.left-Dt.left+"px"}),c.on(J,"dblclick",function(Dt){var he=B(J,Dt.target||Dt.srcElement);he&&he.hintId!=null&&(V.changeActive(he.hintId),V.pick())}),c.on(J,"click",function(Dt){var he=B(J,Dt.target||Dt.srcElement);he&&he.hintId!=null&&(V.changeActive(he.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(J,"mousedown",function(){setTimeout(function(){X.focus()},20)});var Tt=this.getSelectedHintRange();return(Tt.from!==0||Tt.to!==0)&&this.scrollToActive(),c.signal(C,"select",re[this.selectedHint],J.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],X=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-X.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+X.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 ee(M,C){if(!M.somethingSelected())return C;for(var V=[],X=0;X<C.length;X++)C[X].supportsSelection&&V.push(C[X]);return V}function W(M,C,V,X){if(M.async)M(C,X,V);else{var q=M(C,V);q&&q.then?q.then(X):X(q)}}function R(M,C){var V=M.getHelpers(C,"hint"),X;if(V.length){var q=function(Z,J,de){var re=ee(Z,V);function ie(ye){if(ye==re.length)return J(null);W(re[ye],Z,de,function(xe){xe&&xe.list.length>0?J(xe):ie(ye+1)})}ie(0)};return q.async=!0,q.supportsSelection=!0,q}else return(X=M.getHelper(M.getCursor(),"hintWords"))?function(Z){return c.hint.fromList(Z,{words:X})}:c.hint.anyword?function(Z,J){return c.hint.anyword(Z,J)}:function(){}}c.registerHelper("hint","auto",{resolve:R}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),X=M.getTokenAt(V),q,Z=c.Pos(V.line,X.start),J=V;X.start<V.ch&&/\w/.test(X.string.charAt(V.ch-X.start-1))?q=X.string.substr(0,V.ch-X.start):(q="",Z=V);for(var de=[],re=0;re<C.words.length;re++){var ie=C.words[re];ie.slice(0,q.length)==q&&de.push(ie)}if(de.length)return{list:de,from:Z,to:J}}),c.commands.autocomplete=c.showHint;var Q={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,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(J,de,re){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+J.options.theme,ie.appendChild(re.cloneNode(!0)),J.state.lint.options.selfContain?J.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function ye(xe){if(!ie.parentNode)return c.off(document,"mousemove",ye);ie.style.top=Math.max(0,xe.clientY-ie.offsetHeight-5)+"px",ie.style.left=xe.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(de),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(J){J.parentNode&&J.parentNode.removeChild(J)}function A(J){!J.parentNode||(J.style.opacity==null&&b(J),J.style.opacity=0,setTimeout(function(){b(J)},600))}function g(J,de,re,ie){var ye=d(J,de,re);function xe(){c.off(ie,"mouseout",xe),ye&&(A(ye),ye=null)}var pe=setInterval(function(){if(ye)for(var fe=ie;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){xe();break}}if(!ye)return clearInterval(pe)},400);c.on(ie,"mouseout",xe)}function L(J,de,re){this.marked=[],de instanceof Function&&(de={getAnnotations:de}),(!de||de===!0)&&(de={}),this.options={},this.linterOptions=de.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in de)D.hasOwnProperty(ie)?de[ie]!=null&&(this.options[ie]=de[ie]):de.options||(this.linterOptions[ie]=de[ie]);this.timeout=null,this.hasGutter=re,this.onMouseOver=function(ye){Z(J,ye)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(J){var de=J.state.lint;de.hasGutter&&J.clearGutter(v),de.options.highlightLines&&j(J);for(var re=0;re<de.marked.length;++re)de.marked[re].clear();de.marked.length=0}function j(J){J.eachLine(function(de){var re=de.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(de.wrapClass);re&&J.removeLineClass(de,"wrap",re[0])})}function ee(J,de,re,ie,ye){var xe=document.createElement("div"),pe=xe;return xe.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+re,ie&&(pe=xe.appendChild(document.createElement("div")),pe.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(pe,"mouseover",function(fe){g(J,fe,de,pe)}),xe}function W(J,de){return J=="error"?J:de}function R(J){for(var de=[],re=0;re<J.length;++re){var ie=J[re],ye=ie.from.line;(de[ye]||(de[ye]=[])).push(ie)}return de}function Q(J){var de=J.severity;de||(de="error");var re=document.createElement("div");return re.className="CodeMirror-lint-message CodeMirror-lint-message-"+de,typeof J.messageHTML!="undefined"?re.innerHTML=J.messageHTML:re.appendChild(document.createTextNode(J.message)),re}function M(J,de){var re=J.state.lint,ie=++re.waitingFor;function ye(){ie=-1,J.off("change",ye)}J.on("change",ye),de(J.getValue(),function(xe,pe){J.off("change",ye),re.waitingFor==ie&&(pe&&xe instanceof c&&(xe=pe),J.operation(function(){V(J,xe)}))},re.linterOptions,J)}function C(J){var de=J.state.lint;if(!!de){var re=de.options,ie=re.getAnnotations||J.getHelper(c.Pos(0,0),"lint");if(!!ie)if(re.async||ie.async)M(J,ie);else{var ye=ie(J.getValue(),de.linterOptions,J);if(!ye)return;ye.then?ye.then(function(xe){J.operation(function(){V(J,xe)})}):J.operation(function(){V(J,ye)})}}}function V(J,de){var re=J.state.lint;if(!!re){var ie=re.options;B(J);for(var ye=R(de),xe=0;xe<ye.length;++xe){var pe=ye[xe];if(!!pe){var fe=[];pe=pe.filter(function(et){return fe.indexOf(et.message)>-1?!1:fe.push(et.message)});for(var se=null,Fe=re.hasGutter&&document.createDocumentFragment(),De=0;De<pe.length;++De){var Re=pe[De],Pe=Re.severity;Pe||(Pe="error"),se=W(se,Pe),ie.formatAnnotation&&(Re=ie.formatAnnotation(Re)),re.hasGutter&&Fe.appendChild(Q(Re)),Re.to&&re.marked.push(J.markText(Re.from,Re.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Re}))}re.hasGutter&&J.setGutterMarker(xe,v,ee(J,Fe,se,ye[xe].length>1,ie.tooltips)),ie.highlightLines&&J.addLineClass(xe,"wrap",x+se)}}ie.onUpdateLinting&&ie.onUpdateLinting(de,ye,J)}}function X(J){var de=J.state.lint;!de||(clearTimeout(de.timeout),de.timeout=setTimeout(function(){C(J)},de.options.delay))}function q(J,de,re){for(var ie=re.target||re.srcElement,ye=document.createDocumentFragment(),xe=0;xe<de.length;xe++){var pe=de[xe];ye.appendChild(Q(pe))}g(J,re,ye,ie)}function Z(J,de){var re=de.target||de.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(re.className)){for(var ie=re.getBoundingClientRect(),ye=(ie.left+ie.right)/2,xe=(ie.top+ie.bottom)/2,pe=J.findMarksAt(J.coordsChar({left:ye,top:xe},"client")),fe=[],se=0;se<pe.length;++se){var Fe=pe[se].__annotation;Fe&&fe.push(Fe)}fe.length&&q(J,fe,de)}}c.defineOption("lint",!1,function(J,de,re){if(re&&re!=c.Init&&(B(J),J.state.lint.options.lintOnChange!==!1&&J.off("change",X),c.off(J.getWrapperElement(),"mouseover",J.state.lint.onMouseOver),clearTimeout(J.state.lint.timeout),delete J.state.lint),de){for(var ie=J.getOption("gutters"),ye=!1,xe=0;xe<ie.length;++xe)ie[xe]==v&&(ye=!0);var pe=J.state.lint=new L(J,de,ye);pe.options.lintOnChange&&J.on("change",X),pe.options.tooltips!=!1&&pe.options.tooltips!="gutter"&&c.on(J.getWrapperElement(),"mouseover",pe.onMouseOver),C(J)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,a)=>{(function(c){c(a(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 X=x(C),q=X,Z=0;Z<V.length;Z++)q.indexOf(V.charAt(Z))==-1&&(q+=V.charAt(Z));return X==q?C:new RegExp(C.source,q)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function A(C,V,X){V=d(V,"g");for(var q=X.line,Z=X.ch,J=C.lastLine();q<=J;q++,Z=0){V.lastIndex=Z;var de=C.getLine(q),re=V.exec(de);if(re)return{from:v(q,re.index),to:v(q,re.index+re[0].length),match:re}}}function g(C,V,X){if(!b(V))return A(C,V,X);V=d(V,"gm");for(var q,Z=1,J=X.line,de=C.lastLine();J<=de;){for(var re=0;re<Z&&!(J>de);re++){var ie=C.getLine(J++);q=q==null?ie:q+`
13
- `+ie}Z=Z*2,V.lastIndex=X.ch;var ye=V.exec(q);if(ye){var xe=q.slice(0,ye.index).split(`
11
+ */var c=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var he=new Uint8Array(1);return he.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},he.foo()===42&&typeof he.subarray=="function"&&he.subarray(1,1).byteLength===0}catch(G){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(he,G){if(b()<G)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(he=new Uint8Array(G),he.__proto__=g.prototype):(he===null&&(he=new g(G)),he.length=G),he}function g(he,G,K){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(he,G,K);if(typeof he=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,he)}return L(this,he,G,K)}g.poolSize=8192,g._augment=function(he){return he.__proto__=g.prototype,he};function L(he,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(he,G,K,we):typeof G=="string"?ee(he,G,K):Q(he,G)}g.from=function(he,G,K){return L(null,he,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 D(he){if(typeof he!="number")throw new TypeError('"size" argument must be a number');if(he<0)throw new RangeError('"size" argument must not be negative')}function B(he,G,K,we){return D(G),G<=0?S(he,G):K!==void 0?typeof we=="string"?S(he,G).fill(K,we):S(he,G).fill(K):S(he,G)}g.alloc=function(he,G,K){return B(null,he,G,K)};function j(he,G){if(D(G),he=S(he,G<0?0:M(G)|0),!g.TYPED_ARRAY_SUPPORT)for(var K=0;K<G;++K)he[K]=0;return he}g.allocUnsafe=function(he){return j(null,he)},g.allocUnsafeSlow=function(he){return j(null,he)};function ee(he,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;he=S(he,we);var Ie=he.write(G,K);return Ie!==we&&(he=he.slice(0,Ie)),he}function W(he,G){var K=G.length<0?0:M(G.length)|0;he=S(he,K);for(var we=0;we<K;we+=1)he[we]=G[we]&255;return he}function R(he,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?(he=G,he.__proto__=g.prototype):he=W(he,G),he}function Q(he,G){if(g.isBuffer(G)){var K=M(G.length)|0;return he=S(he,K),he.length===0||G.copy(he,0,0,K),he}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Nt(G.length)?S(he,0):W(he,G);if(G.type==="Buffer"&&x(G.data))return W(he,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(he){if(he>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return he|0}function C(he){return+he!=he&&(he=0),g.alloc(+he)}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,Ie=K.length,Ge=0,Ke=Math.min(we,Ie);Ge<Ke;++Ge)if(G[Ge]!==K[Ge]){we=G[Ge],Ie=K[Ge];break}return we<Ie?-1:Ie<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 Ie=g.allocUnsafe(K),Ge=0;for(we=0;we<G.length;++we){var Ke=G[we];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(he,G){if(g.isBuffer(he))return he.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(he)||he instanceof ArrayBuffer))return he.byteLength;typeof he!="string"&&(he=""+he);var K=he.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 Ct(he).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Vt(he).length;default:if(we)return Ct(he).length;G=(""+G).toLowerCase(),we=!0}}g.byteLength=V;function X(he,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(he||(he="utf8");;)switch(he){case"hex":return tt(this,G,K);case"utf8":case"utf-8":return se(this,G,K);case"ascii":return Re(this,G,K);case"latin1":case"binary":return Pe(this,G,K);case"base64":return fe(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: "+he);he=(he+"").toLowerCase(),we=!0}}g.prototype._isBuffer=!0;function q(he,G,K){var we=he[G];he[G]=he[K],he[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?se(this,0,G):X.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,Ie,Ge){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),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),K<0||we>G.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&K>=we)return 0;if(Ie>=Ge)return-1;if(K>=we)return 1;if(K>>>=0,we>>>=0,Ie>>>=0,Ge>>>=0,this===G)return 0;for(var Ke=Ge-Ie,P=we-K,Me=Math.min(Ke,P),Y=this.slice(Ie,Ge),T=G.slice(K,we),O=0;O<Me;++O)if(Y[O]!==T[O]){Ke=Y[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Z(he,G,K,we,Ie){if(he.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=Ie?0:he.length-1),K<0&&(K=he.length+K),K>=he.length){if(Ie)return-1;K=he.length-1}else if(K<0)if(Ie)K=0;else return-1;if(typeof G=="string"&&(G=g.from(G,we)),g.isBuffer(G))return G.length===0?-1:J(he,G,K,we,Ie);if(typeof G=="number")return G=G&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(he,G,K):Uint8Array.prototype.lastIndexOf.call(he,G,K):J(he,[G],K,we,Ie);throw new TypeError("val must be string, number or Buffer")}function J(he,G,K,we,Ie){var Ge=1,Ke=he.length,P=G.length;if(we!==void 0&&(we=String(we).toLowerCase(),we==="ucs2"||we==="ucs-2"||we==="utf16le"||we==="utf-16le")){if(he.length<2||G.length<2)return-1;Ge=2,Ke/=2,P/=2,K/=2}function Me(N,re){return Ge===1?N[re]:N.readUInt16BE(re*Ge)}var Y;if(Ie){var T=-1;for(Y=K;Y<Ke;Y++)if(Me(he,Y)===Me(G,T===-1?0:Y-T)){if(T===-1&&(T=Y),Y-T+1===P)return T*Ge}else T!==-1&&(Y-=Y-T),T=-1}else for(K+P>Ke&&(K=Ke-P),Y=K;Y>=0;Y--){for(var O=!0,le=0;le<P;le++)if(Me(he,Y+le)!==Me(G,le)){O=!1;break}if(O)return Y}return-1}g.prototype.includes=function(G,K,we){return this.indexOf(G,K,we)!==-1},g.prototype.indexOf=function(G,K,we){return Z(this,G,K,we,!0)},g.prototype.lastIndexOf=function(G,K,we){return Z(this,G,K,we,!1)};function de(he,G,K,we){K=Number(K)||0;var Ie=he.length-K;we?(we=Number(we),we>Ie&&(we=Ie)):we=Ie;var Ge=G.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");we>Ge/2&&(we=Ge/2);for(var Ke=0;Ke<we;++Ke){var P=parseInt(G.substr(Ke*2,2),16);if(isNaN(P))return Ke;he[K+Ke]=P}return Ke}function te(he,G,K,we){return Tt(Ct(G,he.length-K),he,K,we)}function ae(he,G,K,we){return Tt(Wt(G),he,K,we)}function ye(he,G,K,we){return ae(he,G,K,we)}function xe(he,G,K,we){return Tt(Vt(G),he,K,we)}function pe(he,G,K,we){return Tt(Dt(G,he.length-K),he,K,we)}g.prototype.write=function(G,K,we,Ie){if(K===void 0)Ie="utf8",we=this.length,K=0;else if(we===void 0&&typeof K=="string")Ie=K,we=this.length,K=0;else if(isFinite(K))K=K|0,isFinite(we)?(we=we|0,Ie===void 0&&(Ie="utf8")):(Ie=we,we=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-K;if((we===void 0||we>Ge)&&(we=Ge),G.length>0&&(we<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return de(this,G,K,we);case"utf8":case"utf-8":return te(this,G,K,we);case"ascii":return ae(this,G,K,we);case"latin1":case"binary":return ye(this,G,K,we);case"base64":return xe(this,G,K,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,G,K,we);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(he,G,K){return G===0&&K===he.length?c.fromByteArray(he):c.fromByteArray(he.slice(G,K))}function se(he,G,K){K=Math.min(he.length,K);for(var we=[],Ie=G;Ie<K;){var Ge=he[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=K){var Me,Y,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Me=he[Ie+1],(Me&192)==128&&(O=(Ge&31)<<6|Me&63,O>127&&(Ke=O));break;case 3:Me=he[Ie+1],Y=he[Ie+2],(Me&192)==128&&(Y&192)==128&&(O=(Ge&15)<<12|(Me&63)<<6|Y&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Me=he[Ie+1],Y=he[Ie+2],T=he[Ie+3],(Me&192)==128&&(Y&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Me&63)<<12|(Y&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,we.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),we.push(Ke),Ie+=P}return De(we)}var Fe=4096;function De(he){var G=he.length;if(G<=Fe)return String.fromCharCode.apply(String,he);for(var K="",we=0;we<G;)K+=String.fromCharCode.apply(String,he.slice(we,we+=Fe));return K}function Re(he,G,K){var we="";K=Math.min(he.length,K);for(var Ie=G;Ie<K;++Ie)we+=String.fromCharCode(he[Ie]&127);return we}function Pe(he,G,K){var we="";K=Math.min(he.length,K);for(var Ie=G;Ie<K;++Ie)we+=String.fromCharCode(he[Ie]);return we}function tt(he,G,K){var we=he.length;(!G||G<0)&&(G=0),(!K||K<0||K>we)&&(K=we);for(var Ie="",Ge=G;Ge<K;++Ge)Ie+=kt(he[Ge]);return Ie}function Qe(he,G,K){for(var we=he.slice(G,K),Ie="",Ge=0;Ge<we.length;Ge+=2)Ie+=String.fromCharCode(we[Ge]+we[Ge+1]*256);return Ie}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 Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(G,K),Ie.__proto__=g.prototype;else{var Ge=K-G;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+G]}return Ie};function Je(he,G,K){if(he%1!=0||he<0)throw new RangeError("offset is not uint");if(he+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||Je(G,K,this.length);for(var Ie=this[G],Ge=1,Ke=0;++Ke<K&&(Ge*=256);)Ie+=this[G+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Ie=this[G+--K],Ge=1;K>0&&(Ge*=256);)Ie+=this[G+--K]*Ge;return Ie},g.prototype.readUInt8=function(G,K){return K||Je(G,1,this.length),this[G]},g.prototype.readUInt16LE=function(G,K){return K||Je(G,2,this.length),this[G]|this[G+1]<<8},g.prototype.readUInt16BE=function(G,K){return K||Je(G,2,this.length),this[G]<<8|this[G+1]},g.prototype.readUInt32LE=function(G,K){return K||Je(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||Je(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||Je(G,K,this.length);for(var Ie=this[G],Ge=1,Ke=0;++Ke<K&&(Ge*=256);)Ie+=this[G+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*K)),Ie},g.prototype.readIntBE=function(G,K,we){G=G|0,K=K|0,we||Je(G,K,this.length);for(var Ie=K,Ge=1,Ke=this[G+--Ie];Ie>0&&(Ge*=256);)Ke+=this[G+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*K)),Ke},g.prototype.readInt8=function(G,K){return K||Je(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},g.prototype.readInt16LE=function(G,K){K||Je(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||Je(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||Je(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||Je(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||Je(G,4,this.length),v.read(this,G,!0,23,4)},g.prototype.readFloatBE=function(G,K){return K||Je(G,4,this.length),v.read(this,G,!1,23,4)},g.prototype.readDoubleLE=function(G,K){return K||Je(G,8,this.length),v.read(this,G,!0,52,8)},g.prototype.readDoubleBE=function(G,K){return K||Je(G,8,this.length),v.read(this,G,!1,52,8)};function ut(he,G,K,we,Ie,Ge){if(!g.isBuffer(he))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ie||G<Ge)throw new RangeError('"value" argument is out of bounds');if(K+we>he.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(G,K,we,Ie){if(G=+G,K=K|0,we=we|0,!Ie){var Ge=Math.pow(2,8*we)-1;ut(this,G,K,we,Ge,0)}var Ke=1,P=0;for(this[K]=G&255;++P<we&&(Ke*=256);)this[K+P]=G/Ke&255;return K+we},g.prototype.writeUIntBE=function(G,K,we,Ie){if(G=+G,K=K|0,we=we|0,!Ie){var Ge=Math.pow(2,8*we)-1;ut(this,G,K,we,Ge,0)}var Ke=we-1,P=1;for(this[K+Ke]=G&255;--Ke>=0&&(P*=256);)this[K+Ke]=G/P&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(he,G,K,we){G<0&&(G=65535+G+1);for(var Ie=0,Ge=Math.min(he.length-K,2);Ie<Ge;++Ie)he[K+Ie]=(G&255<<8*(we?Ie:1-Ie))>>>(we?Ie:1-Ie)*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 wt(he,G,K,we){G<0&&(G=4294967295+G+1);for(var Ie=0,Ge=Math.min(he.length-K,4);Ie<Ge;++Ie)he[K+Ie]=G>>>(we?Ie:3-Ie)*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):wt(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):wt(this,G,K,!1),K+4},g.prototype.writeIntLE=function(G,K,we,Ie){if(G=+G,K=K|0,!Ie){var Ge=Math.pow(2,8*we-1);ut(this,G,K,we,Ge-1,-Ge)}var Ke=0,P=1,Me=0;for(this[K]=G&255;++Ke<we&&(P*=256);)G<0&&Me===0&&this[K+Ke-1]!==0&&(Me=1),this[K+Ke]=(G/P>>0)-Me&255;return K+we},g.prototype.writeIntBE=function(G,K,we,Ie){if(G=+G,K=K|0,!Ie){var Ge=Math.pow(2,8*we-1);ut(this,G,K,we,Ge-1,-Ge)}var Ke=we-1,P=1,Me=0;for(this[K+Ke]=G&255;--Ke>=0&&(P*=256);)G<0&&Me===0&&this[K+Ke+1]!==0&&(Me=1),this[K+Ke]=(G/P>>0)-Me&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):wt(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):wt(this,G,K,!1),K+4};function rt(he,G,K,we,Ie,Ge){if(K+we>he.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function lt(he,G,K,we,Ie){return Ie||rt(he,G,K,4,34028234663852886e22,-34028234663852886e22),v.write(he,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 yt(he,G,K,we,Ie){return Ie||rt(he,G,K,8,17976931348623157e292,-17976931348623157e292),v.write(he,G,K,we,52,8),K+8}g.prototype.writeDoubleLE=function(G,K,we){return yt(this,G,K,!0,we)},g.prototype.writeDoubleBE=function(G,K,we){return yt(this,G,K,!1,we)},g.prototype.copy=function(G,K,we,Ie){if(we||(we=0),!Ie&&Ie!==0&&(Ie=this.length),K>=G.length&&(K=G.length),K||(K=0),Ie>0&&Ie<we&&(Ie=we),Ie===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(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),G.length-K<Ie-we&&(Ie=G.length-K+we);var Ge=Ie-we,Ke;if(this===G&&we<K&&K<Ie)for(Ke=Ge-1;Ke>=0;--Ke)G[Ke+K]=this[Ke+we];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)G[Ke+K]=this[Ke+we];else Uint8Array.prototype.set.call(G,this.subarray(we,we+Ge),K);return Ge},g.prototype.fill=function(G,K,we,Ie){if(typeof G=="string"){if(typeof K=="string"?(Ie=K,K=0,we=this.length):typeof we=="string"&&(Ie=we,we=this.length),G.length===1){var Ge=G.charCodeAt(0);Ge<256&&(G=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}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 Ke;if(typeof G=="number")for(Ke=K;Ke<we;++Ke)this[Ke]=G;else{var P=g.isBuffer(G)?G:Ct(new g(G,Ie).toString()),Me=P.length;for(Ke=0;Ke<we-K;++Ke)this[Ke+K]=P[Ke%Me]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function dt(he){if(he=Rt(he).replace(mt,""),he.length<2)return"";for(;he.length%4!=0;)he=he+"=";return he}function Rt(he){return he.trim?he.trim():he.replace(/^\s+|\s+$/g,"")}function kt(he){return he<16?"0"+he.toString(16):he.toString(16)}function Ct(he,G){G=G||1/0;for(var K,we=he.length,Ie=null,Ge=[],Ke=0;Ke<we;++Ke){if(K=he.charCodeAt(Ke),K>55295&&K<57344){if(!Ie){if(K>56319){(G-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===we){(G-=3)>-1&&Ge.push(239,191,189);continue}Ie=K;continue}if(K<56320){(G-=3)>-1&&Ge.push(239,191,189),Ie=K;continue}K=(Ie-55296<<10|K-56320)+65536}else Ie&&(G-=3)>-1&&Ge.push(239,191,189);if(Ie=null,K<128){if((G-=1)<0)break;Ge.push(K)}else if(K<2048){if((G-=2)<0)break;Ge.push(K>>6|192,K&63|128)}else if(K<65536){if((G-=3)<0)break;Ge.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((G-=4)<0)break;Ge.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return Ge}function Wt(he){for(var G=[],K=0;K<he.length;++K)G.push(he.charCodeAt(K)&255);return G}function Dt(he,G){for(var K,we,Ie,Ge=[],Ke=0;Ke<he.length&&!((G-=2)<0);++Ke)K=he.charCodeAt(Ke),we=K>>8,Ie=K%256,Ge.push(Ie),Ge.push(we);return Ge}function Vt(he){return c.toByteArray(dt(he))}function Tt(he,G,K,we){for(var Ie=0;Ie<we&&!(Ie+K>=G.length||Ie>=he.length);++Ie)G[Ie+K]=he[Ie];return Ie}function Nt(he){return he!==he}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,a)=>{"use strict";var c=a(58612),v=a(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=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 ee=b(c,d,arguments);if(S&&g){var W=S(ee,"length");W.configurable&&g(ee,"length",{value:1+L(0,j.length-(arguments.length-1))})}return ee};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,a)=>{(function(c){c(a(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&&(S(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:D,Enter:B};function S(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),X="'"+V+"'";b[X]||(b[X]=g(V))}}S(v.pairs+"`");function g(M){return function(C){return W(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 D(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),X=M.listSelections(),q=0;q<X.length;q++){if(!X[q].empty())return c.Pass;var Z=R(M,X[q].head);if(!Z||V.indexOf(Z)%2!=0)return c.Pass}for(var q=X.length-1;q>=0;q--){var J=X[q].head;M.replaceRange("",x(J.line,J.ch-1),x(J.line,J.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 X=M.listSelections(),q=0;q<X.length;q++){if(!X[q].empty())return c.Pass;var Z=R(M,X[q].head);if(!Z||V.indexOf(Z)%2!=0)return c.Pass}M.operation(function(){var J=M.lineSeparator()||`
12
+ `;M.replaceSelection(J+J,null),j(M,-1),X=M.listSelections();for(var de=0;de<X.length;de++){var te=X[de].head.line;M.indentLine(te,null,!0),M.indentLine(te+1,null,!0)}})}function j(M,C){for(var V=[],X=M.listSelections(),q=0,Z=0;Z<X.length;Z++){var J=X[Z];J.head==M.getCursor()&&(q=Z);var de=J.head.ch||C>0?{line:J.head.line,ch:J.head.ch+C}:{line:J.head.line-1};V.push({anchor:de,head:de})}M.setSelections(V,q)}function ee(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 W(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var X=d(V,"pairs"),q=X.indexOf(C);if(q==-1)return c.Pass;for(var Z=d(V,"closeBefore"),J=d(V,"triples"),de=X.charAt(q+1)==C,te=M.listSelections(),ae=q%2==0,ye,xe=0;xe<te.length;xe++){var pe=te[xe],fe=pe.head,se,Fe=M.getRange(fe,x(fe.line,fe.ch+1));if(ae&&!pe.empty())se="surround";else if((de||!ae)&&Fe==C)de&&Q(M,fe)?se="both":J.indexOf(C)>=0&&M.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?se="skipThree":se="skip";else if(de&&fe.ch>1&&J.indexOf(C)>=0&&M.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;se="addFour"}else if(de){var De=fe.ch==0?" ":M.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&De!=C&&!c.isWordChar(De))se="both";else return c.Pass}else if(ae&&(Fe.length===0||/\s/.test(Fe)||Z.indexOf(Fe)>-1))se="both";else return c.Pass;if(!ye)ye=se;else if(ye!=se)return c.Pass}var Re=q%2?X.charAt(q-1):C,Pe=q%2?C:X.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 tt=M.getSelections(),Qe=0;Qe<tt.length;Qe++)tt[Qe]=Re+tt[Qe]+Pe;M.replaceSelections(tt,"around"),tt=M.listSelections().slice();for(var Qe=0;Qe<tt.length;Qe++)tt[Qe]=ee(tt[Qe]);M.setSelections(tt)}else ye=="both"?(M.replaceSelection(Re+Pe,null),M.triggerElectric(Re+Pe),j(M,-1)):ye=="addFour"&&(M.replaceSelection(Re+Re+Re+Re,"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 Q(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,a)=>{(function(c){c(a(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 S(j,ee,W){var R=j.getLineHandle(ee.line),Q=ee.ch-1,M=W&&W.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!M&&Q>=0&&C.test(R.text.charAt(Q))&&d[R.text.charAt(Q)]||C.test(R.text.charAt(Q+1))&&d[R.text.charAt(++Q)];if(!V)return null;var X=V.charAt(1)==">"?1:-1;if(W&&W.strict&&X>0!=(Q==ee.ch))return null;var q=j.getTokenTypeAt(x(ee.line,Q+1)),Z=g(j,x(ee.line,Q+(X>0?1:0)),X,q,W);return Z==null?null:{from:x(ee.line,Q),to:Z&&Z.pos,match:Z&&Z.ch==V.charAt(0),forward:X>0}}function g(j,ee,W,R,Q){for(var M=Q&&Q.maxScanLineLength||1e4,C=Q&&Q.maxScanLines||1e3,V=[],X=b(Q),q=W>0?Math.min(ee.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,ee.line-C),Z=ee.line;Z!=q;Z+=W){var J=j.getLine(Z);if(!!J){var de=W>0?0:J.length-1,te=W>0?J.length:-1;if(!(J.length>M))for(Z==ee.line&&(de=ee.ch-(W<0?1:0));de!=te;de+=W){var ae=J.charAt(de);if(X.test(ae)&&(R===void 0||(j.getTokenTypeAt(x(Z,de+1))||"")==(R||""))){var ye=d[ae];if(ye&&ye.charAt(1)==">"==W>0)V.push(ae);else if(V.length)V.pop();else return{pos:x(Z,de),ch:ae}}}}}return Z-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,ee,W){for(var R=j.state.matchBrackets.maxHighlightLineLength||1e3,Q=W&&W.highlightNonMatching,M=[],C=j.listSelections(),V=0;V<C.length;V++){var X=C[V].empty()&&S(j,C[V].head,W);if(X&&(X.match||Q!==!1)&&j.getLine(X.from.line).length<=R){var q=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(j.markText(X.from,x(X.from.line,X.from.ch+1),{className:q})),X.to&&j.getLine(X.to.line).length<=R&&M.push(j.markText(X.to,x(X.to.line,X.to.ch+1),{className:q}))}}if(M.length){v&&j.state.focused&&j.focus();var Z=function(){j.operation(function(){for(var J=0;J<M.length;J++)M[J].clear()})};if(ee)setTimeout(Z,800);else return Z}}function D(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,ee,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),ee&&(j.state.matchBrackets=typeof ee=="object"?ee:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,ee,W){return(W||typeof ee=="boolean")&&(W?(W.strict=ee,ee=W):ee=ee?{strict:!0}:null),S(this,j,ee)}),c.defineExtension("scanForBracket",function(j,ee,W,R){return g(this,j,ee,W,R)})})},71707:(h,I,a)=>{(function(c){c(a(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 X={hint:C};if(V)for(var q in V)X[q]=V[q];return M.showHint(X)},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 X=this.state.completionActive=new d(this,M);!X.options.hint||(c.signal(this,"startCompletion",this),X.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)},S=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],X=this;this.cm.operation(function(){V.hint?V.hint(X.cm,M,V):X.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),X.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(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 X=this;this.debounce=b(function(){X.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(X){C.tick==V&&C.finishUpdate(X,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 X=M.options.hintOptions,q={};for(var Z in Q)q[Z]=Q[Z];if(X)for(var Z in X)X[Z]!==void 0&&(q[Z]=X[Z]);if(V)for(var Z in V)V[Z]!==void 0&&(q[Z]=V[Z]);return q.hint.resolve&&(q.hint=q.hint.resolve(M,C)),q}function L(M){return typeof M=="string"?M:M.text}function D(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},X=/Mac/.test(navigator.platform);X&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var q=M.options.customKeys,Z=q?{}:V;function J(ae,ye){var xe;typeof ye!="string"?xe=function(pe){return ye(pe,C)}:V.hasOwnProperty(ye)?xe=V[ye]:xe=ye,Z[ae]=xe}if(q)for(var de in q)q.hasOwnProperty(de)&&J(de,q[de]);var te=M.options.extraKeys;if(te)for(var de in te)te.hasOwnProperty(de)&&J(de,te[de]);return Z}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,X=M.cm,q=X.getInputField().ownerDocument,Z=q.defaultView||q.parentWindow,J=this.hints=q.createElement("ul");J.setAttribute("role","listbox"),J.setAttribute("aria-expanded","true"),J.id=this.id;var de=M.cm.options.theme;J.className="CodeMirror-hints "+de,this.selectedHint=C.selectedHint||0;for(var te=C.list,ae=0;ae<te.length;++ae){var ye=J.appendChild(q.createElement("li")),xe=te[ae],pe=v+(ae!=this.selectedHint?"":" "+x);xe.className!=null&&(pe=xe.className+" "+pe),ye.className=pe,ae==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ae,ye.setAttribute("role","option"),xe.render?xe.render(ye,C,xe):ye.appendChild(q.createTextNode(xe.displayText||L(xe))),ye.hintId=ae}var fe=M.options.container||q.body,se=X.cursorCoords(M.options.alignWithWord?C.from:null),Fe=se.left,De=se.bottom,Re=!0,Pe=0,tt=0;if(fe!==q.body){var Qe=["absolute","relative","fixed"].indexOf(Z.getComputedStyle(fe).position)!==-1,Je=Qe?fe:fe.offsetParent,ut=Je.getBoundingClientRect(),pt=q.body.getBoundingClientRect();Pe=ut.left-pt.left-Je.scrollLeft,tt=ut.top-pt.top-Je.scrollTop}J.style.left=Fe-Pe+"px",J.style.top=De-tt+"px";var wt=Z.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),rt=Z.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);fe.appendChild(J),X.getInputField().setAttribute("aria-autocomplete","list"),X.getInputField().setAttribute("aria-owns",this.id),X.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var lt=M.options.moveOnOverlap?J.getBoundingClientRect():new DOMRect,yt=M.options.paddingForScrollbar?J.scrollHeight>J.clientHeight+1:!1,mt;setTimeout(function(){mt=X.getScrollInfo()});var dt=lt.bottom-rt;if(dt>0){var Rt=lt.bottom-lt.top,kt=se.top-(se.bottom-lt.top);if(kt-Rt>0)J.style.top=(De=se.top-Rt-tt)+"px",Re=!1;else if(Rt>rt){J.style.height=rt-5+"px",J.style.top=(De=se.bottom-lt.top-tt)+"px";var Ct=X.getCursor();C.from.ch!=Ct.ch&&(se=X.cursorCoords(Ct),J.style.left=(Fe=se.left-Pe)+"px",lt=J.getBoundingClientRect())}}var Wt=lt.right-wt;if(yt&&(Wt+=X.display.nativeBarWidth),Wt>0&&(lt.right-lt.left>wt&&(J.style.width=wt-5+"px",Wt-=lt.right-lt.left-wt),J.style.left=(Fe=se.left-Wt-Pe)+"px"),yt)for(var Dt=J.firstChild;Dt;Dt=Dt.nextSibling)Dt.style.paddingRight=X.display.nativeBarWidth+"px";if(X.addKeyMap(this.keyMap=D(M,{moveFocus:function(Nt,he){V.changeActive(V.selectedHint+Nt,he)},setFocus:function(Nt){V.changeActive(Nt)},menuSize:function(){return V.screenAmount()},length:te.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var Vt;X.on("blur",this.onBlur=function(){Vt=setTimeout(function(){M.close()},100)}),X.on("focus",this.onFocus=function(){clearTimeout(Vt)})}X.on("scroll",this.onScroll=function(){var Nt=X.getScrollInfo(),he=X.getWrapperElement().getBoundingClientRect();mt||(mt=X.getScrollInfo());var G=De+mt.top-Nt.top,K=G-(Z.pageYOffset||(q.documentElement||q.body).scrollTop);if(Re||(K+=J.offsetHeight),K<=he.top||K>=he.bottom)return M.close();J.style.top=G+"px",J.style.left=Fe+mt.left-Nt.left+"px"}),c.on(J,"dblclick",function(Nt){var he=B(J,Nt.target||Nt.srcElement);he&&he.hintId!=null&&(V.changeActive(he.hintId),V.pick())}),c.on(J,"click",function(Nt){var he=B(J,Nt.target||Nt.srcElement);he&&he.hintId!=null&&(V.changeActive(he.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(J,"mousedown",function(){setTimeout(function(){X.focus()},20)});var Tt=this.getSelectedHintRange();return(Tt.from!==0||Tt.to!==0)&&this.scrollToActive(),c.signal(C,"select",te[this.selectedHint],J.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],X=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-X.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+X.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 ee(M,C){if(!M.somethingSelected())return C;for(var V=[],X=0;X<C.length;X++)C[X].supportsSelection&&V.push(C[X]);return V}function W(M,C,V,X){if(M.async)M(C,X,V);else{var q=M(C,V);q&&q.then?q.then(X):X(q)}}function R(M,C){var V=M.getHelpers(C,"hint"),X;if(V.length){var q=function(Z,J,de){var te=ee(Z,V);function ae(ye){if(ye==te.length)return J(null);W(te[ye],Z,de,function(xe){xe&&xe.list.length>0?J(xe):ae(ye+1)})}ae(0)};return q.async=!0,q.supportsSelection=!0,q}else return(X=M.getHelper(M.getCursor(),"hintWords"))?function(Z){return c.hint.fromList(Z,{words:X})}:c.hint.anyword?function(Z,J){return c.hint.anyword(Z,J)}:function(){}}c.registerHelper("hint","auto",{resolve:R}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),X=M.getTokenAt(V),q,Z=c.Pos(V.line,X.start),J=V;X.start<V.ch&&/\w/.test(X.string.charAt(V.ch-X.start-1))?q=X.string.substr(0,V.ch-X.start):(q="",Z=V);for(var de=[],te=0;te<C.words.length;te++){var ae=C.words[te];ae.slice(0,q.length)==q&&de.push(ae)}if(de.length)return{list:de,from:Z,to:J}}),c.commands.autocomplete=c.showHint;var Q={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,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(J,de,te){var ae=document.createElement("div");ae.className="CodeMirror-lint-tooltip cm-s-"+J.options.theme,ae.appendChild(te.cloneNode(!0)),J.state.lint.options.selfContain?J.getWrapperElement().appendChild(ae):document.body.appendChild(ae);function ye(xe){if(!ae.parentNode)return c.off(document,"mousemove",ye);ae.style.top=Math.max(0,xe.clientY-ae.offsetHeight-5)+"px",ae.style.left=xe.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(de),ae.style.opacity!=null&&(ae.style.opacity=1),ae}function b(J){J.parentNode&&J.parentNode.removeChild(J)}function S(J){!J.parentNode||(J.style.opacity==null&&b(J),J.style.opacity=0,setTimeout(function(){b(J)},600))}function g(J,de,te,ae){var ye=d(J,de,te);function xe(){c.off(ae,"mouseout",xe),ye&&(S(ye),ye=null)}var pe=setInterval(function(){if(ye)for(var fe=ae;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){xe();break}}if(!ye)return clearInterval(pe)},400);c.on(ae,"mouseout",xe)}function L(J,de,te){this.marked=[],de instanceof Function&&(de={getAnnotations:de}),(!de||de===!0)&&(de={}),this.options={},this.linterOptions=de.options||{};for(var ae in D)this.options[ae]=D[ae];for(var ae in de)D.hasOwnProperty(ae)?de[ae]!=null&&(this.options[ae]=de[ae]):de.options||(this.linterOptions[ae]=de[ae]);this.timeout=null,this.hasGutter=te,this.onMouseOver=function(ye){Z(J,ye)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(J){var de=J.state.lint;de.hasGutter&&J.clearGutter(v),de.options.highlightLines&&j(J);for(var te=0;te<de.marked.length;++te)de.marked[te].clear();de.marked.length=0}function j(J){J.eachLine(function(de){var te=de.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(de.wrapClass);te&&J.removeLineClass(de,"wrap",te[0])})}function ee(J,de,te,ae,ye){var xe=document.createElement("div"),pe=xe;return xe.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+te,ae&&(pe=xe.appendChild(document.createElement("div")),pe.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(pe,"mouseover",function(fe){g(J,fe,de,pe)}),xe}function W(J,de){return J=="error"?J:de}function R(J){for(var de=[],te=0;te<J.length;++te){var ae=J[te],ye=ae.from.line;(de[ye]||(de[ye]=[])).push(ae)}return de}function Q(J){var de=J.severity;de||(de="error");var te=document.createElement("div");return te.className="CodeMirror-lint-message CodeMirror-lint-message-"+de,typeof J.messageHTML!="undefined"?te.innerHTML=J.messageHTML:te.appendChild(document.createTextNode(J.message)),te}function M(J,de){var te=J.state.lint,ae=++te.waitingFor;function ye(){ae=-1,J.off("change",ye)}J.on("change",ye),de(J.getValue(),function(xe,pe){J.off("change",ye),te.waitingFor==ae&&(pe&&xe instanceof c&&(xe=pe),J.operation(function(){V(J,xe)}))},te.linterOptions,J)}function C(J){var de=J.state.lint;if(!!de){var te=de.options,ae=te.getAnnotations||J.getHelper(c.Pos(0,0),"lint");if(!!ae)if(te.async||ae.async)M(J,ae);else{var ye=ae(J.getValue(),de.linterOptions,J);if(!ye)return;ye.then?ye.then(function(xe){J.operation(function(){V(J,xe)})}):J.operation(function(){V(J,ye)})}}}function V(J,de){var te=J.state.lint;if(!!te){var ae=te.options;B(J);for(var ye=R(de),xe=0;xe<ye.length;++xe){var pe=ye[xe];if(!!pe){var fe=[];pe=pe.filter(function(tt){return fe.indexOf(tt.message)>-1?!1:fe.push(tt.message)});for(var se=null,Fe=te.hasGutter&&document.createDocumentFragment(),De=0;De<pe.length;++De){var Re=pe[De],Pe=Re.severity;Pe||(Pe="error"),se=W(se,Pe),ae.formatAnnotation&&(Re=ae.formatAnnotation(Re)),te.hasGutter&&Fe.appendChild(Q(Re)),Re.to&&te.marked.push(J.markText(Re.from,Re.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Re}))}te.hasGutter&&J.setGutterMarker(xe,v,ee(J,Fe,se,ye[xe].length>1,ae.tooltips)),ae.highlightLines&&J.addLineClass(xe,"wrap",x+se)}}ae.onUpdateLinting&&ae.onUpdateLinting(de,ye,J)}}function X(J){var de=J.state.lint;!de||(clearTimeout(de.timeout),de.timeout=setTimeout(function(){C(J)},de.options.delay))}function q(J,de,te){for(var ae=te.target||te.srcElement,ye=document.createDocumentFragment(),xe=0;xe<de.length;xe++){var pe=de[xe];ye.appendChild(Q(pe))}g(J,te,ye,ae)}function Z(J,de){var te=de.target||de.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(te.className)){for(var ae=te.getBoundingClientRect(),ye=(ae.left+ae.right)/2,xe=(ae.top+ae.bottom)/2,pe=J.findMarksAt(J.coordsChar({left:ye,top:xe},"client")),fe=[],se=0;se<pe.length;++se){var Fe=pe[se].__annotation;Fe&&fe.push(Fe)}fe.length&&q(J,fe,de)}}c.defineOption("lint",!1,function(J,de,te){if(te&&te!=c.Init&&(B(J),J.state.lint.options.lintOnChange!==!1&&J.off("change",X),c.off(J.getWrapperElement(),"mouseover",J.state.lint.onMouseOver),clearTimeout(J.state.lint.timeout),delete J.state.lint),de){for(var ae=J.getOption("gutters"),ye=!1,xe=0;xe<ae.length;++xe)ae[xe]==v&&(ye=!0);var pe=J.state.lint=new L(J,de,ye);pe.options.lintOnChange&&J.on("change",X),pe.options.tooltips!=!1&&pe.options.tooltips!="gutter"&&c.on(J.getWrapperElement(),"mouseover",pe.onMouseOver),C(J)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,a)=>{(function(c){c(a(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 X=x(C),q=X,Z=0;Z<V.length;Z++)q.indexOf(V.charAt(Z))==-1&&(q+=V.charAt(Z));return X==q?C:new RegExp(C.source,q)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,X){V=d(V,"g");for(var q=X.line,Z=X.ch,J=C.lastLine();q<=J;q++,Z=0){V.lastIndex=Z;var de=C.getLine(q),te=V.exec(de);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function g(C,V,X){if(!b(V))return S(C,V,X);V=d(V,"gm");for(var q,Z=1,J=X.line,de=C.lastLine();J<=de;){for(var te=0;te<Z&&!(J>de);te++){var ae=C.getLine(J++);q=q==null?ae:q+`
13
+ `+ae}Z=Z*2,V.lastIndex=X.ch;var ye=V.exec(q);if(ye){var xe=q.slice(0,ye.index).split(`
14
14
  `),pe=ye[0].split(`
15
- `),fe=X.line+xe.length-1,se=xe[xe.length-1].length;return{from:v(fe,se),to:v(fe+pe.length-1,pe.length==1?se+pe[0].length:pe[pe.length-1].length),match:ye}}}}function L(C,V,X){for(var q,Z=0;Z<=C.length;){V.lastIndex=Z;var J=V.exec(C);if(!J)break;var de=J.index+J[0].length;if(de>C.length-X)break;(!q||de>q.index+q[0].length)&&(q=J),Z=J.index+1}return q}function D(C,V,X){V=d(V,"g");for(var q=X.line,Z=X.ch,J=C.firstLine();q>=J;q--,Z=-1){var de=C.getLine(q),re=L(de,V,Z<0?0:de.length-Z);if(re)return{from:v(q,re.index),to:v(q,re.index+re[0].length),match:re}}}function B(C,V,X){if(!b(V))return D(C,V,X);V=d(V,"gm");for(var q,Z=1,J=C.getLine(X.line).length-X.ch,de=X.line,re=C.firstLine();de>=re;){for(var ie=0;ie<Z&&de>=re;ie++){var ye=C.getLine(de--);q=q==null?ye:ye+`
15
+ `),fe=X.line+xe.length-1,se=xe[xe.length-1].length;return{from:v(fe,se),to:v(fe+pe.length-1,pe.length==1?se+pe[0].length:pe[pe.length-1].length),match:ye}}}}function L(C,V,X){for(var q,Z=0;Z<=C.length;){V.lastIndex=Z;var J=V.exec(C);if(!J)break;var de=J.index+J[0].length;if(de>C.length-X)break;(!q||de>q.index+q[0].length)&&(q=J),Z=J.index+1}return q}function D(C,V,X){V=d(V,"g");for(var q=X.line,Z=X.ch,J=C.firstLine();q>=J;q--,Z=-1){var de=C.getLine(q),te=L(de,V,Z<0?0:de.length-Z);if(te)return{from:v(q,te.index),to:v(q,te.index+te[0].length),match:te}}}function B(C,V,X){if(!b(V))return D(C,V,X);V=d(V,"gm");for(var q,Z=1,J=C.getLine(X.line).length-X.ch,de=X.line,te=C.firstLine();de>=te;){for(var ae=0;ae<Z&&de>=te;ae++){var ye=C.getLine(de--);q=q==null?ye:ye+`
16
16
  `+q}Z*=2;var xe=L(q,V,J);if(xe){var pe=q.slice(0,xe.index).split(`
17
17
  `),fe=xe[0].split(`
18
- `),se=de+pe.length,Fe=pe[pe.length-1].length;return{from:v(se,Fe),to:v(se+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:xe}}}}var j,ee;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},ee=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},ee=function(C){return C});function W(C,V,X,q){if(C.length==V.length)return X;for(var Z=0,J=X+Math.max(0,C.length-V.length);;){if(Z==J)return Z;var de=Z+J>>1,re=q(C.slice(0,de)).length;if(re==X)return de;re>X?J=de:Z=de+1}}function R(C,V,X,q){if(!V.length)return null;var Z=q?j:ee,J=Z(V).split(/\r|\n\r?/);e:for(var de=X.line,re=X.ch,ie=C.lastLine()+1-J.length;de<=ie;de++,re=0){var ye=C.getLine(de).slice(re),xe=Z(ye);if(J.length==1){var pe=xe.indexOf(J[0]);if(pe==-1)continue e;var X=W(ye,xe,pe,Z)+re;return{from:v(de,W(ye,xe,pe,Z)+re),to:v(de,W(ye,xe,pe+J[0].length,Z)+re)}}else{var fe=xe.length-J[0].length;if(xe.slice(fe)!=J[0])continue e;for(var se=1;se<J.length-1;se++)if(Z(C.getLine(de+se))!=J[se])continue e;var Fe=C.getLine(de+J.length-1),De=Z(Fe),Re=J[J.length-1];if(De.slice(0,Re.length)!=Re)continue e;return{from:v(de,W(ye,xe,fe,Z)+re),to:v(de+J.length-1,W(Fe,De,Re.length,Z))}}}}function Q(C,V,X,q){if(!V.length)return null;var Z=q?j:ee,J=Z(V).split(/\r|\n\r?/);e:for(var de=X.line,re=X.ch,ie=C.firstLine()-1+J.length;de>=ie;de--,re=-1){var ye=C.getLine(de);re>-1&&(ye=ye.slice(0,re));var xe=Z(ye);if(J.length==1){var pe=xe.lastIndexOf(J[0]);if(pe==-1)continue e;return{from:v(de,W(ye,xe,pe,Z)),to:v(de,W(ye,xe,pe+J[0].length,Z))}}else{var fe=J[J.length-1];if(xe.slice(0,fe.length)!=fe)continue e;for(var se=1,X=de-J.length+1;se<J.length-1;se++)if(Z(C.getLine(X+se))!=J[se])continue e;var Fe=C.getLine(de+1-J.length),De=Z(Fe);if(De.slice(De.length-J[0].length)!=J[0])continue e;return{from:v(de+1-J.length,W(Fe,De,Fe.length-J[0].length,Z)),to:v(de,W(ye,xe,fe.length,Z))}}}}function M(C,V,X,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,X=X?C.clipPos(X):v(0,0),this.pos={from:X,to:X};var Z;typeof q=="object"?Z=q.caseFold:(Z=q,q=null),typeof V=="string"?(Z==null&&(Z=!1),this.matches=function(J,de){return(J?Q:R)(C,V,de,Z)}):(V=d(V,"gm"),!q||q.multiline!==!1?this.matches=function(J,de){return(J?B:g)(C,V,de)}:this.matches=function(J,de){return(J?D:A)(C,V,de)})}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 X=this.matches(C,V);if(this.afterEmptyMatch=X&&c.cmpPos(X.from,X.to)==0,X)return this.pos=X,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 X=c.splitLines(C);this.doc.replaceRange(X,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+X.length-1,X[X.length-1].length+(X.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,X){return new M(this.doc,C,V,X)}),c.defineDocExtension("getSearchCursor",function(C,V,X){return new M(this,C,V,X)}),c.defineExtension("selectMatches",function(C,V){for(var X=[],q=this.getSearchCursor(C,this.getCursor("from"),V);q.findNext()&&!(c.cmpPos(q.to(),this.getCursor("to"))>0);)X.push({anchor:q.from(),head:q.to()});X.length&&this.setSelections(X,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=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),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),R=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),Q=/Android/.test(I),M=R||Q||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=R||/Mac/.test(a),V=/\bCrOS\b/.test(I),X=/win/i.test(a),q=B&&I.match(/Version\/(\d*\.\d*)/);q&&(q=Number(q[1])),q&&q>=15&&(B=!1,g=!0);var Z=C&&(L||B&&(q==null||q<12.11)),J=c||b&&A>=9;function de(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var re=function(e,n){var u=e.className,l=de(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 ie(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ye(e,n){return ie(e).appendChild(n)}function xe(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 y=0;y<n.length;++y)f.appendChild(n[y]);return f}function pe(e,n,u,l){var f=xe(e,n,u,l);return f.setAttribute("role","presentation"),f}var fe;document.createRange?fe=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:fe=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 se(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 Fe(){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 De(e,n){var u=e.className;de(n).test(u)||(e.className+=(u?" ":"")+n)}function Re(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!de(u[l]).test(n)&&(n+=" "+u[l]);return n}var Pe=function(e){e.select()};R?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(n){}});function et(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 Je(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,F=f||0;;){var U=e.indexOf(" ",y);if(U<0||U>=n)return F+(n-y);F+=U-y,F+=u-F%u,y=U+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=et(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 ht(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var wt=50,rt={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},yt={origin:"*mouse"},mt={origin:"+move"};function pt(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var F=y-l;if(y==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var kt=[""];function Ft(e){for(;kt.length<=e;)kt.push(Ct(kt)+" ");return kt[e]}function Ct(e){return e[e.length-1]}function Ht(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Lt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Vt(){}function Tt(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Qe(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&he(e)?!0:n.test(e):he(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 Ie(e){return e.charCodeAt(0)>=768&&we.test(e)}function $e(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var F=e[y];(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",y),f=!0)}f||l(n,u,"ltr")}var Me=null;function Y(e,n,u){var l;Me=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Me=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Me=f)}return l!=null?l:Me}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(_){return _<=247?e.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?n.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,y=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function H(_,me,Ee){this.level=_,this.from=me,this.to=Ee}return function(_,me){var Ee=me=="ltr"?"L":"R";if(_.length==0||me=="ltr"&&!l.test(_))return!1;for(var Ne=_.length,ke=[],Ye=0;Ye<Ne;++Ye)ke.push(u(_.charCodeAt(Ye)));for(var tt=0,at=Ee;tt<Ne;++tt){var ft=ke[tt];ft=="m"?ke[tt]=at:at=ft}for(var gt=0,dt=Ee;gt<Ne;++gt){var xt=ke[gt];xt=="1"&&dt=="r"?ke[gt]="n":y.test(xt)&&(dt=xt,xt=="r"&&(ke[gt]="R"))}for(var It=1,Pt=ke[0];It<Ne-1;++It){var Wt=ke[It];Wt=="+"&&Pt=="1"&&ke[It+1]=="1"?ke[It]="1":Wt==","&&Pt==ke[It+1]&&(Pt=="1"||Pt=="n")&&(ke[It]=Pt),Pt=Wt}for(var Ut=0;Ut<Ne;++Ut){var ir=ke[Ut];if(ir==",")ke[Ut]="N";else if(ir=="%"){var ct=void 0;for(ct=Ut+1;ct<Ne&&ke[ct]=="%";++ct);for(var Br=Ut&&ke[Ut-1]=="!"||ct<Ne&&ke[ct]=="1"?"1":"N",fn=Ut;fn<ct;++fn)ke[fn]=Br;Ut=ct-1}}for(var Tr=0,cn=Ee;Tr<Ne;++Tr){var Ur=ke[Tr];cn=="L"&&Ur=="1"?ke[Tr]="L":y.test(Ur)&&(cn=Ur)}for(var Rr=0;Rr<Ne;++Rr)if(f.test(ke[Rr])){var Pr=void 0;for(Pr=Rr+1;Pr<Ne&&f.test(ke[Pr]);++Pr);for(var gr=(Rr?ke[Rr-1]:Ee)=="L",Gr=(Pr<Ne?ke[Pr]:Ee)=="L",ia=gr==Gr?gr?"L":"R":Ee,gi=Rr;gi<Pr;++gi)ke[gi]=ia;Rr=Pr-1}for(var $r=[],ri,jr=0;jr<Ne;)if(F.test(ke[jr])){var ns=jr;for(++jr;jr<Ne&&F.test(ke[jr]);++jr);$r.push(new H(0,ns,jr))}else{var yi=jr,$n=$r.length,Mr=me=="rtl"?1:0;for(++jr;jr<Ne&&ke[jr]!="L";++jr);for(var dn=yi;dn<jr;)if(U.test(ke[dn])){yi<dn&&($r.splice($n,0,new H(1,yi,dn)),$n+=Mr);var ni=dn;for(++dn;dn<jr&&U.test(ke[dn]);++dn);$r.splice($n,0,new H(2,ni,dn)),$n+=Mr,yi=dn}else++dn;yi<jr&&$r.splice($n,0,new H(1,yi,jr))}return me=="ltr"&&($r[0].level==1&&(ri=_.match(/^\s+/))&&($r[0].from=ri[0].length,$r.unshift(new H(0,0,ri[0].length))),Ct($r).level==1&&(ri=_.match(/\s+$/))&&(Ct($r).to-=ri[0].length,$r.push(new H(0,Ne-ri[0].length,Ne)))),me=="rtl"?$r.reverse():$r}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var le=[],N=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]||le).concat(u)}};function ne(e,n){return e._handlers&&e._handlers[n]||le}function z(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 y=ht(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function ae(e,n){var u=ne(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 Oe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||n.type,e,n),bt(n)||n.codemirrorIgnore}function Ae(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)ht(u,n[l])==-1&&u.push(n[l])}function Ve(e,n){return ne(e,n).length>0}function Le(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){z(this,n,u)}}function nt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function bt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Gt(e){nt(e),vt(e)}function Rt(e){return e.target||e.srcElement}function Jr(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 vr=function(){if(b&&A<9)return!1;var e=xe("div");return"draggable"in e||"dragDrop"in e}(),Cn;function Si(e){if(Cn==null){var n=xe("span","\u200B");ye(e,xe("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cn=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&A<8))}var u=Cn?xe("span","\u200B"):xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Hr;function Jn(e){if(Hr!=null)return Hr;var n=ye(e,document.createTextNode("A\u062EA")),u=fe(n,0,1).getBoundingClientRect(),l=fe(n,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:Hr=l.right-u.right<3}var ai=`
18
+ `),se=de+pe.length,Fe=pe[pe.length-1].length;return{from:v(se,Fe),to:v(se+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:xe}}}}var j,ee;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},ee=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},ee=function(C){return C});function W(C,V,X,q){if(C.length==V.length)return X;for(var Z=0,J=X+Math.max(0,C.length-V.length);;){if(Z==J)return Z;var de=Z+J>>1,te=q(C.slice(0,de)).length;if(te==X)return de;te>X?J=de:Z=de+1}}function R(C,V,X,q){if(!V.length)return null;var Z=q?j:ee,J=Z(V).split(/\r|\n\r?/);e:for(var de=X.line,te=X.ch,ae=C.lastLine()+1-J.length;de<=ae;de++,te=0){var ye=C.getLine(de).slice(te),xe=Z(ye);if(J.length==1){var pe=xe.indexOf(J[0]);if(pe==-1)continue e;var X=W(ye,xe,pe,Z)+te;return{from:v(de,W(ye,xe,pe,Z)+te),to:v(de,W(ye,xe,pe+J[0].length,Z)+te)}}else{var fe=xe.length-J[0].length;if(xe.slice(fe)!=J[0])continue e;for(var se=1;se<J.length-1;se++)if(Z(C.getLine(de+se))!=J[se])continue e;var Fe=C.getLine(de+J.length-1),De=Z(Fe),Re=J[J.length-1];if(De.slice(0,Re.length)!=Re)continue e;return{from:v(de,W(ye,xe,fe,Z)+te),to:v(de+J.length-1,W(Fe,De,Re.length,Z))}}}}function Q(C,V,X,q){if(!V.length)return null;var Z=q?j:ee,J=Z(V).split(/\r|\n\r?/);e:for(var de=X.line,te=X.ch,ae=C.firstLine()-1+J.length;de>=ae;de--,te=-1){var ye=C.getLine(de);te>-1&&(ye=ye.slice(0,te));var xe=Z(ye);if(J.length==1){var pe=xe.lastIndexOf(J[0]);if(pe==-1)continue e;return{from:v(de,W(ye,xe,pe,Z)),to:v(de,W(ye,xe,pe+J[0].length,Z))}}else{var fe=J[J.length-1];if(xe.slice(0,fe.length)!=fe)continue e;for(var se=1,X=de-J.length+1;se<J.length-1;se++)if(Z(C.getLine(X+se))!=J[se])continue e;var Fe=C.getLine(de+1-J.length),De=Z(Fe);if(De.slice(De.length-J[0].length)!=J[0])continue e;return{from:v(de+1-J.length,W(Fe,De,Fe.length-J[0].length,Z)),to:v(de,W(ye,xe,fe.length,Z))}}}}function M(C,V,X,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,X=X?C.clipPos(X):v(0,0),this.pos={from:X,to:X};var Z;typeof q=="object"?Z=q.caseFold:(Z=q,q=null),typeof V=="string"?(Z==null&&(Z=!1),this.matches=function(J,de){return(J?Q:R)(C,V,de,Z)}):(V=d(V,"gm"),!q||q.multiline!==!1?this.matches=function(J,de){return(J?B:g)(C,V,de)}:this.matches=function(J,de){return(J?D:S)(C,V,de)})}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 X=this.matches(C,V);if(this.afterEmptyMatch=X&&c.cmpPos(X.from,X.to)==0,X)return this.pos=X,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 X=c.splitLines(C);this.doc.replaceRange(X,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+X.length-1,X[X.length-1].length+(X.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,X){return new M(this.doc,C,V,X)}),c.defineDocExtension("getSearchCursor",function(C,V,X){return new M(this,C,V,X)}),c.defineExtension("selectMatches",function(C,V){for(var X=[],q=this.getSearchCursor(C,this.getCursor("from"),V);q.findNext()&&!(c.cmpPos(q.to(),this.getCursor("to"))>0);)X.push({anchor:q.from(),head:q.to()});X.length&&this.setSelections(X,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=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,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),R=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),Q=/Android/.test(I),M=R||Q||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=R||/Mac/.test(a),V=/\bCrOS\b/.test(I),X=/win/i.test(a),q=B&&I.match(/Version\/(\d*\.\d*)/);q&&(q=Number(q[1])),q&&q>=15&&(B=!1,g=!0);var Z=C&&(L||B&&(q==null||q<12.11)),J=c||b&&S>=9;function de(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var te=function(e,n){var u=e.className,l=de(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 ae(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function ye(e,n){return ae(e).appendChild(n)}function xe(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 y=0;y<n.length;++y)f.appendChild(n[y]);return f}function pe(e,n,u,l){var f=xe(e,n,u,l);return f.setAttribute("role","presentation"),f}var fe;document.createRange?fe=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:fe=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 se(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 Fe(){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 De(e,n){var u=e.className;de(n).test(u)||(e.className+=(u?" ":"")+n)}function Re(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!de(u[l]).test(n)&&(n+=" "+u[l]);return n}var Pe=function(e){e.select()};R?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(n){}});function tt(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 Je(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,F=f||0;;){var U=e.indexOf(" ",y);if(U<0||U>=n)return F+(n-y);F+=U-y,F+=u-F%u,y=U+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=tt(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 wt=50,rt={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},yt={origin:"*mouse"},mt={origin:"+move"};function dt(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var F=y-l;if(y==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var Rt=[""];function kt(e){for(;Rt.length<=e;)Rt.push(Ct(Rt)+" ");return Rt[e]}function Ct(e){return e[e.length-1]}function Wt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function Dt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Vt(){}function Tt(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Qe(n,u),u}var Nt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function he(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Nt.test(e))}function G(e,n){return n?n.source.indexOf("\\w")>-1&&he(e)?!0:n.test(e):he(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 Ie(e){return e.charCodeAt(0)>=768&&we.test(e)}function Ge(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var F=e[y];(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",y),f=!0)}f||l(n,u,"ltr")}var Me=null;function Y(e,n,u){var l;Me=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Me=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Me=f)}return l!=null?l:Me}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(_){return _<=247?e.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?n.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,y=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function H(_,me,Ee){this.level=_,this.from=me,this.to=Ee}return function(_,me){var Ee=me=="ltr"?"L":"R";if(_.length==0||me=="ltr"&&!l.test(_))return!1;for(var Ne=_.length,ke=[],Ye=0;Ye<Ne;++Ye)ke.push(u(_.charCodeAt(Ye)));for(var et=0,at=Ee;et<Ne;++et){var ft=ke[et];ft=="m"?ke[et]=at:at=ft}for(var gt=0,ct=Ee;gt<Ne;++gt){var xt=ke[gt];xt=="1"&&ct=="r"?ke[gt]="n":y.test(xt)&&(ct=xt,xt=="r"&&(ke[gt]="R"))}for(var Ft=1,Pt=ke[0];Ft<Ne-1;++Ft){var It=ke[Ft];It=="+"&&Pt=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":It==","&&Pt==ke[Ft+1]&&(Pt=="1"||Pt=="n")&&(ke[Ft]=Pt),Pt=It}for(var $t=0;$t<Ne;++$t){var vt=ke[$t];if(vt==",")ke[$t]="N";else if(vt=="%"){var ir=void 0;for(ir=$t+1;ir<Ne&&ke[ir]=="%";++ir);for(var gn=$t&&ke[$t-1]=="!"||ir<Ne&&ke[ir]=="1"?"1":"N",cn=$t;cn<ir;++cn)ke[cn]=gn;$t=ir-1}}for(var Pr=0,rn=Ee;Pr<Ne;++Pr){var zr=ke[Pr];rn=="L"&&zr=="1"?ke[Pr]="L":y.test(zr)&&(rn=zr)}for(var Rr=0;Rr<Ne;++Rr)if(f.test(ke[Rr])){var Ar=void 0;for(Ar=Rr+1;Ar<Ne&&f.test(ke[Ar]);++Ar);for(var dr=(Rr?ke[Rr-1]:Ee)=="L",nn=(Ar<Ne?ke[Ar]:Ee)=="L",ra=dr==nn?dr?"L":"R":Ee,vi=Rr;vi<Ar;++vi)ke[vi]=ra;Rr=Ar-1}for(var Qr=[],ri,Mr=0;Mr<Ne;)if(F.test(ke[Mr])){var yl=Mr;for(++Mr;Mr<Ne&&F.test(ke[Mr]);++Mr);Qr.push(new H(0,yl,Mr))}else{var Cn=Mr,Lr=Qr.length,wa=me=="rtl"?1:0;for(++Mr;Mr<Ne&&ke[Mr]!="L";++Mr);for(var Dr=Cn;Dr<Mr;)if(U.test(ke[Dr])){Cn<Dr&&(Qr.splice(Lr,0,new H(1,Cn,Dr)),Lr+=wa);var Sa=Dr;for(++Dr;Dr<Mr&&U.test(ke[Dr]);++Dr);Qr.splice(Lr,0,new H(2,Sa,Dr)),Lr+=wa,Cn=Dr}else++Dr;Cn<Mr&&Qr.splice(Lr,0,new H(1,Cn,Mr))}return me=="ltr"&&(Qr[0].level==1&&(ri=_.match(/^\s+/))&&(Qr[0].from=ri[0].length,Qr.unshift(new H(0,0,ri[0].length))),Ct(Qr).level==1&&(ri=_.match(/\s+$/))&&(Ct(Qr).to-=ri[0].length,Qr.push(new H(0,Ne-ri[0].length,Ne)))),me=="rtl"?Qr.reverse():Qr}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var le=[],N=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]||le).concat(u)}};function re(e,n){return e._handlers&&e._handlers[n]||le}function z(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 y=pt(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function oe(e,n){var u=re(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 Oe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),oe(e,u||n.type,e,n),bt(n)||n.codemirrorIgnore}function Ae(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 Ve(e,n){return re(e,n).length>0}function Le(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){z(this,n,u)}}function nt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ht(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function bt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function zt(e){nt(e),ht(e)}function Mt(e){return e.target||e.srcElement}function Kr(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 gr=function(){if(b&&S<9)return!1;var e=xe("div");return"draggable"in e||"dragDrop"in e}(),On;function bi(e){if(On==null){var n=xe("span","\u200B");ye(e,xe("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(On=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=On?xe("span","\u200B"):xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Wr;function Jn(e){if(Wr!=null)return Wr;var n=ye(e,document.createTextNode("A\u062EA")),u=fe(n,0,1).getBoundingClientRect(),l=fe(n,1,2).getBoundingClientRect();return ae(e),!u||u.left==u.right?!1:Wr=l.right-u.right<3}var ii=`
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 y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=y.indexOf("\r");F!=-1?(u.push(y.slice(0,F)),n+=F+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},on=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},Bn=function(){var e=xe("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),zr=null;function Ui(e){if(zr!=null)return zr;var n=ye(e,xe("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return zr=Math.abs(u.left-l.left)>1}var Ai={},Xr={};function xn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ai[e]=n}function On(e,n){Xr[e]=n}function Xn(e){if(typeof e=="string"&&Xr.hasOwnProperty(e))e=Xr[e];else if(e&&typeof e.name=="string"&&Xr.hasOwnProperty(e.name)){var n=Xr[e.name];typeof n=="string"&&(n={name:n}),e=Tt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function bn(e,n){n=Xn(n);var u=Ai[n.name];if(!u)return bn(e,"text/plain");var l=u(e,n);if(Tn.hasOwnProperty(n.name)){var f=Tn[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}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 Tn={};function Un(e,n){var u=Tn.hasOwnProperty(e)?Tn[e]:Tn[e]={};Qe(n,u)}function Qr(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 sn(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 jn(e,n,u){return e.startState?e.startState(n,u):!0}var xr=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};xr.prototype.eol=function(){return this.pos>=this.string.length},xr.prototype.sol=function(){return this.pos==this.lineStart},xr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},xr.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},xr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},xr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},xr.prototype.skipToEnd=function(){this.pos=this.string.length},xr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},xr.prototype.backUp=function(e){this.pos-=e},xr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},xr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},xr.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 y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},xr.prototype.current=function(){return this.string.slice(this.start,this.pos)},xr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},xr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},xr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(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],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function oi(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var F=y.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 wn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function _t(e){if(e.parent==null)return null;for(var n=e.parent,u=ht(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 Vn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],H=U.height;if(n<H)break;n-=H}return u+F}function Qn(e,n){return n>=e.first&&n<e.first+e.size}function la(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function it(e,n,u){if(u===void 0&&(u=null),!(this instanceof it))return new it(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Nt(e,n){return e.line-n.line||e.ch-n.ch}function si(e,n){return e.sticky==n.sticky&&Nt(e,n)==0}function ue(e){return it(e.line,e.ch)}function Ce(e,n){return Nt(e,n)<0?n:e}function _e(e,n){return Nt(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 it(e.first,0);var u=e.first+e.size-1;return n.line>u?it(u,Ot(e,u).text.length):Yt(n,Ot(e,n.line).text.length)}function Yt(e,n){var u=e.ch;return u==null||u>n?it(e.line,n):u<0?it(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 Er=function(e,n){this.state=e,this.lookAhead=n},Cr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Cr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Cr.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}},Cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Cr.fromSaved=function(e,n,u){return n instanceof Er?new Cr(e,Qr(e.mode,n.state),u,n.lookAhead):new Cr(e,Qr(e.mode,n),u)},Cr.prototype.save=function(e){var n=e!==!1?Qr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(n,this.maxLookAhead):n};function qt(e,n,u,l){var f=[e.state.modeGen],y={};Hl(e,n.text,e.doc.mode,u,function(_,me){return f.push(_,me)},y,l);for(var F=u.state,U=function(_){u.baseTokens=f;var me=e.state.overlays[_],Ee=1,Ne=0;u.state=!0,Hl(e,n.text,me.mode,u,function(ke,Ye){for(var tt=Ee;Ne<ke;){var at=f[Ee];at>ke&&f.splice(Ee,1,ke,f[Ee+1],at),Ee+=2,Ne=Math.min(ke,at)}if(!!Ye)if(me.opaque)f.splice(tt,Ee-tt,ke,"overlay "+Ye),Ee=tt+2;else for(;tt<Ee;tt+=2){var ft=f[tt+1];f[tt+1]=(ft?ft+" ":"")+"overlay "+Ye}},y),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function Vl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=en(e,_t(n)),f=n.text.length>e.options.maxHighlightLength&&Qr(e.doc.mode,l.state),y=qt(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.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 Cr(l,!0,n);var y=Rf(e,n,u),F=y>l.first&&Ot(l,y-1).stateAfter,U=F?Cr.fromSaved(l,F,y):new Cr(l,jn(l.mode),y);return l.iter(y,n,function(H){hs(e,H.text,U);var _=U.line;H.stateAfter=_==n-1||_%5==0||_>=f.viewFrom&&_<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function hs(e,n,u,l){var f=e.doc.mode,y=new xr(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&go(f,u.state);!y.eol();)vs(f,y,u.state),y.start=y.pos}function go(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=sn(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function vs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=sn(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var gs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ys(e,n,u,l){var f=e.doc,y=f.mode,F;n=st(f,n);var U=Ot(f,n.line),H=en(e,n.line,u),_=new xr(U.text,e.options.tabSize,H),me;for(l&&(me=[]);(l||_.pos<n.ch)&&!_.eol();)_.start=_.pos,F=vs(y,_,H.state),l&&me.push(new gs(_,F,Qr(f.mode,H.state)));return l?me:new gs(_,F,H.state)}function Wl(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 Hl(e,n,u,l,f,y,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,_=null,me=new xr(n,e.options.tabSize,l),Ee,Ne=e.options.addModeClass&&[null];for(n==""&&Wl(go(u,l.state),y);!me.eol();){if(me.pos>e.options.maxHighlightLength?(U=!1,F&&hs(e,n,l,me.pos),me.pos=n.length,Ee=null):Ee=Wl(vs(u,me,l.state,Ne),y),Ne){var ke=Ne[0].name;ke&&(Ee="m-"+(Ee?ke+" "+Ee:ke))}if(!U||_!=Ee){for(;H<me.start;)H=Math.min(me.start,H+5e3),f(H,_);_=Ee}me.start=me.pos}for(;H<me.pos;){var Ye=Math.min(me.pos,H+5e3);f(Ye,_),H=Ye}}function Rf(e,n,u){for(var l,f,y=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=y.first)return y.first;var H=Ot(y,U-1),_=H.stateAfter;if(_&&(!u||U+(_ instanceof Er?_.lookAhead:0)<=y.modeFrontier))return U;var me=Je(H.text,null,e.options.tabSize);(f==null||l>me)&&(f=U-1,l=me)}return f}function Mf(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=Ot(e,l).stateAfter;if(f&&(!(f instanceof Er)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Lf=!1,Ci=!1;function Df(){Lf=!0}function Nf(){Ci=!0}function yo(e,n,u){this.marker=e,this.from=n,this.to=u}function Oa(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function Bf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Td(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 Pd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);if(U||y.from==n&&F.type=="bookmark"&&(!u||!y.marker.insertLeft)){var H=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new yo(F,y.from,H?null:y.to))}}return l}function Id(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);if(U||y.from==n&&F.type=="bookmark"&&(!u||y.marker.insertLeft)){var H=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new yo(F,H?null:y.from-n,y.to==null?null:y.to-n))}}return l}function zl(e,n){if(n.full)return null;var u=Qn(e,n.from.line)&&Ot(e,n.from.line).markedSpans,l=Qn(e,n.to.line)&&Ot(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,F=Nt(n.from,n.to)==0,U=Pd(u,f,F),H=Id(l,y,F),_=n.text.length==1,me=Ct(n.text).length+(_?f:0);if(U)for(var Ee=0;Ee<U.length;++Ee){var Ne=U[Ee];if(Ne.to==null){var ke=Oa(H,Ne.marker);ke?_&&(Ne.to=ke.to==null?null:ke.to+me):Ne.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=me),tt.from==null){var at=Oa(U,tt.marker);at||(tt.from=me,_&&(U||(U=[])).push(tt))}else tt.from+=me,_&&(U||(U=[])).push(tt)}U&&(U=Gl(U)),H&&H!=U&&(H=Gl(H));var ft=[U];if(!_){var gt=n.text.length-2,dt;if(gt>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(dt||(dt=[])).push(new yo(U[xt].marker,null,null));for(var It=0;It<gt;++It)ft.push(dt);ft.push(H)}return ft}function Gl(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 $l(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var tt=ke.markedSpans[Ye].marker;tt.readOnly&&(!l||ht(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var F=l[y],U=F.find(0),H=0;H<f.length;++H){var _=f[H];if(!(Nt(_.to,U.from)<0||Nt(_.from,U.to)>0)){var me=[H,1],Ee=Nt(_.from,U.from),Ne=Nt(_.to,U.to);(Ee<0||!F.inclusiveLeft&&!Ee)&&me.push({from:_.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&me.push({from:U.to,to:_.to}),f.splice.apply(f,me),H+=me.length-3}}return f}function Kl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Uf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function ms(e){return e.inclusiveLeft?-1:0}function xs(e){return e.inclusiveRight?1:0}function Yl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Nt(l.from,f.from)||ms(e)-ms(n);if(y)return-y;var F=Nt(l.to,f.to)||xs(e)-xs(n);return F||n.id-e.id}function Ta(e,n){var u=Ci&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Yl(l,f.marker)<0)&&(l=f.marker);return l}function bs(e){return Ta(e,!0)}function ji(e){return Ta(e,!1)}function jf(e,n){var u=Ci&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||Yl(l,y.marker)<0)&&(l=y.marker)}return l}function mo(e,n,u,l,f){var y=Ot(e,n),F=Ci&&y.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var _=H.marker.find(0),me=Nt(_.from,u)||ms(H.marker)-ms(f),Ee=Nt(_.to,l)||xs(H.marker)-xs(f);if(!(me>=0&&Ee<=0||me<=0&&Ee>=0)&&(me<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Nt(_.to,u)>=0:Nt(_.to,u)>0)||me>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Nt(_.from,l)<=0:Nt(_.from,l)<0)))return!0}}}function Wn(e){for(var n;n=bs(e);)e=n.find(-1,!0).line;return e}function Jl(e){for(var n;n=ji(e);)e=n.find(1,!0).line;return e}function Vf(e){for(var n,u;n=ji(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Pa(e,n){var u=Ot(e,n),l=Wn(u);return u==l?n:_t(l)}function ws(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!li(e,u))return n;for(;l=ji(u);)u=l.find(1,!0).line;return _t(u)+1}function li(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&&cr(e,n,l))return!0}}}function cr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return cr(e,l.line,Oa(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,n,f))return!0}function ui(e){e=Wn(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 y=u.parent;y;u=y,y=u.parent)for(var F=0;F<y.children.length;++F){var U=y.children[F];if(U==u)break;n+=U.height}return n}function Vi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=bs(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=ji(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function Ss(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=Vi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Vi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Wi=function(e,n,u){this.text=e,Uf(this,n),this.height=u?u(this):1};Wi.prototype.lineNo=function(){return _t(this)},Le(Wi);function Oi(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Kl(e),Uf(e,u);var f=l?l(e):1;f!=e.height&&wn(e,f)}function Hi(e){e.parent=null,Kl(e)}var As={},Es={};function Xl(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Es:As;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Cs(e,n){var u=pe("span",null,null,g?"padding-right: .1px":null),l={pre:pe("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 y=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Ts,Jn(e.display.measure)&&(F=O(y,e.doc.direction))&&(l.addToken=Wf(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&_t(y);Hf(y,l,Vl(e,y,U)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Re(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Re(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Si(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 H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ae(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function Os(e){var n=xe("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ts(e,n,u,l,f,y,F){if(!!n){var U=e.splitSpaces?zi(n,e.trailingSpace):n,H=e.cm.state.specialChars,_=!1,me;if(!H.test(n))e.col+=n.length,me=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,me),b&&A<9&&(_=!0),e.pos+=n.length;else{me=document.createDocumentFragment();for(var Ee=0;;){H.lastIndex=Ee;var Ne=H.exec(n),ke=Ne?Ne.index-Ee:n.length-Ee;if(ke){var Ye=document.createTextNode(U.slice(Ee,Ee+ke));b&&A<9?me.appendChild(xe("span",[Ye])):me.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!Ne)break;Ee+=ke+1;var tt=void 0;if(Ne[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;tt=me.appendChild(xe("span",Ft(ft),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ft}else Ne[0]=="\r"||Ne[0]==`
22
- `?(tt=me.appendChild(xe("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(xe("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||_||y||F){var gt=u||"";l&&(gt+=l),f&&(gt+=f);var dt=xe("span",[me],gt,y);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&dt.setAttribute(xt,F[xt]);return e.content.appendChild(dt)}e.content.appendChild(me)}}function zi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function Wf(e,n){return function(u,l,f,y,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var _=u.pos,me=_+l.length;;){for(var Ee=void 0,Ne=0;Ne<n.length&&(Ee=n[Ne],!(Ee.to>_&&Ee.from<=_));Ne++);if(Ee.to>=me)return e(u,l,f,y,F,U,H);e(u,l.slice(0,Ee.to-_),f,y,null,U,H),y=null,l=l.slice(Ee.to-_),_=Ee.to}}}function ar(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 Hf(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(y,y=u[F]),Xl(u[F+1],n.cm.options));return}for(var U=f.length,H=0,_=1,me="",Ee,Ne,ke=0,Ye,tt,at,ft,gt;;){if(ke==H){Ye=tt=at=Ne="",gt=null,ft=null,ke=1/0;for(var dt=[],xt=void 0,It=0;It<l.length;++It){var Pt=l[It],Wt=Pt.marker;if(Wt.type=="bookmark"&&Pt.from==H&&Wt.widgetNode)dt.push(Wt);else if(Pt.from<=H&&(Pt.to==null||Pt.to>H||Wt.collapsed&&Pt.to==H&&Pt.from==H)){if(Pt.to!=null&&Pt.to!=H&&ke>Pt.to&&(ke=Pt.to,tt=""),Wt.className&&(Ye+=" "+Wt.className),Wt.css&&(Ne=(Ne?Ne+";":"")+Wt.css),Wt.startStyle&&Pt.from==H&&(at+=" "+Wt.startStyle),Wt.endStyle&&Pt.to==ke&&(xt||(xt=[])).push(Wt.endStyle,Pt.to),Wt.title&&((gt||(gt={})).title=Wt.title),Wt.attributes)for(var Ut in Wt.attributes)(gt||(gt={}))[Ut]=Wt.attributes[Ut];Wt.collapsed&&(!ft||Yl(ft.marker,Wt)<0)&&(ft=Pt)}else Pt.from>H&&ke>Pt.from&&(ke=Pt.from)}if(xt)for(var ir=0;ir<xt.length;ir+=2)xt[ir+1]==ke&&(tt+=" "+xt[ir]);if(!ft||ft.from==H)for(var ct=0;ct<dt.length;++ct)ar(n,0,dt[ct]);if(ft&&(ft.from||0)==H){if(ar(n,(ft.to==null?U+1:ft.to)-H,ft.marker,ft.from==null),ft.to==null)return;ft.to==H&&(ft=!1)}}if(H>=U)break;for(var Br=Math.min(U,ke);;){if(me){var fn=H+me.length;if(!ft){var Tr=fn>Br?me.slice(0,Br-H):me;n.addToken(n,Tr,Ee?Ee+Ye:Ye,at,H+Tr.length==ke?tt:"",Ne,gt)}if(fn>=Br){me=me.slice(Br-H),H=Br;break}H=fn,at=""}me=f.slice(y,y=u[_++]),Ee=Xl(u[_++],n.cm.options)}}}function Ql(e,n,u){this.line=n,this.rest=Vf(n),this.size=this.rest?_t(Ct(this.rest))-u+1:1,this.node=this.text=null,this.hidden=li(e,n)}function xo(e,n,u){for(var l=[],f,y=n;y<u;y=f){var F=new Ql(e.doc,Ot(e.doc,y),y);f=y+F.size,l.push(F)}return l}var tn=null;function Zl(e){tn?tn.ops.push(e):e.ownsGroup=tn={ops:[e],delayedCallbacks:[]}}function _l(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 Ps(e,n){var u=e.ownsGroup;if(!!u)try{_l(u)}finally{tn=null,n(u)}}var Ia=null;function or(e,n){var u=ne(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;tn?f=tn.delayedCallbacks:Ia?f=Ia:(f=Ia=[],setTimeout(zf,0));for(var y=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)y(F)}}function zf(){var e=Ia;Ia=null;for(var n=0;n<e.length;++n)e[n]()}function bo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?Gf(e,n):y=="gutter"?ka(e,n,u,l):y=="class"?Is(e,n):y=="widget"&&$f(e,n,l)}n.changes=null}function Fa(e){return e.node==e.text&&(e.node=xe("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 ql(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=Fa(n);n.background=l.insertBefore(xe("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function eu(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Cs(e,n)}function Gf(e,n){var u=n.text.className,l=eu(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,Is(e,n)):u&&(n.text.className=u)}function Is(e,n){ql(e,n),n.line.wrapClass?Fa(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 ka(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=Fa(n);n.gutterBackground=xe("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 y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var F=Fa(n),U=n.gutter=xe("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&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(xe("div",la(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var H=0;H<e.display.gutterSpecs.length;++H){var _=e.display.gutterSpecs[H].className,me=y.hasOwnProperty(_)&&y[_];me&&U.appendChild(xe("div",[me],"CodeMirror-gutter-elt","left: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function $f(e,n,u){n.alignable&&(n.alignable=null);for(var l=de("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);tu(e,n,u)}function er(e,n,u,l){var f=eu(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Is(e,n),ka(e,n,u,l),tu(e,n,l),n.node}function tu(e,n,u){if(Zt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Zt(e,n.rest[l],n,u,!1)}function Zt(e,n,u,l,f){if(!!n.widgets)for(var y=Fa(u),F=0,U=n.widgets;F<U.length;++F){var H=U[F],_=xe("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Kf(H,_,u,l),e.display.input.setUneditable(_),f&&H.above?y.insertBefore(_,u.gutter||u.text):y.appendChild(_),or(H,"redraw")}}function Kf(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 Et(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!se(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,xe("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function fi(e,n){for(var u=Rt(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 Ra(e){return e.lineSpace.offsetTop}function Fs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,xe("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 ci(e){return wt-e.display.nativeBarWidth}function Gi(e){return e.display.scroller.clientWidth-ci(e)-e.display.barWidth}function Ma(e){return e.display.scroller.clientHeight-ci(e)-e.display.barHeight}function Yf(e,n,u){var l=e.options.lineWrapping,f=l&&Gi(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var H=F[U],_=F[U+1];Math.abs(H.bottom-_.bottom)>2&&y.push((H.bottom+_.top)/2-u.top)}}y.push(u.bottom-u.top)}}function ks(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(_t(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Jf(e,n){n=Wn(n);var u=_t(n),l=e.display.externalMeasured=new Ql(e.doc,n,u);l.lineN=u;var f=l.built=Cs(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function wo(e,n,u,l){return Hn(e,Zn(e,n),u,l)}function Rs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Ji(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function Zn(e,n){var u=_t(n),l=Rs(e,u);l&&!l.text?l=null:l&&l.changes&&(bo(e,l,u,js(e)),e.curOp.forceUpdate=!0),l||(l=Jf(e,n));var f=ks(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Hn(e,n,u,l,f){n.before&&(u=-1);var y=u+(l||""),F;return n.cache.hasOwnProperty(y)?F=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Yf(e,n.view,n.rect),n.hasHeights=!0),F=ru(e,n,u,l),F.bogus||(n.cache[y]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var So={left:0,right:0,top:0,bottom:0};function Ms(e,n,u){for(var l,f,y,F,U,H,_=0;_<e.length;_+=3)if(U=e[_],H=e[_+1],n<U?(f=0,y=1,F="left"):n<H?(f=n-U,y=f+1):(_==e.length-3||n==H&&e[_+3]>n)&&(y=H-U,f=y-1,n>=H&&(F="right")),f!=null){if(l=e[_+2],U==H&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)l=e[(_-=3)+2],F="left";if(u=="right"&&f==H-U)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)l=e[(_+=3)+2],F="right";break}return{node:l,start:f,end:y,collapse:F,coverStart:U,coverEnd:H}}function Ls(e,n){var u=So;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 ru(e,n,u,l){var f=Ms(n.map,u,l),y=f.node,F=f.start,U=f.end,H=f.collapse,_;if(y.nodeType==3){for(var me=0;me<4;me++){for(;F&&Ie(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&A<9&&F==0&&U==f.coverEnd-f.coverStart?_=y.parentNode.getBoundingClientRect():_=Ls(fe(y,F,U).getClientRects(),l),_.left||_.right||F==0)break;U=F,F=F-1,H="right"}b&&A<11&&(_=nu(e.display.measure,_))}else{F>0&&(H=l="right");var Ee;e.options.lineWrapping&&(Ee=y.getClientRects()).length>1?_=Ee[l=="right"?Ee.length-1:0]:_=y.getBoundingClientRect()}if(b&&A<9&&!F&&(!_||!_.left&&!_.right)){var Ne=y.parentNode.getClientRects()[0];Ne?_={left:Ne.left,right:Ne.left+Pn(e.display),top:Ne.top,bottom:Ne.bottom}:_=So}for(var ke=_.top-n.rect.top,Ye=_.bottom-n.rect.top,tt=(ke+Ye)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(tt<at[ft]);ft++);var gt=ft?at[ft-1]:0,dt=at[ft],xt={left:(H=="right"?_.right:_.left)-n.rect.left,right:(H=="left"?_.left:_.right)-n.rect.left,top:gt,bottom:dt};return!_.left&&!_.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=ke,xt.rbottom=Ye),xt}function nu(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ui(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 Ds(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 $i(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ds(e.display.view[n])}function La(e){$i(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Da(){return D&&Q?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function iu(){return D&&Q?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Na(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Et(e.widgets[u]));return n}function Ao(e,n,u,l,f){if(!f){var y=Na(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var F=ui(n);if(l=="local"?F+=Ra(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:iu());var H=U.left+(l=="window"?0:Da());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function Ba(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Da(),f-=iu();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Eo(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Ao(e,l,wo(e,l,n.ch,f),u)}function zn(e,n,u,l,f,y){l=l||Ot(e.doc,n.line),f||(f=Zn(e,l));function F(Ye,tt){var at=Hn(e,f,Ye,tt?"right":"left",y);return tt?at.left=at.right:at.right=at.left,Ao(e,l,at,u)}var U=O(l,e.doc.direction),H=n.ch,_=n.sticky;if(H>=l.text.length?(H=l.text.length,_="before"):H<=0&&(H=0,_="after"),!U)return F(_=="before"?H-1:H,_=="before");function me(Ye,tt,at){var ft=U[tt],gt=ft.level==1;return F(at?Ye-1:Ye,gt!=at)}var Ee=Y(U,H,_),Ne=Me,ke=me(H,Ee,_=="before");return Ne!=null&&(ke.other=me(H,Ne,_!="before")),ke}function au(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=Pn(e.display)*n.ch);var l=Ot(e.doc,n.line),f=ui(l)+Ra(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Ns(e,n,u,l,f){var y=it(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function Bs(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Ns(l.first,0,null,-1,-1);var f=Vn(l,u),y=l.first+l.size-1;if(f>y)return Ns(l.first+l.size-1,Ot(l,y).text.length,null,1,1);n<0&&(n=0);for(var F=Ot(l,f);;){var U=Xf(e,F,f,n,u),H=jf(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var _=H.find(1);if(_.line==f)return _;F=Ot(l,f=_.line)}}function ou(e,n,u,l){l-=Na(n);var f=n.text.length,y=Ke(function(F){return Hn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Hn(e,u,F).top>l},y,f),{begin:y,end:f}}function su(e,n,u,l){u||(u=Zn(e,n));var f=Ao(e,n,Hn(e,u,l),"line").top;return ou(e,n,u,f)}function Us(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Xf(e,n,u,l,f){f-=ui(n);var y=Zn(e,n),F=Na(n),U=0,H=n.text.length,_=!0,me=O(n,e.doc.direction);if(me){var Ee=(e.options.lineWrapping?Zf:Qf)(e,n,u,y,me,l,f);_=Ee.level!=1,U=_?Ee.from:Ee.to-1,H=_?Ee.to:Ee.from-1}var Ne=null,ke=null,Ye=Ke(function(It){var Pt=Hn(e,y,It);return Pt.top+=F,Pt.bottom+=F,Us(Pt,l,f,!1)?(Pt.top<=f&&Pt.left<=l&&(Ne=It,ke=Pt),!0):!1},U,H),tt,at,ft=!1;if(ke){var gt=l-ke.left<ke.right-l,dt=gt==_;Ye=Ne+(dt?0:1),at=dt?"after":"before",tt=gt?ke.left:ke.right}else{!_&&(Ye==H||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":Hn(e,y,Ye-(_?1:0)).bottom+F<=f==_?"after":"before";var xt=zn(e,it(u,Ye,at),"line",n,y);tt=xt.left,ft=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=$e(n.text,Ye,1),Ns(u,Ye,at,ft,l-tt)}function Qf(e,n,u,l,f,y,F){var U=Ke(function(Ee){var Ne=f[Ee],ke=Ne.level!=1;return Us(zn(e,it(u,ke?Ne.to:Ne.from,ke?"before":"after"),"line",n,l),y,F,!0)},0,f.length-1),H=f[U];if(U>0){var _=H.level!=1,me=zn(e,it(u,_?H.from:H.to,_?"after":"before"),"line",n,l);Us(me,y,F,!0)&&me.top>F&&(H=f[U-1])}return H}function Zf(e,n,u,l,f,y,F){var U=ou(e,n,l,F),H=U.begin,_=U.end;/\s/.test(n.text.charAt(_-1))&&_--;for(var me=null,Ee=null,Ne=0;Ne<f.length;Ne++){var ke=f[Ne];if(!(ke.from>=_||ke.to<=H)){var Ye=ke.level!=1,tt=Hn(e,l,Ye?Math.min(_,ke.to)-1:Math.max(H,ke.from)).right,at=tt<y?y-tt+1e9:tt-y;(!me||Ee>at)&&(me=ke,Ee=at)}}return me||(me=f[f.length-1]),me.from<H&&(me={from:H,to:me.to,level:me.level}),me.to>_&&(me={from:me.from,to:_,level:me.level}),me}var Ki;function ua(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ki==null){Ki=xe("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Ki.appendChild(document.createTextNode("x")),Ki.appendChild(xe("br"));Ki.appendChild(document.createTextNode("x"))}ye(e.measure,Ki);var u=Ki.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function Pn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=xe("span","xxxxxxxxxx"),u=xe("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,y=n.gutters.firstChild,F=0;y;y=y.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=y.offsetLeft+y.clientLeft+f,l[U]=y.clientWidth}return{fixedPos:In(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function In(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lu(e){var n=ua(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Pn(e.display)-3);return function(f){if(li(e.doc,f))return 0;var y=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(y+=f.widgets[F].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function Vs(e){var n=e.doc,u=lu(e);n.iter(function(l){var f=u(l);f!=l.height&&wn(l,f)})}function Yi(e,n,u,l){var f=e.display;if(!u&&Rt(n).getAttribute("cm-not-content")=="true")return null;var y,F,U=f.lineSpace.getBoundingClientRect();try{y=n.clientX-U.left,F=n.clientY-U.top}catch(Ee){return null}var H=Bs(e,y,F),_;if(l&&H.xRel>0&&(_=Ot(e.doc,H.line).text).length==H.ch){var me=Je(_,_.length,e.options.tabSize)-_.length;H=it(H.line,Math.max(0,Math.round((y-ln(e.display).left)/Pn(e.display))-me))}return H}function Ji(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 Fr(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&&Pa(e.doc,n)<f.viewTo&&Ti(e);else if(u<=f.viewFrom)Ci&&ws(e.doc,u+l)>f.viewFrom?Ti(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Ti(e);else if(n<=f.viewFrom){var y=Co(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):Ti(e)}else if(u>=f.viewTo){var F=Co(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Ti(e)}else{var U=Co(e,n,n,-1),H=Co(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(xo(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ti(e)}var _=f.externalMeasured;_&&(u<_.lineN?_.lineN+=l:n<_.lineN+_.size&&(f.externalMeasured=null))}function _n(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 y=l.view[Ji(e,n)];if(y.node!=null){var F=y.changes||(y.changes=[]);ht(F,u)==-1&&F.push(u)}}}function Ti(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Co(e,n,u,l){var f=Ji(e,n),y,F=e.display.view;if(!Ci||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=F[H].size;if(U!=n){if(l>0){if(f==F.length-1)return null;y=U+F[f].size-n,f++}else y=U-n;n+=y,u+=y}for(;Pa(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 _f(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=xo(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=xo(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Ji(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(xo(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ji(e,u)))),l.viewTo=u}function Oo(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 Pi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function To(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=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 H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var _=H.empty();if(F){var me=F(e,H);me&&Ws(e,me,f)}else(_||e.options.showCursorWhenSelecting)&&Ws(e,H.head,f);_||uu(e,H,y)}}return l}function Ws(e,n,u){var l=zn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(xe("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 y=Eo(e,n,"div",null,null),F=y.right-y.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(xe("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 Po(e,n){return e.top-n.top||e.left-n.left}function uu(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),F=ln(e.display),U=F.left,H=Math.max(l.sizerWidth,Gi(e)-l.sizer.offsetLeft)-F.right,_=f.direction=="ltr";function me(dt,xt,It,Pt){xt<0&&(xt=0),xt=Math.round(xt),Pt=Math.round(Pt),y.appendChild(xe("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
23
- top: `+xt+"px; width: "+(It==null?H-dt:It)+`px;
24
- height: `+(Pt-xt)+"px"))}function Ee(dt,xt,It){var Pt=Ot(f,dt),Wt=Pt.text.length,Ut,ir;function ct(Tr,cn){return Eo(e,it(dt,Tr),"div",Pt,cn)}function Br(Tr,cn,Ur){var Rr=su(e,Pt,null,Tr),Pr=cn=="ltr"==(Ur=="after")?"left":"right",gr=Ur=="after"?Rr.begin:Rr.end-(/\s/.test(Pt.text.charAt(Rr.end-1))?2:1);return ct(gr,Pr)[Pr]}var fn=O(Pt,f.direction);return P(fn,xt||0,It==null?Wt:It,function(Tr,cn,Ur,Rr){var Pr=Ur=="ltr",gr=ct(Tr,Pr?"left":"right"),Gr=ct(cn-1,Pr?"right":"left"),ia=xt==null&&Tr==0,gi=It==null&&cn==Wt,$r=Rr==0,ri=!fn||Rr==fn.length-1;if(Gr.top-gr.top<=3){var jr=(_?ia:gi)&&$r,ns=(_?gi:ia)&&ri,yi=jr?U:(Pr?gr:Gr).left,$n=ns?H:(Pr?Gr:gr).right;me(yi,gr.top,$n-yi,gr.bottom)}else{var Mr,dn,ni,ml;Pr?(Mr=_&&ia&&$r?U:gr.left,dn=_?H:Br(Tr,Ur,"before"),ni=_?U:Br(cn,Ur,"after"),ml=_&&gi&&ri?H:Gr.right):(Mr=_?Br(Tr,Ur,"before"):U,dn=!_&&ia&&$r?H:gr.right,ni=!_&&gi&&ri?U:Gr.left,ml=_?Br(cn,Ur,"after"):H),me(Mr,gr.top,dn-Mr,gr.bottom),gr.bottom<Gr.top&&me(U,gr.bottom,null,Gr.top),me(ni,Gr.top,ml-ni,Gr.bottom)}(!Ut||Po(gr,Ut)<0)&&(Ut=gr),Po(Gr,Ut)<0&&(Ut=Gr),(!ir||Po(gr,ir)<0)&&(ir=gr),Po(Gr,ir)<0&&(ir=Gr)}),{start:Ut,end:ir}}var Ne=n.from(),ke=n.to();if(Ne.line==ke.line)Ee(Ne.line,Ne.ch,ke.ch);else{var Ye=Ot(f,Ne.line),tt=Ot(f,ke.line),at=Wn(Ye)==Wn(tt),ft=Ee(Ne.line,Ne.ch,at?Ye.text.length+1:null).end,gt=Ee(ke.line,at?0:null,ke.ch).start;at&&(ft.top<gt.top-2?(me(ft.right,ft.top,null,ft.bottom),me(U,gt.top,gt.left,gt.bottom)):me(ft.right,ft.top,gt.left-ft.right,ft.bottom)),ft.bottom<gt.top&&me(U,ft.bottom,null,gt.top)}u.appendChild(y)}function Hs(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()||fa(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function zs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Io(e))}function Ua(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&fa(e))},100)}function Io(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ae(e,"focus",e,n),e.state.focused=!0,De(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()),Hs(e))}function fa(e,n){e.state.delayingBlurEvent||(e.state.focused&&(ae(e,"blur",e,n),e.state.focused=!1,re(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Fo(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,y=0,F=0;F<n.view.length;F++){var U=n.view[F],H=e.options.lineWrapping,_=void 0,me=0;if(!U.hidden){if(f+=U.line.height,b&&A<8){var Ee=U.node.offsetTop+U.node.offsetHeight;_=Ee-u,u=Ee}else{var Ne=U.node.getBoundingClientRect();_=Ne.bottom-Ne.top,!H&&U.text.firstChild&&(me=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var ke=U.line.height-_;if((ke>.005||ke<-.005)&&(f<l&&(y-=ke),wn(U.line,_),Gs(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Gs(U.rest[Ye]);if(me>e.display.sizerWidth){var tt=Math.ceil(me/Pn(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(n.scroller.scrollTop+=y)}function Gs(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 ja(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ra(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,y=Vn(n,l),F=Vn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<y?(y=U,F=Vn(n,ui(Ot(n,U))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=F&&(y=Vn(n,ui(Ot(n,H))-e.wrapper.clientHeight),F=H)}return{from:y,to:Math.max(F,y+1)}}function qf(e,n){if(!Oe(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&&!W){var y=xe("div","\u200B",null,`position: absolute;
21
+ `,n);f==-1&&(f=e.length);var y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=y.indexOf("\r");F!=-1?(u.push(y.slice(0,F)),n+=F+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},sn=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},Un=function(){var e=xe("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Hr=null;function Ni(e){if(Hr!=null)return Hr;var n=ye(e,xe("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return Hr=Math.abs(u.left-l.left)>1}var wi={},Yr={};function xn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),wi[e]=n}function Tn(e,n){Yr[e]=n}function Xn(e){if(typeof e=="string"&&Yr.hasOwnProperty(e))e=Yr[e];else if(e&&typeof e.name=="string"&&Yr.hasOwnProperty(e.name)){var n=Yr[e.name];typeof n=="string"&&(n={name:n}),e=Tt(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function bn(e,n){n=Xn(n);var u=wi[n.name];if(!u)return bn(e,"text/plain");var l=u(e,n);if(Pn.hasOwnProperty(n.name)){var f=Pn[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}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 Pn={};function jn(e,n){var u=Pn.hasOwnProperty(e)?Pn[e]:Pn[e]={};Qe(n,u)}function Jr(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 ln(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 Vn(e,n,u){return e.startState?e.startState(n,u):!0}var xr=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};xr.prototype.eol=function(){return this.pos>=this.string.length},xr.prototype.sol=function(){return this.pos==this.lineStart},xr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},xr.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},xr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},xr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},xr.prototype.skipToEnd=function(){this.pos=this.string.length},xr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},xr.prototype.backUp=function(e){this.pos-=e},xr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Je(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},xr.prototype.indentation=function(){return Je(this.string,null,this.tabSize)-(this.lineStart?Je(this.string,this.lineStart,this.tabSize):0)},xr.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 y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},xr.prototype.current=function(){return this.string.slice(this.start,this.pos)},xr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},xr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},xr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(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],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function ai(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var F=y.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Si(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function wn(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function _t(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 Wn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],H=U.height;if(n<H)break;n-=H}return u+F}function Qn(e,n){return n>=e.first&&n<e.first+e.size}function oa(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function it(e,n,u){if(u===void 0&&(u=null),!(this instanceof it))return new it(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Bt(e,n){return e.line-n.line||e.ch-n.ch}function oi(e,n){return e.sticky==n.sticky&&Bt(e,n)==0}function ue(e){return it(e.line,e.ch)}function Ce(e,n){return Bt(e,n)<0?n:e}function _e(e,n){return Bt(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 it(e.first,0);var u=e.first+e.size-1;return n.line>u?it(u,Ot(e,u).text.length):Yt(n,Ot(e,n.line).text.length)}function Yt(e,n){var u=e.ch;return u==null||u>n?it(e.line,n):u<0?it(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 Cr=function(e,n){this.state=e,this.lookAhead=n},Or=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Or.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Or.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}},Or.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Or.fromSaved=function(e,n,u){return n instanceof Cr?new Or(e,Jr(e.mode,n.state),u,n.lookAhead):new Or(e,Jr(e.mode,n),u)},Or.prototype.save=function(e){var n=e!==!1?Jr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Cr(n,this.maxLookAhead):n};function qt(e,n,u,l){var f=[e.state.modeGen],y={};zl(e,n.text,e.doc.mode,u,function(_,me){return f.push(_,me)},y,l);for(var F=u.state,U=function(_){u.baseTokens=f;var me=e.state.overlays[_],Ee=1,Ne=0;u.state=!0,zl(e,n.text,me.mode,u,function(ke,Ye){for(var et=Ee;Ne<ke;){var at=f[Ee];at>ke&&f.splice(Ee,1,ke,f[Ee+1],at),Ee+=2,Ne=Math.min(ke,at)}if(!!Ye)if(me.opaque)f.splice(et,Ee-et,ke,"overlay "+Ye),Ee=et+2;else for(;et<Ee;et+=2){var ft=f[et+1];f[et+1]=(ft?ft+" ":"")+"overlay "+Ye}},y),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function Wl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=qr(e,_t(n)),f=n.text.length>e.options.maxHighlightLength&&Jr(e.doc.mode,l.state),y=qt(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.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 qr(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Or(l,!0,n);var y=Mf(e,n,u),F=y>l.first&&Ot(l,y-1).stateAfter,U=F?Or.fromSaved(l,F,y):new Or(l,Vn(l.mode),y);return l.iter(y,n,function(H){ps(e,H.text,U);var _=U.line;H.stateAfter=_==n-1||_%5==0||_>=f.viewFrom&&_<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ps(e,n,u,l){var f=e.doc.mode,y=new xr(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&go(f,u.state);!y.eol();)hs(f,y,u.state),y.start=y.pos}function go(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=ln(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function hs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=ln(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var vs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function gs(e,n,u,l){var f=e.doc,y=f.mode,F;n=st(f,n);var U=Ot(f,n.line),H=qr(e,n.line,u),_=new xr(U.text,e.options.tabSize,H),me;for(l&&(me=[]);(l||_.pos<n.ch)&&!_.eol();)_.start=_.pos,F=hs(y,_,H.state),l&&me.push(new vs(_,F,Jr(f.mode,H.state)));return l?me:new vs(_,F,H.state)}function Hl(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 zl(e,n,u,l,f,y,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,_=null,me=new xr(n,e.options.tabSize,l),Ee,Ne=e.options.addModeClass&&[null];for(n==""&&Hl(go(u,l.state),y);!me.eol();){if(me.pos>e.options.maxHighlightLength?(U=!1,F&&ps(e,n,l,me.pos),me.pos=n.length,Ee=null):Ee=Hl(hs(u,me,l.state,Ne),y),Ne){var ke=Ne[0].name;ke&&(Ee="m-"+(Ee?ke+" "+Ee:ke))}if(!U||_!=Ee){for(;H<me.start;)H=Math.min(me.start,H+5e3),f(H,_);_=Ee}me.start=me.pos}for(;H<me.pos;){var Ye=Math.min(me.pos,H+5e3);f(Ye,_),H=Ye}}function Mf(e,n,u){for(var l,f,y=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=y.first)return y.first;var H=Ot(y,U-1),_=H.stateAfter;if(_&&(!u||U+(_ instanceof Cr?_.lookAhead:0)<=y.modeFrontier))return U;var me=Je(H.text,null,e.options.tabSize);(f==null||l>me)&&(f=U-1,l=me)}return f}function Lf(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=Ot(e,l).stateAfter;if(f&&(!(f instanceof Cr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Df=!1,Ai=!1;function Nf(){Df=!0}function Bf(){Ai=!0}function yo(e,n,u){this.marker=e,this.from=n,this.to=u}function Oa(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function Uf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Pd(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 Id(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);if(U||y.from==n&&F.type=="bookmark"&&(!u||!y.marker.insertLeft)){var H=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new yo(F,y.from,H?null:y.to))}}return l}function Fd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);if(U||y.from==n&&F.type=="bookmark"&&(!u||y.marker.insertLeft)){var H=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new yo(F,H?null:y.from-n,y.to==null?null:y.to-n))}}return l}function Gl(e,n){if(n.full)return null;var u=Qn(e,n.from.line)&&Ot(e,n.from.line).markedSpans,l=Qn(e,n.to.line)&&Ot(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,F=Bt(n.from,n.to)==0,U=Id(u,f,F),H=Fd(l,y,F),_=n.text.length==1,me=Ct(n.text).length+(_?f:0);if(U)for(var Ee=0;Ee<U.length;++Ee){var Ne=U[Ee];if(Ne.to==null){var ke=Oa(H,Ne.marker);ke?_&&(Ne.to=ke.to==null?null:ke.to+me):Ne.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var et=H[Ye];if(et.to!=null&&(et.to+=me),et.from==null){var at=Oa(U,et.marker);at||(et.from=me,_&&(U||(U=[])).push(et))}else et.from+=me,_&&(U||(U=[])).push(et)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ft=[U];if(!_){var gt=n.text.length-2,ct;if(gt>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(ct||(ct=[])).push(new yo(U[xt].marker,null,null));for(var Ft=0;Ft<gt;++Ft)ft.push(ct);ft.push(H)}return ft}function $l(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 Kl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var et=ke.markedSpans[Ye].marker;et.readOnly&&(!l||pt(l,et)==-1)&&(l||(l=[])).push(et)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var F=l[y],U=F.find(0),H=0;H<f.length;++H){var _=f[H];if(!(Bt(_.to,U.from)<0||Bt(_.from,U.to)>0)){var me=[H,1],Ee=Bt(_.from,U.from),Ne=Bt(_.to,U.to);(Ee<0||!F.inclusiveLeft&&!Ee)&&me.push({from:_.from,to:U.from}),(Ne>0||!F.inclusiveRight&&!Ne)&&me.push({from:U.to,to:_.to}),f.splice.apply(f,me),H+=me.length-3}}return f}function Yl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function jf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function ys(e){return e.inclusiveLeft?-1:0}function ms(e){return e.inclusiveRight?1:0}function Jl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Bt(l.from,f.from)||ys(e)-ys(n);if(y)return-y;var F=Bt(l.to,f.to)||ms(e)-ms(n);return F||n.id-e.id}function Ta(e,n){var u=Ai&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function xs(e){return Ta(e,!0)}function Bi(e){return Ta(e,!1)}function Vf(e,n){var u=Ai&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||Jl(l,y.marker)<0)&&(l=y.marker)}return l}function mo(e,n,u,l,f){var y=Ot(e,n),F=Ai&&y.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var _=H.marker.find(0),me=Bt(_.from,u)||ys(H.marker)-ys(f),Ee=Bt(_.to,l)||ms(H.marker)-ms(f);if(!(me>=0&&Ee<=0||me<=0&&Ee>=0)&&(me<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Bt(_.to,u)>=0:Bt(_.to,u)>0)||me>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Bt(_.from,l)<=0:Bt(_.from,l)<0)))return!0}}}function Hn(e){for(var n;n=xs(e);)e=n.find(-1,!0).line;return e}function Xl(e){for(var n;n=Bi(e);)e=n.find(1,!0).line;return e}function Wf(e){for(var n,u;n=Bi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Pa(e,n){var u=Ot(e,n),l=Hn(u);return u==l?n:_t(l)}function bs(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!si(e,u))return n;for(;l=Bi(u);)u=l.find(1,!0).line;return _t(u)+1}function si(e,n){var u=Ai&&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&&cr(e,n,l))return!0}}}function cr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return cr(e,l.line,Oa(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,n,f))return!0}function li(e){e=Hn(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 y=u.parent;y;u=y,y=u.parent)for(var F=0;F<y.children.length;++F){var U=y.children[F];if(U==u)break;n+=U.height}return n}function Ui(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=xs(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Bi(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function ws(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=Ui(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Ui(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var ji=function(e,n,u){this.text=e,jf(this,n),this.height=u?u(this):1};ji.prototype.lineNo=function(){return _t(this)},Le(ji);function Ei(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yl(e),jf(e,u);var f=l?l(e):1;f!=e.height&&wn(e,f)}function Vi(e){e.parent=null,Yl(e)}var Ss={},As={};function Ql(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?As:Ss;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Es(e,n){var u=pe("span",null,null,g?"padding-right: .1px":null),l={pre:pe("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 y=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Os,Jn(e.display.measure)&&(F=O(y,e.doc.direction))&&(l.addToken=Hf(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&_t(y);zf(y,l,Wl(e,y,U)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Re(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Re(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(bi(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 H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function Cs(e){var n=xe("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Os(e,n,u,l,f,y,F){if(!!n){var U=e.splitSpaces?Wi(n,e.trailingSpace):n,H=e.cm.state.specialChars,_=!1,me;if(!H.test(n))e.col+=n.length,me=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,me),b&&S<9&&(_=!0),e.pos+=n.length;else{me=document.createDocumentFragment();for(var Ee=0;;){H.lastIndex=Ee;var Ne=H.exec(n),ke=Ne?Ne.index-Ee:n.length-Ee;if(ke){var Ye=document.createTextNode(U.slice(Ee,Ee+ke));b&&S<9?me.appendChild(xe("span",[Ye])):me.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!Ne)break;Ee+=ke+1;var et=void 0;if(Ne[0]==" "){var at=e.cm.options.tabSize,ft=at-e.col%at;et=me.appendChild(xe("span",kt(ft),"cm-tab")),et.setAttribute("role","presentation"),et.setAttribute("cm-text"," "),e.col+=ft}else Ne[0]=="\r"||Ne[0]==`
22
+ `?(et=me.appendChild(xe("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),et.setAttribute("cm-text",Ne[0]),e.col+=1):(et=e.cm.options.specialCharPlaceholder(Ne[0]),et.setAttribute("cm-text",Ne[0]),b&&S<9?me.appendChild(xe("span",[et])):me.appendChild(et),e.col+=1);e.map.push(e.pos,e.pos+1,et),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||_||y||F){var gt=u||"";l&&(gt+=l),f&&(gt+=f);var ct=xe("span",[me],gt,y);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 Wi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function Hf(e,n){return function(u,l,f,y,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var _=u.pos,me=_+l.length;;){for(var Ee=void 0,Ne=0;Ne<n.length&&(Ee=n[Ne],!(Ee.to>_&&Ee.from<=_));Ne++);if(Ee.to>=me)return e(u,l,f,y,F,U,H);e(u,l.slice(0,Ee.to-_),f,y,null,U,H),y=null,l=l.slice(Ee.to-_),_=Ee.to}}}function ar(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 zf(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(y,y=u[F]),Ql(u[F+1],n.cm.options));return}for(var U=f.length,H=0,_=1,me="",Ee,Ne,ke=0,Ye,et,at,ft,gt;;){if(ke==H){Ye=et=at=Ne="",gt=null,ft=null,ke=1/0;for(var ct=[],xt=void 0,Ft=0;Ft<l.length;++Ft){var Pt=l[Ft],It=Pt.marker;if(It.type=="bookmark"&&Pt.from==H&&It.widgetNode)ct.push(It);else if(Pt.from<=H&&(Pt.to==null||Pt.to>H||It.collapsed&&Pt.to==H&&Pt.from==H)){if(Pt.to!=null&&Pt.to!=H&&ke>Pt.to&&(ke=Pt.to,et=""),It.className&&(Ye+=" "+It.className),It.css&&(Ne=(Ne?Ne+";":"")+It.css),It.startStyle&&Pt.from==H&&(at+=" "+It.startStyle),It.endStyle&&Pt.to==ke&&(xt||(xt=[])).push(It.endStyle,Pt.to),It.title&&((gt||(gt={})).title=It.title),It.attributes)for(var $t in It.attributes)(gt||(gt={}))[$t]=It.attributes[$t];It.collapsed&&(!ft||Jl(ft.marker,It)<0)&&(ft=Pt)}else Pt.from>H&&ke>Pt.from&&(ke=Pt.from)}if(xt)for(var vt=0;vt<xt.length;vt+=2)xt[vt+1]==ke&&(et+=" "+xt[vt]);if(!ft||ft.from==H)for(var ir=0;ir<ct.length;++ir)ar(n,0,ct[ir]);if(ft&&(ft.from||0)==H){if(ar(n,(ft.to==null?U+1:ft.to)-H,ft.marker,ft.from==null),ft.to==null)return;ft.to==H&&(ft=!1)}}if(H>=U)break;for(var gn=Math.min(U,ke);;){if(me){var cn=H+me.length;if(!ft){var Pr=cn>gn?me.slice(0,gn-H):me;n.addToken(n,Pr,Ee?Ee+Ye:Ye,at,H+Pr.length==ke?et:"",Ne,gt)}if(cn>=gn){me=me.slice(gn-H),H=gn;break}H=cn,at=""}me=f.slice(y,y=u[_++]),Ee=Ql(u[_++],n.cm.options)}}}function Zl(e,n,u){this.line=n,this.rest=Wf(n),this.size=this.rest?_t(Ct(this.rest))-u+1:1,this.node=this.text=null,this.hidden=si(e,n)}function xo(e,n,u){for(var l=[],f,y=n;y<u;y=f){var F=new Zl(e.doc,Ot(e.doc,y),y);f=y+F.size,l.push(F)}return l}var en=null;function _l(e){en?en.ops.push(e):e.ownsGroup=en={ops:[e],delayedCallbacks:[]}}function ql(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 Ts(e,n){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{en=null,n(u)}}var Ia=null;function or(e,n){var u=re(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;en?f=en.delayedCallbacks:Ia?f=Ia:(f=Ia=[],setTimeout(Gf,0));for(var y=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)y(F)}}function Gf(){var e=Ia;Ia=null;for(var n=0;n<e.length;++n)e[n]()}function bo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?$f(e,n):y=="gutter"?ka(e,n,u,l):y=="class"?Ps(e,n):y=="widget"&&Kf(e,n,l)}n.changes=null}function Fa(e){return e.node==e.text&&(e.node=xe("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function eu(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=Fa(n);n.background=l.insertBefore(xe("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function tu(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Es(e,n)}function $f(e,n){var u=n.text.className,l=tu(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,Ps(e,n)):u&&(n.text.className=u)}function Ps(e,n){eu(e,n),n.line.wrapClass?Fa(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 ka(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=Fa(n);n.gutterBackground=xe("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 y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var F=Fa(n),U=n.gutter=xe("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&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(xe("div",oa(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var H=0;H<e.display.gutterSpecs.length;++H){var _=e.display.gutterSpecs[H].className,me=y.hasOwnProperty(_)&&y[_];me&&U.appendChild(xe("div",[me],"CodeMirror-gutter-elt","left: "+l.gutterLeft[_]+"px; width: "+l.gutterWidth[_]+"px"))}}}function Kf(e,n,u){n.alignable&&(n.alignable=null);for(var l=de("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);ru(e,n,u)}function er(e,n,u,l){var f=tu(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Ps(e,n),ka(e,n,u,l),ru(e,n,l),n.node}function ru(e,n,u){if(Zt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Zt(e,n.rest[l],n,u,!1)}function Zt(e,n,u,l,f){if(!!n.widgets)for(var y=Fa(u),F=0,U=n.widgets;F<U.length;++F){var H=U[F],_=xe("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Yf(H,_,u,l),e.display.input.setUneditable(_),f&&H.above?y.insertBefore(_,u.gutter||u.text):y.appendChild(_),or(H,"redraw")}}function Yf(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 Et(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!se(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,xe("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,n){for(var u=Mt(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 Ra(e){return e.lineSpace.offsetTop}function Is(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function un(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=ye(e.measure,xe("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 fi(e){return wt-e.display.nativeBarWidth}function Hi(e){return e.display.scroller.clientWidth-fi(e)-e.display.barWidth}function Ma(e){return e.display.scroller.clientHeight-fi(e)-e.display.barHeight}function Jf(e,n,u){var l=e.options.lineWrapping,f=l&&Hi(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var H=F[U],_=F[U+1];Math.abs(H.bottom-_.bottom)>2&&y.push((H.bottom+_.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Fs(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(_t(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Xf(e,n){n=Hn(n);var u=_t(n),l=e.display.externalMeasured=new Zl(e.doc,n,u);l.lineN=u;var f=l.built=Es(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function wo(e,n,u,l){return zn(e,Zn(e,n),u,l)}function ks(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Ki(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function Zn(e,n){var u=_t(n),l=ks(e,u);l&&!l.text?l=null:l&&l.changes&&(bo(e,l,u,Us(e)),e.curOp.forceUpdate=!0),l||(l=Xf(e,n));var f=Fs(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 y=u+(l||""),F;return n.cache.hasOwnProperty(y)?F=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Jf(e,n.view,n.rect),n.hasHeights=!0),F=nu(e,n,u,l),F.bogus||(n.cache[y]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var So={left:0,right:0,top:0,bottom:0};function Rs(e,n,u){for(var l,f,y,F,U,H,_=0;_<e.length;_+=3)if(U=e[_],H=e[_+1],n<U?(f=0,y=1,F="left"):n<H?(f=n-U,y=f+1):(_==e.length-3||n==H&&e[_+3]>n)&&(y=H-U,f=y-1,n>=H&&(F="right")),f!=null){if(l=e[_+2],U==H&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)l=e[(_-=3)+2],F="left";if(u=="right"&&f==H-U)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)l=e[(_+=3)+2],F="right";break}return{node:l,start:f,end:y,collapse:F,coverStart:U,coverEnd:H}}function Ms(e,n){var u=So;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 nu(e,n,u,l){var f=Rs(n.map,u,l),y=f.node,F=f.start,U=f.end,H=f.collapse,_;if(y.nodeType==3){for(var me=0;me<4;me++){for(;F&&Ie(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?_=y.parentNode.getBoundingClientRect():_=Ms(fe(y,F,U).getClientRects(),l),_.left||_.right||F==0)break;U=F,F=F-1,H="right"}b&&S<11&&(_=iu(e.display.measure,_))}else{F>0&&(H=l="right");var Ee;e.options.lineWrapping&&(Ee=y.getClientRects()).length>1?_=Ee[l=="right"?Ee.length-1:0]:_=y.getBoundingClientRect()}if(b&&S<9&&!F&&(!_||!_.left&&!_.right)){var Ne=y.parentNode.getClientRects()[0];Ne?_={left:Ne.left,right:Ne.left+In(e.display),top:Ne.top,bottom:Ne.bottom}:_=So}for(var ke=_.top-n.rect.top,Ye=_.bottom-n.rect.top,et=(ke+Ye)/2,at=n.view.measure.heights,ft=0;ft<at.length-1&&!(et<at[ft]);ft++);var gt=ft?at[ft-1]:0,ct=at[ft],xt={left:(H=="right"?_.right:_.left)-n.rect.left,right:(H=="left"?_.left:_.right)-n.rect.left,top:gt,bottom:ct};return!_.left&&!_.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=ke,xt.rbottom=Ye),xt}function iu(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ni(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 zi(e){e.display.externalMeasure=null,ae(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ls(e.display.view[n])}function La(e){zi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Da(){return D&&Q?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&Q?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Na(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Et(e.widgets[u]));return n}function Ao(e,n,u,l,f){if(!f){var y=Na(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var F=li(n);if(l=="local"?F+=Ra(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Da());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function Ba(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Da(),f-=au();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Eo(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Ao(e,l,wo(e,l,n.ch,f),u)}function Gn(e,n,u,l,f,y){l=l||Ot(e.doc,n.line),f||(f=Zn(e,l));function F(Ye,et){var at=zn(e,f,Ye,et?"right":"left",y);return et?at.left=at.right:at.right=at.left,Ao(e,l,at,u)}var U=O(l,e.doc.direction),H=n.ch,_=n.sticky;if(H>=l.text.length?(H=l.text.length,_="before"):H<=0&&(H=0,_="after"),!U)return F(_=="before"?H-1:H,_=="before");function me(Ye,et,at){var ft=U[et],gt=ft.level==1;return F(at?Ye-1:Ye,gt!=at)}var Ee=Y(U,H,_),Ne=Me,ke=me(H,Ee,_=="before");return Ne!=null&&(ke.other=me(H,Ne,_!="before")),ke}function ou(e,n){var u=0;n=st(e.doc,n),e.options.lineWrapping||(u=In(e.display)*n.ch);var l=Ot(e.doc,n.line),f=li(l)+Ra(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Ds(e,n,u,l,f){var y=it(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function Ns(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Ds(l.first,0,null,-1,-1);var f=Wn(l,u),y=l.first+l.size-1;if(f>y)return Ds(l.first+l.size-1,Ot(l,y).text.length,null,1,1);n<0&&(n=0);for(var F=Ot(l,f);;){var U=Qf(e,F,f,n,u),H=Vf(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var _=H.find(1);if(_.line==f)return _;F=Ot(l,f=_.line)}}function su(e,n,u,l){l-=Na(n);var f=n.text.length,y=Ke(function(F){return zn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return zn(e,u,F).top>l},y,f),{begin:y,end:f}}function lu(e,n,u,l){u||(u=Zn(e,n));var f=Ao(e,n,zn(e,u,l),"line").top;return su(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 Qf(e,n,u,l,f){f-=li(n);var y=Zn(e,n),F=Na(n),U=0,H=n.text.length,_=!0,me=O(n,e.doc.direction);if(me){var Ee=(e.options.lineWrapping?_f:Zf)(e,n,u,y,me,l,f);_=Ee.level!=1,U=_?Ee.from:Ee.to-1,H=_?Ee.to:Ee.from-1}var Ne=null,ke=null,Ye=Ke(function(Ft){var Pt=zn(e,y,Ft);return Pt.top+=F,Pt.bottom+=F,Bs(Pt,l,f,!1)?(Pt.top<=f&&Pt.left<=l&&(Ne=Ft,ke=Pt),!0):!1},U,H),et,at,ft=!1;if(ke){var gt=l-ke.left<ke.right-l,ct=gt==_;Ye=Ne+(ct?0:1),at=ct?"after":"before",et=gt?ke.left:ke.right}else{!_&&(Ye==H||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":zn(e,y,Ye-(_?1:0)).bottom+F<=f==_?"after":"before";var xt=Gn(e,it(u,Ye,at),"line",n,y);et=xt.left,ft=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=Ge(n.text,Ye,1),Ds(u,Ye,at,ft,l-et)}function Zf(e,n,u,l,f,y,F){var U=Ke(function(Ee){var Ne=f[Ee],ke=Ne.level!=1;return Bs(Gn(e,it(u,ke?Ne.to:Ne.from,ke?"before":"after"),"line",n,l),y,F,!0)},0,f.length-1),H=f[U];if(U>0){var _=H.level!=1,me=Gn(e,it(u,_?H.from:H.to,_?"after":"before"),"line",n,l);Bs(me,y,F,!0)&&me.top>F&&(H=f[U-1])}return H}function _f(e,n,u,l,f,y,F){var U=su(e,n,l,F),H=U.begin,_=U.end;/\s/.test(n.text.charAt(_-1))&&_--;for(var me=null,Ee=null,Ne=0;Ne<f.length;Ne++){var ke=f[Ne];if(!(ke.from>=_||ke.to<=H)){var Ye=ke.level!=1,et=zn(e,l,Ye?Math.min(_,ke.to)-1:Math.max(H,ke.from)).right,at=et<y?y-et+1e9:et-y;(!me||Ee>at)&&(me=ke,Ee=at)}}return me||(me=f[f.length-1]),me.from<H&&(me={from:H,to:me.to,level:me.level}),me.to>_&&(me={from:me.from,to:_,level:me.level}),me}var Gi;function sa(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Gi==null){Gi=xe("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Gi.appendChild(document.createTextNode("x")),Gi.appendChild(xe("br"));Gi.appendChild(document.createTextNode("x"))}ye(e.measure,Gi);var u=Gi.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ae(e.measure),u||1}function In(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=xe("span","xxxxxxxxxx"),u=xe("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,y=n.gutters.firstChild,F=0;y;y=y.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=y.offsetLeft+y.clientLeft+f,l[U]=y.clientWidth}return{fixedPos:Fn(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Fn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function uu(e){var n=sa(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/In(e.display)-3);return function(f){if(si(e.doc,f))return 0;var y=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(y+=f.widgets[F].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function js(e){var n=e.doc,u=uu(e);n.iter(function(l){var f=u(l);f!=l.height&&wn(l,f)})}function $i(e,n,u,l){var f=e.display;if(!u&&Mt(n).getAttribute("cm-not-content")=="true")return null;var y,F,U=f.lineSpace.getBoundingClientRect();try{y=n.clientX-U.left,F=n.clientY-U.top}catch(Ee){return null}var H=Ns(e,y,F),_;if(l&&H.xRel>0&&(_=Ot(e.doc,H.line).text).length==H.ch){var me=Je(_,_.length,e.options.tabSize)-_.length;H=it(H.line,Math.max(0,Math.round((y-un(e.display).left)/In(e.display))-me))}return H}function Ki(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 Fr(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)Ai&&Pa(e.doc,n)<f.viewTo&&Ci(e);else if(u<=f.viewFrom)Ai&&bs(e.doc,u+l)>f.viewFrom?Ci(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Ci(e);else if(n<=f.viewFrom){var y=Co(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):Ci(e)}else if(u>=f.viewTo){var F=Co(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Ci(e)}else{var U=Co(e,n,n,-1),H=Co(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(xo(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ci(e)}var _=f.externalMeasured;_&&(u<_.lineN?_.lineN+=l:n<_.lineN+_.size&&(f.externalMeasured=null))}function _n(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 y=l.view[Ki(e,n)];if(y.node!=null){var F=y.changes||(y.changes=[]);pt(F,u)==-1&&F.push(u)}}}function Ci(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Co(e,n,u,l){var f=Ki(e,n),y,F=e.display.view;if(!Ai||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=F[H].size;if(U!=n){if(l>0){if(f==F.length-1)return null;y=U+F[f].size-n,f++}else y=U-n;n+=y,u+=y}for(;Pa(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 qf(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=xo(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=xo(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Ki(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(xo(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Ki(e,u)))),l.viewTo=u}function Oo(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 Oi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function To(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=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 H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var _=H.empty();if(F){var me=F(e,H);me&&Vs(e,me,f)}else(_||e.options.showCursorWhenSelecting)&&Vs(e,H.head,f);_||fu(e,H,y)}}return l}function Vs(e,n,u){var l=Gn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(xe("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 y=Eo(e,n,"div",null,null),F=y.right-y.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(xe("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 Po(e,n){return e.top-n.top||e.left-n.left}function fu(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),F=un(e.display),U=F.left,H=Math.max(l.sizerWidth,Hi(e)-l.sizer.offsetLeft)-F.right,_=f.direction=="ltr";function me(ct,xt,Ft,Pt){xt<0&&(xt=0),xt=Math.round(xt),Pt=Math.round(Pt),y.appendChild(xe("div",null,"CodeMirror-selected","position: absolute; left: "+ct+`px;
23
+ top: `+xt+"px; width: "+(Ft==null?H-ct:Ft)+`px;
24
+ height: `+(Pt-xt)+"px"))}function Ee(ct,xt,Ft){var Pt=Ot(f,ct),It=Pt.text.length,$t,vt;function ir(Pr,rn){return Eo(e,it(ct,Pr),"div",Pt,rn)}function gn(Pr,rn,zr){var Rr=lu(e,Pt,null,Pr),Ar=rn=="ltr"==(zr=="after")?"left":"right",dr=zr=="after"?Rr.begin:Rr.end-(/\s/.test(Pt.text.charAt(Rr.end-1))?2:1);return ir(dr,Ar)[Ar]}var cn=O(Pt,f.direction);return P(cn,xt||0,Ft==null?It:Ft,function(Pr,rn,zr,Rr){var Ar=zr=="ltr",dr=ir(Pr,Ar?"left":"right"),nn=ir(rn-1,Ar?"right":"left"),ra=xt==null&&Pr==0,vi=Ft==null&&rn==It,Qr=Rr==0,ri=!cn||Rr==cn.length-1;if(nn.top-dr.top<=3){var Mr=(_?ra:vi)&&Qr,yl=(_?vi:ra)&&ri,Cn=Mr?U:(Ar?dr:nn).left,Lr=yl?H:(Ar?nn:dr).right;me(Cn,dr.top,Lr-Cn,dr.bottom)}else{var wa,Dr,Sa,ml;Ar?(wa=_&&ra&&Qr?U:dr.left,Dr=_?H:gn(Pr,zr,"before"),Sa=_?U:gn(rn,zr,"after"),ml=_&&vi&&ri?H:nn.right):(wa=_?gn(Pr,zr,"before"):U,Dr=!_&&ra&&Qr?H:dr.right,Sa=!_&&vi&&ri?U:nn.left,ml=_?gn(rn,zr,"after"):H),me(wa,dr.top,Dr-wa,dr.bottom),dr.bottom<nn.top&&me(U,dr.bottom,null,nn.top),me(Sa,nn.top,ml-Sa,nn.bottom)}(!$t||Po(dr,$t)<0)&&($t=dr),Po(nn,$t)<0&&($t=nn),(!vt||Po(dr,vt)<0)&&(vt=dr),Po(nn,vt)<0&&(vt=nn)}),{start:$t,end:vt}}var Ne=n.from(),ke=n.to();if(Ne.line==ke.line)Ee(Ne.line,Ne.ch,ke.ch);else{var Ye=Ot(f,Ne.line),et=Ot(f,ke.line),at=Hn(Ye)==Hn(et),ft=Ee(Ne.line,Ne.ch,at?Ye.text.length+1:null).end,gt=Ee(ke.line,at?0:null,ke.ch).start;at&&(ft.top<gt.top-2?(me(ft.right,ft.top,null,ft.bottom),me(U,gt.top,gt.left,gt.bottom)):me(ft.right,ft.top,gt.left-ft.right,ft.bottom)),ft.bottom<gt.top&&me(U,ft.bottom,null,gt.top)}u.appendChild(y)}function Ws(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()||la(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function Hs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Io(e))}function Ua(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&la(e))},100)}function Io(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,De(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()),Ws(e))}function la(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 Fo(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,y=0,F=0;F<n.view.length;F++){var U=n.view[F],H=e.options.lineWrapping,_=void 0,me=0;if(!U.hidden){if(f+=U.line.height,b&&S<8){var Ee=U.node.offsetTop+U.node.offsetHeight;_=Ee-u,u=Ee}else{var Ne=U.node.getBoundingClientRect();_=Ne.bottom-Ne.top,!H&&U.text.firstChild&&(me=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var ke=U.line.height-_;if((ke>.005||ke<-.005)&&(f<l&&(y-=ke),wn(U.line,_),zs(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)zs(U.rest[Ye]);if(me>e.display.sizerWidth){var et=Math.ceil(me/In(e.display));et>e.display.maxLineLength&&(e.display.maxLineLength=et,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(y)>2&&(n.scroller.scrollTop+=y)}function zs(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 ja(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Ra(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,y=Wn(n,l),F=Wn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<y?(y=U,F=Wn(n,li(Ot(n,U))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=F&&(y=Wn(n,li(Ot(n,H))-e.wrapper.clientHeight),F=H)}return{from:y,to:Math.max(F,y+1)}}function ec(e,n){if(!Oe(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&&!W){var y=xe("div","\u200B",null,`position: absolute;
25
25
  top: `+(n.top-u.viewOffset-Ra(e.display))+`px;
26
- height: `+(n.bottom-n.top+ci(e)+u.barHeight)+`px;
27
- left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function fu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?it(n.line,n.ch+1,"before"):n,n=n.ch?it(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var F=!1,U=zn(e,n),H=!u||u==n?U:zn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var _=$s(e,f),me=e.doc.scrollTop,Ee=e.doc.scrollLeft;if(_.scrollTop!=null&&(Wa(e,_.scrollTop),Math.abs(e.doc.scrollTop-me)>1&&(F=!0)),_.scrollLeft!=null&&(Qi(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-Ee)>1&&(F=!0)),!F)break}return f}function cu(e,n){var u=$s(e,n);u.scrollTop!=null&&Wa(e,u.scrollTop),u.scrollLeft!=null&&Qi(e,u.scrollLeft)}function $s(e,n){var u=e.display,l=ua(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=Ma(e),F={};n.bottom-n.top>y&&(n.bottom=n.top+y);var U=e.doc.height+Fs(u),H=n.top<l,_=n.bottom>U-l;if(n.top<f)F.scrollTop=H?0:n.top;else if(n.bottom>f+y){var me=Math.min(n.top,(_?U:n.bottom)-y);me!=f&&(F.scrollTop=me)}var Ee=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ee,ke=Gi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ee-(Ye?0:10)):n.right>ke+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-ke),F}function Ks(e,n){n!=null&&(ko(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function rn(e){ko(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Va(e,n,u){(n!=null||u!=null)&&ko(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Xi(e,n){ko(e),e.curOp.scrollToPos=n}function ko(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=au(e,n.from),l=au(e,n.to);du(e,u,l,n.margin)}}function du(e,n,u,l){var f=$s(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});Va(e,f.scrollLeft,f.scrollTop)}function Wa(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Qs(e,{top:n}),pu(e,n,!0),c&&Qs(e),Gn(e,100))}function pu(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 Qi(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,mu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function ca(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Fs(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+ci(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Zi=function(e,n,u){this.cm=u;var l=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Zi.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 y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"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}},Zi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Zi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Zi.prototype.zeroWidthHack=function(){var e=C&&!ee?"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},Zi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Zi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ha=function(){};Ha.prototype.update=function(){return{bottom:0,right:0}},Ha.prototype.setScrollLeft=function(){},Ha.prototype.setScrollTop=function(){},Ha.prototype.clear=function(){};function di(e,n){n||(n=ca(e));var u=e.display.barWidth,l=e.display.barHeight;Ro(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Fo(e),Ro(e,ca(e)),u=e.display.barWidth,l=e.display.barHeight}function Ro(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 hn={native:Zi,null:Ha};function Mo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&re(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new hn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),N(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"?Qi(e,n):Wa(e,n)},e),e.display.scrollbars.addClass&&De(e.display.wrapper,e.display.scrollbars.addClass)}var pi=0;function Ii(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:++pi,markArrays:null},Zl(e.curOp)}function Fi(e){var n=e.curOp;n&&Ps(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Fd(u)})}function Fd(e){for(var n=e.ops,u=0;u<n.length;u++)Ys(n[u]);for(var l=0;l<n.length;l++)hu(n[l]);for(var f=0;f<n.length;f++)vu(n[f]);for(var y=0;y<n.length;y++)Or(n[y]);for(var F=0;F<n.length;F++)ec(n[F])}function Ys(e){var n=e.cm,u=n.display;gu(n),e.updateMaxLine&&Ss(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 _i(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function hu(e){e.updatedDisplay=e.mustUpdate&&Xs(e.cm,e.update)}function vu(e){var n=e.cm,u=n.display;e.updatedDisplay&&Fo(n),e.barMeasure=ca(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=wo(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+ci(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Gi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Or(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Qi(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&di(n,e.barMeasure),e.updatedDisplay&&_s(n,e.barMeasure),e.selectionChanged&&Hs(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&zs(e.cm)}function ec(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&yu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&pu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Qi(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=fu(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);qf(n,f)}var y=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(y)for(var U=0;U<y.length;++U)y[U].lines.length||ae(y[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&ae(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&ae(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Dr(e,n){if(e.curOp)return n();Ii(e);try{return n()}finally{Fi(e)}}function Nr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ii(e);try{return n.apply(e,arguments)}finally{Fi(e)}}}function kr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ii(this);try{return e.apply(this,arguments)}finally{Fi(this)}}}function dr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Ii(n);try{return e.apply(this,arguments)}finally{Fi(n)}}}function Gn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,et(tc,e))}function tc(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(y){if(l.line>=e.display.viewFrom){var F=y.styles,U=y.text.length>e.options.maxHighlightLength?Qr(n.mode,l.state):null,H=qt(e,y,l,!0);U&&(l.state=U),y.styles=H.styles;var _=y.styleClasses,me=H.classes;me?y.styleClasses=me:_&&(y.styleClasses=null);for(var Ee=!F||F.length!=y.styles.length||_!=me&&(!_||!me||_.bgClass!=me.bgClass||_.textClass!=me.textClass),Ne=0;!Ee&&Ne<F.length;++Ne)Ee=F[Ne]!=y.styles[Ne];Ee&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&hs(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Gn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Dr(e,function(){for(var y=0;y<f.length;y++)_n(e,f[y],"text")})}}var _i=function(e,n,u){var l=e.display;this.viewport=n,this.visible=ja(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Gi(e),this.force=u,this.dims=js(e),this.events=[]};_i.prototype.signal=function(e,n){Ve(e,n)&&this.events.push(arguments)},_i.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.apply(null,this.events[e])};function gu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=ci(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=ci(e)+"px",n.scrollbarsClipped=!0)}function za(e){if(e.hasFocus())return null;var n=Fe();if(!n||!se(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&se(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Js(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&se(document.body,e.anchorNode)&&se(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 Xs(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Ti(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&&Oo(e)==0)return!1;Lo(e)&&(Ti(e),n.dims=js(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ci&&(y=Pa(e.doc,y),F=ws(e.doc,F));var U=y!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;_f(e,y,F),u.viewOffset=ui(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=Oo(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var _=za(e);return H>4&&(u.lineDiv.style.display="none"),rc(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Js(_),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Gn(e,400)),u.updateLineNumbers=null,!0}function yu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Gi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Fs(e.display)-Ma(e),u.top)}),n.visible=ja(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=ja(e.display,e.doc,u));if(!Xs(e,n))break;Fo(e);var f=ca(e);Pi(e),di(e,f),_s(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 Qs(e,n){var u=new _i(e,n);if(Xs(e,u)){Fo(e),yu(e,u);var l=ca(e);Pi(e),di(e,l),_s(e,l),u.finish()}}function rc(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,F=y.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 H=l.view,_=l.viewFrom,me=0;me<H.length;me++){var Ee=H[me];if(!Ee.hidden)if(!Ee.node||Ee.node.parentNode!=y){var Ne=er(e,Ee,_,u);y.insertBefore(Ne,F)}else{for(;F!=Ee.node;)F=U(F);var ke=f&&n!=null&&n<=_&&Ee.lineNumber;Ee.changes&&(ht(Ee.changes,"gutter")>-1&&(ke=!1),bo(e,Ee,_,u)),ke&&(ie(Ee.lineNumber),Ee.lineNumber.appendChild(document.createTextNode(la(e.options,_)))),F=Ee.node.nextSibling}_+=Ee.size}for(;F;)F=U(F)}function Zs(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",or(e,"gutterChanged",e)}function _s(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+ci(e)+"px"}function mu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=In(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=y),u[F].gutterBackground&&(u[F].gutterBackground.style.left=y));var U=u[F].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Lo(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=la(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(xe("div",[xe("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,F=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Zs(e.display),!0}return!1}function Ga(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],F=null;if(typeof y!="string"&&(F=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function xu(e){var n=e.gutters,u=e.gutterSpecs;ie(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,F=f.style,U=n.appendChild(xe("div",null,"CodeMirror-gutter "+y));F&&(U.style.cssText=F),y=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",Zs(e)}function Do(e){xu(e.display),Fr(e),mu(e)}function nc(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=xe("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=xe("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=pe("div",null,"CodeMirror-code"),f.selectionDiv=xe("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=xe("div",null,"CodeMirror-cursors"),f.measure=xe("div",null,"CodeMirror-measure"),f.lineMeasure=xe("div",null,"CodeMirror-measure"),f.lineSpace=pe("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=pe("div",[f.lineSpace],"CodeMirror-lines");f.mover=xe("div",[y],null,"position: relative"),f.sizer=xe("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=xe("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=xe("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=xe("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=xe("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=Ga(l.gutters,l.lineNumbers),xu(f),u.init(f)}var No=0,hi=null;b?hi=-.53:c?hi=15:D?hi=-.7:j&&(hi=-1/3);function bu(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 nr(e){var n=bu(e);return n.x*=hi,n.y*=hi,n}function wu(e,n){var u=bu(n),l=u.x,f=u.y,y=hi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,y=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,_=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&_)){if(f&&C&&g){e:for(var me=n.target,Ee=F.view;me!=U;me=me.parentNode)for(var Ne=0;Ne<Ee.length;Ne++)if(Ee[Ne].node==me){e.display.currentWheelTarget=me;break e}}if(l&&!c&&!B&&y!=null){f&&_&&Wa(e,Math.max(0,U.scrollTop+f*y)),Qi(e,Math.max(0,U.scrollLeft+l*y)),(!f||f&&_)&&nt(n),F.wheelStartX=null;return}if(f&&y!=null){var ke=f*y,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):tt=Math.min(e.doc.height,tt+ke+50),Qs(e,{top:Ye,bottom:tt})}No<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,gt=ft&&F.wheelDY&&ft/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!gt&&(hi=(hi*No+gt)/(No+1),++No)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var vn=function(e,n){this.ranges=e,this.primIndex=n};vn.prototype.primary=function(){return this.ranges[this.primIndex]},vn.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(!si(u.anchor,l.anchor)||!si(u.head,l.head))return!1}return!0},vn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new tr(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new vn(e,this.primIndex)},vn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},vn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Nt(n,l.from())>=0&&Nt(e,l.to())<=0)return u}return-1};var tr=function(e,n){this.anchor=e,this.head=n};tr.prototype.from=function(){return _e(this.anchor,this.head)},tr.prototype.to=function(){return Ce(this.anchor,this.head)},tr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Sn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,ke){return Nt(Ne.from(),ke.from())}),u=ht(n,f);for(var y=1;y<n.length;y++){var F=n[y],U=n[y-1],H=Nt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var _=_e(U.from(),F.from()),me=Ce(U.to(),F.to()),Ee=U.empty()?F.from()==F.head:U.from()==U.head;y<=u&&--u,n.splice(--y,2,new tr(Ee?me:_,Ee?_:me))}}return new vn(n,u)}function ki(e,n){return new vn([new tr(e,n||e)],0)}function Ri(e){return e.text?it(e.from.line+e.text.length-1,Ct(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Su(e,n){if(Nt(e,n.from)<0)return e;if(Nt(e,n.to)<=0)return Ri(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+=Ri(n).ch-n.to.ch),it(u,l)}function qs(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new tr(Su(f.anchor,n),Su(f.head,n)))}return Sn(e.cm,u,e.sel.primIndex)}function Au(e,n,u){return e.line==n.line?it(u.line,e.ch-n.ch+u.ch):it(u.line+(e.line-n.line),e.ch)}function ic(e,n,u){for(var l=[],f=it(e.first,0),y=f,F=0;F<n.length;F++){var U=n[F],H=Au(U.from,f,y),_=Au(Ri(U),f,y);if(f=U.to,y=_,u=="around"){var me=e.sel.ranges[F],Ee=Nt(me.head,me.anchor)<0;l[F]=new tr(Ee?_:H,Ee?H:_)}else l[F]=new tr(H,H)}return new vn(l,e.sel.primIndex)}function Bo(e){e.doc.mode=bn(e.options,e.doc.modeOption),qi(e)}function qi(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,Gn(e,100),e.state.modeGen++,e.curOp&&Fr(e)}function Uo(e,n){return n.from.ch==0&&n.to.ch==0&&Ct(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function el(e,n,u,l){function f(gt){return u?u[gt]:null}function y(gt,dt,xt){Oi(gt,dt,xt,l),or(gt,"change",gt,n)}function F(gt,dt){for(var xt=[],It=gt;It<dt;++It)xt.push(new Wi(_[It],f(It),l));return xt}var U=n.from,H=n.to,_=n.text,me=Ot(e,U.line),Ee=Ot(e,H.line),Ne=Ct(_),ke=f(_.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,F(0,_.length)),e.remove(_.length,e.size-_.length);else if(Uo(e,n)){var tt=F(0,_.length-1);y(Ee,Ee.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(me==Ee)if(_.length==1)y(me,me.text.slice(0,U.ch)+Ne+me.text.slice(H.ch),ke);else{var at=F(1,_.length-1);at.push(new Wi(Ne+me.text.slice(H.ch),ke,l)),y(me,me.text.slice(0,U.ch)+_[0],f(0)),e.insert(U.line+1,at)}else if(_.length==1)y(me,me.text.slice(0,U.ch)+_[0]+Ee.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{y(me,me.text.slice(0,U.ch)+_[0],f(0)),y(Ee,Ne+Ee.text.slice(H.ch),ke);var ft=F(1,_.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ft)}or(e,"change",e,n)}function Mi(e,n,u){function l(f,y,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=y){var _=F&&H.sharedHist;u&&!_||(n(H.doc,_),l(H.doc,f,_))}}}l(e,null,!0)}function Eu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,Vs(e),Bo(e),tl(e),e.options.direction=n.direction,e.options.lineWrapping||Ss(e),e.options.mode=n.modeOption,Fr(e)}function tl(e){(e.doc.direction=="rtl"?De:re)(e.display.lineDiv,"CodeMirror-rtl")}function $a(e){Dr(e,function(){tl(e),Fr(e)})}function Ka(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 qn(e,n){var u={from:ue(n.from),to:Ri(n),text:oi(e,n.from,n.to)};return Ja(e,u,n.from.line,n.to.line+1),Mi(e,function(l){return Ja(l,u,n.from.line,n.to.line+1)},!0),u}function Cu(e){for(;e.length;){var n=Ct(e);if(n.ranges)e.pop();else break}}function Ou(e,n){if(n)return Cu(e.done),Ct(e.done);if(e.done.length&&!Ct(e.done).ranges)return Ct(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ct(e.done)}function Tu(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Ou(f,f.lastOp==l)))U=Ct(F.changes),Nt(n.from,n.to)==0&&Nt(n.from,U.to)==0?U.to=Ri(n):F.changes.push(qn(e,n));else{var H=Ct(f.done);for((!H||!H.ranges)&&Ya(e.sel,f.done),F={changes:[qn(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=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||ae(e,"historyAdded")}function Pu(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 ac(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||Pu(e,y,Ct(f.done),n))?f.done[f.done.length-1]=n:Ya(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&Cu(f.undone)}function Ya(e,n){var u=Ct(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Ja(e,n,u,l){var f=n["spans_"+e.id],y=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]={}))[y]=F.markedSpans),++y})}function oc(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 jo(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(oc(u[f]));return l}function Vo(e,n){var u=jo(e,n),l=zl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],F=l[f];if(y&&F){e:for(var U=0;U<F.length;++U){for(var H=F[U],_=0;_<y.length;++_)if(y[_].marker==H.marker)continue e;y.push(H)}}else F&&(u[f]=F)}return u}function da(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?vn.prototype.deepCopy.call(y):y);continue}var F=y.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var _=F[H],me=void 0;if(U.push({from:_.from,to:_.to,text:_.text}),n)for(var Ee in _)(me=Ee.match(/^spans_(\d+)$/))&&ht(n,Number(me[1]))>-1&&(Ct(U)[Ee]=_[Ee],delete _[Ee])}}return l}function rl(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Nt(n,f)<0;y!=Nt(u,f)<0?(f=n,n=u):y!=Nt(n,u)<0&&(n=u)}return new tr(f,n)}else return new tr(u||n,n)}function Wo(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Zr(e,new vn([rl(e.sel.primary(),n,u,f)],0),l)}function Iu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=rl(e.sel.ranges[y],n[y],null,f);var F=Sn(e.cm,l,e.sel.primIndex);Zr(e,F,u)}function Ho(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Zr(e,Sn(e.cm,f,e.sel.primIndex),l)}function nl(e,n,u,l){Zr(e,ki(n,u),l)}function sc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new tr(st(e,f[y].anchor),st(e,f[y].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Sn(e.cm,l.ranges,l.ranges.length-1):n}function Fu(e,n,u){var l=e.history.done,f=Ct(l);f&&f.ranges?(l[l.length-1]=n,zo(e,n,u)):Zr(e,n,u)}function Zr(e,n,u){zo(e,n,u),ac(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function zo(e,n,u){(Ve(e,"beforeSelectionChange")||e.cm&&Ve(e.cm,"beforeSelectionChange"))&&(n=sc(e,n,u));var l=u&&u.bias||(Nt(n.primary().head,e.sel.primary().head)<0?-1:1);ku(e,Mu(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&rn(e.cm)}function ku(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),or(e,"cursorActivity",e))}function Ru(e){ku(e,Mu(e,e.sel,null,!1))}function Mu(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var F=n.ranges[y],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],H=Xa(e,F.anchor,U&&U.anchor,u,l),_=Xa(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||_!=F.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new tr(H,_))}return f?Sn(e.cm,f,n.primIndex):n}function pa(e,n,u,l,f){var y=Ot(e,n.line);if(y.markedSpans)for(var F=0;F<y.markedSpans.length;++F){var U=y.markedSpans[F],H=U.marker,_="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,me="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(_?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(me?U.to>=n.ch:U.to>n.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(y.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ee=H.find(l<0?1:-1),Ne=void 0;if((l<0?me:_)&&(Ee=Lu(e,Ee,-l,Ee&&Ee.line==n.line?y:null)),Ee&&Ee.line==n.line&&(Ne=Nt(Ee,u))&&(l<0?Ne<0:Ne>0))return pa(e,Ee,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?_:me)&&(ke=Lu(e,ke,l,ke.line==n.line?y:null)),ke?pa(e,ke,n,l,f):null}}return n}function Xa(e,n,u,l,f){var y=l||1,F=pa(e,n,u,y,f)||!f&&pa(e,n,u,y,!0)||pa(e,n,u,-y,f)||!f&&pa(e,n,u,-y,!0);return F||(e.cantEdit=!0,it(e.first,0))}function Lu(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,it(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?it(n.line+1,0):null:new it(n.line,n.ch+u)}function Go(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),lt)}function il(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,y,F,U){f&&(l.from=st(e,f)),y&&(l.to=st(e,y)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),ae(e,"beforeChange",e,l),e.cm&&ae(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 ha(e,n,u){if(e.cm){if(!e.cm.curOp)return Nr(e.cm,ha)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ve(e,"beforeChange")||e.cm&&Ve(e.cm,"beforeChange"))&&(n=il(e,n,!0),!n))){var l=Lf&&!u&&$l(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)ea(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else ea(e,n)}}function ea(e,n){if(!(n.text.length==1&&n.text[0]==""&&Nt(n.from,n.to)==0)){var u=qs(e,n);Tu(e,n,u,e.cm?e.cm.curOp.id:NaN),Qa(e,n,u,zl(e,n));var l=[];Mi(e,function(f,y){!y&&ht(l,f.history)==-1&&(sl(f.history,n),l.push(f.history)),Qa(f,n,null,zl(f,n))})}}function Fn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,F=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,_=0;_<U.length&&(y=U[_],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));_++);if(_!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=U.pop(),y.ranges){if(Ya(y,H),u&&!y.equals(e.sel)){Zr(e,y,{clearRedo:!1});return}F=y}else if(l){U.push(y);return}else break;var me=[];Ya(F,H),H.push({changes:me,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Ee=Ve(e,"beforeChange")||e.cm&&Ve(e.cm,"beforeChange"),Ne=function(tt){var at=y.changes[tt];if(at.origin=n,Ee&&!il(e,at,!1))return U.length=0,{};me.push(qn(e,at));var ft=tt?qs(e,at):Ct(U);Qa(e,at,ft,Vo(e,at)),!tt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:Ri(at)});var gt=[];Mi(e,function(dt,xt){!xt&&ht(gt,dt.history)==-1&&(sl(dt.history,at),gt.push(dt.history)),Qa(dt,at,null,Vo(dt,at))})},ke=y.changes.length-1;ke>=0;--ke){var Ye=Ne(ke);if(Ye)return Ye.v}}}}function al(e,n){if(n!=0&&(e.first+=n,e.sel=new vn(Ht(e.sel.ranges,function(f){return new tr(it(f.anchor.line+n,f.anchor.ch),it(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Fr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)_n(e.cm,l,"gutter")}}function Qa(e,n,u,l){if(e.cm&&!e.cm.curOp)return Nr(e.cm,Qa)(e,n,u,l);if(n.to.line<e.first){al(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);al(e,f),n={from:it(e.first,0),to:it(n.to.line+f,n.to.ch),text:[Ct(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:it(y,Ot(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=oi(e,n.from,n.to),u||(u=qs(e,n)),e.cm?lc(e.cm,n,l):el(e,n,l),zo(e,u,lt),e.cantEdit&&Xa(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function lc(e,n,u){var l=e.doc,f=e.display,y=n.from,F=n.to,U=!1,H=y.line;e.options.lineWrapping||(H=_t(Wn(Ot(l,y.line))),l.iter(H,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ae(e),el(l,n,u,lu(e)),e.options.lineWrapping||(l.iter(H,y.line+n.text.length,function(ke){var Ye=Vi(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Mf(l,y.line),Gn(e,400);var _=n.text.length-(F.line-y.line)-1;n.full?Fr(e):y.line==F.line&&n.text.length==1&&!Uo(e.doc,n)?_n(e,y.line,"text"):Fr(e,y.line,F.line+1,_);var me=Ve(e,"changes"),Ee=Ve(e,"change");if(Ee||me){var Ne={from:y,to:F,text:n.text,removed:n.removed,origin:n.origin};Ee&&or(e,"change",e,Ne),me&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function va(e,n,u,l,f){var y;l||(l=u),Nt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),ha(e,{from:u,to:l,text:n,origin:f})}function ol(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Du(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],F=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var U=0;U<y.ranges.length;U++)ol(y.ranges[U].anchor,n,u,l),ol(y.ranges[U].head,n,u,l);continue}for(var H=0;H<y.changes.length;++H){var _=y.changes[H];if(u<_.from.line)_.from=it(_.from.line+l,_.from.ch),_.to=it(_.to.line+l,_.to.ch);else if(n<=_.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function sl(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Du(e.done,u,l,f),Du(e.undone,u,l,f)}function ta(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=Ot(e,ot(e,n)):f=_t(n),f==null?null:(l(y,f)&&e.cm&&_n(e.cm,f,u),y)}function ga(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}ga.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,Hi(f),or(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 ya(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}ya.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 y=Math.min(n,f-e),F=l.height;if(l.removeInner(e,y),this.height-=F-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ga))){var U=[];this.collapse(U),this.children=[new ga(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],y=f.chunkSize();if(e<=y){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 H=new ga(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new ya(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new ya(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],y=f.chunkSize();if(e<y){var F=Math.min(n,y-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=y}}};var Za=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};Za.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=_t(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 y=Et(this);wn(u,Math.max(0,u.height-y)),e&&(Dr(e,function(){ll(e,u,-y),_n(e,l,"widget")}),or(e,"lineWidgetCleared",e,this,l))}},Za.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Et(this)-n;!f||(li(this.doc,l)||wn(l,l.height+f),u&&Dr(u,function(){u.curOp.forceUpdate=!0,ll(u,l,f),or(u,"lineWidgetChanged",u,e,_t(l))}))},Le(Za);function ll(e,n,u){ui(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ks(e,u)}function uc(e,n,u,l){var f=new Za(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),ta(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,y&&!li(e,F)){var H=ui(F)<e.scrollTop;wn(F,F.height+Et(f)),H&&Ks(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&or(y,"lineWidgetAdded",y,f,typeof n=="number"?n:_t(n)),f}var $o=0,ei=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++$o};ei.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ii(e),Ve(this,"clear")){var u=this.find();u&&or(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var F=this.lines[y],U=Oa(F.markedSpans,this);e&&!this.collapsed?_n(e,_t(F),"text"):e&&(U.to!=null&&(f=_t(F)),U.from!=null&&(l=_t(F))),F.markedSpans=Bf(F.markedSpans,U),U.from==null&&this.collapsed&&!li(this.doc,F)&&e&&wn(F,ua(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var _=Wn(this.lines[H]),me=Vi(_);me>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=me,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Fr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ru(e.doc)),e&&or(e,"markerCleared",e,this,l,f),n&&Fi(e),this.parent&&this.parent.clear()}},ei.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],F=Oa(y.markedSpans,this);if(F.from!=null&&(u=it(n?y:_t(y),F.from),e==-1))return u;if(F.to!=null&&(l=it(n?y:_t(y),F.to),e==1))return l}return u&&{from:u,to:l}},ei.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Dr(l,function(){var f=n.line,y=_t(n.line),F=Rs(l,y);if(F&&(Ds(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!li(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Et(u)-U;H&&wn(f,f.height+H)}or(l,"markerChanged",l,e)})},ei.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ht(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ei.prototype.detachLine=function(e){if(this.lines.splice(ht(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Le(ei);function ra(e,n,u,l,f){if(l&&l.shared)return fc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Nr(e.cm,ra)(e,n,u,l,f);var y=new ei(e,f),F=Nt(n,u);if(l&&Qe(l,y,!1),F>0||F==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=pe("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(mo(e,n.line,n,u,y)||n.line!=u.line&&mo(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nf()}y.addToHistory&&Tu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,_;if(e.iter(U,u.line+1,function(Ee){H&&y.collapsed&&!H.options.lineWrapping&&Wn(Ee)==H.display.maxLine&&(_=!0),y.collapsed&&U!=n.line&&wn(Ee,0),Td(Ee,new yo(y,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),y.collapsed&&e.iter(n.line,u.line+1,function(Ee){li(e,Ee)&&wn(Ee,0)}),y.clearOnEnter&&N(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Df(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++$o,y.atomic=!0),H){if(_&&(H.curOp.updateMaxLine=!0),y.collapsed)Fr(H,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var me=n.line;me<=u.line;me++)_n(H,me,"text");y.atomic&&Ru(H.doc),or(H,"markerAdded",H,y)}return y}var ma=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ma.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();or(this,"clear")}},ma.prototype.find=function(e,n){return this.primary.find(e,n)},Le(ma);function fc(e,n,u,l,f){l=Qe(l),l.shared=!1;var y=[ra(e,n,u,l,f)],F=y[0],U=l.widgetNode;return Mi(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),y.push(ra(H,st(H,n),st(H,u),l,f));for(var _=0;_<H.linked.length;++_)if(H.linked[_].isParent)return;F=Ct(y)}),new ma(y,F)}function Nu(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),function(n){return n.parent})}function ul(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),F=e.clipPos(f.to);if(Nt(y,F)){var U=ra(e,y,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function cc(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];Mi(f.primary.doc,function(H){return y.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];ht(y,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var dc=0,un=function(e,n,u,l,f){if(!(this instanceof un))return new un(e,n,u,l,f);u==null&&(u=0),ya.call(this,[new ga([new Wi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=it(u,0);this.sel=ki(y),this.history=new Ka(null),this.id=++dc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),el(this,{from:y,to:y,text:e}),Zr(this,ki(y),lt)};un.prototype=Tt(ya.prototype,{constructor:un,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:dr(function(e){var n=it(this.first,0),u=this.first+this.size-1;ha(this,{from:n,to:it(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Va(this.cm,0,0),Zr(this,ki(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,va(this,e,n,u,l)},getRange:function(e,n,u){var l=oi(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(Qn(this,e))return Ot(this,e)},getLineNumber:function(e){return _t(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Wn(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:dr(function(e,n,u){nl(this,st(this,typeof e=="number"?it(e,n||0):e),null,u)}),setSelection:dr(function(e,n,u){nl(this,st(this,e),st(this,n||e),u)}),extendSelection:dr(function(e,n,u){Wo(this,st(this,e),n&&st(this,n),u)}),extendSelections:dr(function(e,n){Iu(this,Qt(this,e),n)}),extendSelectionsBy:dr(function(e,n){var u=Ht(this.sel.ranges,e);Iu(this,Qt(this,u),n)}),setSelections:dr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new tr(st(this,e[f].anchor),st(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Zr(this,Sn(this.cm,l,n),u)}}),addSelection:dr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new tr(st(this,e),st(this,n||e))),Zr(this,Sn(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=oi(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=oi(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:dr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var F=f.ranges[y];l[y]={from:F.from(),to:F.to(),text:this.splitLines(e[y]),origin:u}}for(var U=n&&n!="end"&&ic(this,l,n),H=l.length-1;H>=0;H--)ha(this,l[H]);U?Fu(this,U):this.cm&&rn(this.cm)}),undo:dr(function(){Fn(this,"undo")}),redo:dr(function(){Fn(this,"redo")}),undoSelection:dr(function(){Fn(this,"undo",!0)}),redoSelection:dr(function(){Fn(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 Ka(this.history),Mi(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:da(this.history.done),undone:da(this.history.undone)}},setHistory:function(e){var n=this.history=new Ka(this.history);n.done=da(e.done.slice(0),null,!0),n.undone=da(e.undone.slice(0),null,!0)},setGutterMarker:dr(function(e,n,u){return ta(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&K(f)&&(l.gutterMarkers=null),!0})}),clearGutter:dr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&ta(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(!Qn(this,e)||(n=e,e=Ot(this,e),!e))return null}else if(n=_t(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:dr(function(e,n,u){return ta(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(de(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:dr(function(e,n,u){return ta(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var F=y.match(de(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=y.slice(0,F.index)+(!F.index||U==y.length?"":" ")+y.slice(U)||null}else return!1;return!0})}),addLineWidget:dr(function(e,n,u){return uc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return ra(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),ra(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=Ot(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(y){var F=y.markedSpans;if(F)for(var U=0;U<F.length;U++){var H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.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 y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),st(this,it(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 un(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 un(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}],ul(l,Nu(this)),l},unlinkDoc:function(e){if(e instanceof pr&&(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),cc(Nu(this));break}}if(e.history==this.history){var l=[e.id];Mi(e,function(f){return l.push(f.id)},!0),e.history=new Ka(null),e.history.done=da(this.history.done,l),e.history.undone=da(this.history.undone,l)}},iterLinkedDocs:function(e){Mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ai(e)},lineSeparator:function(){return this.lineSep||`
28
- `},setDirection:dr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&$a(this.cm))})}),un.prototype.eachLine=un.prototype.iter;var Bu=0;function pc(e){var n=this;if(Uu(n),!(Oe(n,e)||fi(n.display,e))){nt(e),b&&(Bu=+new Date);var u=Yi(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,y=Array(f),F=0,U=function(){++F==f&&Nr(n,function(){u=st(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(y.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};ha(n.doc,ke),Fu(n.doc,ki(st(n.doc,u),st(n.doc,Ri(ke))))})()},H=function(ke,Ye){if(n.options.allowDropFileTypes&&ht(n.options.allowDropFileTypes,ke.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}y[Ye]=at,U()},tt.readAsText(ke)},_=0;_<l.length;_++)H(l[_],_);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 Ee;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ee=n.listSelections()),zo(n.doc,ki(u,u)),Ee)for(var Ne=0;Ne<Ee.length;++Ne)va(n.doc,"",Ee[Ne].anchor,Ee[Ne].head,"drag");n.replaceSelection(me,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function hc(e,n){if(b&&(!e.state.draggingText||+new Date-Bu<100)){Gt(n);return}if(!(Oe(e,n)||fi(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=xe("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 vc(e,n){var u=Yi(e,n);if(!!u){var l=document.createDocumentFragment();Ws(e,u,l),e.display.dragCursor||(e.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function Uu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ko(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 y=0;y<u.length;y++)e(u[y])})}}var _a=!1;function ju(){_a||(gc(),_a=!0)}function gc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ko(yc)},100))}),N(window,"blur",function(){return Ko(fa)})}function yc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var gn={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"},qa=0;qa<10;qa++)gn[qa+48]=gn[qa+96]=String(qa);for(var eo=65;eo<=90;eo++)gn[eo]=String.fromCharCode(eo);for(var xa=1;xa<=12;xa++)gn[xa+111]=gn[xa+63235]="F"+xa;var ti={};ti.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"},ti.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"},ti.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"},ti.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"]},ti.default=C?ti.macDefault:ti.pcDefault;function Vu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))y=!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),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function kd(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=Ht(u.split(" "),Vu),y=0;y<f.length;y++){var F=void 0,U=void 0;y==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,y+1).join(" "),F="...");var H=n[U];if(!H)n[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var _ in n)e[_]=n[_];return e}function vi(e,n,u,l){n=Yo(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 vi(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var F=vi(e,n.fallthrough[y],u,l);if(F)return F}}}function Wu(e){var n=typeof e=="string"?e:gn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function fl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Z?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Z?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function Hu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=gn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),fl(u,e,n))}function Yo(e){return typeof e=="string"?ti[e]:e}function na(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Nt(y.from,Ct(l).to)<=0;){var F=l.pop();if(Nt(F.from,y.from)<0){y.from=F.from;break}}l.push(y)}Dr(e,function(){for(var U=l.length-1;U>=0;U--)va(e.doc,"",l[U].from,l[U].to,"+delete");rn(e)})}function Jo(e,n,u){var l=$e(e.text,n+u,u);return l<0||l>e.text.length?null:l}function Xo(e,n,u){var l=Jo(e,n.ch,u);return l==null?null:new it(n.line,l,u<0?"after":"before")}function cl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=O(u,n.doc.direction);if(y){var F=f<0?Ct(y):y[0],U=f<0==(F.level==1),H=U?"after":"before",_;if(F.level>0||n.doc.direction=="rtl"){var me=Zn(n,u);_=f<0?u.text.length-1:0;var Ee=Hn(n,me,_).top;_=Ke(function(Ne){return Hn(n,me,Ne).top==Ee},f<0==(F.level==1)?F.from:F.to-1,_),H=="before"&&(_=Jo(u,_,1))}else _=f<0?F.to:F.from;return new it(l,_,H)}}return new it(l,f<0?u.text.length:0,f<0?"before":"after")}function zu(e,n,u,l){var f=O(n,e.doc.direction);if(!f)return Xo(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 y=Y(f,u.ch,u.sticky),F=f[y];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return Xo(n,u,l);var U=function(ft,gt){return Jo(n,ft instanceof it?ft.ch:ft,gt)},H,_=function(ft){return e.options.lineWrapping?(H=H||Zn(e,n),su(e,n,H,ft)):{begin:0,end:n.text.length}},me=_(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<=me.end:Ne>=F.from&&Ne>=me.begin)){var ke=Ee?"before":"after";return new it(u.line,Ne,ke)}}var Ye=function(ft,gt,dt){for(var xt=function(Ut,ir){return ir?new it(u.line,U(Ut,1),"before"):new it(u.line,Ut,"after")};ft>=0&&ft<f.length;ft+=gt){var It=f[ft],Pt=gt>0==(It.level!=1),Wt=Pt?dt.begin:U(dt.end,-1);if(It.from<=Wt&&Wt<It.to||(Wt=Pt?It.from:U(It.to,-1),dt.begin<=Wt&&Wt<dt.end))return xt(Wt,Pt)}},tt=Ye(y+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,_(at)),tt)?tt:null}var to={selectAll:Go,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return na(e,function(n){if(n.empty()){var u=Ot(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:it(n.head.line+1,0)}:{from:n.head,to:it(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return na(e,function(n){return{from:it(n.from().line,0),to:st(e.doc,it(n.to().line+1,0))}})},delLineLeft:function(e){return na(e,function(n){return{from:it(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return na(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 na(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(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return ba(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Qo(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return mc(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/)?Qo(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 y=u[f].from(),F=Je(e.getLine(y.line),y.ch,l);n.push(Ft(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Dr(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=Ot(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new it(f.line,f.ch-1)),f.ch>0)f=new it(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),it(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Ot(e.doc,f.line-1).text;F&&(f=new it(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),it(f.line-1,F.length-1),f,"+transpose"))}}u.push(new tr(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Dr(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);rn(e)})},openLine:function(e){return e.replaceSelection(`
29
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ba(e,n){var u=Ot(e.doc,n),l=Wn(u);return l!=u&&(n=_t(l)),cl(!0,e,l,n,1)}function mc(e,n){var u=Ot(e.doc,n),l=Jl(u);return l!=u&&(n=_t(l)),cl(!0,e,u,n,-1)}function Qo(e,n){var u=ba(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=y&&n.ch;return it(u.line,F?0:y,u.sticky)}return u}function Zo(e,n,u){if(typeof n=="string"&&(n=to[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)!=rt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function xc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=vi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&vi(n,e.options.extraKeys,u,e)||vi(n,e.options.keyMap,u,e)}var _o=new ut;function ro(e,n,u,l){var f=e.state.keySeq;if(f){if(Wu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:_o.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),bc(e,f+" "+n,u,l))return!0}return bc(e,n,u,l)}function bc(e,n,u,l){var f=xc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&or(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(nt(u),Hs(e)),!!f}function Gu(e,n){var u=Hu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ro(e,"Shift-"+u,n,function(l){return Zo(e,l,!0)})||ro(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Zo(e,l)}):ro(e,u,n,function(l){return Zo(e,l)}):!1}function wc(e,n,u){return ro(e,"'"+u+"'",n,function(l){return Zo(e,l,!0)})}var qo=null;function $u(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!Oe(n,e))){b&&A<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=Gu(n,e);B&&(qo=l?u:null,!l&&u==88&&!Bn&&(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)&&Sc(n)}}function Sc(e){var n=e.display.lineDiv;De(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(re(n,"CodeMirror-crosshair"),z(document,"keyup",u),z(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Ku(e){e.keyCode==16&&(this.doc.sel.shift=!1),Oe(this,e)}function dl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(fi(n.display,e)||Oe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==qo){qo=null,nt(e);return}if(!(B&&(!e.which||e.which<10)&&Gu(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(wc(n,e,f)||n.display.input.onKeyPress(e))}}}var Ac=400,pl=function(e,n,u){this.time=e,this.pos=n,this.button=u};pl.prototype.compare=function(e,n,u){return this.time+Ac>e&&Nt(n,this.pos)==0&&u==this.button};var no,io;function Ec(e,n){var u=+new Date;return io&&io.compare(u,e,n)?(no=io=null,"triple"):no&&no.compare(u,e,n)?(io=new pl(u,e,n),no=null,"double"):(no=new pl(u,e,n),io=null,"single")}function Yu(e){var n=this,u=n.display;if(!(Oe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,fi(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!hl(n,e)){var l=Yi(n,e),f=Jr(e),y=l?Ec(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Cc(n,f,l,y,e))&&(f==1?l?Tc(n,l,y,e):Rt(e)==u.scroller&&nt(e):f==2?(l&&Wo(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(J?n.display.input.onContextMenu(e):Ua(n)))}}}function Cc(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,ro(e,fl(y,f),f,function(F){if(typeof F=="string"&&(F=to[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=rt}finally{e.state.suppressEdits=!1}return U})}function Oc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"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 Tc(e,n,u,l){b?setTimeout(et(zs,e),0):e.curOp.focus=Fe();var f=Oc(e,u,l),y=e.doc.sel,F;e.options.dragDrop&&vr&&!e.isReadOnly()&&u=="single"&&(F=y.contains(n))>-1&&(Nt((F=y.ranges[F]).from(),n)<0||n.xRel>0)&&(Nt(F.to(),n)>0||n.xRel<0)?es(e,l,n,f):Pc(e,l,n,f)}function es(e,n,u,l){var f=e.display,y=!1,F=Nr(e,function(_){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ua(e)),z(f.wrapper.ownerDocument,"mouseup",F),z(f.wrapper.ownerDocument,"mousemove",U),z(f.scroller,"dragstart",H),z(f.scroller,"drop",F),y||(nt(_),l.addNew||Wo(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(_){y=y||Math.abs(n.clientX-_.clientX)+Math.abs(n.clientY-_.clientY)>=10},H=function(){return y=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Ju(e,n,u){if(u=="char")return new tr(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new tr(it(n.line,0),st(e.doc,it(n.line+1,0)));var l=u(e,n);return new tr(l.from,l.to)}function Pc(e,n,u,l){b&&Ua(e);var f=e.display,y=e.doc;nt(n);var F,U,H=y.sel,_=H.ranges;if(l.addNew&&!l.extend?(U=y.sel.contains(u),U>-1?F=_[U]:F=new tr(u,u)):(F=y.sel.primary(),U=y.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new tr(u,u)),u=Yi(e,n,!0,!0),U=-1;else{var me=Ju(e,u,l.unit);l.extend?F=rl(F,me.anchor,me.head,l.extend):F=me}l.addNew?U==-1?(U=_.length,Zr(y,Sn(e,_.concat([F]),U),{scroll:!1,origin:"*mouse"})):_.length>1&&_[U].empty()&&l.unit=="char"&&!l.extend?(Zr(y,Sn(e,_.slice(0,U).concat(_.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=y.sel):Ho(y,U,F,yt):(U=0,Zr(y,new vn([F],0),yt),H=y.sel);var Ee=u;function Ne(dt){if(Nt(Ee,dt)!=0)if(Ee=dt,l.unit=="rectangle"){for(var xt=[],It=e.options.tabSize,Pt=Je(Ot(y,u.line).text,u.ch,It),Wt=Je(Ot(y,dt.line).text,dt.ch,It),Ut=Math.min(Pt,Wt),ir=Math.max(Pt,Wt),ct=Math.min(u.line,dt.line),Br=Math.min(e.lastLine(),Math.max(u.line,dt.line));ct<=Br;ct++){var fn=Ot(y,ct).text,Tr=pt(fn,Ut,It);Ut==ir?xt.push(new tr(it(ct,Tr),it(ct,Tr))):fn.length>Tr&&xt.push(new tr(it(ct,Tr),it(ct,pt(fn,ir,It))))}xt.length||xt.push(new tr(u,u)),Zr(y,Sn(e,H.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var cn=F,Ur=Ju(e,dt,l.unit),Rr=cn.anchor,Pr;Nt(Ur.anchor,Rr)>0?(Pr=Ur.head,Rr=_e(cn.from(),Ur.anchor)):(Pr=Ur.anchor,Rr=Ce(cn.to(),Ur.head));var gr=H.ranges.slice(0);gr[U]=Ic(e,new tr(st(y,Rr),Pr)),Zr(y,Sn(e,gr,U),yt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var xt=++Ye,It=Yi(e,dt,!0,l.unit=="rectangle");if(!!It)if(Nt(It,Ee)!=0){e.curOp.focus=Fe(),Ne(It);var Pt=ja(f,y);(It.line>=Pt.to||It.line<Pt.from)&&setTimeout(Nr(e,function(){Ye==xt&&tt(dt)}),150)}else{var Wt=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;Wt&&setTimeout(Nr(e,function(){Ye==xt&&(f.scroller.scrollTop+=Wt,tt(dt))}),50)}}function at(dt){e.state.selectingText=!1,Ye=1/0,dt&&(nt(dt),f.input.focus()),z(f.wrapper.ownerDocument,"mousemove",ft),z(f.wrapper.ownerDocument,"mouseup",gt),y.history.lastSelOrigin=null}var ft=Nr(e,function(dt){dt.buttons===0||!Jr(dt)?at(dt):tt(dt)}),gt=Nr(e,at);e.state.selectingText=gt,N(f.wrapper.ownerDocument,"mousemove",ft),N(f.wrapper.ownerDocument,"mouseup",gt)}function Ic(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Nt(u,l)==0&&u.sticky==l.sticky)return n;var y=O(f);if(!y)return n;var F=Y(y,u.ch,u.sticky),U=y[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==y.length)return n;var _;if(l.line!=u.line)_=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var me=Y(y,l.ch,l.sticky),Ee=me-F||(l.ch-u.ch)*(U.level==1?-1:1);me==H-1||me==H?_=Ee<0:_=Ee>0}var Ne=y[H+(_?-1:0)],ke=_==(Ne.level==1),Ye=ke?Ne.from:Ne.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new tr(new it(u.line,Ye,tt),l)}function Xu(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&nt(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(y>U.bottom||!Ve(e,u))return bt(n);y-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var _=F.gutters.childNodes[H];if(_&&_.getBoundingClientRect().right>=f){var me=Vn(e.doc,y),Ee=e.display.gutterSpecs[H];return ae(e,u,e,me,Ee.className,n),bt(n)}}}function hl(e,n){return Xu(e,n,"gutterClick",!0)}function Qu(e,n){fi(e.display,n)||Zu(e,n)||Oe(e,n,"contextmenu")||J||e.display.input.onContextMenu(n)}function Zu(e,n){return Ve(e,"gutterContextMenu")?Xu(e,n,"gutterContextMenu",!1):!1}function _u(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),La(e)}var wa={toString:function(){return"CodeMirror.Init"}},qu={},ts={};function ef(e){var n=e.optionHandlers;function u(l,f,y,F){e.defaults[l]=f,y&&(n[l]=F?function(U,H,_){_!=wa&&y(U,H,_)}:y)}e.defineOption=u,e.Init=wa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Bo(l)},!0),u("indentUnit",2,Bo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){qi(l),La(l),Fr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],F=l.doc.first;l.doc.iter(function(H){for(var _=0;;){var me=H.text.indexOf(f,_);if(me==-1)break;_=me+f.length,y.push(it(F,me))}F++});for(var U=y.length-1;U>=0;U--)va(l.doc,f,y[U],it(y[U].line,y[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=wa&&l.refresh()}),u("specialCharPlaceholder",Os,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",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){_u(l),Do(l)},!0),u("keyMap","default",function(l,f,y){var F=Yo(f),U=y!=wa&&Yo(y);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,kc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ga(f,l.options.lineNumbers),Do(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?In(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return di(l)},!0),u("scrollbarStyle","native",function(l){Mo(l),di(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=Ga(l.options.gutters,f),Do(l)},!0),u("firstLineNumber",1,Do,!0),u("lineNumberFormatter",function(l){return l},Do,!0),u("showCursorWhenSelecting",!1,Pi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(fa(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,Fc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Pi,!0),u("singleCursorHeightPerLine",!0,Pi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,qi,!0),u("addModeClass",!1,qi,!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,qi,!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 Fc(e,n,u){var l=u&&u!=wa;if(!n!=!l){var f=e.display.dragFunctions,y=n?N:z;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function kc(e){e.options.lineWrapping?(De(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(re(e.display.wrapper,"CodeMirror-wrap"),Ss(e)),Vs(e),Fr(e),La(e),setTimeout(function(){return di(e)},100)}function pr(e,n){var u=this;if(!(this instanceof pr))return new pr(e,n);this.options=n=n?Qe(n):{},Qe(qu,n,!1);var l=n.value;typeof l=="string"?l=new un(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new pr.inputStyles[n.inputStyle](this),y=this.display=new nc(e,l,f,n);y.wrapper.CodeMirror=this,_u(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Mo(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&&y.input.focus(),b&&A<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Rc(this),ju(),Ii(this),this.curOp.forceUpdate=!0,Eu(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Io(u)},20):fa(this);for(var F in ts)ts.hasOwnProperty(F)&&ts[F](this,n[F],wa);Lo(this),n.finishInit&&n.finishInit(this);for(var U=0;U<vl.length;++U)vl[U](this);Fi(this),g&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}pr.defaults=qu,pr.optionHandlers=ts;function Rc(e){var n=e.display;N(n.scroller,"mousedown",Nr(e,Yu)),b&&A<11?N(n.scroller,"dblclick",Nr(e,function(H){if(!Oe(e,H)){var _=Yi(e,H);if(!(!_||hl(e,H)||fi(e.display,H))){nt(H);var me=e.findWordAt(_);Wo(e.doc,me.anchor,me.head)}}})):N(n.scroller,"dblclick",function(H){return Oe(e,H)||nt(H)}),N(n.scroller,"contextmenu",function(H){return Qu(e,H)}),N(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||Qu(e,H)});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 y(H){if(H.touches.length!=1)return!1;var _=H.touches[0];return _.radiusX<=1&&_.radiusY<=1}function F(H,_){if(_.left==null)return!0;var me=_.left-H.left,Ee=_.top-H.top;return me*me+Ee*Ee>20*20}N(n.scroller,"touchstart",function(H){if(!Oe(e,H)&&!y(H)&&!hl(e,H)){n.input.ensurePolled(),clearTimeout(u);var _=+new Date;n.activeTouch={start:_,moved:!1,prev:_-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(H){var _=n.activeTouch;if(_&&!fi(n,H)&&_.left!=null&&!_.moved&&new Date-_.start<300){var me=e.coordsChar(n.activeTouch,"page"),Ee;!_.prev||F(_,_.prev)?Ee=new tr(me,me):!_.prev.prev||F(_,_.prev.prev)?Ee=e.findWordAt(me):Ee=new tr(it(me.line,0),st(e.doc,it(me.line+1,0))),e.setSelection(Ee.anchor,Ee.head),e.focus(),nt(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Wa(e,n.scroller.scrollTop),Qi(e,n.scroller.scrollLeft,!0),ae(e,"scroll",e))}),N(n.scroller,"mousewheel",function(H){return wu(e,H)}),N(n.scroller,"DOMMouseScroll",function(H){return wu(e,H)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){Oe(e,H)||Gt(H)},over:function(H){Oe(e,H)||(vc(e,H),Gt(H))},start:function(H){return hc(e,H)},drop:Nr(e,pc),leave:function(H){Oe(e,H)||Uu(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Ku.call(e,H)}),N(U,"keydown",Nr(e,$u)),N(U,"keypress",Nr(e,dl)),N(U,"focus",function(H){return Io(e,H)}),N(U,"blur",function(H){return fa(e,H)})}var vl=[];pr.defineInitHook=function(e){return vl.push(e)};function Sa(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=en(e,n).state:u="prev");var F=e.options.tabSize,U=Ot(f,n),H=Je(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var _=U.text.match(/^\s*/)[0],me;if(!l&&!/\S/.test(U.text))me=0,u="not";else if(u=="smart"&&(me=f.mode.indent(y,U.text.slice(_.length),U.text),me==rt||me>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?me=Je(Ot(f,n-1).text,null,F):me=0:u=="add"?me=H+e.options.indentUnit:u=="subtract"?me=H-e.options.indentUnit:typeof u=="number"&&(me=H+u),me=Math.max(0,me);var Ee="",Ne=0;if(e.options.indentWithTabs)for(var ke=Math.floor(me/F);ke;--ke)Ne+=F,Ee+=" ";if(Ne<me&&(Ee+=Ft(me-Ne)),Ee!=_)return va(f,Ee,it(n,0),it(n,_.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<_.length){var at=it(n,_.length);Ho(f,Ye,new tr(at,at));break}}}var An=null;function ao(e){An=e}function gl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,H=ai(n),_=null;if(U&&l.ranges.length>1)if(An&&An.text.join(`
30
- `)==n){if(l.ranges.length%An.text.length==0){_=[];for(var me=0;me<An.text.length;me++)_.push(y.splitLines(An.text[me]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(_=Ht(H,function(ft){return[ft]}));for(var Ee=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var ke=l.ranges[Ne],Ye=ke.from(),tt=ke.to();ke.empty()&&(u&&u>0?Ye=it(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=it(tt.line,Math.min(Ot(y,tt.line).text.length,tt.ch+Ct(H).length)):U&&An&&An.lineWise&&An.text.join(`
26
+ height: `+(n.bottom-n.top+fi(e)+u.barHeight)+`px;
27
+ left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function cu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?it(n.line,n.ch+1,"before"):n,n=n.ch?it(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var F=!1,U=Gn(e,n),H=!u||u==n?U:Gn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var _=Gs(e,f),me=e.doc.scrollTop,Ee=e.doc.scrollLeft;if(_.scrollTop!=null&&(Wa(e,_.scrollTop),Math.abs(e.doc.scrollTop-me)>1&&(F=!0)),_.scrollLeft!=null&&(Ji(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-Ee)>1&&(F=!0)),!F)break}return f}function du(e,n){var u=Gs(e,n);u.scrollTop!=null&&Wa(e,u.scrollTop),u.scrollLeft!=null&&Ji(e,u.scrollLeft)}function Gs(e,n){var u=e.display,l=sa(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=Ma(e),F={};n.bottom-n.top>y&&(n.bottom=n.top+y);var U=e.doc.height+Is(u),H=n.top<l,_=n.bottom>U-l;if(n.top<f)F.scrollTop=H?0:n.top;else if(n.bottom>f+y){var me=Math.min(n.top,(_?U:n.bottom)-y);me!=f&&(F.scrollTop=me)}var Ee=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ee,ke=Hi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?F.scrollLeft=0:n.left<Ne?F.scrollLeft=Math.max(0,n.left+Ee-(Ye?0:10)):n.right>ke+Ne-3&&(F.scrollLeft=n.right+(Ye?0:10)-ke),F}function $s(e,n){n!=null&&(ko(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function tn(e){ko(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Va(e,n,u){(n!=null||u!=null)&&ko(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Yi(e,n){ko(e),e.curOp.scrollToPos=n}function ko(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=ou(e,n.from),l=ou(e,n.to);pu(e,u,l,n.margin)}}function pu(e,n,u,l){var f=Gs(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});Va(e,f.scrollLeft,f.scrollTop)}function Wa(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Xs(e,{top:n}),hu(e,n,!0),c&&Xs(e),$n(e,100))}function hu(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 Ji(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,xu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function ua(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Is(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+fi(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Xi=function(e,n,u){this.cm=u;var l=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Xi.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 y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"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}},Xi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Xi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Xi.prototype.zeroWidthHack=function(){var e=C&&!ee?"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},Xi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Xi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ha=function(){};Ha.prototype.update=function(){return{bottom:0,right:0}},Ha.prototype.setScrollLeft=function(){},Ha.prototype.setScrollTop=function(){},Ha.prototype.clear=function(){};function ci(e,n){n||(n=ua(e));var u=e.display.barWidth,l=e.display.barHeight;Ro(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Fo(e),Ro(e,ua(e)),u=e.display.barWidth,l=e.display.barHeight}function Ro(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 pn={native:Xi,null:Ha};function Mo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&te(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new pn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),N(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"?Ji(e,n):Wa(e,n)},e),e.display.scrollbars.addClass&&De(e.display.wrapper,e.display.scrollbars.addClass)}var di=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:++di,markArrays:null},_l(e.curOp)}function Pi(e){var n=e.curOp;n&&Ts(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;kd(u)})}function kd(e){for(var n=e.ops,u=0;u<n.length;u++)Ks(n[u]);for(var l=0;l<n.length;l++)vu(n[l]);for(var f=0;f<n.length;f++)gu(n[f]);for(var y=0;y<n.length;y++)Tr(n[y]);for(var F=0;F<n.length;F++)tc(n[F])}function Ks(e){var n=e.cm,u=n.display;yu(n),e.updateMaxLine&&ws(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 Qi(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&Js(e.cm,e.update)}function gu(e){var n=e.cm,u=n.display;e.updatedDisplay&&Fo(n),e.barMeasure=ua(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=wo(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+fi(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Hi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Tr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Ji(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&ci(n,e.barMeasure),e.updatedDisplay&&Zs(n,e.barMeasure),e.selectionChanged&&Ws(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Hs(e.cm)}function tc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&mu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&hu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ji(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(n,st(l,e.scrollToPos.from),st(l,e.scrollToPos.to),e.scrollToPos.margin);ec(n,f)}var y=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(y)for(var U=0;U<y.length;++U)y[U].lines.length||oe(y[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&oe(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Br(e,n){if(e.curOp)return n();Ti(e);try{return n()}finally{Pi(e)}}function Ur(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ti(e);try{return n.apply(e,arguments)}finally{Pi(e)}}}function kr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{Pi(this)}}}function pr(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 $n(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,tt(rc,e))}function rc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=qr(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(y){if(l.line>=e.display.viewFrom){var F=y.styles,U=y.text.length>e.options.maxHighlightLength?Jr(n.mode,l.state):null,H=qt(e,y,l,!0);U&&(l.state=U),y.styles=H.styles;var _=y.styleClasses,me=H.classes;me?y.styleClasses=me:_&&(y.styleClasses=null);for(var Ee=!F||F.length!=y.styles.length||_!=me&&(!_||!me||_.bgClass!=me.bgClass||_.textClass!=me.textClass),Ne=0;!Ee&&Ne<F.length;++Ne)Ee=F[Ne]!=y.styles[Ne];Ee&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&ps(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return $n(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Br(e,function(){for(var y=0;y<f.length;y++)_n(e,f[y],"text")})}}var Qi=function(e,n,u){var l=e.display;this.viewport=n,this.visible=ja(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Hi(e),this.force=u,this.dims=Us(e),this.events=[]};Qi.prototype.signal=function(e,n){Ve(e,n)&&this.events.push(arguments)},Qi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)oe.apply(null,this.events[e])};function yu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=fi(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=fi(e)+"px",n.scrollbarsClipped=!0)}function za(e){if(e.hasFocus())return null;var n=Fe();if(!n||!se(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&se(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Ys(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&se(document.body,e.anchorNode)&&se(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 Js(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Ci(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&&Oo(e)==0)return!1;Lo(e)&&(Ci(e),n.dims=Us(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ai&&(y=Pa(e.doc,y),F=bs(e.doc,F));var U=y!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;qf(e,y,F),u.viewOffset=li(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=Oo(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var _=za(e);return H>4&&(u.lineDiv.style.display="none"),nc(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Ys(_),ae(u.cursorDiv),ae(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,$n(e,400)),u.updateLineNumbers=null,!0}function mu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Hi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Is(e.display)-Ma(e),u.top)}),n.visible=ja(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=ja(e.display,e.doc,u));if(!Js(e,n))break;Fo(e);var f=ua(e);Oi(e),ci(e,f),Zs(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 Xs(e,n){var u=new Qi(e,n);if(Js(e,u)){Fo(e),mu(e,u);var l=ua(e);Oi(e),ci(e,l),Zs(e,l),u.finish()}}function nc(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,F=y.firstChild;function U(Ye){var et=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),et}for(var H=l.view,_=l.viewFrom,me=0;me<H.length;me++){var Ee=H[me];if(!Ee.hidden)if(!Ee.node||Ee.node.parentNode!=y){var Ne=er(e,Ee,_,u);y.insertBefore(Ne,F)}else{for(;F!=Ee.node;)F=U(F);var ke=f&&n!=null&&n<=_&&Ee.lineNumber;Ee.changes&&(pt(Ee.changes,"gutter")>-1&&(ke=!1),bo(e,Ee,_,u)),ke&&(ae(Ee.lineNumber),Ee.lineNumber.appendChild(document.createTextNode(oa(e.options,_)))),F=Ee.node.nextSibling}_+=Ee.size}for(;F;)F=U(F)}function Qs(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",or(e,"gutterChanged",e)}function Zs(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+fi(e)+"px"}function xu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Fn(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=y),u[F].gutterBackground&&(u[F].gutterBackground.style.left=y));var U=u[F].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Lo(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=oa(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(xe("div",[xe("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,F=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Qs(e.display),!0}return!1}function Ga(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],F=null;if(typeof y!="string"&&(F=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(e){var n=e.gutters,u=e.gutterSpecs;ae(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,F=f.style,U=n.appendChild(xe("div",null,"CodeMirror-gutter "+y));F&&(U.style.cssText=F),y=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",Qs(e)}function Do(e){bu(e.display),Fr(e),xu(e)}function ic(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=xe("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=xe("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=pe("div",null,"CodeMirror-code"),f.selectionDiv=xe("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=xe("div",null,"CodeMirror-cursors"),f.measure=xe("div",null,"CodeMirror-measure"),f.lineMeasure=xe("div",null,"CodeMirror-measure"),f.lineSpace=pe("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=pe("div",[f.lineSpace],"CodeMirror-lines");f.mover=xe("div",[y],null,"position: relative"),f.sizer=xe("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=xe("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=xe("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=xe("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=xe("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<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=Ga(l.gutters,l.lineNumbers),bu(f),u.init(f)}var No=0,pi=null;b?pi=-.53:c?pi=15:D?pi=-.7:j&&(pi=-1/3);function wu(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 nr(e){var n=wu(e);return n.x*=pi,n.y*=pi,n}function Su(e,n){var u=wu(n),l=u.x,f=u.y,y=pi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,y=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,_=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&_)){if(f&&C&&g){e:for(var me=n.target,Ee=F.view;me!=U;me=me.parentNode)for(var Ne=0;Ne<Ee.length;Ne++)if(Ee[Ne].node==me){e.display.currentWheelTarget=me;break e}}if(l&&!c&&!B&&y!=null){f&&_&&Wa(e,Math.max(0,U.scrollTop+f*y)),Ji(e,Math.max(0,U.scrollLeft+l*y)),(!f||f&&_)&&nt(n),F.wheelStartX=null;return}if(f&&y!=null){var ke=f*y,Ye=e.doc.scrollTop,et=Ye+F.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):et=Math.min(e.doc.height,et+ke+50),Xs(e,{top:Ye,bottom:et})}No<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,gt=ft&&F.wheelDY&&ft/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!gt&&(pi=(pi*No+gt)/(No+1),++No)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var hn=function(e,n){this.ranges=e,this.primIndex=n};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.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(!oi(u.anchor,l.anchor)||!oi(u.head,l.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new tr(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Bt(n,l.from())>=0&&Bt(e,l.to())<=0)return u}return-1};var tr=function(e,n){this.anchor=e,this.head=n};tr.prototype.from=function(){return _e(this.anchor,this.head)},tr.prototype.to=function(){return Ce(this.anchor,this.head)},tr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Sn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,ke){return Bt(Ne.from(),ke.from())}),u=pt(n,f);for(var y=1;y<n.length;y++){var F=n[y],U=n[y-1],H=Bt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var _=_e(U.from(),F.from()),me=Ce(U.to(),F.to()),Ee=U.empty()?F.from()==F.head:U.from()==U.head;y<=u&&--u,n.splice(--y,2,new tr(Ee?me:_,Ee?_:me))}}return new hn(n,u)}function Ii(e,n){return new hn([new tr(e,n||e)],0)}function Fi(e){return e.text?it(e.from.line+e.text.length-1,Ct(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,n){if(Bt(e,n.from)<0)return e;if(Bt(e,n.to)<=0)return Fi(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+=Fi(n).ch-n.to.ch),it(u,l)}function _s(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new tr(Au(f.anchor,n),Au(f.head,n)))}return Sn(e.cm,u,e.sel.primIndex)}function Eu(e,n,u){return e.line==n.line?it(u.line,e.ch-n.ch+u.ch):it(u.line+(e.line-n.line),e.ch)}function ac(e,n,u){for(var l=[],f=it(e.first,0),y=f,F=0;F<n.length;F++){var U=n[F],H=Eu(U.from,f,y),_=Eu(Fi(U),f,y);if(f=U.to,y=_,u=="around"){var me=e.sel.ranges[F],Ee=Bt(me.head,me.anchor)<0;l[F]=new tr(Ee?_:H,Ee?H:_)}else l[F]=new tr(H,H)}return new hn(l,e.sel.primIndex)}function Bo(e){e.doc.mode=bn(e.options,e.doc.modeOption),Zi(e)}function Zi(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,$n(e,100),e.state.modeGen++,e.curOp&&Fr(e)}function Uo(e,n){return n.from.ch==0&&n.to.ch==0&&Ct(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function qs(e,n,u,l){function f(gt){return u?u[gt]:null}function y(gt,ct,xt){Ei(gt,ct,xt,l),or(gt,"change",gt,n)}function F(gt,ct){for(var xt=[],Ft=gt;Ft<ct;++Ft)xt.push(new ji(_[Ft],f(Ft),l));return xt}var U=n.from,H=n.to,_=n.text,me=Ot(e,U.line),Ee=Ot(e,H.line),Ne=Ct(_),ke=f(_.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,F(0,_.length)),e.remove(_.length,e.size-_.length);else if(Uo(e,n)){var et=F(0,_.length-1);y(Ee,Ee.text,ke),Ye&&e.remove(U.line,Ye),et.length&&e.insert(U.line,et)}else if(me==Ee)if(_.length==1)y(me,me.text.slice(0,U.ch)+Ne+me.text.slice(H.ch),ke);else{var at=F(1,_.length-1);at.push(new ji(Ne+me.text.slice(H.ch),ke,l)),y(me,me.text.slice(0,U.ch)+_[0],f(0)),e.insert(U.line+1,at)}else if(_.length==1)y(me,me.text.slice(0,U.ch)+_[0]+Ee.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{y(me,me.text.slice(0,U.ch)+_[0],f(0)),y(Ee,Ne+Ee.text.slice(H.ch),ke);var ft=F(1,_.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ft)}or(e,"change",e,n)}function ki(e,n,u){function l(f,y,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=y){var _=F&&H.sharedHist;u&&!_||(n(H.doc,_),l(H.doc,f,_))}}}l(e,null,!0)}function Cu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,js(e),Bo(e),el(e),e.options.direction=n.direction,e.options.lineWrapping||ws(e),e.options.mode=n.modeOption,Fr(e)}function el(e){(e.doc.direction=="rtl"?De:te)(e.display.lineDiv,"CodeMirror-rtl")}function $a(e){Br(e,function(){el(e),Fr(e)})}function Ka(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 qn(e,n){var u={from:ue(n.from),to:Fi(n),text:ai(e,n.from,n.to)};return Ja(e,u,n.from.line,n.to.line+1),ki(e,function(l){return Ja(l,u,n.from.line,n.to.line+1)},!0),u}function Ou(e){for(;e.length;){var n=Ct(e);if(n.ranges)e.pop();else break}}function Tu(e,n){if(n)return Ou(e.done),Ct(e.done);if(e.done.length&&!Ct(e.done).ranges)return Ct(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ct(e.done)}function Pu(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Tu(f,f.lastOp==l)))U=Ct(F.changes),Bt(n.from,n.to)==0&&Bt(n.from,U.to)==0?U.to=Fi(n):F.changes.push(qn(e,n));else{var H=Ct(f.done);for((!H||!H.ranges)&&Ya(e.sel,f.done),F={changes:[qn(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=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||oe(e,"historyAdded")}function Iu(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 oc(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||Iu(e,y,Ct(f.done),n))?f.done[f.done.length-1]=n:Ya(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Ya(e,n){var u=Ct(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Ja(e,n,u,l){var f=n["spans_"+e.id],y=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]={}))[y]=F.markedSpans),++y})}function sc(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 jo(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(sc(u[f]));return l}function Vo(e,n){var u=jo(e,n),l=Gl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],F=l[f];if(y&&F){e:for(var U=0;U<F.length;++U){for(var H=F[U],_=0;_<y.length;++_)if(y[_].marker==H.marker)continue e;y.push(H)}}else F&&(u[f]=F)}return u}function fa(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?hn.prototype.deepCopy.call(y):y);continue}var F=y.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var _=F[H],me=void 0;if(U.push({from:_.from,to:_.to,text:_.text}),n)for(var Ee in _)(me=Ee.match(/^spans_(\d+)$/))&&pt(n,Number(me[1]))>-1&&(Ct(U)[Ee]=_[Ee],delete _[Ee])}}return l}function tl(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Bt(n,f)<0;y!=Bt(u,f)<0?(f=n,n=u):y!=Bt(n,u)<0&&(n=u)}return new tr(f,n)}else return new tr(u||n,n)}function Wo(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Xr(e,new hn([tl(e.sel.primary(),n,u,f)],0),l)}function Fu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=tl(e.sel.ranges[y],n[y],null,f);var F=Sn(e.cm,l,e.sel.primIndex);Xr(e,F,u)}function Ho(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Xr(e,Sn(e.cm,f,e.sel.primIndex),l)}function rl(e,n,u,l){Xr(e,Ii(n,u),l)}function lc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new tr(st(e,f[y].anchor),st(e,f[y].head))},origin:u&&u.origin};return oe(e,"beforeSelectionChange",e,l),e.cm&&oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Sn(e.cm,l.ranges,l.ranges.length-1):n}function ku(e,n,u){var l=e.history.done,f=Ct(l);f&&f.ranges?(l[l.length-1]=n,zo(e,n,u)):Xr(e,n,u)}function Xr(e,n,u){zo(e,n,u),oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function zo(e,n,u){(Ve(e,"beforeSelectionChange")||e.cm&&Ve(e.cm,"beforeSelectionChange"))&&(n=lc(e,n,u));var l=u&&u.bias||(Bt(n.primary().head,e.sel.primary().head)<0?-1:1);Ru(e,Lu(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&tn(e.cm)}function Ru(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),or(e,"cursorActivity",e))}function Mu(e){Ru(e,Lu(e,e.sel,null,!1))}function Lu(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var F=n.ranges[y],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],H=Xa(e,F.anchor,U&&U.anchor,u,l),_=Xa(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||_!=F.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new tr(H,_))}return f?Sn(e.cm,f,n.primIndex):n}function ca(e,n,u,l,f){var y=Ot(e,n.line);if(y.markedSpans)for(var F=0;F<y.markedSpans.length;++F){var U=y.markedSpans[F],H=U.marker,_="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,me="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(_?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(me?U.to>=n.ch:U.to>n.ch))){if(f&&(oe(H,"beforeCursorEnter"),H.explicitlyCleared))if(y.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ee=H.find(l<0?1:-1),Ne=void 0;if((l<0?me:_)&&(Ee=Du(e,Ee,-l,Ee&&Ee.line==n.line?y:null)),Ee&&Ee.line==n.line&&(Ne=Bt(Ee,u))&&(l<0?Ne<0:Ne>0))return ca(e,Ee,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?_:me)&&(ke=Du(e,ke,l,ke.line==n.line?y:null)),ke?ca(e,ke,n,l,f):null}}return n}function Xa(e,n,u,l,f){var y=l||1,F=ca(e,n,u,y,f)||!f&&ca(e,n,u,y,!0)||ca(e,n,u,-y,f)||!f&&ca(e,n,u,-y,!0);return F||(e.cantEdit=!0,it(e.first,0))}function Du(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?st(e,it(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?it(n.line+1,0):null:new it(n.line,n.ch+u)}function Go(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),lt)}function nl(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,y,F,U){f&&(l.from=st(e,f)),y&&(l.to=st(e,y)),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 da(e,n,u){if(e.cm){if(!e.cm.curOp)return Ur(e.cm,da)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ve(e,"beforeChange")||e.cm&&Ve(e.cm,"beforeChange"))&&(n=nl(e,n,!0),!n))){var l=Df&&!u&&Kl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)_i(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else _i(e,n)}}function _i(e,n){if(!(n.text.length==1&&n.text[0]==""&&Bt(n.from,n.to)==0)){var u=_s(e,n);Pu(e,n,u,e.cm?e.cm.curOp.id:NaN),Qa(e,n,u,Gl(e,n));var l=[];ki(e,function(f,y){!y&&pt(l,f.history)==-1&&(ol(f.history,n),l.push(f.history)),Qa(f,n,null,Gl(f,n))})}}function kn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,F=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,_=0;_<U.length&&(y=U[_],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));_++);if(_!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=U.pop(),y.ranges){if(Ya(y,H),u&&!y.equals(e.sel)){Xr(e,y,{clearRedo:!1});return}F=y}else if(l){U.push(y);return}else break;var me=[];Ya(F,H),H.push({changes:me,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Ee=Ve(e,"beforeChange")||e.cm&&Ve(e.cm,"beforeChange"),Ne=function(et){var at=y.changes[et];if(at.origin=n,Ee&&!nl(e,at,!1))return U.length=0,{};me.push(qn(e,at));var ft=et?_s(e,at):Ct(U);Qa(e,at,ft,Vo(e,at)),!et&&e.cm&&e.cm.scrollIntoView({from:at.from,to:Fi(at)});var gt=[];ki(e,function(ct,xt){!xt&&pt(gt,ct.history)==-1&&(ol(ct.history,at),gt.push(ct.history)),Qa(ct,at,null,Vo(ct,at))})},ke=y.changes.length-1;ke>=0;--ke){var Ye=Ne(ke);if(Ye)return Ye.v}}}}function il(e,n){if(n!=0&&(e.first+=n,e.sel=new hn(Wt(e.sel.ranges,function(f){return new tr(it(f.anchor.line+n,f.anchor.ch),it(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Fr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)_n(e.cm,l,"gutter")}}function Qa(e,n,u,l){if(e.cm&&!e.cm.curOp)return Ur(e.cm,Qa)(e,n,u,l);if(n.to.line<e.first){il(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);il(e,f),n={from:it(e.first,0),to:it(n.to.line+f,n.to.ch),text:[Ct(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:it(y,Ot(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ai(e,n.from,n.to),u||(u=_s(e,n)),e.cm?uc(e.cm,n,l):qs(e,n,l),zo(e,u,lt),e.cantEdit&&Xa(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function uc(e,n,u){var l=e.doc,f=e.display,y=n.from,F=n.to,U=!1,H=y.line;e.options.lineWrapping||(H=_t(Hn(Ot(l,y.line))),l.iter(H,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ae(e),qs(l,n,u,uu(e)),e.options.lineWrapping||(l.iter(H,y.line+n.text.length,function(ke){var Ye=Ui(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Lf(l,y.line),$n(e,400);var _=n.text.length-(F.line-y.line)-1;n.full?Fr(e):y.line==F.line&&n.text.length==1&&!Uo(e.doc,n)?_n(e,y.line,"text"):Fr(e,y.line,F.line+1,_);var me=Ve(e,"changes"),Ee=Ve(e,"change");if(Ee||me){var Ne={from:y,to:F,text:n.text,removed:n.removed,origin:n.origin};Ee&&or(e,"change",e,Ne),me&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function pa(e,n,u,l,f){var y;l||(l=u),Bt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),da(e,{from:u,to:l,text:n,origin:f})}function al(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Nu(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],F=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var U=0;U<y.ranges.length;U++)al(y.ranges[U].anchor,n,u,l),al(y.ranges[U].head,n,u,l);continue}for(var H=0;H<y.changes.length;++H){var _=y.changes[H];if(u<_.from.line)_.from=it(_.from.line+l,_.from.ch),_.to=it(_.to.line+l,_.to.ch);else if(n<=_.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function ol(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Nu(e.done,u,l,f),Nu(e.undone,u,l,f)}function qi(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=Ot(e,ot(e,n)):f=_t(n),f==null?null:(l(y,f)&&e.cm&&_n(e.cm,f,u),y)}function ha(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}ha.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,Vi(f),or(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 va(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}va.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 y=Math.min(n,f-e),F=l.height;if(l.removeInner(e,y),this.height-=F-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ha))){var U=[];this.collapse(U),this.children=[new ha(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],y=f.chunkSize();if(e<=y){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 H=new ha(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new va(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 va(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],y=f.chunkSize();if(e<y){var F=Math.min(n,y-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=y}}};var Za=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};Za.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=_t(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 y=Et(this);wn(u,Math.max(0,u.height-y)),e&&(Br(e,function(){sl(e,u,-y),_n(e,l,"widget")}),or(e,"lineWidgetCleared",e,this,l))}},Za.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Et(this)-n;!f||(si(this.doc,l)||wn(l,l.height+f),u&&Br(u,function(){u.curOp.forceUpdate=!0,sl(u,l,f),or(u,"lineWidgetChanged",u,e,_t(l))}))},Le(Za);function sl(e,n,u){li(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&$s(e,u)}function fc(e,n,u,l){var f=new Za(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),qi(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,y&&!si(e,F)){var H=li(F)<e.scrollTop;wn(F,F.height+Et(f)),H&&$s(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&or(y,"lineWidgetAdded",y,f,typeof n=="number"?n:_t(n)),f}var $o=0,ei=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++$o};ei.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ti(e),Ve(this,"clear")){var u=this.find();u&&or(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var F=this.lines[y],U=Oa(F.markedSpans,this);e&&!this.collapsed?_n(e,_t(F),"text"):e&&(U.to!=null&&(f=_t(F)),U.from!=null&&(l=_t(F))),F.markedSpans=Uf(F.markedSpans,U),U.from==null&&this.collapsed&&!si(this.doc,F)&&e&&wn(F,sa(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var _=Hn(this.lines[H]),me=Ui(_);me>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=me,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Fr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Mu(e.doc)),e&&or(e,"markerCleared",e,this,l,f),n&&Pi(e),this.parent&&this.parent.clear()}},ei.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],F=Oa(y.markedSpans,this);if(F.from!=null&&(u=it(n?y:_t(y),F.from),e==-1))return u;if(F.to!=null&&(l=it(n?y:_t(y),F.to),e==1))return l}return u&&{from:u,to:l}},ei.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Br(l,function(){var f=n.line,y=_t(n.line),F=ks(l,y);if(F&&(Ls(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!si(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Et(u)-U;H&&wn(f,f.height+H)}or(l,"markerChanged",l,e)})},ei.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)},ei.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)}},Le(ei);function ea(e,n,u,l,f){if(l&&l.shared)return cc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Ur(e.cm,ea)(e,n,u,l,f);var y=new ei(e,f),F=Bt(n,u);if(l&&Qe(l,y,!1),F>0||F==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=pe("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(mo(e,n.line,n,u,y)||n.line!=u.line&&mo(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bf()}y.addToHistory&&Pu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,_;if(e.iter(U,u.line+1,function(Ee){H&&y.collapsed&&!H.options.lineWrapping&&Hn(Ee)==H.display.maxLine&&(_=!0),y.collapsed&&U!=n.line&&wn(Ee,0),Pd(Ee,new yo(y,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),y.collapsed&&e.iter(n.line,u.line+1,function(Ee){si(e,Ee)&&wn(Ee,0)}),y.clearOnEnter&&N(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Nf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++$o,y.atomic=!0),H){if(_&&(H.curOp.updateMaxLine=!0),y.collapsed)Fr(H,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var me=n.line;me<=u.line;me++)_n(H,me,"text");y.atomic&&Mu(H.doc),or(H,"markerAdded",H,y)}return y}var ga=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ga.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();or(this,"clear")}},ga.prototype.find=function(e,n){return this.primary.find(e,n)},Le(ga);function cc(e,n,u,l,f){l=Qe(l),l.shared=!1;var y=[ea(e,n,u,l,f)],F=y[0],U=l.widgetNode;return ki(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),y.push(ea(H,st(H,n),st(H,u),l,f));for(var _=0;_<H.linked.length;++_)if(H.linked[_].isParent)return;F=Ct(y)}),new ga(y,F)}function Bu(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),function(n){return n.parent})}function ll(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),F=e.clipPos(f.to);if(Bt(y,F)){var U=ea(e,y,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function dc(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];ki(f.primary.doc,function(H){return y.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];pt(y,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var pc=0,fn=function(e,n,u,l,f){if(!(this instanceof fn))return new fn(e,n,u,l,f);u==null&&(u=0),va.call(this,[new ha([new ji("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=it(u,0);this.sel=Ii(y),this.history=new Ka(null),this.id=++pc,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:y,to:y,text:e}),Xr(this,Ii(y),lt)};fn.prototype=Tt(va.prototype,{constructor:fn,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=Si(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:pr(function(e){var n=it(this.first,0),u=this.first+this.size-1;da(this,{from:n,to:it(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Va(this.cm,0,0),Xr(this,Ii(n),lt)}),replaceRange:function(e,n,u,l){n=st(this,n),u=u?st(this,u):n,pa(this,e,n,u,l)},getRange:function(e,n,u){var l=ai(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(Qn(this,e))return Ot(this,e)},getLineNumber:function(e){return _t(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Hn(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:pr(function(e,n,u){rl(this,st(this,typeof e=="number"?it(e,n||0):e),null,u)}),setSelection:pr(function(e,n,u){rl(this,st(this,e),st(this,n||e),u)}),extendSelection:pr(function(e,n,u){Wo(this,st(this,e),n&&st(this,n),u)}),extendSelections:pr(function(e,n){Fu(this,Qt(this,e),n)}),extendSelectionsBy:pr(function(e,n){var u=Wt(this.sel.ranges,e);Fu(this,Qt(this,u),n)}),setSelections:pr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new tr(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,Sn(this.cm,l,n),u)}}),addSelection:pr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new tr(st(this,e),st(this,n||e))),Xr(this,Sn(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=ai(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=ai(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:pr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var F=f.ranges[y];l[y]={from:F.from(),to:F.to(),text:this.splitLines(e[y]),origin:u}}for(var U=n&&n!="end"&&ac(this,l,n),H=l.length-1;H>=0;H--)da(this,l[H]);U?ku(this,U):this.cm&&tn(this.cm)}),undo:pr(function(){kn(this,"undo")}),redo:pr(function(){kn(this,"redo")}),undoSelection:pr(function(){kn(this,"undo",!0)}),redoSelection:pr(function(){kn(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 Ka(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:fa(this.history.done),undone:fa(this.history.undone)}},setHistory:function(e){var n=this.history=new Ka(this.history);n.done=fa(e.done.slice(0),null,!0),n.undone=fa(e.undone.slice(0),null,!0)},setGutterMarker:pr(function(e,n,u){return qi(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&K(f)&&(l.gutterMarkers=null),!0})}),clearGutter:pr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&qi(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(!Qn(this,e)||(n=e,e=Ot(this,e),!e))return null}else if(n=_t(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:pr(function(e,n,u){return qi(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(de(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:pr(function(e,n,u){return qi(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var F=y.match(de(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=y.slice(0,F.index)+(!F.index||U==y.length?"":" ")+y.slice(U)||null}else return!1;return!0})}),addLineWidget:pr(function(e,n,u){return fc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return ea(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),ea(this,e,e,u,"bookmark")},findMarksAt:function(e){e=st(this,e);var n=[],u=Ot(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(y){var F=y.markedSpans;if(F)for(var U=0;U<F.length;U++){var H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.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 y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),st(this,it(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 fn(Si(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 fn(Si(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}],ll(l,Bu(this)),l},unlinkDoc:function(e){if(e instanceof hr&&(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),dc(Bu(this));break}}if(e.history==this.history){var l=[e.id];ki(e,function(f){return l.push(f.id)},!0),e.history=new Ka(null),e.history.done=fa(this.history.done,l),e.history.undone=fa(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):ii(e)},lineSeparator:function(){return this.lineSep||`
28
+ `},setDirection:pr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&$a(this.cm))})}),fn.prototype.eachLine=fn.prototype.iter;var Uu=0;function hc(e){var n=this;if(ju(n),!(Oe(n,e)||ui(n.display,e))){nt(e),b&&(Uu=+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,y=Array(f),F=0,U=function(){++F==f&&Ur(n,function(){u=st(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(y.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};da(n.doc,ke),ku(n.doc,Ii(st(n.doc,u),st(n.doc,Fi(ke))))})()},H=function(ke,Ye){if(n.options.allowDropFileTypes&&pt(n.options.allowDropFileTypes,ke.type)==-1){U();return}var et=new FileReader;et.onerror=function(){return U()},et.onload=function(){var at=et.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){U();return}y[Ye]=at,U()},et.readAsText(ke)},_=0;_<l.length;_++)H(l[_],_);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 Ee;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ee=n.listSelections()),zo(n.doc,Ii(u,u)),Ee)for(var Ne=0;Ne<Ee.length;++Ne)pa(n.doc,"",Ee[Ne].anchor,Ee[Ne].head,"drag");n.replaceSelection(me,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function vc(e,n){if(b&&(!e.state.draggingText||+new Date-Uu<100)){zt(n);return}if(!(Oe(e,n)||ui(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=xe("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 gc(e,n){var u=$i(e,n);if(!!u){var l=document.createDocumentFragment();Vs(e,u,l),e.display.dragCursor||(e.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ko(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 y=0;y<u.length;y++)e(u[y])})}}var _a=!1;function Vu(){_a||(yc(),_a=!0)}function yc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ko(mc)},100))}),N(window,"blur",function(){return Ko(la)})}function mc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var vn={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"},qa=0;qa<10;qa++)vn[qa+48]=vn[qa+96]=String(qa);for(var eo=65;eo<=90;eo++)vn[eo]=String.fromCharCode(eo);for(var ya=1;ya<=12;ya++)vn[ya+111]=vn[ya+63235]="F"+ya;var ti={};ti.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"},ti.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"},ti.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"},ti.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"]},ti.default=C?ti.macDefault:ti.pcDefault;function Wu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))y=!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),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Rd(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=Wt(u.split(" "),Wu),y=0;y<f.length;y++){var F=void 0,U=void 0;y==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,y+1).join(" "),F="...");var H=n[U];if(!H)n[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var _ in n)e[_]=n[_];return e}function hi(e,n,u,l){n=Yo(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 hi(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var F=hi(e,n.fallthrough[y],u,l);if(F)return F}}}function Hu(e){var n=typeof e=="string"?e:vn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function ul(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Z?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Z?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function zu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=vn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),ul(u,e,n))}function Yo(e){return typeof e=="string"?ti[e]:e}function ta(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Bt(y.from,Ct(l).to)<=0;){var F=l.pop();if(Bt(F.from,y.from)<0){y.from=F.from;break}}l.push(y)}Br(e,function(){for(var U=l.length-1;U>=0;U--)pa(e.doc,"",l[U].from,l[U].to,"+delete");tn(e)})}function Jo(e,n,u){var l=Ge(e.text,n+u,u);return l<0||l>e.text.length?null:l}function Xo(e,n,u){var l=Jo(e,n.ch,u);return l==null?null:new it(n.line,l,u<0?"after":"before")}function fl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=O(u,n.doc.direction);if(y){var F=f<0?Ct(y):y[0],U=f<0==(F.level==1),H=U?"after":"before",_;if(F.level>0||n.doc.direction=="rtl"){var me=Zn(n,u);_=f<0?u.text.length-1:0;var Ee=zn(n,me,_).top;_=Ke(function(Ne){return zn(n,me,Ne).top==Ee},f<0==(F.level==1)?F.from:F.to-1,_),H=="before"&&(_=Jo(u,_,1))}else _=f<0?F.to:F.from;return new it(l,_,H)}}return new it(l,f<0?u.text.length:0,f<0?"before":"after")}function Gu(e,n,u,l){var f=O(n,e.doc.direction);if(!f)return Xo(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 y=Y(f,u.ch,u.sticky),F=f[y];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return Xo(n,u,l);var U=function(ft,gt){return Jo(n,ft instanceof it?ft.ch:ft,gt)},H,_=function(ft){return e.options.lineWrapping?(H=H||Zn(e,n),lu(e,n,H,ft)):{begin:0,end:n.text.length}},me=_(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<=me.end:Ne>=F.from&&Ne>=me.begin)){var ke=Ee?"before":"after";return new it(u.line,Ne,ke)}}var Ye=function(ft,gt,ct){for(var xt=function($t,vt){return vt?new it(u.line,U($t,1),"before"):new it(u.line,$t,"after")};ft>=0&&ft<f.length;ft+=gt){var Ft=f[ft],Pt=gt>0==(Ft.level!=1),It=Pt?ct.begin:U(ct.end,-1);if(Ft.from<=It&&It<Ft.to||(It=Pt?Ft.from:U(Ft.to,-1),ct.begin<=It&&It<ct.end))return xt(It,Pt)}},et=Ye(y+l,l,me);if(et)return et;var at=l>0?me.end:U(me.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(et=Ye(l>0?0:f.length-1,l,_(at)),et)?et:null}var to={selectAll:Go,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return ta(e,function(n){if(n.empty()){var u=Ot(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:it(n.head.line+1,0)}:{from:n.head,to:it(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return ta(e,function(n){return{from:it(n.from().line,0),to:st(e.doc,it(n.to().line+1,0))}})},delLineLeft:function(e){return ta(e,function(n){return{from:it(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return ta(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 ta(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(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return ma(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Qo(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return xc(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/)?Qo(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 y=u[f].from(),F=Je(e.getLine(y.line),y.ch,l);n.push(kt(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Br(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=Ot(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new it(f.line,f.ch-1)),f.ch>0)f=new it(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),it(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Ot(e.doc,f.line-1).text;F&&(f=new it(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),it(f.line-1,F.length-1),f,"+transpose"))}}u.push(new tr(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Br(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);tn(e)})},openLine:function(e){return e.replaceSelection(`
29
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ma(e,n){var u=Ot(e.doc,n),l=Hn(u);return l!=u&&(n=_t(l)),fl(!0,e,l,n,1)}function xc(e,n){var u=Ot(e.doc,n),l=Xl(u);return l!=u&&(n=_t(l)),fl(!0,e,u,n,-1)}function Qo(e,n){var u=ma(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=y&&n.ch;return it(u.line,F?0:y,u.sticky)}return u}function Zo(e,n,u){if(typeof n=="string"&&(n=to[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)!=rt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function bc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=hi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&hi(n,e.options.extraKeys,u,e)||hi(n,e.options.keyMap,u,e)}var _o=new ut;function ro(e,n,u,l){var f=e.state.keySeq;if(f){if(Hu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:_o.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),wc(e,f+" "+n,u,l))return!0}return wc(e,n,u,l)}function wc(e,n,u,l){var f=bc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&or(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(nt(u),Ws(e)),!!f}function $u(e,n){var u=zu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ro(e,"Shift-"+u,n,function(l){return Zo(e,l,!0)})||ro(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return Zo(e,l)}):ro(e,u,n,function(l){return Zo(e,l)}):!1}function Sc(e,n,u){return ro(e,"'"+u+"'",n,function(l){return Zo(e,l,!0)})}var qo=null;function Ku(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!Oe(n,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=$u(n,e);B&&(qo=l?u:null,!l&&u==88&&!Un&&(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)&&Ac(n)}}function Ac(e){var n=e.display.lineDiv;De(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(te(n,"CodeMirror-crosshair"),z(document,"keyup",u),z(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),Oe(this,e)}function cl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ui(n.display,e)||Oe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==qo){qo=null,nt(e);return}if(!(B&&(!e.which||e.which<10)&&$u(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Sc(n,e,f)||n.display.input.onKeyPress(e))}}}var Ec=400,dl=function(e,n,u){this.time=e,this.pos=n,this.button=u};dl.prototype.compare=function(e,n,u){return this.time+Ec>e&&Bt(n,this.pos)==0&&u==this.button};var no,io;function Cc(e,n){var u=+new Date;return io&&io.compare(u,e,n)?(no=io=null,"triple"):no&&no.compare(u,e,n)?(io=new dl(u,e,n),no=null,"double"):(no=new dl(u,e,n),io=null,"single")}function Ju(e){var n=this,u=n.display;if(!(Oe(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(!pl(n,e)){var l=$i(n,e),f=Kr(e),y=l?Cc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Oc(n,f,l,y,e))&&(f==1?l?Pc(n,l,y,e):Mt(e)==u.scroller&&nt(e):f==2?(l&&Wo(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(J?n.display.input.onContextMenu(e):Ua(n)))}}}function Oc(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,ro(e,ul(y,f),f,function(F){if(typeof F=="string"&&(F=to[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=rt}finally{e.state.suppressEdits=!1}return U})}function Tc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"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 Pc(e,n,u,l){b?setTimeout(tt(Hs,e),0):e.curOp.focus=Fe();var f=Tc(e,u,l),y=e.doc.sel,F;e.options.dragDrop&&gr&&!e.isReadOnly()&&u=="single"&&(F=y.contains(n))>-1&&(Bt((F=y.ranges[F]).from(),n)<0||n.xRel>0)&&(Bt(F.to(),n)>0||n.xRel<0)?es(e,l,n,f):Ic(e,l,n,f)}function es(e,n,u,l){var f=e.display,y=!1,F=Ur(e,function(_){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ua(e)),z(f.wrapper.ownerDocument,"mouseup",F),z(f.wrapper.ownerDocument,"mousemove",U),z(f.scroller,"dragstart",H),z(f.scroller,"drop",F),y||(nt(_),l.addNew||Wo(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(_){y=y||Math.abs(n.clientX-_.clientX)+Math.abs(n.clientY-_.clientY)>=10},H=function(){return y=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Xu(e,n,u){if(u=="char")return new tr(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new tr(it(n.line,0),st(e.doc,it(n.line+1,0)));var l=u(e,n);return new tr(l.from,l.to)}function Ic(e,n,u,l){b&&Ua(e);var f=e.display,y=e.doc;nt(n);var F,U,H=y.sel,_=H.ranges;if(l.addNew&&!l.extend?(U=y.sel.contains(u),U>-1?F=_[U]:F=new tr(u,u)):(F=y.sel.primary(),U=y.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new tr(u,u)),u=$i(e,n,!0,!0),U=-1;else{var me=Xu(e,u,l.unit);l.extend?F=tl(F,me.anchor,me.head,l.extend):F=me}l.addNew?U==-1?(U=_.length,Xr(y,Sn(e,_.concat([F]),U),{scroll:!1,origin:"*mouse"})):_.length>1&&_[U].empty()&&l.unit=="char"&&!l.extend?(Xr(y,Sn(e,_.slice(0,U).concat(_.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=y.sel):Ho(y,U,F,yt):(U=0,Xr(y,new hn([F],0),yt),H=y.sel);var Ee=u;function Ne(ct){if(Bt(Ee,ct)!=0)if(Ee=ct,l.unit=="rectangle"){for(var xt=[],Ft=e.options.tabSize,Pt=Je(Ot(y,u.line).text,u.ch,Ft),It=Je(Ot(y,ct.line).text,ct.ch,Ft),$t=Math.min(Pt,It),vt=Math.max(Pt,It),ir=Math.min(u.line,ct.line),gn=Math.min(e.lastLine(),Math.max(u.line,ct.line));ir<=gn;ir++){var cn=Ot(y,ir).text,Pr=dt(cn,$t,Ft);$t==vt?xt.push(new tr(it(ir,Pr),it(ir,Pr))):cn.length>Pr&&xt.push(new tr(it(ir,Pr),it(ir,dt(cn,vt,Ft))))}xt.length||xt.push(new tr(u,u)),Xr(y,Sn(e,H.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ct)}else{var rn=F,zr=Xu(e,ct,l.unit),Rr=rn.anchor,Ar;Bt(zr.anchor,Rr)>0?(Ar=zr.head,Rr=_e(rn.from(),zr.anchor)):(Ar=zr.anchor,Rr=Ce(rn.to(),zr.head));var dr=H.ranges.slice(0);dr[U]=Fc(e,new tr(st(y,Rr),Ar)),Xr(y,Sn(e,dr,U),yt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function et(ct){var xt=++Ye,Ft=$i(e,ct,!0,l.unit=="rectangle");if(!!Ft)if(Bt(Ft,Ee)!=0){e.curOp.focus=Fe(),Ne(Ft);var Pt=ja(f,y);(Ft.line>=Pt.to||Ft.line<Pt.from)&&setTimeout(Ur(e,function(){Ye==xt&&et(ct)}),150)}else{var It=ct.clientY<ke.top?-20:ct.clientY>ke.bottom?20:0;It&&setTimeout(Ur(e,function(){Ye==xt&&(f.scroller.scrollTop+=It,et(ct))}),50)}}function at(ct){e.state.selectingText=!1,Ye=1/0,ct&&(nt(ct),f.input.focus()),z(f.wrapper.ownerDocument,"mousemove",ft),z(f.wrapper.ownerDocument,"mouseup",gt),y.history.lastSelOrigin=null}var ft=Ur(e,function(ct){ct.buttons===0||!Kr(ct)?at(ct):et(ct)}),gt=Ur(e,at);e.state.selectingText=gt,N(f.wrapper.ownerDocument,"mousemove",ft),N(f.wrapper.ownerDocument,"mouseup",gt)}function Fc(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Bt(u,l)==0&&u.sticky==l.sticky)return n;var y=O(f);if(!y)return n;var F=Y(y,u.ch,u.sticky),U=y[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==y.length)return n;var _;if(l.line!=u.line)_=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var me=Y(y,l.ch,l.sticky),Ee=me-F||(l.ch-u.ch)*(U.level==1?-1:1);me==H-1||me==H?_=Ee<0:_=Ee>0}var Ne=y[H+(_?-1:0)],ke=_==(Ne.level==1),Ye=ke?Ne.from:Ne.to,et=ke?"after":"before";return u.ch==Ye&&u.sticky==et?n:new tr(new it(u.line,Ye,et),l)}function Qu(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&nt(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(y>U.bottom||!Ve(e,u))return bt(n);y-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var _=F.gutters.childNodes[H];if(_&&_.getBoundingClientRect().right>=f){var me=Wn(e.doc,y),Ee=e.display.gutterSpecs[H];return oe(e,u,e,me,Ee.className,n),bt(n)}}}function pl(e,n){return Qu(e,n,"gutterClick",!0)}function Zu(e,n){ui(e.display,n)||_u(e,n)||Oe(e,n,"contextmenu")||J||e.display.input.onContextMenu(n)}function _u(e,n){return Ve(e,"gutterContextMenu")?Qu(e,n,"gutterContextMenu",!1):!1}function qu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),La(e)}var xa={toString:function(){return"CodeMirror.Init"}},ef={},ts={};function tf(e){var n=e.optionHandlers;function u(l,f,y,F){e.defaults[l]=f,y&&(n[l]=F?function(U,H,_){_!=xa&&y(U,H,_)}:y)}e.defineOption=u,e.Init=xa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Bo(l)},!0),u("indentUnit",2,Bo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){Zi(l),La(l),Fr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],F=l.doc.first;l.doc.iter(function(H){for(var _=0;;){var me=H.text.indexOf(f,_);if(me==-1)break;_=me+f.length,y.push(it(F,me))}F++});for(var U=y.length-1;U>=0;U--)pa(l.doc,f,y[U],it(y[U].line,y[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=xa&&l.refresh()}),u("specialCharPlaceholder",Cs,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",!X),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),Do(l)},!0),u("keyMap","default",function(l,f,y){var F=Yo(f),U=y!=xa&&Yo(y);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Rc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ga(f,l.options.lineNumbers),Do(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Fn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return ci(l)},!0),u("scrollbarStyle","native",function(l){Mo(l),ci(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=Ga(l.options.gutters,f),Do(l)},!0),u("firstLineNumber",1,Do,!0),u("lineNumberFormatter",function(l){return l},Do,!0),u("showCursorWhenSelecting",!1,Oi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(la(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,kc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Oi,!0),u("singleCursorHeightPerLine",!0,Oi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,Zi,!0),u("addModeClass",!1,Zi,!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,Zi,!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 kc(e,n,u){var l=u&&u!=xa;if(!n!=!l){var f=e.display.dragFunctions,y=n?N:z;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function Rc(e){e.options.lineWrapping?(De(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(te(e.display.wrapper,"CodeMirror-wrap"),ws(e)),js(e),Fr(e),La(e),setTimeout(function(){return ci(e)},100)}function hr(e,n){var u=this;if(!(this instanceof hr))return new hr(e,n);this.options=n=n?Qe(n):{},Qe(ef,n,!1);var l=n.value;typeof l=="string"?l=new fn(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new hr.inputStyles[n.inputStyle](this),y=this.display=new ic(e,l,f,n);y.wrapper.CodeMirror=this,qu(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Mo(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&&y.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Mc(this),Vu(),Ti(this),this.curOp.forceUpdate=!0,Cu(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Io(u)},20):la(this);for(var F in ts)ts.hasOwnProperty(F)&&ts[F](this,n[F],xa);Lo(this),n.finishInit&&n.finishInit(this);for(var U=0;U<hl.length;++U)hl[U](this);Pi(this),g&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}hr.defaults=ef,hr.optionHandlers=ts;function Mc(e){var n=e.display;N(n.scroller,"mousedown",Ur(e,Ju)),b&&S<11?N(n.scroller,"dblclick",Ur(e,function(H){if(!Oe(e,H)){var _=$i(e,H);if(!(!_||pl(e,H)||ui(e.display,H))){nt(H);var me=e.findWordAt(_);Wo(e.doc,me.anchor,me.head)}}})):N(n.scroller,"dblclick",function(H){return Oe(e,H)||nt(H)}),N(n.scroller,"contextmenu",function(H){return Zu(e,H)}),N(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||Zu(e,H)});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 y(H){if(H.touches.length!=1)return!1;var _=H.touches[0];return _.radiusX<=1&&_.radiusY<=1}function F(H,_){if(_.left==null)return!0;var me=_.left-H.left,Ee=_.top-H.top;return me*me+Ee*Ee>20*20}N(n.scroller,"touchstart",function(H){if(!Oe(e,H)&&!y(H)&&!pl(e,H)){n.input.ensurePolled(),clearTimeout(u);var _=+new Date;n.activeTouch={start:_,moved:!1,prev:_-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(H){var _=n.activeTouch;if(_&&!ui(n,H)&&_.left!=null&&!_.moved&&new Date-_.start<300){var me=e.coordsChar(n.activeTouch,"page"),Ee;!_.prev||F(_,_.prev)?Ee=new tr(me,me):!_.prev.prev||F(_,_.prev.prev)?Ee=e.findWordAt(me):Ee=new tr(it(me.line,0),st(e.doc,it(me.line+1,0))),e.setSelection(Ee.anchor,Ee.head),e.focus(),nt(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Wa(e,n.scroller.scrollTop),Ji(e,n.scroller.scrollLeft,!0),oe(e,"scroll",e))}),N(n.scroller,"mousewheel",function(H){return Su(e,H)}),N(n.scroller,"DOMMouseScroll",function(H){return Su(e,H)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){Oe(e,H)||zt(H)},over:function(H){Oe(e,H)||(gc(e,H),zt(H))},start:function(H){return vc(e,H)},drop:Ur(e,hc),leave:function(H){Oe(e,H)||ju(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",Ur(e,Ku)),N(U,"keypress",Ur(e,cl)),N(U,"focus",function(H){return Io(e,H)}),N(U,"blur",function(H){return la(e,H)})}var hl=[];hr.defineInitHook=function(e){return hl.push(e)};function ba(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=qr(e,n).state:u="prev");var F=e.options.tabSize,U=Ot(f,n),H=Je(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var _=U.text.match(/^\s*/)[0],me;if(!l&&!/\S/.test(U.text))me=0,u="not";else if(u=="smart"&&(me=f.mode.indent(y,U.text.slice(_.length),U.text),me==rt||me>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?me=Je(Ot(f,n-1).text,null,F):me=0:u=="add"?me=H+e.options.indentUnit:u=="subtract"?me=H-e.options.indentUnit:typeof u=="number"&&(me=H+u),me=Math.max(0,me);var Ee="",Ne=0;if(e.options.indentWithTabs)for(var ke=Math.floor(me/F);ke;--ke)Ne+=F,Ee+=" ";if(Ne<me&&(Ee+=kt(me-Ne)),Ee!=_)return pa(f,Ee,it(n,0),it(n,_.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var et=f.sel.ranges[Ye];if(et.head.line==n&&et.head.ch<_.length){var at=it(n,_.length);Ho(f,Ye,new tr(at,at));break}}}var An=null;function ao(e){An=e}function vl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,H=ii(n),_=null;if(U&&l.ranges.length>1)if(An&&An.text.join(`
30
+ `)==n){if(l.ranges.length%An.text.length==0){_=[];for(var me=0;me<An.text.length;me++)_.push(y.splitLines(An.text[me]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(_=Wt(H,function(ft){return[ft]}));for(var Ee=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var ke=l.ranges[Ne],Ye=ke.from(),et=ke.to();ke.empty()&&(u&&u>0?Ye=it(Ye.line,Ye.ch-u):e.state.overwrite&&!U?et=it(et.line,Math.min(Ot(y,et.line).text.length,et.ch+Ct(H).length)):U&&An&&An.lineWise&&An.text.join(`
31
31
  `)==H.join(`
32
- `)&&(Ye=tt=it(Ye.line,0)));var at={from:Ye,to:tt,text:_?_[Ne%_.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};ha(e.doc,at),or(e,"inputRead",e,at)}n&&!U&&rf(e,n),rn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function tf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Dr(n,function(){return gl(n,u,0,null,"paste")}),!0}function rf(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 y=e.getModeAt(f.head),F=!1;if(y.electricChars){for(var U=0;U<y.electricChars.length;U++)if(n.indexOf(y.electricChars.charAt(U))>-1){F=Sa(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Sa(e,f.head.line,"smart"));F&&or(e,"electricInput",e,f.head.line)}}}function nf(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:it(f,0),head:it(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function br(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Mc(){var e=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=xe("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"),br(e),n}function Lc(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 y=this.options,F=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&Nr(this,n[l])(this,f,F),ae(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"](Yo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:kr(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Lt(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Fr(this)}),removeOverlay:kr(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var F=f[y].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(y,1),this.state.modeGen++,Fr(this);return}}}),indentLine:kr(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Qn(this.doc,l)&&Sa(this,l,f,y)}),indentSelection:kr(function(l){for(var f=this.doc.sel.ranges,y=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>y&&(Sa(this,U.head.line,l,!0),y=U.head.line,F==this.doc.sel.primIndex&&rn(this));else{var H=U.from(),_=U.to(),me=Math.max(y,H.line);y=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var Ee=me;Ee<y;++Ee)Sa(this,Ee,l);var Ne=this.doc.sel.ranges;H.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&Ho(this.doc,F,new tr(H,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return ys(this,l,f)},getLineTokens:function(l,f){return ys(this,it(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Vl(this,Ot(this.doc,l.line)),y=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var _=y+F>>1;if((_?f[_*2-1]:0)>=U)F=_;else if(f[_*2+1]<U)y=_+1;else{H=f[_*2+2];break}}var me=H?H.indexOf("overlay "):-1;return me<0?H:me==0?null:H.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 y=[];if(!u.hasOwnProperty(f))return y;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&y.push(F[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var _=F[U[f][H]];_&&y.push(_)}else U.helperType&&F[U.helperType]?y.push(F[U.helperType]):F[U.name]&&y.push(F[U.name]);for(var me=0;me<F._global.length;me++){var Ee=F._global[me];Ee.pred(U,this)&&ht(y,Ee.val)==-1&&y.push(Ee.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=ot(y,l==null?y.first+y.size-1:l),en(this,l+1,f).state},cursorCoords:function(l,f){var y,F=this.doc.sel.primary();return l==null?y=F.head:typeof l=="object"?y=st(this.doc,l):y=l?F.from():F.to(),zn(this,y,f||"page")},charCoords:function(l,f){return Eo(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Ba(this,l,f||"page"),Bs(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Ba(this,{top:l,left:0},f||"page").top,Vn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Ot(this.doc,l)}else U=l;return Ao(this,U,{top:0,left:0},f||"page",y||F).top+(F?this.doc.height-ui(U):0)},defaultTextHeight:function(){return ua(this.display)},defaultCharWidth:function(){return Pn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,F,U){var H=this.display;l=zn(this,st(this.doc,l));var _=l.bottom,me=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")_=l.top;else if(F=="above"||F=="near"){var Ee=Math.max(H.wrapper.clientHeight,this.doc.height),Ne=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ee)&&l.top>f.offsetHeight?_=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ee&&(_=l.bottom),me+f.offsetWidth>Ne&&(me=Ne-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",U=="right"?(me=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?me=0:U=="middle"&&(me=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=me+"px"),y&&cu(this,{left:me,top:_,right:me+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:kr($u),triggerOnKeyPress:kr(dl),triggerOnKeyUp:Ku,triggerOnMouseDown:kr(Yu),execCommand:function(l){if(to.hasOwnProperty(l))return to[l].call(null,this)},triggerElectric:kr(function(l){rf(this,l)}),findPosH:function(l,f,y,F){var U=1;f<0&&(U=-1,f=-f);for(var H=st(this.doc,l),_=0;_<f&&(H=$t(this.doc,H,U,y,F),!H.hitSide);++_);return H},moveH:kr(function(l,f){var y=this;this.extendSelectionsBy(function(F){return y.display.shift||y.doc.extend||F.empty()?$t(y.doc,F.head,l,f,y.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:kr(function(l,f){var y=this.doc.sel,F=this.doc;y.somethingSelected()?F.replaceSelection("",null,"+delete"):na(this,function(U){var H=$t(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,y,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var _=st(this.doc,l),me=0;me<f;++me){var Ee=zn(this,_,"div");if(H==null?H=Ee.left:Ee.left=H,_=yl(this,Ee,U,y),_.hitSide)break}return _},moveV:kr(function(l,f){var y=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(me){if(H)return l<0?me.from():me.to();var Ee=zn(y,me.head,"div");me.goalColumn!=null&&(Ee.left=me.goalColumn),U.push(Ee.left);var Ne=yl(y,Ee,l,f);return f=="page"&&me==F.sel.primary()&&Ks(y,Eo(y,Ne,"div").top-Ee.top),Ne},mt),U.length)for(var _=0;_<F.sel.ranges.length;_++)F.sel.ranges[_].goalColumn=U[_]}),findWordAt:function(l){var f=this.doc,y=Ot(f,l.line).text,F=l.ch,U=l.ch;if(y){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==y.length)&&F?--F:++U;for(var _=y.charAt(F),me=G(_,H)?function(Ee){return G(Ee,H)}:/\s/.test(_)?function(Ee){return/\s/.test(Ee)}:function(Ee){return!/\s/.test(Ee)&&!G(Ee)};F>0&&me(y.charAt(F-1));)--F;for(;U<y.length&&me(y.charAt(U));)++U}return new tr(it(l.line,F),it(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?De(this.display.cursorDiv,"CodeMirror-overwrite"):re(this.display.cursorDiv,"CodeMirror-overwrite"),ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:kr(function(l,f){Va(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ci(this)-this.display.barHeight,width:l.scrollWidth-ci(this)-this.display.barWidth,clientHeight:Ma(this),clientWidth:Gi(this)}},scrollIntoView:kr(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:it(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?Xi(this,l):du(this,l.from,l.to,l.margin)}),setSize:kr(function(l,f){var y=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&$i(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var _=0;_<H.widgets.length;_++)if(H.widgets[_].noHScroll){_n(y,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return Dr(this,l)},startOperation:function(){return Ii(this)},endOperation:function(){return Fi(this)},refresh:kr(function(){var l=this.display.cachedTextHeight;Fr(this),this.curOp.forceUpdate=!0,La(this),Va(this,this.doc.scrollLeft,this.doc.scrollTop),Zs(this.display),(l==null||Math.abs(l-ua(this.display))>.5||this.options.lineWrapping)&&Vs(this),ae(this,"refresh",this)}),swapDoc:kr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Eu(this,l),La(this),this.display.input.reset(),Va(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,or(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}},Le(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,F){e.registerHelper(l,f,F),u[l]._global.push({pred:y,val:F})}}function $t(e,n,u,l,f){var y=n,F=u,U=Ot(e,n.line),H=f&&e.direction=="rtl"?-u:u;function _(){var gt=n.line+H;return gt<e.first||gt>=e.first+e.size?!1:(n=new it(gt,n.ch,n.sticky),U=Ot(e,gt))}function me(gt){var dt;if(l=="codepoint"){var xt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))dt=null;else{var It=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;dt=new it(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(It?2:1))),-u)}}else f?dt=zu(e.cm,U,n,u):dt=Xo(U,n,u);if(dt==null)if(!gt&&_())n=cl(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")me();else if(l=="column")me(!0);else if(l=="word"||l=="group")for(var Ee=null,Ne=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!me(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
33
- `,at=G(tt,ke)?"w":Ne&&tt==`
34
- `?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!at&&(at="s"),Ee&&Ee!=at){u<0&&(u=1,me(),n.sticky="after");break}if(at&&(Ee=at),u>0&&!me(!Ye))break}var ft=Xa(e,n,y,F,!0);return si(y,ft)&&(ft.hitSide=!0),ft}function yl(e,n,u,l){var f=e.doc,y=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*ua(e.display),3);F=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var _;_=Bs(e,y,F),!!_.outside;){if(u<0?F<=0:F>=f.height){_.hitSide=!0;break}F+=u*5}return _}var St=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};St.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,br(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(U){for(var H=U.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}N(f,"paste",function(U){!y(U)||Oe(l,U)||tf(U,l)||A<=11&&setTimeout(Nr(l,function(){return n.updateFromDOM()}),20)}),N(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),N(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),N(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),N(f,"touchstart",function(){return u.forceCompositionEnd()}),N(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!y(U)||Oe(l,U))){if(l.somethingSelected())ao({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=nf(l);ao({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var _=An.text.join(`
35
- `);if(U.clipboardData.setData("Text",_),U.clipboardData.getData("Text")==_){U.preventDefault();return}}var me=Mc(),Ee=me.firstChild;l.display.lineSpace.insertBefore(me,l.display.lineSpace.firstChild),Ee.value=An.text.join(`
36
- `);var Ne=Fe();Pe(Ee),setTimeout(function(){l.display.lineSpace.removeChild(me),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},St.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var e=To(this.cm,!1);return e.focus=Fe()==this.div,e},St.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.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 y=kn(n,e.anchorNode,e.anchorOffset),F=kn(n,e.focusNode,e.focusOffset);if(!(y&&!y.bad&&F&&!F.bad&&Nt(_e(y,F),l)==0&&Nt(Ce(y,F),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&af(n,l)||{node:U[0].measure.map[2],offset:0},_=f.line<n.display.viewTo&&af(n,f);if(!_){var me=U[U.length-1].measure,Ee=me.maps?me.maps[me.maps.length-1]:me.map;_={node:Ee[Ee.length-1],offset:Ee[Ee.length-2]-Ee[Ee.length-3]}}if(!H||!_){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(H.node,H.offset,_.offset,_.node)}catch(Ye){}ke&&(!c&&n.state.focused?(e.collapse(H.node,H.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},St.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)},St.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},St.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},St.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return se(this.div,n)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Dr(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)},St.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(Q&&D&&this.cm.display.gutterSpecs.length&&oo(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=kn(n,e.anchorNode,e.anchorOffset),l=kn(n,e.focusNode,e.focusOffset);u&&l&&Dr(n,function(){Zr(n.doc,ki(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},St.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=it(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=it(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var y,F,U;l.line==n.viewFrom||(y=Ji(e,l.line))==0?(F=_t(n.view[0].line),U=n.view[0].node):(F=_t(n.view[y].line),U=n.view[y-1].node.nextSibling);var H=Ji(e,f.line),_,me;if(H==n.view.length-1?(_=n.viewTo-1,me=n.lineDiv.lastChild):(_=_t(n.view[H+1].line)-1,me=n.view[H+1].node.previousSibling),!U)return!1;for(var Ee=e.doc.splitLines(of(e,U,me,F,_)),Ne=oi(e.doc,it(F,0),it(_,Ot(e.doc,_).text.length));Ee.length>1&&Ne.length>1;)if(Ct(Ee)==Ct(Ne))Ee.pop(),Ne.pop(),_--;else if(Ee[0]==Ne[0])Ee.shift(),Ne.shift(),F++;else break;for(var ke=0,Ye=0,tt=Ee[0],at=Ne[0],ft=Math.min(tt.length,at.length);ke<ft&&tt.charCodeAt(ke)==at.charCodeAt(ke);)++ke;for(var gt=Ct(Ee),dt=Ct(Ne),xt=Math.min(gt.length-(Ee.length==1?ke:0),dt.length-(Ne.length==1?ke:0));Ye<xt&&gt.charCodeAt(gt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ee.length==1&&Ne.length==1&&F==l.line)for(;ke&&ke>l.ch&&gt.charCodeAt(gt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)ke--,Ye++;Ee[Ee.length-1]=gt.slice(0,gt.length-Ye).replace(/^\u200b+/,""),Ee[0]=Ee[0].slice(ke).replace(/\u200b+$/,"");var It=it(F,ke),Pt=it(_,Ne.length?Ct(Ne).length-Ye:0);if(Ee.length>1||Ee[0]||Nt(It,Pt))return va(e.doc,Ee,It,Pt,"+input"),!0},St.prototype.ensurePolled=function(){this.forceCompositionEnd()},St.prototype.reset=function(){this.forceCompositionEnd()},St.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},St.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))},St.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Dr(this.cm,function(){return Fr(e.cm)})},St.prototype.setUneditable=function(e){e.contentEditable="false"},St.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Nr(this.cm,gl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},St.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},St.prototype.onContextMenu=function(){},St.prototype.resetPosition=function(){},St.prototype.needsContentAttribute=!0;function af(e,n){var u=Rs(e,n.line);if(!u||u.hidden)return null;var l=Ot(e.doc,n.line),f=ks(u,l,n.line),y=O(l,e.doc.direction),F="left";if(y){var U=Y(y,n.ch);F=U%2?"right":"left"}var H=Ms(f.map,n.ch,F);return H.offset=H.collapse=="right"?H.end:H.start,H}function oo(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function En(e,n){return n&&(e.bad=!0),e}function of(e,n,u,l,f){var y="",F=!1,U=e.doc.lineSeparator(),H=!1;function _(ke){return function(Ye){return Ye.id==ke}}function me(){F&&(y+=U,H&&(y+=U),F=H=!1)}function Ee(ke){ke&&(me(),y+=ke)}function Ne(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ee(Ye);return}var tt=ke.getAttribute("cm-marker"),at;if(tt){var ft=e.findMarks(it(l,0),it(f+1,0),_(+tt));ft.length&&(at=ft[0].find(0))&&Ee(oi(e.doc,at.from,at.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var gt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;gt&&me();for(var dt=0;dt<ke.childNodes.length;dt++)Ne(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),gt&&(F=!0)}else ke.nodeType==3&&Ee(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,H=!1;return y}function kn(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return En(e.clipPos(it(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 y=e.display.view[f];if(y.node==l)return Dc(y,n,u)}}function Dc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!se(l,n))return En(it(_t(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var y=e.rest?Ct(e.rest):e.line;return En(it(_t(y),y.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 H=e.measure,_=H.maps;function me(at,ft,gt){for(var dt=-1;dt<(_?_.length:0);dt++)for(var xt=dt<0?H.map:_[dt],It=0;It<xt.length;It+=3){var Pt=xt[It+2];if(Pt==at||Pt==ft){var Wt=_t(dt<0?e.line:e.rest[dt]),Ut=xt[It]+gt;return(gt<0||Pt!=at)&&(Ut=xt[It+(gt?1:0)]),it(Wt,Ut)}}}var Ee=me(F,U,u);if(Ee)return En(Ee,f);for(var Ne=U.nextSibling,ke=F?F.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ee=me(Ne,Ne.firstChild,0),Ee)return En(it(Ee.line,Ee.ch-ke),f);ke+=Ne.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ee=me(Ye,Ye.firstChild,-1),Ee)return En(it(Ee.line,Ee.ch+tt),f);tt+=Ye.textContent.length}}var Sr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Sr.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"),N(f,"input",function(){b&&A>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(F){Oe(l,F)||tf(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(F){if(!Oe(l,F)){if(l.somethingSelected())ao({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=nf(l);ao({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,lt):(u.prevInput="",f.value=U.text.join(`
37
- `),Pe(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",y),N(f,"copy",y),N(e.scroller,"paste",function(F){if(!(fi(e,F)||Oe(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)}}),N(e.lineSpace,"selectstart",function(F){fi(e,F)||nt(F)}),N(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"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Sr.prototype.createField=function(e){this.wrapper=Mc(),this.textarea=this.wrapper.firstChild},Sr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=To(e);if(e.options.moveInputWithCursor){var f=zn(e,u.sel.primary().head,"div"),y=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-y.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-y.left))}return l},Sr.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")},Sr.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&&Pe(this.textarea),b&&A>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&A>=9&&(this.hasSelection=null))}},Sr.prototype.getField=function(){return this.textarea},Sr.prototype.supportsTouch=function(){return!1},Sr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sr.prototype.blur=function(){this.textarea.blur()},Sr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sr.prototype.receivedFocus=function(){this.slowPoll()},Sr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sr.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)},Sr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||on(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 y=f.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==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 Dr(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},Sr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sr.prototype.onKeyPress=function(){b&&A>=9&&(this.hasSelection=null),this.fastPoll()},Sr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var y=Yi(u,e),F=l.scroller.scrollTop;if(!y||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(y)==-1&&Nr(u,Zr)(u.doc,ki(y),lt);var H=f.style.cssText,_=n.wrapper.style.cssText,me=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
32
+ `)&&(Ye=et=it(Ye.line,0)));var at={from:Ye,to:et,text:_?_[Ne%_.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};da(e.doc,at),or(e,"inputRead",e,at)}n&&!U&&nf(e,n),tn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function rf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Br(n,function(){return vl(n,u,0,null,"paste")}),!0}function nf(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 y=e.getModeAt(f.head),F=!1;if(y.electricChars){for(var U=0;U<y.electricChars.length;U++)if(n.indexOf(y.electricChars.charAt(U))>-1){F=ba(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=ba(e,f.head.line,"smart"));F&&or(e,"electricInput",e,f.head.line)}}}function af(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:it(f,0),head:it(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function br(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Lc(){var e=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=xe("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"),br(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 y=this.options,F=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&Ur(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"](Yo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:kr(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");Dt(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Fr(this)}),removeOverlay:kr(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var F=f[y].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(y,1),this.state.modeGen++,Fr(this);return}}}),indentLine:kr(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Qn(this.doc,l)&&ba(this,l,f,y)}),indentSelection:kr(function(l){for(var f=this.doc.sel.ranges,y=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>y&&(ba(this,U.head.line,l,!0),y=U.head.line,F==this.doc.sel.primIndex&&tn(this));else{var H=U.from(),_=U.to(),me=Math.max(y,H.line);y=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var Ee=me;Ee<y;++Ee)ba(this,Ee,l);var Ne=this.doc.sel.ranges;H.ch==0&&f.length==Ne.length&&Ne[F].from().ch>0&&Ho(this.doc,F,new tr(H,Ne[F].to()),lt)}}}),getTokenAt:function(l,f){return gs(this,l,f)},getLineTokens:function(l,f){return gs(this,it(l),f,!0)},getTokenTypeAt:function(l){l=st(this.doc,l);var f=Wl(this,Ot(this.doc,l.line)),y=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var _=y+F>>1;if((_?f[_*2-1]:0)>=U)F=_;else if(f[_*2+1]<U)y=_+1;else{H=f[_*2+2];break}}var me=H?H.indexOf("overlay "):-1;return me<0?H:me==0?null:H.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 y=[];if(!u.hasOwnProperty(f))return y;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&y.push(F[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var _=F[U[f][H]];_&&y.push(_)}else U.helperType&&F[U.helperType]?y.push(F[U.helperType]):F[U.name]&&y.push(F[U.name]);for(var me=0;me<F._global.length;me++){var Ee=F._global[me];Ee.pred(U,this)&&pt(y,Ee.val)==-1&&y.push(Ee.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=ot(y,l==null?y.first+y.size-1:l),qr(this,l+1,f).state},cursorCoords:function(l,f){var y,F=this.doc.sel.primary();return l==null?y=F.head:typeof l=="object"?y=st(this.doc,l):y=l?F.from():F.to(),Gn(this,y,f||"page")},charCoords:function(l,f){return Eo(this,st(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Ba(this,l,f||"page"),Ns(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Ba(this,{top:l,left:0},f||"page").top,Wn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Ot(this.doc,l)}else U=l;return Ao(this,U,{top:0,left:0},f||"page",y||F).top+(F?this.doc.height-li(U):0)},defaultTextHeight:function(){return sa(this.display)},defaultCharWidth:function(){return In(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,F,U){var H=this.display;l=Gn(this,st(this.doc,l));var _=l.bottom,me=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")_=l.top;else if(F=="above"||F=="near"){var Ee=Math.max(H.wrapper.clientHeight,this.doc.height),Ne=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ee)&&l.top>f.offsetHeight?_=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ee&&(_=l.bottom),me+f.offsetWidth>Ne&&(me=Ne-f.offsetWidth)}f.style.top=_+"px",f.style.left=f.style.right="",U=="right"?(me=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?me=0:U=="middle"&&(me=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=me+"px"),y&&du(this,{left:me,top:_,right:me+f.offsetWidth,bottom:_+f.offsetHeight})},triggerOnKeyDown:kr(Ku),triggerOnKeyPress:kr(cl),triggerOnKeyUp:Yu,triggerOnMouseDown:kr(Ju),execCommand:function(l){if(to.hasOwnProperty(l))return to[l].call(null,this)},triggerElectric:kr(function(l){nf(this,l)}),findPosH:function(l,f,y,F){var U=1;f<0&&(U=-1,f=-f);for(var H=st(this.doc,l),_=0;_<f&&(H=Gt(this.doc,H,U,y,F),!H.hitSide);++_);return H},moveH:kr(function(l,f){var y=this;this.extendSelectionsBy(function(F){return y.display.shift||y.doc.extend||F.empty()?Gt(y.doc,F.head,l,f,y.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:kr(function(l,f){var y=this.doc.sel,F=this.doc;y.somethingSelected()?F.replaceSelection("",null,"+delete"):ta(this,function(U){var H=Gt(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,y,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var _=st(this.doc,l),me=0;me<f;++me){var Ee=Gn(this,_,"div");if(H==null?H=Ee.left:Ee.left=H,_=gl(this,Ee,U,y),_.hitSide)break}return _},moveV:kr(function(l,f){var y=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(me){if(H)return l<0?me.from():me.to();var Ee=Gn(y,me.head,"div");me.goalColumn!=null&&(Ee.left=me.goalColumn),U.push(Ee.left);var Ne=gl(y,Ee,l,f);return f=="page"&&me==F.sel.primary()&&$s(y,Eo(y,Ne,"div").top-Ee.top),Ne},mt),U.length)for(var _=0;_<F.sel.ranges.length;_++)F.sel.ranges[_].goalColumn=U[_]}),findWordAt:function(l){var f=this.doc,y=Ot(f,l.line).text,F=l.ch,U=l.ch;if(y){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==y.length)&&F?--F:++U;for(var _=y.charAt(F),me=G(_,H)?function(Ee){return G(Ee,H)}:/\s/.test(_)?function(Ee){return/\s/.test(Ee)}:function(Ee){return!/\s/.test(Ee)&&!G(Ee)};F>0&&me(y.charAt(F-1));)--F;for(;U<y.length&&me(y.charAt(U));)++U}return new tr(it(l.line,F),it(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?De(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()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:kr(function(l,f){Va(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-fi(this)-this.display.barHeight,width:l.scrollWidth-fi(this)-this.display.barWidth,clientHeight:Ma(this),clientWidth:Hi(this)}},scrollIntoView:kr(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:it(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?Yi(this,l):pu(this,l.from,l.to,l.margin)}),setSize:kr(function(l,f){var y=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&zi(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var _=0;_<H.widgets.length;_++)if(H.widgets[_].noHScroll){_n(y,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,oe(this,"refresh",this)}),operation:function(l){return Br(this,l)},startOperation:function(){return Ti(this)},endOperation:function(){return Pi(this)},refresh:kr(function(){var l=this.display.cachedTextHeight;Fr(this),this.curOp.forceUpdate=!0,La(this),Va(this,this.doc.scrollLeft,this.doc.scrollTop),Qs(this.display),(l==null||Math.abs(l-sa(this.display))>.5||this.options.lineWrapping)&&js(this),oe(this,"refresh",this)}),swapDoc:kr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),La(this),this.display.input.reset(),Va(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,or(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}},Le(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,F){e.registerHelper(l,f,F),u[l]._global.push({pred:y,val:F})}}function Gt(e,n,u,l,f){var y=n,F=u,U=Ot(e,n.line),H=f&&e.direction=="rtl"?-u:u;function _(){var gt=n.line+H;return gt<e.first||gt>=e.first+e.size?!1:(n=new it(gt,n.ch,n.sticky),U=Ot(e,gt))}function me(gt){var ct;if(l=="codepoint"){var xt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))ct=null;else{var Ft=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;ct=new it(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Ft?2:1))),-u)}}else f?ct=Gu(e.cm,U,n,u):ct=Xo(U,n,u);if(ct==null)if(!gt&&_())n=fl(f,e.cm,U,n.line,H);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 Ee=null,Ne=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!me(!Ye));Ye=!1){var et=U.text.charAt(n.ch)||`
33
+ `,at=G(et,ke)?"w":Ne&&et==`
34
+ `?"n":!Ne||/\s/.test(et)?null:"p";if(Ne&&!Ye&&!at&&(at="s"),Ee&&Ee!=at){u<0&&(u=1,me(),n.sticky="after");break}if(at&&(Ee=at),u>0&&!me(!Ye))break}var ft=Xa(e,n,y,F,!0);return oi(y,ft)&&(ft.hitSide=!0),ft}function gl(e,n,u,l){var f=e.doc,y=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*sa(e.display),3);F=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var _;_=Ns(e,y,F),!!_.outside;){if(u<0?F<=0:F>=f.height){_.hitSide=!0;break}F+=u*5}return _}var St=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};St.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,br(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function y(U){for(var H=U.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}N(f,"paste",function(U){!y(U)||Oe(l,U)||rf(U,l)||S<=11&&setTimeout(Ur(l,function(){return n.updateFromDOM()}),20)}),N(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),N(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),N(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),N(f,"touchstart",function(){return u.forceCompositionEnd()}),N(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!y(U)||Oe(l,U))){if(l.somethingSelected())ao({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=af(l);ao({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,lt),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var _=An.text.join(`
35
+ `);if(U.clipboardData.setData("Text",_),U.clipboardData.getData("Text")==_){U.preventDefault();return}}var me=Lc(),Ee=me.firstChild;l.display.lineSpace.insertBefore(me,l.display.lineSpace.firstChild),Ee.value=An.text.join(`
36
+ `);var Ne=Fe();Pe(Ee),setTimeout(function(){l.display.lineSpace.removeChild(me),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},St.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var e=To(this.cm,!1);return e.focus=Fe()==this.div,e},St.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.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 y=Rn(n,e.anchorNode,e.anchorOffset),F=Rn(n,e.focusNode,e.focusOffset);if(!(y&&!y.bad&&F&&!F.bad&&Bt(_e(y,F),l)==0&&Bt(Ce(y,F),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&of(n,l)||{node:U[0].measure.map[2],offset:0},_=f.line<n.display.viewTo&&of(n,f);if(!_){var me=U[U.length-1].measure,Ee=me.maps?me.maps[me.maps.length-1]:me.map;_={node:Ee[Ee.length-1],offset:Ee[Ee.length-2]-Ee[Ee.length-3]}}if(!H||!_){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(H.node,H.offset,_.offset,_.node)}catch(Ye){}ke&&(!c&&n.state.focused?(e.collapse(H.node,H.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},St.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)},St.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},St.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},St.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return se(this.div,n)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Br(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)},St.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(Q&&D&&this.cm.display.gutterSpecs.length&&oo(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Rn(n,e.anchorNode,e.anchorOffset),l=Rn(n,e.focusNode,e.focusOffset);u&&l&&Br(n,function(){Xr(n.doc,Ii(u,l),lt),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},St.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=it(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=it(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var y,F,U;l.line==n.viewFrom||(y=Ki(e,l.line))==0?(F=_t(n.view[0].line),U=n.view[0].node):(F=_t(n.view[y].line),U=n.view[y-1].node.nextSibling);var H=Ki(e,f.line),_,me;if(H==n.view.length-1?(_=n.viewTo-1,me=n.lineDiv.lastChild):(_=_t(n.view[H+1].line)-1,me=n.view[H+1].node.previousSibling),!U)return!1;for(var Ee=e.doc.splitLines(sf(e,U,me,F,_)),Ne=ai(e.doc,it(F,0),it(_,Ot(e.doc,_).text.length));Ee.length>1&&Ne.length>1;)if(Ct(Ee)==Ct(Ne))Ee.pop(),Ne.pop(),_--;else if(Ee[0]==Ne[0])Ee.shift(),Ne.shift(),F++;else break;for(var ke=0,Ye=0,et=Ee[0],at=Ne[0],ft=Math.min(et.length,at.length);ke<ft&&et.charCodeAt(ke)==at.charCodeAt(ke);)++ke;for(var gt=Ct(Ee),ct=Ct(Ne),xt=Math.min(gt.length-(Ee.length==1?ke:0),ct.length-(Ne.length==1?ke:0));Ye<xt&&gt.charCodeAt(gt.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)++Ye;if(Ee.length==1&&Ne.length==1&&F==l.line)for(;ke&&ke>l.ch&&gt.charCodeAt(gt.length-Ye-1)==ct.charCodeAt(ct.length-Ye-1);)ke--,Ye++;Ee[Ee.length-1]=gt.slice(0,gt.length-Ye).replace(/^\u200b+/,""),Ee[0]=Ee[0].slice(ke).replace(/\u200b+$/,"");var Ft=it(F,ke),Pt=it(_,Ne.length?Ct(Ne).length-Ye:0);if(Ee.length>1||Ee[0]||Bt(Ft,Pt))return pa(e.doc,Ee,Ft,Pt,"+input"),!0},St.prototype.ensurePolled=function(){this.forceCompositionEnd()},St.prototype.reset=function(){this.forceCompositionEnd()},St.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},St.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))},St.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Br(this.cm,function(){return Fr(e.cm)})},St.prototype.setUneditable=function(e){e.contentEditable="false"},St.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ur(this.cm,vl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},St.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},St.prototype.onContextMenu=function(){},St.prototype.resetPosition=function(){},St.prototype.needsContentAttribute=!0;function of(e,n){var u=ks(e,n.line);if(!u||u.hidden)return null;var l=Ot(e.doc,n.line),f=Fs(u,l,n.line),y=O(l,e.doc.direction),F="left";if(y){var U=Y(y,n.ch);F=U%2?"right":"left"}var H=Rs(f.map,n.ch,F);return H.offset=H.collapse=="right"?H.end:H.start,H}function oo(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function En(e,n){return n&&(e.bad=!0),e}function sf(e,n,u,l,f){var y="",F=!1,U=e.doc.lineSeparator(),H=!1;function _(ke){return function(Ye){return Ye.id==ke}}function me(){F&&(y+=U,H&&(y+=U),F=H=!1)}function Ee(ke){ke&&(me(),y+=ke)}function Ne(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ee(Ye);return}var et=ke.getAttribute("cm-marker"),at;if(et){var ft=e.findMarks(it(l,0),it(f+1,0),_(+et));ft.length&&(at=ft[0].find(0))&&Ee(ai(e.doc,at.from,at.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var gt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;gt&&me();for(var ct=0;ct<ke.childNodes.length;ct++)Ne(ke.childNodes[ct]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),gt&&(F=!0)}else ke.nodeType==3&&Ee(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,H=!1;return y}function Rn(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return En(e.clipPos(it(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 y=e.display.view[f];if(y.node==l)return Nc(y,n,u)}}function Nc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!se(l,n))return En(it(_t(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var y=e.rest?Ct(e.rest):e.line;return En(it(_t(y),y.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 H=e.measure,_=H.maps;function me(at,ft,gt){for(var ct=-1;ct<(_?_.length:0);ct++)for(var xt=ct<0?H.map:_[ct],Ft=0;Ft<xt.length;Ft+=3){var Pt=xt[Ft+2];if(Pt==at||Pt==ft){var It=_t(ct<0?e.line:e.rest[ct]),$t=xt[Ft]+gt;return(gt<0||Pt!=at)&&($t=xt[Ft+(gt?1:0)]),it(It,$t)}}}var Ee=me(F,U,u);if(Ee)return En(Ee,f);for(var Ne=U.nextSibling,ke=F?F.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ee=me(Ne,Ne.firstChild,0),Ee)return En(it(Ee.line,Ee.ch-ke),f);ke+=Ne.textContent.length}for(var Ye=U.previousSibling,et=u;Ye;Ye=Ye.previousSibling){if(Ee=me(Ye,Ye.firstChild,-1),Ee)return En(it(Ee.line,Ee.ch+et),f);et+=Ye.textContent.length}}var Sr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};Sr.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"),N(f,"input",function(){b&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(F){Oe(l,F)||rf(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function y(F){if(!Oe(l,F)){if(l.somethingSelected())ao({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=af(l);ao({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,lt):(u.prevInput="",f.value=U.text.join(`
37
+ `),Pe(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",y),N(f,"copy",y),N(e.scroller,"paste",function(F){if(!(ui(e,F)||Oe(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)}}),N(e.lineSpace,"selectstart",function(F){ui(e,F)||nt(F)}),N(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"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Sr.prototype.createField=function(e){this.wrapper=Lc(),this.textarea=this.wrapper.firstChild},Sr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=To(e);if(e.options.moveInputWithCursor){var f=Gn(e,u.sel.primary().head,"div"),y=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-y.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-y.left))}return l},Sr.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")},Sr.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&&Pe(this.textarea),b&&S>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&S>=9&&(this.hasSelection=null))}},Sr.prototype.getField=function(){return this.textarea},Sr.prototype.supportsTouch=function(){return!1},Sr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!M||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sr.prototype.blur=function(){this.textarea.blur()},Sr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sr.prototype.receivedFocus=function(){this.slowPoll()},Sr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sr.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)},Sr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||sn(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&&S>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var y=f.charCodeAt(0);if(y==8203&&!l&&(l="\u200B"),y==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 Br(n,function(){vl(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},Sr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sr.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},Sr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var y=$i(u,e),F=l.scroller.scrollTop;if(!y||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(y)==-1&&Ur(u,Xr)(u.doc,Ii(y),lt);var H=f.style.cssText,_=n.wrapper.style.cssText,me=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
39
39
  top: `+(e.clientY-me.top-5)+"px; left: "+(e.clientX-me.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 Ee;g&&(Ee=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ee),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=ke,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 ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=_,f.style.cssText=H,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"?Nr(u,Go)(u):tt++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&A>=9&&Ne(),J){Gt(e);var Ye=function(){z(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},Sr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sr.prototype.setUneditable=function(){},Sr.prototype.needsContentAttribute=!1;function Nc(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=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var F=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=F}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(z(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=pr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return U}function sf(e){e.off=z,e.on=N,e.wheelEventPixels=nr,e.Doc=un,e.splitLines=ai,e.countColumn=Je,e.findColumn=pt,e.isWordChar=he,e.Pass=rt,e.signal=ae,e.Line=Wi,e.changeEnd=Ri,e.scrollbarModel=hn,e.Pos=it,e.cmpPos=Nt,e.modes=Ai,e.mimeModes=Xr,e.resolveMode=Xn,e.getMode=bn,e.modeExtensions=Tn,e.extendMode=Un,e.copyState=Qr,e.startState=jn,e.innerMode=sn,e.commands=to,e.keyMap=ti,e.keyName=Hu,e.isModifierKey=Wu,e.lookupKey=vi,e.normalizeKeyMap=kd,e.StringStream=xr,e.SharedTextMarker=ma,e.TextMarker=ei,e.LineWidget=Za,e.e_preventDefault=nt,e.e_stopPropagation=vt,e.e_stop=Gt,e.addClass=De,e.contains=se,e.rmClass=re,e.keyNames=gn}ef(pr),Lc(pr);var Bc="iter insert remove copy getEditor constructor".split(" ");for(var rs in un.prototype)un.prototype.hasOwnProperty(rs)&&ht(Bc,rs)<0&&(pr.prototype[rs]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[rs]));return Le(un),pr.inputStyles={textarea:Sr,contenteditable:St},pr.defineMode=function(e){!pr.defaults.mode&&e!="null"&&(pr.defaults.mode=e),xn.apply(this,arguments)},pr.defineMIME=On,pr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),pr.defineMIME("text/plain","null"),pr.defineExtension=function(e,n){pr.prototype[e]=n},pr.defineDocExtension=function(e,n){un.prototype[e]=n},pr.fromTextArea=Nc,sf(pr),pr.version="5.65.0",pr})},96876:(h,I,a)=>{(function(c){c(a(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,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function ue(Er){return{type:Er,style:"keyword"}}var Ce=ue("keyword a"),_e=ue("keyword b"),ot=ue("keyword c"),st=ue("keyword d"),Yt=ue("operator"),Qt={type:"atom",style:"atom"};return{if:ue("if"),while:Ce,with:Ce,else:_e,do:_e,try:_e,finally:_e,return:st,break:st,continue:st,new:ue("new"),delete:ot,void:ot,throw:ot,debugger:ue("debugger"),var:ue("var"),const:ue("var"),let:ue("var"),function:ue("function"),catch:ue("catch"),for:ue("for"),switch:ue("switch"),case:ue("case"),default:ue("default"),in:Yt,typeof:Yt,instanceof:Yt,true:Qt,false:Qt,null:Qt,undefined:Qt,NaN:Qt,Infinity:Qt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:ot,export:ue("export"),import:ue("import"),extends:ot,await:ot}}(),ee=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function R(ue){for(var Ce=!1,_e,ot=!1;(_e=ue.next())!=null;){if(!Ce){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Ce=!Ce&&_e=="\\"}}var Q,M;function C(ue,Ce,_e){return Q=ue,M=_e,Ce}function V(ue,Ce){var _e=ue.next();if(_e=='"'||_e=="'")return Ce.tokenize=X(_e),Ce.tokenize(ue,Ce);if(_e=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(_e=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return C(_e);if(_e=="="&&ue.eat(">"))return C("=>","operator");if(_e=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(_e))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(_e=="/")return ue.eat("*")?(Ce.tokenize=q,q(ue,Ce)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):si(ue,Ce,1)?(R(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(_e=="`")return Ce.tokenize=Z,Z(ue,Ce);if(_e=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(_e=="#"&&ue.eatWhile(B))return C("variable","property");if(_e=="<"&&ue.match("!--")||_e=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(ee.test(_e))return(_e!=">"||!Ce.lexical||Ce.lexical.type!=">")&&(ue.eat("=")?(_e=="!"||_e=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(_e)&&(ue.eat(_e),_e==">"&&ue.eat(_e))),_e=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(_e)){ue.eatWhile(B);var ot=ue.current();if(Ce.lastType!="."){if(j.propertyIsEnumerable(ot)){var st=j[ot];return C(st.type,st.style,ot)}if(ot=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ot)}return C("variable","variable",ot)}}function X(ue){return function(Ce,_e){var ot=!1,st;if(A&&Ce.peek()=="@"&&Ce.match(W))return _e.tokenize=V,C("jsonld-keyword","meta");for(;(st=Ce.next())!=null&&!(st==ue&&!ot);)ot=!ot&&st=="\\";return ot||(_e.tokenize=V),C("string","string")}}function q(ue,Ce){for(var _e=!1,ot;ot=ue.next();){if(ot=="/"&&_e){Ce.tokenize=V;break}_e=ot=="*"}return C("comment","comment")}function Z(ue,Ce){for(var _e=!1,ot;(ot=ue.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&ue.eat("{"))){Ce.tokenize=V;break}_e=!_e&&ot=="\\"}return C("quasi","string-2",ue.current())}var J="([{}])";function de(ue,Ce){Ce.fatArrowAt&&(Ce.fatArrowAt=null);var _e=ue.string.indexOf("=>",ue.start);if(!(_e<0)){if(D){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,_e));ot&&(_e=ot.index)}for(var st=0,Yt=!1,Qt=_e-1;Qt>=0;--Qt){var Er=ue.string.charAt(Qt),Cr=J.indexOf(Er);if(Cr>=0&&Cr<3){if(!st){++Qt;break}if(--st==0){Er=="("&&(Yt=!0);break}}else if(Cr>=3&&Cr<6)++st;else if(B.test(Er))Yt=!0;else if(/["'\/`]/.test(Er))for(;;--Qt){if(Qt==0)return;var qt=ue.string.charAt(Qt-1);if(qt==Er&&ue.string.charAt(Qt-2)!="\\"){Qt--;break}}else if(Yt&&!st){++Qt;break}}Yt&&!st&&(Ce.fatArrowAt=Qt)}}var re={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(ue,Ce,_e,ot,st,Yt){this.indented=ue,this.column=Ce,this.type=_e,this.prev=st,this.info=Yt,ot!=null&&(this.align=ot)}function ye(ue,Ce){if(!L)return!1;for(var _e=ue.localVars;_e;_e=_e.next)if(_e.name==Ce)return!0;for(var ot=ue.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Ce)return!0}function xe(ue,Ce,_e,ot,st){var Yt=ue.cc;for(pe.state=ue,pe.stream=st,pe.marked=null,pe.cc=Yt,pe.style=Ce,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Qt=Yt.length?Yt.pop():g?kt:mt;if(Qt(_e,ot)){for(;Yt.length&&Yt[Yt.length-1].lex;)Yt.pop()();return pe.marked?pe.marked:_e=="variable"&&ye(ue,ot)?"variable-2":Ce}}}var pe={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)pe.cc.push(arguments[ue])}function se(){return fe.apply(null,arguments),!0}function Fe(ue,Ce){for(var _e=Ce;_e;_e=_e.next)if(_e.name==ue)return!0;return!1}function De(ue){var Ce=pe.state;if(pe.marked="def",!!L){if(Ce.context){if(Ce.lexical.info=="var"&&Ce.context&&Ce.context.block){var _e=Re(ue,Ce.context);if(_e!=null){Ce.context=_e;return}}else if(!Fe(ue,Ce.localVars)){Ce.localVars=new Qe(ue,Ce.localVars);return}}x.globalVars&&!Fe(ue,Ce.globalVars)&&(Ce.globalVars=new Qe(ue,Ce.globalVars))}}function Re(ue,Ce){if(Ce)if(Ce.block){var _e=Re(ue,Ce.prev);return _e?_e==Ce.prev?Ce:new et(_e,Ce.vars,!0):null}else return Fe(ue,Ce.vars)?Ce:new et(Ce.prev,new Qe(ue,Ce.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function et(ue,Ce,_e){this.prev=ue,this.vars=Ce,this.block=_e}function Qe(ue,Ce){this.name=ue,this.next=Ce}var Je=new Qe("this",new Qe("arguments",null));function ut(){pe.state.context=new et(pe.state.context,pe.state.localVars,!1),pe.state.localVars=Je}function ht(){pe.state.context=new et(pe.state.context,pe.state.localVars,!0),pe.state.localVars=null}function wt(){pe.state.localVars=pe.state.context.vars,pe.state.context=pe.state.context.prev}wt.lex=!0;function rt(ue,Ce){var _e=function(){var ot=pe.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var Yt=ot.lexical;Yt&&Yt.type==")"&&Yt.align;Yt=Yt.prev)st=Yt.indented;ot.lexical=new ie(st,pe.stream.column(),ue,null,ot.lexical,Ce)};return _e.lex=!0,_e}function lt(){var ue=pe.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}lt.lex=!0;function yt(ue){function Ce(_e){return _e==ue?se():ue==";"||_e=="}"||_e==")"||_e=="]"?fe():se(Ce)}return Ce}function mt(ue,Ce){return ue=="var"?se(rt("vardef",Ce),Si,yt(";"),lt):ue=="keyword a"?se(rt("form"),Ct,mt,lt):ue=="keyword b"?se(rt("form"),mt,lt):ue=="keyword d"?pe.stream.match(/^\s*$/,!1)?se():se(rt("stat"),Lt,yt(";"),lt):ue=="debugger"?se(yt(";")):ue=="{"?se(rt("}"),ht,N,lt,wt):ue==";"?se():ue=="if"?(pe.state.lexical.info=="else"&&pe.state.cc[pe.state.cc.length-1]==lt&&pe.state.cc.pop()(),se(rt("form"),Ct,mt,lt,zr)):ue=="function"?se(xn):ue=="for"?se(rt("form"),ht,Ui,mt,wt,lt):ue=="class"||D&&Ce=="interface"?(pe.marked="keyword",se(rt("form",ue=="class"?ue:Ce),Un,lt)):ue=="variable"?D&&Ce=="declare"?(pe.marked="keyword",se(mt)):D&&(Ce=="module"||Ce=="enum"||Ce=="type")&&pe.stream.match(/^\s*\w/,!1)?(pe.marked="keyword",Ce=="enum"?se(la):Ce=="type"?se(Xn,yt("operator"),Ae,yt(";")):se(rt("form"),Hr,yt("{"),rt("}"),N,lt,lt)):D&&Ce=="namespace"?(pe.marked="keyword",se(rt("form"),kt,mt,lt)):D&&Ce=="abstract"?(pe.marked="keyword",se(mt)):se(rt("stat"),Ke):ue=="switch"?se(rt("form"),Ct,yt("{"),rt("}","switch"),ht,N,lt,lt,wt):ue=="case"?se(kt,yt(":")):ue=="default"?se(yt(":")):ue=="catch"?se(rt("form"),ut,pt,mt,lt,wt):ue=="export"?se(rt("stat"),xr,lt):ue=="import"?se(rt("stat"),oi,lt):ue=="async"?se(mt):Ce=="@"?se(kt,mt):fe(rt("stat"),kt,yt(";"),lt)}function pt(ue){if(ue=="(")return se(bn,yt(")"))}function kt(ue,Ce){return Ht(ue,Ce,!1)}function Ft(ue,Ce){return Ht(ue,Ce,!0)}function Ct(ue){return ue!="("?fe():se(rt(")"),Lt,yt(")"),lt)}function Ht(ue,Ce,_e){if(pe.state.fatArrowAt==pe.stream.start){var ot=_e?K:G;if(ue=="(")return se(ut,rt(")"),O(bn,")"),lt,yt("=>"),ot,wt);if(ue=="variable")return fe(ut,Hr,yt("=>"),ot,wt)}var st=_e?Tt:Vt;return re.hasOwnProperty(ue)?se(st):ue=="function"?se(xn,st):ue=="class"||D&&Ce=="interface"?(pe.marked="keyword",se(rt("form"),Tn,lt)):ue=="keyword c"||ue=="async"?se(_e?Ft:kt):ue=="("?se(rt(")"),Lt,yt(")"),lt,st):ue=="operator"||ue=="spread"?se(_e?Ft:kt):ue=="["?se(rt("]"),Qn,lt,st):ue=="{"?le(Me,"}",null,st):ue=="quasi"?fe(Dt,st):ue=="new"?se(we(_e)):se()}function Lt(ue){return ue.match(/[;\}\)\],]/)?fe():fe(kt)}function Vt(ue,Ce){return ue==","?se(Lt):Tt(ue,Ce,!1)}function Tt(ue,Ce,_e){var ot=_e==!1?Vt:Tt,st=_e==!1?kt:Ft;if(ue=="=>")return se(ut,_e?K:G,wt);if(ue=="operator")return/\+\+|--/.test(Ce)||D&&Ce=="!"?se(ot):D&&Ce=="<"&&pe.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?se(rt(">"),O(Ae,">"),lt,ot):Ce=="?"?se(kt,yt(":"),st):se(st);if(ue=="quasi")return fe(Dt,ot);if(ue!=";"){if(ue=="(")return le(Ft,")","call",ot);if(ue==".")return se(P,ot);if(ue=="[")return se(rt("]"),Lt,yt("]"),lt,ot);if(D&&Ce=="as")return pe.marked="keyword",se(Ae,ot);if(ue=="regexp")return pe.state.lastType=pe.marked="operator",pe.stream.backUp(pe.stream.pos-pe.stream.start-1),se(st)}}function Dt(ue,Ce){return ue!="quasi"?fe():Ce.slice(Ce.length-2)!="${"?se(Dt):se(Lt,he)}function he(ue){if(ue=="}")return pe.marked="string-2",pe.state.tokenize=Z,se(Dt)}function G(ue){return de(pe.stream,pe.state),fe(ue=="{"?mt:kt)}function K(ue){return de(pe.stream,pe.state),fe(ue=="{"?mt:Ft)}function we(ue){return function(Ce){return Ce=="."?se(ue?$e:Ie):Ce=="variable"&&D?se(Jr,ue?Tt:Vt):fe(ue?Ft:kt)}}function Ie(ue,Ce){if(Ce=="target")return pe.marked="keyword",se(Vt)}function $e(ue,Ce){if(Ce=="target")return pe.marked="keyword",se(Tt)}function Ke(ue){return ue==":"?se(lt,mt):fe(Vt,yt(";"),lt)}function P(ue){if(ue=="variable")return pe.marked="property",se()}function Me(ue,Ce){if(ue=="async")return pe.marked="property",se(Me);if(ue=="variable"||pe.style=="keyword"){if(pe.marked="property",Ce=="get"||Ce=="set")return se(Y);var _e;return D&&pe.state.fatArrowAt==pe.stream.start&&(_e=pe.stream.match(/^\s*:\s*/,!1))&&(pe.state.fatArrowAt=pe.stream.pos+_e[0].length),se(T)}else{if(ue=="number"||ue=="string")return pe.marked=A?"property":pe.style+" property",se(T);if(ue=="jsonld-keyword")return se(T);if(D&&Pe(Ce))return pe.marked="keyword",se(Me);if(ue=="[")return se(kt,ne,yt("]"),T);if(ue=="spread")return se(Ft,T);if(Ce=="*")return pe.marked="keyword",se(Me);if(ue==":")return fe(T)}}function Y(ue){return ue!="variable"?fe(T):(pe.marked="property",se(xn))}function T(ue){if(ue==":")return se(Ft);if(ue=="(")return fe(xn)}function O(ue,Ce,_e){function ot(st,Yt){if(_e?_e.indexOf(st)>-1:st==","){var Qt=pe.state.lexical;return Qt.info=="call"&&(Qt.pos=(Qt.pos||0)+1),se(function(Er,Cr){return Er==Ce||Cr==Ce?fe():fe(ue)},ot)}return st==Ce||Yt==Ce?se():_e&&_e.indexOf(";")>-1?fe(ue):se(yt(Ce))}return function(st,Yt){return st==Ce||Yt==Ce?se():fe(ue,ot)}}function le(ue,Ce,_e){for(var ot=3;ot<arguments.length;ot++)pe.cc.push(arguments[ot]);return se(rt(Ce,_e),O(ue,Ce),lt)}function N(ue){return ue=="}"?se():fe(mt,N)}function ne(ue,Ce){if(D){if(ue==":")return se(Ae);if(Ce=="?")return se(ne)}}function z(ue,Ce){if(D&&(ue==":"||Ce=="in"))return se(Ae)}function ae(ue){if(D&&ue==":")return pe.stream.match(/^\s*\w+\s+is\b/,!1)?se(kt,Oe,Ae):se(Ae)}function Oe(ue,Ce){if(Ce=="is")return pe.marked="keyword",se()}function Ae(ue,Ce){if(Ce=="keyof"||Ce=="typeof"||Ce=="infer"||Ce=="readonly")return pe.marked="keyword",se(Ce=="typeof"?Ft:Ae);if(ue=="variable"||Ce=="void")return pe.marked="type",se(Rt);if(Ce=="|"||Ce=="&")return se(Ae);if(ue=="string"||ue=="number"||ue=="atom")return se(Rt);if(ue=="[")return se(rt("]"),O(Ae,"]",","),lt,Rt);if(ue=="{")return se(rt("}"),Le,lt,Rt);if(ue=="(")return se(O(Gt,")"),Ve,Rt);if(ue=="<")return se(O(Ae,">"),Ae);if(ue=="quasi")return fe(vt,Rt)}function Ve(ue){if(ue=="=>")return se(Ae)}function Le(ue){return ue.match(/[\}\)\]]/)?se():ue==","||ue==";"?se(Le):fe(nt,Le)}function nt(ue,Ce){if(ue=="variable"||pe.style=="keyword")return pe.marked="property",se(nt);if(Ce=="?"||ue=="number"||ue=="string")return se(nt);if(ue==":")return se(Ae);if(ue=="[")return se(yt("variable"),z,yt("]"),nt);if(ue=="(")return fe(On,nt);if(!ue.match(/[;\}\)\],]/))return se()}function vt(ue,Ce){return ue!="quasi"?fe():Ce.slice(Ce.length-2)!="${"?se(vt):se(Ae,bt)}function bt(ue){if(ue=="}")return pe.marked="string-2",pe.state.tokenize=Z,se(vt)}function Gt(ue,Ce){return ue=="variable"&&pe.stream.match(/^\s*[?:]/,!1)||Ce=="?"?se(Gt):ue==":"?se(Ae):ue=="spread"?se(Gt):fe(Ae)}function Rt(ue,Ce){if(Ce=="<")return se(rt(">"),O(Ae,">"),lt,Rt);if(Ce=="|"||ue=="."||Ce=="&")return se(Ae);if(ue=="[")return se(Ae,yt("]"),Rt);if(Ce=="extends"||Ce=="implements")return pe.marked="keyword",se(Ae);if(Ce=="?")return se(Ae,yt(":"),Ae)}function Jr(ue,Ce){if(Ce=="<")return se(rt(">"),O(Ae,">"),lt,Rt)}function vr(){return fe(Ae,Cn)}function Cn(ue,Ce){if(Ce=="=")return se(Ae)}function Si(ue,Ce){return Ce=="enum"?(pe.marked="keyword",se(la)):fe(Hr,ne,on,Bn)}function Hr(ue,Ce){if(D&&Pe(Ce))return pe.marked="keyword",se(Hr);if(ue=="variable")return De(Ce),se();if(ue=="spread")return se(Hr);if(ue=="[")return le(ai,"]");if(ue=="{")return le(Jn,"}")}function Jn(ue,Ce){return ue=="variable"&&!pe.stream.match(/^\s*:/,!1)?(De(Ce),se(on)):(ue=="variable"&&(pe.marked="property"),ue=="spread"?se(Hr):ue=="}"?fe():ue=="["?se(kt,yt("]"),yt(":"),Jn):se(yt(":"),Hr,on))}function ai(){return fe(Hr,on)}function on(ue,Ce){if(Ce=="=")return se(Ft)}function Bn(ue){if(ue==",")return se(Si)}function zr(ue,Ce){if(ue=="keyword b"&&Ce=="else")return se(rt("form","else"),mt,lt)}function Ui(ue,Ce){if(Ce=="await")return se(Ui);if(ue=="(")return se(rt(")"),Ai,lt)}function Ai(ue){return ue=="var"?se(Si,Xr):ue=="variable"?se(Xr):fe(Xr)}function Xr(ue,Ce){return ue==")"?se():ue==";"?se(Xr):Ce=="in"||Ce=="of"?(pe.marked="keyword",se(kt,Xr)):fe(kt,Xr)}function xn(ue,Ce){if(Ce=="*")return pe.marked="keyword",se(xn);if(ue=="variable")return De(Ce),se(xn);if(ue=="(")return se(ut,rt(")"),O(bn,")"),lt,ae,mt,wt);if(D&&Ce=="<")return se(rt(">"),O(vr,">"),lt,xn)}function On(ue,Ce){if(Ce=="*")return pe.marked="keyword",se(On);if(ue=="variable")return De(Ce),se(On);if(ue=="(")return se(ut,rt(")"),O(bn,")"),lt,ae,wt);if(D&&Ce=="<")return se(rt(">"),O(vr,">"),lt,On)}function Xn(ue,Ce){if(ue=="keyword"||ue=="variable")return pe.marked="type",se(Xn);if(Ce=="<")return se(rt(">"),O(vr,">"),lt)}function bn(ue,Ce){return Ce=="@"&&se(kt,bn),ue=="spread"?se(bn):D&&Pe(Ce)?(pe.marked="keyword",se(bn)):D&&ue=="this"?se(ne,on):fe(Hr,ne,on)}function Tn(ue,Ce){return ue=="variable"?Un(ue,Ce):Qr(ue,Ce)}function Un(ue,Ce){if(ue=="variable")return De(Ce),se(Qr)}function Qr(ue,Ce){if(Ce=="<")return se(rt(">"),O(vr,">"),lt,Qr);if(Ce=="extends"||Ce=="implements"||D&&ue==",")return Ce=="implements"&&(pe.marked="keyword"),se(D?Ae:kt,Qr);if(ue=="{")return se(rt("}"),sn,lt)}function sn(ue,Ce){if(ue=="async"||ue=="variable"&&(Ce=="static"||Ce=="get"||Ce=="set"||D&&Pe(Ce))&&pe.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return pe.marked="keyword",se(sn);if(ue=="variable"||pe.style=="keyword")return pe.marked="property",se(jn,sn);if(ue=="number"||ue=="string")return se(jn,sn);if(ue=="[")return se(kt,ne,yt("]"),jn,sn);if(Ce=="*")return pe.marked="keyword",se(sn);if(D&&ue=="(")return fe(On,sn);if(ue==";"||ue==",")return se(sn);if(ue=="}")return se();if(Ce=="@")return se(kt,sn)}function jn(ue,Ce){if(Ce=="!"||Ce=="?")return se(jn);if(ue==":")return se(Ae,on);if(Ce=="=")return se(Ft);var _e=pe.state.lexical.prev,ot=_e&&_e.info=="interface";return fe(ot?On:xn)}function xr(ue,Ce){return Ce=="*"?(pe.marked="keyword",se(Vn,yt(";"))):Ce=="default"?(pe.marked="keyword",se(kt,yt(";"))):ue=="{"?se(O(Ot,"}"),Vn,yt(";")):fe(mt)}function Ot(ue,Ce){if(Ce=="as")return pe.marked="keyword",se(yt("variable"));if(ue=="variable")return fe(Ft,Ot)}function oi(ue){return ue=="string"?se():ue=="("?fe(kt):ue=="."?fe(Vt):fe(Ei,wn,Vn)}function Ei(ue,Ce){return ue=="{"?le(Ei,"}"):(ue=="variable"&&De(Ce),Ce=="*"&&(pe.marked="keyword"),se(_t))}function wn(ue){if(ue==",")return se(Ei,wn)}function _t(ue,Ce){if(Ce=="as")return pe.marked="keyword",se(Ei)}function Vn(ue,Ce){if(Ce=="from")return pe.marked="keyword",se(kt)}function Qn(ue){return ue=="]"?se():fe(O(Ft,"]"))}function la(){return fe(rt("form"),Hr,yt("{"),rt("}"),O(it,"}"),lt,lt)}function it(){return fe(Hr,on)}function Nt(ue,Ce){return ue.lastType=="operator"||ue.lastType==","||ee.test(Ce.charAt(0))||/[,.]/.test(Ce.charAt(0))}function si(ue,Ce,_e){return Ce.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ce.lastType)||Ce.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(_e||0)))}return{startState:function(ue){var Ce={tokenize:V,lastType:"sof",cc:[],lexical:new ie((ue||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new et(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ce.globalVars=x.globalVars),Ce},token:function(ue,Ce){if(ue.sol()&&(Ce.lexical.hasOwnProperty("align")||(Ce.lexical.align=!1),Ce.indented=ue.indentation(),de(ue,Ce)),Ce.tokenize!=q&&ue.eatSpace())return null;var _e=Ce.tokenize(ue,Ce);return Q=="comment"?_e:(Ce.lastType=Q=="operator"&&(M=="++"||M=="--")?"incdec":Q,xe(Ce,_e,Q,M,ue))},indent:function(ue,Ce){if(ue.tokenize==q||ue.tokenize==Z)return c.Pass;if(ue.tokenize!=V)return 0;var _e=Ce&&Ce.charAt(0),ot=ue.lexical,st;if(!/^\s*else\b/.test(Ce))for(var Yt=ue.cc.length-1;Yt>=0;--Yt){var Qt=ue.cc[Yt];if(Qt==lt)ot=ot.prev;else if(Qt!=zr&&Qt!=wt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(st=ue.cc[ue.cc.length-1])&&(st==Vt||st==Tt)&&!/^[,\.=+\-*:?[\(]/.test(Ce));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Er=ot.type,Cr=_e==Er;return Er=="vardef"?ot.indented+(ue.lastType=="operator"||ue.lastType==","?ot.info.length+1:0):Er=="form"&&_e=="{"?ot.indented:Er=="form"?ot.indented+d:Er=="stat"?ot.indented+(Nt(ue,Ce)?b||d:0):ot.info=="switch"&&!Cr&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ce)?d:2*d):ot.align?ot.column+(Cr?0:1):ot.indented+(Cr?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:si,skipExpression:function(ue){xe(ue,"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=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var et=u.somethingSelected(),at="\u200B"+(et?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=et?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=_,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&S<9)&&Ne();var et=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Ur(u,Go)(u):et++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&S>=9&&Ne(),J){zt(e);var Ye=function(){z(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},Sr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sr.prototype.setUneditable=function(){},Sr.prototype.needsContentAttribute=!1;function Bc(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=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var F=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=F}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(z(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=hr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return U}function lf(e){e.off=z,e.on=N,e.wheelEventPixels=nr,e.Doc=fn,e.splitLines=ii,e.countColumn=Je,e.findColumn=dt,e.isWordChar=he,e.Pass=rt,e.signal=oe,e.Line=ji,e.changeEnd=Fi,e.scrollbarModel=pn,e.Pos=it,e.cmpPos=Bt,e.modes=wi,e.mimeModes=Yr,e.resolveMode=Xn,e.getMode=bn,e.modeExtensions=Pn,e.extendMode=jn,e.copyState=Jr,e.startState=Vn,e.innerMode=ln,e.commands=to,e.keyMap=ti,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=hi,e.normalizeKeyMap=Rd,e.StringStream=xr,e.SharedTextMarker=ga,e.TextMarker=ei,e.LineWidget=Za,e.e_preventDefault=nt,e.e_stopPropagation=ht,e.e_stop=zt,e.addClass=De,e.contains=se,e.rmClass=te,e.keyNames=vn}tf(hr),Dc(hr);var Uc="iter insert remove copy getEditor constructor".split(" ");for(var rs in fn.prototype)fn.prototype.hasOwnProperty(rs)&&pt(Uc,rs)<0&&(hr.prototype[rs]=function(e){return function(){return e.apply(this.doc,arguments)}}(fn.prototype[rs]));return Le(fn),hr.inputStyles={textarea:Sr,contenteditable:St},hr.defineMode=function(e){!hr.defaults.mode&&e!="null"&&(hr.defaults.mode=e),xn.apply(this,arguments)},hr.defineMIME=Tn,hr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),hr.defineMIME("text/plain","null"),hr.defineExtension=function(e,n){hr.prototype[e]=n},hr.defineDocExtension=function(e,n){fn.prototype[e]=n},hr.fromTextArea=Bc,lf(hr),hr.version="5.65.0",hr})},96876:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function ue(Cr){return{type:Cr,style:"keyword"}}var Ce=ue("keyword a"),_e=ue("keyword b"),ot=ue("keyword c"),st=ue("keyword d"),Yt=ue("operator"),Qt={type:"atom",style:"atom"};return{if:ue("if"),while:Ce,with:Ce,else:_e,do:_e,try:_e,finally:_e,return:st,break:st,continue:st,new:ue("new"),delete:ot,void:ot,throw:ot,debugger:ue("debugger"),var:ue("var"),const:ue("var"),let:ue("var"),function:ue("function"),catch:ue("catch"),for:ue("for"),switch:ue("switch"),case:ue("case"),default:ue("default"),in:Yt,typeof:Yt,instanceof:Yt,true:Qt,false:Qt,null:Qt,undefined:Qt,NaN:Qt,Infinity:Qt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:ot,export:ue("export"),import:ue("import"),extends:ot,await:ot}}(),ee=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function R(ue){for(var Ce=!1,_e,ot=!1;(_e=ue.next())!=null;){if(!Ce){if(_e=="/"&&!ot)return;_e=="["?ot=!0:ot&&_e=="]"&&(ot=!1)}Ce=!Ce&&_e=="\\"}}var Q,M;function C(ue,Ce,_e){return Q=ue,M=_e,Ce}function V(ue,Ce){var _e=ue.next();if(_e=='"'||_e=="'")return Ce.tokenize=X(_e),Ce.tokenize(ue,Ce);if(_e=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(_e=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(_e))return C(_e);if(_e=="="&&ue.eat(">"))return C("=>","operator");if(_e=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(_e))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(_e=="/")return ue.eat("*")?(Ce.tokenize=q,q(ue,Ce)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):oi(ue,Ce,1)?(R(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(_e=="`")return Ce.tokenize=Z,Z(ue,Ce);if(_e=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(_e=="#"&&ue.eatWhile(B))return C("variable","property");if(_e=="<"&&ue.match("!--")||_e=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(ee.test(_e))return(_e!=">"||!Ce.lexical||Ce.lexical.type!=">")&&(ue.eat("=")?(_e=="!"||_e=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(_e)&&(ue.eat(_e),_e==">"&&ue.eat(_e))),_e=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(_e)){ue.eatWhile(B);var ot=ue.current();if(Ce.lastType!="."){if(j.propertyIsEnumerable(ot)){var st=j[ot];return C(st.type,st.style,ot)}if(ot=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",ot)}return C("variable","variable",ot)}}function X(ue){return function(Ce,_e){var ot=!1,st;if(S&&Ce.peek()=="@"&&Ce.match(W))return _e.tokenize=V,C("jsonld-keyword","meta");for(;(st=Ce.next())!=null&&!(st==ue&&!ot);)ot=!ot&&st=="\\";return ot||(_e.tokenize=V),C("string","string")}}function q(ue,Ce){for(var _e=!1,ot;ot=ue.next();){if(ot=="/"&&_e){Ce.tokenize=V;break}_e=ot=="*"}return C("comment","comment")}function Z(ue,Ce){for(var _e=!1,ot;(ot=ue.next())!=null;){if(!_e&&(ot=="`"||ot=="$"&&ue.eat("{"))){Ce.tokenize=V;break}_e=!_e&&ot=="\\"}return C("quasi","string-2",ue.current())}var J="([{}])";function de(ue,Ce){Ce.fatArrowAt&&(Ce.fatArrowAt=null);var _e=ue.string.indexOf("=>",ue.start);if(!(_e<0)){if(D){var ot=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,_e));ot&&(_e=ot.index)}for(var st=0,Yt=!1,Qt=_e-1;Qt>=0;--Qt){var Cr=ue.string.charAt(Qt),Or=J.indexOf(Cr);if(Or>=0&&Or<3){if(!st){++Qt;break}if(--st==0){Cr=="("&&(Yt=!0);break}}else if(Or>=3&&Or<6)++st;else if(B.test(Cr))Yt=!0;else if(/["'\/`]/.test(Cr))for(;;--Qt){if(Qt==0)return;var qt=ue.string.charAt(Qt-1);if(qt==Cr&&ue.string.charAt(Qt-2)!="\\"){Qt--;break}}else if(Yt&&!st){++Qt;break}}Yt&&!st&&(Ce.fatArrowAt=Qt)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ae(ue,Ce,_e,ot,st,Yt){this.indented=ue,this.column=Ce,this.type=_e,this.prev=st,this.info=Yt,ot!=null&&(this.align=ot)}function ye(ue,Ce){if(!L)return!1;for(var _e=ue.localVars;_e;_e=_e.next)if(_e.name==Ce)return!0;for(var ot=ue.context;ot;ot=ot.prev)for(var _e=ot.vars;_e;_e=_e.next)if(_e.name==Ce)return!0}function xe(ue,Ce,_e,ot,st){var Yt=ue.cc;for(pe.state=ue,pe.stream=st,pe.marked=null,pe.cc=Yt,pe.style=Ce,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Qt=Yt.length?Yt.pop():g?Rt:mt;if(Qt(_e,ot)){for(;Yt.length&&Yt[Yt.length-1].lex;)Yt.pop()();return pe.marked?pe.marked:_e=="variable"&&ye(ue,ot)?"variable-2":Ce}}}var pe={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)pe.cc.push(arguments[ue])}function se(){return fe.apply(null,arguments),!0}function Fe(ue,Ce){for(var _e=Ce;_e;_e=_e.next)if(_e.name==ue)return!0;return!1}function De(ue){var Ce=pe.state;if(pe.marked="def",!!L){if(Ce.context){if(Ce.lexical.info=="var"&&Ce.context&&Ce.context.block){var _e=Re(ue,Ce.context);if(_e!=null){Ce.context=_e;return}}else if(!Fe(ue,Ce.localVars)){Ce.localVars=new Qe(ue,Ce.localVars);return}}x.globalVars&&!Fe(ue,Ce.globalVars)&&(Ce.globalVars=new Qe(ue,Ce.globalVars))}}function Re(ue,Ce){if(Ce)if(Ce.block){var _e=Re(ue,Ce.prev);return _e?_e==Ce.prev?Ce:new tt(_e,Ce.vars,!0):null}else return Fe(ue,Ce.vars)?Ce:new tt(Ce.prev,new Qe(ue,Ce.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function tt(ue,Ce,_e){this.prev=ue,this.vars=Ce,this.block=_e}function Qe(ue,Ce){this.name=ue,this.next=Ce}var Je=new Qe("this",new Qe("arguments",null));function ut(){pe.state.context=new tt(pe.state.context,pe.state.localVars,!1),pe.state.localVars=Je}function pt(){pe.state.context=new tt(pe.state.context,pe.state.localVars,!0),pe.state.localVars=null}function wt(){pe.state.localVars=pe.state.context.vars,pe.state.context=pe.state.context.prev}wt.lex=!0;function rt(ue,Ce){var _e=function(){var ot=pe.state,st=ot.indented;if(ot.lexical.type=="stat")st=ot.lexical.indented;else for(var Yt=ot.lexical;Yt&&Yt.type==")"&&Yt.align;Yt=Yt.prev)st=Yt.indented;ot.lexical=new ae(st,pe.stream.column(),ue,null,ot.lexical,Ce)};return _e.lex=!0,_e}function lt(){var ue=pe.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}lt.lex=!0;function yt(ue){function Ce(_e){return _e==ue?se():ue==";"||_e=="}"||_e==")"||_e=="]"?fe():se(Ce)}return Ce}function mt(ue,Ce){return ue=="var"?se(rt("vardef",Ce),bi,yt(";"),lt):ue=="keyword a"?se(rt("form"),Ct,mt,lt):ue=="keyword b"?se(rt("form"),mt,lt):ue=="keyword d"?pe.stream.match(/^\s*$/,!1)?se():se(rt("stat"),Dt,yt(";"),lt):ue=="debugger"?se(yt(";")):ue=="{"?se(rt("}"),pt,N,lt,wt):ue==";"?se():ue=="if"?(pe.state.lexical.info=="else"&&pe.state.cc[pe.state.cc.length-1]==lt&&pe.state.cc.pop()(),se(rt("form"),Ct,mt,lt,Hr)):ue=="function"?se(xn):ue=="for"?se(rt("form"),pt,Ni,mt,wt,lt):ue=="class"||D&&Ce=="interface"?(pe.marked="keyword",se(rt("form",ue=="class"?ue:Ce),jn,lt)):ue=="variable"?D&&Ce=="declare"?(pe.marked="keyword",se(mt)):D&&(Ce=="module"||Ce=="enum"||Ce=="type")&&pe.stream.match(/^\s*\w/,!1)?(pe.marked="keyword",Ce=="enum"?se(oa):Ce=="type"?se(Xn,yt("operator"),Ae,yt(";")):se(rt("form"),Wr,yt("{"),rt("}"),N,lt,lt)):D&&Ce=="namespace"?(pe.marked="keyword",se(rt("form"),Rt,mt,lt)):D&&Ce=="abstract"?(pe.marked="keyword",se(mt)):se(rt("stat"),Ke):ue=="switch"?se(rt("form"),Ct,yt("{"),rt("}","switch"),pt,N,lt,lt,wt):ue=="case"?se(Rt,yt(":")):ue=="default"?se(yt(":")):ue=="catch"?se(rt("form"),ut,dt,mt,lt,wt):ue=="export"?se(rt("stat"),xr,lt):ue=="import"?se(rt("stat"),ai,lt):ue=="async"?se(mt):Ce=="@"?se(Rt,mt):fe(rt("stat"),Rt,yt(";"),lt)}function dt(ue){if(ue=="(")return se(bn,yt(")"))}function Rt(ue,Ce){return Wt(ue,Ce,!1)}function kt(ue,Ce){return Wt(ue,Ce,!0)}function Ct(ue){return ue!="("?fe():se(rt(")"),Dt,yt(")"),lt)}function Wt(ue,Ce,_e){if(pe.state.fatArrowAt==pe.stream.start){var ot=_e?K:G;if(ue=="(")return se(ut,rt(")"),O(bn,")"),lt,yt("=>"),ot,wt);if(ue=="variable")return fe(ut,Wr,yt("=>"),ot,wt)}var st=_e?Tt:Vt;return te.hasOwnProperty(ue)?se(st):ue=="function"?se(xn,st):ue=="class"||D&&Ce=="interface"?(pe.marked="keyword",se(rt("form"),Pn,lt)):ue=="keyword c"||ue=="async"?se(_e?kt:Rt):ue=="("?se(rt(")"),Dt,yt(")"),lt,st):ue=="operator"||ue=="spread"?se(_e?kt:Rt):ue=="["?se(rt("]"),Qn,lt,st):ue=="{"?le(Me,"}",null,st):ue=="quasi"?fe(Nt,st):ue=="new"?se(we(_e)):se()}function Dt(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Rt)}function Vt(ue,Ce){return ue==","?se(Dt):Tt(ue,Ce,!1)}function Tt(ue,Ce,_e){var ot=_e==!1?Vt:Tt,st=_e==!1?Rt:kt;if(ue=="=>")return se(ut,_e?K:G,wt);if(ue=="operator")return/\+\+|--/.test(Ce)||D&&Ce=="!"?se(ot):D&&Ce=="<"&&pe.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?se(rt(">"),O(Ae,">"),lt,ot):Ce=="?"?se(Rt,yt(":"),st):se(st);if(ue=="quasi")return fe(Nt,ot);if(ue!=";"){if(ue=="(")return le(kt,")","call",ot);if(ue==".")return se(P,ot);if(ue=="[")return se(rt("]"),Dt,yt("]"),lt,ot);if(D&&Ce=="as")return pe.marked="keyword",se(Ae,ot);if(ue=="regexp")return pe.state.lastType=pe.marked="operator",pe.stream.backUp(pe.stream.pos-pe.stream.start-1),se(st)}}function Nt(ue,Ce){return ue!="quasi"?fe():Ce.slice(Ce.length-2)!="${"?se(Nt):se(Dt,he)}function he(ue){if(ue=="}")return pe.marked="string-2",pe.state.tokenize=Z,se(Nt)}function G(ue){return de(pe.stream,pe.state),fe(ue=="{"?mt:Rt)}function K(ue){return de(pe.stream,pe.state),fe(ue=="{"?mt:kt)}function we(ue){return function(Ce){return Ce=="."?se(ue?Ge:Ie):Ce=="variable"&&D?se(Kr,ue?Tt:Vt):fe(ue?kt:Rt)}}function Ie(ue,Ce){if(Ce=="target")return pe.marked="keyword",se(Vt)}function Ge(ue,Ce){if(Ce=="target")return pe.marked="keyword",se(Tt)}function Ke(ue){return ue==":"?se(lt,mt):fe(Vt,yt(";"),lt)}function P(ue){if(ue=="variable")return pe.marked="property",se()}function Me(ue,Ce){if(ue=="async")return pe.marked="property",se(Me);if(ue=="variable"||pe.style=="keyword"){if(pe.marked="property",Ce=="get"||Ce=="set")return se(Y);var _e;return D&&pe.state.fatArrowAt==pe.stream.start&&(_e=pe.stream.match(/^\s*:\s*/,!1))&&(pe.state.fatArrowAt=pe.stream.pos+_e[0].length),se(T)}else{if(ue=="number"||ue=="string")return pe.marked=S?"property":pe.style+" property",se(T);if(ue=="jsonld-keyword")return se(T);if(D&&Pe(Ce))return pe.marked="keyword",se(Me);if(ue=="[")return se(Rt,re,yt("]"),T);if(ue=="spread")return se(kt,T);if(Ce=="*")return pe.marked="keyword",se(Me);if(ue==":")return fe(T)}}function Y(ue){return ue!="variable"?fe(T):(pe.marked="property",se(xn))}function T(ue){if(ue==":")return se(kt);if(ue=="(")return fe(xn)}function O(ue,Ce,_e){function ot(st,Yt){if(_e?_e.indexOf(st)>-1:st==","){var Qt=pe.state.lexical;return Qt.info=="call"&&(Qt.pos=(Qt.pos||0)+1),se(function(Cr,Or){return Cr==Ce||Or==Ce?fe():fe(ue)},ot)}return st==Ce||Yt==Ce?se():_e&&_e.indexOf(";")>-1?fe(ue):se(yt(Ce))}return function(st,Yt){return st==Ce||Yt==Ce?se():fe(ue,ot)}}function le(ue,Ce,_e){for(var ot=3;ot<arguments.length;ot++)pe.cc.push(arguments[ot]);return se(rt(Ce,_e),O(ue,Ce),lt)}function N(ue){return ue=="}"?se():fe(mt,N)}function re(ue,Ce){if(D){if(ue==":")return se(Ae);if(Ce=="?")return se(re)}}function z(ue,Ce){if(D&&(ue==":"||Ce=="in"))return se(Ae)}function oe(ue){if(D&&ue==":")return pe.stream.match(/^\s*\w+\s+is\b/,!1)?se(Rt,Oe,Ae):se(Ae)}function Oe(ue,Ce){if(Ce=="is")return pe.marked="keyword",se()}function Ae(ue,Ce){if(Ce=="keyof"||Ce=="typeof"||Ce=="infer"||Ce=="readonly")return pe.marked="keyword",se(Ce=="typeof"?kt:Ae);if(ue=="variable"||Ce=="void")return pe.marked="type",se(Mt);if(Ce=="|"||Ce=="&")return se(Ae);if(ue=="string"||ue=="number"||ue=="atom")return se(Mt);if(ue=="[")return se(rt("]"),O(Ae,"]",","),lt,Mt);if(ue=="{")return se(rt("}"),Le,lt,Mt);if(ue=="(")return se(O(zt,")"),Ve,Mt);if(ue=="<")return se(O(Ae,">"),Ae);if(ue=="quasi")return fe(ht,Mt)}function Ve(ue){if(ue=="=>")return se(Ae)}function Le(ue){return ue.match(/[\}\)\]]/)?se():ue==","||ue==";"?se(Le):fe(nt,Le)}function nt(ue,Ce){if(ue=="variable"||pe.style=="keyword")return pe.marked="property",se(nt);if(Ce=="?"||ue=="number"||ue=="string")return se(nt);if(ue==":")return se(Ae);if(ue=="[")return se(yt("variable"),z,yt("]"),nt);if(ue=="(")return fe(Tn,nt);if(!ue.match(/[;\}\)\],]/))return se()}function ht(ue,Ce){return ue!="quasi"?fe():Ce.slice(Ce.length-2)!="${"?se(ht):se(Ae,bt)}function bt(ue){if(ue=="}")return pe.marked="string-2",pe.state.tokenize=Z,se(ht)}function zt(ue,Ce){return ue=="variable"&&pe.stream.match(/^\s*[?:]/,!1)||Ce=="?"?se(zt):ue==":"?se(Ae):ue=="spread"?se(zt):fe(Ae)}function Mt(ue,Ce){if(Ce=="<")return se(rt(">"),O(Ae,">"),lt,Mt);if(Ce=="|"||ue=="."||Ce=="&")return se(Ae);if(ue=="[")return se(Ae,yt("]"),Mt);if(Ce=="extends"||Ce=="implements")return pe.marked="keyword",se(Ae);if(Ce=="?")return se(Ae,yt(":"),Ae)}function Kr(ue,Ce){if(Ce=="<")return se(rt(">"),O(Ae,">"),lt,Mt)}function gr(){return fe(Ae,On)}function On(ue,Ce){if(Ce=="=")return se(Ae)}function bi(ue,Ce){return Ce=="enum"?(pe.marked="keyword",se(oa)):fe(Wr,re,sn,Un)}function Wr(ue,Ce){if(D&&Pe(Ce))return pe.marked="keyword",se(Wr);if(ue=="variable")return De(Ce),se();if(ue=="spread")return se(Wr);if(ue=="[")return le(ii,"]");if(ue=="{")return le(Jn,"}")}function Jn(ue,Ce){return ue=="variable"&&!pe.stream.match(/^\s*:/,!1)?(De(Ce),se(sn)):(ue=="variable"&&(pe.marked="property"),ue=="spread"?se(Wr):ue=="}"?fe():ue=="["?se(Rt,yt("]"),yt(":"),Jn):se(yt(":"),Wr,sn))}function ii(){return fe(Wr,sn)}function sn(ue,Ce){if(Ce=="=")return se(kt)}function Un(ue){if(ue==",")return se(bi)}function Hr(ue,Ce){if(ue=="keyword b"&&Ce=="else")return se(rt("form","else"),mt,lt)}function Ni(ue,Ce){if(Ce=="await")return se(Ni);if(ue=="(")return se(rt(")"),wi,lt)}function wi(ue){return ue=="var"?se(bi,Yr):ue=="variable"?se(Yr):fe(Yr)}function Yr(ue,Ce){return ue==")"?se():ue==";"?se(Yr):Ce=="in"||Ce=="of"?(pe.marked="keyword",se(Rt,Yr)):fe(Rt,Yr)}function xn(ue,Ce){if(Ce=="*")return pe.marked="keyword",se(xn);if(ue=="variable")return De(Ce),se(xn);if(ue=="(")return se(ut,rt(")"),O(bn,")"),lt,oe,mt,wt);if(D&&Ce=="<")return se(rt(">"),O(gr,">"),lt,xn)}function Tn(ue,Ce){if(Ce=="*")return pe.marked="keyword",se(Tn);if(ue=="variable")return De(Ce),se(Tn);if(ue=="(")return se(ut,rt(")"),O(bn,")"),lt,oe,wt);if(D&&Ce=="<")return se(rt(">"),O(gr,">"),lt,Tn)}function Xn(ue,Ce){if(ue=="keyword"||ue=="variable")return pe.marked="type",se(Xn);if(Ce=="<")return se(rt(">"),O(gr,">"),lt)}function bn(ue,Ce){return Ce=="@"&&se(Rt,bn),ue=="spread"?se(bn):D&&Pe(Ce)?(pe.marked="keyword",se(bn)):D&&ue=="this"?se(re,sn):fe(Wr,re,sn)}function Pn(ue,Ce){return ue=="variable"?jn(ue,Ce):Jr(ue,Ce)}function jn(ue,Ce){if(ue=="variable")return De(Ce),se(Jr)}function Jr(ue,Ce){if(Ce=="<")return se(rt(">"),O(gr,">"),lt,Jr);if(Ce=="extends"||Ce=="implements"||D&&ue==",")return Ce=="implements"&&(pe.marked="keyword"),se(D?Ae:Rt,Jr);if(ue=="{")return se(rt("}"),ln,lt)}function ln(ue,Ce){if(ue=="async"||ue=="variable"&&(Ce=="static"||Ce=="get"||Ce=="set"||D&&Pe(Ce))&&pe.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return pe.marked="keyword",se(ln);if(ue=="variable"||pe.style=="keyword")return pe.marked="property",se(Vn,ln);if(ue=="number"||ue=="string")return se(Vn,ln);if(ue=="[")return se(Rt,re,yt("]"),Vn,ln);if(Ce=="*")return pe.marked="keyword",se(ln);if(D&&ue=="(")return fe(Tn,ln);if(ue==";"||ue==",")return se(ln);if(ue=="}")return se();if(Ce=="@")return se(Rt,ln)}function Vn(ue,Ce){if(Ce=="!"||Ce=="?")return se(Vn);if(ue==":")return se(Ae,sn);if(Ce=="=")return se(kt);var _e=pe.state.lexical.prev,ot=_e&&_e.info=="interface";return fe(ot?Tn:xn)}function xr(ue,Ce){return Ce=="*"?(pe.marked="keyword",se(Wn,yt(";"))):Ce=="default"?(pe.marked="keyword",se(Rt,yt(";"))):ue=="{"?se(O(Ot,"}"),Wn,yt(";")):fe(mt)}function Ot(ue,Ce){if(Ce=="as")return pe.marked="keyword",se(yt("variable"));if(ue=="variable")return fe(kt,Ot)}function ai(ue){return ue=="string"?se():ue=="("?fe(Rt):ue=="."?fe(Vt):fe(Si,wn,Wn)}function Si(ue,Ce){return ue=="{"?le(Si,"}"):(ue=="variable"&&De(Ce),Ce=="*"&&(pe.marked="keyword"),se(_t))}function wn(ue){if(ue==",")return se(Si,wn)}function _t(ue,Ce){if(Ce=="as")return pe.marked="keyword",se(Si)}function Wn(ue,Ce){if(Ce=="from")return pe.marked="keyword",se(Rt)}function Qn(ue){return ue=="]"?se():fe(O(kt,"]"))}function oa(){return fe(rt("form"),Wr,yt("{"),rt("}"),O(it,"}"),lt,lt)}function it(){return fe(Wr,sn)}function Bt(ue,Ce){return ue.lastType=="operator"||ue.lastType==","||ee.test(Ce.charAt(0))||/[,.]/.test(Ce.charAt(0))}function oi(ue,Ce,_e){return Ce.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ce.lastType)||Ce.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(_e||0)))}return{startState:function(ue){var Ce={tokenize:V,lastType:"sof",cc:[],lexical:new ae((ue||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new tt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Ce.globalVars=x.globalVars),Ce},token:function(ue,Ce){if(ue.sol()&&(Ce.lexical.hasOwnProperty("align")||(Ce.lexical.align=!1),Ce.indented=ue.indentation(),de(ue,Ce)),Ce.tokenize!=q&&ue.eatSpace())return null;var _e=Ce.tokenize(ue,Ce);return Q=="comment"?_e:(Ce.lastType=Q=="operator"&&(M=="++"||M=="--")?"incdec":Q,xe(Ce,_e,Q,M,ue))},indent:function(ue,Ce){if(ue.tokenize==q||ue.tokenize==Z)return c.Pass;if(ue.tokenize!=V)return 0;var _e=Ce&&Ce.charAt(0),ot=ue.lexical,st;if(!/^\s*else\b/.test(Ce))for(var Yt=ue.cc.length-1;Yt>=0;--Yt){var Qt=ue.cc[Yt];if(Qt==lt)ot=ot.prev;else if(Qt!=Hr&&Qt!=wt)break}for(;(ot.type=="stat"||ot.type=="form")&&(_e=="}"||(st=ue.cc[ue.cc.length-1])&&(st==Vt||st==Tt)&&!/^[,\.=+\-*:?[\(]/.test(Ce));)ot=ot.prev;b&&ot.type==")"&&ot.prev.type=="stat"&&(ot=ot.prev);var Cr=ot.type,Or=_e==Cr;return Cr=="vardef"?ot.indented+(ue.lastType=="operator"||ue.lastType==","?ot.info.length+1:0):Cr=="form"&&_e=="{"?ot.indented:Cr=="form"?ot.indented+d:Cr=="stat"?ot.indented+(Bt(ue,Ce)?b||d:0):ot.info=="switch"&&!Or&&x.doubleIndentSwitch!=!1?ot.indented+(/^(?:case|default)\b/.test(Ce)?d:2*d):ot.align?ot.column+(Or?0:1):ot.indented+(Or?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:S,jsonMode:g,expressionAllowed:oi,skipExpression:function(ue){xe(ue,"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 a=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 D={},B=L||{},j=g.split(v),ee=B.decode||a,W=0;W<j.length;W++){var R=j[W],Q=R.indexOf("=");if(!(Q<0)){var M=R.substr(0,Q).trim(),C=R.substr(++Q,R.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[M]==null&&(D[M]=A(C,ee))}}return D}function b(g,L,D){var B=D||{},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 ee=j(L);if(ee&&!x.test(ee))throw new TypeError("argument val is invalid");var W=g+"="+ee;if(B.maxAge!=null){var R=B.maxAge-0;if(isNaN(R)||!isFinite(R))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(R)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var Q=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(Q){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function A(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(80991),v=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,A){return v.defineProperties(b,A)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(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,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,A){return v.getOwnPropertyDescriptor(b,A)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(44349),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),A=a(55449),g=a(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,ee=arguments.length,W=ee>1?arguments[1]:void 0,R=W!==void 0,Q=g(B),M=0,C,V,X,q,Z,J;if(R&&(W=c(W,ee>2?arguments[2]:void 0,2)),Q!=null&&!(j==Array&&d(Q)))for(q=Q.call(B),Z=q.next,V=new j;!(X=Z.call(q)).done;M++)J=R?x(q,W,[X.value,M],!0):X.value,A(V,M,J);else for(C=b(B.length),V=new j(C);C>M;M++)J=R?W(B[M],M):B[M],A(V,M,J);return V.length=M,V}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(A,g,L){var D=c(A),B=v(D.length),j=x(L,B),ee;if(b&&g!=g){for(;B>j;)if(ee=D[j++],ee!=ee)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),A=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,ee=L==4,W=L==6,R=L==7,Q=L==5||W;return function(M,C,V,X){for(var q=x(M),Z=v(q),J=c(C,V,3),de=d(Z.length),re=0,ie=X||b,ye=D?ie(M,de):B||R?ie(M,0):void 0,xe,pe;de>re;re++)if((Q||re in Z)&&(xe=Z[re],pe=J(xe,re,q),L))if(D)ye[re]=pe;else if(pe)switch(L){case 3:return!0;case 5:return xe;case 6:return re;case 2:A.call(ye,xe)}else switch(L){case 4:return!1;case 7:A.call(ye,xe)}return W?-1:j||ee?ee: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,a)=>{var c=a(95981),v=a(99813),x=a(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,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(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,a)=>{var c=a(96059),v=a(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,a)=>{var c=a(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 D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},A(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",A=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=A(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),A=a(93091),g=a(3610),L=a(47457),D=a(45402),B=D.set,j=D.getterFor,ee=g.find,W=g.findIndex,R=0,Q=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,X){return ee(V.entries,function(q){return q[0]===X})};M.prototype={get:function(V){var X=C(this,V);if(X)return X[1]},has:function(V){return!!C(this,V)},set:function(V,X){var q=C(this,V);q?q[1]=X:this.entries.push([V,X])},delete:function(V){var X=W(this.entries,function(q){return q[0]===V});return~X&&this.entries.splice(X,1),!!~X}},h.exports={getConstructor:function(V,X,q,Z){var J=V(function(ie,ye){b(ie,J,X),B(ie,{type:X,id:R++,frozen:void 0}),ye!=null&&A(ye,ie[Z],{that:ie,AS_ENTRIES:q})}),de=j(X),re=function(ie,ye,xe){var pe=de(ie),fe=v(x(ye),!0);return fe===!0?Q(pe).set(ye,xe):fe[pe.id]=xe,ie};return c(J.prototype,{delete:function(ie){var ye=de(this);if(!d(ie))return!1;var xe=v(ie);return xe===!0?Q(ye).delete(ie):xe&&L(xe,ye.id)&&delete xe[ye.id]},has:function(ye){var xe=de(this);if(!d(ye))return!1;var pe=v(ye);return pe===!0?Q(xe).has(ye):pe&&L(pe,xe.id)}}),c(J.prototype,q?{get:function(ye){var xe=de(this);if(d(ye)){var pe=v(ye);return pe===!0?Q(xe).get(ye):pe?pe[xe.id]:void 0}},set:function(ye,xe){return re(this,ye,xe)}}:{add:function(ye){return re(this,ye,!0)}}),J}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),A=a(93091),g=a(5743),L=a(10941),D=a(90904),B=a(65988).f,j=a(3610).forEach,ee=a(55746),W=a(45402),R=W.set,Q=W.getterFor;h.exports=function(M,C,V){var X=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Z=X?"set":"add",J=v[M],de=J&&J.prototype,re={},ie;if(!ee||typeof J!="function"||!(q||de.forEach&&!d(function(){new J().entries().next()})))ie=V.getConstructor(C,M,X,Z),x.REQUIRED=!0;else{ie=C(function(xe,pe){R(g(xe,ie,M),{type:M,collection:new J}),pe!=null&&A(pe,xe[Z],{that:xe,AS_ENTRIES:X})});var ye=Q(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(xe){var pe=xe=="add"||xe=="set";xe in de&&!(q&&xe=="clear")&&b(ie.prototype,xe,function(fe,se){var Fe=ye(this).collection;if(!pe&&q&&!L(fe))return xe=="get"?void 0:!1;var De=Fe[xe](fe===0?0:fe,se);return pe?this:De})}),q||B(ie.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return D(ie,M,!1,!0),re[M]=ie,c({global:!0,forced:!0},re),q||V.setStrong(ie,M,X),ie}},67772:(h,I,a)=>{var c=a(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,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),A=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=A,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(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,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(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,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),A=a(32029),g=a(99754),L=a(99813),D=a(82529),B=a(12077),j=a(35143),ee=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,R=L("iterator"),Q="keys",M="values",C="entries",V=function(){return this};h.exports=function(X,q,Z,J,de,re,ie){v(Z,q,J);var ye=function(Qe){if(Qe===de&&Fe)return Fe;if(!W&&Qe in fe)return fe[Qe];switch(Qe){case Q:return function(){return new Z(this,Qe)};case M:return function(){return new Z(this,Qe)};case C:return function(){return new Z(this,Qe)}}return function(){return new Z(this)}},xe=q+" Iterator",pe=!1,fe=X.prototype,se=fe[R]||fe["@@iterator"]||de&&fe[de],Fe=!W&&se||ye(de),De=q=="Array"&&fe.entries||se,Re,Pe,et;if(De&&(Re=x(De.call(new X)),ee!==Object.prototype&&Re.next&&(!D&&x(Re)!==ee&&(d?d(Re,ee):typeof Re[R]!="function"&&A(Re,R,V)),b(Re,xe,!0,!0),D&&(B[xe]=V))),de==M&&se&&se.name!==M&&(pe=!0,Fe=function(){return se.call(this)}),(!D||ie)&&fe[R]!==Fe&&A(fe,R,Fe),B[q]=Fe,de)if(Pe={values:ye(M),keys:re?Fe:ye(Q),entries:ye(C)},ie)for(et in Pe)(W||pe||!(et in fe))&&g(fe,et,Pe[et]);else c({target:q,proto:!0,forced:W||pe},Pe);return Pe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(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,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(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,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(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,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),A=a(32029),g=a(47457),L=function(D){var B=function(j,ee,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,ee)}return new D(j,ee,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,ee=D.global,W=D.stat,R=D.proto,Q=ee?c:W?c[j]:(c[j]||{}).prototype,M=ee?d:d[j]||(d[j]={}),C=M.prototype,V,X,q,Z,J,de,re,ie,ye;for(Z in B)V=x(ee?Z:j+(W?".":"#")+Z,D.forced),X=!V&&Q&&g(Q,Z),de=M[Z],X&&(D.noTargetGet?(ye=v(Q,Z),re=ye&&ye.value):re=Q[Z]),J=X&&re?re:B[Z],!(X&&typeof de==typeof J)&&(D.bind&&X?ie=b(J,c):D.wrap&&X?ie=L(J):R&&typeof J=="function"?ie=b(Function.call,J):ie=J,(D.sham||J&&J.sham||de&&de.sham)&&A(ie,"sham",!0),M[Z]=ie,R&&(q=j+"Prototype",g(d,q)||A(d,q,{}),d[q][Z]=J,D.real&&C&&!C[Z]&&A(C,Z,J)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(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,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(A,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](A,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var ee=D.concat(x.call(arguments));return this instanceof B?b(L,ee.length,ee):L.apply(g,ee)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,a)=>{var c=a(54058),v=a(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,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{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 a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(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,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(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,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),A=a(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(Q){d(Q,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(Q,M){if(!v(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!x(Q,g)){if(!D(Q))return"F";if(!M)return"E";B(Q)}return Q[g].objectID},ee=function(Q,M){if(!x(Q,g)){if(!D(Q))return!0;if(!M)return!1;B(Q)}return Q[g].weakData},W=function(Q){return A&&R.REQUIRED&&D(Q)&&!x(Q,g)&&B(Q),Q},R=h.exports={REQUIRED:!1,fastKey:j,getWeakData:ee,onFreeze:W};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),A=a(63030),g=a(44262),L=a(27748),D="Object already initialized",B=v.WeakMap,j,ee,W,R=function(Z){return W(Z)?ee(Z):j(Z,{})},Q=function(Z){return function(J){var de;if(!x(J)||(de=ee(J)).type!==Z)throw TypeError("Incompatible receiver, "+Z+" required");return de}};if(c||A.state){var M=A.state||(A.state=new B),C=M.get,V=M.has,X=M.set;j=function(Z,J){if(V.call(M,Z))throw new TypeError(D);return J.facade=Z,X.call(M,Z,J),J},ee=function(Z){return C.call(M,Z)||{}},W=function(Z){return V.call(M,Z)}}else{var q=g("state");L[q]=!0,j=function(Z,J){if(b(Z,q))throw new TypeError(D);return J.facade=Z,d(Z,q,J),J},ee=function(Z){return b(Z,q)?Z[q]:{}},W=function(Z){return b(Z,q)}}h.exports={set:j,get:ee,has:W,enforce:R,getterFor:Q}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==A?!1:typeof D=="function"?c(D):!!D},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,a)=>{var c=a(10941),v=a(82532),x=a(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,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),A=a(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,ee=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),R=!!(B&&B.INTERRUPTED),Q=d(D,j,1+ee+R),M,C,V,X,q,Z,J,de=function(ie){return M&&A(M),new g(!0,ie)},re=function(ie){return ee?(c(ie),R?Q(ie[0],ie[1],de):Q(ie[0],ie[1])):R?Q(ie,de):Q(ie)};if(W)M=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,X=x(L.length);X>V;V++)if(q=re(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Z=M.next;!(J=Z.call(M)).done;){try{q=re(J.value)}catch(ie){throw A(M),ie}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),A=a(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,ee;[].keys&&(ee=[].keys(),"next"in ee?(j=v(v(ee)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var R={};return B[g].call(R)!==R});W&&(B={}),(!A||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),A=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),ee=j&&j.value,W,R,Q,M,C,V,X,q;ee||(W=function(){var Z,J;for(A&&(Z=D.domain)&&Z.exit();R;){J=R.fn,R=R.next;try{J()}catch(de){throw R?M():Q=void 0,de}}Q=void 0,Z&&Z.enter()},!d&&!A&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(X=B.resolve(void 0),X.constructor=B,q=X.then,M=function(){q.call(X,W)}):A?M=function(){D.nextTick(W)}:M=function(){x.call(c,W)}),h.exports=ee||function(Z){var J={fn:Z,next:void 0};Q&&(Q.next=J),R||(R=J,M()),Q=J}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(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,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(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,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),A=a(89678),g=a(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},ee=Symbol(),W="abcdefghijklmnopqrst";return B[ee]=7,W.split("").forEach(function(R){j[R]=R}),L({},B)[ee]!=7||x(L({},j)).join("")!=W})?function(j,ee){for(var W=A(j),R=arguments.length,Q=1,M=d.f,C=b.f;R>Q;)for(var V=g(arguments[Q++]),X=M?x(V).concat(M(V)):x(V),q=X.length,Z=0,J;q>Z;)J=X[Z++],(!c||C.call(V,J))&&(W[J]=V[J]);return W}:L},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),A=a(61333),g=a(44262),L=">",D="<",B="prototype",j="script",ee=g("IE_PROTO"),W=function(){},R=function(X){return D+j+L+X+D+"/"+j+L},Q=function(X){X.write(R("")),X.close();var q=X.parentWindow.Object;return X=null,q},M=function(){var X=A("iframe"),q="java"+j+":",Z;return X.style.display="none",b.appendChild(X),X.src=String(q),Z=X.contentWindow.document,Z.open(),Z.write(R("document.F=Object")),Z.close(),Z.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(q){}V=C?Q(C):M();for(var X=x.length;X--;)delete V[B][x[X]];return V()};d[ee]=!0,h.exports=Object.create||function(q,Z){var J;return q!==null?(W[B]=c(q),J=new W,W[B]=null,J[ee]=q):J=V(),Z===void 0?J:v(J,Z)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(A,g){x(A);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(A,j=L[B++],g[j]);return A}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),A=a(47457),g=a(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(ee){}if(A(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,a)=>{var c=a(74529),v=a(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,a)=>{var c=a(55629),v=a(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,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(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,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,A){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;A.length>L;)c(g,B=A[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(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,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(A){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,ee=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&ee.push(A?[W,L[W]]:L[W]);return ee}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(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(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(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,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),A=a(99813),g=A("toStringTag");h.exports=function(L,D,B,j){if(L){var ee=B?L:L.prototype;d(ee,g)||v(ee,g,{configurable:!0,value:D}),j&&!c&&x(ee,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(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,a)=>{var c=a(96059),v=a(33916),x=a(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,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,A){var g=String(v(b)),L=c(A),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(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,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),A=a(22749),g=a(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,ee=c.MessageChannel,W=c.Dispatch,R=0,Q={},M="onreadystatechange",C,V,X,q=function(re){if(Q.hasOwnProperty(re)){var ie=Q[re];delete Q[re],ie()}},Z=function(re){return function(){q(re)}},J=function(re){q(re.data)},de=function(re){c.postMessage(re+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var ye=[],xe=1;arguments.length>xe;)ye.push(arguments[xe++]);return Q[++R]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,ye)},C(R),R},B=function(ie){delete Q[ie]},g?C=function(re){j.nextTick(Z(re))}:W&&W.now?C=function(re){W.now(Z(re))}:ee&&!A?(V=new ee,X=V.port2,V.port1.onmessage=J,C=x(X.postMessage,X,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(de)?(C=de,c.addEventListener("message",J,!1)):M in b("script")?C=function(re){d.appendChild(b("script"))[M]=function(){d.removeChild(this),q(re)}}:C=function(re){setTimeout(Z(re),0)}),h.exports={set:D,clear:B}},59413:(h,I,a)=>{var c=a(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,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(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,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),A=a(32302),g=v("wks"),L=c.Symbol,D=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]=D("Symbol."+B)),g[B]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),A=a(31887),g=a(93091),L=function(B,j){var ee=this;if(!(ee instanceof L))return new L(B,j);x&&(ee=x(new Error(void 0),v(ee))),j!==void 0&&b(ee,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(ee,"errors",W),ee};L.prototype=d(Error.prototype,{constructor:A(5,L),message:A(5,""),name:A(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),A=a(43057),g=a(55449),L=a(64692),D=a(50568),B=a(99813),j=a(53385),ee=B("isConcatSpreadable"),W=9007199254740991,R="Maximum allowed index exceeded",Q=j>=51||!v(function(){var X=[];return X[ee]=!1,X.concat()[0]!==X}),M=D("concat"),C=function(X){if(!d(X))return!1;var q=X[ee];return q!==void 0?!!q:x(X)},V=!Q||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Z=b(this),J=L(Z,0),de=0,re,ie,ye,xe,pe;for(re=-1,ye=arguments.length;re<ye;re++)if(pe=re===-1?Z:arguments[re],C(pe)){if(xe=A(pe.length),de+xe>W)throw TypeError(R);for(ie=0;ie<xe;ie++,de++)ie in pe&&g(J,de,pe[ie])}else{if(de>=W)throw TypeError(R);g(J,de++,pe)}return J.length=de,J}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(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,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(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,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(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,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(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,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),A="Array Iterator",g=d.set,L=d.getterFor(A);h.exports=b(Array,"Array",function(D,B){g(this,{type:A,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,ee=D.index++;return!B||ee>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:ee,done:!1}:j=="values"?{value:B[ee],done:!1}:{value:[ee,B[ee]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(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,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),A=a(74529),g=a(55449),L=a(99813),D=a(50568),B=D("slice"),j=L("species"),ee=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(Q,M){var C=A(this),V=b(C.length),X=d(Q,V),q=d(M===void 0?V:M,V),Z,J,de;if(x(C)&&(Z=C.constructor,typeof Z=="function"&&(Z===Array||x(Z.prototype))?Z=void 0:v(Z)&&(Z=Z[j],Z===null&&(Z=void 0)),Z===Array||Z===void 0))return ee.call(C,X,q);for(J=new(Z===void 0?Array:Z)(W(q-X,0)),de=0;X<q;X++,de++)X in C&&g(J,de,C[X]);return J.length=de,J}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),A=a(64692),g=a(55449),L=a(50568),D=L("splice"),B=Math.max,j=Math.min,ee=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(Q,M){var C=b(this),V=d(C.length),X=v(Q,V),q=arguments.length,Z,J,de,re,ie,ye;if(q===0?Z=J=0:q===1?(Z=0,J=V-X):(Z=q-2,J=j(B(x(M),0),V-X)),V+Z-J>ee)throw TypeError(W);for(de=A(C,J),re=0;re<J;re++)ie=X+re,ie in C&&g(de,re,C[ie]);if(de.length=J,Z<J){for(re=X;re<V-J;re++)ie=re+J,ye=re+Z,ie in C?C[ye]=C[ie]:delete C[ye];for(re=V;re>V-J+Z;re--)delete C[re-1]}else if(Z>J)for(re=V-J;re>X;re--)ie=re+J-1,ye=re+Z-1,ie in C?C[ye]=C[ie]:delete C[ye];for(re=0;re<Z;re++)C[re+X]=arguments[re+2];return C.length=V-J+Z,de}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,ee){var W=ee.charAt(j-1),R=ee.charAt(j+1);return A.test(B)&&!g.test(R)||g.test(B)&&!A.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,ee,W){var R=d.apply(null,arguments);return typeof R=="string"?R.replace(b,L):R}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),A=v(function(){d(1)}),g=!b||A;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),A=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),ee={},W=0,R,Q;j.length>W;)Q=B(D,R=j[W++]),Q!==void 0&&A(ee,R,Q);return ee}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(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,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,ee=d(function(){var W=v(L.resolve),R=[],Q=0,M=1;b(g,function(C){var V=Q++,X=!1;R.push(void 0),M++,W.call(L,C).then(function(q){X||(X=!0,R[V]={status:"fulfilled",value:q},--M||B(R))},function(q){X||(X=!0,R[V]={status:"rejected",reason:q},--M||B(R))})}),--M||B(R)});return ee.error&&j(ee.value),D.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),A=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),ee=j.resolve,W=j.reject,R=b(function(){var Q=v(B.resolve),M=[],C=0,V=1,X=!1;A(D,function(q){var Z=C++,J=!1;M.push(void 0),V++,Q.call(B,q).then(function(de){J||X||(X=!0,ee(de))},function(de){J||X||(J=!0,M[Z]=de,--V||W(new(x("AggregateError"))(M,g)))})}),--V||W(new(x("AggregateError"))(M,g))});return R.error&&W(R.value),j.promise}})},44349:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),A=a(70487),g=a(56584),L=a(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var ee=A(this,b("Promise")),W=typeof j=="function";return this.then(W?function(R){return g(ee,j()).then(function(){return R})}:j,W?function(R){return g(ee,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,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),A=a(99754),g=a(87524),L=a(88929),D=a(90904),B=a(94431),j=a(10941),ee=a(33916),W=a(5743),R=a(81302),Q=a(93091),M=a(21385),C=a(70487),V=a(42941).set,X=a(66132),q=a(56584),Z=a(34845),J=a(69520),de=a(40002),re=a(45402),ie=a(37252),ye=a(99813),xe=a(23321),pe=a(6049),fe=a(53385),se=ye("species"),Fe="Promise",De=re.get,Re=re.set,Pe=re.getterFor(Fe),et=b&&b.prototype,Qe=b,Je=et,ut=x.TypeError,ht=x.document,wt=x.process,rt=J.f,lt=rt,yt=!!(ht&&ht.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",kt="rejectionhandled",Ft=0,Ct=1,Ht=2,Lt=1,Vt=2,Tt=!1,Dt,he,G,K,we=ie(Fe,function(){var ne=R(Qe)!==String(Qe);if(!ne&&fe===66||v&&!Je.finally)return!0;if(fe>=51&&/native code/.test(Qe))return!1;var z=new Qe(function(Ae){Ae(1)}),ae=function(Ae){Ae(function(){},function(){})},Oe=z.constructor={};return Oe[se]=ae,Tt=z.then(function(){})instanceof ae,Tt?!ne&&xe&&!mt:!0}),Ie=we||!M(function(ne){Qe.all(ne).catch(function(){})}),$e=function(ne){var z;return j(ne)&&typeof(z=ne.then)=="function"?z:!1},Ke=function(ne,z){if(!ne.notified){ne.notified=!0;var ae=ne.reactions;X(function(){for(var Oe=ne.value,Ae=ne.state==Ct,Ve=0;ae.length>Ve;){var Le=ae[Ve++],nt=Ae?Le.ok:Le.fail,vt=Le.resolve,bt=Le.reject,Gt=Le.domain,Rt,Jr,vr;try{nt?(Ae||(ne.rejection===Vt&&T(ne),ne.rejection=Lt),nt===!0?Rt=Oe:(Gt&&Gt.enter(),Rt=nt(Oe),Gt&&(Gt.exit(),vr=!0)),Rt===Le.promise?bt(ut("Promise-chain cycle")):(Jr=$e(Rt))?Jr.call(Rt,vt,bt):vt(Rt)):bt(Oe)}catch(Cn){Gt&&!vr&&Gt.exit(),bt(Cn)}}ne.reactions=[],ne.notified=!1,z&&!ne.rejection&&Me(ne)})}},P=function(ne,z,ae){var Oe,Ae;yt?(Oe=ht.createEvent("Event"),Oe.promise=z,Oe.reason=ae,Oe.initEvent(ne,!1,!0),x.dispatchEvent(Oe)):Oe={promise:z,reason:ae},!mt&&(Ae=x["on"+ne])?Ae(Oe):ne===pt&&Z("Unhandled promise rejection",ae)},Me=function(ne){V.call(x,function(){var z=ne.facade,ae=ne.value,Oe=Y(ne),Ae;if(Oe&&(Ae=de(function(){pe?wt.emit("unhandledRejection",ae,z):P(pt,z,ae)}),ne.rejection=pe||Y(ne)?Vt:Lt,Ae.error))throw Ae.value})},Y=function(ne){return ne.rejection!==Lt&&!ne.parent},T=function(ne){V.call(x,function(){var z=ne.facade;pe?wt.emit("rejectionHandled",z):P(kt,z,ne.value)})},O=function(ne,z,ae){return function(Oe){ne(z,Oe,ae)}},le=function(ne,z,ae){ne.done||(ne.done=!0,ae&&(ne=ae),ne.value=z,ne.state=Ht,Ke(ne,!0))},N=function(ne,z,ae){if(!ne.done){ne.done=!0,ae&&(ne=ae);try{if(ne.facade===z)throw ut("Promise can't be resolved itself");var Oe=$e(z);Oe?X(function(){var Ae={done:!1};try{Oe.call(z,O(N,Ae,ne),O(le,Ae,ne))}catch(Ve){le(Ae,Ve,ne)}}):(ne.value=z,ne.state=Ct,Ke(ne,!1))}catch(Ae){le({done:!1},Ae,ne)}}};if(we&&(Qe=function(z){W(this,Qe,Fe),ee(z),Dt.call(this);var ae=De(this);try{z(O(N,ae),O(le,ae))}catch(Oe){le(ae,Oe)}},Je=Qe.prototype,Dt=function(z){Re(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Ft,value:void 0})},Dt.prototype=g(Je,{then:function(z,ae){var Oe=Pe(this),Ae=rt(C(this,Qe));return Ae.ok=typeof z=="function"?z:!0,Ae.fail=typeof ae=="function"&&ae,Ae.domain=pe?wt.domain:void 0,Oe.parent=!0,Oe.reactions.push(Ae),Oe.state!=Ft&&Ke(Oe,!1),Ae.promise},catch:function(ne){return this.then(void 0,ne)}}),he=function(){var ne=new Dt,z=De(ne);this.promise=ne,this.resolve=O(N,z),this.reject=O(le,z)},J.f=rt=function(ne){return ne===Qe||ne===G?new he(ne):lt(ne)},!v&&typeof b=="function"&&et!==Object.prototype)){K=et.then,Tt||(A(et,"then",function(z,ae){var Oe=this;return new Qe(function(Ae,Ve){K.call(Oe,Ae,Ve)}).then(z,ae)},{unsafe:!0}),A(et,"catch",Je.catch,{unsafe:!0}));try{delete et.constructor}catch(ne){}L&&L(et,Je)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),D(Qe,Fe,!1,!0),B(Fe),G=d(Fe),c({target:Fe,stat:!0,forced:we},{reject:function(z){var ae=rt(this);return ae.reject.call(void 0,z),ae.promise}}),c({target:Fe,stat:!0,forced:v||we},{resolve:function(z){return q(v&&this===G?Qe:this,z)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(z){var ae=this,Oe=rt(ae),Ae=Oe.resolve,Ve=Oe.reject,Le=de(function(){var nt=ee(ae.resolve),vt=[],bt=0,Gt=1;Q(z,function(Rt){var Jr=bt++,vr=!1;vt.push(void 0),Gt++,nt.call(ae,Rt).then(function(Cn){vr||(vr=!0,vt[Jr]=Cn,--Gt||Ae(vt))},Ve)}),--Gt||Ae(vt)});return Le.error&&Ve(Le.value),Oe.promise},race:function(z){var ae=this,Oe=rt(ae),Ae=Oe.reject,Ve=de(function(){var Le=ee(ae.resolve);Q(z,function(nt){Le.call(ae,nt).then(Oe.resolve,Ae)})});return Ve.error&&Ae(Ve.value),Oe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),A=a(29290),g=a(98308),L=a(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),ee=B||j;c({target:"Reflect",stat:!0,forced:ee,sham:ee},{construct:function(R,Q){x(R),d(Q);var M=arguments.length<3?R:x(arguments[2]);if(j&&!B)return D(R,Q,M);if(R==M){switch(Q.length){case 0:return new R;case 1:return new R(Q[0]);case 2:return new R(Q[0],Q[1]);case 3:return new R(Q[0],Q[1],Q[2]);case 4:return new R(Q[0],Q[1],Q[2],Q[3])}var C=[null];return C.push.apply(C,Q),new(g.apply(R,C))}var V=M.prototype,X=A(b(V)?V:Object.prototype),q=Function.apply.call(R,X,Q);return b(q)?q:X}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),A=a(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,ee;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(ee=A(L)))return g(ee,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(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,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(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),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),A=a(72497),g=a(32302),L=a(95981),D=a(47457),B=a(1052),j=a(10941),ee=a(96059),W=a(89678),R=a(74529),Q=a(46935),M=a(31887),C=a(29290),V=a(14771),X=a(10946),q=a(684),Z=a(87857),J=a(49677),de=a(65988),re=a(36760),ie=a(32029),ye=a(99754),xe=a(68726),pe=a(44262),fe=a(27748),se=a(99418),Fe=a(99813),De=a(11477),Re=a(66349),Pe=a(90904),et=a(45402),Qe=a(3610).forEach,Je=pe("hidden"),ut="Symbol",ht="prototype",wt=Fe("toPrimitive"),rt=et.set,lt=et.getterFor(ut),yt=Object[ht],mt=v.Symbol,pt=x("JSON","stringify"),kt=J.f,Ft=de.f,Ct=q.f,Ht=re.f,Lt=xe("symbols"),Vt=xe("op-symbols"),Tt=xe("string-to-symbol-registry"),Dt=xe("symbol-to-string-registry"),he=xe("wks"),G=v.QObject,K=!G||!G[ht]||!G[ht].findChild,we=b&&L(function(){return C(Ft({},"a",{get:function(){return Ft(this,"a",{value:7}).a}})).a!=7})?function(ne,z,ae){var Oe=kt(yt,z);Oe&&delete yt[z],Ft(ne,z,ae),Oe&&ne!==yt&&Ft(yt,z,Oe)}:Ft,Ie=function(ne,z){var ae=Lt[ne]=C(mt[ht]);return rt(ae,{type:ut,tag:ne,description:z}),b||(ae.description=z),ae},$e=g?function(ne){return typeof ne=="symbol"}:function(ne){return Object(ne)instanceof mt},Ke=function(z,ae,Oe){z===yt&&Ke(Vt,ae,Oe),ee(z);var Ae=Q(ae,!0);return ee(Oe),D(Lt,Ae)?(Oe.enumerable?(D(z,Je)&&z[Je][Ae]&&(z[Je][Ae]=!1),Oe=C(Oe,{enumerable:M(0,!1)})):(D(z,Je)||Ft(z,Je,M(1,{})),z[Je][Ae]=!0),we(z,Ae,Oe)):Ft(z,Ae,Oe)},P=function(z,ae){ee(z);var Oe=R(ae),Ae=V(Oe).concat(le(Oe));return Qe(Ae,function(Ve){(!b||Y.call(Oe,Ve))&&Ke(z,Ve,Oe[Ve])}),z},Me=function(z,ae){return ae===void 0?C(z):P(C(z),ae)},Y=function(z){var ae=Q(z,!0),Oe=Ht.call(this,ae);return this===yt&&D(Lt,ae)&&!D(Vt,ae)?!1:Oe||!D(this,ae)||!D(Lt,ae)||D(this,Je)&&this[Je][ae]?Oe:!0},T=function(z,ae){var Oe=R(z),Ae=Q(ae,!0);if(!(Oe===yt&&D(Lt,Ae)&&!D(Vt,Ae))){var Ve=kt(Oe,Ae);return Ve&&D(Lt,Ae)&&!(D(Oe,Je)&&Oe[Je][Ae])&&(Ve.enumerable=!0),Ve}},O=function(z){var ae=Ct(R(z)),Oe=[];return Qe(ae,function(Ae){!D(Lt,Ae)&&!D(fe,Ae)&&Oe.push(Ae)}),Oe},le=function(z){var ae=z===yt,Oe=Ct(ae?Vt:R(z)),Ae=[];return Qe(Oe,function(Ve){D(Lt,Ve)&&(!ae||D(yt,Ve))&&Ae.push(Lt[Ve])}),Ae};if(A||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var z=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=se(z),Oe=function(Ae){this===yt&&Oe.call(Vt,Ae),D(this,Je)&&D(this[Je],ae)&&(this[Je][ae]=!1),we(this,ae,M(1,Ae))};return b&&K&&we(yt,ae,{configurable:!0,set:Oe}),Ie(ae,z)},ye(mt[ht],"toString",function(){return lt(this).tag}),ye(mt,"withoutSetter",function(ne){return Ie(se(ne),ne)}),re.f=Y,de.f=Ke,J.f=T,X.f=q.f=O,Z.f=le,De.f=function(ne){return Ie(Fe(ne),ne)},b&&(Ft(mt[ht],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(yt,"propertyIsEnumerable",Y,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:mt}),Qe(V(he),function(ne){Re(ne)}),c({target:ut,stat:!0,forced:!A},{for:function(ne){var z=String(ne);if(D(Tt,z))return Tt[z];var ae=mt(z);return Tt[z]=ae,Dt[ae]=z,ae},keyFor:function(z){if(!$e(z))throw TypeError(z+" is not a symbol");if(D(Dt,z))return Dt[z]},useSetter:function(){K=!0},useSimple:function(){K=!1}}),c({target:"Object",stat:!0,forced:!A,sham:!b},{create:Me,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:O,getOwnPropertySymbols:le}),c({target:"Object",stat:!0,forced:L(function(){Z.f(1)})},{getOwnPropertySymbols:function(z){return Z.f(W(z))}}),pt){var N=!A||L(function(){var ne=mt();return pt([ne])!="[null]"||pt({a:ne})!="{}"||pt(Object(ne))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(z,ae,Oe){for(var Ae=[z],Ve=1,Le;arguments.length>Ve;)Ae.push(arguments[Ve++]);if(Le=ae,!(!j(ae)&&z===void 0||$e(z)))return B(ae)||(ae=function(nt,vt){if(typeof Le=="function"&&(vt=Le.call(this,nt,vt)),!$e(vt))return vt}),Ae[1]=ae,pt.apply(null,Ae)}})}mt[ht][wt]||ie(mt[ht],wt,mt[ht].valueOf),Pe(mt,ut),fe[Je]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),A=a(10941),g=a(45402).enforce,L=a(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,ee=function(X){return function(){return X(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",ee,b);if(L&&D){j=b.getConstructor(ee,"WeakMap",!0),x.REQUIRED=!0;var R=W.prototype,Q=R.delete,M=R.has,C=R.get,V=R.set;v(R,{delete:function(X){if(A(X)&&!B(X)){var q=g(this);return q.frozen||(q.frozen=new j),Q.call(this,X)||q.frozen.delete(X)}return Q.call(this,X)},has:function(q){if(A(q)&&!B(q)){var Z=g(this);return Z.frozen||(Z.frozen=new j),M.call(this,q)||Z.frozen.has(q)}return M.call(this,q)},get:function(q){if(A(q)&&!B(q)){var Z=g(this);return Z.frozen||(Z.frozen=new j),M.call(this,q)?C.call(this,q):Z.frozen.get(q)}return C.call(this,q)},set:function(q,Z){if(A(q)&&!B(q)){var J=g(this);J.frozen||(J.frozen=new j),M.call(this,q)?V.call(this,q,Z):J.frozen.set(q,Z)}else V.call(this,q,Z);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(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,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),A=a(99813),g=A("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(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,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(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,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){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(re){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(re){return re&&DataView.prototype.isPrototypeOf(re)}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(re){return re&&x.indexOf(Object.prototype.toString.call(re))>-1};function b(re){if(typeof re!="string"&&(re=String(re)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(re))throw new TypeError("Invalid character in header field name");return re.toLowerCase()}function A(re){return typeof re!="string"&&(re=String(re)),re}function g(re){var ie={next:function(){var ye=re.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(re){this.map={},re instanceof L?re.forEach(function(ie,ye){this.append(ye,ie)},this):Array.isArray(re)?re.forEach(function(ie){this.append(ie[0],ie[1])},this):re&&Object.getOwnPropertyNames(re).forEach(function(ie){this.append(ie,re[ie])},this)}L.prototype.append=function(re,ie){re=b(re),ie=A(ie);var ye=this.map[re];this.map[re]=ye?ye+", "+ie:ie},L.prototype.delete=function(re){delete this.map[b(re)]},L.prototype.get=function(re){return re=b(re),this.has(re)?this.map[re]:null},L.prototype.has=function(re){return this.map.hasOwnProperty(b(re))},L.prototype.set=function(re,ie){this.map[b(re)]=A(ie)},L.prototype.forEach=function(re,ie){for(var ye in this.map)this.map.hasOwnProperty(ye)&&re.call(ie,this.map[ye],ye,this)},L.prototype.keys=function(){var re=[];return this.forEach(function(ie,ye){re.push(ye)}),g(re)},L.prototype.values=function(){var re=[];return this.forEach(function(ie){re.push(ie)}),g(re)},L.prototype.entries=function(){var re=[];return this.forEach(function(ie,ye){re.push([ye,ie])}),g(re)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(re){if(re.bodyUsed)return Promise.reject(new TypeError("Already read"));re.bodyUsed=!0}function B(re){return new Promise(function(ie,ye){re.onload=function(){ie(re.result)},re.onerror=function(){ye(re.error)}})}function j(re){var ie=new FileReader,ye=B(ie);return ie.readAsArrayBuffer(re),ye}function ee(re){var ie=new FileReader,ye=B(ie);return ie.readAsText(re),ye}function W(re){for(var ie=new Uint8Array(re),ye=new Array(ie.length),xe=0;xe<ie.length;xe++)ye[xe]=String.fromCharCode(ie[xe]);return ye.join("")}function R(re){if(re.slice)return re.slice(0);var ie=new Uint8Array(re.byteLength);return ie.set(new Uint8Array(re)),ie.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(re){this._bodyInit=re,re?typeof re=="string"?this._bodyText=re:c.blob&&Blob.prototype.isPrototypeOf(re)?this._bodyBlob=re:c.formData&&FormData.prototype.isPrototypeOf(re)?this._bodyFormData=re:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(re)?this._bodyText=re.toString():c.arrayBuffer&&c.blob&&v(re)?(this._bodyArrayBuffer=R(re.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(re)||d(re))?this._bodyArrayBuffer=R(re):this._bodyText=re=Object.prototype.toString.call(re):this._bodyText="",this.headers.get("content-type")||(typeof re=="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(re)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var re=D(this);if(re)return re;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?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var re=D(this);if(re)return re;if(this._bodyBlob)return ee(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(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(X)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(re){var ie=re.toUpperCase();return M.indexOf(ie)>-1?ie:re}function V(re,ie){ie=ie||{};var ye=ie.body;if(re instanceof V){if(re.bodyUsed)throw new TypeError("Already read");this.url=re.url,this.credentials=re.credentials,ie.headers||(this.headers=new L(re.headers)),this.method=re.method,this.mode=re.mode,this.signal=re.signal,!ye&&re._bodyInit!=null&&(ye=re._bodyInit,re.bodyUsed=!0)}else this.url=String(re);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.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 X(re){var ie=new FormData;return re.trim().split("&").forEach(function(ye){if(ye){var xe=ye.split("="),pe=xe.shift().replace(/\+/g," "),fe=xe.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(pe),decodeURIComponent(fe))}}),ie}function q(re){var ie=new L,ye=re.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(xe){var pe=xe.split(":"),fe=pe.shift().trim();if(fe){var se=pe.join(":").trim();ie.append(fe,se)}}),ie}Q.call(V.prototype);function Z(re,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new L(ie.headers),this.url=ie.url||"",this._initBody(re)}Q.call(Z.prototype),Z.prototype.clone=function(){return new Z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Z.error=function(){var re=new Z(null,{status:0,statusText:""});return re.type="error",re};var J=[301,302,303,307,308];Z.redirect=function(re,ie){if(J.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Z(null,{status:ie,headers:{location:re}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(re){a.DOMException=function(ie,ye){this.message=ie,this.name=ye;var xe=Error(ie);this.stack=xe.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function de(re,ie){return new Promise(function(ye,xe){var pe=new V(re,ie);if(pe.signal&&pe.signal.aborted)return xe(new a.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function se(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:q(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var De="response"in fe?fe.response:fe.responseText;ye(new Z(De,Fe))},fe.onerror=function(){xe(new TypeError("Network request failed"))},fe.ontimeout=function(){xe(new TypeError("Network request failed"))},fe.onabort=function(){xe(new a.DOMException("Aborted","AbortError"))},fe.open(pe.method,pe.url,!0),pe.credentials==="include"?fe.withCredentials=!0:pe.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),pe.headers.forEach(function(Fe,De){fe.setRequestHeader(De,Fe)}),pe.signal&&(pe.signal.addEventListener("abort",se),fe.onreadystatechange=function(){fe.readyState===4&&pe.signal.removeEventListener("abort",se)}),fe.send(typeof pe._bodyInit=="undefined"?null:pe._bodyInit)})}return de.polyfill=!0,h.fetch||(h.fetch=de,h.Headers=L,h.Request=V,h.Response=Z),a.Headers=L,a.Request=V,a.Response=Z,a.fetch=de,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,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(fe){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(A.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(fe){return fe&&L.indexOf(Object.prototype.toString.call(fe))>-1};function B(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(fe))throw new TypeError("Invalid character in header field name");return fe.toLowerCase()}function j(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function ee(fe){var se={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return A.iterable&&(se[Symbol.iterator]=function(){return se}),se}function W(fe){this.map={},fe instanceof W?fe.forEach(function(se,Fe){this.append(Fe,se)},this):Array.isArray(fe)?fe.forEach(function(se){this.append(se[0],se[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(se){this.append(se,fe[se])},this)}W.prototype.append=function(fe,se){fe=B(fe),se=j(se);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+se:se},W.prototype.delete=function(fe){delete this.map[B(fe)]},W.prototype.get=function(fe){return fe=B(fe),this.has(fe)?this.map[fe]:null},W.prototype.has=function(fe){return this.map.hasOwnProperty(B(fe))},W.prototype.set=function(fe,se){this.map[B(fe)]=j(se)},W.prototype.forEach=function(fe,se){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(se,this.map[Fe],Fe,this)},W.prototype.keys=function(){var fe=[];return this.forEach(function(se,Fe){fe.push(Fe)}),ee(fe)},W.prototype.values=function(){var fe=[];return this.forEach(function(se){fe.push(se)}),ee(fe)},W.prototype.entries=function(){var fe=[];return this.forEach(function(se,Fe){fe.push([Fe,se])}),ee(fe)},A.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function R(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function Q(fe){return new Promise(function(se,Fe){fe.onload=function(){se(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function M(fe){var se=new FileReader,Fe=Q(se);return se.readAsArrayBuffer(fe),Fe}function C(fe){var se=new FileReader,Fe=Q(se);return se.readAsText(fe),Fe}function V(fe){for(var se=new Uint8Array(fe),Fe=new Array(se.length),De=0;De<se.length;De++)Fe[De]=String.fromCharCode(se[De]);return Fe.join("")}function X(fe){if(fe.slice)return fe.slice(0);var se=new Uint8Array(fe.byteLength);return se.set(new Uint8Array(fe)),se.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(fe){this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:A.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:A.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():A.arrayBuffer&&A.blob&&g(fe)?(this._bodyArrayBuffer=X(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=X(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="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(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var fe=R(this);if(fe)return fe;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 fe=R(this);if(fe)return fe;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(re)}),this.json=function(){return this.text().then(JSON.parse)},this}var Z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function J(fe){var se=fe.toUpperCase();return Z.indexOf(se)>-1?se:fe}function de(fe,se){se=se||{};var Fe=se.body;if(fe instanceof de){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,se.headers||(this.headers=new W(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Fe&&fe._bodyInit!=null&&(Fe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=se.credentials||this.credentials||"same-origin",(se.headers||!this.headers)&&(this.headers=new W(se.headers)),this.method=J(se.method||this.method||"GET"),this.mode=se.mode||this.mode||null,this.signal=se.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}de.prototype.clone=function(){return new de(this,{body:this._bodyInit})};function re(fe){var se=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var De=Fe.split("="),Re=De.shift().replace(/\+/g," "),Pe=De.join("=").replace(/\+/g," ");se.append(decodeURIComponent(Re),decodeURIComponent(Pe))}}),se}function ie(fe){var se=new W,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(De){var Re=De.split(":"),Pe=Re.shift().trim();if(Pe){var et=Re.join(":").trim();se.append(Pe,et)}}),se}q.call(de.prototype);function ye(fe,se){se||(se={}),this.type="default",this.status=se.status===void 0?200:se.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in se?se.statusText:"OK",this.headers=new W(se.headers),this.url=se.url||"",this._initBody(fe)}q.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},ye.error=function(){var fe=new ye(null,{status:0,statusText:""});return fe.type="error",fe};var xe=[301,302,303,307,308];ye.redirect=function(fe,se){if(xe.indexOf(se)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:se,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(se,Fe){this.message=se,this.name=Fe;var De=Error(se);this.stack=De.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function pe(fe,se){return new Promise(function(Fe,De){var Re=new de(fe,se);if(Re.signal&&Re.signal.aborted)return De(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function et(){Pe.abort()}Pe.onload=function(){var Qe={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Qe.url="responseURL"in Pe?Pe.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in Pe?Pe.response:Pe.responseText;Fe(new ye(Je,Qe))},Pe.onerror=function(){De(new TypeError("Network request failed"))},Pe.ontimeout=function(){De(new TypeError("Network request failed"))},Pe.onabort=function(){De(new b.DOMException("Aborted","AbortError"))},Pe.open(Re.method,Re.url,!0),Re.credentials==="include"?Pe.withCredentials=!0:Re.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&A.blob&&(Pe.responseType="blob"),Re.headers.forEach(function(Qe,Je){Pe.setRequestHeader(Je,Qe)}),Re.signal&&(Re.signal.addEventListener("abort",et),Pe.onreadystatechange=function(){Pe.readyState===4&&Re.signal.removeEventListener("abort",et)}),Pe.send(typeof Re._bodyInit=="undefined"?null:Re._bodyInit)})}return pe.polyfill=!0,x.fetch||(x.fetch=pe,x.Headers=W,x.Request=de,x.Response=ye),b.Headers=W,b.Request=de,b.Response=ye,b.fetch=pe,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,a)=>{"use strict";a.r(I),a.d(I,{default:()=>A});var c=a(8081),v=a.n(c),x=a(23645),d=a.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
- `,""]);const A=b},58635:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>V});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=a(61667),A=a.n(b),g=new URL(a(17735),a.b),L=new URL(a(56089),a.b),D=new URL(a(46050),a.b),B=new URL(a(71090),a.b),j=new URL(a(96192),a.b),ee=d()(v()),W=A()(g),R=A()(L),Q=A()(D),M=A()(B),C=A()(j);ee.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("+W+")}.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("+Q+")}.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
- `,""]);const V=ee},45272:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>A});var c=a(8081),v=a.n(c),x=a(23645),d=a.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
- `,""]);const A=b},40961:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>A});var c=a(8081),v=a.n(c),x=a(23645),d=a.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}
50
- `,""]);const A=b},61667:h=>{"use strict";h.exports=function(I,a){return a||(a={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),a.hash&&(I+=a.hash),/["'() \t\n]|(%20)/.test(I)||a.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,a)=>{"use strict";var c=a(48764).Buffer;/*!
46
+ */I.parse=d,I.serialize=b;var a=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 D={},B=L||{},j=g.split(v),ee=B.decode||a,W=0;W<j.length;W++){var R=j[W],Q=R.indexOf("=");if(!(Q<0)){var M=R.substr(0,Q).trim(),C=R.substr(++Q,R.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[M]==null&&(D[M]=S(C,ee))}}return D}function b(g,L,D){var B=D||{},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 ee=j(L);if(ee&&!x.test(ee))throw new TypeError("argument val is invalid");var W=g+"="+ee;if(B.maxAge!=null){var R=B.maxAge-0;if(isNaN(R)||!isFinite(R))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(R)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var Q=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(Q){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function S(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(80991),v=a(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(44349),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),S=a(55449),g=a(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,ee=arguments.length,W=ee>1?arguments[1]:void 0,R=W!==void 0,Q=g(B),M=0,C,V,X,q,Z,J;if(R&&(W=c(W,ee>2?arguments[2]:void 0,2)),Q!=null&&!(j==Array&&d(Q)))for(q=Q.call(B),Z=q.next,V=new j;!(X=Z.call(q)).done;M++)J=R?x(q,W,[X.value,M],!0):X.value,S(V,M,J);else for(C=b(B.length),V=new j(C);C>M;M++)J=R?W(B[M],M):B[M],S(V,M,J);return V.length=M,V}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),ee;if(b&&g!=g){for(;B>j;)if(ee=D[j++],ee!=ee)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,ee=L==4,W=L==6,R=L==7,Q=L==5||W;return function(M,C,V,X){for(var q=x(M),Z=v(q),J=c(C,V,3),de=d(Z.length),te=0,ae=X||b,ye=D?ae(M,de):B||R?ae(M,0):void 0,xe,pe;de>te;te++)if((Q||te in Z)&&(xe=Z[te],pe=J(xe,te,q),L))if(D)ye[te]=pe;else if(pe)switch(L){case 3:return!0;case 5:return xe;case 6:return te;case 2:S.call(ye,xe)}else switch(L){case 4:return!1;case 7:S.call(ye,xe)}return W?-1:j||ee?ee: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,a)=>{var c=a(95981),v=a(99813),x=a(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(99813),d=x("species");h.exports=function(b,S){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)(S===0?0:S)}},75196:(h,I,a)=>{var c=a(96059),v=a(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,a)=>{var c=a(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(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),S=a(93091),g=a(3610),L=a(47457),D=a(45402),B=D.set,j=D.getterFor,ee=g.find,W=g.findIndex,R=0,Q=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,X){return ee(V.entries,function(q){return q[0]===X})};M.prototype={get:function(V){var X=C(this,V);if(X)return X[1]},has:function(V){return!!C(this,V)},set:function(V,X){var q=C(this,V);q?q[1]=X:this.entries.push([V,X])},delete:function(V){var X=W(this.entries,function(q){return q[0]===V});return~X&&this.entries.splice(X,1),!!~X}},h.exports={getConstructor:function(V,X,q,Z){var J=V(function(ae,ye){b(ae,J,X),B(ae,{type:X,id:R++,frozen:void 0}),ye!=null&&S(ye,ae[Z],{that:ae,AS_ENTRIES:q})}),de=j(X),te=function(ae,ye,xe){var pe=de(ae),fe=v(x(ye),!0);return fe===!0?Q(pe).set(ye,xe):fe[pe.id]=xe,ae};return c(J.prototype,{delete:function(ae){var ye=de(this);if(!d(ae))return!1;var xe=v(ae);return xe===!0?Q(ye).delete(ae):xe&&L(xe,ye.id)&&delete xe[ye.id]},has:function(ye){var xe=de(this);if(!d(ye))return!1;var pe=v(ye);return pe===!0?Q(xe).has(ye):pe&&L(pe,xe.id)}}),c(J.prototype,q?{get:function(ye){var xe=de(this);if(d(ye)){var pe=v(ye);return pe===!0?Q(xe).get(ye):pe?pe[xe.id]:void 0}},set:function(ye,xe){return te(this,ye,xe)}}:{add:function(ye){return te(this,ye,!0)}}),J}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),S=a(93091),g=a(5743),L=a(10941),D=a(90904),B=a(65988).f,j=a(3610).forEach,ee=a(55746),W=a(45402),R=W.set,Q=W.getterFor;h.exports=function(M,C,V){var X=M.indexOf("Map")!==-1,q=M.indexOf("Weak")!==-1,Z=X?"set":"add",J=v[M],de=J&&J.prototype,te={},ae;if(!ee||typeof J!="function"||!(q||de.forEach&&!d(function(){new J().entries().next()})))ae=V.getConstructor(C,M,X,Z),x.REQUIRED=!0;else{ae=C(function(xe,pe){R(g(xe,ae,M),{type:M,collection:new J}),pe!=null&&S(pe,xe[Z],{that:xe,AS_ENTRIES:X})});var ye=Q(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(xe){var pe=xe=="add"||xe=="set";xe in de&&!(q&&xe=="clear")&&b(ae.prototype,xe,function(fe,se){var Fe=ye(this).collection;if(!pe&&q&&!L(fe))return xe=="get"?void 0:!1;var De=Fe[xe](fe===0?0:fe,se);return pe?this:De})}),q||B(ae.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return D(ae,M,!1,!0),te[M]=ae,c({global:!0,forced:!0},te),q||V.setStrong(ae,M,X),ae}},67772:(h,I,a)=>{var c=a(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),S=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),S=a(32029),g=a(99754),L=a(99813),D=a(82529),B=a(12077),j=a(35143),ee=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,R=L("iterator"),Q="keys",M="values",C="entries",V=function(){return this};h.exports=function(X,q,Z,J,de,te,ae){v(Z,q,J);var ye=function(Qe){if(Qe===de&&Fe)return Fe;if(!W&&Qe in fe)return fe[Qe];switch(Qe){case Q:return function(){return new Z(this,Qe)};case M:return function(){return new Z(this,Qe)};case C:return function(){return new Z(this,Qe)}}return function(){return new Z(this)}},xe=q+" Iterator",pe=!1,fe=X.prototype,se=fe[R]||fe["@@iterator"]||de&&fe[de],Fe=!W&&se||ye(de),De=q=="Array"&&fe.entries||se,Re,Pe,tt;if(De&&(Re=x(De.call(new X)),ee!==Object.prototype&&Re.next&&(!D&&x(Re)!==ee&&(d?d(Re,ee):typeof Re[R]!="function"&&S(Re,R,V)),b(Re,xe,!0,!0),D&&(B[xe]=V))),de==M&&se&&se.name!==M&&(pe=!0,Fe=function(){return se.call(this)}),(!D||ae)&&fe[R]!==Fe&&S(fe,R,Fe),B[q]=Fe,de)if(Pe={values:ye(M),keys:te?Fe:ye(Q),entries:ye(C)},ae)for(tt in Pe)(W||pe||!(tt in fe))&&g(fe,tt,Pe[tt]);else c({target:q,proto:!0,forced:W||pe},Pe);return Pe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(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,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),S=a(32029),g=a(47457),L=function(D){var B=function(j,ee,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,ee)}return new D(j,ee,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,ee=D.global,W=D.stat,R=D.proto,Q=ee?c:W?c[j]:(c[j]||{}).prototype,M=ee?d:d[j]||(d[j]={}),C=M.prototype,V,X,q,Z,J,de,te,ae,ye;for(Z in B)V=x(ee?Z:j+(W?".":"#")+Z,D.forced),X=!V&&Q&&g(Q,Z),de=M[Z],X&&(D.noTargetGet?(ye=v(Q,Z),te=ye&&ye.value):te=Q[Z]),J=X&&te?te:B[Z],!(X&&typeof de==typeof J)&&(D.bind&&X?ae=b(J,c):D.wrap&&X?ae=L(J):R&&typeof J=="function"?ae=b(Function.call,J):ae=J,(D.sham||J&&J.sham||de&&de.sham)&&S(ae,"sham",!0),M[Z]=ae,R&&(q=j+"Prototype",g(d,q)||S(d,q,{}),d[q][Z]=J,D.real&&C&&!C[Z]&&S(C,Z,J)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(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,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var ee=D.concat(x.call(arguments));return this instanceof B?b(L,ee.length,ee):L.apply(g,ee)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,a)=>{var c=a(54058),v=a(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,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{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 a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(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,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(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,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),S=a(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(Q){d(Q,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(Q,M){if(!v(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!x(Q,g)){if(!D(Q))return"F";if(!M)return"E";B(Q)}return Q[g].objectID},ee=function(Q,M){if(!x(Q,g)){if(!D(Q))return!0;if(!M)return!1;B(Q)}return Q[g].weakData},W=function(Q){return S&&R.REQUIRED&&D(Q)&&!x(Q,g)&&B(Q),Q},R=h.exports={REQUIRED:!1,fastKey:j,getWeakData:ee,onFreeze:W};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),S=a(63030),g=a(44262),L=a(27748),D="Object already initialized",B=v.WeakMap,j,ee,W,R=function(Z){return W(Z)?ee(Z):j(Z,{})},Q=function(Z){return function(J){var de;if(!x(J)||(de=ee(J)).type!==Z)throw TypeError("Incompatible receiver, "+Z+" required");return de}};if(c||S.state){var M=S.state||(S.state=new B),C=M.get,V=M.has,X=M.set;j=function(Z,J){if(V.call(M,Z))throw new TypeError(D);return J.facade=Z,X.call(M,Z,J),J},ee=function(Z){return C.call(M,Z)||{}},W=function(Z){return V.call(M,Z)}}else{var q=g("state");L[q]=!0,j=function(Z,J){if(b(Z,q))throw new TypeError(D);return J.facade=Z,d(Z,q,J),J},ee=function(Z){return b(Z,q)?Z[q]:{}},W=function(Z){return b(Z,q)}}h.exports={set:j,get:ee,has:W,enforce:R,getterFor:Q}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=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,a)=>{var c=a(10941),v=a(82532),x=a(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),S=a(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,ee=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),R=!!(B&&B.INTERRUPTED),Q=d(D,j,1+ee+R),M,C,V,X,q,Z,J,de=function(ae){return M&&S(M),new g(!0,ae)},te=function(ae){return ee?(c(ae),R?Q(ae[0],ae[1],de):Q(ae[0],ae[1])):R?Q(ae,de):Q(ae)};if(W)M=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,X=x(L.length);X>V;V++)if(q=te(L[V]),q&&q instanceof g)return q;return new g(!1)}M=C.call(L)}for(Z=M.next;!(J=Z.call(M)).done;){try{q=te(J.value)}catch(ae){throw S(M),ae}if(typeof q=="object"&&q&&q instanceof g)return q}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),S=a(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,ee;[].keys&&(ee=[].keys(),"next"in ee?(j=v(v(ee)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var R={};return B[g].call(R)!==R});W&&(B={}),(!S||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),S=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),ee=j&&j.value,W,R,Q,M,C,V,X,q;ee||(W=function(){var Z,J;for(S&&(Z=D.domain)&&Z.exit();R;){J=R.fn,R=R.next;try{J()}catch(de){throw R?M():Q=void 0,de}}Q=void 0,Z&&Z.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(X=B.resolve(void 0),X.constructor=B,q=X.then,M=function(){q.call(X,W)}):S?M=function(){D.nextTick(W)}:M=function(){x.call(c,W)}),h.exports=ee||function(Z){var J={fn:Z,next:void 0};Q&&(Q.next=J),R||(R=J,M()),Q=J}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(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,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),S=a(89678),g=a(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},ee=Symbol(),W="abcdefghijklmnopqrst";return B[ee]=7,W.split("").forEach(function(R){j[R]=R}),L({},B)[ee]!=7||x(L({},j)).join("")!=W})?function(j,ee){for(var W=S(j),R=arguments.length,Q=1,M=d.f,C=b.f;R>Q;)for(var V=g(arguments[Q++]),X=M?x(V).concat(M(V)):x(V),q=X.length,Z=0,J;q>Z;)J=X[Z++],(!c||C.call(V,J))&&(W[J]=V[J]);return W}:L},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),S=a(61333),g=a(44262),L=">",D="<",B="prototype",j="script",ee=g("IE_PROTO"),W=function(){},R=function(X){return D+j+L+X+D+"/"+j+L},Q=function(X){X.write(R("")),X.close();var q=X.parentWindow.Object;return X=null,q},M=function(){var X=S("iframe"),q="java"+j+":",Z;return X.style.display="none",b.appendChild(X),X.src=String(q),Z=X.contentWindow.document,Z.open(),Z.write(R("document.F=Object")),Z.close(),Z.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(q){}V=C?Q(C):M();for(var X=x.length;X--;)delete V[B][x[X]];return V()};d[ee]=!0,h.exports=Object.create||function(q,Z){var J;return q!==null?(W[B]=c(q),J=new W,W[B]=null,J[ee]=q):J=V(),Z===void 0?J:v(J,Z)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),S=a(47457),g=a(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(ee){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,a)=>{var c=a(74529),v=a(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}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,a)=>{var c=a(55629),v=a(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,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(64160),b=x("IE_PROTO"),S=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?S:null}},55629:(h,I,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(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(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,ee=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&ee.push(S?[W,L[W]]:L[W]);return ee}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),S=a(99813),g=S("toStringTag");h.exports=function(L,D,B,j){if(L){var ee=B?L:L.prototype;d(ee,g)||v(ee,g,{configurable:!0,value:D}),j&&!c&&x(ee,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(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,a)=>{var c=a(96059),v=a(33916),x=a(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(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,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),S=a(22749),g=a(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,ee=c.MessageChannel,W=c.Dispatch,R=0,Q={},M="onreadystatechange",C,V,X,q=function(te){if(Q.hasOwnProperty(te)){var ae=Q[te];delete Q[te],ae()}},Z=function(te){return function(){q(te)}},J=function(te){q(te.data)},de=function(te){c.postMessage(te+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ae){for(var ye=[],xe=1;arguments.length>xe;)ye.push(arguments[xe++]);return Q[++R]=function(){(typeof ae=="function"?ae:Function(ae)).apply(void 0,ye)},C(R),R},B=function(ae){delete Q[ae]},g?C=function(te){j.nextTick(Z(te))}:W&&W.now?C=function(te){W.now(Z(te))}:ee&&!S?(V=new ee,X=V.port2,V.port1.onmessage=J,C=x(X.postMessage,X,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(de)?(C=de,c.addEventListener("message",J,!1)):M in b("script")?C=function(te){d.appendChild(b("script"))[M]=function(){d.removeChild(this),q(te)}}:C=function(te){setTimeout(Z(te),0)}),h.exports={set:D,clear:B}},59413:(h,I,a)=>{var c=a(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(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,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),S=a(32302),g=v("wks"),L=c.Symbol,D=S?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]=D("Symbol."+B)),g[B]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),S=a(31887),g=a(93091),L=function(B,j){var ee=this;if(!(ee instanceof L))return new L(B,j);x&&(ee=x(new Error(void 0),v(ee))),j!==void 0&&b(ee,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(ee,"errors",W),ee};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),S=a(43057),g=a(55449),L=a(64692),D=a(50568),B=a(99813),j=a(53385),ee=B("isConcatSpreadable"),W=9007199254740991,R="Maximum allowed index exceeded",Q=j>=51||!v(function(){var X=[];return X[ee]=!1,X.concat()[0]!==X}),M=D("concat"),C=function(X){if(!d(X))return!1;var q=X[ee];return q!==void 0?!!q:x(X)},V=!Q||!M;c({target:"Array",proto:!0,forced:V},{concat:function(q){var Z=b(this),J=L(Z,0),de=0,te,ae,ye,xe,pe;for(te=-1,ye=arguments.length;te<ye;te++)if(pe=te===-1?Z:arguments[te],C(pe)){if(xe=S(pe.length),de+xe>W)throw TypeError(R);for(ae=0;ae<xe;ae++,de++)ae in pe&&g(J,de,pe[ae])}else{if(de>=W)throw TypeError(R);g(J,de++,pe)}return J.length=de,J}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(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,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(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,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,ee=D.index++;return!B||ee>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:ee,done:!1}:j=="values"?{value:B[ee],done:!1}:{value:[ee,B[ee]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),S=a(74529),g=a(55449),L=a(99813),D=a(50568),B=D("slice"),j=L("species"),ee=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(Q,M){var C=S(this),V=b(C.length),X=d(Q,V),q=d(M===void 0?V:M,V),Z,J,de;if(x(C)&&(Z=C.constructor,typeof Z=="function"&&(Z===Array||x(Z.prototype))?Z=void 0:v(Z)&&(Z=Z[j],Z===null&&(Z=void 0)),Z===Array||Z===void 0))return ee.call(C,X,q);for(J=new(Z===void 0?Array:Z)(W(q-X,0)),de=0;X<q;X++,de++)X in C&&g(J,de,C[X]);return J.length=de,J}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),S=a(64692),g=a(55449),L=a(50568),D=L("splice"),B=Math.max,j=Math.min,ee=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(Q,M){var C=b(this),V=d(C.length),X=v(Q,V),q=arguments.length,Z,J,de,te,ae,ye;if(q===0?Z=J=0:q===1?(Z=0,J=V-X):(Z=q-2,J=j(B(x(M),0),V-X)),V+Z-J>ee)throw TypeError(W);for(de=S(C,J),te=0;te<J;te++)ae=X+te,ae in C&&g(de,te,C[ae]);if(de.length=J,Z<J){for(te=X;te<V-J;te++)ae=te+J,ye=te+Z,ae in C?C[ye]=C[ae]:delete C[ye];for(te=V;te>V-J+Z;te--)delete C[te-1]}else if(Z>J)for(te=V-J;te>X;te--)ae=te+J-1,ye=te+Z-1,ae in C?C[ye]=C[ae]:delete C[ye];for(te=0;te<Z;te++)C[te+X]=arguments[te+2];return C.length=V-J+Z,de}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,ee){var W=ee.charAt(j-1),R=ee.charAt(j+1);return S.test(B)&&!g.test(R)||g.test(B)&&!S.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,ee,W){var R=d.apply(null,arguments);return typeof R=="string"?R.replace(b,L):R}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),S=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),ee={},W=0,R,Q;j.length>W;)Q=B(D,R=j[W++]),Q!==void 0&&S(ee,R,Q);return ee}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,ee=d(function(){var W=v(L.resolve),R=[],Q=0,M=1;b(g,function(C){var V=Q++,X=!1;R.push(void 0),M++,W.call(L,C).then(function(q){X||(X=!0,R[V]={status:"fulfilled",value:q},--M||B(R))},function(q){X||(X=!0,R[V]={status:"rejected",reason:q},--M||B(R))})}),--M||B(R)});return ee.error&&j(ee.value),D.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),S=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),ee=j.resolve,W=j.reject,R=b(function(){var Q=v(B.resolve),M=[],C=0,V=1,X=!1;S(D,function(q){var Z=C++,J=!1;M.push(void 0),V++,Q.call(B,q).then(function(de){J||X||(X=!0,ee(de))},function(de){J||X||(J=!0,M[Z]=de,--V||W(new(x("AggregateError"))(M,g)))})}),--V||W(new(x("AggregateError"))(M,g))});return R.error&&W(R.value),j.promise}})},44349:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),S=a(70487),g=a(56584),L=a(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var ee=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(R){return g(ee,j()).then(function(){return R})}:j,W?function(R){return g(ee,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,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),S=a(99754),g=a(87524),L=a(88929),D=a(90904),B=a(94431),j=a(10941),ee=a(33916),W=a(5743),R=a(81302),Q=a(93091),M=a(21385),C=a(70487),V=a(42941).set,X=a(66132),q=a(56584),Z=a(34845),J=a(69520),de=a(40002),te=a(45402),ae=a(37252),ye=a(99813),xe=a(23321),pe=a(6049),fe=a(53385),se=ye("species"),Fe="Promise",De=te.get,Re=te.set,Pe=te.getterFor(Fe),tt=b&&b.prototype,Qe=b,Je=tt,ut=x.TypeError,pt=x.document,wt=x.process,rt=J.f,lt=rt,yt=!!(pt&&pt.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",dt="unhandledrejection",Rt="rejectionhandled",kt=0,Ct=1,Wt=2,Dt=1,Vt=2,Tt=!1,Nt,he,G,K,we=ae(Fe,function(){var re=R(Qe)!==String(Qe);if(!re&&fe===66||v&&!Je.finally)return!0;if(fe>=51&&/native code/.test(Qe))return!1;var z=new Qe(function(Ae){Ae(1)}),oe=function(Ae){Ae(function(){},function(){})},Oe=z.constructor={};return Oe[se]=oe,Tt=z.then(function(){})instanceof oe,Tt?!re&&xe&&!mt:!0}),Ie=we||!M(function(re){Qe.all(re).catch(function(){})}),Ge=function(re){var z;return j(re)&&typeof(z=re.then)=="function"?z:!1},Ke=function(re,z){if(!re.notified){re.notified=!0;var oe=re.reactions;X(function(){for(var Oe=re.value,Ae=re.state==Ct,Ve=0;oe.length>Ve;){var Le=oe[Ve++],nt=Ae?Le.ok:Le.fail,ht=Le.resolve,bt=Le.reject,zt=Le.domain,Mt,Kr,gr;try{nt?(Ae||(re.rejection===Vt&&T(re),re.rejection=Dt),nt===!0?Mt=Oe:(zt&&zt.enter(),Mt=nt(Oe),zt&&(zt.exit(),gr=!0)),Mt===Le.promise?bt(ut("Promise-chain cycle")):(Kr=Ge(Mt))?Kr.call(Mt,ht,bt):ht(Mt)):bt(Oe)}catch(On){zt&&!gr&&zt.exit(),bt(On)}}re.reactions=[],re.notified=!1,z&&!re.rejection&&Me(re)})}},P=function(re,z,oe){var Oe,Ae;yt?(Oe=pt.createEvent("Event"),Oe.promise=z,Oe.reason=oe,Oe.initEvent(re,!1,!0),x.dispatchEvent(Oe)):Oe={promise:z,reason:oe},!mt&&(Ae=x["on"+re])?Ae(Oe):re===dt&&Z("Unhandled promise rejection",oe)},Me=function(re){V.call(x,function(){var z=re.facade,oe=re.value,Oe=Y(re),Ae;if(Oe&&(Ae=de(function(){pe?wt.emit("unhandledRejection",oe,z):P(dt,z,oe)}),re.rejection=pe||Y(re)?Vt:Dt,Ae.error))throw Ae.value})},Y=function(re){return re.rejection!==Dt&&!re.parent},T=function(re){V.call(x,function(){var z=re.facade;pe?wt.emit("rejectionHandled",z):P(Rt,z,re.value)})},O=function(re,z,oe){return function(Oe){re(z,Oe,oe)}},le=function(re,z,oe){re.done||(re.done=!0,oe&&(re=oe),re.value=z,re.state=Wt,Ke(re,!0))},N=function(re,z,oe){if(!re.done){re.done=!0,oe&&(re=oe);try{if(re.facade===z)throw ut("Promise can't be resolved itself");var Oe=Ge(z);Oe?X(function(){var Ae={done:!1};try{Oe.call(z,O(N,Ae,re),O(le,Ae,re))}catch(Ve){le(Ae,Ve,re)}}):(re.value=z,re.state=Ct,Ke(re,!1))}catch(Ae){le({done:!1},Ae,re)}}};if(we&&(Qe=function(z){W(this,Qe,Fe),ee(z),Nt.call(this);var oe=De(this);try{z(O(N,oe),O(le,oe))}catch(Oe){le(oe,Oe)}},Je=Qe.prototype,Nt=function(z){Re(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Nt.prototype=g(Je,{then:function(z,oe){var Oe=Pe(this),Ae=rt(C(this,Qe));return Ae.ok=typeof z=="function"?z:!0,Ae.fail=typeof oe=="function"&&oe,Ae.domain=pe?wt.domain:void 0,Oe.parent=!0,Oe.reactions.push(Ae),Oe.state!=kt&&Ke(Oe,!1),Ae.promise},catch:function(re){return this.then(void 0,re)}}),he=function(){var re=new Nt,z=De(re);this.promise=re,this.resolve=O(N,z),this.reject=O(le,z)},J.f=rt=function(re){return re===Qe||re===G?new he(re):lt(re)},!v&&typeof b=="function"&&tt!==Object.prototype)){K=tt.then,Tt||(S(tt,"then",function(z,oe){var Oe=this;return new Qe(function(Ae,Ve){K.call(Oe,Ae,Ve)}).then(z,oe)},{unsafe:!0}),S(tt,"catch",Je.catch,{unsafe:!0}));try{delete tt.constructor}catch(re){}L&&L(tt,Je)}c({global:!0,wrap:!0,forced:we},{Promise:Qe}),D(Qe,Fe,!1,!0),B(Fe),G=d(Fe),c({target:Fe,stat:!0,forced:we},{reject:function(z){var oe=rt(this);return oe.reject.call(void 0,z),oe.promise}}),c({target:Fe,stat:!0,forced:v||we},{resolve:function(z){return q(v&&this===G?Qe:this,z)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(z){var oe=this,Oe=rt(oe),Ae=Oe.resolve,Ve=Oe.reject,Le=de(function(){var nt=ee(oe.resolve),ht=[],bt=0,zt=1;Q(z,function(Mt){var Kr=bt++,gr=!1;ht.push(void 0),zt++,nt.call(oe,Mt).then(function(On){gr||(gr=!0,ht[Kr]=On,--zt||Ae(ht))},Ve)}),--zt||Ae(ht)});return Le.error&&Ve(Le.value),Oe.promise},race:function(z){var oe=this,Oe=rt(oe),Ae=Oe.reject,Ve=de(function(){var Le=ee(oe.resolve);Q(z,function(nt){Le.call(oe,nt).then(Oe.resolve,Ae)})});return Ve.error&&Ae(Ve.value),Oe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),S=a(29290),g=a(98308),L=a(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),ee=B||j;c({target:"Reflect",stat:!0,forced:ee,sham:ee},{construct:function(R,Q){x(R),d(Q);var M=arguments.length<3?R:x(arguments[2]);if(j&&!B)return D(R,Q,M);if(R==M){switch(Q.length){case 0:return new R;case 1:return new R(Q[0]);case 2:return new R(Q[0],Q[1]);case 3:return new R(Q[0],Q[1],Q[2]);case 4:return new R(Q[0],Q[1],Q[2],Q[3])}var C=[null];return C.push.apply(C,Q),new(g.apply(R,C))}var V=M.prototype,X=S(b(V)?V:Object.prototype),q=Function.apply.call(R,X,Q);return b(q)?q:X}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),S=a(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,ee;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(ee=S(L)))return g(ee,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),S=a(72497),g=a(32302),L=a(95981),D=a(47457),B=a(1052),j=a(10941),ee=a(96059),W=a(89678),R=a(74529),Q=a(46935),M=a(31887),C=a(29290),V=a(14771),X=a(10946),q=a(684),Z=a(87857),J=a(49677),de=a(65988),te=a(36760),ae=a(32029),ye=a(99754),xe=a(68726),pe=a(44262),fe=a(27748),se=a(99418),Fe=a(99813),De=a(11477),Re=a(66349),Pe=a(90904),tt=a(45402),Qe=a(3610).forEach,Je=pe("hidden"),ut="Symbol",pt="prototype",wt=Fe("toPrimitive"),rt=tt.set,lt=tt.getterFor(ut),yt=Object[pt],mt=v.Symbol,dt=x("JSON","stringify"),Rt=J.f,kt=de.f,Ct=q.f,Wt=te.f,Dt=xe("symbols"),Vt=xe("op-symbols"),Tt=xe("string-to-symbol-registry"),Nt=xe("symbol-to-string-registry"),he=xe("wks"),G=v.QObject,K=!G||!G[pt]||!G[pt].findChild,we=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(re,z,oe){var Oe=Rt(yt,z);Oe&&delete yt[z],kt(re,z,oe),Oe&&re!==yt&&kt(yt,z,Oe)}:kt,Ie=function(re,z){var oe=Dt[re]=C(mt[pt]);return rt(oe,{type:ut,tag:re,description:z}),b||(oe.description=z),oe},Ge=g?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof mt},Ke=function(z,oe,Oe){z===yt&&Ke(Vt,oe,Oe),ee(z);var Ae=Q(oe,!0);return ee(Oe),D(Dt,Ae)?(Oe.enumerable?(D(z,Je)&&z[Je][Ae]&&(z[Je][Ae]=!1),Oe=C(Oe,{enumerable:M(0,!1)})):(D(z,Je)||kt(z,Je,M(1,{})),z[Je][Ae]=!0),we(z,Ae,Oe)):kt(z,Ae,Oe)},P=function(z,oe){ee(z);var Oe=R(oe),Ae=V(Oe).concat(le(Oe));return Qe(Ae,function(Ve){(!b||Y.call(Oe,Ve))&&Ke(z,Ve,Oe[Ve])}),z},Me=function(z,oe){return oe===void 0?C(z):P(C(z),oe)},Y=function(z){var oe=Q(z,!0),Oe=Wt.call(this,oe);return this===yt&&D(Dt,oe)&&!D(Vt,oe)?!1:Oe||!D(this,oe)||!D(Dt,oe)||D(this,Je)&&this[Je][oe]?Oe:!0},T=function(z,oe){var Oe=R(z),Ae=Q(oe,!0);if(!(Oe===yt&&D(Dt,Ae)&&!D(Vt,Ae))){var Ve=Rt(Oe,Ae);return Ve&&D(Dt,Ae)&&!(D(Oe,Je)&&Oe[Je][Ae])&&(Ve.enumerable=!0),Ve}},O=function(z){var oe=Ct(R(z)),Oe=[];return Qe(oe,function(Ae){!D(Dt,Ae)&&!D(fe,Ae)&&Oe.push(Ae)}),Oe},le=function(z){var oe=z===yt,Oe=Ct(oe?Vt:R(z)),Ae=[];return Qe(Oe,function(Ve){D(Dt,Ve)&&(!oe||D(yt,Ve))&&Ae.push(Dt[Ve])}),Ae};if(S||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var z=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),oe=se(z),Oe=function(Ae){this===yt&&Oe.call(Vt,Ae),D(this,Je)&&D(this[Je],oe)&&(this[Je][oe]=!1),we(this,oe,M(1,Ae))};return b&&K&&we(yt,oe,{configurable:!0,set:Oe}),Ie(oe,z)},ye(mt[pt],"toString",function(){return lt(this).tag}),ye(mt,"withoutSetter",function(re){return Ie(se(re),re)}),te.f=Y,de.f=Ke,J.f=T,X.f=q.f=O,Z.f=le,De.f=function(re){return Ie(Fe(re),re)},b&&(kt(mt[pt],"description",{configurable:!0,get:function(){return lt(this).description}}),d||ye(yt,"propertyIsEnumerable",Y,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:mt}),Qe(V(he),function(re){Re(re)}),c({target:ut,stat:!0,forced:!S},{for:function(re){var z=String(re);if(D(Tt,z))return Tt[z];var oe=mt(z);return Tt[z]=oe,Nt[oe]=z,oe},keyFor:function(z){if(!Ge(z))throw TypeError(z+" is not a symbol");if(D(Nt,z))return Nt[z]},useSetter:function(){K=!0},useSimple:function(){K=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Me,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:le}),c({target:"Object",stat:!0,forced:L(function(){Z.f(1)})},{getOwnPropertySymbols:function(z){return Z.f(W(z))}}),dt){var N=!S||L(function(){var re=mt();return dt([re])!="[null]"||dt({a:re})!="{}"||dt(Object(re))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(z,oe,Oe){for(var Ae=[z],Ve=1,Le;arguments.length>Ve;)Ae.push(arguments[Ve++]);if(Le=oe,!(!j(oe)&&z===void 0||Ge(z)))return B(oe)||(oe=function(nt,ht){if(typeof Le=="function"&&(ht=Le.call(this,nt,ht)),!Ge(ht))return ht}),Ae[1]=oe,dt.apply(null,Ae)}})}mt[pt][wt]||ae(mt[pt],wt,mt[pt].valueOf),Pe(mt,ut),fe[Je]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),S=a(10941),g=a(45402).enforce,L=a(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,ee=function(X){return function(){return X(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",ee,b);if(L&&D){j=b.getConstructor(ee,"WeakMap",!0),x.REQUIRED=!0;var R=W.prototype,Q=R.delete,M=R.has,C=R.get,V=R.set;v(R,{delete:function(X){if(S(X)&&!B(X)){var q=g(this);return q.frozen||(q.frozen=new j),Q.call(this,X)||q.frozen.delete(X)}return Q.call(this,X)},has:function(q){if(S(q)&&!B(q)){var Z=g(this);return Z.frozen||(Z.frozen=new j),M.call(this,q)||Z.frozen.has(q)}return M.call(this,q)},get:function(q){if(S(q)&&!B(q)){var Z=g(this);return Z.frozen||(Z.frozen=new j),M.call(this,q)?C.call(this,q):Z.frozen.get(q)}return C.call(this,q)},set:function(q,Z){if(S(q)&&!B(q)){var J=g(this);J.frozen||(J.frozen=new j),M.call(this,q)?V.call(this,q,Z):J.frozen.set(q,Z)}else V.call(this,q,Z);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),S=a(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){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 S(te){return typeof te!="string"&&(te=String(te)),te}function g(te){var ae={next:function(){var ye=te.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ae[Symbol.iterator]=function(){return ae}),ae}function L(te){this.map={},te instanceof L?te.forEach(function(ae,ye){this.append(ye,ae)},this):Array.isArray(te)?te.forEach(function(ae){this.append(ae[0],ae[1])},this):te&&Object.getOwnPropertyNames(te).forEach(function(ae){this.append(ae,te[ae])},this)}L.prototype.append=function(te,ae){te=b(te),ae=S(ae);var ye=this.map[te];this.map[te]=ye?ye+", "+ae:ae},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,ae){this.map[b(te)]=S(ae)},L.prototype.forEach=function(te,ae){for(var ye in this.map)this.map.hasOwnProperty(ye)&&te.call(ae,this.map[ye],ye,this)},L.prototype.keys=function(){var te=[];return this.forEach(function(ae,ye){te.push(ye)}),g(te)},L.prototype.values=function(){var te=[];return this.forEach(function(ae){te.push(ae)}),g(te)},L.prototype.entries=function(){var te=[];return this.forEach(function(ae,ye){te.push([ye,ae])}),g(te)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(te){if(te.bodyUsed)return Promise.reject(new TypeError("Already read"));te.bodyUsed=!0}function B(te){return new Promise(function(ae,ye){te.onload=function(){ae(te.result)},te.onerror=function(){ye(te.error)}})}function j(te){var ae=new FileReader,ye=B(ae);return ae.readAsArrayBuffer(te),ye}function ee(te){var ae=new FileReader,ye=B(ae);return ae.readAsText(te),ye}function W(te){for(var ae=new Uint8Array(te),ye=new Array(ae.length),xe=0;xe<ae.length;xe++)ye[xe]=String.fromCharCode(ae[xe]);return ye.join("")}function R(te){if(te.slice)return te.slice(0);var ae=new Uint8Array(te.byteLength);return ae.set(new Uint8Array(te)),ae.buffer}function Q(){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=D(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?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var te=D(this);if(te)return te;if(this._bodyBlob)return ee(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(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(X)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(te){var ae=te.toUpperCase();return M.indexOf(ae)>-1?ae:te}function V(te,ae){ae=ae||{};var ye=ae.body;if(te instanceof V){if(te.bodyUsed)throw new TypeError("Already read");this.url=te.url,this.credentials=te.credentials,ae.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=ae.credentials||this.credentials||"same-origin",(ae.headers||!this.headers)&&(this.headers=new L(ae.headers)),this.method=C(ae.method||this.method||"GET"),this.mode=ae.mode||this.mode||null,this.signal=ae.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 X(te){var ae=new FormData;return te.trim().split("&").forEach(function(ye){if(ye){var xe=ye.split("="),pe=xe.shift().replace(/\+/g," "),fe=xe.join("=").replace(/\+/g," ");ae.append(decodeURIComponent(pe),decodeURIComponent(fe))}}),ae}function q(te){var ae=new L,ye=te.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(xe){var pe=xe.split(":"),fe=pe.shift().trim();if(fe){var se=pe.join(":").trim();ae.append(fe,se)}}),ae}Q.call(V.prototype);function Z(te,ae){ae||(ae={}),this.type="default",this.status=ae.status===void 0?200:ae.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ae?ae.statusText:"OK",this.headers=new L(ae.headers),this.url=ae.url||"",this._initBody(te)}Q.call(Z.prototype),Z.prototype.clone=function(){return new Z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Z.error=function(){var te=new Z(null,{status:0,statusText:""});return te.type="error",te};var J=[301,302,303,307,308];Z.redirect=function(te,ae){if(J.indexOf(ae)===-1)throw new RangeError("Invalid status code");return new Z(null,{status:ae,headers:{location:te}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(te){a.DOMException=function(ae,ye){this.message=ae,this.name=ye;var xe=Error(ae);this.stack=xe.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function de(te,ae){return new Promise(function(ye,xe){var pe=new V(te,ae);if(pe.signal&&pe.signal.aborted)return xe(new a.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function se(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:q(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var De="response"in fe?fe.response:fe.responseText;ye(new Z(De,Fe))},fe.onerror=function(){xe(new TypeError("Network request failed"))},fe.ontimeout=function(){xe(new TypeError("Network request failed"))},fe.onabort=function(){xe(new a.DOMException("Aborted","AbortError"))},fe.open(pe.method,pe.url,!0),pe.credentials==="include"?fe.withCredentials=!0:pe.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),pe.headers.forEach(function(Fe,De){fe.setRequestHeader(De,Fe)}),pe.signal&&(pe.signal.addEventListener("abort",se),fe.onreadystatechange=function(){fe.readyState===4&&pe.signal.removeEventListener("abort",se)}),fe.send(typeof pe._bodyInit=="undefined"?null:pe._bodyInit)})}return de.polyfill=!0,h.fetch||(h.fetch=de,h.Headers=L,h.Request=V,h.Response=Z),a.Headers=L,a.Request=V,a.Response=Z,a.fetch=de,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,new x}();(function(x){var d=function(b){var S={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(fe){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(fe){return fe&&L.indexOf(Object.prototype.toString.call(fe))>-1};function B(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(fe))throw new TypeError("Invalid character in header field name");return fe.toLowerCase()}function j(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function ee(fe){var se={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(se[Symbol.iterator]=function(){return se}),se}function W(fe){this.map={},fe instanceof W?fe.forEach(function(se,Fe){this.append(Fe,se)},this):Array.isArray(fe)?fe.forEach(function(se){this.append(se[0],se[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(se){this.append(se,fe[se])},this)}W.prototype.append=function(fe,se){fe=B(fe),se=j(se);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+se:se},W.prototype.delete=function(fe){delete this.map[B(fe)]},W.prototype.get=function(fe){return fe=B(fe),this.has(fe)?this.map[fe]:null},W.prototype.has=function(fe){return this.map.hasOwnProperty(B(fe))},W.prototype.set=function(fe,se){this.map[B(fe)]=j(se)},W.prototype.forEach=function(fe,se){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(se,this.map[Fe],Fe,this)},W.prototype.keys=function(){var fe=[];return this.forEach(function(se,Fe){fe.push(Fe)}),ee(fe)},W.prototype.values=function(){var fe=[];return this.forEach(function(se){fe.push(se)}),ee(fe)},W.prototype.entries=function(){var fe=[];return this.forEach(function(se,Fe){fe.push([Fe,se])}),ee(fe)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function R(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function Q(fe){return new Promise(function(se,Fe){fe.onload=function(){se(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function M(fe){var se=new FileReader,Fe=Q(se);return se.readAsArrayBuffer(fe),Fe}function C(fe){var se=new FileReader,Fe=Q(se);return se.readAsText(fe),Fe}function V(fe){for(var se=new Uint8Array(fe),Fe=new Array(se.length),De=0;De<se.length;De++)Fe[De]=String.fromCharCode(se[De]);return Fe.join("")}function X(fe){if(fe.slice)return fe.slice(0);var se=new Uint8Array(fe.byteLength);return se.set(new Uint8Array(fe)),se.buffer}function q(){return this.bodyUsed=!1,this._initBody=function(fe){this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:S.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:S.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():S.arrayBuffer&&S.blob&&g(fe)?(this._bodyArrayBuffer=X(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=X(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var fe=R(this);if(fe)return fe;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 fe=R(this);if(fe)return fe;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)},S.formData&&(this.formData=function(){return this.text().then(te)}),this.json=function(){return this.text().then(JSON.parse)},this}var Z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function J(fe){var se=fe.toUpperCase();return Z.indexOf(se)>-1?se:fe}function de(fe,se){se=se||{};var Fe=se.body;if(fe instanceof de){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,se.headers||(this.headers=new W(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Fe&&fe._bodyInit!=null&&(Fe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=se.credentials||this.credentials||"same-origin",(se.headers||!this.headers)&&(this.headers=new W(se.headers)),this.method=J(se.method||this.method||"GET"),this.mode=se.mode||this.mode||null,this.signal=se.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}de.prototype.clone=function(){return new de(this,{body:this._bodyInit})};function te(fe){var se=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var De=Fe.split("="),Re=De.shift().replace(/\+/g," "),Pe=De.join("=").replace(/\+/g," ");se.append(decodeURIComponent(Re),decodeURIComponent(Pe))}}),se}function ae(fe){var se=new W,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(De){var Re=De.split(":"),Pe=Re.shift().trim();if(Pe){var tt=Re.join(":").trim();se.append(Pe,tt)}}),se}q.call(de.prototype);function ye(fe,se){se||(se={}),this.type="default",this.status=se.status===void 0?200:se.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in se?se.statusText:"OK",this.headers=new W(se.headers),this.url=se.url||"",this._initBody(fe)}q.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},ye.error=function(){var fe=new ye(null,{status:0,statusText:""});return fe.type="error",fe};var xe=[301,302,303,307,308];ye.redirect=function(fe,se){if(xe.indexOf(se)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:se,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(se,Fe){this.message=se,this.name=Fe;var De=Error(se);this.stack=De.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function pe(fe,se){return new Promise(function(Fe,De){var Re=new de(fe,se);if(Re.signal&&Re.signal.aborted)return De(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function tt(){Pe.abort()}Pe.onload=function(){var Qe={status:Pe.status,statusText:Pe.statusText,headers:ae(Pe.getAllResponseHeaders()||"")};Qe.url="responseURL"in Pe?Pe.responseURL:Qe.headers.get("X-Request-URL");var Je="response"in Pe?Pe.response:Pe.responseText;Fe(new ye(Je,Qe))},Pe.onerror=function(){De(new TypeError("Network request failed"))},Pe.ontimeout=function(){De(new TypeError("Network request failed"))},Pe.onabort=function(){De(new b.DOMException("Aborted","AbortError"))},Pe.open(Re.method,Re.url,!0),Re.credentials==="include"?Pe.withCredentials=!0:Re.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Re.headers.forEach(function(Qe,Je){Pe.setRequestHeader(Je,Qe)}),Re.signal&&(Re.signal.addEventListener("abort",tt),Pe.onreadystatechange=function(){Pe.readyState===4&&Re.signal.removeEventListener("abort",tt)}),Pe.send(typeof Re._bodyInit=="undefined"?null:Re._bodyInit)})}return pe.polyfill=!0,x.fetch||(x.fetch=pe,x.Headers=W,x.Request=de,x.Response=ye),b.Headers=W,b.Request=de,b.Response=ye,b.fetch=pe,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,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.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
+ `,""]);const S=b},58635:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>V});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=a(61667),S=a.n(b),g=new URL(a(17735),a.b),L=new URL(a(56089),a.b),D=new URL(a(46050),a.b),B=new URL(a(71090),a.b),j=new URL(a(96192),a.b),ee=d()(v()),W=S()(g),R=S()(L),Q=S()(D),M=S()(B),C=S()(j);ee.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("+W+")}.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("+Q+")}.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
+ `,""]);const V=ee},45272:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.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
+ `,""]);const S=b},40961:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.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}
50
+ `,""]);const S=b},61667:h=>{"use strict";h.exports=function(I,a){return a||(a={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),a.hash&&(I+=a.hash),/["'() \t\n]|(%20)/.test(I)||a.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,a)=>{"use strict";var c=a(48764).Buffer;/*!
51
51
  * @description Recursive object extending
52
52
  * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
53
53
  * @license MIT
@@ -72,30 +72,30 @@ 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(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=A({},D):L[B]=D}),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),D,B,j;return L.forEach(function(ee){typeof ee!="object"||ee===null||Array.isArray(ee)||Object.keys(ee).forEach(function(W){if(B=b(g,W),D=b(ee,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=A({},D);return}else{g[W]=A(B,D);return}})}),g}},31652:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>cd});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Or,_areEquals:()=>za,applyOperation:()=>dr,applyPatch:()=>Gn,applyReducer:()=>tc,deepClone:()=>ec,getValueByPointer:()=>kr,validate:()=>gu,validator:()=>_i});var v={};a.r(v),a.d(v,{compare:()=>xu,generate:()=>Lo,observe:()=>mu,unobserve:()=>_s});var x={};a.r(x),a.d(x,{cookie:()=>hl,header:()=>Xu,path:()=>Ju,query:()=>Pc});var d=a(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 o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}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 D(){return D=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},D.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,o)}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(o){L(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function ee(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 W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},W(t)}function R(t,r){return R=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},R(t,r)}function Q(){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={},o=Object.keys(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=M(t,r),o,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)o=p[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}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 X(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function q(t){var r=Q();return function(){var o=W(t),s;if(r){var p=W(this).constructor;s=Reflect.construct(o,arguments,p)}else s=o.apply(this,arguments);return X(this,s)}}function Z(t,r){return re(t)||ye(t,r)||xe(t,r)||se()}function J(t){return de(t)||ie(t)||xe(t)||fe()}function de(t){if(Array.isArray(t))return pe(t)}function re(t){if(Array.isArray(t))return t}function ie(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=[],o=!0,s=!1,p=void 0;try{for(var m=t[Symbol.iterator](),S;!(o=(S=m.next()).done)&&(i.push(S.value),!(r&&i.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&m.return!=null&&m.return()}finally{if(s)throw p}}return i}}function xe(t,r){if(!!t){if(typeof t=="string")return pe(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 pe(t,r)}}function pe(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function fe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
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(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=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),D,B,j;return L.forEach(function(ee){typeof ee!="object"||ee===null||Array.isArray(ee)||Object.keys(ee).forEach(function(W){if(B=b(g,W),D=b(ee,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=S({},D);return}else{g[W]=S(B,D);return}})}),g}},31652:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>dd});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Tr,_areEquals:()=>za,applyOperation:()=>pr,applyPatch:()=>$n,applyReducer:()=>rc,deepClone:()=>tc,getValueByPointer:()=>kr,validate:()=>yu,validator:()=>Qi});var v={};a.r(v),a.d(v,{compare:()=>bu,generate:()=>Lo,observe:()=>xu,unobserve:()=>Zs});var x={};a.r(x),a.d(x,{cookie:()=>pl,header:()=>Qu,path:()=>Xu,query:()=>Ic});var d=a(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function S(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,r,i){return r&&S(t.prototype,r),i&&S(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 D(){return D=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},D.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,o)}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(o){L(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function ee(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 W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},W(t)}function R(t,r){return R=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},R(t,r)}function Q(){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={},o=Object.keys(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=M(t,r),o,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)o=p[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}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 X(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function q(t){var r=Q();return function(){var o=W(t),s;if(r){var p=W(this).constructor;s=Reflect.construct(o,arguments,p)}else s=o.apply(this,arguments);return X(this,s)}}function Z(t,r){return te(t)||ye(t,r)||xe(t,r)||se()}function J(t){return de(t)||ae(t)||xe(t)||fe()}function de(t){if(Array.isArray(t))return pe(t)}function te(t){if(Array.isArray(t))return t}function ae(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=[],o=!0,s=!1,p=void 0;try{for(var m=t[Symbol.iterator](),A;!(o=(A=m.next()).done)&&(i.push(A.value),!(r&&i.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&m.return!=null&&m.return()}finally{if(s)throw p}}return i}}function xe(t,r){if(!!t){if(typeof t=="string")return pe(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 pe(t,r)}}function pe(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function fe(){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 se(){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 Fe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=xe(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
78
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,S;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){m=!0,S=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw S}}}}function De(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Re=De(function(t){function r(k,$){for(var oe=0,te=0;te<k.length;te++)oe=(oe<<5)-oe+k.charCodeAt(te),oe|=0;return $[Math.abs(oe)%$.length]}function i(k,$){var oe=$.namespace;if($.useColors){var te=$.color,ce="[3"+(te<8?te:"8;5;"+te),ge=" ".concat(ce,";1m").concat(oe," ");k[0]=ge+k[0].split(`
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){m=!0,A=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw A}}}}function De(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Re=De(function(t){function r(k,$){for(var ie=0,ne=0;ne<k.length;ne++)ie=(ie<<5)-ie+k.charCodeAt(ne),ie|=0;return $[Math.abs(ie)%$.length]}function i(k,$){var ie=$.namespace;if($.useColors){var ne=$.color,ce="[3"+(ne<8?ne:"8;5;"+ne),ge=" ".concat(ce,";1m").concat(ie," ");k[0]=ge+k[0].split(`
79
79
  `).join(`
80
- `+ge)}else k[0]=oe+" "+k[0]}function o(k,$){if(k[0]=($.useColors?"%c":"")+$.namespace,!!$.useColors){var oe="color: "+$.color,te=0,ce=0;k[0].replace(/%[a-zA-Z%]/g,function(ge){ge!=="%%"&&(te++,ge==="%c"&&(ce=te))}),k.splice(ce,0,oe)}}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:o}}function m(){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 oe=arguments.length,te=new Array(oe),ce=0;ce<oe;ce++)te[ce]=arguments[ce];k&&te.unshift(k);var ge=$.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ve=ge.some(function(Te){return Te.test(k)}),Se={color:r(k,$.colors),namespace:k,useColors:$.useColors};if(!1)var be}}function w(k){return S(k,m())}function E(k){return S(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Re("informed:ObjMap "),et=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]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,m){return p!=null?p[m]:p},r);return s===void 0||s===r?o:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Je(r),"").replace(/\./,"")},ht=function(r,i){var o=Je(i),s=ut(i),p=o?Qe(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},wt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return m===S.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+S[m+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+S[m+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},rt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return s===void 0?s:(m===S.length-1&&(delete s[p],o=!0),s[p])},r),o},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,S){return s===void 0?s:(m===S.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},yt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},mt=function(r){var i=et(r);return Number.isInteger(+i[i.length-1])},pt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return yt(i).length===0}},{key:"get",value:function(i,o){var s=Qe(i,o);return s}},{key:"has",value:function(i,o){return ht(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)Pe("SETTING",o,s),wt(i,o,s);else if(mt(o)&&t.get(i,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),wt(i,o,void 0);var p=et(o);p=p.slice(0,p.length-1),kt(i,p)}else!mt(o)&&t.get(i,o)!==void 0&&(Pe("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){Pe("DELETE",o),mt(o)?(Pe("ARRAY",o),this.pullOut(i,o)):rt(i,o);var s=et(o);s=s.slice(0,s.length-1),kt(i,s)}},{key:"pullOut",value:function(i,o){var s=et(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var m=Qe(i,s);Pe("Array",m),Array.isArray(m)&&lt(m,p),kt(i,s)}}]),t}();function kt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&rt(t,r),kt(t,r.slice(0,r.length-1))}}var Ft=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=d.createContext({}),Ht=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Lt=d.createContext(),Vt=d.createContext(),Tt=d.createContext(),Dt=d.createContext(),he=d.createContext(),G=d.createContext(),K=d.createContext(),we=d.createContext();function Ie(){var t=(0,d.useContext)(Ht);return t}function $e(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Z(o,2),p=s[0],m=s[1];r.current=p;var S=function(k){r.current=k,i.current&&m(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,S,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){pt.set(i,r.path,r.message);return}var o=Fe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;pt.get(i,p.path)||pt.set(i,p.path,p.message)}}catch(m){o.e(m)}finally{o.f()}}return i},Me=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=P(s);return o}},Y=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(o){return Y(o)}},O=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,m=s.dataPath,S=s.keyword,w=s.params,E=m;S==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),pt.set(o,E,p)}),o},le=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},N=function(r,i){var o;return function(){for(var p=arguments.length,m=new Array(p),S=0;S<p;S++)m[S]=arguments[S];var w=function(){clearTimeout(o),r.apply(void 0,m)};clearTimeout(o),o=setTimeout(w,i)}},ne=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],m=i["input:props"],S=i["ui:before"],w=i["ui:after"],E=i.oneOf,k=i.items,$=i.enum,oe=i.title,te=i.minimum,ce=i.maximum,ge=i.minLength,ve=i.maxLength,Se=i.pattern,be=i.type,Te=i.properties,Ge=le();m&&m.id&&(Ge=m.id);var Ue={componentType:s,field:o?"".concat(o,".").concat(r):r,type:be,uiBefore:S,uiAfter:w,properties:be==="object"?Te:void 0,items:be==="array"?k:void 0,props:j(j({label:oe,id:Ge,min:te,max:ce,minLength:ge,maxLength:ve,pattern:Se},p),m)};if(E){var He=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=He}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},z=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,m=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 oe=w.indexOf(k),te=w.indexOf($);return(oe>-1?oe:w.length+1)-(te>-1?te:w.length+1)}).map(function(k){var $=p[k],oe=ne(k,$,o);return oe});return m&&E.push({componentType:"conditionals",allOf:m}),E}return[]},ae=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Oe=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ae=function(r,i){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==i[o]?s=o:p=!1,o=o+1;return s},Ve=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=Oe(i,o),p=s.findIndex(function(ve){return typeof ve!="string"}),m=s.length-J(s).reverse().findIndex(function(ve){return typeof ve!="string"}),S=[],w=o.split(""),E=0,k=0,$=Ae(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 oe=k;oe<s.length;oe++){var te=s[oe];if(E!=w.length){var ce=w[E];if(typeof te=="function")S.push(te(ce)),E=E+1;else{var ge=typeof te=="string"?te===ce:te.test(ce);ge&&typeof te=="string"?(S.push(te),E=E+1):!ge&&typeof te=="string"?E!=w.length&&S.push(te):ge&&typeof te!="string"?(S.push(ce),E=E+1):!ge&&typeof te!="string"&&(E=E+1,oe=oe-1)}}else if(typeof te=="string"&&oe>=m)S.push(te);else break}return{value:S.join(""),offset:o?S.length-o.length:0}},Le=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),m=new Intl.NumberFormat(r),S=(o=(s=m.formatToParts(.1).find(function(ve){var Se=ve.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ve,Se){return ve instanceof RegExp&&Se instanceof RegExp&&ve.source===Se.source&&ve.global===Se.global&&ve.ignoreCase===Se.ignoreCase&&ve.multiline===Se.multiline}function E(ve,Se){for(var be=ve.length;be--;)if(Se(ve[be]))return be;return-1}function k(ve,Se,be){var Te=J(ve);return Array.isArray(be)?Te.splice.apply(Te,[Se,0].concat(J(be))):Te.splice(Se,0,be),Te}function $(ve){return"".concat(ve).replace(/\D/g,"")}function oe(ve){return"".concat(ve).split(S).map(function(Se){return $(Se)}).join(".")}function te(ve){if(typeof ve=="number")return ve;var Se=parseFloat(oe(ve));return Number.isNaN(Se)?void 0:Se}function ce(ve){var Se=oe(ve),be="".concat(Se).split(".")[1],Te=p.formatToParts(Number(Se));be==="0"&&Te.push({type:"decimal",value:S},{type:"fraction",value:be});var Ge=Te.reduce(function(Be,je){var We=je.type,Xe=je.value;return["decimal","fraction"].includes(We)&&be==null?Be:["integer","fraction"].includes(We)?[].concat(J(Be),J(Xe.split("").filter(function(ze,qe){return We==="fraction"?qe<be.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(J(Be),J(Xe.split(""))):[].concat(J(Be),[Xe])},[]),Ue=E(Ge,function(Be){return w(Be,/\d/)});Ge.indexOf(S)===-1&&"".concat(ve).indexOf(S)!==-1&&(Ge=k(Ge,Ue+1,[S,"[]"]),Ue+=2);var He=Ge.slice(Ue+1).join("");return Ge=[].concat(J(Ge.slice(0,Ue+1)),[He]),Ge}var ge=function(Se){if(Se!=null)return te(Se)};return{formatter:ce,parser:ge}},nt=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Me,yupToFormError:Y,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:ne,computeFieldsFromSchema:z,getSchemaPathFromJsonPath:ae,informedFormat:Ve,createIntlNumberFormatter:Le}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,bt=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,m=$e(0),S=Z(m,3),w=S[0],E=S[1],k=S[2],$=$e(0),oe=Z($,3),te=oe[0],ce=oe[1],ge=oe[2];return vt(function(){if(o.current!=null&&k()){var ve=k()+ge();ge()!=0&&p?o.current.setSelectionRange(ve+1,ve+1):p&&o.current.setSelectionRange(ve,ve)}},[i]),{setCursorOffset:ce,setCursor:E,cursor:w,getCursor:k,cursorOffset:te}},Gt=function(r,i){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},i)},Rt=Re("informed:useField "),Jr=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var m=Ve(r,o);return m.value}return r}},vr=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=Ve(r,s);return p.value}return r},Cn=function(r,i,o){var s=o.required;if(r||i)return function(p,m){if(i)return T(i,p);if(r)return r(p,m)};if(s)return function(p){return on(p,s)}},Si=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,m=r.ref,S=function(E){return o(E)};return(i==="text"||i==="textArea"||i==="number")&&(S=function(E){return o(E.target.value,E)}),i==="select"&&(S=function(){var E=Array.from(m.current).filter(function(k){return k.selected}).map(function(k){return k.value});o(p?E:E[0]||"")}),i==="checkbox"&&(S=function(E){o(E.target.checked),s&&s(E)}),function(w){S(w)}},Hr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Jn=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},ai=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},on=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,m=t.mask,S=t.maskWithCursorOffset,w=t.format,E=t.parse,k=t.formatter,$=t.parser,oe=t.initialValue,te=t.validateOnChange,ce=t.validateOnBlur,ge=t.validateOnMount,ve=t.asyncValidateOnBlur,Se=t.maskOnBlur,be=t.allowEmptyString,Te=t.onValueChange,Ge=t.notify,Ue=t.keepState,He=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Xe=t.fieldType,ze=t.multiple,qe=t.onChange,At=t.onBlur,Bt=t.formController,zt=t.relevant,sr=t.required,Ir=t.keepStateIfRelevant,Ar=t.initialize,Yr=t.formatterDependencies,wr=Yr===void 0?[]:Yr,Lr=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"]),mn=(0,d.useState)(le()),Jt=Z(mn,1),Mt=Jt[0],jt=(0,d.useContext)(Ft),lr=(0,d.useContext)(we),nn=lr||Ir,yr=Ie(),ps=(0,d.useRef)(),Ml=(0,d.useRef)(!0),po=(0,d.useRef)(),Ni=(0,d.useRef)(!1),Ll=function(){return!Ni.current},Pf=function(){return Ni.current};Bt&&(jt=Bt.updater,yr=Bt.getFormApi());var wi=Cn(o,p,{required:sr}),Dl=(0,d.useState)(function(){return jt.getInitialValue(i)}),em=Z(Dl,1),tm=em[0],If=jt.getSavedValue(i),Ff,Sh;(Ue||nn)&&If?(Rt("Setting field ".concat(Od,"'s kept state"),If),Ff=If.value,Sh=If.touched,yr.removeSavedState(Od)):oe!=null?Ff=oe:Ff=tm;var rm=$e(Jr(Ff,m,k,$,Ar)),dd=Z(rm,3),Nl=dd[0],pd=dd[1],nm=dd[2],im=$e(ge?wi(Nl):void 0),hd=Z(im,3),Ah=hd[0],Eh=hd[1],am=hd[2],om=$e(Sh),vd=Z(om,3),Ch=vd[0],sm=vd[1],Oh=vd[2],lm=(0,d.useState)(function(){return vr(Nl,w,E,k)}),Th=Z(lm,2),gd=Th[0],yd=Th[1],Ph=(0,d.useRef)();Ph.current=gd;var Ih=(0,d.useRef)(oe),ho=(0,d.useRef)(i),Fh=(0,d.useRef)();Ih.current=oe,ho.current=i;var um=(0,d.useRef)(null),Bi=d.useMemo(function(){return r||um},[]),md=bt({value:Nl,inputRef:Bi,maintainCursor:!!He}),xd=md.getCursor,fm=md.setCursor,bd=md.setCursorOffset,cm=function(){return!0},wd=function(ur){var an=zt||cm,Dn=yr.getFullField(ho.current)||ho.current,Xt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,jl){return pt.get(Nn,jl)}};return lr&&lr.relevant?an(ur,Xt)&&lr.relevant(ur,Xt):an(ur,Xt)},dm=$e(wd(yr.getValues())),Sd=Z(dm,3),kf=Sd[0],pm=Sd[1],kh=Sd[2],hm=function(ur){return lr&&lr.relevant?lr.relevant(ur):!0},vm=function(){var ur=wd(yr.getValues()),an=kh();return ur!=an&&pm(ur),ur};(0,d.useEffect)(function(){!kf&&!Ue&&ps.current.reset()},[kf]);var ii=function(){return je?yr.getDerrivedValue(i):nm()},Bl=function(ur){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=an.preventUpdate;We&&yr.getStep()<We?(Rt("Setting ".concat(i,"'s error to undefined as we are not at that step")),Eh(void 0),jt.setError(Mt,void 0,!Dn)):(Rt("Setting ".concat(i,"'s error to ").concat(ur)),Eh(ur),jt.setError(Mt,ur,!Dn))},Ad=function(ur,an){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=ur;Ni.current=!0,Rt("Setting ".concat(i," to ").concat(Xt)),Ar&&(Xt=Ar(Xt));var vo=yr.getOptions(),Nn=Xt;if(Xt===""&&!be&&!Dn.allowEmptyString&&!vo.allowEmptyStrings&&(Xt=void 0),(t.type==="number"||Xe==="number")&&Xt!==void 0&&(Xt=+Xt),an&&an.target&&an.target.selectionStart&&fm(an.target.selectionStart),m&&!Se&&(Nn=m(Xt,xd()),Xt=m(Xt,xd())),S&&!Se){var jl=S(Xt,xd());Nn=jl.value,Xt=jl.value,bd(jl.offset)}if(w&&E&&(Xt=E(Xt),Nn=w(Xt)),k){var Rh=Ve(Xt,k);bd(Rh.offset),Nn=Rh.value,Xt=Nn}$&&(Xt=Xt!=null?$(Xt):Xt),wi&&te&&!Dn.initial&&(Rt("Validating after change ".concat(i," ").concat(Xt)),Bl(wi(Xt,yr.getValues()))),pd(Xt),yd(Nn),Te&&Te(Xt),jt.setValue(Mt,Xt,!Dn.preventUpdate)};Gt(function(){ps.current.setValue(Ph.current)},J(wr));var Ed=function(ur,an){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Dn.preventUpdate;if(Rt("Field ".concat(i," has been touched")),wi&&ce&&!an&&ur&&(Rt("Validating after blur ".concat(i," ").concat(ii())),Bl(wi(ii(),yr.getValues()))),s&&ve&&!an&&ur&&(Rt("Validating async after blur ".concat(i," ").concat(ii())),s(ii(),yr.getValues())),m&&Se){var vo=m(ii());pd(vo),yd(vo),Te&&Te(vo),jt.setValue(Mt,vo,!Xt)}if(S&&Se){var Nn=S(ii());bd(Nn.offset),pd(Nn.value),yd(Nn.value),Te&&Te(Nn.value),jt.setValue(Mt,Nn.value,!Xt)}sm(ur),jt.setTouched(Mt,ur,!Xt)},gm=function(){var ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},an=ur.preventUpdate,Dn=Jr(Ih.current||jt.getInitialValue(ho.current),m,k,$,Ar);Ad(Dn,null,{initial:!0,preventUpdate:an}),Bl(ge?wi(Dn):void 0,{preventUpdate:an}),Ed(void 0,!0,{preventUpdate:an}),Ni.current=!1},ym=function(ur){wi&&(Rt("Field validating ".concat(i," ").concat(ii())),Bl(wi(ii(),ur||yr.getValues())))},mm=function(ur){s&&(Rt("Field async validating ".concat(i," ").concat(ii())),s(ii(),ur||yr.getValues()))},Cd={setValue:Ad,setTouched:Ed,setError:Bl,reset:gm,validate:ym,asyncValidate:mm,getValue:ii,getTouched:Oh,getError:am,getIsRelevant:kh,getDirty:Pf,getPristine:Ll,getFieldState:function(){return{value:ii(),touched:Oh(),dirty:Pf(),pristine:Ll()}},relevant:wd,multistepRelevant:hm,checkRelevant:vm};ps.current=Cd;var Ul={value:Nl,error:Ah,touched:Ch,maskedValue:gd,isRelevant:kf,dirty:Ni.current,pristine:!Ni.current};je&&(Ul={error:Ah,touched:Ch}),Rt("Render",yr.getFullField(i),Ul),vt(function(){var qr=yr.getFullField(ho.current);return Rt("Register",Mt,ho.current),po.current={field:qr,fieldId:Mt,fieldApi:Cd,fieldState:Ul,notify:Ge,keepState:Ue,inMultistep:nn,shadow:je},jt.register(Mt,po.current),function(){var ur=yr.getFullField(ho.current);Rt("Deregister",Mt,ur),jt.deregister(Mt)}},[]),(0,d.useEffect)(function(){var qr=yr.getFullField(i);return Ml.current?Ml.current=!1:(Rt("Update",i,nn),po.current.field=qr,jt.update(Mt,po.current,Fh.current)),function(){Fh.current=qr}},[i]),vt(function(){Be&&Bi&&(Bi.current.style.border="5px solid orange",setTimeout(function(){Bi.current.style.borderWidth="2px",Bi.current.style.borderStyle="inset",Bi.current.style.borderColor="initial",Bi.current.style.borderImage="initial"},500))});var xm=[].concat(J(Object.values(Ul)),J(Object.values(t)),J(Object.values(Lr))),bm=function(ur){return(0,d.useMemo)(function(){return kf?ur:null},J(xm))},Od=i,wm=Si({fieldType:Xe,setValue:Ad,onChange:qe,multiple:ze,ref:Bi}),Sm=Hr({setTouched:Ed,onBlur:At}),Am=Jn({fieldType:Xe,maskedValue:gd,multiple:ze,value:Nl}),Em=ai(Xe);return{fieldState:Ul,fieldApi:Cd,render:bm,ref:Bi,userProps:j(j({},Lr),{},{multiple:ze,onChange:qe,onBlur:At,id:Lr.id||Mt}),informed:j({name:Od,multiple:ze,onChange:wm,onBlur:Sm,value:Am,ref:Bi,type:Em,id:Lr.id||Mt},Lr)}}var zr=function(r){var i=d.forwardRef(function(o,s){var p=Bn(o,s),m=p.fieldState,S=p.fieldApi,w=p.render,E=p.ref,k=p.userProps;return w(d.createElement(r,D({fieldApi:S,fieldState:m,field:o.field,forwardedRef:E,debug:o.debug,type:o.type},k)))});return i.displayName="asField(".concat(Ke(r),")"),i},Ui=Re("informed:Text "),Ai=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,oe=s.forwardedRef,te=s.debug,ce=s.label,ge=s.title,ve=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ui("Render",k),vt(function(){te&&oe&&(oe.current.style.background="red",setTimeout(function(){oe.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ve}," ",ce," "):null,d.createElement("input",D({},Se,{id:ve,name:k,ref:oe,value:!p&&p!==0?"":p,onChange:function(Te){m(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){S(!0),E&&E(Te)}})))},Xr=zr(Ai),xn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,oe=s.forwardedRef,te=s.debug,ce=s.label,ge=s.id,ve=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){te&&oe&&(oe.current.style.background="red",setTimeout(function(){oe.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ge}," ",ce," "):null,d.createElement("textarea",D({},ve,{id:ge,name:k,ref:oe,value:p||"",onChange:function(be){m(be.target.value,be),w&&w(be)},onBlur:function(be){S(!0),E&&E(be)}})))},On=zr(xn),Xn=Re("informed:Select "),bn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,m=i.setTouched,S=s.onChange,w=s.onBlur,E=s.field,k=s.initialValue,$=s.options,oe=s.children,te=s.forwardedRef,ce=s.debug,ge=s.multiple,ve=s.label,Se=s.id,be=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),Ge=function(He){var Be=Array.from((te||Te).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ge?Be:Be[0]||""),S&&He&&S(He)};return vt(function(){ce&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),Xn("Render",E,p),d.createElement(d.Fragment,null,ve?d.createElement("label",{htmlFor:Se}," ",ve," "):null,d.createElement("select",D({},be,{id:Se,multiple:ge,name:E,ref:te||Te,value:p||(ge?[]:""),onChange:Ge,onBlur:function(He){m(!0),w&&w(He)}}),$?$.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):oe))},Tn=zr(bn),Un=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,m=i.setValue,S=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,oe=s.debug,te=s.forwardedRef,ce=s.id,ge=s.label,ve=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:ce}," ",ge," "):null,d.createElement("input",D({},ve,{id:ce,name:k,ref:te,checked:!!p,onChange:function(be){m(be.target.checked),w&&w(be)},onBlur:function(be){S(!0),E&&E(be)},type:"checkbox"})))},Qr=zr(Un),sn=function(r){return d.forwardRef(function(i,o){return d.createElement(Lt.Consumer,null,function(s){var p=s.radioGroupApi,m=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:m,ref:o},i))})})},jn=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,m=i.setValue,S=i.setTouched,w=i.onChange,E=i.onBlur,k=s.value,$=s.onChange,oe=s.onBlur,te=s.field,ce=s.initialValue,ge=s.forwardedRef,ve=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ve,{name:te,ref:ge,value:k,checked:p===k,onChange:function(be){!be.target.checked||(m(k),$&&$(be),w&&w(be))},onBlur:function(be){S(!0),oe&&oe(be),E&&E(be)},type:"radio"}))},xr=sn(jn),Ot=function(t){ee(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,m=s.children;return d.createElement(Lt.Provider,{value:this.groupContext},p?p.map(function(S){return d.createElement("label",{key:S.value},S.label," ",d.createElement(xr,{value:S.value}))}):m)}},{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),oi=zr(Ot);function Ei(){return(0,d.useContext)(Tt)}var wn=function(){var r=Ei(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function _t(){return(0,d.useContext)(Dt)}var Vn=function(){var r=_t(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Qn=Re("informed:useArrayField "),la=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,m=C(r,["field","initialValue","validate","arrayFieldApiRef"]),S=Ie(),w=(0,d.useState)(new Map),E=Z(w,1),k=E[0],$=(0,d.useContext)(Ft),oe=S.getFullField(i),te=$.getInitialValue(i)||o||[],ce=S.getSavedValue(oe)&&S.getSavedValue(oe).value,ge=$e(ce||te),ve=Z(ge,3),Se=ve[0],be=ve[1],Te=ve[2],Ge=Se?Se.map(function(){return le()}):[],Ue=$e(Ge),He=Z(Ue,3),Be=He[0],je=He[1],We=He[2],Xe=(0,d.useMemo)(function(){return function(Jt,Mt){var jt=We()==null?0:We().length;return s?s(Jt,jt,Mt):void 0}}),ze=Bn(j({field:i,validate:s?Xe:void 0,shadow:!0},m)),qe=ze.fieldApi;vt(function(){var Jt=function(jt){jt!==oe&&(Qn("".concat(oe," changed")),RegExp("".concat(oe,"\\[[0-9]+\\]")).test(jt)&&qe.validate())};return S.emitter.on("value",Jt),function(){S.emitter.removeListener("value",Jt)}},[i]);var At=function(Mt){Qn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Mt,"] and ").concat(i,"[").concat(Be.length-1,"]")),$.expectRemoval("".concat(i,"[").concat(Mt,"]")),$.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var jt=Be.slice(0,Mt).concat(Be.slice(Mt+1,Be.length));je(jt);var lr=Te(),nn=lr.slice(0,Mt).concat(lr.slice(Mt+1,lr.length));be(nn)},Bt=function(Mt,jt){Qn("Swapping","".concat(i,"[").concat(Mt,"] and ").concat(i,"[").concat(jt,"]"));var lr=J(Be);Be[Mt]&&Be[jt]?(lr[Mt]=Be[jt],lr[jt]=Be[Mt]):console.warn("Attempted to swap ".concat(Mt," with ").concat(jt," but one of them does not exist :(")),je(lr)},zt=function(){Be.push(le()),je(J(Be))},sr=function(Mt){Be.push(le()),je(J(Be));var jt=J(Te());jt[Be.length-1]=Mt,be(jt)},Ir=function(){var Mt=$.getInitialValue(i)||o||[];be(Mt);var jt=Mt?Mt.map(function(){return le()}):[];je(jt)},Ar=Be.map(function(Jt,Mt){var jt={remove:function(){return At(Mt)}},lr={initialValue:Se&&Se[Mt],key:Jt,field:"".concat(i,"[").concat(Mt,"]"),index:Mt};return j(j({arrayFieldItemApi:jt,arrayFieldItemState:lr},jt),lr)}),Yr={add:zt,swap:Bt,addWithInitialValue:sr,reset:Ir};p&&(p.current=Yr);var wr={fields:Ar,field:i},Lr=j(j({},$),{},{register:function(Mt,jt){k.set(Mt,jt);for(var lr=arguments.length,nn=new Array(lr>2?lr-2:0),yr=2;yr<lr;yr++)nn[yr-2]=arguments[yr];$.register.apply($,[Mt,jt].concat(nn))},deregister:function(Mt){k.delete(Mt);for(var jt=arguments.length,lr=new Array(jt>1?jt-1:0),nn=1;nn<jt;nn++)lr[nn-1]=arguments[nn];$.deregister.apply($,[Mt].concat(lr))},getInitialValue:function(Mt){if(RegExp("".concat(oe,"\\[[0-9]+\\]")).test(Mt)){var jt=Mt.replace(i,""),lr=pt.get(Te(),jt);return Qn("Resetting ".concat(jt," to ").concat(lr)),lr}return $.getInitialValue(Mt)}}),mn=function(Mt){return d.createElement(Ft.Provider,{value:Lr},d.createElement(Tt.Provider,{value:Yr},d.createElement(Vt.Provider,{value:wr},Mt)))};return{render:mn,add:zt,swap:Bt,addWithInitialValue:sr,fields:Ar,arrayFieldState:wr,arrayFieldApi:Yr,field:i}},it=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 Nt(t){var r=Ie(),i=(0,d.useMemo)(function(){return it(t,r)},[t]);return i}function si(){var t=(0,d.useContext)(Ct);return t}var ue=function(r){var i=r.when,o=r.children,s=si(),p=i(s);return p?o:null},Ce=function(r){var i=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var m=p.getFullField(o),S={path:m,parentPath:m.replace(/(.*)[.[].*/,"$1"),get:function(k,$){return pt.get(k,$)}},w=function(k){var $=k.values;return i($,S)};return d.createElement(ue,{when:w},d.createElement(_e,D({field:o},s)))}else return d.createElement(_e,D({field:o},s))},_e=function(r){var i=r.children,o=C(r,["children"]),s=la(o),p=s.render,m=s.arrayFieldState,S=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:S,arrayFieldState:m},S),m)):i)},ot=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(Ft),m=Ie(),S=(0,d.useState)(0),w=Z(S,2),E=w[0],k=w[1],$=(0,d.useState)(new Map),oe=Z($,1),te=oe[0],ce=i.field,ge=Nt(ce),ve=function(){var Be=m.getState(),je=Be.values,We=Be.errors,Xe=Be.touched,ze={values:pt.get(je,ce),errors:pt.get(We,ce),touched:pt.get(Xe,ce)};return ze};(0,d.useEffect)(function(){var He=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===ce&&k(Math.random())};return m.emitter.on("value",He),function(){m.emitter.removeListener("value",He)}},[ce]);var Se=function(){te.forEach(function(Be){Be.fieldApi.reset()})},be=ve(),Te=j(j({},p),{},{register:function(Be,je,We){te.set(Be,je),p.register(Be,je,We)},deregister:function(Be){te.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))}}),Ge=j(j(j({},o),ge),{},{reset:Se}),Ue=j(j({},i),be);return typeof s=="function"?d.createElement(Ft.Provider,{value:Te},d.createElement(Dt.Provider,{value:Ge},d.createElement(he.Provider,{value:Ue},s(j(j({arrayFieldItemApi:Ge,arrayFieldItemState:Ue},Ge),Ue))))):d.createElement(Ft.Provider,{value:Te},d.createElement(Dt.Provider,{value:Ge},d.createElement(he.Provider,{value:Ue},s)))};Ce.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,m=s.arrayFieldItemApi,S=p.key;return d.createElement(ot,{key:S,arrayFieldItemApi:m,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,o=(0,d.useContext)(Ft),s=o.fieldMap;return i?i.map(function(p,m){var S=p["ui:control"],w=s[S];return d.createElement(w,{key:"ui-comp-".concat(m)})}):null},Yt=Re("informed:FormFields "),Qt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(Ft),m=p.fieldMap,S=(0,d.useMemo)(function(){var w=z(i,s,o),E=w.map(function(k,$){var oe=k.field,te=k.props,ce=k.type,ge=k.properties,ve=k.items,Se=k.componentType,be=k.uiBefore,Te=k.uiAfter,Ge=k.allOf,Ue=m[Se];return Yt("Rendering Field",oe,k),!Ue&&ce==="object"&&ge?d.createElement(t,{schema:k,prefix:oe,key:"ScheamField-".concat($)}):!Ue&&ce==="array"&&ve?d.createElement(Er,D({key:"ScheamField-".concat($),field:oe,items:ve,uiBefore:be,uiAfter:Te},te)):Ue&&Se==="array"&&ve&&ce==="array"?d.createElement(Ue,D({key:"ScheamField-".concat($),field:oe,items:ve,uiBefore:be,uiAfter:Te},te)):Se==="conditionals"?Ge.map(function(He){var Be=He.then,je=He.if.properties,We=function(ze){var qe=ze.values;return Object.keys(je).every(function(At){var Bt=je[At];return qe[At]===Bt.const})};return d.createElement(ue,{key:"ScheamField-".concat($),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,D({key:"ScheamField-".concat($),field:oe},te)):null});return E},[i,o]);return S},Er=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,m=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ce,D({field:i},m),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:o["ui:before"]}),d.createElement(Qt,{schema:o,prefix:w}),d.createElement(st,{components:o["ui:after"]}))}),d.createElement(st,{components:p}))},Cr={select:Tn,input:Xr,textarea:On,checkbox:Qr,radio:oi,add:wn,remove:Vn,array:Er},qt=Re("informed:Controller "),Vl=function(r,i){var o=Object.keys(i).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},en=function(){},hs=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 o=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Cr,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||pt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,k.field),r.fieldsById.forEach(function($){var oe=$.fieldApi.checkRelevant();(!$.fieldApi.multistepRelevant(r.state.values)||!oe&&!$.keepState)&&(pt.delete(r.state.values,$.field),pt.delete(r.state.touched,$.field),pt.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()&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&pt.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()&&pt.set(r.state.errors,k.field,k.fieldApi.getError());var $=pt.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")&&pt.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(m){delete r.state.error,r.notify(m)})}return g(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var m=this.subscriptions.get(i);m&&m.forEach(function(S){return S.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{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,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(qt("Submit",this.state),this.emit("submit")):(qt("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,o){pt.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return qt("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 o=this.getValues();return pt.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return qt("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return qt("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return qt("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return qt("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return qt("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return qt("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return qt("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return qt("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 o=this.fieldsByName.get(i);return o&&o.shadow?pt.get(this.savedValues,"shadow-".concat(i)):pt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?pt.delete(this.savedValues,"shadow-".concat(i)):pt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return pt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){qt("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var m=".".concat(i),S="".concat(m.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(S);w&&(qt("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!!(pt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(o){var s=Z(o,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!pt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){qt("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){qt("Setting values"),this.fieldsById.forEach(function(o){var s=pt.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;qt("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Me(this.options.validationSchema,o);this.fieldsById.forEach(function(w){if(pt.has(s,w.field)){var E=pt.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=O(this.ajvValidate,o);this.fieldsById.forEach(function(w){if(pt.has(p,w.field)){var E=pt.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(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var m=this.options.validate(o);this.setFormError(m)}if(this.options.validateFields){var S=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(S,w.field)){var E=pt.get(S,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){qt("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.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()?(qt("Submit",this.state),this.emit("submit")):(qt("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var p=o.field,m=o.state;qt("Register ID:",i,"Name:",p,m,"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&&(o.keepState||o.inMultistep)?(qt("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),qt("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),qt("clearing expected removal",S),delete this.expectedRemovals[S],delete this.pulledOut[S],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;qt("Deregister",i,s),delete this.onScreen[i];var p=Vl(s,this.expectedRemovals),m=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(qt("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?pt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):pt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(qt("Removing field",s),this.fieldsById.delete(i),p||(pt.delete(this.state.values,s),pt.delete(this.state.touched,s),pt.delete(this.state.errors,s),o.shadow?pt.delete(this.savedValues,"shadow-".concat(s)):pt.delete(this.savedValues,s)),p&&this.pulledOut[m]&&(qt("Pulling out",s,"with magic value",m),pt.pullOut(this.state.values,m),pt.pullOut(this.state.touched,m),pt.pullOut(this.state.errors,m),pt.pullOut(this.savedValues,m),delete this.pulledOut[m])),this.emit("change")}},{key:"expectRemoval",value:function(i){qt("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){qt("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),m=o.fieldApi.getError(),S=o.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(pt.set(this.state.values,s),pt.set(this.state.errors,s),pt.set(this.state.touched,s)),pt.set(this.state.values,o.field,p),pt.set(this.state.errors,o.field,m),pt.set(this.state.touched,o.field,S),this.emit("change")}}]),t}(),go=Re("informed:FormProvider "),vs=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,m=C(r,["children","formApi","formController","formState"]);if(go("Render FormProvider"),o)return go("Render FormProvider with given values"),d.createElement(Ft.Provider,{value:s.updater},d.createElement(Ht.Provider,{value:o},d.createElement(Ct.Provider,{value:p},i)));go("Render FormProvider with generated values");var S=ys(m);return d.createElement(Ft.Provider,{value:S.formController.updater},d.createElement(Ht.Provider,{value:S.formApi},d.createElement(Ct.Provider,{value:S.formState},i)))},gs=Re("informed:useForm "),ys=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,m=r.allowEmptyStrings,S=r.preventEnter,w=r.getApi,E=r.apiRef,k=r.onChange,$=r.onReset,oe=r.onSubmit,te=r.onValueChange,ce=r.onSubmitFailure,ge=r.validationSchema,ve=r.schema,Se=r.ajv,be=r.fieldMap,Te=r.onlyValidateSchema,Ge=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);gs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:m,preventEnter:S,validationSchema:ge,schema:ve,ajv:Se,fieldMap:be}},[i,o,s,p,m,S,ge,ve,Se,be]),He=(0,d.useState)(function(){return new hs(Ue)}),Be=Z(He,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),vt(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Xe=Z(We,2),ze=Xe[0],qe=Xe[1];vt(function(){var Ir=function(){return k&&k(je.getFormState())},Ar=function(){return $&&$()},Yr=function(){return oe&&oe(je.getFormState().values)},wr=function(){return te&&te(je.getFormState().values)},Lr=function(){return ce&&ce(je.getFormState().errors)};return je.on("change",Ir),je.on("reset",Ar),je.on("submit",Yr),je.on("value",wr),je.on("failure",Lr),function(){je.removeListener("change",Ir),je.removeListener("reset",Ar),je.removeListener("submit",Yr),je.removeListener("value",wr),je.removeListener("failure",Lr)}},[k,$,oe,te,ce]),(0,d.useState)(function(){var Ir=function(){gs("Setting form state"),qe(je.getFormState())};je.on("change",Ir),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var At=(0,d.useState)(function(){return je.getFormApi()}),Bt=Z(At,1),zt=Bt[0],sr=function(Ar){return d.createElement(vs,{formApi:zt,formState:ze,formController:je},d.createElement(d.Fragment,null,Ar||d.createElement(Qt,{schema:ve,onlyValidateSchema:Te})))};return{formApi:zt,formState:ze,formController:je,render:sr,userProps:Ge}},Wl=Re("informed:Form "),Hl=function(r){var i=r.children,o=r.render,s=r.component,p=C(r,["children","render","component"]);Wl("Render FORM");var m=ys(p),S=m.formApi,w=m.formController,E=m.formState,k=m.render,$=m.userProps,oe=function(){var ce={formState:E,formApi:S};return s?d.createElement(s,ce,i):o?o(ce):typeof i=="function"?i(ce):i};return k(d.createElement("form",D({},$,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),oe()))},Rf=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)}})},Mf=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,m=i.setTouched,S=i.setError,w=i.update,E=i.getField,k=i.expectRemoval,$=i.getInitialValue,oe=i.fieldMap,te=i.getSavedValue;return{register:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return o.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},deregister:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return s.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},update:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return w.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setValue:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return p.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setTouched:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return m.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setError:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return S.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getField:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return E.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},expectRemoval:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return k.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getInitialValue:function(ge){return $("".concat(r,".").concat(ge))},getSavedValue:function(ge){return te("".concat(r,".").concat(ge))},fieldMap:oe}},Lf=function(r){var i=r.scope,o=r.children,s=useContext(Ft),p=Ie(),m=si(),S=useMemo(function(){return Rf(i,p)},[i]),w=useMemo(function(){return Mf(i,s)},[i]);return React.createElement(Ft.Provider,{value:w},React.createElement(Ht.Provider,{value:S},React.createElement(Ct.Provider,{value:m},o)))},Ci=function(r){var i=si(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(te){o[te]=i[te]}):o=i;var s=o,p=s.pristine,m=s.dirty,S=s.invalid,w=s.values,E=s.errors,k=s.touched,$=s.validating,oe=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:m,invalid:S,values:w,errors:E,touched:k,validating:$,submitting:oe},null,2)))},Df=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,m=s.validate,S=s.screenValid,w=(0,d.useState)(new Map),E=Z(w,1),k=E[0],$=(0,d.useRef)(0),oe=$e({current:i,steps:[],goal:null}),te=Z(oe,3),ce=te[0],ge=te[1],ve=te[2],Se=(0,d.useState)(function(){var Ue=function(){var je=ve(),We=je.current,Xe=k.get(We);return Xe},He={getState:function(){return ve()},getCurrentStep:Ue,getStep:function(je){return k.get(je)},getNumberOfSteps:function(){return k.size},next:function(){if(m(),S()){var je=Ue(),We=je.getNext,Xe=We(),ze=typeof Xe=="function"?Xe(p()):Xe;ze&&ge(function(qe){return j(j({},qe),{},{current:ze})})}},back:function(){var je=Ue(),We=je.getPrevious,Xe=We(),ze=typeof Xe=="function"?Xe(p()):Xe;ze&&ge(function(qe){return j(j({},qe),{},{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 o&&(o.current=He),He}),be=Z(Se,1),Te=be[0],Ge=function(He){return d.createElement(K.Provider,{value:Te},d.createElement(G.Provider,{value:ce},He))};return j(j(j({},Te),ce),{},{render:Ge})};function Nf(){return(0,d.useContext)(G)}function yo(){return(0,d.useContext)(K)}var Oa=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,m=si(),S=m.values,w=Nf(),E=w.current,k=w.goal,$=yo(),oe=$.register,te=$.deregister,ce=$.next,ge=i===E,ve=p?p(S):!0,Se=(0,d.useRef)(o),be=(0,d.useRef)(s),Te=(0,d.useRef)();Se.current=o,be.current=s,Te.current=p,(0,d.useState)(function(){oe(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return be.current}},!0)}),(0,d.useEffect)(function(){return oe(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return be.current}}),function(){te(i)}},[i]),(0,d.useEffect)(function(){k&&ge&&k!==i&&ce()},[k,ge]);var Ge=function(He){return d.createElement(we.Provider,{value:{relevant:function(je){return Te.current?Te.current(je):!0},multistep:!0}},ge&&ve?He:null)};return{isCurrent:ge,isRelevant:ve,step:i,render:Ge}};function Bf(t){var r=t.children,i=C(t,["children"]),o=Df(i),s=o.render,p=C(o,["render"]);return s(typeof r=="function"?r(p):r)}Bf.Step=function(r){var i=r.children,o=C(r,["children"]),s=Oa(o),p=s.render;return p(i)};var Td=function(r){var i=r.field,o=useContext(Ft),s=o.fieldMap,p=Ie(),m=p.getFullField,S=p.getOptions,w=m(i),E=S(),k=E.schema,$=ae(w),oe=pt.get(k,$);if(!oe)return null;var te=ne(i,oe),ce=te.props,ge=te.componentType,ve=s[ge];return React.createElement(ve,D({field:i},ce))},Pd=function(){var r=Ie(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Qt,{schema:s})},Id=function(r){return React.forwardRef(function(i,o){return React.createElement(Ht.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:o},i))})})},zl=function(r){return React.forwardRef(function(i,o){return React.createElement(Ct.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:o},i))})})},Gl=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 $l(t){var r=Ie(),i=useMemo(function(){return Gl(r,t)},[t]);return i}function Kl(t){var r=$l(t),i=Ie(),o=React.useState(),s=Z(o,2),p=s[1],m=React.useCallback(function(){return p({})},[]);return vt(function(){var S=function(E){E===t&&m()};return i.emitter.on("field",S),function(){i.emitter.removeListener("field",S)}},[]),vt(function(){m()},[]),r.getFieldState()||{}}var Uf=function(r){return function(i){return function(o){var s=Kl(r);return React.createElement(i,D({fieldState:s},o))}}},ms=function(r){return function(i){return function(o){var s=$l(r);return React.createElement(i,D({fieldApi:s},o))}}},xs=function(r){var i=r.value,o=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:o,value:i,key:i},p),s)},Yl=null,Ta=a(80150),bs=a(89356),ji=a(63263),jf=a(30699),mo=a(58377),Wn=a(28834),Jl=a(13038),Vf=a(32752),Pa=a(44341);function ws(t,r,i){return r in t?Pa(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function li(t,r){var i=bs(t);if(ji){var o=ji(t);r&&(o=jf(o).call(o,function(s){return mo(t,s).enumerable})),i.push.apply(i,o)}return i}function cr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Wn(o=li(Object(i),!0)).call(o,function(p){ws(t,p,i[p])})}else if(Jl)Vf(t,Jl(i));else{var s;Wn(s=li(Object(i))).call(s,function(p){Pa(t,p,mo(i,p))})}}return t}var ui=a(28583),Vi=a.n(ui),Ss=a(10240),Wi=a.n(Ss),Oi=a(8575),Hi=a(51446),As=a(19996),Es=a(78363),Xl=a(95238),Cs=a(53592);function Os(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function Ts(t,r){var i;if(!!t){if(typeof t=="string")return Os(t,r);var o=Xl(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Cs(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Os(t,r)}}function zi(t,r){var i=typeof Hi!="undefined"&&As(t)||t["@@iterator"];if(!i){if(Es(t)||(i=Ts(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
81
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,S;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){m=!0,S=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw S}}}}var Wf=a(23882);function ar(t){return typeof Hi=="function"&&typeof Wf=="symbol"?ar=function(i){return typeof i}:ar=function(i){return i&&typeof Hi=="function"&&i.constructor===Hi&&i!==Hi.prototype?"symbol":typeof i},ar(t)}function Hf(t){if(Es(t))return t}function Ql(t,r){var i=t&&(typeof Hi!="undefined"&&As(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,p=!1,m,S;try{for(i=i.call(t);!(s=(m=i.next()).done)&&(o.push(m.value),!(r&&o.length===r));s=!0);}catch(w){p=!0,S=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw S}}return o}}function xo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tn(t,r){return Hf(t)||Ql(t,r)||Ts(t,r)||xo()}var Zl=a(69798);function _l(t,r,i,o,s,p,m){try{var S=t[p](m),w=S.value}catch(E){i(E);return}S.done?r(w):Zl.resolve(w).then(o,s)}function Ps(t){return function(){var r=this,i=arguments;return new Zl(function(o,s){var p=t.apply(r,i);function m(w){_l(p,o,s,m,S,"next",w)}function S(w){_l(p,o,s,m,S,"throw",w)}m(void 0)})}}var Ia=a(63109),or=a.n(Ia),zf=a(78580),bo=a.n(zf),Fa=a(72119),ql=a.n(Fa),eu=a(66419),Gf=a.n(eu),Is=a(59340),ka=a.n(Is),$f=a(2991),er=a.n($f),tu=a(86902),Zt=a.n(tu),Kf=a(77766),Et=a.n(Kf),fi=a(26295),Ra=a.n(fi),Fs=a(20116),ln=a.n(Fs),ci=a(31905),Gi=a(92495),Ma=a.n(Gi),Yf=a(93320),ks=a.n(Yf),Jf=a(78718),wo=a.n(Jf),Rs=a(23560),Zn=a.n(Rs),Hn=a(88996);function So(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ms(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Pa(t,o.key,o)}}function Ls(t,r,i){return r&&Ms(t.prototype,r),i&&Ms(t,i),t}var ru=a(83863),nu=a(79542),Ds=a(24889);function $i(t){return $i=nu?Ds:function(i){return i.__proto__||Ds(i)},$i(t)}function La(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=$i(t),t!==null););return t}function Da(t,r,i){return typeof Reflect!="undefined"&&ru?Da=ru:Da=function(s,p,m){var S=La(s,p);if(!!S){var w=mo(S,p);return w.get?w.get.call(m):w.value}},Da(t,r,i||t)}var iu=a(189);function Na(t,r){return Na=nu||function(o,s){return o.__proto__=s,o},Na(t,r)}function Ao(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=iu(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Na(t,r)}var Ba=a(13535);function Eo(){if(typeof Reflect=="undefined"||!Ba||Ba.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Ba(Boolean,[],function(){})),!0}catch(t){return!1}}function zn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function au(t,r){return r&&(ar(r)==="object"||typeof r=="function")?r:zn(t)}function Ns(t){var r=Eo();return function(){var o=$i(t),s;if(r){var p=$i(this).constructor;s=Ba(o,arguments,p)}else s=o.apply(this,arguments);return au(this,s)}}var Bs=a(94473),ou=a.n(Bs),su=a(57514),Us=a.n(su),Xf=function(r){var i=function(p,m){return{name:p,value:m}};if(Zn()(r.prototype.set)||Zn()(r.prototype.get)||Zn()(r.prototype.getAll)||Zn()(r.prototype.has))return r;var o=function(s){Ao(m,s);var p=Ns(m);function m(S){var w;return So(this,m),w=p.call(this,S),w.entryList=[],w}return Ls(m,[{key:"append",value:function(w,E,k){return this.entryList.push(i(w,E)),Da($i(m.prototype),"append",this).call(this,w,E,k)}},{key:"set",value:function(w,E){var k,$=i(w,E);this.entryList=ln()(k=this.entryList).call(k,function(oe){return oe.name!==w}),this.entryList.push($)}},{key:"get",value:function(w){var E,k=ou()(E=this.entryList).call(E,function($){return $.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var E,k;return er()(E=ln()(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})}}]),m}(r);return o};const Qf=Xf(Us());function Zf(t){if(Es(t))return Os(t)}function Ki(t){if(typeof Hi!="undefined"&&As(t)!=null||t["@@iterator"]!=null)return Cs(t)}function ua(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pn(t){return Zf(t)||Ki(t)||Ts(t)||ua()}var js=a(3649),In=a.n(js),lu=a(88996),Vs=lu.Buffer,Yi=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Ji=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Fr(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):er()(r=Pn(t)).call(r,function(p){var m,S;if(Ji(p)||Yi(p)&&o==="unsafe")return p;var w=er()(m=er()(S=Vs.from(p).toJSON().data||[]).call(S,function(E){var k;return In()(k="0".concat(E.toString(16).toUpperCase())).call(k,-2)})).call(m,function(E){return"%".concat(E)}).join("");return w}).join("")}function _n(t){var r=t.value;return Array.isArray(r)?Ti(t):ar(r)==="object"?Co(t):_f(t)}function Ti(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,m=function($){return Fr($,{escape:p})};if(o==="simple")return er()(i).call(i,function(k){return m(k)}).join(",");if(o==="label")return".".concat(er()(i).call(i,function(k){return m(k)}).join("."));if(o==="matrix")return er()(i).call(i,function(k){return m(k)}).reduce(function(k,$){var oe;if(!k||s){var te,ce;return Et()(te=Et()(ce="".concat(k||"",";")).call(ce,r,"=")).call(te,$)}return Et()(oe="".concat(k,",")).call(oe,$)},"");if(o==="form"){var S=s?"&".concat(r,"="):",";return er()(i).call(i,function(k){return m(k)}).join(S)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return er()(i).call(i,function(k){return m(k)}).join(" ".concat(w))}if(o==="pipeDelimited"){var E=s?"".concat(r,"="):"";return er()(i).call(i,function(k){return m(k)}).join("|".concat(E))}}function Co(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,m=function(E){return Fr(E,{escape:p})},S=Zt()(i);if(o==="simple")return S.reduce(function(w,E){var k,$,oe,te=m(i[E]),ce=s?"=":",",ge=w?"".concat(w,","):"";return Et()(k=Et()($=Et()(oe="".concat(ge)).call(oe,E)).call($,ce)).call(k,te)},"");if(o==="label")return S.reduce(function(w,E){var k,$,oe,te=m(i[E]),ce=s?"=":".",ge=w?"".concat(w,"."):".";return Et()(k=Et()($=Et()(oe="".concat(ge)).call(oe,E)).call($,ce)).call(k,te)},"");if(o==="matrix"&&s)return S.reduce(function(w,E){var k,$,oe=m(i[E]),te=w?"".concat(w,";"):";";return Et()(k=Et()($="".concat(te)).call($,E,"=")).call(k,oe)},"");if(o==="matrix")return S.reduce(function(w,E){var k,$,oe=m(i[E]),te=w?"".concat(w,","):";".concat(r,"=");return Et()(k=Et()($="".concat(te)).call($,E,",")).call(k,oe)},"");if(o==="form")return S.reduce(function(w,E){var k,$,oe,te,ce=m(i[E]),ge=w?Et()(k="".concat(w)).call(k,s?"&":","):"",ve=s?"=":",";return Et()($=Et()(oe=Et()(te="".concat(ge)).call(te,E)).call(oe,ve)).call($,ce)},"")}function _f(t){var r=t.key,i=t.value,o=t.style,s=t.escape,p=function(w){return Fr(w,{escape:s})};if(o==="simple")return p(i);if(o==="label")return".".concat(p(i));if(o==="matrix"){var m;return Et()(m=";".concat(r,"=")).call(m,p(i))}if(o==="form")return p(i);if(o==="deepObject")return p(i,{},!0)}var Oo={serializeRes:uu,mergeInQueryOrForm:cu};function Pi(t){return To.apply(this,arguments)}function To(){return To=Ps(or().mark(function t(r){var i,o,s,p,m,S=arguments;return or().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=S.length>1&&S[1]!==void 0?S[1]:{},ar(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Oo.mergeInQueryOrForm(i),i.headers&&Zt()(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 o=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(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,Oo.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 m=new Error(s.statusText),m.status=s.status,m.statusCode=s.status,m.response=s,m;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),To.apply(this,arguments)}var Ws=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Po(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):ks().safeLoad(t)}function uu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.loadSpec,s=o===void 0?!1:o,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:zs(t.headers)},m=p.headers["content-type"],S=s||Ws(m),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=Po(E,m);p.body=k,p.obj=k}catch($){p.parseError=$}return p})}function Hs(t){var r=bo()(t).call(t,", ");return r?t.split(", "):t}function zs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Zn()(ql()(t))?Gf()(ql()(t).call(t)).reduce(function(r,i){var o=tn(i,2),s=o[0],p=o[1];return r[s]=Hs(p),r},{}):{}}function Ua(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&ar(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Hn.Buffer!="undefined"&&t instanceof Hn.Buffer?!0:t!==null&&ar(t)==="object"&&typeof t.pipe=="function"}function Io(t,r){return Array.isArray(t)&&t.some(function(i){return Ua(i,r)})}var fa={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Fo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Gs(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,m=r.encoding,S=ar(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(Ua(S)||Io(S))return[[E,S]];if(p)return ja(t,S,i,p);if(m){if([ar(m.style),ar(m.explode),ar(m.allowReserved)].some(function($){return $!=="undefined"}))return ja(t,S,i,wo()(m,["style","explode","allowReserved"]));if(m.contentType){if(m.contentType==="application/json"){var k=typeof S=="string"?S:ka()(S);return[[E,w(k)]]}return[[E,w(S.toString())]]}return ar(S)!=="object"?[[E,w(S)]]:Array.isArray(S)&&S.every(function($){return ar($)!=="object"})?[[E,er()(S).call(S,w).join(",")]]:[[E,w(ka()(S))]]}return ar(S)!=="object"?[[E,w(S)]]:Array.isArray(S)?o==="multi"?[[E,er()(S).call(S,w)]]:[[E,er()(S).call(S,w).join(Fo[o||"csv"])]]:[[E,""]]}function ja(t,r,i,o){var s,p=o.style||"form",m=typeof o.explode=="undefined"?p==="form":o.explode,S=i?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(te){return Fr(te,{escape:S})},E=i?function(oe){return oe}:function(oe){return Fr(oe,{escape:S})};if(ar(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return m?[[E(t),er()(r).call(r,w)]]:[[E(t),er()(r).call(r,w).join(fa[p])]];if(p==="deepObject"){var k;return er()(k=Zt()(r)).call(k,function(oe){var te;return[E(Et()(te="".concat(t,"[")).call(te,oe,"]")),w(r[oe])]})}if(m){var $;return er()($=Zt()(r)).call($,function(oe){return[E(oe),w(r[oe])]})}return[[E(t),er()(s=Zt()(r)).call(s,function(oe){var te;return[Et()(te="".concat(E(oe),",")).call(te,w(r[oe]))]}).join(",")]]}function qf(t){return Ra()(t).reduce(function(r,i){var o=tn(i,2),s=o[0],p=o[1],m=zi(Gs(s,p,!0)),S;try{for(m.s();!(S=m.n()).done;){var w=tn(S.value,2),E=w[0],k=w[1];if(Array.isArray(k)){var $=zi(k),oe;try{for($.s();!(oe=$.n()).done;){var te=oe.value;r.append(E,te)}}catch(ce){$.e(ce)}finally{$.f()}}else r.append(E,k)}}catch(ce){m.e(ce)}finally{m.f()}return r},new Qf)}function fu(t){var r=Zt()(t).reduce(function(i,o){var s=zi(Gs(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var m=tn(p.value,2),S=m[0],w=m[1];i[S]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Ma().stringify(r,{encode:!1,indices:!1})||""}function cu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,o=t.query,s=t.form,p=function(){for(var Se=arguments.length,be=new Array(Se),Te=0;Te<Se;Te++)be[Te]=arguments[Te];var Ge=ln()(be).call(be,function(Ue){return Ue}).join("&");return Ge?"?".concat(Ge):""};if(s){var m=Zt()(s).some(function(ve){var Se=s[ve].value;return Ua(Se)||Io(Se)}),S=t.headers["content-type"]||t.headers["Content-Type"];m||/multipart\/form-data/i.test(S)?t.body=qf(t.form):t.body=fu(s),delete t.form}if(o){var w=i.split("?"),E=tn(w,2),k=E[0],$=E[1],oe="";if($){var te=Ma().parse($),ce=Zt()(o);ce.forEach(function(ve){return delete te[ve]}),oe=Ma().stringify(te,{encode:!0})}var ge=p(oe,fu(o));t.url=k+ge,delete t.query}return t}function $s(t,r,i){return i=i||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),Oo.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var Ks=a(51942),rn=a.n(Ks),Va=a(93476),Xi=a.n(Va),ko=a(92762),du=a.n(ko),Wa=a(13311),pu=a.n(Wa),Qi=a(50308),ca=a.n(Qi);/*!
80
+ `+ge)}else k[0]=ie+" "+k[0]}function o(k,$){if(k[0]=($.useColors?"%c":"")+$.namespace,!!$.useColors){var ie="color: "+$.color,ne=0,ce=0;k[0].replace(/%[a-zA-Z%]/g,function(ge){ge!=="%%"&&(ne++,ge==="%c"&&(ce=ne))}),k.splice(ce,0,ie)}}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:o}}function m(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,$=arguments.length>1?arguments[1]:void 0;return function(){for(var ie=arguments.length,ne=new Array(ie),ce=0;ce<ie;ce++)ne[ce]=arguments[ce];k&&ne.unshift(k);var ge=$.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ve=ge.some(function(Te){return Te.test(k)}),Se={color:r(k,$.colors),namespace:k,useColors:$.useColors};if(!1)var be}}function w(k){return A(k,m())}function E(k){return A(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Re("informed:ObjMap "),tt=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]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,m){return p!=null?p[m]:p},r);return s===void 0||s===r?o:s},Je=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ut=function(r){return r.replace(Je(r),"").replace(/\./,"")},pt=function(r,i){var o=Je(i),s=ut(i),p=o?Qe(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},wt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,A){return m===A.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+A[m+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+A[m+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},rt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,A){return s===void 0?s:(m===A.length-1&&(delete s[p],o=!0),s[p])},r),o},lt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,A){return s===void 0?s:(m===A.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},yt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},mt=function(r){var i=tt(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 yt(i).length===0}},{key:"get",value:function(i,o){var s=Qe(i,o);return s}},{key:"has",value:function(i,o){return pt(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)Pe("SETTING",o,s),wt(i,o,s);else if(mt(o)&&t.get(i,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),wt(i,o,void 0);var p=tt(o);p=p.slice(0,p.length-1),Rt(i,p)}else!mt(o)&&t.get(i,o)!==void 0&&(Pe("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){Pe("DELETE",o),mt(o)?(Pe("ARRAY",o),this.pullOut(i,o)):rt(i,o);var s=tt(o);s=s.slice(0,s.length-1),Rt(i,s)}},{key:"pullOut",value:function(i,o){var s=tt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var m=Qe(i,s);Pe("Array",m),Array.isArray(m)&&lt(m,p),Rt(i,s)}}]),t}();function Rt(t,r){if(r.length!==0){var i=Qe(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&rt(t,r),Rt(t,r.slice(0,r.length-1))}}var kt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=d.createContext({}),Wt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Dt=d.createContext(),Vt=d.createContext(),Tt=d.createContext(),Nt=d.createContext(),he=d.createContext(),G=d.createContext(),K=d.createContext(),we=d.createContext();function Ie(){var t=(0,d.useContext)(Wt);return t}function Ge(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Z(o,2),p=s[0],m=s[1];r.current=p;var A=function(k){r.current=k,i.current&&m(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,A,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){dt.set(i,r.path,r.message);return}var o=Fe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;dt.get(i,p.path)||dt.set(i,p.path,p.message)}}catch(m){o.e(m)}finally{o.f()}}return i},Me=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=P(s);return o}},Y=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(o){return Y(o)}},O=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,m=s.dataPath,A=s.keyword,w=s.params,E=m;A==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),dt.set(o,E,p)}),o},le=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},N=function(r,i){var o;return function(){for(var p=arguments.length,m=new Array(p),A=0;A<p;A++)m[A]=arguments[A];var w=function(){clearTimeout(o),r.apply(void 0,m)};clearTimeout(o),o=setTimeout(w,i)}},re=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],m=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,k=i.items,$=i.enum,ie=i.title,ne=i.minimum,ce=i.maximum,ge=i.minLength,ve=i.maxLength,Se=i.pattern,be=i.type,Te=i.properties,$e=le();m&&m.id&&($e=m.id);var Ue={componentType:s,field:o?"".concat(o,".").concat(r):r,type:be,uiBefore:A,uiAfter:w,properties:be==="object"?Te:void 0,items:be==="array"?k:void 0,props:j(j({label:ie,id:$e,min:ne,max:ce,minLength:ge,maxLength:ve,pattern:Se},p),m)};if(E){var He=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=He}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},z=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,m=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(k,$){var ie=w.indexOf(k),ne=w.indexOf($);return(ie>-1?ie:w.length+1)-(ne>-1?ne:w.length+1)}).map(function(k){var $=p[k],ie=re(k,$,o);return ie});return m&&E.push({componentType:"conditionals",allOf:m}),E}return[]},oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},Oe=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ae=function(r,i){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==i[o]?s=o:p=!1,o=o+1;return s},Ve=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=Oe(i,o),p=s.findIndex(function(ve){return typeof ve!="string"}),m=s.length-J(s).reverse().findIndex(function(ve){return typeof ve!="string"}),A=[],w=o.split(""),E=0,k=0,$=Ae(s.slice(0,p),w.slice(0,p));$>-1&&(E=$+1,A=A.concat(s.slice(0,$+1)),k=$+1),$<0&&(A=A.concat(s.slice(0,p)),k=p);for(var ie=k;ie<s.length;ie++){var ne=s[ie];if(E!=w.length){var ce=w[E];if(typeof ne=="function")A.push(ne(ce)),E=E+1;else{var ge=typeof ne=="string"?ne===ce:ne.test(ce);ge&&typeof ne=="string"?(A.push(ne),E=E+1):!ge&&typeof ne=="string"?E!=w.length&&A.push(ne):ge&&typeof ne!="string"?(A.push(ce),E=E+1):!ge&&typeof ne!="string"&&(E=E+1,ie=ie-1)}}else if(typeof ne=="string"&&ie>=m)A.push(ne);else break}return{value:A.join(""),offset:o?A.length-o.length:0}},Le=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),m=new Intl.NumberFormat(r),A=(o=(s=m.formatToParts(.1).find(function(ve){var Se=ve.type;return Se==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ve,Se){return ve instanceof RegExp&&Se instanceof RegExp&&ve.source===Se.source&&ve.global===Se.global&&ve.ignoreCase===Se.ignoreCase&&ve.multiline===Se.multiline}function E(ve,Se){for(var be=ve.length;be--;)if(Se(ve[be]))return be;return-1}function k(ve,Se,be){var Te=J(ve);return Array.isArray(be)?Te.splice.apply(Te,[Se,0].concat(J(be))):Te.splice(Se,0,be),Te}function $(ve){return"".concat(ve).replace(/\D/g,"")}function ie(ve){return"".concat(ve).split(A).map(function(Se){return $(Se)}).join(".")}function ne(ve){if(typeof ve=="number")return ve;var Se=parseFloat(ie(ve));return Number.isNaN(Se)?void 0:Se}function ce(ve){var Se=ie(ve),be="".concat(Se).split(".")[1],Te=p.formatToParts(Number(Se));be==="0"&&Te.push({type:"decimal",value:A},{type:"fraction",value:be});var $e=Te.reduce(function(Be,je){var We=je.type,Xe=je.value;return["decimal","fraction"].includes(We)&&be==null?Be:["integer","fraction"].includes(We)?[].concat(J(Be),J(Xe.split("").filter(function(ze,qe){return We==="fraction"?qe<be.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(J(Be),J(Xe.split(""))):[].concat(J(Be),[Xe])},[]),Ue=E($e,function(Be){return w(Be,/\d/)});$e.indexOf(A)===-1&&"".concat(ve).indexOf(A)!==-1&&($e=k($e,Ue+1,[A,"[]"]),Ue+=2);var He=$e.slice(Ue+1).join("");return $e=[].concat(J($e.slice(0,Ue+1)),[He]),$e}var ge=function(Se){if(Se!=null)return ne(Se)};return{formatter:ce,parser:ge}},nt=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Me,yupToFormError:Y,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:re,computeFieldsFromSchema:z,getSchemaPathFromJsonPath:oe,informedFormat:Ve,createIntlNumberFormatter:Le}),ht=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,bt=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,m=Ge(0),A=Z(m,3),w=A[0],E=A[1],k=A[2],$=Ge(0),ie=Z($,3),ne=ie[0],ce=ie[1],ge=ie[2];return ht(function(){if(o.current!=null&&k()){var ve=k()+ge();ge()!=0&&p?o.current.setSelectionRange(ve+1,ve+1):p&&o.current.setSelectionRange(ve,ve)}},[i]),{setCursorOffset:ce,setCursor:E,cursor:w,getCursor:k,cursorOffset:ne}},zt=function(r,i){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},i)},Mt=Re("informed:useField "),Kr=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var m=Ve(r,o);return m.value}return r}},gr=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=Ve(r,s);return p.value}return r},On=function(r,i,o){var s=o.required;if(r||i)return function(p,m){if(i)return T(i,p);if(r)return r(p,m)};if(s)return function(p){return sn(p,s)}},bi=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,m=r.ref,A=function(E){return o(E)};return(i==="text"||i==="textArea"||i==="number")&&(A=function(E){return o(E.target.value,E)}),i==="select"&&(A=function(){var E=Array.from(m.current).filter(function(k){return k.selected}).map(function(k){return k.value});o(p?E:E[0]||"")}),i==="checkbox"&&(A=function(E){o(E.target.checked),s&&s(E)}),function(w){A(w)}},Wr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Jn=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},ii=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},sn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Un(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,m=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,k=t.formatter,$=t.parser,ie=t.initialValue,ne=t.validateOnChange,ce=t.validateOnBlur,ge=t.validateOnMount,ve=t.asyncValidateOnBlur,Se=t.maskOnBlur,be=t.allowEmptyString,Te=t.onValueChange,$e=t.notify,Ue=t.keepState,He=t.maintainCursor,Be=t.debug,je=t.shadow,We=t.step,Xe=t.fieldType,ze=t.multiple,qe=t.onChange,At=t.onBlur,Ut=t.formController,Ht=t.relevant,sr=t.required,Ir=t.keepStateIfRelevant,Er=t.initialize,$r=t.formatterDependencies,wr=$r===void 0?[]:$r,Nr=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"]),mn=(0,d.useState)(le()),Jt=Z(mn,1),Lt=Jt[0],jt=(0,d.useContext)(kt),lr=(0,d.useContext)(we),an=lr||Ir,yr=Ie(),ds=(0,d.useRef)(),Ll=(0,d.useRef)(!0),po=(0,d.useRef)(),Li=(0,d.useRef)(!1),Dl=function(){return!Li.current},If=function(){return Li.current};Ut&&(jt=Ut.updater,yr=Ut.getFormApi());var xi=On(o,p,{required:sr}),Nl=(0,d.useState)(function(){return jt.getInitialValue(i)}),em=Z(Nl,1),tm=em[0],Ff=jt.getSavedValue(i),kf,Ah;(Ue||an)&&Ff?(Mt("Setting field ".concat(Td,"'s kept state"),Ff),kf=Ff.value,Ah=Ff.touched,yr.removeSavedState(Td)):ie!=null?kf=ie:kf=tm;var rm=Ge(Kr(kf,m,k,$,Er)),pd=Z(rm,3),Bl=pd[0],hd=pd[1],nm=pd[2],im=Ge(ge?xi(Bl):void 0),vd=Z(im,3),Eh=vd[0],Ch=vd[1],am=vd[2],om=Ge(Ah),gd=Z(om,3),Oh=gd[0],sm=gd[1],Th=gd[2],lm=(0,d.useState)(function(){return gr(Bl,w,E,k)}),Ph=Z(lm,2),yd=Ph[0],md=Ph[1],Ih=(0,d.useRef)();Ih.current=yd;var Fh=(0,d.useRef)(ie),ho=(0,d.useRef)(i),kh=(0,d.useRef)();Fh.current=ie,ho.current=i;var um=(0,d.useRef)(null),Di=d.useMemo(function(){return r||um},[]),xd=bt({value:Bl,inputRef:Di,maintainCursor:!!He}),bd=xd.getCursor,fm=xd.setCursor,wd=xd.setCursorOffset,cm=function(){return!0},Sd=function(ur){var on=Ht||cm,Nn=yr.getFullField(ho.current)||ho.current,Xt={path:Nn,parentPath:Nn.replace(/(.*)[.[].*/,"$1"),get:function(Bn,Vl){return dt.get(Bn,Vl)}};return lr&&lr.relevant?on(ur,Xt)&&lr.relevant(ur,Xt):on(ur,Xt)},dm=Ge(Sd(yr.getValues())),Ad=Z(dm,3),Rf=Ad[0],pm=Ad[1],Rh=Ad[2],hm=function(ur){return lr&&lr.relevant?lr.relevant(ur):!0},vm=function(){var ur=Sd(yr.getValues()),on=Rh();return ur!=on&&pm(ur),ur};(0,d.useEffect)(function(){!Rf&&!Ue&&ds.current.reset()},[Rf]);var ni=function(){return je?yr.getDerrivedValue(i):nm()},Ul=function(ur){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Nn=on.preventUpdate;We&&yr.getStep()<We?(Mt("Setting ".concat(i,"'s error to undefined as we are not at that step")),Ch(void 0),jt.setError(Lt,void 0,!Nn)):(Mt("Setting ".concat(i,"'s error to ").concat(ur)),Ch(ur),jt.setError(Lt,ur,!Nn))},Ed=function(ur,on){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=ur;Li.current=!0,Mt("Setting ".concat(i," to ").concat(Xt)),Er&&(Xt=Er(Xt));var vo=yr.getOptions(),Bn=Xt;if(Xt===""&&!be&&!Nn.allowEmptyString&&!vo.allowEmptyStrings&&(Xt=void 0),(t.type==="number"||Xe==="number")&&Xt!==void 0&&(Xt=+Xt),on&&on.target&&on.target.selectionStart&&fm(on.target.selectionStart),m&&!Se&&(Bn=m(Xt,bd()),Xt=m(Xt,bd())),A&&!Se){var Vl=A(Xt,bd());Bn=Vl.value,Xt=Vl.value,wd(Vl.offset)}if(w&&E&&(Xt=E(Xt),Bn=w(Xt)),k){var Mh=Ve(Xt,k);wd(Mh.offset),Bn=Mh.value,Xt=Bn}$&&(Xt=Xt!=null?$(Xt):Xt),xi&&ne&&!Nn.initial&&(Mt("Validating after change ".concat(i," ").concat(Xt)),Ul(xi(Xt,yr.getValues()))),hd(Xt),md(Bn),Te&&Te(Xt),jt.setValue(Lt,Xt,!Nn.preventUpdate)};zt(function(){ds.current.setValue(Ih.current)},J(wr));var Cd=function(ur,on){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Nn.preventUpdate;if(Mt("Field ".concat(i," has been touched")),xi&&ce&&!on&&ur&&(Mt("Validating after blur ".concat(i," ").concat(ni())),Ul(xi(ni(),yr.getValues()))),s&&ve&&!on&&ur&&(Mt("Validating async after blur ".concat(i," ").concat(ni())),s(ni(),yr.getValues())),m&&Se){var vo=m(ni());hd(vo),md(vo),Te&&Te(vo),jt.setValue(Lt,vo,!Xt)}if(A&&Se){var Bn=A(ni());wd(Bn.offset),hd(Bn.value),md(Bn.value),Te&&Te(Bn.value),jt.setValue(Lt,Bn.value,!Xt)}sm(ur),jt.setTouched(Lt,ur,!Xt)},gm=function(){var ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},on=ur.preventUpdate,Nn=Kr(Fh.current||jt.getInitialValue(ho.current),m,k,$,Er);Ed(Nn,null,{initial:!0,preventUpdate:on}),Ul(ge?xi(Nn):void 0,{preventUpdate:on}),Cd(void 0,!0,{preventUpdate:on}),Li.current=!1},ym=function(ur){xi&&(Mt("Field validating ".concat(i," ").concat(ni())),Ul(xi(ni(),ur||yr.getValues())))},mm=function(ur){s&&(Mt("Field async validating ".concat(i," ").concat(ni())),s(ni(),ur||yr.getValues()))},Od={setValue:Ed,setTouched:Cd,setError:Ul,reset:gm,validate:ym,asyncValidate:mm,getValue:ni,getTouched:Th,getError:am,getIsRelevant:Rh,getDirty:If,getPristine:Dl,getFieldState:function(){return{value:ni(),touched:Th(),dirty:If(),pristine:Dl()}},relevant:Sd,multistepRelevant:hm,checkRelevant:vm};ds.current=Od;var jl={value:Bl,error:Eh,touched:Oh,maskedValue:yd,isRelevant:Rf,dirty:Li.current,pristine:!Li.current};je&&(jl={error:Eh,touched:Oh}),Mt("Render",yr.getFullField(i),jl),ht(function(){var _r=yr.getFullField(ho.current);return Mt("Register",Lt,ho.current),po.current={field:_r,fieldId:Lt,fieldApi:Od,fieldState:jl,notify:$e,keepState:Ue,inMultistep:an,shadow:je},jt.register(Lt,po.current),function(){var ur=yr.getFullField(ho.current);Mt("Deregister",Lt,ur),jt.deregister(Lt)}},[]),(0,d.useEffect)(function(){var _r=yr.getFullField(i);return Ll.current?Ll.current=!1:(Mt("Update",i,an),po.current.field=_r,jt.update(Lt,po.current,kh.current)),function(){kh.current=_r}},[i]),ht(function(){Be&&Di&&(Di.current.style.border="5px solid orange",setTimeout(function(){Di.current.style.borderWidth="2px",Di.current.style.borderStyle="inset",Di.current.style.borderColor="initial",Di.current.style.borderImage="initial"},500))});var xm=[].concat(J(Object.values(jl)),J(Object.values(t)),J(Object.values(Nr))),bm=function(ur){return(0,d.useMemo)(function(){return Rf?ur:null},J(xm))},Td=i,wm=bi({fieldType:Xe,setValue:Ed,onChange:qe,multiple:ze,ref:Di}),Sm=Wr({setTouched:Cd,onBlur:At}),Am=Jn({fieldType:Xe,maskedValue:yd,multiple:ze,value:Bl}),Em=ii(Xe);return{fieldState:jl,fieldApi:Od,render:bm,ref:Di,userProps:j(j({},Nr),{},{multiple:ze,onChange:qe,onBlur:At,id:Nr.id||Lt}),informed:j({name:Td,multiple:ze,onChange:wm,onBlur:Sm,value:Am,ref:Di,type:Em,id:Nr.id||Lt},Nr)}}var Hr=function(r){var i=d.forwardRef(function(o,s){var p=Un(o,s),m=p.fieldState,A=p.fieldApi,w=p.render,E=p.ref,k=p.userProps;return w(d.createElement(r,D({fieldApi:A,fieldState:m,field:o.field,forwardedRef:E,debug:o.debug,type:o.type},k)))});return i.displayName="asField(".concat(Ke(r),")"),i},Ni=Re("informed:Text "),wi=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,m=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ie=s.forwardedRef,ne=s.debug,ce=s.label,ge=s.title,ve=s.id,Se=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ni("Render",k),ht(function(){ne&&ie&&(ie.current.style.background="red",setTimeout(function(){ie.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ve}," ",ce," "):null,d.createElement("input",D({},Se,{id:ve,name:k,ref:ie,value:!p&&p!==0?"":p,onChange:function(Te){m(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){A(!0),E&&E(Te)}})))},Yr=Hr(wi),xn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,m=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ie=s.forwardedRef,ne=s.debug,ce=s.label,ge=s.id,ve=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return ht(function(){ne&&ie&&(ie.current.style.background="red",setTimeout(function(){ie.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ge}," ",ce," "):null,d.createElement("textarea",D({},ve,{id:ge,name:k,ref:ie,value:p||"",onChange:function(be){m(be.target.value,be),w&&w(be)},onBlur:function(be){A(!0),E&&E(be)}})))},Tn=Hr(xn),Xn=Re("informed:Select "),bn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,m=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,k=s.initialValue,$=s.options,ie=s.children,ne=s.forwardedRef,ce=s.debug,ge=s.multiple,ve=s.label,Se=s.id,be=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),$e=function(He){var Be=Array.from((ne||Te).current).filter(function(je){return je.selected}).map(function(je){return je.value});i.setValue(ge?Be:Be[0]||""),A&&He&&A(He)};return ht(function(){ce&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),Xn("Render",E,p),d.createElement(d.Fragment,null,ve?d.createElement("label",{htmlFor:Se}," ",ve," "):null,d.createElement("select",D({},be,{id:Se,multiple:ge,name:E,ref:ne||Te,value:p||(ge?[]:""),onChange:$e,onBlur:function(He){m(!0),w&&w(He)}}),$?$.map(function(Ue){return d.createElement("option",{key:Ue.value,value:Ue.value,disabled:Ue.disabled},Ue.label)}):ie))},Pn=Hr(bn),jn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,m=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,k=s.field,$=s.initialValue,ie=s.debug,ne=s.forwardedRef,ce=s.id,ge=s.label,ve=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:ce}," ",ge," "):null,d.createElement("input",D({},ve,{id:ce,name:k,ref:ne,checked:!!p,onChange:function(be){m(be.target.checked),w&&w(be)},onBlur:function(be){A(!0),E&&E(be)},type:"checkbox"})))},Jr=Hr(jn),ln=function(r){return d.forwardRef(function(i,o){return d.createElement(Dt.Consumer,null,function(s){var p=s.radioGroupApi,m=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:m,ref:o},i))})})},Vn=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,m=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,k=s.value,$=s.onChange,ie=s.onBlur,ne=s.field,ce=s.initialValue,ge=s.forwardedRef,ve=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ve,{name:ne,ref:ge,value:k,checked:p===k,onChange:function(be){!be.target.checked||(m(k),$&&$(be),w&&w(be))},onBlur:function(be){A(!0),ie&&ie(be),E&&E(be)},type:"radio"}))},xr=ln(Vn),Ot=function(t){ee(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,m=s.children;return d.createElement(Dt.Provider,{value:this.groupContext},p?p.map(function(A){return d.createElement("label",{key:A.value},A.label," ",d.createElement(xr,{value:A.value}))}):m)}},{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),ai=Hr(Ot);function Si(){return(0,d.useContext)(Tt)}var wn=function(){var r=Si(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function _t(){return(0,d.useContext)(Nt)}var Wn=function(){var r=_t(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Qn=Re("informed:useArrayField "),oa=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,m=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Ie(),w=(0,d.useState)(new Map),E=Z(w,1),k=E[0],$=(0,d.useContext)(kt),ie=A.getFullField(i),ne=$.getInitialValue(i)||o||[],ce=A.getSavedValue(ie)&&A.getSavedValue(ie).value,ge=Ge(ce||ne),ve=Z(ge,3),Se=ve[0],be=ve[1],Te=ve[2],$e=Se?Se.map(function(){return le()}):[],Ue=Ge($e),He=Z(Ue,3),Be=He[0],je=He[1],We=He[2],Xe=(0,d.useMemo)(function(){return function(Jt,Lt){var jt=We()==null?0:We().length;return s?s(Jt,jt,Lt):void 0}}),ze=Un(j({field:i,validate:s?Xe:void 0,shadow:!0},m)),qe=ze.fieldApi;ht(function(){var Jt=function(jt){jt!==ie&&(Qn("".concat(ie," changed")),RegExp("".concat(ie,"\\[[0-9]+\\]")).test(jt)&&qe.validate())};return A.emitter.on("value",Jt),function(){A.emitter.removeListener("value",Jt)}},[i]);var At=function(Lt){Qn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Lt,"] and ").concat(i,"[").concat(Be.length-1,"]")),$.expectRemoval("".concat(i,"[").concat(Lt,"]")),$.expectRemoval("".concat(i,"[").concat(Be.length-1,"]"));var jt=Be.slice(0,Lt).concat(Be.slice(Lt+1,Be.length));je(jt);var lr=Te(),an=lr.slice(0,Lt).concat(lr.slice(Lt+1,lr.length));be(an)},Ut=function(Lt,jt){Qn("Swapping","".concat(i,"[").concat(Lt,"] and ").concat(i,"[").concat(jt,"]"));var lr=J(Be);Be[Lt]&&Be[jt]?(lr[Lt]=Be[jt],lr[jt]=Be[Lt]):console.warn("Attempted to swap ".concat(Lt," with ").concat(jt," but one of them does not exist :(")),je(lr)},Ht=function(){Be.push(le()),je(J(Be))},sr=function(Lt){Be.push(le()),je(J(Be));var jt=J(Te());jt[Be.length-1]=Lt,be(jt)},Ir=function(){var Lt=$.getInitialValue(i)||o||[];be(Lt);var jt=Lt?Lt.map(function(){return le()}):[];je(jt)},Er=Be.map(function(Jt,Lt){var jt={remove:function(){return At(Lt)}},lr={initialValue:Se&&Se[Lt],key:Jt,field:"".concat(i,"[").concat(Lt,"]"),index:Lt};return j(j({arrayFieldItemApi:jt,arrayFieldItemState:lr},jt),lr)}),$r={add:Ht,swap:Ut,addWithInitialValue:sr,reset:Ir};p&&(p.current=$r);var wr={fields:Er,field:i},Nr=j(j({},$),{},{register:function(Lt,jt){k.set(Lt,jt);for(var lr=arguments.length,an=new Array(lr>2?lr-2:0),yr=2;yr<lr;yr++)an[yr-2]=arguments[yr];$.register.apply($,[Lt,jt].concat(an))},deregister:function(Lt){k.delete(Lt);for(var jt=arguments.length,lr=new Array(jt>1?jt-1:0),an=1;an<jt;an++)lr[an-1]=arguments[an];$.deregister.apply($,[Lt].concat(lr))},getInitialValue:function(Lt){if(RegExp("".concat(ie,"\\[[0-9]+\\]")).test(Lt)){var jt=Lt.replace(i,""),lr=dt.get(Te(),jt);return Qn("Resetting ".concat(jt," to ").concat(lr)),lr}return $.getInitialValue(Lt)}}),mn=function(Lt){return d.createElement(kt.Provider,{value:Nr},d.createElement(Tt.Provider,{value:$r},d.createElement(Vt.Provider,{value:wr},Lt)))};return{render:mn,add:Ht,swap:Ut,addWithInitialValue:sr,fields:Er,arrayFieldState:wr,arrayFieldApi:$r,field:i}},it=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 Bt(t){var r=Ie(),i=(0,d.useMemo)(function(){return it(t,r)},[t]);return i}function oi(){var t=(0,d.useContext)(Ct);return t}var ue=function(r){var i=r.when,o=r.children,s=oi(),p=i(s);return p?o:null},Ce=function(r){var i=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var m=p.getFullField(o),A={path:m,parentPath:m.replace(/(.*)[.[].*/,"$1"),get:function(k,$){return dt.get(k,$)}},w=function(k){var $=k.values;return i($,A)};return d.createElement(ue,{when:w},d.createElement(_e,D({field:o},s)))}else return d.createElement(_e,D({field:o},s))},_e=function(r){var i=r.children,o=C(r,["children"]),s=oa(o),p=s.render,m=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:m},A),m)):i)},ot=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),m=Ie(),A=(0,d.useState)(0),w=Z(A,2),E=w[0],k=w[1],$=(0,d.useState)(new Map),ie=Z($,1),ne=ie[0],ce=i.field,ge=Bt(ce),ve=function(){var Be=m.getState(),je=Be.values,We=Be.errors,Xe=Be.touched,ze={values:dt.get(je,ce),errors:dt.get(We,ce),touched:dt.get(Xe,ce)};return ze};(0,d.useEffect)(function(){var He=function(je){var We=je.slice(0,je.lastIndexOf("[")!=-1?je.lastIndexOf("]")+1:je.length);We===ce&&k(Math.random())};return m.emitter.on("value",He),function(){m.emitter.removeListener("value",He)}},[ce]);var Se=function(){ne.forEach(function(Be){Be.fieldApi.reset()})},be=ve(),Te=j(j({},p),{},{register:function(Be,je,We){ne.set(Be,je),p.register(Be,je,We)},deregister:function(Be){ne.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))}}),$e=j(j(j({},o),ge),{},{reset:Se}),Ue=j(j({},i),be);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Nt.Provider,{value:$e},d.createElement(he.Provider,{value:Ue},s(j(j({arrayFieldItemApi:$e,arrayFieldItemState:Ue},$e),Ue))))):d.createElement(kt.Provider,{value:Te},d.createElement(Nt.Provider,{value:$e},d.createElement(he.Provider,{value:Ue},s)))};Ce.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,m=s.arrayFieldItemApi,A=p.key;return d.createElement(ot,{key:A,arrayFieldItemApi:m,arrayFieldItemState:p},r)})};var st=function(r){var i=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return i?i.map(function(p,m){var A=p["ui:control"],w=s[A];return d.createElement(w,{key:"ui-comp-".concat(m)})}):null},Yt=Re("informed:FormFields "),Qt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),m=p.fieldMap,A=(0,d.useMemo)(function(){var w=z(i,s,o),E=w.map(function(k,$){var ie=k.field,ne=k.props,ce=k.type,ge=k.properties,ve=k.items,Se=k.componentType,be=k.uiBefore,Te=k.uiAfter,$e=k.allOf,Ue=m[Se];return Yt("Rendering Field",ie,k),!Ue&&ce==="object"&&ge?d.createElement(t,{schema:k,prefix:ie,key:"ScheamField-".concat($)}):!Ue&&ce==="array"&&ve?d.createElement(Cr,D({key:"ScheamField-".concat($),field:ie,items:ve,uiBefore:be,uiAfter:Te},ne)):Ue&&Se==="array"&&ve&&ce==="array"?d.createElement(Ue,D({key:"ScheamField-".concat($),field:ie,items:ve,uiBefore:be,uiAfter:Te},ne)):Se==="conditionals"?$e.map(function(He){var Be=He.then,je=He.if.properties,We=function(ze){var qe=ze.values;return Object.keys(je).every(function(At){var Ut=je[At];return qe[At]===Ut.const})};return d.createElement(ue,{key:"ScheamField-".concat($),when:We},d.createElement(t,{schema:Be}))}):Ue?d.createElement(Ue,D({key:"ScheamField-".concat($),field:ie},ne)):null});return E},[i,o]);return A},Cr=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,m=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Ce,D({field:i},m),d.createElement(st,{components:s}),d.createElement(Ce.Items,null,function(A){var w=A.field;return d.createElement(d.Fragment,null,d.createElement(st,{components:o["ui:before"]}),d.createElement(Qt,{schema:o,prefix:w}),d.createElement(st,{components:o["ui:after"]}))}),d.createElement(st,{components:p}))},Or={select:Pn,input:Yr,textarea:Tn,checkbox:Jr,radio:ai,add:wn,remove:Wn,array:Cr},qt=Re("informed:Controller "),Wl=function(r,i){var o=Object.keys(i).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},qr=function(){},ps=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 o=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Or,this.fieldsById=new Map,this.fieldsByName={get:function(A){var w;return r.fieldsById.forEach(function(E){E&&E.field===A&&(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:qr,setTouched:qr,setError:qr,reset:qr,validate:qr,getValue:qr,getTouched:qr,getError:qr,getFieldState:qr,checkRelevant:qr,getPristine:qr,getDirty:qr}},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(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(A);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 ie=$.fieldApi.checkRelevant();(!$.fieldApi.multistepRelevant(r.state.values)||!ie&&!$.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(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(A);!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(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(A);!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(m){delete r.state.error,r.notify(m)})}return g(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var m=this.subscriptions.get(i);m&&m.forEach(function(A){return A.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{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,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(qt("Submit",this.state),this.emit("submit")):(qt("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,o){dt.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return qt("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 o=this.getValues();return dt.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return qt("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return qt("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return qt("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return qt("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return qt("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return qt("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return qt("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return qt("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 o=this.fieldsByName.get(i);return o&&o.shadow?dt.get(this.savedValues,"shadow-".concat(i)):dt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.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){qt("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var m=".".concat(i),A="".concat(m.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(A);w&&(qt("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(o){var s=Z(o,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(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){qt("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){qt("Setting values"),this.fieldsById.forEach(function(o){var s=dt.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;qt("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Me(this.options.validationSchema,o);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=O(this.ajvValidate,o);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(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var m=this.options.validate(o);this.setFormError(m)}if(this.options.validateFields){var A=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(dt.has(A,w.field)){var E=dt.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){qt("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.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()?(qt("Submit",this.state),this.emit("submit")):(qt("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var p=o.field,m=o.state;qt("Register ID:",i,"Name:",p,m,"Initial",s);var A=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&&(o.keepState||o.inMultistep)?(qt("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),qt("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),qt("clearing expected removal",A),delete this.expectedRemovals[A],delete this.pulledOut[A],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;qt("Deregister",i,s),delete this.onScreen[i];var p=Wl(s,this.expectedRemovals),m=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(qt("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?dt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):dt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(qt("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),o.shadow?dt.delete(this.savedValues,"shadow-".concat(s)):dt.delete(this.savedValues,s)),p&&this.pulledOut[m]&&(qt("Pulling out",s,"with magic value",m),dt.pullOut(this.state.values,m),dt.pullOut(this.state.touched,m),dt.pullOut(this.state.errors,m),dt.pullOut(this.savedValues,m),delete this.pulledOut[m])),this.emit("change")}},{key:"expectRemoval",value:function(i){qt("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){qt("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),m=o.fieldApi.getError(),A=o.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,o.field,p),dt.set(this.state.errors,o.field,m),dt.set(this.state.touched,o.field,A),this.emit("change")}}]),t}(),go=Re("informed:FormProvider "),hs=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,m=C(r,["children","formApi","formController","formState"]);if(go("Render FormProvider"),o)return go("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Wt.Provider,{value:o},d.createElement(Ct.Provider,{value:p},i)));go("Render FormProvider with generated values");var A=gs(m);return d.createElement(kt.Provider,{value:A.formController.updater},d.createElement(Wt.Provider,{value:A.formApi},d.createElement(Ct.Provider,{value:A.formState},i)))},vs=Re("informed:useForm "),gs=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,m=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,k=r.onChange,$=r.onReset,ie=r.onSubmit,ne=r.onValueChange,ce=r.onSubmitFailure,ge=r.validationSchema,ve=r.schema,Se=r.ajv,be=r.fieldMap,Te=r.onlyValidateSchema,$e=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);vs("Render useForm");var Ue=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:m,preventEnter:A,validationSchema:ge,schema:ve,ajv:Se,fieldMap:be}},[i,o,s,p,m,A,ge,ve,Se,be]),He=(0,d.useState)(function(){return new ps(Ue)}),Be=Z(He,1),je=Be[0];(0,d.useEffect)(function(){je.setOptions(Ue)},[Ue]),ht(function(){je.mount()},[]);var We=(0,d.useState)(function(){return je.getFormState()}),Xe=Z(We,2),ze=Xe[0],qe=Xe[1];ht(function(){var Ir=function(){return k&&k(je.getFormState())},Er=function(){return $&&$()},$r=function(){return ie&&ie(je.getFormState().values)},wr=function(){return ne&&ne(je.getFormState().values)},Nr=function(){return ce&&ce(je.getFormState().errors)};return je.on("change",Ir),je.on("reset",Er),je.on("submit",$r),je.on("value",wr),je.on("failure",Nr),function(){je.removeListener("change",Ir),je.removeListener("reset",Er),je.removeListener("submit",$r),je.removeListener("value",wr),je.removeListener("failure",Nr)}},[k,$,ie,ne,ce]),(0,d.useState)(function(){var Ir=function(){vs("Setting form state"),qe(je.getFormState())};je.on("change",Ir),w&&w(je.getFormApi()),E&&(E.current=je.getFormApi())});var At=(0,d.useState)(function(){return je.getFormApi()}),Ut=Z(At,1),Ht=Ut[0],sr=function(Er){return d.createElement(hs,{formApi:Ht,formState:ze,formController:je},d.createElement(d.Fragment,null,Er||d.createElement(Qt,{schema:ve,onlyValidateSchema:Te})))};return{formApi:Ht,formState:ze,formController:je,render:sr,userProps:$e}},Hl=Re("informed:Form "),zl=function(r){var i=r.children,o=r.render,s=r.component,p=C(r,["children","render","component"]);Hl("Render FORM");var m=gs(p),A=m.formApi,w=m.formController,E=m.formState,k=m.render,$=m.userProps,ie=function(){var ce={formState:E,formApi:A};return s?d.createElement(s,ce,i):o?o(ce):typeof i=="function"?i(ce):i};return k(d.createElement("form",D({},$,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ie()))},Mf=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)}})},Lf=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,m=i.setTouched,A=i.setError,w=i.update,E=i.getField,k=i.expectRemoval,$=i.getInitialValue,ie=i.fieldMap,ne=i.getSavedValue;return{register:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return o.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},deregister:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return s.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},update:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return w.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setValue:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return p.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setTouched:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return m.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},setError:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return A.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getField:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return E.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},expectRemoval:function(ge){for(var ve=arguments.length,Se=new Array(ve>1?ve-1:0),be=1;be<ve;be++)Se[be-1]=arguments[be];return k.apply(void 0,["".concat(r,".").concat(ge)].concat(Se))},getInitialValue:function(ge){return $("".concat(r,".").concat(ge))},getSavedValue:function(ge){return ne("".concat(r,".").concat(ge))},fieldMap:ie}},Df=function(r){var i=r.scope,o=r.children,s=useContext(kt),p=Ie(),m=oi(),A=useMemo(function(){return Mf(i,p)},[i]),w=useMemo(function(){return Lf(i,s)},[i]);return React.createElement(kt.Provider,{value:w},React.createElement(Wt.Provider,{value:A},React.createElement(Ct.Provider,{value:m},o)))},Ai=function(r){var i=oi(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(ne){o[ne]=i[ne]}):o=i;var s=o,p=s.pristine,m=s.dirty,A=s.invalid,w=s.values,E=s.errors,k=s.touched,$=s.validating,ie=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:m,invalid:A,values:w,errors:E,touched:k,validating:$,submitting:ie},null,2)))},Nf=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,m=s.validate,A=s.screenValid,w=(0,d.useState)(new Map),E=Z(w,1),k=E[0],$=(0,d.useRef)(0),ie=Ge({current:i,steps:[],goal:null}),ne=Z(ie,3),ce=ne[0],ge=ne[1],ve=ne[2],Se=(0,d.useState)(function(){var Ue=function(){var je=ve(),We=je.current,Xe=k.get(We);return Xe},He={getState:function(){return ve()},getCurrentStep:Ue,getStep:function(je){return k.get(je)},getNumberOfSteps:function(){return k.size},next:function(){if(m(),A()){var je=Ue(),We=je.getNext,Xe=We(),ze=typeof Xe=="function"?Xe(p()):Xe;ze&&ge(function(qe){return j(j({},qe),{},{current:ze})})}},back:function(){var je=Ue(),We=je.getPrevious,Xe=We(),ze=typeof Xe=="function"?Xe(p()):Xe;ze&&ge(function(qe){return j(j({},qe),{},{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 o&&(o.current=He),He}),be=Z(Se,1),Te=be[0],$e=function(He){return d.createElement(K.Provider,{value:Te},d.createElement(G.Provider,{value:ce},He))};return j(j(j({},Te),ce),{},{render:$e})};function Bf(){return(0,d.useContext)(G)}function yo(){return(0,d.useContext)(K)}var Oa=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,m=oi(),A=m.values,w=Bf(),E=w.current,k=w.goal,$=yo(),ie=$.register,ne=$.deregister,ce=$.next,ge=i===E,ve=p?p(A):!0,Se=(0,d.useRef)(o),be=(0,d.useRef)(s),Te=(0,d.useRef)();Se.current=o,be.current=s,Te.current=p,(0,d.useState)(function(){ie(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return be.current}},!0)}),(0,d.useEffect)(function(){return ie(i,{name:i,getNext:function(){return Se.current},getPrevious:function(){return be.current}}),function(){ne(i)}},[i]),(0,d.useEffect)(function(){k&&ge&&k!==i&&ce()},[k,ge]);var $e=function(He){return d.createElement(we.Provider,{value:{relevant:function(je){return Te.current?Te.current(je):!0},multistep:!0}},ge&&ve?He:null)};return{isCurrent:ge,isRelevant:ve,step:i,render:$e}};function Uf(t){var r=t.children,i=C(t,["children"]),o=Nf(i),s=o.render,p=C(o,["render"]);return s(typeof r=="function"?r(p):r)}Uf.Step=function(r){var i=r.children,o=C(r,["children"]),s=Oa(o),p=s.render;return p(i)};var Pd=function(r){var i=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),m=p.getFullField,A=p.getOptions,w=m(i),E=A(),k=E.schema,$=oe(w),ie=dt.get(k,$);if(!ie)return null;var ne=re(i,ie),ce=ne.props,ge=ne.componentType,ve=s[ge];return React.createElement(ve,D({field:i},ce))},Id=function(){var r=Ie(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Qt,{schema:s})},Fd=function(r){return React.forwardRef(function(i,o){return React.createElement(Wt.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:o},i))})})},Gl=function(r){return React.forwardRef(function(i,o){return React.createElement(Ct.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:o},i))})})},$l=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 Kl(t){var r=Ie(),i=useMemo(function(){return $l(r,t)},[t]);return i}function Yl(t){var r=Kl(t),i=Ie(),o=React.useState(),s=Z(o,2),p=s[1],m=React.useCallback(function(){return p({})},[]);return ht(function(){var A=function(E){E===t&&m()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),ht(function(){m()},[]),r.getFieldState()||{}}var jf=function(r){return function(i){return function(o){var s=Yl(r);return React.createElement(i,D({fieldState:s},o))}}},ys=function(r){return function(i){return function(o){var s=Kl(r);return React.createElement(i,D({fieldApi:s},o))}}},ms=function(r){var i=r.value,o=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:o,value:i,key:i},p),s)},Jl=null,Ta=a(80150),xs=a(89356),Bi=a(63263),Vf=a(30699),mo=a(58377),Hn=a(28834),Xl=a(13038),Wf=a(32752),Pa=a(44341);function bs(t,r,i){return r in t?Pa(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function si(t,r){var i=xs(t);if(Bi){var o=Bi(t);r&&(o=Vf(o).call(o,function(s){return mo(t,s).enumerable})),i.push.apply(i,o)}return i}function cr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Hn(o=si(Object(i),!0)).call(o,function(p){bs(t,p,i[p])})}else if(Xl)Wf(t,Xl(i));else{var s;Hn(s=si(Object(i))).call(s,function(p){Pa(t,p,mo(i,p))})}}return t}var li=a(28583),Ui=a.n(li),ws=a(10240),ji=a.n(ws),Ei=a(8575),Vi=a(51446),Ss=a(19996),As=a(78363),Ql=a(95238),Es=a(53592);function Cs(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function Os(t,r){var i;if(!!t){if(typeof t=="string")return Cs(t,r);var o=Ql(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Es(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Cs(t,r)}}function Wi(t,r){var i=typeof Vi!="undefined"&&Ss(t)||t["@@iterator"];if(!i){if(As(t)||(i=Os(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
81
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,m=!1,A;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){m=!0,A=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(m)throw A}}}}var Hf=a(23882);function ar(t){return typeof Vi=="function"&&typeof Hf=="symbol"?ar=function(i){return typeof i}:ar=function(i){return i&&typeof Vi=="function"&&i.constructor===Vi&&i!==Vi.prototype?"symbol":typeof i},ar(t)}function zf(t){if(As(t))return t}function Zl(t,r){var i=t&&(typeof Vi!="undefined"&&Ss(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,p=!1,m,A;try{for(i=i.call(t);!(s=(m=i.next()).done)&&(o.push(m.value),!(r&&o.length===r));s=!0);}catch(w){p=!0,A=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw A}}return o}}function xo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function en(t,r){return zf(t)||Zl(t,r)||Os(t,r)||xo()}var _l=a(69798);function ql(t,r,i,o,s,p,m){try{var A=t[p](m),w=A.value}catch(E){i(E);return}A.done?r(w):_l.resolve(w).then(o,s)}function Ts(t){return function(){var r=this,i=arguments;return new _l(function(o,s){var p=t.apply(r,i);function m(w){ql(p,o,s,m,A,"next",w)}function A(w){ql(p,o,s,m,A,"throw",w)}m(void 0)})}}var Ia=a(63109),or=a.n(Ia),Gf=a(78580),bo=a.n(Gf),Fa=a(72119),eu=a.n(Fa),tu=a(66419),$f=a.n(tu),Ps=a(59340),ka=a.n(Ps),Kf=a(2991),er=a.n(Kf),ru=a(86902),Zt=a.n(ru),Yf=a(77766),Et=a.n(Yf),ui=a(26295),Ra=a.n(ui),Is=a(20116),un=a.n(Is),fi=a(31905),Hi=a(92495),Ma=a.n(Hi),Jf=a(93320),Fs=a.n(Jf),Xf=a(78718),wo=a.n(Xf),ks=a(23560),Zn=a.n(ks),zn=a(88996);function So(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Rs(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Pa(t,o.key,o)}}function Ms(t,r,i){return r&&Rs(t.prototype,r),i&&Rs(t,i),t}var nu=a(83863),iu=a(79542),Ls=a(24889);function zi(t){return zi=iu?Ls:function(i){return i.__proto__||Ls(i)},zi(t)}function La(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=zi(t),t!==null););return t}function Da(t,r,i){return typeof Reflect!="undefined"&&nu?Da=nu:Da=function(s,p,m){var A=La(s,p);if(!!A){var w=mo(A,p);return w.get?w.get.call(m):w.value}},Da(t,r,i||t)}var au=a(189);function Na(t,r){return Na=iu||function(o,s){return o.__proto__=s,o},Na(t,r)}function Ao(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=au(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Na(t,r)}var Ba=a(13535);function Eo(){if(typeof Reflect=="undefined"||!Ba||Ba.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Ba(Boolean,[],function(){})),!0}catch(t){return!1}}function Gn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ou(t,r){return r&&(ar(r)==="object"||typeof r=="function")?r:Gn(t)}function Ds(t){var r=Eo();return function(){var o=zi(t),s;if(r){var p=zi(this).constructor;s=Ba(o,arguments,p)}else s=o.apply(this,arguments);return ou(this,s)}}var Ns=a(94473),su=a.n(Ns),lu=a(57514),Bs=a.n(lu),Qf=function(r){var i=function(p,m){return{name:p,value:m}};if(Zn()(r.prototype.set)||Zn()(r.prototype.get)||Zn()(r.prototype.getAll)||Zn()(r.prototype.has))return r;var o=function(s){Ao(m,s);var p=Ds(m);function m(A){var w;return So(this,m),w=p.call(this,A),w.entryList=[],w}return Ms(m,[{key:"append",value:function(w,E,k){return this.entryList.push(i(w,E)),Da(zi(m.prototype),"append",this).call(this,w,E,k)}},{key:"set",value:function(w,E){var k,$=i(w,E);this.entryList=un()(k=this.entryList).call(k,function(ie){return ie.name!==w}),this.entryList.push($)}},{key:"get",value:function(w){var E,k=su()(E=this.entryList).call(E,function($){return $.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var E,k;return er()(E=un()(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})}}]),m}(r);return o};const Zf=Qf(Bs());function _f(t){if(As(t))return Cs(t)}function Gi(t){if(typeof Vi!="undefined"&&Ss(t)!=null||t["@@iterator"]!=null)return Es(t)}function sa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(t){return _f(t)||Gi(t)||Os(t)||sa()}var Us=a(3649),Fn=a.n(Us),uu=a(88996),js=uu.Buffer,$i=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Ki=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Fr(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):er()(r=In(t)).call(r,function(p){var m,A;if(Ki(p)||$i(p)&&o==="unsafe")return p;var w=er()(m=er()(A=js.from(p).toJSON().data||[]).call(A,function(E){var k;return Fn()(k="0".concat(E.toString(16).toUpperCase())).call(k,-2)})).call(m,function(E){return"%".concat(E)}).join("");return w}).join("")}function _n(t){var r=t.value;return Array.isArray(r)?Ci(t):ar(r)==="object"?Co(t):qf(t)}function Ci(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,m=function($){return Fr($,{escape:p})};if(o==="simple")return er()(i).call(i,function(k){return m(k)}).join(",");if(o==="label")return".".concat(er()(i).call(i,function(k){return m(k)}).join("."));if(o==="matrix")return er()(i).call(i,function(k){return m(k)}).reduce(function(k,$){var ie;if(!k||s){var ne,ce;return Et()(ne=Et()(ce="".concat(k||"",";")).call(ce,r,"=")).call(ne,$)}return Et()(ie="".concat(k,",")).call(ie,$)},"");if(o==="form"){var A=s?"&".concat(r,"="):",";return er()(i).call(i,function(k){return m(k)}).join(A)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return er()(i).call(i,function(k){return m(k)}).join(" ".concat(w))}if(o==="pipeDelimited"){var E=s?"".concat(r,"="):"";return er()(i).call(i,function(k){return m(k)}).join("|".concat(E))}}function Co(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,m=function(E){return Fr(E,{escape:p})},A=Zt()(i);if(o==="simple")return A.reduce(function(w,E){var k,$,ie,ne=m(i[E]),ce=s?"=":",",ge=w?"".concat(w,","):"";return Et()(k=Et()($=Et()(ie="".concat(ge)).call(ie,E)).call($,ce)).call(k,ne)},"");if(o==="label")return A.reduce(function(w,E){var k,$,ie,ne=m(i[E]),ce=s?"=":".",ge=w?"".concat(w,"."):".";return Et()(k=Et()($=Et()(ie="".concat(ge)).call(ie,E)).call($,ce)).call(k,ne)},"");if(o==="matrix"&&s)return A.reduce(function(w,E){var k,$,ie=m(i[E]),ne=w?"".concat(w,";"):";";return Et()(k=Et()($="".concat(ne)).call($,E,"=")).call(k,ie)},"");if(o==="matrix")return A.reduce(function(w,E){var k,$,ie=m(i[E]),ne=w?"".concat(w,","):";".concat(r,"=");return Et()(k=Et()($="".concat(ne)).call($,E,",")).call(k,ie)},"");if(o==="form")return A.reduce(function(w,E){var k,$,ie,ne,ce=m(i[E]),ge=w?Et()(k="".concat(w)).call(k,s?"&":","):"",ve=s?"=":",";return Et()($=Et()(ie=Et()(ne="".concat(ge)).call(ne,E)).call(ie,ve)).call($,ce)},"")}function qf(t){var r=t.key,i=t.value,o=t.style,s=t.escape,p=function(w){return Fr(w,{escape:s})};if(o==="simple")return p(i);if(o==="label")return".".concat(p(i));if(o==="matrix"){var m;return Et()(m=";".concat(r,"=")).call(m,p(i))}if(o==="form")return p(i);if(o==="deepObject")return p(i,{},!0)}var Oo={serializeRes:fu,mergeInQueryOrForm:du};function Oi(t){return To.apply(this,arguments)}function To(){return To=Ts(or().mark(function t(r){var i,o,s,p,m,A=arguments;return or().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},ar(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Oo.mergeInQueryOrForm(i),i.headers&&Zt()(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 o=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(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,Oo.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 m=new Error(s.statusText),m.status=s.status,m.statusCode=s.status,m.response=s,m;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),To.apply(this,arguments)}var Vs=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Po(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Fs().safeLoad(t)}function fu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.loadSpec,s=o===void 0?!1:o,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:Hs(t.headers)},m=p.headers["content-type"],A=s||Vs(m),w=A?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,A)try{var k=Po(E,m);p.body=k,p.obj=k}catch($){p.parseError=$}return p})}function Ws(t){var r=bo()(t).call(t,", ");return r?t.split(", "):t}function Hs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Zn()(eu()(t))?$f()(eu()(t).call(t)).reduce(function(r,i){var o=en(i,2),s=o[0],p=o[1];return r[s]=Ws(p),r},{}):{}}function Ua(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&ar(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof zn.Buffer!="undefined"&&t instanceof zn.Buffer?!0:t!==null&&ar(t)==="object"&&typeof t.pipe=="function"}function Io(t,r){return Array.isArray(t)&&t.some(function(i){return Ua(i,r)})}var la={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Fo={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function zs(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,m=r.encoding,A=ar(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function($){return $.toString()}:function($){return encodeURIComponent($)},E=w(t);if(typeof A=="undefined"&&s)return[[E,""]];if(Ua(A)||Io(A))return[[E,A]];if(p)return ja(t,A,i,p);if(m){if([ar(m.style),ar(m.explode),ar(m.allowReserved)].some(function($){return $!=="undefined"}))return ja(t,A,i,wo()(m,["style","explode","allowReserved"]));if(m.contentType){if(m.contentType==="application/json"){var k=typeof A=="string"?A:ka()(A);return[[E,w(k)]]}return[[E,w(A.toString())]]}return ar(A)!=="object"?[[E,w(A)]]:Array.isArray(A)&&A.every(function($){return ar($)!=="object"})?[[E,er()(A).call(A,w).join(",")]]:[[E,w(ka()(A))]]}return ar(A)!=="object"?[[E,w(A)]]:Array.isArray(A)?o==="multi"?[[E,er()(A).call(A,w)]]:[[E,er()(A).call(A,w).join(Fo[o||"csv"])]]:[[E,""]]}function ja(t,r,i,o){var s,p=o.style||"form",m=typeof o.explode=="undefined"?p==="form":o.explode,A=i?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(ne){return Fr(ne,{escape:A})},E=i?function(ie){return ie}:function(ie){return Fr(ie,{escape:A})};if(ar(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return m?[[E(t),er()(r).call(r,w)]]:[[E(t),er()(r).call(r,w).join(la[p])]];if(p==="deepObject"){var k;return er()(k=Zt()(r)).call(k,function(ie){var ne;return[E(Et()(ne="".concat(t,"[")).call(ne,ie,"]")),w(r[ie])]})}if(m){var $;return er()($=Zt()(r)).call($,function(ie){return[E(ie),w(r[ie])]})}return[[E(t),er()(s=Zt()(r)).call(s,function(ie){var ne;return[Et()(ne="".concat(E(ie),",")).call(ne,w(r[ie]))]}).join(",")]]}function ec(t){return Ra()(t).reduce(function(r,i){var o=en(i,2),s=o[0],p=o[1],m=Wi(zs(s,p,!0)),A;try{for(m.s();!(A=m.n()).done;){var w=en(A.value,2),E=w[0],k=w[1];if(Array.isArray(k)){var $=Wi(k),ie;try{for($.s();!(ie=$.n()).done;){var ne=ie.value;r.append(E,ne)}}catch(ce){$.e(ce)}finally{$.f()}}else r.append(E,k)}}catch(ce){m.e(ce)}finally{m.f()}return r},new Zf)}function cu(t){var r=Zt()(t).reduce(function(i,o){var s=Wi(zs(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var m=en(p.value,2),A=m[0],w=m[1];i[A]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Ma().stringify(r,{encode:!1,indices:!1})||""}function du(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,o=t.query,s=t.form,p=function(){for(var Se=arguments.length,be=new Array(Se),Te=0;Te<Se;Te++)be[Te]=arguments[Te];var $e=un()(be).call(be,function(Ue){return Ue}).join("&");return $e?"?".concat($e):""};if(s){var m=Zt()(s).some(function(ve){var Se=s[ve].value;return Ua(Se)||Io(Se)}),A=t.headers["content-type"]||t.headers["Content-Type"];m||/multipart\/form-data/i.test(A)?t.body=ec(t.form):t.body=cu(s),delete t.form}if(o){var w=i.split("?"),E=en(w,2),k=E[0],$=E[1],ie="";if($){var ne=Ma().parse($),ce=Zt()(o);ce.forEach(function(ve){return delete ne[ve]}),ie=Ma().stringify(ne,{encode:!0})}var ge=p(ie,cu(o));t.url=k+ge,delete t.query}return t}function Gs(t,r,i){return i=i||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),Oo.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var $s=a(51942),tn=a.n($s),Va=a(93476),Yi=a.n(Va),ko=a(92762),pu=a.n(ko),Wa=a(13311),hu=a.n(Wa),Ji=a(50308),ua=a.n(Ji);/*!
84
84
  * https://github.com/Starcounter-Jack/JSON-Patch
85
85
  * (c) 2017 Joachim Wester
86
86
  * MIT license
87
- */var Zi=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ha=Object.prototype.hasOwnProperty;function di(t,r){return Ha.call(t,r)}function Ro(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 o in t)di(t,o)&&i.push(o);return i}function hn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Mo(t){for(var r=0,i=t.length,o;r<i;){if(o=t.charCodeAt(r),o>=48&&o<=57){r++;continue}return!1}return!0}function pi(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ii(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Fi(t,r){var i;for(var o in t)if(di(t,o)){if(t[o]===r)return pi(o)+"/";if(typeof t[o]=="object"&&(i=Fi(t[o],r),i!=""))return pi(o)+"/"+i}return""}function Fd(t,r){if(t===r)return"/";var i=Fi(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Ys(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Ys(t[r]))return!0}else if(typeof t=="object"){for(var o=Ro(t),s=o.length,r=0;r<s;r++)if(Ys(t[o[r]]))return!0}}return!1}function hu(t,r){var i=[t];for(var o in r){var s=typeof r[o]=="object"?JSON.stringify(r[o],null,2):r[o];typeof s!="undefined"&&i.push(o+": "+s)}return i.join(`
88
- `)}var vu=function(t){Zi(r,t);function r(i,o,s,p,m){var S=this.constructor,w=t.call(this,hu(i,{name:o,index:s,operation:p,tree:m}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=m,Object.setPrototypeOf(w,S.prototype),w.message=hu(i,{name:o,index:s,operation:p,tree:m}),w}return r}(Error),Or=vu,ec=hn,Dr={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var o=t[r];return delete t[r],{newDocument:i,removed:o}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:function(t,r,i){var o=kr(i,this.path);o&&(o=hn(o));var s=dr(i,{op:"remove",path:this.from}).removed;return dr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:o}},copy:function(t,r,i){var o=kr(i,this.from);return dr(i,{op:"add",path:this.path,value:hn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:za(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},Nr={add:function(t,r,i){return Mo(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var o=t.splice(r,1);return{newDocument:i,removed:o[0]}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:Dr.move,copy:Dr.copy,test:Dr.test,_get:Dr._get};function kr(t,r){if(r=="")return t;var i={op:"_get",path:r};return dr(t,i),i.value}function dr(t,r,i,o,s,p){if(i===void 0&&(i=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):_i(r,0)),r.path===""){var m={newDocument:t};if(r.op==="add")return m.newDocument=r.value,m;if(r.op==="replace")return m.newDocument=r.value,m.removed=t,m;if(r.op==="move"||r.op==="copy")return m.newDocument=kr(t,r.from),r.op==="move"&&(m.removed=t),m;if(r.op==="test"){if(m.test=za(t,r.value),m.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m.newDocument=t,m}else{if(r.op==="remove")return m.removed=t,m.newDocument=null,m;if(r.op==="_get")return r.value=t,m;if(i)throw new Or("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return m}}else{o||(t=hn(t));var S=r.path||"",w=S.split("/"),E=t,k=1,$=w.length,oe=void 0,te=void 0,ce=void 0;for(typeof i=="function"?ce=i:ce=_i;;){if(te=w[k],s&&te=="__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&&oe===void 0&&(E[te]===void 0?oe=w.slice(0,k).join("/"):k==$-1&&(oe=r.path),oe!==void 0&&ce(r,0,t,oe)),k++,Array.isArray(E)){if(te==="-")te=E.length;else{if(i&&!Mo(te))throw new Or("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);Mo(te)&&(te=~~te)}if(k>=$){if(i&&r.op==="add"&&te>E.length)throw new Or("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var m=Nr[r.op].call(r,E,te,t);if(m.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}}else if(te&&te.indexOf("~")!=-1&&(te=Ii(te)),k>=$){var m=Dr[r.op].call(r,E,te,t);if(m.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}E=E[te]}}}function Gn(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Or("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=hn(t));for(var p=new Array(r.length),m=0,S=r.length;m<S;m++)p[m]=dr(t,r[m],i,!0,s,m),t=p[m].newDocument;return p.newDocument=t,p}function tc(t,r,i){var o=dr(t,r);if(o.test===!1)throw new Or("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function _i(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Or("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(Dr[t.op]){if(typeof t.path!="string")throw new Or("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Or('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 Or("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 Or("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")&&Ys(t.value))throw new Or("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=o.split("/").length;if(s!==p+1&&s!==p)throw new Or("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!==o)throw new Or("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 m={op:"_get",path:t.from,value:void 0},S=gu([m],i);if(S&&S.name==="OPERATION_PATH_UNRESOLVABLE")throw new Or("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Or("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function gu(t,r,i){try{if(!Array.isArray(t))throw new Or("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Gn(hn(r),hn(t),i||!0);else{i=i||_i;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Or)return s;throw s}}function za(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),o=Array.isArray(r),s,p,m;if(i&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!za(t[s],r[s]))return!1;return!0}if(i!=o)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(m=S[s],!za(t[m],r[m]))return!1;return!0}return t!==t&&r!==r}/*!
87
+ */var Xi=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ha=Object.prototype.hasOwnProperty;function ci(t,r){return Ha.call(t,r)}function Ro(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 o in t)ci(t,o)&&i.push(o);return i}function pn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Mo(t){for(var r=0,i=t.length,o;r<i;){if(o=t.charCodeAt(r),o>=48&&o<=57){r++;continue}return!1}return!0}function di(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ti(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Pi(t,r){var i;for(var o in t)if(ci(t,o)){if(t[o]===r)return di(o)+"/";if(typeof t[o]=="object"&&(i=Pi(t[o],r),i!=""))return di(o)+"/"+i}return""}function kd(t,r){if(t===r)return"/";var i=Pi(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Ks(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Ks(t[r]))return!0}else if(typeof t=="object"){for(var o=Ro(t),s=o.length,r=0;r<s;r++)if(Ks(t[o[r]]))return!0}}return!1}function vu(t,r){var i=[t];for(var o in r){var s=typeof r[o]=="object"?JSON.stringify(r[o],null,2):r[o];typeof s!="undefined"&&i.push(o+": "+s)}return i.join(`
88
+ `)}var gu=function(t){Xi(r,t);function r(i,o,s,p,m){var A=this.constructor,w=t.call(this,vu(i,{name:o,index:s,operation:p,tree:m}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=m,Object.setPrototypeOf(w,A.prototype),w.message=vu(i,{name:o,index:s,operation:p,tree:m}),w}return r}(Error),Tr=gu,tc=pn,Br={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var o=t[r];return delete t[r],{newDocument:i,removed:o}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:function(t,r,i){var o=kr(i,this.path);o&&(o=pn(o));var s=pr(i,{op:"remove",path:this.from}).removed;return pr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:o}},copy:function(t,r,i){var o=kr(i,this.from);return pr(i,{op:"add",path:this.path,value:pn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:za(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},Ur={add:function(t,r,i){return Mo(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var o=t.splice(r,1);return{newDocument:i,removed:o[0]}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:Br.move,copy:Br.copy,test:Br.test,_get:Br._get};function kr(t,r){if(r=="")return t;var i={op:"_get",path:r};return pr(t,i),i.value}function pr(t,r,i,o,s,p){if(i===void 0&&(i=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):Qi(r,0)),r.path===""){var m={newDocument:t};if(r.op==="add")return m.newDocument=r.value,m;if(r.op==="replace")return m.newDocument=r.value,m.removed=t,m;if(r.op==="move"||r.op==="copy")return m.newDocument=kr(t,r.from),r.op==="move"&&(m.removed=t),m;if(r.op==="test"){if(m.test=za(t,r.value),m.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m.newDocument=t,m}else{if(r.op==="remove")return m.removed=t,m.newDocument=null,m;if(r.op==="_get")return r.value=t,m;if(i)throw new Tr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return m}}else{o||(t=pn(t));var A=r.path||"",w=A.split("/"),E=t,k=1,$=w.length,ie=void 0,ne=void 0,ce=void 0;for(typeof i=="function"?ce=i:ce=Qi;;){if(ne=w[k],s&&ne=="__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&&ie===void 0&&(E[ne]===void 0?ie=w.slice(0,k).join("/"):k==$-1&&(ie=r.path),ie!==void 0&&ce(r,0,t,ie)),k++,Array.isArray(E)){if(ne==="-")ne=E.length;else{if(i&&!Mo(ne))throw new Tr("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);Mo(ne)&&(ne=~~ne)}if(k>=$){if(i&&r.op==="add"&&ne>E.length)throw new Tr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var m=Ur[r.op].call(r,E,ne,t);if(m.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}}else if(ne&&ne.indexOf("~")!=-1&&(ne=Ti(ne)),k>=$){var m=Br[r.op].call(r,E,ne,t);if(m.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return m}E=E[ne]}}}function $n(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Tr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=pn(t));for(var p=new Array(r.length),m=0,A=r.length;m<A;m++)p[m]=pr(t,r[m],i,!0,s,m),t=p[m].newDocument;return p.newDocument=t,p}function rc(t,r,i){var o=pr(t,r);if(o.test===!1)throw new Tr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function Qi(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Tr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(Br[t.op]){if(typeof t.path!="string")throw new Tr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Tr('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 Tr("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 Tr("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")&&Ks(t.value))throw new Tr("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=o.split("/").length;if(s!==p+1&&s!==p)throw new Tr("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!==o)throw new Tr("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 m={op:"_get",path:t.from,value:void 0},A=yu([m],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Tr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Tr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function yu(t,r,i){try{if(!Array.isArray(t))throw new Tr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)$n(pn(r),pn(t),i||!0);else{i=i||Qi;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Tr)return s;throw s}}function za(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),o=Array.isArray(r),s,p,m;if(i&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!za(t[s],r[s]))return!1;return!0}if(i!=o)return!1;var A=Object.keys(t);if(p=A.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(A[s]))return!1;for(s=p;s--!=0;)if(m=A[s],!za(t[m],r[m]))return!1;return!0}return t!==t&&r!==r}/*!
89
89
  * https://github.com/Starcounter-Jack/JSON-Patch
90
90
  * (c) 2017 Joachim Wester
91
91
  * MIT license
92
- */var Js=new WeakMap,Xs=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),yu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function Qs(t){return Js.get(t)}function rc(t,r){return t.observers.get(r)}function Zs(t,r){t.observers.delete(r.callback)}function _s(t,r){r.unobserve()}function mu(t,r){var i=[],o,s=Qs(t);if(!s)s=new Xs(t),Js.set(t,s);else{var p=rc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=hn(t),r){o.callback=r,o.next=null;var m=function(){Lo(o)},S=function(){clearTimeout(o.next),o.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",S),window.addEventListener("keyup",S),window.addEventListener("mousedown",S),window.addEventListener("keydown",S),window.addEventListener("change",S))}return o.patches=i,o.object=t,o.unobserve=function(){Lo(o),clearTimeout(o.next),Zs(s,o),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 yu(r,o)),o}function Lo(t,r){r===void 0&&(r=!1);var i=Js.get(t.object);Ga(i.value,t.object,t.patches,"",r),t.patches.length&&Gn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ga(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Ro(r),m=Ro(t),S=!1,w=!1,E=m.length-1;E>=0;E--){var k=m[E],$=t[k];if(di(r,k)&&!(r[k]===void 0&&$!==void 0&&Array.isArray(r)===!1)){var oe=r[k];typeof $=="object"&&$!=null&&typeof oe=="object"&&oe!=null?Ga($,oe,i,o+"/"+pi(k),s):$!==oe&&(S=!0,s&&i.push({op:"test",path:o+"/"+pi(k),value:hn($)}),i.push({op:"replace",path:o+"/"+pi(k),value:hn(oe)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+pi(k),value:hn($)}),i.push({op:"remove",path:o+"/"+pi(k)}),w=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),S=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var k=p[E];!di(t,k)&&r[k]!==void 0&&i.push({op:"add",path:o+"/"+pi(k),value:hn(r[k])})}}}function xu(t,r,i){i===void 0&&(i=!1);var o=[];return Ga(t,r,o,"",i),o}const Do=Object.assign({},c,v,{JsonPatchError:vu,deepClone:hn,escapePathComponent:pi,unescapePathComponent:Ii});var nc=a(31312),No=a.n(nc),hi=a(50361),bu=a.n(hi);const nr={add:tr,replace:Sn,remove:ki,merge:Ri,mergeDeep:Su,context:qs,getIn:Mi,applyPatch:wu,parentPathMatch:el,flatten:$a,fullyNormalizeArray:Eu,normalizeArray:tl,isPromise:Cu,forEachNew:Au,forEachNewPrimitive:ic,isJsonPatch:Pu,isContextPatch:oc,isPatch:jo,isMutation:Ya,isAdditiveMutation:Ja,isGenerator:ac,isFunction:Ou,isObject:qn,isError:Tu};function wu(t,r,i){if(i=i||{},r=cr(cr({},r),{},{path:r.path&&vn(r.path)}),r.op==="merge"){var o=Vo(t,r.path);rn()(o,r.value),Gn(t,[Sn(r.path,o)])}else if(r.op==="mergeDeep"){var s=Vo(t,r.path);for(var p in r.value){var m=r.value[p],S=Array.isArray(m);if(S){var w=s[p]||[];s[p]=Et()(w).call(w,m)}else if(qn(m)&&!S){var E=cr({},s[p]);for(var k in m)if(Object.prototype.hasOwnProperty.call(E,k)){E=No()(bu()(E),m);break}else rn()(E,ws({},k,m[k]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&qn(r.value)){var $=Zt()(r.value).reduce(function(ve,Se){return ve.push({op:"add",path:"/".concat(vn(Se)),value:r.value[Se]}),ve},[]);Gn(t,$)}else if(r.op==="replace"&&r.path===""){var oe=r,te=oe.value;i.allowMetaPatches&&r.meta&&Ja(r)&&(Array.isArray(r.value)||qn(r.value))&&(te=cr(cr({},te),r.meta)),t=te}else if(Gn(t,[r]),i.allowMetaPatches&&r.meta&&Ja(r)&&(Array.isArray(r.value)||qn(r.value))){var ce=Vo(t,r.path),ge=cr(cr({},ce),r.meta);Gn(t,[Sn(r.path,ge)])}return t}function vn(t){return Array.isArray(t)?t.length<1?"":"/".concat(er()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function tr(t,r){return{op:"add",path:t,value:r}}function Sn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function ki(t){return{op:"remove",path:t}}function Ri(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Su(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function qs(t,r){return{type:"context",path:t,value:r}}function Au(t,r){try{return Bo(t,Uo,r)}catch(i){return i}}function ic(t,r){try{return Bo(t,qi,r)}catch(i){return i}}function Bo(t,r,i){var o,s=er()(o=ln()(t).call(t,Ja)).call(o,function(S){return r(S.value,i,S.path)})||[],p=$a(s),m=Ka(p);return m}function qi(t,r,i){if(i=i||[],Array.isArray(t))return er()(t).call(t,function(s,p){return qi(s,r,Et()(i).call(i,p))});if(qn(t)){var o;return er()(o=Zt()(t)).call(o,function(s){return qi(t[s],r,Et()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Uo(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Et()(o).call(o,s))}if(Array.isArray(t)){var p=er()(t).call(t,function(w,E){return Uo(w,r,Et()(i).call(i,E))});p&&(o=Et()(o).call(o,p))}else if(qn(t)){var m,S=er()(m=Zt()(t)).call(m,function(w){return Uo(t[w],r,Et()(i).call(i,w))});S&&(o=Et()(o).call(o,S))}return o=$a(o),o}function el(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function Mi(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Eu(t){return Ka($a(tl(t)))}function tl(t){return Array.isArray(t)?t:[t]}function $a(t){var r;return Et()(r=[]).apply(r,Pn(er()(t).call(t,function(i){return Array.isArray(i)?$a(i):i})))}function Ka(t){return ln()(t).call(t,function(r){return typeof r!="undefined"})}function qn(t){return t&&ar(t)==="object"}function Cu(t){return qn(t)&&Ou(t.then)}function Ou(t){return t&&typeof t=="function"}function Tu(t){return t instanceof Error}function Pu(t){if(jo(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function ac(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Ya(t){return Pu(t)||jo(t)&&t.type==="mutation"}function Ja(t){return Ya(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function oc(t){return jo(t)&&t.type==="context"}function jo(t){return t&&ar(t)==="object"}function Vo(t,r){try{return kr(t,r)}catch(i){return console.error(i),{}}}var da=a(52424),rl=a.n(da),Wo=a(54098),Iu=a(9779),Ho=a.n(Iu);function nl(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;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 sc=a(13692),Fu=a.n(sc),Zr=a(47037),zo=a.n(Zr),ku=["properties"],Ru=["properties"],Mu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],pa=["schema/example","items/example"];function Xa(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return ku.indexOf(r)>-1&&Ru.indexOf(i)===-1||Mu.indexOf(o)>-1||pa.some(function(s){return o.indexOf(s)>-1})}function Lu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var k;return o.getContext(Et()(k=[]).call(k,Pn(r),Pn(E))).baseDoc}:s,m=i.targetKeys,S=m===void 0?["$ref","$$ref"]:m,w=[];return Fu()(t).forEach(function(){if(bo()(S).call(S,this.key)&&zo()(this.node)){var k=this.path,$=Et()(r).call(r,this.path),oe=Go(this.node,p(k));w.push(o.replace($,oe))}}),w}function Go(t,r){var i,o=t.split("#"),s=tn(o,2),p=s[0],m=s[1],S=Oi.resolve(p||"",r||"");return m?Et()(i="".concat(S,"#")).call(i,m):S}var il="application/json, application/yaml",ha=new RegExp("^([a-z]+://|//)","i"),ea=nl("JSONRefError",function(r,i,o){this.originalError=o,rn()(this,i||{})}),Fn={},al=new(rl()),Qa=[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"}],lc=function(r){return Qa.some(function(i){return i(r)})},va={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),m=In()(o).call(o,0,-1);if(!(Xa(m)||lc(m))){var S=s.getContext(o),w=S.baseDoc;if(typeof r!="string")return new ea("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var E=ga(r),k=E[0],$=E[1]||"",oe;try{oe=w||k?sl(k,w):null}catch(be){return ta(be,{pointer:$,$ref:r,basePath:oe,fullPath:o})}var te,ce;if(cc($,oe,m,s)&&!p.useCircularStructures){var ge=Go(r,oe);return r===ge?null:nr.replace(o,ge)}if(oe==null?(ce=ei($),te=s.get(ce),typeof te=="undefined"&&(te=new ea("Could not resolve reference: ".concat(r),{pointer:$,$ref:r,baseDoc:w,fullPath:o}))):(te=ya(oe,$),te.__value!=null?te=te.__value:te=te.catch(function(be){throw ta(be,{pointer:$,$ref:r,baseDoc:w,fullPath:o})})),te instanceof Error)return[nr.remove(o),te];var ve=Go(r,oe),Se=nr.replace(m,te,{$$ref:ve});if(oe&&oe!==w)return[Se,nr.context(m,{baseDoc:oe})];try{if(!dc(s.state,Se)||p.useCircularStructures)return Se}catch(be){return null}}}},ol=rn()(va,{docCache:Fn,absoluteify:sl,clearCache:Za,JSONRefError:ea,wrapError:ta,getDoc:ll,split:ga,extractFromDoc:ya,fetchJSON:uc,extract:$o,jsonPointerToArray:ei,unescapeJsonPointerToken:ra});const Du=ol;function sl(t,r){if(!ha.test(t)){if(!r){var i;throw new ea(Et()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Oi.resolve(r,t)}return t}function ta(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Et()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new ea("Could not resolve reference: ".concat(i),r,t)}function ga(t){return(t+"").split("#")}function ya(t,r){var i=Fn[t];if(i&&!nr.isPromise(i))try{var o=$o(r,i);return rn()(Xi().resolve(o),{__value:o})}catch(s){return Xi().reject(s)}return ll(t).then(function(s){return $o(r,s)})}function Za(t){typeof t!="undefined"?delete Fn[t]:Zt()(Fn).forEach(function(r){delete Fn[r]})}function ll(t){var r=Fn[t];return r?nr.isPromise(r)?r:Xi().resolve(r):(Fn[t]=ol.fetchJSON(t).then(function(i){return Fn[t]=i,i}),Fn[t])}function uc(t){return(0,Wo.fetch)(t,{headers:{Accept:il},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return ks().safeLoad(r)})}function $o(t,r){var i=ei(t);if(i.length<1)return r;var o=nr.getIn(r,i);if(typeof o=="undefined")throw new ea("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function ei(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(ar(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:er()(r=t.split("/")).call(r,ra)}function ra(t){return typeof t!="string"?t:Ho().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ma(t){return Ho().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function fc(t){return t.length===0?"":"/".concat(er()(t).call(t,ma).join("/"))}var Nu=function(r){return!r||r==="/"||r==="#"};function ul(t,r){if(Nu(r))return!0;var i=t.charAt(r.length),o=In()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function cc(t,r,i,o){var s,p,m=al.get(o);m||(m={},al.set(o,m));var S=fc(i),w=Et()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=S.replace(/allOf\/\d+\/?/g,""),k=o.contextTree.get([]).baseDoc;if(r==k&&ul(E,t))return!0;var $="",oe=i.some(function(te){var ce;return $=Et()(ce="".concat($,"/")).call(ce,ma(te)),m[$]&&m[$].some(function(ge){return ul(ge,w)||ul(w,ge)})});if(oe)return!0;m[E]=Et()(p=m[E]||[]).call(p,w)}function dc(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),o(r.value);function o(s){return nr.isObject(s)&&(i.indexOf(s)>=0||Zt()(s).some(function(p){return o(s[p])}))}}var un=a(41609),Bu=a.n(un);const pc={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var m=In()(o).call(o,0,-1);if(!Xa(m)){if(!Array.isArray(r)){var S=new TypeError("allOf must be an array");return S.fullPath=o,S}var w=!1,E=p.value;if(m.forEach(function(oe){!E||(E=E[oe])}),E=cr({},E),!Bu()(E)){delete E.allOf;var k=[];if(k.push(s.replace(m,{})),r.forEach(function(oe,te){if(!s.isObject(oe)){if(w)return null;w=!0;var ce=new TypeError("Elements in allOf must be objects");return ce.fullPath=o,k.push(ce)}k.push(s.mergeDeep(m,oe));var ge=In()(o).call(o,0,-1),ve=Lu(oe,ge,{getBaseUrlForNodePath:function(be){var Te;return s.getContext(Et()(Te=[]).call(Te,Pn(o),[te],Pn(be))).baseDoc},specmap:s});k.push.apply(k,Pn(ve))}),k.push(s.mergeDeep(m,E)),!E.$$ref){var $;k.push(s.remove(Et()($=[]).call($,m,"$$ref")))}return k}}}}},hc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=rn()([],r),m=In()(o).call(o,0,-1),S=cr({},nr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(S,w)}catch($){var k=new Error($);return k.fullPath=o,k}}),nr.replace(o,p)}return nr.replace(o,r)}},vc={key:"properties",plugin:function(r,i,o,s){var p=cr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var S=new Error(E);return S.fullPath=o,S}var w=nr.replace(o,p);return w}};var Uu=function(){function t(r){So(this,t),this.root=Ko(r||{})}return Ls(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){_a(this.root,o,null);return}var p=i[i.length-1],m=s.children;if(m[p]){_a(m[p],o,s);return}m[p]=Ko(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,m=0;m<i.length&&(p=i[m],s=o.children,!!s[p]);m+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:In()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&o&&(m[p]=Ko(null,s)),m[p]},this.root)}}]),t}();function Ko(t,r){return _a({children:{}},t,r)}function _a(t,r,i){return t.value=r||{},t.protoValue=i?cr(cr({},i.protoValue),t.value):t.value,Zt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=_a(s,s.value,t)}),t}var ju=100,gc=function(){function t(r){var i=this,o,s;So(this,t),rn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Uu,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:rn()(Object.create(this),nr,{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()(o=er()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,nr.isFunction),this.patches.push(nr.add([],this.spec)),this.patches.push(nr.context([],this.context)),this.updatePatches(this.patches)}return Ls(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,m=new Array(p>1?p-1:0),S=1;S<p;S++)m[S-1]=arguments[S];(o=console).log.apply(o,Et()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):nr.isFunction(i)?m=i:nr.isObject(i)&&(m=S(i)),rn()(m.bind(p),{pluginName:i.name||o,isGenerator:nr.isGenerator(m)});function S(w){var E=function($,oe){return Array.isArray($)?$.every(function(te,ce){return te===oe[ce]}):!0};return or().mark(function k($,oe){var te,ce,ge,ve,Se,be;return or().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:be=function(He,Be,je){var We,Xe,ze,qe,At,Bt,zt,sr,Ir,Ar,Yr,wr,Lr;return or().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(nr.isObject(He)){Jt.next=6;break}if(w.key!==Be[Be.length-1]){Jt.next=4;break}return Jt.next=4,w.plugin(He,w.key,Be,oe);case 4:Jt.next=30;break;case 6:We=Be.length-1,Xe=Be[We],ze=Be.indexOf("properties"),qe=Xe==="properties"&&We===ze,At=oe.allowMetaPatches&&ce[He.$$ref],Bt=0,zt=Zt()(He);case 12:if(!(Bt<zt.length)){Jt.next=30;break}if(sr=zt[Bt],Ir=He[sr],Ar=Et()(Be).call(Be,sr),Yr=nr.isObject(Ir),wr=He.$$ref,At){Jt.next=22;break}if(!Yr){Jt.next=22;break}return oe.allowMetaPatches&&wr&&(ce[wr]=!0),Jt.delegateYield(be(Ir,Ar,je),"t0",22);case 22:if(!(!qe&&sr===w.key)){Jt.next=27;break}if(Lr=E(s,Be),!(!s||Lr)){Jt.next=27;break}return Jt.next=27,w.plugin(Ir,sr,Ar,oe,je);case 27:Bt++,Jt.next=12;break;case 30:case"end":return Jt.stop()}},te)},te=or().mark(be),ce={},ge=zi(ln()($).call($,nr.isAdditiveMutation)),Ge.prev=4,ge.s();case 6:if((ve=ge.n()).done){Ge.next=11;break}return Se=ve.value,Ge.delegateYield(be(Se.value,Se.path,Se),"t0",9);case 9:Ge.next=6;break;case 11:Ge.next=16;break;case 13:Ge.prev=13,Ge.t1=Ge.catch(4),ge.e(Ge.t1);case 16:return Ge.prev=16,ge.f(),Ge.finish(16);case 19:case"end":return Ge.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return pu()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return Xi().race(er()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;nr.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!nr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),nr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(nr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(nr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(i){ar(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=cr({},i.value));var o=nr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}du()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var p=cr(cr({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),In()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return nr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=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 m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),Xi().resolve(m)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>ju){var S;return Xi().resolve({spec:o.state,errors:Et()(S=o.errors).call(S,new Error("We've reached a hard limit of ".concat(ju," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=er()(w=this.promisedPatches).call(w,function(oe){return oe.value});return Xi().all(er()(E).call(E,function(oe){return oe.then(ca(),ca())})).then(function(){return i.dispatch()})}return k();function k(){o.currentPlugin=s;var oe=o.getCurrentMutations(),te=o.mutations.length-1;try{if(s.isGenerator){var ce=zi(s(oe,o.getLib())),ge;try{for(ce.s();!(ge=ce.n()).done;){var ve=ge.value;$(ve)}}catch(be){ce.e(be)}finally{ce.f()}}else{var Se=s(oe,o.getLib());$(Se)}}catch(be){console.error(be),$([rn()(Object.create(be),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:te})}return o.dispatch()}function $(oe){oe&&(oe=nr.fullyNormalizeArray(oe),o.updatePatches(oe,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return ln()(i).call(i,o)}}]),t}();function yc(t){return new gc(t).dispatch()}var gn={refs:Du,allOf:pc,parameters:hc,properties:vc},qa=a(13218),eo=a.n(qa),xa=function(r){return String.prototype.toLowerCase.call(r)},ti=function(r){return r.replace(/[^\w]/gi,"_")};function Vu(t){var r=t.openapi;return r?Wi()(r,"3"):!1}function kd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function vi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||ar(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ti(t.operationId):Wu(r,i,{v2OperationIdCompatibilityMode:s})}function Wu(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,m,S=Et()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return S=S||Et()(m="".concat(t.substring(1),"_")).call(m,r),S.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Et()(i="".concat(xa(r))).call(i,ti(t))}function fl(t,r){var i;return Et()(i="".concat(xa(r),"-")).call(i,t)}function Hu(t,r){return!t||!t.paths?null:Yo(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||ar(p)!=="object")return!1;var m=p.operationId,S=vi(p,o,s),w=fl(o,s);return[S,w,m].some(function(E){return E&&E===r})})}function Yo(t,r){return na(t,r,!0)||null}function na(t,r,i){if(!t||ar(t)!=="object"||!t.paths||ar(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var m=o[s][p];if(!(!m||ar(m)!=="object")){var S={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(S);if(i&&w)return S}}}function Jo(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!eo()(p)){var m=p.parameters,S=function($){var oe=p[$];if(!eo()(oe))return"continue";var te=vi(oe,s,$);if(te){o[te]?o[te].push(oe):o[te]=[oe];var ce=o[te];if(ce.length>1)ce.forEach(function(Xe,ze){var qe;Xe.__originalOperationId=Xe.__originalOperationId||Xe.operationId,Xe.operationId=Et()(qe="".concat(te)).call(qe,ze+1)});else if(typeof oe.operationId!="undefined"){var ge=ce[0];ge.__originalOperationId=ge.__originalOperationId||oe.operationId,ge.operationId=te}}if($!=="parameters"){var ve=[],Se={};for(var be in r)(be==="produces"||be==="consumes"||be==="security")&&(Se[be]=r[be],ve.push(Se));if(m&&(Se.parameters=m,ve.push(Se)),ve.length){var Te=zi(ve),Ge;try{for(Te.s();!(Ge=Te.n()).done;){var Ue=Ge.value;for(var He in Ue)if(!oe[He])oe[He]=Ue[He];else if(He==="parameters"){var Be=zi(Ue[He]),je;try{var We=function(){var ze=je.value,qe=oe[He].some(function(At){return At.name&&At.name===ze.name||At.$ref&&At.$ref===ze.$ref||At.$$ref&&At.$$ref===ze.$$ref||At===ze});qe||oe[He].push(ze)};for(Be.s();!(je=Be.n()).done;)We()}catch(Xe){Be.e(Xe)}finally{Be.f()}}}}catch(Xe){Te.e(Xe)}finally{Te.f()}}}};for(var w in p)var E=S(w)}}return r.$$normalized=!0,t}function Xo(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:il},credentials:s}).then(function(m){return m.body})}}function cl(){gn.refs.clearCache()}function zu(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,S=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,k=t.requestInterceptor,$=t.responseInterceptor,oe=t.skipNormalization,te=t.useCircularStructures,ce=t.http,ge=t.baseDoc;if(ge=ge||o,ce=r||ce||Pi,!i)return Xo(ce,{requestInterceptor:k,responseInterceptor:$})(ge).then(ve);return ve(i);function ve(Se){ge&&(gn.refs.docCache[ge]=Se),gn.refs.fetchJSON=Xo(ce,{requestInterceptor:k,responseInterceptor:$});var be=[gn.refs];return typeof E=="function"&&be.push(gn.parameters),typeof w=="function"&&be.push(gn.properties),s!=="strict"&&be.push(gn.allOf),yc({spec:Se,context:{baseDoc:ge},plugins:be,allowMetaPatches:m,pathDiscriminator:S,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:te}).then(oe?function(){var Te=Ps(or().mark(function Ge(Ue){return or().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},Ge)}));return function(Ge){return Te.apply(this,arguments)}}():Jo)}}var to=a(27361),ba=a.n(to);function mc(t,r){return Qo.apply(this,arguments)}function Qo(){return Qo=Ps(or().mark(function t(r,i){var o,s,p,m,S,w,E,k,$,oe,te,ce,ge=arguments;return or().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return o=ge.length>2&&ge[2]!==void 0?ge[2]:{},s=o.returnEntireTree,p=o.baseDoc,m=o.requestInterceptor,S=o.responseInterceptor,w=o.parameterMacro,E=o.modelPropertyMacro,k=o.useCircularStructures,$={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:S,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:k},oe=Jo({spec:r}),te=oe.spec,Se.next=6,zu(cr(cr({},$),{},{spec:te,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ce=Se.sent,!s&&Array.isArray(i)&&i.length&&(ce.spec=ba()(ce.spec,i)||null),Se.abrupt("return",ce);case 9:case"end":return Se.stop()}},t)})),Qo.apply(this,arguments)}var Zo=function(){return null},xc=function(r){return Array.isArray(r)?r:[r]},_o={mapTagOperations:wc,makeExecute:ro};function ro(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},wo()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},m))}}}function bc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=_o.makeExecute(t),i=_o.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var p in i[s])o[s].operations[p]={execute:i[s][p]}}return{apis:o}}function Gu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=_o.makeExecute(t);return{apis:_o.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function wc(t){var r=t.spec,i=t.cb,o=i===void 0?Zo:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,S={},w={};return na(r,function(E){var k=E.pathName,$=E.method,oe=E.operation,te=oe.tags?xc(oe.tags):[p];te.forEach(function(ce){if(typeof ce=="string"){w[ce]=w[ce]||{};var ge=w[ce],ve=vi(oe,k,$,{v2OperationIdCompatibilityMode:m}),Se=o({spec:r,pathName:k,method:$,operation:oe,operationId:ve});if(S[ve]){var be;S[ve]+=1,ge[Et()(be="".concat(ve)).call(be,S[ve])]=Se}else if(typeof ge[ve]!="undefined"){var Te,Ge,Ue=S[ve]||1;S[ve]=Ue+1,ge[Et()(Te="".concat(ve)).call(Te,S[ve])]=Se;var He=ge[ve];delete ge[ve],ge[Et()(Ge="".concat(ve)).call(Ge,Ue)]=He}else ge[ve]=Se}})}),w}var qo=a(95683);function $u(t,r){if(t==null)return{};var i={},o=bs(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(qo(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Sc(t,r){if(t==null)return{};var i=$u(t,r),o,s;if(ji){var p=ji(t);for(s=0;s<p.length;s++)o=p[s],!(qo(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Ku=a(68630),dl=a.n(Ku),Ac=a(1469),pl=a.n(Ac),no=a(76489);const io={body:Ec,header:Cc,query:Tc,path:Oc,formData:Yu};function Ec(t){var r=t.req,i=t.value;r.body=i}function Yu(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Cc(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Oc(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function Tc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function es(t,r){return bo()(r).call(r,"application/json")?typeof t=="string"?t:ka()(t):t.toString()}function Ju(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,m=o.explode,S=o.content;if(S){var w=Zt()(S)[0];r.url=r.url.split("{".concat(s,"}")).join(Fr(es(i,w),{escape:!0}));return}var E=_n({key:o.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Pc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Zt()(o.content)[0];r.query[o.name]=es(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:wo()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ic=["accept","authorization","content-type"];function Xu(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Ic.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Zt()(i.content)[0];r.headers[i.name]=es(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=_n({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function hl(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=ar(o);if(i.content){var p,m=Zt()(i.content)[0];r.headers.Cookie=Et()(p="".concat(i.name,"=")).call(p,es(o,m));return}if(s!=="undefined"){var S=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=S+_n({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Qu=a(50706),Zu=a.n(Qu);function _u(t,r){var i=t.operation,o=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,S=t.requestContentType;r=wa({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=Zt()(w.content||{}),k=S&&E.indexOf(S)>-1;if(o||m){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 oe,te=ln()(oe=Ra()(i.responses)).call(oe,function(ge){var ve=tn(ge,2),Se=ve[0],be=ve[1],Te=parseInt(Se,10);return Te>=200&&Te<300&&dl()(be.content)}).reduce(function(ge,ve){var Se=tn(ve,2),be=Se[1];return Et()(ge).call(ge,Zt()(be.content))},[]);te.length>0&&(r.headers.accept=te.join(", "))}if(o)if(S){if(E.indexOf(S)>-1)if(S==="application/x-www-form-urlencoded"||S==="multipart/form-data")if(ar(o)==="object"){var ce=(w.content[S]||{}).encoding||{};r.form={},Zt()(o).forEach(function(ge){r.form[ge]={value:o[ge],encoding:ce[ge]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function wa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=Vi()({},r),w=o.authorized,E=w===void 0?{}:w,k=p.security||m.security||[],$=E&&!!Zt()(E).length,oe=ba()(m,["components","securitySchemes"])||{};return S.headers=S.headers||{},S.query=S.query||{},!Zt()(o).length||!$||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(te){Zt()(te).forEach(function(ce){var ge=E[ce],ve=oe[ce];if(!!ge){var Se=ge.value||ge,be=ve.type;if(ge){if(be==="apiKey")ve.in==="query"&&(S.query[ve.name]=Se),ve.in==="header"&&(S.headers[ve.name]=Se),ve.in==="cookie"&&(S.cookies[ve.name]=Se);else if(be==="http"){if(/^basic$/i.test(ve.scheme)){var Te,Ge=Se.username||"",Ue=Se.password||"",He=Zu()(Et()(Te="".concat(Ge,":")).call(Te,Ue));S.headers.Authorization="Basic ".concat(He)}/^bearer$/i.test(ve.scheme)&&(S.headers.Authorization="Bearer ".concat(Se))}else if(be==="oauth2"||be==="openIdConnect"){var Be,je=ge.token||{},We=ve["x-tokenName"]||"access_token",Xe=je[We],ze=je.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),S.headers.Authorization=Et()(Be="".concat(ze," ")).call(Be,Xe)}}}})}),S)}function qu(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,S=t.attachContentTypeForEmptyPayload;if(r=ts({request:r,securities:s,operation:o,spec:i}),r.body||r.form||S){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var k=tn(o.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var $=tn(i.consumes,1);r.headers["Content-Type"]=$[0]}else o.parameters&&ln()(w=o.parameters).call(w,function(ve){return ve.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&ln()(E=o.parameters).call(E,function(ve){return ve.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var oe,te,ce=o.parameters&&ln()(oe=o.parameters).call(oe,function(ve){return ve.in==="body"}).length>0,ge=o.parameters&&ln()(te=o.parameters).call(te,function(ve){return ve.in==="formData"}).length>0;(ce||ge)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function ts(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,S=Vi()({},r),w=o.authorized,E=w===void 0?{}:w,k=o.specSecurity,$=k===void 0?[]:k,oe=p.security||$,te=E&&!!Zt()(E).length,ce=m.securityDefinitions;return S.headers=S.headers||{},S.query=S.query||{},!Zt()(o).length||!te||!oe||Array.isArray(p.security)&&!p.security.length?r:(oe.forEach(function(ge){Zt()(ge).forEach(function(ve){var Se=E[ve];if(!!Se){var be=Se.token,Te=Se.value||Se,Ge=ce[ve],Ue=Ge.type,He=Ge["x-tokenName"]||"access_token",Be=be&&be[He],je=be&&be.token_type;if(Se){if(Ue==="apiKey"){var We=Ge.in==="query"?"query":"headers";S[We]=S[We]||{},S[We][Ge.name]=Te}else if(Ue==="basic")if(Te.header)S.headers.authorization=Te.header;else{var Xe,ze=Te.username||"",qe=Te.password||"";Te.base64=Zu()(Et()(Xe="".concat(ze,":")).call(Xe,qe)),S.headers.authorization="Basic ".concat(Te.base64)}else if(Ue==="oauth2"&&Be){var At;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,S.headers.authorization=Et()(At="".concat(je," ")).call(At,Be)}}}})}),S)}var ef=function(r){return Array.isArray(r)?r:[]},Fc=nl("OperationNotFoundError",function(r,i,o){this.originalError=o,rn()(this,i||{})}),kc=function(r,i){return ln()(i).call(i,function(o){return o.name===r})},pr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return Zt()(i).forEach(function(s){Zt()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},Rc={buildRequest:Sa};function vl(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,m=t.method,S=t.parameters,w=t.securities,E=Sc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||Pi;p&&m&&!s&&(s=fl(p,m));var $=Rc.buildRequest(cr({spec:o,operationId:s,parameters:S,securities:w,http:k},E));return $.body&&(dl()($.body)||pl()($.body))&&($.body=ka()($.body)),k($)}function Sa(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,S=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,k=t.userFetch,$=t.server,oe=t.serverVariables,te=t.http,ce=t.parameters,ge=t.parameterBuilders,ve=Vu(o);ge||(ve?ge=x:ge=io);var Se=te&&te.withCredentials?"include":"same-origin",be={url:"",credentials:Se,headers:{},cookies:{}};S&&(be.requestInterceptor=S),w&&(be.responseInterceptor=w),k&&(be.userFetch=k);var Te=Hu(o,s);if(!Te)throw new Fc("Operation ".concat(s," not found"));var Ge=Te.operation,Ue=Ge===void 0?{}:Ge,He=Te.method,Be=Te.pathName;if(be.url+=ao({spec:o,scheme:m,contextUrl:E,server:$,serverVariables:oe,pathName:Be,method:He}),!s)return delete be.cookies,be;be.url+=Be,be.method="".concat(He).toUpperCase(),ce=ce||{};var je=o.paths[Be]||{};p&&(be.headers.accept=p);var We=pr(Et()(r=Et()(i=[]).call(i,ef(Ue.parameters))).call(r,ef(je.parameters)));We.forEach(function(qe){var At=ge[qe.in],Bt;if(qe.in==="body"&&qe.schema&&qe.schema.properties&&(Bt=ce),Bt=qe&&qe.name&&ce[qe.name],typeof Bt=="undefined"){var zt;Bt=qe&&qe.name&&ce[Et()(zt="".concat(qe.in,".")).call(zt,qe.name)]}else if(kc(qe.name,We).length>1){var sr;console.warn(Et()(sr="Parameter '".concat(qe.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,qe.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Bt!==null){if(typeof qe.default!="undefined"&&typeof Bt=="undefined"&&(Bt=qe.default),typeof Bt=="undefined"&&qe.required&&!qe.allowEmptyValue)throw new Error("Required parameter ".concat(qe.name," is not provided"));if(ve&&qe.schema&&qe.schema.type==="object"&&typeof Bt=="string")try{Bt=JSON.parse(Bt)}catch(Ir){throw new Error("Could not parse object parameter value string as JSON")}At&&At({req:be,parameter:qe,value:Bt,operation:Ue,spec:o})}});var Xe=cr(cr({},t),{},{operation:Ue});if(ve?be=_u(Xe,be):be=qu(Xe,be),be.cookies&&Zt()(be.cookies).length){var ze=Zt()(be.cookies).reduce(function(qe,At){var Bt=be.cookies[At],zt=qe?"&":"",sr=no.serialize(At,Bt);return qe+zt+sr},"");be.headers.Cookie=ze}return be.cookies&&delete be.cookies,cu(be),be}var An=function(r){return r?r.replace(/\W/g,""):null};function ao(t){var r=Vu(t.spec);return r?gl(t):nf(t)}function gl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,S=m===void 0?{}:m,w=ba()(r,["paths",i,(o||"").toLowerCase(),"servers"])||ba()(r,["paths",i,"servers"])||ba()(r,["servers"]),E="",k=null;if(s&&w&&w.length){var $=er()(w).call(w,function(ce){return ce.url});$.indexOf(s)>-1&&(E=s,k=w[$.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var oe=tn(w,1);k=oe[0]}if(E.indexOf("{")>-1){var te=rf(E);te.forEach(function(ce){if(k.variables&&k.variables[ce]){var ge=k.variables[ce],ve=S[ce]||ge.default,Se=new RegExp("{".concat(ce,"}"),"g");E=E.replace(Se,ve)}})}return tf(E,p)}function tf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Oi.parse(Oi.resolve(r,t)):Oi.parse(t),o=Oi.parse(r),s=An(i.protocol)||An(o.protocol)||"",p=i.host||o.host,m=i.pathname||"",S;if(s&&p){var w;S=Et()(w="".concat(s,"://")).call(w,p+m)}else S=m;return S[S.length-1]==="/"?In()(S).call(S,0,-1):S}function rf(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function nf(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Oi.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,S=i||m||An(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",k;if(S&&w){var $;k=Et()($="".concat(S,"://")).call($,w+E)}else k=E;return k[k.length-1]==="/"?In()(k).call(k,0,-1):k}br.http=Pi,br.makeHttp=$s.bind(null,br.http),br.resolve=zu,br.resolveSubtree=mc,br.execute=vl,br.serializeRes=uu,br.serializeHeaders=zs,br.clearCache=cl,br.makeApisTagOperation=Gu,br.buildRequest=Sa,br.helpers={opId:vi},br.getBaseUrl=ao;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);Vi()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Vi()(r,br.makeApisTagOperation(r)),r});return o.client=this,o}br.prototype={http:Pi,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(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Wi()(i,"http")){var o=Oi.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Mc=br.helpers;const Lc=br;var $t=a(25446),yl=a(11429),St=a(76671),af=a(7930),oo=a(51027),En=a(78722),of=a(17673),kn=a(64776),Dc=Object.defineProperty,Sr=Object.defineProperties,Nc=Object.getOwnPropertyDescriptors,sf=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,e=(t,r,i)=>r in t?Dc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,n=(t,r)=>{for(var i in r||(r={}))Bc.call(r,i)&&e(t,i,r[i]);if(sf)for(var i of sf(r))rs.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>Sr(t,Nc(r)),l=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class y{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:m,successCallback:S,errorCallback:w}){const E=(0,kn.p8)({date:new Date().toString()}),k=new URL(r),$=p==="/"?"":p,oe=`${window.location.origin}${$}${f}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",m||oe),k.searchParams.set("response_type","token"),k.searchParams.set("state",E),Array.isArray(o)&&k.searchParams.set("scope",o.join(" "));for(const te in s)k.searchParams.set(te,s[te]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:E,successCallback:te=>{S(te),y.clearRedirectData("implicit")},errorCallback:te=>{w(te),y.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:m,scopes:S,extraParams:w={},routingBasePath:E,redirectUri:k,successCallback:$,errorCallback:oe}){const te=new URL(r),ce=E==="/"?"":E,ge=`${window.location.origin}${ce}${f}`,ve=(0,kn.p8)({date:new Date().toString()});te.searchParams.set("client_id",o),te.searchParams.set("redirect_uri",k||ge),te.searchParams.set("response_type","code"),te.searchParams.set("state",ve),Array.isArray(S)&&te.searchParams.set("scope",S.join(" ")),m&&(te.searchParams.set("code_challenge",m),te.searchParams.set("code_challenge_method","S256"));for(const Se in w)te.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:S},state:ve,successCallback:Se=>l(this,[Se],function*({auth_code:be}){try{const Te=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:of.stringify(n(u(n({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:be,grant_type:"authorization_code",redirect_uri:k||ge}),w))});yield U(Te,$,oe)}catch(Te){oe(Te)}y.clearRedirectData("authorizationCode")}),errorCallback:Se=>{oe(Se),y.clearRedirectData("authorizationCode")}},window.open(te.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:p=[],extraParams:m={},successCallback:S,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:of.stringify(n({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},m))});yield U(E,S,w)}catch(E){w(E)}})}}const F=new y;function U(t,r,i){return l(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,kn.rS)(yield(0,kn.JQ)(t))})}var _=a(68929),me;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(me||(me={}));var Ee;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ee||(Ee={}));var Ne;(function(t){t.OCTET_STREAM="application/octet-stream",t.MULTIPART="multipart/form-data",t.URL_ENCODED="application/x-www-form-urlencoded"})(Ne||(Ne={}));var ke=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const Ye=Object.values(Ee),tt=["application/octet-stream","application/pdf","application/gzip","application/zip"],at=["image/","audio/","video/"];function ft(t){if(at.some(r=>t.startsWith(r)))return t}function gt(t){return tt.includes(t)?!0:at.some(r=>t.startsWith(r))}function dt(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||"",o=r.format||r.contentEncoding||(gt(i)?"binary":"");return r.type===me.STRING&&Ye.includes(o)}function xt(t,r){if(!t||!t.type||t.type==="any")return gt(r);const i=t.format||t.contentEncoding||"";return t.type===me.STRING&&Ye.includes(i)}function It(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function Pt({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(Ee.BASE64)}function Wt(t,r){return ke(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===me.STRING&&Pt(r)?o=yield It(i[0]):r.type===me.ARRAY&&r.items&&(Pt(r.items)?o=yield Promise.all(i.map(p=>ke(this,null,function*(){return yield It(p)}))):o=i),o})}var Ut=a(7241),ir=a(23485),ct=a(39713),Br=a(78005),fn=Object.defineProperty,Tr=Object.defineProperties,cn=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,gr=(t,r,i)=>r in t?fn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Gr=(t,r)=>{for(var i in r||(r={}))Rr.call(r,i)&&gr(t,i,r[i]);if(Ur)for(var i of Ur(r))Pr.call(r,i)&&gr(t,i,r[i]);return t},ia=(t,r)=>Tr(t,cn(r));const gi=ir.iv`
92
+ */var Ys=new WeakMap,Js=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),mu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function Xs(t){return Ys.get(t)}function nc(t,r){return t.observers.get(r)}function Qs(t,r){t.observers.delete(r.callback)}function Zs(t,r){r.unobserve()}function xu(t,r){var i=[],o,s=Xs(t);if(!s)s=new Js(t),Ys.set(t,s);else{var p=nc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=pn(t),r){o.callback=r,o.next=null;var m=function(){Lo(o)},A=function(){clearTimeout(o.next),o.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return o.patches=i,o.object=t,o.unobserve=function(){Lo(o),clearTimeout(o.next),Qs(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},s.observers.set(r,new mu(r,o)),o}function Lo(t,r){r===void 0&&(r=!1);var i=Ys.get(t.object);Ga(i.value,t.object,t.patches,"",r),t.patches.length&&$n(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ga(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Ro(r),m=Ro(t),A=!1,w=!1,E=m.length-1;E>=0;E--){var k=m[E],$=t[k];if(ci(r,k)&&!(r[k]===void 0&&$!==void 0&&Array.isArray(r)===!1)){var ie=r[k];typeof $=="object"&&$!=null&&typeof ie=="object"&&ie!=null?Ga($,ie,i,o+"/"+di(k),s):$!==ie&&(A=!0,s&&i.push({op:"test",path:o+"/"+di(k),value:pn($)}),i.push({op:"replace",path:o+"/"+di(k),value:pn(ie)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+di(k),value:pn($)}),i.push({op:"remove",path:o+"/"+di(k)}),w=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),A=!0)}if(!(!w&&p.length==m.length))for(var E=0;E<p.length;E++){var k=p[E];!ci(t,k)&&r[k]!==void 0&&i.push({op:"add",path:o+"/"+di(k),value:pn(r[k])})}}}function bu(t,r,i){i===void 0&&(i=!1);var o=[];return Ga(t,r,o,"",i),o}const Do=Object.assign({},c,v,{JsonPatchError:gu,deepClone:pn,escapePathComponent:di,unescapePathComponent:Ti});var ic=a(31312),No=a.n(ic),pi=a(50361),wu=a.n(pi);const nr={add:tr,replace:Sn,remove:Ii,merge:Fi,mergeDeep:Au,context:_s,getIn:ki,applyPatch:Su,parentPathMatch:qs,flatten:$a,fullyNormalizeArray:Cu,normalizeArray:el,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:ac,isJsonPatch:Iu,isContextPatch:sc,isPatch:jo,isMutation:Ya,isAdditiveMutation:Ja,isGenerator:oc,isFunction:Tu,isObject:qn,isError:Pu};function Su(t,r,i){if(i=i||{},r=cr(cr({},r),{},{path:r.path&&hn(r.path)}),r.op==="merge"){var o=Vo(t,r.path);tn()(o,r.value),$n(t,[Sn(r.path,o)])}else if(r.op==="mergeDeep"){var s=Vo(t,r.path);for(var p in r.value){var m=r.value[p],A=Array.isArray(m);if(A){var w=s[p]||[];s[p]=Et()(w).call(w,m)}else if(qn(m)&&!A){var E=cr({},s[p]);for(var k in m)if(Object.prototype.hasOwnProperty.call(E,k)){E=No()(wu()(E),m);break}else tn()(E,bs({},k,m[k]));s[p]=E}else s[p]=m}}else if(r.op==="add"&&r.path===""&&qn(r.value)){var $=Zt()(r.value).reduce(function(ve,Se){return ve.push({op:"add",path:"/".concat(hn(Se)),value:r.value[Se]}),ve},[]);$n(t,$)}else if(r.op==="replace"&&r.path===""){var ie=r,ne=ie.value;i.allowMetaPatches&&r.meta&&Ja(r)&&(Array.isArray(r.value)||qn(r.value))&&(ne=cr(cr({},ne),r.meta)),t=ne}else if($n(t,[r]),i.allowMetaPatches&&r.meta&&Ja(r)&&(Array.isArray(r.value)||qn(r.value))){var ce=Vo(t,r.path),ge=cr(cr({},ce),r.meta);$n(t,[Sn(r.path,ge)])}return t}function hn(t){return Array.isArray(t)?t.length<1?"":"/".concat(er()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function tr(t,r){return{op:"add",path:t,value:r}}function Sn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ii(t){return{op:"remove",path:t}}function Fi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Au(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function _s(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Bo(t,Uo,r)}catch(i){return i}}function ac(t,r){try{return Bo(t,Zi,r)}catch(i){return i}}function Bo(t,r,i){var o,s=er()(o=un()(t).call(t,Ja)).call(o,function(A){return r(A.value,i,A.path)})||[],p=$a(s),m=Ka(p);return m}function Zi(t,r,i){if(i=i||[],Array.isArray(t))return er()(t).call(t,function(s,p){return Zi(s,r,Et()(i).call(i,p))});if(qn(t)){var o;return er()(o=Zt()(t)).call(o,function(s){return Zi(t[s],r,Et()(i).call(i,s))})}return r(t,i[i.length-1],i)}function Uo(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Et()(o).call(o,s))}if(Array.isArray(t)){var p=er()(t).call(t,function(w,E){return Uo(w,r,Et()(i).call(i,E))});p&&(o=Et()(o).call(o,p))}else if(qn(t)){var m,A=er()(m=Zt()(t)).call(m,function(w){return Uo(t[w],r,Et()(i).call(i,w))});A&&(o=Et()(o).call(o,A))}return o=$a(o),o}function qs(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function ki(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Cu(t){return Ka($a(el(t)))}function el(t){return Array.isArray(t)?t:[t]}function $a(t){var r;return Et()(r=[]).apply(r,In(er()(t).call(t,function(i){return Array.isArray(i)?$a(i):i})))}function Ka(t){return un()(t).call(t,function(r){return typeof r!="undefined"})}function qn(t){return t&&ar(t)==="object"}function Ou(t){return qn(t)&&Tu(t.then)}function Tu(t){return t&&typeof t=="function"}function Pu(t){return t instanceof Error}function Iu(t){if(jo(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function oc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Ya(t){return Iu(t)||jo(t)&&t.type==="mutation"}function Ja(t){return Ya(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function sc(t){return jo(t)&&t.type==="context"}function jo(t){return t&&ar(t)==="object"}function Vo(t,r){try{return kr(t,r)}catch(i){return console.error(i),{}}}var fa=a(52424),tl=a.n(fa),Wo=a(54098),Fu=a(9779),Ho=a.n(Fu);function rl(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;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 lc=a(13692),ku=a.n(lc),Xr=a(47037),zo=a.n(Xr),Ru=["properties"],Mu=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ca=["schema/example","items/example"];function Xa(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return Ru.indexOf(r)>-1&&Mu.indexOf(i)===-1||Lu.indexOf(o)>-1||ca.some(function(s){return o.indexOf(s)>-1})}function Du(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var k;return o.getContext(Et()(k=[]).call(k,In(r),In(E))).baseDoc}:s,m=i.targetKeys,A=m===void 0?["$ref","$$ref"]:m,w=[];return ku()(t).forEach(function(){if(bo()(A).call(A,this.key)&&zo()(this.node)){var k=this.path,$=Et()(r).call(r,this.path),ie=Go(this.node,p(k));w.push(o.replace($,ie))}}),w}function Go(t,r){var i,o=t.split("#"),s=en(o,2),p=s[0],m=s[1],A=Ei.resolve(p||"",r||"");return m?Et()(i="".concat(A,"#")).call(i,m):A}var nl="application/json, application/yaml",da=new RegExp("^([a-z]+://|//)","i"),_i=rl("JSONRefError",function(r,i,o){this.originalError=o,tn()(this,i||{})}),kn={},il=new(tl()),Qa=[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"}],uc=function(r){return Qa.some(function(i){return i(r)})},pa={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),m=Fn()(o).call(o,0,-1);if(!(Xa(m)||uc(m))){var A=s.getContext(o),w=A.baseDoc;if(typeof r!="string")return new _i("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var E=ha(r),k=E[0],$=E[1]||"",ie;try{ie=w||k?ol(k,w):null}catch(be){return qi(be,{pointer:$,$ref:r,basePath:ie,fullPath:o})}var ne,ce;if(dc($,ie,m,s)&&!p.useCircularStructures){var ge=Go(r,ie);return r===ge?null:nr.replace(o,ge)}if(ie==null?(ce=ei($),ne=s.get(ce),typeof ne=="undefined"&&(ne=new _i("Could not resolve reference: ".concat(r),{pointer:$,$ref:r,baseDoc:w,fullPath:o}))):(ne=va(ie,$),ne.__value!=null?ne=ne.__value:ne=ne.catch(function(be){throw qi(be,{pointer:$,$ref:r,baseDoc:w,fullPath:o})})),ne instanceof Error)return[nr.remove(o),ne];var ve=Go(r,ie),Se=nr.replace(m,ne,{$$ref:ve});if(ie&&ie!==w)return[Se,nr.context(m,{baseDoc:ie})];try{if(!pc(s.state,Se)||p.useCircularStructures)return Se}catch(be){return null}}}},al=tn()(pa,{docCache:kn,absoluteify:ol,clearCache:Za,JSONRefError:_i,wrapError:qi,getDoc:sl,split:ha,extractFromDoc:va,fetchJSON:fc,extract:$o,jsonPointerToArray:ei,unescapeJsonPointerToken:ea});const Nu=al;function ol(t,r){if(!da.test(t)){if(!r){var i;throw new _i(Et()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ei.resolve(r,t)}return t}function qi(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Et()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new _i("Could not resolve reference: ".concat(i),r,t)}function ha(t){return(t+"").split("#")}function va(t,r){var i=kn[t];if(i&&!nr.isPromise(i))try{var o=$o(r,i);return tn()(Yi().resolve(o),{__value:o})}catch(s){return Yi().reject(s)}return sl(t).then(function(s){return $o(r,s)})}function Za(t){typeof t!="undefined"?delete kn[t]:Zt()(kn).forEach(function(r){delete kn[r]})}function sl(t){var r=kn[t];return r?nr.isPromise(r)?r:Yi().resolve(r):(kn[t]=al.fetchJSON(t).then(function(i){return kn[t]=i,i}),kn[t])}function fc(t){return(0,Wo.fetch)(t,{headers:{Accept:nl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Fs().safeLoad(r)})}function $o(t,r){var i=ei(t);if(i.length<1)return r;var o=nr.getIn(r,i);if(typeof o=="undefined")throw new _i("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function ei(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(ar(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:er()(r=t.split("/")).call(r,ea)}function ea(t){return typeof t!="string"?t:Ho().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ga(t){return Ho().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function cc(t){return t.length===0?"":"/".concat(er()(t).call(t,ga).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function ll(t,r){if(Bu(r))return!0;var i=t.charAt(r.length),o=Fn()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function dc(t,r,i,o){var s,p,m=il.get(o);m||(m={},il.set(o,m));var A=cc(i),w=Et()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),k=o.contextTree.get([]).baseDoc;if(r==k&&ll(E,t))return!0;var $="",ie=i.some(function(ne){var ce;return $=Et()(ce="".concat($,"/")).call(ce,ga(ne)),m[$]&&m[$].some(function(ge){return ll(ge,w)||ll(w,ge)})});if(ie)return!0;m[E]=Et()(p=m[E]||[]).call(p,w)}function pc(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),o(r.value);function o(s){return nr.isObject(s)&&(i.indexOf(s)>=0||Zt()(s).some(function(p){return o(s[p])}))}}var fn=a(41609),Uu=a.n(fn);const hc={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var m=Fn()(o).call(o,0,-1);if(!Xa(m)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=o,A}var w=!1,E=p.value;if(m.forEach(function(ie){!E||(E=E[ie])}),E=cr({},E),!Uu()(E)){delete E.allOf;var k=[];if(k.push(s.replace(m,{})),r.forEach(function(ie,ne){if(!s.isObject(ie)){if(w)return null;w=!0;var ce=new TypeError("Elements in allOf must be objects");return ce.fullPath=o,k.push(ce)}k.push(s.mergeDeep(m,ie));var ge=Fn()(o).call(o,0,-1),ve=Du(ie,ge,{getBaseUrlForNodePath:function(be){var Te;return s.getContext(Et()(Te=[]).call(Te,In(o),[ne],In(be))).baseDoc},specmap:s});k.push.apply(k,In(ve))}),k.push(s.mergeDeep(m,E)),!E.$$ref){var $;k.push(s.remove(Et()($=[]).call($,m,"$$ref")))}return k}}}}},vc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=tn()([],r),m=Fn()(o).call(o,0,-1),A=cr({},nr.getIn(s.spec,m));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(A,w)}catch($){var k=new Error($);return k.fullPath=o,k}}),nr.replace(o,p)}return nr.replace(o,r)}},gc={key:"properties",plugin:function(r,i,o,s){var p=cr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(E){var A=new Error(E);return A.fullPath=o,A}var w=nr.replace(o,p);return w}};var ju=function(){function t(r){So(this,t),this.root=Ko(r||{})}return Ms(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){_a(this.root,o,null);return}var p=i[i.length-1],m=s.children;if(m[p]){_a(m[p],o,s);return}m[p]=Ko(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,m=0;m<i.length&&(p=i[m],s=o.children,!!s[p]);m+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:Fn()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&o&&(m[p]=Ko(null,s)),m[p]},this.root)}}]),t}();function Ko(t,r){return _a({children:{}},t,r)}function _a(t,r,i){return t.value=r||{},t.protoValue=i?cr(cr({},i.protoValue),t.value):t.value,Zt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=_a(s,s.value,t)}),t}var Vu=100,yc=function(){function t(r){var i=this,o,s;So(this,t),tn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:tn()(Object.create(this),nr,{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=un()(o=er()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,nr.isFunction),this.patches.push(nr.add([],this.spec)),this.patches.push(nr.context([],this.context)),this.updatePatches(this.patches)}return Ms(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,m=new Array(p>1?p-1:0),A=1;A<p;A++)m[A-1]=arguments[A];(o=console).log.apply(o,Et()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):nr.isFunction(i)?m=i:nr.isObject(i)&&(m=A(i)),tn()(m.bind(p),{pluginName:i.name||o,isGenerator:nr.isGenerator(m)});function A(w){var E=function($,ie){return Array.isArray($)?$.every(function(ne,ce){return ne===ie[ce]}):!0};return or().mark(function k($,ie){var ne,ce,ge,ve,Se,be;return or().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:be=function(He,Be,je){var We,Xe,ze,qe,At,Ut,Ht,sr,Ir,Er,$r,wr,Nr;return or().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:if(nr.isObject(He)){Jt.next=6;break}if(w.key!==Be[Be.length-1]){Jt.next=4;break}return Jt.next=4,w.plugin(He,w.key,Be,ie);case 4:Jt.next=30;break;case 6:We=Be.length-1,Xe=Be[We],ze=Be.indexOf("properties"),qe=Xe==="properties"&&We===ze,At=ie.allowMetaPatches&&ce[He.$$ref],Ut=0,Ht=Zt()(He);case 12:if(!(Ut<Ht.length)){Jt.next=30;break}if(sr=Ht[Ut],Ir=He[sr],Er=Et()(Be).call(Be,sr),$r=nr.isObject(Ir),wr=He.$$ref,At){Jt.next=22;break}if(!$r){Jt.next=22;break}return ie.allowMetaPatches&&wr&&(ce[wr]=!0),Jt.delegateYield(be(Ir,Er,je),"t0",22);case 22:if(!(!qe&&sr===w.key)){Jt.next=27;break}if(Nr=E(s,Be),!(!s||Nr)){Jt.next=27;break}return Jt.next=27,w.plugin(Ir,sr,Er,ie,je);case 27:Ut++,Jt.next=12;break;case 30:case"end":return Jt.stop()}},ne)},ne=or().mark(be),ce={},ge=Wi(un()($).call($,nr.isAdditiveMutation)),$e.prev=4,ge.s();case 6:if((ve=ge.n()).done){$e.next=11;break}return Se=ve.value,$e.delegateYield(be(Se.value,Se.path,Se),"t0",9);case 9:$e.next=6;break;case 11:$e.next=16;break;case 13:$e.prev=13,$e.t1=$e.catch(4),ge.e($e.t1);case 16:return $e.prev=16,ge.f(),$e.finish(16);case 19:case"end":return $e.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return hu()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return Yi().race(er()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;nr.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!nr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),nr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(nr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(nr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(i){ar(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=cr({},i.value));var o=nr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}pu()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var p=cr(cr({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),Fn()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return nr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=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 m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),Yi().resolve(m)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var A;return Yi().resolve({spec:o.state,errors:Et()(A=o.errors).call(A,new Error("We've reached a hard limit of ".concat(Vu," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=er()(w=this.promisedPatches).call(w,function(ie){return ie.value});return Yi().all(er()(E).call(E,function(ie){return ie.then(ua(),ua())})).then(function(){return i.dispatch()})}return k();function k(){o.currentPlugin=s;var ie=o.getCurrentMutations(),ne=o.mutations.length-1;try{if(s.isGenerator){var ce=Wi(s(ie,o.getLib())),ge;try{for(ce.s();!(ge=ce.n()).done;){var ve=ge.value;$(ve)}}catch(be){ce.e(be)}finally{ce.f()}}else{var Se=s(ie,o.getLib());$(Se)}}catch(be){console.error(be),$([tn()(Object.create(be),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:ne})}return o.dispatch()}function $(ie){ie&&(ie=nr.fullyNormalizeArray(ie),o.updatePatches(ie,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return un()(i).call(i,o)}}]),t}();function mc(t){return new yc(t).dispatch()}var vn={refs:Nu,allOf:hc,parameters:vc,properties:gc},qa=a(13218),eo=a.n(qa),ya=function(r){return String.prototype.toLowerCase.call(r)},ti=function(r){return r.replace(/[^\w]/gi,"_")};function Wu(t){var r=t.openapi;return r?ji()(r,"3"):!1}function Rd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function hi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||ar(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ti(t.operationId):Hu(r,i,{v2OperationIdCompatibilityMode:s})}function Hu(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,m,A=Et()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Et()(m="".concat(t.substring(1),"_")).call(m,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Et()(i="".concat(ya(r))).call(i,ti(t))}function ul(t,r){var i;return Et()(i="".concat(ya(r),"-")).call(i,t)}function zu(t,r){return!t||!t.paths?null:Yo(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||ar(p)!=="object")return!1;var m=p.operationId,A=hi(p,o,s),w=ul(o,s);return[A,w,m].some(function(E){return E&&E===r})})}function Yo(t,r){return ta(t,r,!0)||null}function ta(t,r,i){if(!t||ar(t)!=="object"||!t.paths||ar(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var m=o[s][p];if(!(!m||ar(m)!=="object")){var A={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(A);if(i&&w)return A}}}function Jo(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!eo()(p)){var m=p.parameters,A=function($){var ie=p[$];if(!eo()(ie))return"continue";var ne=hi(ie,s,$);if(ne){o[ne]?o[ne].push(ie):o[ne]=[ie];var ce=o[ne];if(ce.length>1)ce.forEach(function(Xe,ze){var qe;Xe.__originalOperationId=Xe.__originalOperationId||Xe.operationId,Xe.operationId=Et()(qe="".concat(ne)).call(qe,ze+1)});else if(typeof ie.operationId!="undefined"){var ge=ce[0];ge.__originalOperationId=ge.__originalOperationId||ie.operationId,ge.operationId=ne}}if($!=="parameters"){var ve=[],Se={};for(var be in r)(be==="produces"||be==="consumes"||be==="security")&&(Se[be]=r[be],ve.push(Se));if(m&&(Se.parameters=m,ve.push(Se)),ve.length){var Te=Wi(ve),$e;try{for(Te.s();!($e=Te.n()).done;){var Ue=$e.value;for(var He in Ue)if(!ie[He])ie[He]=Ue[He];else if(He==="parameters"){var Be=Wi(Ue[He]),je;try{var We=function(){var ze=je.value,qe=ie[He].some(function(At){return At.name&&At.name===ze.name||At.$ref&&At.$ref===ze.$ref||At.$$ref&&At.$$ref===ze.$$ref||At===ze});qe||ie[He].push(ze)};for(Be.s();!(je=Be.n()).done;)We()}catch(Xe){Be.e(Xe)}finally{Be.f()}}}}catch(Xe){Te.e(Xe)}finally{Te.f()}}}};for(var w in p)var E=A(w)}}return r.$$normalized=!0,t}function Xo(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:nl},credentials:s}).then(function(m){return m.body})}}function fl(){vn.refs.clearCache()}function Gu(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,k=t.requestInterceptor,$=t.responseInterceptor,ie=t.skipNormalization,ne=t.useCircularStructures,ce=t.http,ge=t.baseDoc;if(ge=ge||o,ce=r||ce||Oi,!i)return Xo(ce,{requestInterceptor:k,responseInterceptor:$})(ge).then(ve);return ve(i);function ve(Se){ge&&(vn.refs.docCache[ge]=Se),vn.refs.fetchJSON=Xo(ce,{requestInterceptor:k,responseInterceptor:$});var be=[vn.refs];return typeof E=="function"&&be.push(vn.parameters),typeof w=="function"&&be.push(vn.properties),s!=="strict"&&be.push(vn.allOf),mc({spec:Se,context:{baseDoc:ge},plugins:be,allowMetaPatches:m,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:ne}).then(ie?function(){var Te=Ts(or().mark(function $e(Ue){return or().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.abrupt("return",Ue);case 1:case"end":return Be.stop()}},$e)}));return function($e){return Te.apply(this,arguments)}}():Jo)}}var to=a(27361),ma=a.n(to);function xc(t,r){return Qo.apply(this,arguments)}function Qo(){return Qo=Ts(or().mark(function t(r,i){var o,s,p,m,A,w,E,k,$,ie,ne,ce,ge=arguments;return or().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return o=ge.length>2&&ge[2]!==void 0?ge[2]:{},s=o.returnEntireTree,p=o.baseDoc,m=o.requestInterceptor,A=o.responseInterceptor,w=o.parameterMacro,E=o.modelPropertyMacro,k=o.useCircularStructures,$={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:k},ie=Jo({spec:r}),ne=ie.spec,Se.next=6,Gu(cr(cr({},$),{},{spec:ne,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ce=Se.sent,!s&&Array.isArray(i)&&i.length&&(ce.spec=ma()(ce.spec,i)||null),Se.abrupt("return",ce);case 9:case"end":return Se.stop()}},t)})),Qo.apply(this,arguments)}var Zo=function(){return null},bc=function(r){return Array.isArray(r)?r:[r]},_o={mapTagOperations:Sc,makeExecute:ro};function ro(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},wo()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},m))}}}function wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=_o.makeExecute(t),i=_o.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var p in i[s])o[s].operations[p]={execute:i[s][p]}}return{apis:o}}function $u(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=_o.makeExecute(t);return{apis:_o.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Sc(t){var r=t.spec,i=t.cb,o=i===void 0?Zo:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,A={},w={};return ta(r,function(E){var k=E.pathName,$=E.method,ie=E.operation,ne=ie.tags?bc(ie.tags):[p];ne.forEach(function(ce){if(typeof ce=="string"){w[ce]=w[ce]||{};var ge=w[ce],ve=hi(ie,k,$,{v2OperationIdCompatibilityMode:m}),Se=o({spec:r,pathName:k,method:$,operation:ie,operationId:ve});if(A[ve]){var be;A[ve]+=1,ge[Et()(be="".concat(ve)).call(be,A[ve])]=Se}else if(typeof ge[ve]!="undefined"){var Te,$e,Ue=A[ve]||1;A[ve]=Ue+1,ge[Et()(Te="".concat(ve)).call(Te,A[ve])]=Se;var He=ge[ve];delete ge[ve],ge[Et()($e="".concat(ve)).call($e,Ue)]=He}else ge[ve]=Se}})}),w}var qo=a(95683);function Ku(t,r){if(t==null)return{};var i={},o=xs(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(qo(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Ac(t,r){if(t==null)return{};var i=Ku(t,r),o,s;if(Bi){var p=Bi(t);for(s=0;s<p.length;s++)o=p[s],!(qo(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Yu=a(68630),cl=a.n(Yu),Ec=a(1469),dl=a.n(Ec),no=a(76489);const io={body:Cc,header:Oc,query:Pc,path:Tc,formData:Ju};function Cc(t){var r=t.req,i=t.value;r.body=i}function Ju(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Oc(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Tc(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function Pc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function es(t,r){return bo()(r).call(r,"application/json")?typeof t=="string"?t:ka()(t):t.toString()}function Xu(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,m=o.explode,A=o.content;if(A){var w=Zt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Fr(es(i,w),{escape:!0}));return}var E=_n({key:o.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Ic(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Zt()(o.content)[0];r.query[o.name]=es(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:wo()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Fc=["accept","authorization","content-type"];function Qu(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Fc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Zt()(i.content)[0];r.headers[i.name]=es(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=_n({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function pl(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=ar(o);if(i.content){var p,m=Zt()(i.content)[0];r.headers.Cookie=Et()(p="".concat(i.name,"=")).call(p,es(o,m));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+_n({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Zu=a(50706),_u=a.n(Zu);function qu(t,r){var i=t.operation,o=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=xa({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=Zt()(w.content||{}),k=A&&E.indexOf(A)>-1;if(o||m){if(A&&k)r.headers["Content-Type"]=A;else if(!A){var $=E[0];$&&(r.headers["Content-Type"]=$,A=$)}}else A&&k&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var ie,ne=un()(ie=Ra()(i.responses)).call(ie,function(ge){var ve=en(ge,2),Se=ve[0],be=ve[1],Te=parseInt(Se,10);return Te>=200&&Te<300&&cl()(be.content)}).reduce(function(ge,ve){var Se=en(ve,2),be=Se[1];return Et()(ge).call(ge,Zt()(be.content))},[]);ne.length>0&&(r.headers.accept=ne.join(", "))}if(o)if(A){if(E.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(ar(o)==="object"){var ce=(w.content[A]||{}).encoding||{};r.form={},Zt()(o).forEach(function(ge){r.form[ge]={value:o[ge],encoding:ce[ge]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function xa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,A=Ui()({},r),w=o.authorized,E=w===void 0?{}:w,k=p.security||m.security||[],$=E&&!!Zt()(E).length,ie=ma()(m,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Zt()(o).length||!$||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(ne){Zt()(ne).forEach(function(ce){var ge=E[ce],ve=ie[ce];if(!!ge){var Se=ge.value||ge,be=ve.type;if(ge){if(be==="apiKey")ve.in==="query"&&(A.query[ve.name]=Se),ve.in==="header"&&(A.headers[ve.name]=Se),ve.in==="cookie"&&(A.cookies[ve.name]=Se);else if(be==="http"){if(/^basic$/i.test(ve.scheme)){var Te,$e=Se.username||"",Ue=Se.password||"",He=_u()(Et()(Te="".concat($e,":")).call(Te,Ue));A.headers.Authorization="Basic ".concat(He)}/^bearer$/i.test(ve.scheme)&&(A.headers.Authorization="Bearer ".concat(Se))}else if(be==="oauth2"||be==="openIdConnect"){var Be,je=ge.token||{},We=ve["x-tokenName"]||"access_token",Xe=je[We],ze=je.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),A.headers.Authorization=Et()(Be="".concat(ze," ")).call(Be,Xe)}}}})}),A)}function ef(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=ts({request:r,securities:s,operation:o,spec:i}),r.body||r.form||A){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var k=en(o.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var $=en(i.consumes,1);r.headers["Content-Type"]=$[0]}else o.parameters&&un()(w=o.parameters).call(w,function(ve){return ve.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&un()(E=o.parameters).call(E,function(ve){return ve.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ie,ne,ce=o.parameters&&un()(ie=o.parameters).call(ie,function(ve){return ve.in==="body"}).length>0,ge=o.parameters&&un()(ne=o.parameters).call(ne,function(ve){return ve.in==="formData"}).length>0;(ce||ge)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function ts(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,A=Ui()({},r),w=o.authorized,E=w===void 0?{}:w,k=o.specSecurity,$=k===void 0?[]:k,ie=p.security||$,ne=E&&!!Zt()(E).length,ce=m.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Zt()(o).length||!ne||!ie||Array.isArray(p.security)&&!p.security.length?r:(ie.forEach(function(ge){Zt()(ge).forEach(function(ve){var Se=E[ve];if(!!Se){var be=Se.token,Te=Se.value||Se,$e=ce[ve],Ue=$e.type,He=$e["x-tokenName"]||"access_token",Be=be&&be[He],je=be&&be.token_type;if(Se){if(Ue==="apiKey"){var We=$e.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][$e.name]=Te}else if(Ue==="basic")if(Te.header)A.headers.authorization=Te.header;else{var Xe,ze=Te.username||"",qe=Te.password||"";Te.base64=_u()(Et()(Xe="".concat(ze,":")).call(Xe,qe)),A.headers.authorization="Basic ".concat(Te.base64)}else if(Ue==="oauth2"&&Be){var At;je=!je||je.toLowerCase()==="bearer"?"Bearer":je,A.headers.authorization=Et()(At="".concat(je," ")).call(At,Be)}}}})}),A)}var tf=function(r){return Array.isArray(r)?r:[]},kc=rl("OperationNotFoundError",function(r,i,o){this.originalError=o,tn()(this,i||{})}),Rc=function(r,i){return un()(i).call(i,function(o){return o.name===r})},hr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return Zt()(i).forEach(function(s){Zt()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},Mc={buildRequest:ba};function hl(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,m=t.method,A=t.parameters,w=t.securities,E=Ac(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||Oi;p&&m&&!s&&(s=ul(p,m));var $=Mc.buildRequest(cr({spec:o,operationId:s,parameters:A,securities:w,http:k},E));return $.body&&(cl()($.body)||dl()($.body))&&($.body=ka()($.body)),k($)}function ba(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,k=t.userFetch,$=t.server,ie=t.serverVariables,ne=t.http,ce=t.parameters,ge=t.parameterBuilders,ve=Wu(o);ge||(ve?ge=x:ge=io);var Se=ne&&ne.withCredentials?"include":"same-origin",be={url:"",credentials:Se,headers:{},cookies:{}};A&&(be.requestInterceptor=A),w&&(be.responseInterceptor=w),k&&(be.userFetch=k);var Te=zu(o,s);if(!Te)throw new kc("Operation ".concat(s," not found"));var $e=Te.operation,Ue=$e===void 0?{}:$e,He=Te.method,Be=Te.pathName;if(be.url+=ao({spec:o,scheme:m,contextUrl:E,server:$,serverVariables:ie,pathName:Be,method:He}),!s)return delete be.cookies,be;be.url+=Be,be.method="".concat(He).toUpperCase(),ce=ce||{};var je=o.paths[Be]||{};p&&(be.headers.accept=p);var We=hr(Et()(r=Et()(i=[]).call(i,tf(Ue.parameters))).call(r,tf(je.parameters)));We.forEach(function(qe){var At=ge[qe.in],Ut;if(qe.in==="body"&&qe.schema&&qe.schema.properties&&(Ut=ce),Ut=qe&&qe.name&&ce[qe.name],typeof Ut=="undefined"){var Ht;Ut=qe&&qe.name&&ce[Et()(Ht="".concat(qe.in,".")).call(Ht,qe.name)]}else if(Rc(qe.name,We).length>1){var sr;console.warn(Et()(sr="Parameter '".concat(qe.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,qe.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Ut!==null){if(typeof qe.default!="undefined"&&typeof Ut=="undefined"&&(Ut=qe.default),typeof Ut=="undefined"&&qe.required&&!qe.allowEmptyValue)throw new Error("Required parameter ".concat(qe.name," is not provided"));if(ve&&qe.schema&&qe.schema.type==="object"&&typeof Ut=="string")try{Ut=JSON.parse(Ut)}catch(Ir){throw new Error("Could not parse object parameter value string as JSON")}At&&At({req:be,parameter:qe,value:Ut,operation:Ue,spec:o})}});var Xe=cr(cr({},t),{},{operation:Ue});if(ve?be=qu(Xe,be):be=ef(Xe,be),be.cookies&&Zt()(be.cookies).length){var ze=Zt()(be.cookies).reduce(function(qe,At){var Ut=be.cookies[At],Ht=qe?"&":"",sr=no.serialize(At,Ut);return qe+Ht+sr},"");be.headers.Cookie=ze}return be.cookies&&delete be.cookies,du(be),be}var An=function(r){return r?r.replace(/\W/g,""):null};function ao(t){var r=Wu(t.spec);return r?vl(t):af(t)}function vl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,A=m===void 0?{}:m,w=ma()(r,["paths",i,(o||"").toLowerCase(),"servers"])||ma()(r,["paths",i,"servers"])||ma()(r,["servers"]),E="",k=null;if(s&&w&&w.length){var $=er()(w).call(w,function(ce){return ce.url});$.indexOf(s)>-1&&(E=s,k=w[$.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var ie=en(w,1);k=ie[0]}if(E.indexOf("{")>-1){var ne=nf(E);ne.forEach(function(ce){if(k.variables&&k.variables[ce]){var ge=k.variables[ce],ve=A[ce]||ge.default,Se=new RegExp("{".concat(ce,"}"),"g");E=E.replace(Se,ve)}})}return rf(E,p)}function rf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ei.parse(Ei.resolve(r,t)):Ei.parse(t),o=Ei.parse(r),s=An(i.protocol)||An(o.protocol)||"",p=i.host||o.host,m=i.pathname||"",A;if(s&&p){var w;A=Et()(w="".concat(s,"://")).call(w,p+m)}else A=m;return A[A.length-1]==="/"?Fn()(A).call(A,0,-1):A}function nf(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function af(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Ei.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||m||An(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",k;if(A&&w){var $;k=Et()($="".concat(A,"://")).call($,w+E)}else k=E;return k[k.length-1]==="/"?Fn()(k).call(k,0,-1):k}br.http=Oi,br.makeHttp=Gs.bind(null,br.http),br.resolve=Gu,br.resolveSubtree=xc,br.execute=hl,br.serializeRes=fu,br.serializeHeaders=Hs,br.clearCache=fl,br.makeApisTagOperation=$u,br.buildRequest=ba,br.helpers={opId:hi},br.getBaseUrl=ao;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);Ui()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Ui()(r,br.makeApisTagOperation(r)),r});return o.client=this,o}br.prototype={http:Oi,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(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&ji()(i,"http")){var o=Ei.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Lc=br.helpers;const Dc=br;var Gt=a(25446),gl=a(11429),St=a(76671),of=a(7930),oo=a(51027),En=a(78722),sf=a(17673),Rn=a(64776),Nc=Object.defineProperty,Sr=Object.defineProperties,Bc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,e=(t,r,i)=>r in t?Nc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,n=(t,r)=>{for(var i in r||(r={}))Uc.call(r,i)&&e(t,i,r[i]);if(lf)for(var i of lf(r))rs.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>Sr(t,Bc(r)),l=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class y{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:m,successCallback:A,errorCallback:w}){const E=(0,Rn.p8)({date:new Date().toString()}),k=new URL(r),$=p==="/"?"":p,ie=`${window.location.origin}${$}${f}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",m||ie),k.searchParams.set("response_type","token"),k.searchParams.set("state",E),Array.isArray(o)&&k.searchParams.set("scope",o.join(" "));for(const ne in s)k.searchParams.set(ne,s[ne]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:E,successCallback:ne=>{A(ne),y.clearRedirectData("implicit")},errorCallback:ne=>{w(ne),y.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:m,scopes:A,extraParams:w={},routingBasePath:E,redirectUri:k,successCallback:$,errorCallback:ie}){const ne=new URL(r),ce=E==="/"?"":E,ge=`${window.location.origin}${ce}${f}`,ve=(0,Rn.p8)({date:new Date().toString()});ne.searchParams.set("client_id",o),ne.searchParams.set("redirect_uri",k||ge),ne.searchParams.set("response_type","code"),ne.searchParams.set("state",ve),Array.isArray(A)&&ne.searchParams.set("scope",A.join(" ")),m&&(ne.searchParams.set("code_challenge",m),ne.searchParams.set("code_challenge_method","S256"));for(const Se in w)ne.searchParams.set(Se,w[Se]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:A},state:ve,successCallback:Se=>l(this,[Se],function*({auth_code:be}){try{const Te=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(n(u(n({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:be,grant_type:"authorization_code",redirect_uri:k||ge}),w))});yield U(Te,$,ie)}catch(Te){ie(Te)}y.clearRedirectData("authorizationCode")}),errorCallback:Se=>{ie(Se),y.clearRedirectData("authorizationCode")}},window.open(ne.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:p=[],extraParams:m={},successCallback:A,errorCallback:w}){try{const E=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(n({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},m))});yield U(E,A,w)}catch(E){w(E)}})}}const F=new y;function U(t,r,i){return l(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,Rn.rS)(yield(0,Rn.JQ)(t))})}var _=a(68929),me;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(me||(me={}));var Ee;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ee||(Ee={}));var Ne=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const ke=Object.values(Ee),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],et=["image/","audio/","video/"];function at(t){if(et.some(r=>t.startsWith(r)))return t}function ft(t){return Ye.includes(t)?!0:et.some(r=>t.startsWith(r))}function gt(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||"",o=r.format||r.contentEncoding||(ft(i)?"binary":"");return r.type===me.STRING&&ke.includes(o)}function ct(t,r){if(!t||!t.type||t.type==="any")return ft(r);const i=t.format||t.contentEncoding||"";return t.type===me.STRING&&ke.includes(i)}function xt(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function Ft({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(Ee.BASE64)}function Pt(t,r){return Ne(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===me.STRING&&Ft(r)?o=yield xt(i[0]):r.type===me.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(i.map(p=>Ne(this,null,function*(){return yield xt(p)}))):o=i),o})}var It=a(7241),$t=a(23485),vt=a(39713),ir=a(21096),gn=Object.defineProperty,cn=Object.defineProperties,Pr=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,Ar=(t,r,i)=>r in t?gn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dr=(t,r)=>{for(var i in r||(r={}))zr.call(r,i)&&Ar(t,i,r[i]);if(rn)for(var i of rn(r))Rr.call(r,i)&&Ar(t,i,r[i]);return t},nn=(t,r)=>cn(t,Pr(r));const ra=$t.iv`
93
93
  border: none;
94
94
  outline: none;
95
95
  padding: 8px;
96
96
  border-radius: ${({theme:t})=>t.shape.borderRadius};
97
97
  background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor};
98
- ${({theme:t})=>(0,ir.QG)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}
98
+ ${({theme:t})=>(0,$t.QG)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}
99
99
 
100
100
  &::placeholder {
101
101
  opacity: 0.6;
@@ -105,16 +105,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105
105
  &:-webkit-autofill {
106
106
  background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
107
107
  }
108
- `,$r=ir.ZP.div`
108
+ `,vi=$t.ZP.div`
109
109
  display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
110
110
  ${({fullWidth:t})=>t?"width: 100%;":""}
111
- `,ri=ir.ZP.div`
111
+ `,Qr=$t.ZP.div`
112
112
  position: relative;
113
- `,jr=ir.ZP.input`
114
- ${gi}
113
+ `,ri=$t.ZP.input`
114
+ ${ra}
115
115
  ${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
116
116
  ${({fullWidth:t})=>t?"width: 100%;":""}
117
- `,ns=ir.ZP.span`
117
+ `,Mr=$t.ZP.span`
118
118
  position: absolute;
119
119
  right: 0;
120
120
  line-height: normal;
@@ -123,8 +123,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
123
123
  padding: calc(8px / 0.8);
124
124
  cursor: pointer;
125
125
  text-align: center;
126
- ${({theme:t})=>(0,ir.QG)({color:t.rightPanel.textColor})}
127
- `;function yi(t,r){const{fullWidth:i,errorMessage:o,type:s}=t,[p,m]=d.useState(s==="password"),S=d.useCallback(()=>{m(!p)},[p]);return d.createElement($r,{fullWidth:i,type:s},d.createElement(ri,null,d.createElement(jr,ia(Gr({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement(ns,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement(ns,{onClick:S},p?"show":"hide"):null),o?d.createElement(ct.Xq,null,o):null)}const $n=d.forwardRef(yi);function Mr(t){const r=Bn(Gr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement($n,ia(Gr(Gr({},i),p),{errorMessage:s.error})))}const ni=zr(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((E,k)=>({value:E.title||E.value,idx:k,origValue:E.value})),p=s.find(E=>E.origValue===t),[m,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($r,{fullWidth:!0},d.createElement(Br.Dropdown,{fullWidth:!0,variant:"dark",value:m,options:s,onChange:w}),o.error?d.createElement(ct.Xq,null,o.error):null)});var ml=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function Mh(t){return ml(this,null,function*(){return(yield fetch(t)).json()})}const Lh=St.styled.div`
126
+ ${({theme:t})=>(0,$t.QG)({color:t.rightPanel.textColor})}
127
+ `;function yl(t,r){const{fullWidth:i,errorMessage:o,type:s}=t,[p,m]=d.useState(s==="password"),A=d.useCallback(()=>{m(!p)},[p]);return d.createElement(vi,{fullWidth:i,type:s},d.createElement(Qr,null,d.createElement(ri,nn(dr({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement(Mr,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement(Mr,{onClick:A},p?"show":"hide"):null),o?d.createElement(vt.Xq,null,o):null)}const Cn=d.forwardRef(yl);function Lr(t){const r=Un(dr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement(Cn,nn(dr(dr({},i),p),{errorMessage:s.error})))}const Dr=Hr(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((E,k)=>({value:E.title||E.value,idx:k,origValue:E.value})),p=s.find(E=>E.origValue===t),[m,A]=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),A(s[E.idx].value)},[s]);return d.createElement(vi,{fullWidth:!0},d.createElement(ir.Dropdown,{fullWidth:!0,variant:"dark",value:m,options:s,onChange:w}),o.error?d.createElement(vt.Xq,null,o.error):null)});var Sa=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function ml(t){return Sa(this,null,function*(){return(yield fetch(t)).json()})}const Lh=St.styled.div`
128
128
  position: relative;
129
129
  height: 4px;
130
130
  display: block;
@@ -226,7 +226,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
226
226
  right: -8%;
227
227
  }
228
228
  }
229
- `,Rd=()=>d.createElement(Lh,null,d.createElement("div",{className:"indeterminate"}));var Dh=Object.defineProperty,Nh=Object.defineProperties,Bh=Object.getOwnPropertyDescriptors,Md=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,Ld=(t,r,i)=>r in t?Dh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Vh=(t,r)=>{for(var i in r||(r={}))Uh.call(r,i)&&Ld(t,i,r[i]);if(Md)for(var i of Md(r))jh.call(r,i)&&Ld(t,i,r[i]);return t},Wh=(t,r)=>Nh(t,Bh(r));const Hh=ir.ZP.input`
229
+ `,Md=()=>d.createElement(Lh,null,d.createElement("div",{className:"indeterminate"}));var Dh=Object.defineProperty,Nh=Object.defineProperties,Bh=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,Dd=(t,r,i)=>r in t?Dh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Vh=(t,r)=>{for(var i in r||(r={}))Uh.call(r,i)&&Dd(t,i,r[i]);if(Ld)for(var i of Ld(r))jh.call(r,i)&&Dd(t,i,r[i]);return t},Wh=(t,r)=>Nh(t,Bh(r));const Hh=$t.ZP.input`
230
230
  cursor: pointer;
231
231
  margin-left: 0;
232
232
  margin-right: 5px;
@@ -235,7 +235,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
235
235
  align-self: baseline;
236
236
  margin-top: 0;
237
237
  margin-bottom: 0;
238
- `,zh=ir.ZP.label`
238
+ `,zh=$t.ZP.label`
239
239
  display: inline-block;
240
240
  cursor: pointer;
241
241
  vertical-align: middle;
@@ -245,7 +245,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
245
245
 
246
246
  overflow-wrap: break-word;
247
247
  line-height: 20px;
248
- `,Gh=ir.ZP.div`
248
+ `,Gh=$t.ZP.div`
249
249
  width: ${({fullWidth:t})=>t?"100%":"50%"};
250
250
  display: inline-flex;
251
251
  align-items: center;
@@ -259,12 +259,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
259
259
  margin-top: 5px;
260
260
  }
261
261
  `}
262
- `;function $h(t,r){const{fullWidth:i,id:o,label:s,nowrap:p}=t;return d.createElement(Gh,{fullWidth:i,nowrap:p},d.createElement(Hh,Wh(Vh({},t),{type:"checkbox",ref:r})),d.createElement(zh,{htmlFor:o},s))}const Dd=d.forwardRef($h);var so=a(59219),xl=a(43398),Kh=Object.defineProperty,Yh=(t,r,i)=>r in t?Kh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Jh=(t,r,i)=>(Yh(t,typeof r!="symbol"?r+"":r,i),i);const Xh=11;class Qh extends d.Component{constructor(){super(...arguments);Jh(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(o)p=[...s,i];else{const m=s.indexOf(i);p=[...s.slice(0,m),...s.slice(m+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:o,maxDisplayedItems:s,showControls:p,trimItemsLength:m}=this.props,{collapsed:S}=this.state,w=i.getError(),E=s||Xh,k=m&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(_h,null,d.createElement(xl.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(xl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map($=>d.createElement(Dd,{fullWidth:!0,id:$,value:$,checked:this.isFieldChecked($),label:$,key:$,onChange:oe=>{this.onCheckBoxClick(oe),o&&i.validate()}})),r.length>E&&m?d.createElement(qh,{onClick:()=>{this.toggle()}},S?"Show all":"Collapse"):null),w?d.createElement(ct.Xq,null,w):"")}}const Zh=zr(Qh),_h=(0,St.styled)(xl.xp)`
262
+ `;function $h(t,r){const{fullWidth:i,id:o,label:s,nowrap:p}=t;return d.createElement(Gh,{fullWidth:i,nowrap:p},d.createElement(Hh,Wh(Vh({},t),{type:"checkbox",ref:r})),d.createElement(zh,{htmlFor:o},s))}const Nd=d.forwardRef($h);var so=a(59219),xl=a(43398),Kh=Object.defineProperty,Yh=(t,r,i)=>r in t?Kh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Jh=(t,r,i)=>(Yh(t,typeof r!="symbol"?r+"":r,i),i);const Xh=11;class Qh extends d.Component{constructor(){super(...arguments);Jh(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(o)p=[...s,i];else{const m=s.indexOf(i);p=[...s.slice(0,m),...s.slice(m+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:o,maxDisplayedItems:s,showControls:p,trimItemsLength:m}=this.props,{collapsed:A}=this.state,w=i.getError(),E=s||Xh,k=m&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(_h,null,d.createElement(xl.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(xl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map($=>d.createElement(Nd,{fullWidth:!0,id:$,value:$,checked:this.isFieldChecked($),label:$,key:$,onChange:ie=>{this.onCheckBoxClick(ie),o&&i.validate()}})),r.length>E&&m?d.createElement(qh,{onClick:()=>{this.toggle()}},A?"Show all":"Collapse"):null),w?d.createElement(vt.Xq,null,w):"")}}const Zh=Hr(Qh),_h=(0,St.styled)(xl.xp)`
263
263
  opacity: 1;
264
264
  text-align: left;
265
265
  `,qh=(0,St.styled)(xl.J4)`
266
266
  float: right;
267
- `;function Nd(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,$t.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(ct.NI,null,d.createElement(ct.lX,null," Scopes: "),d.createElement(Zh,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var ev=Object.defineProperty,tv=Object.defineProperties,rv=Object.getOwnPropertyDescriptors,Bd=Object.getOwnPropertySymbols,nv=Object.prototype.hasOwnProperty,iv=Object.prototype.propertyIsEnumerable,Uc=(t,r,i)=>r in t?ev(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,lf=(t,r)=>{for(var i in r||(r={}))nv.call(r,i)&&Uc(t,i,r[i]);if(Bd)for(var i of Bd(r))iv.call(r,i)&&Uc(t,i,r[i]);return t},jc=(t,r)=>tv(t,rv(r)),bl=(t,r,i)=>(Uc(t,typeof r!="symbol"?r+"":r,i),i),av=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function ov(t){if(!t)return"Field is required"}class uf extends d.Component{constructor(){super(...arguments);bl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),bl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),bl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),bl(this,"handleCodeVerifierChange",r=>av(this,[r],function*({target:{value:i}}){const o=yield H(i);this.setState({codeVerifier:i,validCodeChallenge:o})}))}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=(0,kn.CY)(43);H(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:o,id:s,tokenUrl:p,authCorsProxyUrl:m}=this.props;if(!(0,kn.Qr)(this.errors))return;this.setState({loading:!0,error:null});const S=m?m+(0,Ut.jg)(r):r,w=m&&p?m+(0,Ut.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"&&y.authorizeImplicit(k),i==="authorizationCode"&&y.authorizeAuthorizationCode(lf(jc(lf({},k),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),y.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:m,usePkce:S,defaultValues:w}=this.props;if(!p)return d.createElement(ct.Xq,null,"No flow info");let E=(0,$t.YQ)(`auth.${o}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const k=(0,$t.Al)(o,"client_id"),$={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,$t.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,$t.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:ov,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(ct.n5,null,d.createElement(ct.NI,null,d.createElement(ct.lX,null," Client ID: "),k?d.createElement(ni,jc(lf({},$),{options:k})):d.createElement(Mr,jc(lf({},$),{"data-cy":"client-id-input"}))),m==="authorizationCode"&&d.createElement(d.Fragment,null,(!(S==null?void 0:S.hideClientSecretInput)||!S)&&d.createElement(ct.NI,null,d.createElement(ct.lX,null,"Client Secret:"),d.createElement(Mr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,$t.YQ)(`auth.${o}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),S&&!S.disableManualConfiguration&&d.createElement(uv,null,d.createElement(Dd,{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(fv,null,d.createElement(ct.NI,null,d.createElement(ct.lX,null,"Code Verifier"),d.createElement($n,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(ct.NI,null,d.createElement(ct.lX,null,"Code Challenge"),d.createElement($n,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:oe}})=>{this.setState({codeChallenge:oe})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(Mr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:E}),d.createElement(Nd,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(ct.NI,null,d.createElement(ct.lX,null," Access Token: "),d.createElement($n,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(lv,null,this.values.token&&this.values.token.access_token?d.createElement(so.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(so.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Rd,null)):d.createElement(so.zx,{fullWidth:!0,disabled:!(0,kn.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(ct.n5,null,d.createElement(ct.NI,null,i?d.createElement(ct.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(sv,null,d.createElement(ct.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(ct.GE,null," No Access Token. Please, Authorize. "):null)))}}bl(uf,"contextType",St.OptionsContext);const sv=St.styled.div`
267
+ `;function Bd(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,Gt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(vt.NI,null,d.createElement(vt.lX,null," Scopes: "),d.createElement(Zh,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var ev=Object.defineProperty,tv=Object.defineProperties,rv=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,nv=Object.prototype.hasOwnProperty,iv=Object.prototype.propertyIsEnumerable,jc=(t,r,i)=>r in t?ev(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,uf=(t,r)=>{for(var i in r||(r={}))nv.call(r,i)&&jc(t,i,r[i]);if(Ud)for(var i of Ud(r))iv.call(r,i)&&jc(t,i,r[i]);return t},Vc=(t,r)=>tv(t,rv(r)),bl=(t,r,i)=>(jc(t,typeof r!="symbol"?r+"":r,i),i),av=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function ov(t){if(!t)return"Field is required"}class ff extends d.Component{constructor(){super(...arguments);bl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),bl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),bl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),bl(this,"handleCodeVerifierChange",r=>av(this,[r],function*({target:{value:i}}){const o=yield H(i);this.setState({codeVerifier:i,validCodeChallenge:o})}))}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=(0,Rn.CY)(43);H(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:o,id:s,tokenUrl:p,authCorsProxyUrl:m}=this.props;if(!(0,Rn.Qr)(this.errors))return;this.setState({loading:!0,error:null});const A=m?m+(0,It.jg)(r):r,w=m&&p?m+(0,It.jg)(p):p,E=this.props.formApi.getValue(`auth.${s}.scopes`),k={authorizationUrl:A.startsWith("http")?A:this.props.server+A,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"&&y.authorizeImplicit(k),i==="authorizationCode"&&y.authorizeAuthorizationCode(uf(Vc(uf({},k),{tokenUrl:(w==null?void 0:w.startsWith("http"))?w:this.props.server+w,clientSecret:this.values.client_secret}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),y.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:m,usePkce:A,defaultValues:w}=this.props;if(!p)return d.createElement(vt.Xq,null,"No flow info");let E=(0,Gt.YQ)(`auth.${o}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const k=(0,Gt.Al)(o,"client_id"),$={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,Gt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:ov,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(vt.n5,null,d.createElement(vt.NI,null,d.createElement(vt.lX,null," Client ID: "),k?d.createElement(Dr,Vc(uf({},$),{options:k})):d.createElement(Lr,Vc(uf({},$),{"data-cy":"client-id-input"}))),m==="authorizationCode"&&d.createElement(d.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&d.createElement(vt.NI,null,d.createElement(vt.lX,null,"Client Secret:"),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Gt.YQ)(`auth.${o}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&d.createElement(uv,null,d.createElement(Nd,{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(fv,null,d.createElement(vt.NI,null,d.createElement(vt.lX,null,"Code Verifier"),d.createElement(Cn,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(vt.NI,null,d.createElement(vt.lX,null,"Code Challenge"),d.createElement(Cn,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ie}})=>{this.setState({codeChallenge:ie})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(Lr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:E}),d.createElement(Bd,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(vt.NI,null,d.createElement(vt.lX,null," Access Token: "),d.createElement(Cn,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(lv,null,this.values.token&&this.values.token.access_token?d.createElement(so.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(so.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Md,null)):d.createElement(so.zx,{fullWidth:!0,disabled:!(0,Rn.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(vt.n5,null,d.createElement(vt.NI,null,i?d.createElement(vt.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(sv,null,d.createElement(vt.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(vt.GE,null," No Access Token. Please, Authorize. "):null)))}}bl(ff,"contextType",St.OptionsContext);const sv=St.styled.div`
268
268
  font-family: monospace;
269
269
  margin-top: 10px;
270
270
  line-height: 1;
@@ -276,16 +276,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
276
276
  padding: 8px 0 20px;
277
277
  `,fv=St.styled.div`
278
278
  padding: 4px 0;
279
- `;var cv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function dv(t){var r;const{scheme:i,defaultValues:o}=t,[s,p]=d.useState({}),[m,S]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{k(i.openIdConnectUrl)},[i.openIdConnectUrl]);const k=$=>cv(this,null,function*(){E(!0),S("");try{const oe=yield Mh($);p(oe)}catch(oe){S(oe.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Rd,null)):d.createElement("div",null,m?d.createElement(ct.Xq,null,m):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(pv,null,"OAuth2 Implicit Flow"),d.createElement(uf,{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:o})):d.createElement("div",null,"Unsupported flow")))}const pv=St.styled.div`
279
+ `;var cv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function dv(t){var r;const{scheme:i,defaultValues:o}=t,[s,p]=d.useState({}),[m,A]=d.useState(),[w,E]=d.useState(!1);d.useEffect(()=>{k(i.openIdConnectUrl)},[i.openIdConnectUrl]);const k=$=>cv(this,null,function*(){E(!0),A("");try{const ie=yield ml($);p(ie)}catch(ie){A(ie.message)}E(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Md,null)):d.createElement("div",null,m?d.createElement(vt.Xq,null,m):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(pv,null,"OAuth2 Implicit Flow"),d.createElement(ff,{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:o})):d.createElement("div",null,"Unsupported flow")))}const pv=St.styled.div`
280
280
  margin-top: 5px;
281
281
  margin-bottom: 10px;
282
- `;var hv=Object.defineProperty,vv=Object.defineProperties,gv=Object.getOwnPropertyDescriptors,Ud=Object.getOwnPropertySymbols,yv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable,Vc=(t,r,i)=>r in t?hv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,jd=(t,r)=>{for(var i in r||(r={}))yv.call(r,i)&&Vc(t,i,r[i]);if(Ud)for(var i of Ud(r))mv.call(r,i)&&Vc(t,i,r[i]);return t},Vd=(t,r)=>vv(t,gv(r)),ff=(t,r,i)=>(Vc(t,typeof r!="symbol"?r+"":r,i),i),xv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function bv(t){if(!t)return"Token is required"}class wv extends d.Component{constructor(){super(...arguments);ff(this,"state",{error:"",loading:!1,tokenMasked:!0}),ff(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,$t.WW)(`auth.${this.props.id}.token`,"")}),ff(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),ff(this,"requestToken",()=>xv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,Ut.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,m=this.values.client_secret;if(!p||!m){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield y.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:m,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,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[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:o}=this.state,{id:s,defaultValues:p}=this.props,m=Object.keys(this.props.flow.scopes);let S=(0,$t.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);S=S?JSON.parse(S):"";const w=(0,$t.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,$t.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,$t.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(ct.n5,null,d.createElement(ct.NI,null,d.createElement(ct.lX,null,"Client ID:"),w?d.createElement(ni,Vd(jd({},E),{options:w})):d.createElement(Mr,Vd(jd({},E),{type:"password"}))),d.createElement(ct.NI,null,d.createElement(ct.lX,null,"Client Secret:"),d.createElement(Mr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,$t.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(Mr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:S,validate:bv}),d.createElement(Nd,{id:s,scopes:m})),d.createElement(so.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(ct.ph,null," Access Token "),i?d.createElement(ct.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(ct.TR,null,d.createElement(ct.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(ct.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(ct.h,{onClick:this.clearToken}," Clear ")):d.createElement(ct.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Sv=wv;var Av=Object.defineProperty,Ev=Object.defineProperties,Cv=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Ov=Object.prototype.hasOwnProperty,Tv=Object.prototype.propertyIsEnumerable,Wc=(t,r,i)=>r in t?Av(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,is=(t,r)=>{for(var i in r||(r={}))Ov.call(r,i)&&Wc(t,i,r[i]);if(Wd)for(var i of Wd(r))Tv.call(r,i)&&Wc(t,i,r[i]);return t},wl=(t,r)=>Ev(t,Cv(r)),Hd=(t,r,i)=>(Wc(t,typeof r!="symbol"?r+"":r,i),i);function Sl(t){if(!t)return"Field is required"}const Pv=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function zd(t){if(t.in==="cookie")return Pv(t.name)}class Iv extends d.Component{constructor(){super(...arguments);Hd(this,"state",{activeScheme:0}),Hd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,$t.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(m=>m.schemes.map(S=>S.id).join(" and ")),s=(0,$t.YQ)("securityRequirementName"),p=o.findIndex(m=>m===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,p=o.map(m=>m.schemes.map(S=>S.id).join(" and ")).map((m,S)=>({value:m,idx:S}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(ct.n5,null,p.length>1&&d.createElement(ct.NI,null,d.createElement(ct.lX,null," Security scheme: "),d.createElement(Br.Dropdown,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(m=>{var S,w,E,k,$,oe,te;const ce=(0,$t.A8)(m.id);if(m.type==="apiKey"){const ge=(0,$t.Al)(ce,""),ve={field:`auth.${ce}`,fullWidth:!0,initialValue:zd(m)||(0,$t.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:zd(m)||(0,$t.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(ct.NI,{key:ce},d.createElement(ct.lX,null," ",m.name,": "),ge?d.createElement(ni,wl(is({},ve),{options:ge})):d.createElement(Mr,wl(is({},ve),{type:"password","data-cy":"apiKey-auth-password"})))}else if(m.type==="http"){if(m.scheme==="basic"){const ge=(0,$t.Al)(ce,"username"),ve={field:`auth.${ce}.username`,fullWidth:!0,initialValue:(0,$t.YQ)(`auth.${ce}.username`)||((S=r==null?void 0:r[ce])==null?void 0:S.username),initValue:(0,$t.YQ)(`auth.${ce}.username`)||((w=r==null?void 0:r[ce])==null?void 0:w.username),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(ct.NI,null,d.createElement(ct.lX,null," ",(0,oo.l)("tryItAuthBasicUsername"),": "),ge?d.createElement(ni,wl(is({},ve),{options:ge})):d.createElement(Mr,is({},ve))),d.createElement(ct.NI,null,d.createElement(ct.lX,null," ",(0,oo.l)("tryItAuthBasicPassword"),": "),d.createElement(Mr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ce}.password`,initialValue:(0,$t.YQ)(`auth.${ce}.password`)||((E=r==null?void 0:r[ce])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(m.scheme==="bearer"){const ge=(0,$t.Al)(ce,""),ve={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,$t.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,$t.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(ct.NI,null,d.createElement(ct.lX,null," Bearer Token: "),ge?d.createElement(ni,wl(is({},ve),{options:ge})):d.createElement(Mr,wl(is({},ve),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(m.type==="oauth2"&&m.flows&&m.flows.clientCredentials)return d.createElement(Sv,{key:ce,flow:m.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.clientCredentials["x-defaultClientId"]||m["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"&&m.flows&&m.flows.implicit)return d.createElement(uf,{key:ce,authorizationUrl:m.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((($=(k=m==null?void 0:m.flows)==null?void 0:k.implicit)==null?void 0:$.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.implicit["x-defaultClientId"]||m["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"&&m.flows&&m.flows.authorizationCode)return d.createElement(uf,{key:ce,authorizationUrl:m.flows.authorizationCode.authorizationUrl,tokenUrl:m.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((oe=m.flows.authorizationCode)==null?void 0:oe.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.authorizationCode["x-defaultClientId"]||m["x-defaultClientId"],flow:"authorizationCode",usePkce:m.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"){let ge=(0,$t.YQ)(`auth.${ce}.token`)||JSON.stringify((te=r==null?void 0:r[ce])==null?void 0:te.token);return ge=ge?JSON.parse(ge):{},d.createElement(d.Fragment,{key:ce},d.createElement(ct.NI,null,d.createElement(ct.lX,null," Access Token Type: "),d.createElement(Mr,{fullWidth:!0,field:`auth.${ce}.token.token_type`,initialValue:ge.token_type||"Bearer"})),d.createElement(ct.NI,null,d.createElement(ct.lX,null," Access Token: "),d.createElement(Mr,{type:"password",fullWidth:!0,field:`auth.${ce}.token.access_token`,validate:Sl,initialValue:ge.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(m.type==="openIdConnect")return d.createElement(dv,{key:ce,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,scheme:m,clientId:m["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Gd=a(39895);const Fv=St.styled.div`
282
+ `;var hv=Object.defineProperty,vv=Object.defineProperties,gv=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,yv=Object.prototype.hasOwnProperty,mv=Object.prototype.propertyIsEnumerable,Wc=(t,r,i)=>r in t?hv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Vd=(t,r)=>{for(var i in r||(r={}))yv.call(r,i)&&Wc(t,i,r[i]);if(jd)for(var i of jd(r))mv.call(r,i)&&Wc(t,i,r[i]);return t},Wd=(t,r)=>vv(t,gv(r)),cf=(t,r,i)=>(Wc(t,typeof r!="symbol"?r+"":r,i),i),xv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function bv(t){if(!t)return"Token is required"}class wv extends d.Component{constructor(){super(...arguments);cf(this,"state",{error:"",loading:!1,tokenMasked:!0}),cf(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Gt.WW)(`auth.${this.props.id}.token`,"")}),cf(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),cf(this,"requestToken",()=>xv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,It.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,m=this.values.client_secret;if(!p||!m){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield y.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:m,scopes:this.values.scopes,successCallback:A=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,A),this.setState({loading:!1})},errorCallback:A=>{this.clearToken(),this.setState({error:A.message,loading:!1})}})}))}get values(){var r,i,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[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:o}=this.state,{id:s,defaultValues:p}=this.props,m=Object.keys(this.props.flow.scopes);let A=(0,Gt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);A=A?JSON.parse(A):"";const w=(0,Gt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,Gt.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(vt.n5,null,d.createElement(vt.NI,null,d.createElement(vt.lX,null,"Client ID:"),w?d.createElement(Dr,Wd(Vd({},E),{options:w})):d.createElement(Lr,Wd(Vd({},E),{type:"password"}))),d.createElement(vt.NI,null,d.createElement(vt.lX,null,"Client Secret:"),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,Gt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(Lr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:bv}),d.createElement(Bd,{id:s,scopes:m})),d.createElement(so.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(vt.ph,null," Access Token "),i?d.createElement(vt.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(vt.TR,null,d.createElement(vt.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(vt.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(vt.h,{onClick:this.clearToken}," Clear ")):d.createElement(vt.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Sv=wv;var Av=Object.defineProperty,Ev=Object.defineProperties,Cv=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,Ov=Object.prototype.hasOwnProperty,Tv=Object.prototype.propertyIsEnumerable,Hc=(t,r,i)=>r in t?Av(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ns=(t,r)=>{for(var i in r||(r={}))Ov.call(r,i)&&Hc(t,i,r[i]);if(Hd)for(var i of Hd(r))Tv.call(r,i)&&Hc(t,i,r[i]);return t},wl=(t,r)=>Ev(t,Cv(r)),zd=(t,r,i)=>(Hc(t,typeof r!="symbol"?r+"":r,i),i);function Sl(t){if(!t)return"Field is required"}const Pv=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function Gd(t){if(t.in==="cookie")return Pv(t.name)}class Iv extends d.Component{constructor(){super(...arguments);zd(this,"state",{activeScheme:0}),zd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Gt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(m=>m.schemes.map(A=>A.id).join(" and ")),s=(0,Gt.YQ)("securityRequirementName"),p=o.findIndex(m=>m===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,p=o.map(m=>m.schemes.map(A=>A.id).join(" and ")).map((m,A)=>({value:m,idx:A}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(vt.n5,null,p.length>1&&d.createElement(vt.NI,null,d.createElement(vt.lX,null," Security scheme: "),d.createElement(ir.Dropdown,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(m=>{var A,w,E,k,$,ie,ne;const ce=(0,Gt.A8)(m.id);if(m.type==="apiKey"){const ge=(0,Gt.Al)(ce,""),ve={field:`auth.${ce}`,fullWidth:!0,initialValue:Gd(m)||(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:Gd(m)||(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(vt.NI,{key:ce},d.createElement(vt.lX,null," ",m.name,": "),ge?d.createElement(Dr,wl(ns({},ve),{options:ge})):d.createElement(Lr,wl(ns({},ve),{type:"password","data-cy":"apiKey-auth-password"})))}else if(m.type==="http"){if(m.scheme==="basic"){const ge=(0,Gt.Al)(ce,"username"),ve={field:`auth.${ce}.username`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${ce}.username`)||((A=r==null?void 0:r[ce])==null?void 0:A.username),initValue:(0,Gt.YQ)(`auth.${ce}.username`)||((w=r==null?void 0:r[ce])==null?void 0:w.username),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(vt.NI,null,d.createElement(vt.lX,null," ",(0,oo.l)("tryItAuthBasicUsername"),": "),ge?d.createElement(Dr,wl(ns({},ve),{options:ge})):d.createElement(Lr,ns({},ve))),d.createElement(vt.NI,null,d.createElement(vt.lX,null," ",(0,oo.l)("tryItAuthBasicPassword"),": "),d.createElement(Lr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ce}.password`,initialValue:(0,Gt.YQ)(`auth.${ce}.password`)||((E=r==null?void 0:r[ce])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(m.scheme==="bearer"){const ge=(0,Gt.Al)(ce,""),ve={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(vt.NI,null,d.createElement(vt.lX,null," Bearer Token: "),ge?d.createElement(Dr,wl(ns({},ve),{options:ge})):d.createElement(Lr,wl(ns({},ve),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(m.type==="oauth2"&&m.flows&&m.flows.clientCredentials)return d.createElement(Sv,{key:ce,flow:m.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.clientCredentials["x-defaultClientId"]||m["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"&&m.flows&&m.flows.implicit)return d.createElement(ff,{key:ce,authorizationUrl:m.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys((($=(k=m==null?void 0:m.flows)==null?void 0:k.implicit)==null?void 0:$.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.implicit["x-defaultClientId"]||m["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"&&m.flows&&m.flows.authorizationCode)return d.createElement(ff,{key:ce,authorizationUrl:m.flows.authorizationCode.authorizationUrl,tokenUrl:m.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ie=m.flows.authorizationCode)==null?void 0:ie.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.authorizationCode["x-defaultClientId"]||m["x-defaultClientId"],flow:"authorizationCode",usePkce:m.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ce]});if(m.type==="oauth2"){let ge=(0,Gt.YQ)(`auth.${ce}.token`)||JSON.stringify((ne=r==null?void 0:r[ce])==null?void 0:ne.token);return ge=ge?JSON.parse(ge):{},d.createElement(d.Fragment,{key:ce},d.createElement(vt.NI,null,d.createElement(vt.lX,null," Access Token Type: "),d.createElement(Lr,{fullWidth:!0,field:`auth.${ce}.token.token_type`,initialValue:ge.token_type||"Bearer"})),d.createElement(vt.NI,null,d.createElement(vt.lX,null," Access Token: "),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${ce}.token.access_token`,validate:Sl,initialValue:ge.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(m.type==="openIdConnect")return d.createElement(dv,{key:ce,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,scheme:m,clientId:m["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var $d=a(39895);const Fv=St.styled.div`
283
283
  display: flex;
284
284
  font-size: 12px;
285
285
  button {
286
286
  margin: 0;
287
287
  }
288
- `,$d=St.styled.button`
288
+ `,Kd=St.styled.button`
289
289
  outline: none;
290
290
  border: none;
291
291
  background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
@@ -318,54 +318,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
318
318
 
319
319
  ${({active:t,theme:r})=>t&&`
320
320
  border-bottom: 4px solid ${r.colors.accent.main};
321
- background-color: ${(0,Gd._j)(.05,r.rightPanel.panelBackgroundColor)};
321
+ background-color: ${(0,$d._j)(.05,r.rightPanel.panelBackgroundColor)};
322
322
  `||""}
323
323
 
324
324
  ${({disabled:t,theme:r})=>t&&`
325
325
  cursor: default;
326
- color: ${(0,Gd.DZ)(.3,r.colors.text.light)};
326
+ color: ${(0,$d.DZ)(.3,r.colors.text.light)};
327
327
  `||""}
328
- `;class kv extends d.Component{render(){const{onChange:r,active:i,hasResponse:o}=this.props;return d.createElement(Fv,null,d.createElement($d,{onClick:()=>r(0),active:i===0},o?"Edit Request":"Request"),d.createElement($d,{onClick:()=>o&&r(1),active:i===1,disabled:!o}," ","Response"," "))}}var Rv=a(9996),Kd=a.n(Rv),Hc=a(67897),Mv=Object.defineProperty,cf=Object.getOwnPropertySymbols,Yd=Object.prototype.hasOwnProperty,Jd=Object.prototype.propertyIsEnumerable,Xd=(t,r,i)=>r in t?Mv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Lv=(t,r)=>{for(var i in r||(r={}))Yd.call(r,i)&&Xd(t,i,r[i]);if(cf)for(var i of cf(r))Jd.call(r,i)&&Xd(t,i,r[i]);return t},Dv=(t,r)=>{var i={};for(var o in t)Yd.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&cf)for(var o of cf(t))r.indexOf(o)<0&&Jd.call(t,o)&&(i[o]=t[o]);return i},Nv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const Qd=d.forwardRef((t,r)=>{var i=Dv(t,[]);const{schema:o,contentName:s,onChange:p,name:m}=i,{render:S}=Bn(Lv({field:m},i)),w=E=>Nv(void 0,null,function*(){const k=yield Wt(E.target.files,o);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}))});Qd.displayName="FileUpload";const Bv=(0,Ta.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,p=i.examples||{},{exampleKey:m}=(0,Hc.C6)(i.operation,p),S=(r=p[m])==null?void 0:r.rawValue,w=Uv(i);(0,d.useEffect)(()=>s&&w.forEach(k=>{var $,oe;const te=S==null?void 0:S[k.name],ce=(oe=($=k.example)!=null?$:te==null?void 0:te.example)!=null?oe:te,ge=typeof ce=="object"?JSON.stringify(ce):ce;ce!==void 0&&s.setValue("body."+k.name,`${ge}`)}),[m]);const E=i.schema||{};return xt(E,i.name)?d.createElement(Zd,null,d.createElement(ct.NI,null,d.createElement(_d,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:ft(i.name),schema:E,contentName:i.name,onChange:o}))):E.type!==me.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(Zd,null,w.map(k=>{const $=k.schema||{},oe=i.name===Ne.MULTIPART&&dt($),te=$.contentMediaType||"",ce=oe?d.createElement(_d,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:ft(te),multiple:$.type==="array",schema:$,contentName:k.name,onChange:o}):d.createElement(Mr,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:$.description||k.name});return d.createElement(ct.NI,{key:k.name},d.createElement(ct.lX,null,k.name,":"),ce)}))});function Uv(t){var r,i,o,s,p;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(m=>!m.schema.readOnly)}const Zd=St.styled.div`
328
+ `;class kv extends d.Component{render(){const{onChange:r,active:i,hasResponse:o}=this.props;return d.createElement(Fv,null,d.createElement(Kd,{onClick:()=>r(0),active:i===0},o?"Edit Request":"Request"),d.createElement(Kd,{onClick:()=>o&&r(1),active:i===1,disabled:!o}," ","Response"," "))}}var Rv=a(9996),Yd=a.n(Rv),zc=a(67897),Al=a(49376),Mv=Object.defineProperty,df=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,Xd=Object.prototype.propertyIsEnumerable,Qd=(t,r,i)=>r in t?Mv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Lv=(t,r)=>{for(var i in r||(r={}))Jd.call(r,i)&&Qd(t,i,r[i]);if(df)for(var i of df(r))Xd.call(r,i)&&Qd(t,i,r[i]);return t},Dv=(t,r)=>{var i={};for(var o in t)Jd.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&df)for(var o of df(t))r.indexOf(o)<0&&Xd.call(t,o)&&(i[o]=t[o]);return i},Nv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const Zd=d.forwardRef((t,r)=>{var i=Dv(t,[]);const{schema:o,contentName:s,onChange:p,name:m}=i,{render:A}=Un(Lv({field:m},i)),w=E=>Nv(void 0,null,function*(){const k=yield Pt(E.target.files,o);p(s,k)});return A(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}))});Zd.displayName="FileUpload";const Bv=(0,Ta.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,p=i.examples||{},{exampleKey:m}=(0,zc.C6)(i.operation,p),A=(r=p[m])==null?void 0:r.rawValue,w=Uv(i);(0,d.useEffect)(()=>s&&w.forEach(k=>{var $,ie;const ne=A==null?void 0:A[k.name],ce=(ie=($=k.example)!=null?$:ne==null?void 0:ne.example)!=null?ie:ne,ge=typeof ce=="object"?JSON.stringify(ce):ce;ce!==void 0&&s.setValue("body."+k.name,`${ge}`)}),[m]);const E=i.schema||{};return ct(E,i.name)?d.createElement(_d,null,d.createElement(vt.NI,null,d.createElement(qd,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:at(i.name),schema:E,contentName:i.name,onChange:o}))):E.type!==me.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(_d,null,w.map(k=>{const $=k.schema||{},ie=i.name===Al.T.MULTIPART&&gt($),ne=$.contentMediaType||"",ce=ie?d.createElement(qd,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:at(ne),multiple:$.type==="array",schema:$,contentName:k.name,onChange:o}):d.createElement(Lr,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:$.description||k.name});return d.createElement(vt.NI,{key:k.name},d.createElement(vt.lX,null,k.name,":"),ce)}))});function Uv(t){var r,i,o,s,p;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(m=>!m.schema.readOnly)}const _d=St.styled.div`
329
329
  > div {
330
330
  margin-top: 10px;
331
331
  }
332
- `,_d=(0,St.styled)(Qd)`
333
- ${gi}
332
+ `,qd=(0,St.styled)(Zd)`
333
+ ${ra}
334
334
  ${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
335
335
  ${({fullWidth:t})=>t?"width: 100%;":""}
336
- `,jv=(0,ir.ZP)(so.A3)`
336
+ `,jv=(0,$t.ZP)(so.A3)`
337
337
  border-radius: ${({theme:t})=>t.components.panels.borderRadius};
338
338
  margin-bottom: 10px;
339
- `;var Vv=a(35310),as=a(4631);function df(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",p=0,m=16,S=0,w=0,E=0,k=0,$=0;function oe(Te,Ge){for(var Ue=0,He=0;Ue<Te||!Ge;){var Be=t.charCodeAt(o);if(Be>=48&&Be<=57)He=He*16+Be-48;else if(Be>=65&&Be<=70)He=He*16+Be-65+10;else if(Be>=97&&Be<=102)He=He*16+Be-97+10;else break;o++,Ue++}return Ue<Te&&(He=-1),He}function te(Te){o=Te,s="",p=0,m=16,$=0}function ce(){var Te=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&os(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&os(t.charCodeAt(o)))for(o++;o<t.length&&os(t.charCodeAt(o));)o++;else return $=3,t.substring(Te,o);var Ge=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&os(t.charCodeAt(o))){for(o++;o<t.length&&os(t.charCodeAt(o));)o++;Ge=o}else $=3;return t.substring(Te,Ge)}function ge(){for(var Te="",Ge=o;;){if(o>=i){Te+=t.substring(Ge,o),$=2;break}var Ue=t.charCodeAt(o);if(Ue===34){Te+=t.substring(Ge,o),o++;break}if(Ue===92){if(Te+=t.substring(Ge,o),o++,o>=i){$=2;break}var He=t.charCodeAt(o++);switch(He){case 34:Te+='"';break;case 92:Te+="\\";break;case 47:Te+="/";break;case 98:Te+="\b";break;case 102:Te+="\f";break;case 110:Te+=`
340
- `;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var Be=oe(4,!0);Be>=0?Te+=String.fromCharCode(Be):$=4;break;default:$=5}Ge=o;continue}if(Ue>=0&&Ue<=31)if(Al(Ue)){Te+=t.substring(Ge,o),$=2;break}else $=6;o++}return Te}function ve(){if(s="",$=0,p=o,w=S,k=E,o>=i)return p=i,m=17;var Te=t.charCodeAt(o);if(zc(Te)){do o++,s+=String.fromCharCode(Te),Te=t.charCodeAt(o);while(zc(Te));return m=15}if(Al(Te))return o++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(o)===10&&(o++,s+=`
341
- `),S++,E=o,m=14;switch(Te){case 123:return o++,m=1;case 125:return o++,m=2;case 91:return o++,m=3;case 93:return o++,m=4;case 58:return o++,m=6;case 44:return o++,m=5;case 34:return o++,s=ge(),m=10;case 47:var Ge=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Al(t.charCodeAt(o));)o++;return s=t.substring(Ge,o),m=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Ue=i-1,He=!1;o<Ue;){var Be=t.charCodeAt(o);if(Be===42&&t.charCodeAt(o+1)===47){o+=2,He=!0;break}o++,Al(Be)&&(Be===13&&t.charCodeAt(o)===10&&o++,S++,E=o)}return He||(o++,$=1),s=t.substring(Ge,o),m=13}return s+=String.fromCharCode(Te),o++,m=16;case 45:if(s+=String.fromCharCode(Te),o++,o===i||!os(t.charCodeAt(o)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=ce(),m=11;default:for(;o<i&&Se(Te);)o++,Te=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return s+=String.fromCharCode(Te),o++,m=16}}function Se(Te){if(zc(Te)||Al(Te))return!1;switch(Te){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function be(){var Te;do Te=ve();while(Te>=12&&Te<=15);return Te}return{setPosition:te,getPosition:function(){return o},scan:r?be:ve,getToken:function(){return m},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return $}}}function zc(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 Al(t){return t===10||t===13||t===8232||t===8233}function os(t){return t>=48&&t<=57}function Wv(t,r,i){var o,s,p,m,S;if(r){for(m=r.offset,S=m+r.length,p=m;p>0&&!qd(t,p-1);)p--;for(var w=S;w<t.length&&!qd(t,w);)w++;s=t.substring(p,w),o=Hv(s,i)}else s=t,o=0,p=0,m=0,S=t.length;var E=zv(i,t),k=!1,$=0,oe;i.insertSpaces?oe=Gc(" ",i.tabSize||4):oe=" ";var te=df(s,!1),ce=!1;function ge(){return E+Gc(oe,o+$)}function ve(){var ze=te.scan();for(k=!1;ze===15||ze===14;)k=k||ze===14,ze=te.scan();return ce=ze===16||te.getTokenError()!==0,ze}var Se=[];function be(ze,qe,At){!ce&&qe<S&&At>m&&t.substring(qe,At)!==ze&&Se.push({offset:qe,length:At-qe,content:ze})}var Te=ve();if(Te!==17){var Ge=te.getTokenOffset()+p,Ue=Gc(oe,o);be(Ue,p,Ge)}for(;Te!==17;){for(var He=te.getTokenOffset()+te.getTokenLength()+p,Be=ve(),je="";!k&&(Be===12||Be===13);){var We=te.getTokenOffset()+p;be(" ",He,We),He=te.getTokenOffset()+te.getTokenLength()+p,je=Be===12?ge():"",Be=ve()}if(Be===2)Te!==1&&($--,je=ge());else if(Be===4)Te!==3&&($--,je=ge());else{switch(Te){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&&(ce=!0);break;case 16:ce=!0;break}k&&(Be===12||Be===13)&&(je=ge())}var Xe=te.getTokenOffset()+p;be(je,He,Xe),Te=Be}return Se}function Gc(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Hv(t,r){for(var i=0,o=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")o++;else if(p===" ")o+=s;else break;i++}return Math.floor(o/s)}function zv(t,r){for(var i=0;i<r.length;i++){var o=r.charAt(i);if(o==="\r")return i+1<r.length&&r.charAt(i+1)===`
339
+ `;var Vv=a(35310),is=a(4631);function pf(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",p=0,m=16,A=0,w=0,E=0,k=0,$=0;function ie(Te,$e){for(var Ue=0,He=0;Ue<Te||!$e;){var Be=t.charCodeAt(o);if(Be>=48&&Be<=57)He=He*16+Be-48;else if(Be>=65&&Be<=70)He=He*16+Be-65+10;else if(Be>=97&&Be<=102)He=He*16+Be-97+10;else break;o++,Ue++}return Ue<Te&&(He=-1),He}function ne(Te){o=Te,s="",p=0,m=16,$=0}function ce(){var Te=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&as(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&as(t.charCodeAt(o)))for(o++;o<t.length&&as(t.charCodeAt(o));)o++;else return $=3,t.substring(Te,o);var $e=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&as(t.charCodeAt(o))){for(o++;o<t.length&&as(t.charCodeAt(o));)o++;$e=o}else $=3;return t.substring(Te,$e)}function ge(){for(var Te="",$e=o;;){if(o>=i){Te+=t.substring($e,o),$=2;break}var Ue=t.charCodeAt(o);if(Ue===34){Te+=t.substring($e,o),o++;break}if(Ue===92){if(Te+=t.substring($e,o),o++,o>=i){$=2;break}var He=t.charCodeAt(o++);switch(He){case 34:Te+='"';break;case 92:Te+="\\";break;case 47:Te+="/";break;case 98:Te+="\b";break;case 102:Te+="\f";break;case 110:Te+=`
340
+ `;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var Be=ie(4,!0);Be>=0?Te+=String.fromCharCode(Be):$=4;break;default:$=5}$e=o;continue}if(Ue>=0&&Ue<=31)if(El(Ue)){Te+=t.substring($e,o),$=2;break}else $=6;o++}return Te}function ve(){if(s="",$=0,p=o,w=A,k=E,o>=i)return p=i,m=17;var Te=t.charCodeAt(o);if(Gc(Te)){do o++,s+=String.fromCharCode(Te),Te=t.charCodeAt(o);while(Gc(Te));return m=15}if(El(Te))return o++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(o)===10&&(o++,s+=`
341
+ `),A++,E=o,m=14;switch(Te){case 123:return o++,m=1;case 125:return o++,m=2;case 91:return o++,m=3;case 93:return o++,m=4;case 58:return o++,m=6;case 44:return o++,m=5;case 34:return o++,s=ge(),m=10;case 47:var $e=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!El(t.charCodeAt(o));)o++;return s=t.substring($e,o),m=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Ue=i-1,He=!1;o<Ue;){var Be=t.charCodeAt(o);if(Be===42&&t.charCodeAt(o+1)===47){o+=2,He=!0;break}o++,El(Be)&&(Be===13&&t.charCodeAt(o)===10&&o++,A++,E=o)}return He||(o++,$=1),s=t.substring($e,o),m=13}return s+=String.fromCharCode(Te),o++,m=16;case 45:if(s+=String.fromCharCode(Te),o++,o===i||!as(t.charCodeAt(o)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=ce(),m=11;default:for(;o<i&&Se(Te);)o++,Te=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return s+=String.fromCharCode(Te),o++,m=16}}function Se(Te){if(Gc(Te)||El(Te))return!1;switch(Te){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function be(){var Te;do Te=ve();while(Te>=12&&Te<=15);return Te}return{setPosition:ne,getPosition:function(){return o},scan:r?be:ve,getToken:function(){return m},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return $}}}function Gc(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 El(t){return t===10||t===13||t===8232||t===8233}function as(t){return t>=48&&t<=57}function Wv(t,r,i){var o,s,p,m,A;if(r){for(m=r.offset,A=m+r.length,p=m;p>0&&!ep(t,p-1);)p--;for(var w=A;w<t.length&&!ep(t,w);)w++;s=t.substring(p,w),o=Hv(s,i)}else s=t,o=0,p=0,m=0,A=t.length;var E=zv(i,t),k=!1,$=0,ie;i.insertSpaces?ie=$c(" ",i.tabSize||4):ie=" ";var ne=pf(s,!1),ce=!1;function ge(){return E+$c(ie,o+$)}function ve(){var ze=ne.scan();for(k=!1;ze===15||ze===14;)k=k||ze===14,ze=ne.scan();return ce=ze===16||ne.getTokenError()!==0,ze}var Se=[];function be(ze,qe,At){!ce&&qe<A&&At>m&&t.substring(qe,At)!==ze&&Se.push({offset:qe,length:At-qe,content:ze})}var Te=ve();if(Te!==17){var $e=ne.getTokenOffset()+p,Ue=$c(ie,o);be(Ue,p,$e)}for(;Te!==17;){for(var He=ne.getTokenOffset()+ne.getTokenLength()+p,Be=ve(),je="";!k&&(Be===12||Be===13);){var We=ne.getTokenOffset()+p;be(" ",He,We),He=ne.getTokenOffset()+ne.getTokenLength()+p,je=Be===12?ge():"",Be=ve()}if(Be===2)Te!==1&&($--,je=ge());else if(Be===4)Te!==3&&($--,je=ge());else{switch(Te){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&&(ce=!0);break;case 16:ce=!0;break}k&&(Be===12||Be===13)&&(je=ge())}var Xe=ne.getTokenOffset()+p;be(je,He,Xe),Te=Be}return Se}function $c(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Hv(t,r){for(var i=0,o=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")o++;else if(p===" ")o+=s;else break;i++}return Math.floor(o/s)}function zv(t,r){for(var i=0;i<r.length;i++){var o=r.charAt(i);if(o==="\r")return i+1<r.length&&r.charAt(i+1)===`
342
342
  `?`\r
343
343
  `:"\r";if(o===`
344
344
  `)return`
345
345
  `}return t&&t.eol||`
346
- `}function qd(t,r){return`\r
347
- `.indexOf(t.charAt(r))!==-1}var El;(function(t){t.DEFAULT={allowTrailingComma:!1}})(El||(El={}));function Gv(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},m=!1;function S(w,E,k,$){p.value=w,p.offset=E,p.length=k,p.type=$,p.colonOffset=void 0,s=p}try{pf(t,{onObjectBegin:function(w,E){if(r<=w)throw o;s=void 0,m=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 o},onObjectEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw o;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onLiteralValue:function(w,E,k){if(r<E||(S(w,E,k,rp(w)),r<=E+k))throw o},onSeparator:function(w,E,k){if(r<=E)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=E,m=!1,s=void 0;else if(w===","){var $=i[i.length-1];typeof $=="number"?i[i.length-1]=$+1:(m=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:m,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 $v(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=El.DEFAULT);var o=null,s=[],p=[];function m(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var S={onObjectBegin:function(){var w={};m(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];m(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:m,onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};return pf(t,S,i),s[0]}function Kv(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=El.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var m={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,E,k){o=p({type:"property",offset:E,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:E,length:k,parent:o})},onObjectEnd:function(w,E){s(w+E),o.length=w+E-o.offset,o=o.parent,s(w+E)},onArrayBegin:function(w,E){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,E){o.length=w+E-o.offset,o=o.parent,s(w+E)},onLiteralValue:function(w,E,k){p({type:rp(w),offset:E,length:k,parent:o,value:w}),s(E+k)},onSeparator:function(w,E,k){o.type==="property"&&(w===":"?o.colonOffset=E:w===","&&s(E))},onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};pf(t,m,i);var S=o.children[0];return S&&delete S.parent,S}function Yv(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var m=!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],m=!0;break}}if(!m)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 ep(t){if(!t.parent||!t.parent.children)return[];var r=ep(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function $c(t){switch(t.type){case"array":return t.children.map($c);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],p=s.children[1];p&&(r[s.children[0].value]=$c(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function Jv(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function tp(t,r,i){if(i===void 0&&(i=!1),Jv(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=tp(o[s],r,i);if(p)return p}return t}}function pf(t,r,i){i===void 0&&(i=El.DEFAULT);var o=df(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Xe){return We(Xe,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var m=s(r.onObjectBegin),S=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),k=s(r.onArrayEnd),$=p(r.onLiteralValue),oe=p(r.onSeparator),te=s(r.onComment),ce=p(r.onError),ge=i&&i.disallowComments,ve=i&&i.allowTrailingComma;function Se(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:be(14);break;case 5:be(15);break;case 3:be(13);break;case 1:ge||be(11);break;case 2:be(12);break;case 6:be(16);break}switch(We){case 12:case 13:ge?be(10):te();break;case 16:be(1);break;case 15:case 14:break;default:return We}}}function be(We,Xe,ze){if(Xe===void 0&&(Xe=[]),ze===void 0&&(ze=[]),ce(We),Xe.length+ze.length>0)for(var qe=o.getToken();qe!==17;){if(Xe.indexOf(qe)!==-1){Se();break}else if(ze.indexOf(qe)!==-1)break;qe=Se()}}function Te(We){var Xe=o.getTokenValue();return We?$(Xe):S(Xe),Se(),!0}function Ge(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Xe=Number(We);isNaN(Xe)&&(be(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 o.getToken()!==10?(be(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(oe(":"),Se(),je()||be(4,[],[2,5])):be(5,[],[2,5]),!0)}function He(){m(),Se();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||be(4,[],[]),oe(","),Se(),o.getToken()===2&&ve)break}else We&&be(6,[],[]);Ue()||be(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?be(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||be(4,[],[]),oe(","),Se(),o.getToken()===4&&ve)break}else We&&be(6,[],[]);je()||be(4,[],[4,5]),We=!0}return k(),o.getToken()!==4?be(8,[4],[]):Se(),!0}function je(){switch(o.getToken()){case 3:return Be();case 1:return He();case 10:return Te(!0);default:return Ge()}}return Se(),o.getToken()===17?i.allowEmptyContent?!0:(be(4,[],[]),!1):je()?(o.getToken()!==17&&be(9,[],[]),!0):(be(4,[],[]),!1)}function Xv(t,r){var i=df(t),o=[],s,p=0,m;do switch(m=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==m&&o.push(t.substring(p,m)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function rp(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 Cm(t,r,i){return Qv(t,r,void 0,i)}function Qv(t,r,i,o){for(var s,p=r.slice(),m=[],S=parseTree(t,m),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),oe=void 0,te=k.parent.offset+k.parent.length;if($>0){var ce=w.children[$-1];oe=ce.offset+ce.length}else if(oe=w.offset+1,w.children.length>1){var ge=w.children[1];te=ge.offset}return lo(t,{offset:oe,length:te-oe,content:""},o)}else return lo(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var ve=JSON.stringify(E)+": "+JSON.stringify(i),Se=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,be=void 0;if(Se>0){var ce=w.children[Se-1];be={offset:ce.offset+ce.length,length:0,content:","+ve}}else w.children.length===0?be={offset:w.offset+1,length:0,content:ve}:be={offset:w.offset+1,length:0,content:ve+","};return lo(t,be,o)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-1){var ve=""+JSON.stringify(i),be=void 0;if(w.children.length===0)be={offset:w.offset+1,length:0,content:ve};else{var ce=w.children[w.children.length-1];be={offset:ce.offset+ce.length,length:0,content:","+ve}}return lo(t,be,o)}else if(i===void 0&&w.children.length>=0){var Ge=E,Ue=w.children[Ge],be=void 0;if(w.children.length===1)be={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===Ge){var ce=w.children[Ge-1],He=ce.offset+ce.length,Be=w.offset+w.length;be={offset:He,length:Be-2-He,content:""}}else be={offset:Ue.offset,length:w.children[Ge+1].offset-Ue.offset,content:""};return lo(t,be,o)}else if(i!==void 0){var be=void 0,ve=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>E){var je=w.children[E];be={offset:je.offset,length:je.length,content:ve}}else if(w.children.length===0||E===0)be={offset:w.offset+1,length:0,content:w.children.length===0?ve:ve+","};else{var Se=E>w.children.length?w.children.length:E,ce=w.children[Se-1];be={offset:ce.offset+ce.length,length:0,content:","+ve}}return lo(t,be,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+Te+" 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 lo(t,{offset:S?S.offset:0,length:S?S.length:0,content:JSON.stringify(i)},o)}}function lo(t,r,i){if(!i.formattingOptions)return[r];var o=np(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var m=format(o,{offset:s,length:p-s},i.formattingOptions),S=m.length-1;S>=0;S--){var w=m[S];o=np(o,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-(o.length-p)-s;return[{offset:s,length:E,content:o.substring(s,p)}]}function np(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Om(t,r){return`\r
348
- `.indexOf(t.charAt(r))!==-1}var ss=df,Tm=Gv,Zv=$v,Pm=Kv,Im=Yv,_v=tp,qv=ep,eg=$c,Fm=pf,km=Xv;function Rm(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 tg(t,r,i){return Wv(t,r,i)}function Mm(t,r,i,o){return edit.setProperty(t,r,i,o)}function Lm(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Cl(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,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Cl(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!Cl(s,p))return!1;for(i=0;i<s.length;i++)if(!Cl(t[s[i]],r[s[i]]))return!1}return!0}function Kn(t){return typeof t=="number"}function aa(t){return typeof t!="undefined"}function Li(t){return typeof t=="boolean"}function rg(t){return typeof t=="string"}var ip;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(ip||(ip={}));var hf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(hf||(hf={}));var mi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=hf.MAX_VALUE),s===Number.MAX_VALUE&&(s=hf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(mi||(mi={}));var fr;(function(t){function r(o,s,p,m){if(Ze.uinteger(o)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(m))return{start:mi.create(o,s),end:mi.create(p,m)};if(mi.is(o)&&mi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+m+"]")}t.create=r;function i(o){var s=o;return Ze.objectLiteral(s)&&mi.is(s.start)&&mi.is(s.end)}t.is=i})(fr||(fr={}));var Ol;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(Ol||(Ol={}));var ap;(function(t){function r(o,s,p,m){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:m}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.targetRange)&&Ze.string(s.targetUri)&&(fr.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(fr.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(ap||(ap={}));var Kc;(function(t){function r(o,s,p,m){return{red:o,green:s,blue:p,alpha:m}}t.create=r;function i(o){var s=o;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})(Kc||(Kc={}));var op;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return fr.is(s.range)&&Kc.is(s.color)}t.is=i})(op||(op={}));var sp;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||xi.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,xi.is))}t.is=i})(sp||(sp={}));var Tl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Tl||(Tl={}));var lp;(function(t){function r(o,s,p,m,S){var w={startLine:o,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(m)&&(w.endCharacter=m),Ze.defined(S)&&(w.kind=S),w}t.create=r;function i(o){var s=o;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})(lp||(lp={}));var Yc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ol.is(s.location)&&Ze.string(s.message)}t.is=i})(Yc||(Yc={}));var Kt;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Kt||(Kt={}));var up;(function(t){t.Unnecessary=1,t.Deprecated=2})(up||(up={}));var fp;(function(t){function r(i){var o=i;return o!=null&&Ze.string(o.href)}t.is=r})(fp||(fp={}));var oa;(function(t){function r(o,s,p,m,S,w){var E={range:o,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(m)&&(E.code=m),Ze.defined(S)&&(E.source=S),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(o){var s,p=o;return Ze.defined(p)&&fr.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,Yc.is))}t.is=i})(oa||(oa={}));var Pl;(function(t){function r(o,s){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];var S={title:o,command:s};return Ze.defined(p)&&p.length>0&&(S.arguments=p),S}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(Pl||(Pl={}));var xi;(function(t){function r(p,m){return{range:p,newText:m}}t.replace=r;function i(p,m){return{range:{start:p,end:p},newText:m}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var m=p;return Ze.objectLiteral(m)&&Ze.string(m.newText)&&fr.is(m.range)}t.is=s})(xi||(xi={}));var ls;(function(t){function r(o,s,p){var m={label:o};return s!==void 0&&(m.needsConfirmation=s),p!==void 0&&(m.description=p),m}t.create=r;function i(o){var s=o;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})(ls||(ls={}));var yn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(yn||(yn={}));var Aa;(function(t){function r(p,m,S){return{range:p,newText:m,annotationId:S}}t.replace=r;function i(p,m,S){return{range:{start:p,end:p},newText:m,annotationId:S}}t.insert=i;function o(p,m){return{range:p,newText:"",annotationId:m}}t.del=o;function s(p){var m=p;return xi.is(m)&&(ls.is(m.annotationId)||yn.is(m.annotationId))}t.is=s})(Aa||(Aa={}));var vf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&yf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(vf||(vf={}));var Il;(function(t){function r(o,s,p){var m={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(o){var s=o;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||yn.is(s.annotationId))}t.is=i})(Il||(Il={}));var Fl;(function(t){function r(o,s,p,m){var S={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(S.options=p),m!==void 0&&(S.annotationId=m),S}t.create=r;function i(o){var s=o;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||yn.is(s.annotationId))}t.is=i})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p){var m={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(o){var s=o;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||yn.is(s.annotationId))}t.is=i})(kl||(kl={}));var Jc;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return Ze.string(s.kind)?Il.is(s)||Fl.is(s)||kl.is(s):vf.is(s)}))}t.is=r})(Jc||(Jc={}));var gf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,p;if(o===void 0?s=xi.insert(r,i):yn.is(o)?(p=o,s=Aa.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Aa.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,o){var s,p;if(o===void 0?s=xi.replace(r,i):yn.is(o)?(p=o,s=Aa.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Aa.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=xi.del(r):yn.is(i)?(s=i,o=Aa.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Aa.del(r,s)),this.edits.push(o),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}(),cp=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 o;if(yn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Dm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new cp(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(vf.is(o)){var s=new gf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new gf(r.changes[o]);i._textEditChanges[o]=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(yf.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},o=this._textEditChanges[i.uri];if(!o){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),o=new gf(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new gf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new cp,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,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;ls.is(i)||yn.is(i)?s=i:o=i;var p,m;if(s===void 0?p=Il.create(r,o):(m=yn.is(s)?s:this._changeAnnotations.manage(s),p=Il.create(r,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;ls.is(o)||yn.is(o)?p=o:s=o;var m,S;if(p===void 0?m=Fl.create(r,i,s):(S=yn.is(p)?p:this._changeAnnotations.manage(p),m=Fl.create(r,i,s,S)),this._workspaceEdit.documentChanges.push(m),S!==void 0)return S},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;ls.is(i)||yn.is(i)?s=i:o=i;var p,m;if(s===void 0?p=kl.create(r,o):(m=yn.is(s)?s:this._changeAnnotations.manage(s),p=kl.create(r,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t}(),dp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})(dp||(dp={}));var pp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(pp||(pp={}));var yf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(yf||(yf={}));var hp;(function(t){function r(o,s,p,m){return{uri:o,languageId:s,version:p,text:m}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(hp||(hp={}));var sa;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(sa||(sa={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(sa||(sa={}));var Xc;(function(t){function r(i){var o=i;return Ze.objectLiteral(i)&&sa.is(o.kind)&&Ze.string(o.value)}t.is=r})(Xc||(Xc={}));var Yn;(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})(Yn||(Yn={}));var _r;(function(t){t.PlainText=1,t.Snippet=2})(_r||(_r={}));var vp;(function(t){t.Deprecated=1})(vp||(vp={}));var gp;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function i(o){var s=o;return s&&Ze.string(s.newText)&&fr.is(s.insert)&&fr.is(s.replace)}t.is=i})(gp||(gp={}));var yp;(function(t){t.asIs=1,t.adjustIndentation=2})(yp||(yp={}));var Qc;(function(t){function r(i){return{label:i}}t.create=r})(Qc||(Qc={}));var mp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(mp||(mp={}));var mf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(mf||(mf={}));var xp;(function(t){function r(i){var o=i;return!!o&&Ze.objectLiteral(o)&&(Xc.is(o.contents)||mf.is(o.contents)||Ze.typedArray(o.contents,mf.is))&&(i.range===void 0||fr.is(i.range))}t.is=r})(xp||(xp={}));var bp;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(bp||(bp={}));var wp;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var m={label:i};return Ze.defined(o)&&(m.documentation=o),Ze.defined(s)?m.parameters=s:m.parameters=[],m}t.create=r})(wp||(wp={}));var Sp;(function(t){t.Text=1,t.Read=2,t.Write=3})(Sp||(Sp={}));var Ap;(function(t){function r(i,o){var s={range:i};return Ze.number(o)&&(s.kind=o),s}t.create=r})(Ap||(Ap={}));var Di;(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})(Di||(Di={}));var Ep;(function(t){t.Deprecated=1})(Ep||(Ep={}));var Cp;(function(t){function r(i,o,s,p,m){var S={name:i,kind:o,location:{uri:p,range:s}};return m&&(S.containerName=m),S}t.create=r})(Cp||(Cp={}));var Op;(function(t){function r(o,s,p,m,S,w){var E={name:o,detail:s,kind:p,range:m,selectionRange:S};return w!==void 0&&(E.children=w),E}t.create=r;function i(o){var s=o;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&fr.is(s.range)&&fr.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})(Op||(Op={}));var Tp;(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"})(Tp||(Tp={}));var Pp;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,oa.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(Pp||(Pp={}));var Ip;(function(t){function r(o,s,p){var m={title:o},S=!0;return typeof s=="string"?(S=!1,m.kind=s):Pl.is(s)?m.command=s:m.edit=s,S&&p!==void 0&&(m.kind=p),m}t.create=r;function i(o){var s=o;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,oa.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Pl.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||Jc.is(s.edit))}t.is=i})(Ip||(Ip={}));var Fp;(function(t){function r(o,s){var p={range:o};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.range)&&(Ze.undefined(s.command)||Pl.is(s.command))}t.is=i})(Fp||(Fp={}));var kp;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(kp||(kp={}));var Rp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(Rp||(Rp={}));var xf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&fr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(xf||(xf={}));var Nm=null,Mp;(function(t){function r(p,m,S,w){return new ng(p,m,S,w)}t.create=r;function i(p){var m=p;return!!(Ze.defined(m)&&Ze.string(m.uri)&&(Ze.undefined(m.languageId)||Ze.string(m.languageId))&&Ze.uinteger(m.lineCount)&&Ze.func(m.getText)&&Ze.func(m.positionAt)&&Ze.func(m.offsetAt))}t.is=i;function o(p,m){for(var S=p.getText(),w=s(m,function(ce,ge){var ve=ce.range.start.line-ge.range.start.line;return ve===0?ce.range.start.character-ge.range.start.character:ve}),E=S.length,k=w.length-1;k>=0;k--){var $=w[k],oe=p.offsetAt($.range.start),te=p.offsetAt($.range.end);if(te<=E)S=S.substring(0,oe)+$.newText+S.substring(te,S.length);else throw new Error("Overlapping edit");E=oe}return S}t.applyEdits=o;function s(p,m){if(p.length<=1)return p;var S=p.length/2|0,w=p.slice(0,S),E=p.slice(S);s(w,m),s(E,m);for(var k=0,$=0,oe=0;k<w.length&&$<E.length;){var te=m(w[k],E[$]);te<=0?p[oe++]=w[k++]:p[oe++]=E[$++]}for(;k<w.length;)p[oe++]=w[k++];for(;$<E.length;)p[oe++]=E[$++];return p}})(Mp||(Mp={}));var ng=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,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),o=this.offsetAt(r.end);return this._content.substring(i,o)}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,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var p=i.charAt(s);o=p==="\r"||p===`
346
+ `}function ep(t,r){return`\r
347
+ `.indexOf(t.charAt(r))!==-1}var Cl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Cl||(Cl={}));function Gv(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},m=!1;function A(w,E,k,$){p.value=w,p.offset=E,p.length=k,p.type=$,p.colonOffset=void 0,s=p}try{hf(t,{onObjectBegin:function(w,E){if(r<=w)throw o;s=void 0,m=r>w,i.push("")},onObjectProperty:function(w,E,k){if(r<E||(A(w,E,k,"property"),i[i.length-1]=w,r<=E+k))throw o},onObjectEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw o;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onLiteralValue:function(w,E,k){if(r<E||(A(w,E,k,np(w)),r<=E+k))throw o},onSeparator:function(w,E,k){if(r<=E)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=E,m=!1,s=void 0;else if(w===","){var $=i[i.length-1];typeof $=="number"?i[i.length-1]=$+1:(m=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:m,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 $v(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Cl.DEFAULT);var o=null,s=[],p=[];function m(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var A={onObjectBegin:function(){var w={};m(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];m(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:m,onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};return hf(t,A,i),s[0]}function Kv(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Cl.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var m={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,E,k){o=p({type:"property",offset:E,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:E,length:k,parent:o})},onObjectEnd:function(w,E){s(w+E),o.length=w+E-o.offset,o=o.parent,s(w+E)},onArrayBegin:function(w,E){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,E){o.length=w+E-o.offset,o=o.parent,s(w+E)},onLiteralValue:function(w,E,k){p({type:np(w),offset:E,length:k,parent:o,value:w}),s(E+k)},onSeparator:function(w,E,k){o.type==="property"&&(w===":"?o.colonOffset=E:w===","&&s(E))},onError:function(w,E,k){r.push({error:w,offset:E,length:k})}};hf(t,m,i);var A=o.children[0];return A&&delete A.parent,A}function Yv(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var m=!1,A=0,w=i.children;A<w.length;A++){var E=w[A];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],m=!0;break}}if(!m)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 tp(t){if(!t.parent||!t.parent.children)return[];var r=tp(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function Kc(t){switch(t.type){case"array":return t.children.map(Kc);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],p=s.children[1];p&&(r[s.children[0].value]=Kc(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function Jv(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function rp(t,r,i){if(i===void 0&&(i=!1),Jv(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=rp(o[s],r,i);if(p)return p}return t}}function hf(t,r,i){i===void 0&&(i=Cl.DEFAULT);var o=pf(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Xe){return We(Xe,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var m=s(r.onObjectBegin),A=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),k=s(r.onArrayEnd),$=p(r.onLiteralValue),ie=p(r.onSeparator),ne=s(r.onComment),ce=p(r.onError),ge=i&&i.disallowComments,ve=i&&i.allowTrailingComma;function Se(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:be(14);break;case 5:be(15);break;case 3:be(13);break;case 1:ge||be(11);break;case 2:be(12);break;case 6:be(16);break}switch(We){case 12:case 13:ge?be(10):ne();break;case 16:be(1);break;case 15:case 14:break;default:return We}}}function be(We,Xe,ze){if(Xe===void 0&&(Xe=[]),ze===void 0&&(ze=[]),ce(We),Xe.length+ze.length>0)for(var qe=o.getToken();qe!==17;){if(Xe.indexOf(qe)!==-1){Se();break}else if(ze.indexOf(qe)!==-1)break;qe=Se()}}function Te(We){var Xe=o.getTokenValue();return We?$(Xe):A(Xe),Se(),!0}function $e(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Xe=Number(We);isNaN(Xe)&&(be(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 o.getToken()!==10?(be(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(ie(":"),Se(),je()||be(4,[],[2,5])):be(5,[],[2,5]),!0)}function He(){m(),Se();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||be(4,[],[]),ie(","),Se(),o.getToken()===2&&ve)break}else We&&be(6,[],[]);Ue()||be(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?be(7,[2],[]):Se(),!0}function Be(){E(),Se();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||be(4,[],[]),ie(","),Se(),o.getToken()===4&&ve)break}else We&&be(6,[],[]);je()||be(4,[],[4,5]),We=!0}return k(),o.getToken()!==4?be(8,[4],[]):Se(),!0}function je(){switch(o.getToken()){case 3:return Be();case 1:return He();case 10:return Te(!0);default:return $e()}}return Se(),o.getToken()===17?i.allowEmptyContent?!0:(be(4,[],[]),!1):je()?(o.getToken()!==17&&be(9,[],[]),!0):(be(4,[],[]),!1)}function Xv(t,r){var i=pf(t),o=[],s,p=0,m;do switch(m=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==m&&o.push(t.substring(p,m)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function np(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 Cm(t,r,i){return Qv(t,r,void 0,i)}function Qv(t,r,i,o){for(var s,p=r.slice(),m=[],A=parseTree(t,m),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(A,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),ie=void 0,ne=k.parent.offset+k.parent.length;if($>0){var ce=w.children[$-1];ie=ce.offset+ce.length}else if(ie=w.offset+1,w.children.length>1){var ge=w.children[1];ne=ge.offset}return lo(t,{offset:ie,length:ne-ie,content:""},o)}else return lo(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var ve=JSON.stringify(E)+": "+JSON.stringify(i),Se=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,be=void 0;if(Se>0){var ce=w.children[Se-1];be={offset:ce.offset+ce.length,length:0,content:","+ve}}else w.children.length===0?be={offset:w.offset+1,length:0,content:ve}:be={offset:w.offset+1,length:0,content:ve+","};return lo(t,be,o)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-1){var ve=""+JSON.stringify(i),be=void 0;if(w.children.length===0)be={offset:w.offset+1,length:0,content:ve};else{var ce=w.children[w.children.length-1];be={offset:ce.offset+ce.length,length:0,content:","+ve}}return lo(t,be,o)}else if(i===void 0&&w.children.length>=0){var $e=E,Ue=w.children[$e],be=void 0;if(w.children.length===1)be={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===$e){var ce=w.children[$e-1],He=ce.offset+ce.length,Be=w.offset+w.length;be={offset:He,length:Be-2-He,content:""}}else be={offset:Ue.offset,length:w.children[$e+1].offset-Ue.offset,content:""};return lo(t,be,o)}else if(i!==void 0){var be=void 0,ve=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>E){var je=w.children[E];be={offset:je.offset,length:je.length,content:ve}}else if(w.children.length===0||E===0)be={offset:w.offset+1,length:0,content:w.children.length===0?ve:ve+","};else{var Se=E>w.children.length?w.children.length:E,ce=w.children[Se-1];be={offset:ce.offset+ce.length,length:0,content:","+ve}}return lo(t,be,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+Te+" 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 lo(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},o)}}function lo(t,r,i){if(!i.formattingOptions)return[r];var o=ip(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var m=format(o,{offset:s,length:p-s},i.formattingOptions),A=m.length-1;A>=0;A--){var w=m[A];o=ip(o,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-(o.length-p)-s;return[{offset:s,length:E,content:o.substring(s,p)}]}function ip(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Om(t,r){return`\r
348
+ `.indexOf(t.charAt(r))!==-1}var os=pf,Tm=Gv,Zv=$v,Pm=Kv,Im=Yv,_v=rp,qv=tp,eg=Kc,Fm=hf,km=Xv;function Rm(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 tg(t,r,i){return Wv(t,r,i)}function Mm(t,r,i,o){return edit.setProperty(t,r,i,o)}function Lm(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Ol(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,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Ol(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!Ol(s,p))return!1;for(i=0;i<s.length;i++)if(!Ol(t[s[i]],r[s[i]]))return!1}return!0}function Kn(t){return typeof t=="number"}function na(t){return typeof t!="undefined"}function Ri(t){return typeof t=="boolean"}function rg(t){return typeof t=="string"}var ap;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(ap||(ap={}));var vf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(vf||(vf={}));var gi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=vf.MAX_VALUE),s===Number.MAX_VALUE&&(s=vf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return Ze.objectLiteral(s)&&Ze.uinteger(s.line)&&Ze.uinteger(s.character)}t.is=i})(gi||(gi={}));var fr;(function(t){function r(o,s,p,m){if(Ze.uinteger(o)&&Ze.uinteger(s)&&Ze.uinteger(p)&&Ze.uinteger(m))return{start:gi.create(o,s),end:gi.create(p,m)};if(gi.is(o)&&gi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+m+"]")}t.create=r;function i(o){var s=o;return Ze.objectLiteral(s)&&gi.is(s.start)&&gi.is(s.end)}t.is=i})(fr||(fr={}));var Tl;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.range)&&(Ze.string(s.uri)||Ze.undefined(s.uri))}t.is=i})(Tl||(Tl={}));var op;(function(t){function r(o,s,p,m){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:m}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.targetRange)&&Ze.string(s.targetUri)&&(fr.is(s.targetSelectionRange)||Ze.undefined(s.targetSelectionRange))&&(fr.is(s.originSelectionRange)||Ze.undefined(s.originSelectionRange))}t.is=i})(op||(op={}));var Yc;(function(t){function r(o,s,p,m){return{red:o,green:s,blue:p,alpha:m}}t.create=r;function i(o){var s=o;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})(Yc||(Yc={}));var sp;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return fr.is(s.range)&&Yc.is(s.color)}t.is=i})(sp||(sp={}));var lp;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return Ze.string(s.label)&&(Ze.undefined(s.textEdit)||yi.is(s))&&(Ze.undefined(s.additionalTextEdits)||Ze.typedArray(s.additionalTextEdits,yi.is))}t.is=i})(lp||(lp={}));var Pl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Pl||(Pl={}));var up;(function(t){function r(o,s,p,m,A){var w={startLine:o,endLine:s};return Ze.defined(p)&&(w.startCharacter=p),Ze.defined(m)&&(w.endCharacter=m),Ze.defined(A)&&(w.kind=A),w}t.create=r;function i(o){var s=o;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})(up||(up={}));var Jc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Tl.is(s.location)&&Ze.string(s.message)}t.is=i})(Jc||(Jc={}));var Kt;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Kt||(Kt={}));var fp;(function(t){t.Unnecessary=1,t.Deprecated=2})(fp||(fp={}));var cp;(function(t){function r(i){var o=i;return o!=null&&Ze.string(o.href)}t.is=r})(cp||(cp={}));var ia;(function(t){function r(o,s,p,m,A,w){var E={range:o,message:s};return Ze.defined(p)&&(E.severity=p),Ze.defined(m)&&(E.code=m),Ze.defined(A)&&(E.source=A),Ze.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(o){var s,p=o;return Ze.defined(p)&&fr.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,Jc.is))}t.is=i})(ia||(ia={}));var Il;(function(t){function r(o,s){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];var A={title:o,command:s};return Ze.defined(p)&&p.length>0&&(A.arguments=p),A}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.title)&&Ze.string(s.command)}t.is=i})(Il||(Il={}));var yi;(function(t){function r(p,m){return{range:p,newText:m}}t.replace=r;function i(p,m){return{range:{start:p,end:p},newText:m}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var m=p;return Ze.objectLiteral(m)&&Ze.string(m.newText)&&fr.is(m.range)}t.is=s})(yi||(yi={}));var ss;(function(t){function r(o,s,p){var m={label:o};return s!==void 0&&(m.needsConfirmation=s),p!==void 0&&(m.description=p),m}t.create=r;function i(o){var s=o;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})(ss||(ss={}));var yn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(yn||(yn={}));var Aa;(function(t){function r(p,m,A){return{range:p,newText:m,annotationId:A}}t.replace=r;function i(p,m,A){return{range:{start:p,end:p},newText:m,annotationId:A}}t.insert=i;function o(p,m){return{range:p,newText:"",annotationId:m}}t.del=o;function s(p){var m=p;return yi.is(m)&&(ss.is(m.annotationId)||yn.is(m.annotationId))}t.is=s})(Aa||(Aa={}));var gf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&mf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(gf||(gf={}));var Fl;(function(t){function r(o,s,p){var m={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(o){var s=o;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||yn.is(s.annotationId))}t.is=i})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p,m){var A={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(A.options=p),m!==void 0&&(A.annotationId=m),A}t.create=r;function i(o){var s=o;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||yn.is(s.annotationId))}t.is=i})(kl||(kl={}));var Rl;(function(t){function r(o,s,p){var m={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(o){var s=o;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||yn.is(s.annotationId))}t.is=i})(Rl||(Rl={}));var Xc;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return Ze.string(s.kind)?Fl.is(s)||kl.is(s)||Rl.is(s):gf.is(s)}))}t.is=r})(Xc||(Xc={}));var yf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,p;if(o===void 0?s=yi.insert(r,i):yn.is(o)?(p=o,s=Aa.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Aa.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,o){var s,p;if(o===void 0?s=yi.replace(r,i):yn.is(o)?(p=o,s=Aa.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Aa.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=yi.del(r):yn.is(i)?(s=i,o=Aa.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Aa.del(r,s)),this.edits.push(o),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}(),dp=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 o;if(yn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Dm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new dp(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(gf.is(o)){var s=new yf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new yf(r.changes[o]);i._textEditChanges[o]=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(mf.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},o=this._textEditChanges[i.uri];if(!o){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),o=new yf(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new yf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new dp,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,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;ss.is(i)||yn.is(i)?s=i:o=i;var p,m;if(s===void 0?p=Fl.create(r,o):(m=yn.is(s)?s:this._changeAnnotations.manage(s),p=Fl.create(r,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;ss.is(o)||yn.is(o)?p=o:s=o;var m,A;if(p===void 0?m=kl.create(r,i,s):(A=yn.is(p)?p:this._changeAnnotations.manage(p),m=kl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(m),A!==void 0)return A},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;ss.is(i)||yn.is(i)?s=i:o=i;var p,m;if(s===void 0?p=Rl.create(r,o):(m=yn.is(s)?s:this._changeAnnotations.manage(s),p=Rl.create(r,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t}(),pp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)}t.is=i})(pp||(pp={}));var hp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.integer(s.version)}t.is=i})(hp||(hp={}));var mf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&(s.version===null||Ze.integer(s.version))}t.is=i})(mf||(mf={}));var vp;(function(t){function r(o,s,p,m){return{uri:o,languageId:s,version:p,text:m}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.string(s.uri)&&Ze.string(s.languageId)&&Ze.integer(s.version)&&Ze.string(s.text)}t.is=i})(vp||(vp={}));var aa;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(aa||(aa={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(aa||(aa={}));var Qc;(function(t){function r(i){var o=i;return Ze.objectLiteral(i)&&aa.is(o.kind)&&Ze.string(o.value)}t.is=r})(Qc||(Qc={}));var Yn;(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})(Yn||(Yn={}));var Zr;(function(t){t.PlainText=1,t.Snippet=2})(Zr||(Zr={}));var gp;(function(t){t.Deprecated=1})(gp||(gp={}));var yp;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function i(o){var s=o;return s&&Ze.string(s.newText)&&fr.is(s.insert)&&fr.is(s.replace)}t.is=i})(yp||(yp={}));var mp;(function(t){t.asIs=1,t.adjustIndentation=2})(mp||(mp={}));var Zc;(function(t){function r(i){return{label:i}}t.create=r})(Zc||(Zc={}));var xp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(xp||(xp={}));var xf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return Ze.string(s)||Ze.objectLiteral(s)&&Ze.string(s.language)&&Ze.string(s.value)}t.is=i})(xf||(xf={}));var bp;(function(t){function r(i){var o=i;return!!o&&Ze.objectLiteral(o)&&(Qc.is(o.contents)||xf.is(o.contents)||Ze.typedArray(o.contents,xf.is))&&(i.range===void 0||fr.is(i.range))}t.is=r})(bp||(bp={}));var wp;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(wp||(wp={}));var Sp;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var m={label:i};return Ze.defined(o)&&(m.documentation=o),Ze.defined(s)?m.parameters=s:m.parameters=[],m}t.create=r})(Sp||(Sp={}));var Ap;(function(t){t.Text=1,t.Read=2,t.Write=3})(Ap||(Ap={}));var Ep;(function(t){function r(i,o){var s={range:i};return Ze.number(o)&&(s.kind=o),s}t.create=r})(Ep||(Ep={}));var Mi;(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})(Mi||(Mi={}));var Cp;(function(t){t.Deprecated=1})(Cp||(Cp={}));var Op;(function(t){function r(i,o,s,p,m){var A={name:i,kind:o,location:{uri:p,range:s}};return m&&(A.containerName=m),A}t.create=r})(Op||(Op={}));var Tp;(function(t){function r(o,s,p,m,A,w){var E={name:o,detail:s,kind:p,range:m,selectionRange:A};return w!==void 0&&(E.children=w),E}t.create=r;function i(o){var s=o;return s&&Ze.string(s.name)&&Ze.number(s.kind)&&fr.is(s.range)&&fr.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})(Tp||(Tp={}));var Pp;(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"})(Pp||(Pp={}));var Ip;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.typedArray(s.diagnostics,ia.is)&&(s.only===void 0||Ze.typedArray(s.only,Ze.string))}t.is=i})(Ip||(Ip={}));var Fp;(function(t){function r(o,s,p){var m={title:o},A=!0;return typeof s=="string"?(A=!1,m.kind=s):Il.is(s)?m.command=s:m.edit=s,A&&p!==void 0&&(m.kind=p),m}t.create=r;function i(o){var s=o;return s&&Ze.string(s.title)&&(s.diagnostics===void 0||Ze.typedArray(s.diagnostics,ia.is))&&(s.kind===void 0||Ze.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Il.is(s.command))&&(s.isPreferred===void 0||Ze.boolean(s.isPreferred))&&(s.edit===void 0||Xc.is(s.edit))}t.is=i})(Fp||(Fp={}));var kp;(function(t){function r(o,s){var p={range:o};return Ze.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.range)&&(Ze.undefined(s.command)||Il.is(s.command))}t.is=i})(kp||(kp={}));var Rp;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&Ze.uinteger(s.tabSize)&&Ze.boolean(s.insertSpaces)}t.is=i})(Rp||(Rp={}));var Mp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return Ze.defined(s)&&fr.is(s.range)&&(Ze.undefined(s.target)||Ze.string(s.target))}t.is=i})(Mp||(Mp={}));var bf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&fr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(bf||(bf={}));var Nm=null,Lp;(function(t){function r(p,m,A,w){return new ng(p,m,A,w)}t.create=r;function i(p){var m=p;return!!(Ze.defined(m)&&Ze.string(m.uri)&&(Ze.undefined(m.languageId)||Ze.string(m.languageId))&&Ze.uinteger(m.lineCount)&&Ze.func(m.getText)&&Ze.func(m.positionAt)&&Ze.func(m.offsetAt))}t.is=i;function o(p,m){for(var A=p.getText(),w=s(m,function(ce,ge){var ve=ce.range.start.line-ge.range.start.line;return ve===0?ce.range.start.character-ge.range.start.character:ve}),E=A.length,k=w.length-1;k>=0;k--){var $=w[k],ie=p.offsetAt($.range.start),ne=p.offsetAt($.range.end);if(ne<=E)A=A.substring(0,ie)+$.newText+A.substring(ne,A.length);else throw new Error("Overlapping edit");E=ie}return A}t.applyEdits=o;function s(p,m){if(p.length<=1)return p;var A=p.length/2|0,w=p.slice(0,A),E=p.slice(A);s(w,m),s(E,m);for(var k=0,$=0,ie=0;k<w.length&&$<E.length;){var ne=m(w[k],E[$]);ne<=0?p[ie++]=w[k++]:p[ie++]=E[$++]}for(;k<w.length;)p[ie++]=w[k++];for(;$<E.length;)p[ie++]=E[$++];return p}})(Lp||(Lp={}));var ng=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,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),o=this.offsetAt(r.end);return this._content.substring(i,o)}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,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var p=i.charAt(s);o=p==="\r"||p===`
349
349
  `,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
350
- `&&s++}o&&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(),o=0,s=i.length;if(s===0)return mi.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var m=o-1;return mi.create(m,r-i[m])},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 o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},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(te){return typeof te!="undefined"}t.defined=i;function o(te){return typeof te=="undefined"}t.undefined=o;function s(te){return te===!0||te===!1}t.boolean=s;function p(te){return r.call(te)==="[object String]"}t.string=p;function m(te){return r.call(te)==="[object Number]"}t.number=m;function S(te,ce,ge){return r.call(te)==="[object Number]"&&ce<=te&&te<=ge}t.numberRange=S;function w(te){return r.call(te)==="[object Number]"&&-2147483648<=te&&te<=2147483647}t.integer=w;function E(te){return r.call(te)==="[object Number]"&&0<=te&&te<=2147483647}t.uinteger=E;function k(te){return r.call(te)==="[object Function]"}t.func=k;function $(te){return te!==null&&typeof te=="object"}t.objectLiteral=$;function oe(te,ce){return Array.isArray(te)&&te.every(ce)}t.typedArray=oe})(Ze||(Ze={}));var Lp=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,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),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var m=Np(p.range),S=this.offsetAt(m.start),w=this.offsetAt(m.end);this._content=this._content.substring(0,S)+p.text+this._content.substring(w,this._content.length);var E=Math.max(m.start.line,0),k=Math.max(m.end.line,0),$=this._lineOffsets,oe=Dp(p.text,!1,S);if(k-E===oe.length)for(var te=0,ce=oe.length;te<ce;te++)$[te+E+1]=oe[te];else oe.length<1e4?$.splice.apply($,[E+1,k-E].concat(oe)):this._lineOffsets=$=$.slice(0,E+1).concat(oe,$.slice(k+1));var ge=p.text.length-(w-S);if(ge!==0)for(var te=E+1+oe.length,ce=$.length;te<ce;te++)$[te]=$[te]+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=Dp(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var m=o-1;return{line:m,character:r-i[m]}},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 o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},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}(),bf;(function(t){function r(s,p,m,S){return new Lp(s,p,m,S)}t.create=r;function i(s,p,m){if(s instanceof Lp)return s.update(p,m),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var m=s.getText(),S=Zc(p.map(ig),function(ce,ge){var ve=ce.range.start.line-ge.range.start.line;return ve===0?ce.range.start.character-ge.range.start.character:ve}),w=0,E=[],k=0,$=S;k<$.length;k++){var oe=$[k],te=s.offsetAt(oe.range.start);if(te<w)throw new Error("Overlapping edit");te>w&&E.push(m.substring(w,te)),oe.newText.length&&E.push(oe.newText),w=s.offsetAt(oe.range.end)}return E.push(m.substr(w)),E.join("")}t.applyEdits=o})(bf||(bf={}));function Zc(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);Zc(o,r),Zc(s,r);for(var p=0,m=0,S=0;p<o.length&&m<s.length;){var w=r(o[p],s[m]);w<=0?t[S++]=o[p++]:t[S++]=s[m++]}for(;p<o.length;)t[S++]=o[p++];for(;m<s.length;)t[S++]=s[m++];return t}function Dp(t,r,i){i===void 0&&(i=0);for(var o=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++,o.push(i+s+1))}return o}function Np(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 ig(t){var r=Np(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var rr;(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"})(rr||(rr={}));var Bp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[sa.Markdown,sa.PlainText],commitCharactersSupport:!0}}}}})(Bp||(Bp={}));var uo=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),ag={"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,}))$/}},fo=function(){function t(r,i,o){this.offset=i,this.length=o,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}(),og=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(fo),Up=function(t){uo(r,t);function r(i,o,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=o,p}return r}(fo),sg=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(fo),lg=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(fo),jp=function(t){uo(r,t);function r(i,o,s){var p=t.call(this,i,o,s)||this;return p.type="string",p.value="",p}return r}(fo),ug=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||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}(fo),fg=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(fo);function Rn(t){return Li(t)?t?{}:{not:{}}:t}var Vp;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Vp||(Vp={}));var cg=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||Wp(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),_c=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}(),Mn=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,o=r;i<o.length;i++){var s=o[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,o=this.problems;i<o.length;i++){var s=o[i];s.code===rr.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 dg(t,r){return r===void 0&&(r=[]),new Hp(t,r,[])}function Ea(t){return eg(t)}function qc(t){return qv(t)}function Wp(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Hp=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return _v(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var m=0;m<p.length&&s;m++)s=i(p[m]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Mn;return pn(this.root,i,o,_c.instance),o.problems.map(function(s){var p=fr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return oa.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new cg(i,o);return this.root&&r&&pn(this.root,r,new Mn,s),s.schemas},t}();function pn(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,i,o);break;case"array":S(t,r,i,o);break;case"string":m(t,r,i,o);break;case"number":p(t,r,i,o);break;case"property":return pn(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function E(qe){return t.type===qe||qe==="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:Kt.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:Kt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,$=r.allOf;k<$.length;k++){var oe=$[k];pn(t,Rn(oe),i,o)}var te=Rn(r.not);if(te){var ce=new Mn,ge=o.newSub();pn(t,te,ce,ge),ce.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Kt.Warning,message:"Matches a schema that is not allowed."});for(var ve=0,Se=ge.schemas;ve<Se.length;ve++){var be=Se[ve];be.inverted=!be.inverted,o.add(be)}}var Te=function(qe,At){for(var Bt=[],zt=null,sr=0,Ir=qe;sr<Ir.length;sr++){var Ar=Ir[sr],Yr=Rn(Ar),wr=new Mn,Lr=o.newSub();if(pn(t,Yr,wr,Lr),wr.hasProblems()||Bt.push(Yr),!zt)zt={schema:Yr,validationResult:wr,matchingSchemas:Lr};else if(!At&&!wr.hasProblems()&&!zt.validationResult.hasProblems())zt.matchingSchemas.merge(Lr),zt.validationResult.propertiesMatches+=wr.propertiesMatches,zt.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var mn=wr.compare(zt.validationResult);mn>0?zt={schema:Yr,validationResult:wr,matchingSchemas:Lr}:mn===0&&(zt.matchingSchemas.merge(Lr),zt.validationResult.mergeEnumValues(wr))}}return Bt.length>1&&At&&i.problems.push({location:{offset:t.offset,length:1},severity:Kt.Warning,message:"Matches multiple schemas when only one must validate."}),zt!==null&&(i.merge(zt.validationResult),i.propertiesMatches+=zt.validationResult.propertiesMatches,i.propertiesValueMatches+=zt.validationResult.propertiesValueMatches,o.merge(zt.matchingSchemas)),Bt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var Ge=function(qe){var At=new Mn,Bt=o.newSub();pn(t,Rn(qe),At,Bt),i.merge(At),i.propertiesMatches+=At.propertiesMatches,i.propertiesValueMatches+=At.propertiesValueMatches,o.merge(Bt)},Ue=function(qe,At,Bt){var zt=Rn(qe),sr=new Mn,Ir=o.newSub();pn(t,zt,sr,Ir),o.merge(Ir),sr.hasProblems()?Bt&&Ge(Bt):At&&Ge(At)},He=Rn(r.if);if(He&&Ue(He,Rn(r.then),Rn(r.else)),Array.isArray(r.enum)){for(var Be=Ea(t),je=!1,We=0,Xe=r.enum;We<Xe.length;We++){var ze=Xe[We];if(Cl(Be,ze)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Kt.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(qe){return JSON.stringify(qe)}).join(", ")+"."})}if(aa(r.const)){var Be=Ea(t);Cl(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Kt.Warning,code:rr.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:Kt.Warning,message:r.deprecationMessage})}function p(E,k,$,oe){var te=E.value;Kn(k.multipleOf)&&te%k.multipleOf!=0&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function ce(Ge,Ue){if(Kn(Ue))return Ue;if(Li(Ue)&&Ue)return Ge}function ge(Ge,Ue){if(!Li(Ue)||!Ue)return Ge}var ve=ce(k.minimum,k.exclusiveMinimum);Kn(ve)&&te<=ve&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is below the exclusive minimum of "+ve+"."});var Se=ce(k.maximum,k.exclusiveMaximum);Kn(Se)&&te>=Se&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var be=ge(k.minimum,k.exclusiveMinimum);Kn(be)&&te<be&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is below the minimum of "+be+"."});var Te=ge(k.maximum,k.exclusiveMaximum);Kn(Te)&&te>Te&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is above the maximum of "+Te+"."})}function m(E,k,$,oe){if(Kn(k.minLength)&&E.value.length<k.minLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),Kn(k.maxLength)&&E.value.length>k.maxLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),rg(k.pattern)){var te=new RegExp(k.pattern);te.test(E.value)||$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.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 ce=void 0;if(!E.value)ce="URI expected.";else{var ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ge?!ge[2]&&k.format==="uri"&&(ce="URI with a scheme is expected."):ce="URI is expected."}ce&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+ce})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ve=ag[k.format];(!E.value||!ve.pattern.exec(E.value))&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:k.patternErrorMessage||k.errorMessage||ve.errorMessage});break;default:}}function S(E,k,$,oe){if(Array.isArray(k.items)){for(var te=k.items,ce=0;ce<te.length;ce++){var ge=te[ce],ve=Rn(ge),Se=new Mn,be=E.items[ce];be?(pn(be,ve,Se,oe),$.mergePropertyMatch(Se)):E.items.length>=te.length&&$.propertiesValueMatches++}if(E.items.length>te.length)if(typeof k.additionalItems=="object")for(var Te=te.length;Te<E.items.length;Te++){var Se=new Mn;pn(E.items[Te],k.additionalItems,Se,oe),$.mergePropertyMatch(Se)}else k.additionalItems===!1&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has too many items according to schema. Expected "+te.length+" or fewer."})}else{var Ge=Rn(k.items);if(Ge)for(var Ue=0,He=E.items;Ue<He.length;Ue++){var be=He[Ue],Se=new Mn;pn(be,Ge,Se,oe),$.mergePropertyMatch(Se)}}var Be=Rn(k.contains);if(Be){var je=E.items.some(function(ze){var qe=new Mn;return pn(ze,Be,qe,_c.instance),!qe.hasProblems()});je||$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:k.errorMessage||"Array does not contain required item."})}if(Kn(k.minItems)&&E.items.length<k.minItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),Kn(k.maxItems)&&E.items.length>k.maxItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=Ea(E),Xe=We.some(function(ze,qe){return qe!==We.lastIndexOf(ze)});Xe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has duplicate items."})}}function w(E,k,$,oe){for(var te=Object.create(null),ce=[],ge=0,ve=E.properties;ge<ve.length;ge++){var Se=ve[ge],be=Se.keyNode.value;te[be]=Se.valueNode,ce.push(be)}if(Array.isArray(k.required))for(var Te=0,Ge=k.required;Te<Ge.length;Te++){var Ue=Ge[Te];if(!te[Ue]){var He=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=He?{offset:He.offset,length:He.length}:{offset:E.offset,length:1};$.problems.push({location:Be,severity:Kt.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(wi){for(var Dl=ce.indexOf(wi);Dl>=0;)ce.splice(Dl,1),Dl=ce.indexOf(wi)};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],qe=te[Ue];if(qe)if(Li(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=qe.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Kt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var At=new Mn;pn(qe,ze,At,oe),$.mergePropertyMatch(At)}}if(k.patternProperties)for(var Bt=0,zt=Object.keys(k.patternProperties);Bt<zt.length;Bt++)for(var sr=zt[Bt],Ir=new RegExp(sr),Ar=0,Yr=ce.slice(0);Ar<Yr.length;Ar++){var Ue=Yr[Ar];if(Ir.test(Ue)){je(Ue);var qe=te[Ue];if(qe){var ze=k.patternProperties[sr];if(Li(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=qe.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Kt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var At=new Mn;pn(qe,ze,At,oe),$.mergePropertyMatch(At)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Lr=ce;wr<Lr.length;wr++){var Ue=Lr[wr],qe=te[Ue];if(qe){var At=new Mn;pn(qe,k.additionalProperties,At,oe),$.mergePropertyMatch(At)}}else if(k.additionalProperties===!1&&ce.length>0)for(var mn=0,Jt=ce;mn<Jt.length;mn++){var Ue=Jt[mn],qe=te[Ue];if(qe){var Se=qe.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Kt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}}if(Kn(k.maxProperties)&&E.properties.length>k.maxProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),Kn(k.minProperties)&&E.properties.length<k.minProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Mt=0,jt=Object.keys(k.dependencies);Mt<jt.length;Mt++){var be=jt[Mt],lr=te[be];if(lr){var nn=k.dependencies[be];if(Array.isArray(nn))for(var yr=0,ps=nn;yr<ps.length;yr++){var Ml=ps[yr];te[Ml]?$.propertiesValueMatches++:$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Object is missing property "+Ml+" required by property {$key}."})}else{var ze=Rn(nn);if(ze){var At=new Mn;pn(E,ze,At,oe),$.mergePropertyMatch(At)}}}}var po=Rn(k.propertyNames);if(po)for(var Ni=0,Ll=E.properties;Ni<Ll.length;Ni++){var Pf=Ll[Ni],be=Pf.keyNode;be&&pn(be,po,$,_c.instance)}}}function pg(t,r){var i=[],o=-1,s=t.getText(),p=ss(s,!1),m=r&&r.collectComments?[]:void 0;function S(){for(;;){var He=p.scan();switch($(),He){case 12:case 13:Array.isArray(m)&&m.push(fr.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return He}}}function w(He){return p.getToken()===He?(S(),!0):!1}function E(He,Be,je,We,Xe){if(Xe===void 0&&(Xe=Kt.Error),i.length===0||je!==o){var ze=fr.create(t.positionAt(je),t.positionAt(We));i.push(oa.create(ze,He,Xe,Be,t.languageId)),o=je}}function k(He,Be,je,We,Xe){je===void 0&&(je=null),We===void 0&&(We=[]),Xe===void 0&&(Xe=[]);var ze=p.getTokenOffset(),qe=p.getTokenOffset()+p.getTokenLength();if(ze===qe&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;qe=ze+1}if(E(He,Be,ze,qe),je&&oe(je,!1),We.length+Xe.length>0)for(var At=p.getToken();At!==17;){if(We.indexOf(At)!==-1){S();break}else if(Xe.indexOf(At)!==-1)break;At=S()}return je}function $(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",rr.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",rr.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",rr.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",rr.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",rr.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",rr.InvalidCharacter),!0}return!1}function oe(He,Be){return He.length=p.getTokenOffset()+p.getTokenLength()-He.offset,Be&&S(),He}function te(He){if(p.getToken()!==3)return null;var Be=new sg(He,p.getTokenOffset());S();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",rr.ValueExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===4){We&&E("Trailing comma",rr.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",rr.CommaExpected);var ze=Te(Be,je++);ze?Be.items.push(ze):k("Value expected",rr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",rr.CommaOrCloseBacketExpected,Be):oe(Be,!0)}function ce(He,Be){var je=new ug(He,p.getTokenOffset()),We=ve(je);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",rr.Undefined);var Xe=new jp(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",rr.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Kt.Warning),typeof ze=="object"&&E("DuplicateKeyWarning",rr.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,Kt.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),S();else if(k("Colon expected",rr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var qe=Te(je,We.value);return qe?(je.valueNode=qe,je.length=qe.offset+qe.length-je.offset,je):k("Value expected",rr.ValueExpected,je,[],[2,5])}function ge(He){if(p.getToken()!==1)return null;var Be=new fg(He,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",rr.PropertyExpected);var Xe=p.getTokenOffset();if(S(),p.getToken()===2){We&&E("Trailing comma",rr.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",rr.CommaExpected);var ze=ce(Be,je);ze?Be.properties.push(ze):k("Property expected",rr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",rr.CommaOrCloseBraceExpected,Be):oe(Be,!0)}function ve(He){if(p.getToken()!==10)return null;var Be=new jp(He,p.getTokenOffset());return Be.value=p.getTokenValue(),oe(Be,!0)}function Se(He){if(p.getToken()!==11)return null;var Be=new lg(He,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!Kn(We))return k("Invalid number format.",rr.Undefined,Be);Be.value=We}catch(Xe){return k("Invalid number format.",rr.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return oe(Be,!0)}function be(He){var Be;switch(p.getToken()){case 7:return oe(new og(He,p.getTokenOffset()),!0);case 8:return oe(new Up(He,!0,p.getTokenOffset()),!0);case 9:return oe(new Up(He,!1,p.getTokenOffset()),!0);default:return null}}function Te(He,Be){return te(He)||ge(He)||ve(He)||Se(He)||be(He)}var Ge=null,Ue=S();return Ue!==17&&(Ge=Te(null,null),Ge?p.getToken()!==17&&k("End of file expected.",rr.Undefined):k("Expected a JSON object, array or literal.",rr.Undefined)),new Hp(Ge,i,m)}function ed(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
351
- `,p=0;p<t.length;p++)s+=o+ed(t[p],o,i),p<t.length-1&&(s+=","),s+=`
350
+ `&&s++}o&&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(),o=0,s=i.length;if(s===0)return gi.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var m=o-1;return gi.create(m,r-i[m])},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 o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},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(ne){return typeof ne!="undefined"}t.defined=i;function o(ne){return typeof ne=="undefined"}t.undefined=o;function s(ne){return ne===!0||ne===!1}t.boolean=s;function p(ne){return r.call(ne)==="[object String]"}t.string=p;function m(ne){return r.call(ne)==="[object Number]"}t.number=m;function A(ne,ce,ge){return r.call(ne)==="[object Number]"&&ce<=ne&&ne<=ge}t.numberRange=A;function w(ne){return r.call(ne)==="[object Number]"&&-2147483648<=ne&&ne<=2147483647}t.integer=w;function E(ne){return r.call(ne)==="[object Number]"&&0<=ne&&ne<=2147483647}t.uinteger=E;function k(ne){return r.call(ne)==="[object Function]"}t.func=k;function $(ne){return ne!==null&&typeof ne=="object"}t.objectLiteral=$;function ie(ne,ce){return Array.isArray(ne)&&ne.every(ce)}t.typedArray=ie})(Ze||(Ze={}));var Dp=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,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),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var m=Bp(p.range),A=this.offsetAt(m.start),w=this.offsetAt(m.end);this._content=this._content.substring(0,A)+p.text+this._content.substring(w,this._content.length);var E=Math.max(m.start.line,0),k=Math.max(m.end.line,0),$=this._lineOffsets,ie=Np(p.text,!1,A);if(k-E===ie.length)for(var ne=0,ce=ie.length;ne<ce;ne++)$[ne+E+1]=ie[ne];else ie.length<1e4?$.splice.apply($,[E+1,k-E].concat(ie)):this._lineOffsets=$=$.slice(0,E+1).concat(ie,$.slice(k+1));var ge=p.text.length-(w-A);if(ge!==0)for(var ne=E+1+ie.length,ce=$.length;ne<ce;ne++)$[ne]=$[ne]+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=Np(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var m=o-1;return{line:m,character:r-i[m]}},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 o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},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}(),wf;(function(t){function r(s,p,m,A){return new Dp(s,p,m,A)}t.create=r;function i(s,p,m){if(s instanceof Dp)return s.update(p,m),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var m=s.getText(),A=_c(p.map(ig),function(ce,ge){var ve=ce.range.start.line-ge.range.start.line;return ve===0?ce.range.start.character-ge.range.start.character:ve}),w=0,E=[],k=0,$=A;k<$.length;k++){var ie=$[k],ne=s.offsetAt(ie.range.start);if(ne<w)throw new Error("Overlapping edit");ne>w&&E.push(m.substring(w,ne)),ie.newText.length&&E.push(ie.newText),w=s.offsetAt(ie.range.end)}return E.push(m.substr(w)),E.join("")}t.applyEdits=o})(wf||(wf={}));function _c(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);_c(o,r),_c(s,r);for(var p=0,m=0,A=0;p<o.length&&m<s.length;){var w=r(o[p],s[m]);w<=0?t[A++]=o[p++]:t[A++]=s[m++]}for(;p<o.length;)t[A++]=o[p++];for(;m<s.length;)t[A++]=s[m++];return t}function Np(t,r,i){i===void 0&&(i=0);for(var o=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++,o.push(i+s+1))}return o}function Bp(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 ig(t){var r=Bp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var rr;(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"})(rr||(rr={}));var Up;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[aa.Markdown,aa.PlainText],commitCharactersSupport:!0}}}}})(Up||(Up={}));var uo=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),ag={"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,}))$/}},fo=function(){function t(r,i,o){this.offset=i,this.length=o,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}(),og=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(fo),jp=function(t){uo(r,t);function r(i,o,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=o,p}return r}(fo),sg=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(fo),lg=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(fo),Vp=function(t){uo(r,t);function r(i,o,s){var p=t.call(this,i,o,s)||this;return p.type="string",p.value="",p}return r}(fo),ug=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||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}(fo),fg=function(t){uo(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(fo);function Mn(t){return Ri(t)?t?{}:{not:{}}:t}var Wp;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Wp||(Wp={}));var cg=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||Hp(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),qc=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}(),Ln=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,o=r;i<o.length;i++){var s=o[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,o=this.problems;i<o.length;i++){var s=o[i];s.code===rr.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 dg(t,r){return r===void 0&&(r=[]),new zp(t,r,[])}function Ea(t){return eg(t)}function ed(t){return qv(t)}function Hp(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var zp=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return _v(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var m=0;m<p.length&&s;m++)s=i(p[m]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Ln;return dn(this.root,i,o,qc.instance),o.problems.map(function(s){var p=fr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return ia.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new cg(i,o);return this.root&&r&&dn(this.root,r,new Ln,s),s.schemas},t}();function dn(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,i,o);break;case"array":A(t,r,i,o);break;case"string":m(t,r,i,o);break;case"number":p(t,r,i,o);break;case"property":return dn(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function E(qe){return t.type===qe||qe==="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:Kt.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:Kt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,$=r.allOf;k<$.length;k++){var ie=$[k];dn(t,Mn(ie),i,o)}var ne=Mn(r.not);if(ne){var ce=new Ln,ge=o.newSub();dn(t,ne,ce,ge),ce.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:Kt.Warning,message:"Matches a schema that is not allowed."});for(var ve=0,Se=ge.schemas;ve<Se.length;ve++){var be=Se[ve];be.inverted=!be.inverted,o.add(be)}}var Te=function(qe,At){for(var Ut=[],Ht=null,sr=0,Ir=qe;sr<Ir.length;sr++){var Er=Ir[sr],$r=Mn(Er),wr=new Ln,Nr=o.newSub();if(dn(t,$r,wr,Nr),wr.hasProblems()||Ut.push($r),!Ht)Ht={schema:$r,validationResult:wr,matchingSchemas:Nr};else if(!At&&!wr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Nr),Ht.validationResult.propertiesMatches+=wr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var mn=wr.compare(Ht.validationResult);mn>0?Ht={schema:$r,validationResult:wr,matchingSchemas:Nr}:mn===0&&(Ht.matchingSchemas.merge(Nr),Ht.validationResult.mergeEnumValues(wr))}}return Ut.length>1&&At&&i.problems.push({location:{offset:t.offset,length:1},severity:Kt.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,o.merge(Ht.matchingSchemas)),Ut.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var $e=function(qe){var At=new Ln,Ut=o.newSub();dn(t,Mn(qe),At,Ut),i.merge(At),i.propertiesMatches+=At.propertiesMatches,i.propertiesValueMatches+=At.propertiesValueMatches,o.merge(Ut)},Ue=function(qe,At,Ut){var Ht=Mn(qe),sr=new Ln,Ir=o.newSub();dn(t,Ht,sr,Ir),o.merge(Ir),sr.hasProblems()?Ut&&$e(Ut):At&&$e(At)},He=Mn(r.if);if(He&&Ue(He,Mn(r.then),Mn(r.else)),Array.isArray(r.enum)){for(var Be=Ea(t),je=!1,We=0,Xe=r.enum;We<Xe.length;We++){var ze=Xe[We];if(Ol(Be,ze)){je=!0;break}}i.enumValues=r.enum,i.enumValueMatch=je,je||i.problems.push({location:{offset:t.offset,length:t.length},severity:Kt.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(qe){return JSON.stringify(qe)}).join(", ")+"."})}if(na(r.const)){var Be=Ea(t);Ol(Be,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:Kt.Warning,code:rr.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:Kt.Warning,message:r.deprecationMessage})}function p(E,k,$,ie){var ne=E.value;Kn(k.multipleOf)&&ne%k.multipleOf!=0&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function ce($e,Ue){if(Kn(Ue))return Ue;if(Ri(Ue)&&Ue)return $e}function ge($e,Ue){if(!Ri(Ue)||!Ue)return $e}var ve=ce(k.minimum,k.exclusiveMinimum);Kn(ve)&&ne<=ve&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is below the exclusive minimum of "+ve+"."});var Se=ce(k.maximum,k.exclusiveMaximum);Kn(Se)&&ne>=Se&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is above the exclusive maximum of "+Se+"."});var be=ge(k.minimum,k.exclusiveMinimum);Kn(be)&&ne<be&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is below the minimum of "+be+"."});var Te=ge(k.maximum,k.exclusiveMaximum);Kn(Te)&&ne>Te&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Value is above the maximum of "+Te+"."})}function m(E,k,$,ie){if(Kn(k.minLength)&&E.value.length<k.minLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),Kn(k.maxLength)&&E.value.length>k.maxLength&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),rg(k.pattern)){var ne=new RegExp(k.pattern);ne.test(E.value)||$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.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 ce=void 0;if(!E.value)ce="URI expected.";else{var ge=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ge?!ge[2]&&k.format==="uri"&&(ce="URI with a scheme is expected."):ce="URI is expected."}ce&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+ce})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ve=ag[k.format];(!E.value||!ve.pattern.exec(E.value))&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:k.patternErrorMessage||k.errorMessage||ve.errorMessage});break;default:}}function A(E,k,$,ie){if(Array.isArray(k.items)){for(var ne=k.items,ce=0;ce<ne.length;ce++){var ge=ne[ce],ve=Mn(ge),Se=new Ln,be=E.items[ce];be?(dn(be,ve,Se,ie),$.mergePropertyMatch(Se)):E.items.length>=ne.length&&$.propertiesValueMatches++}if(E.items.length>ne.length)if(typeof k.additionalItems=="object")for(var Te=ne.length;Te<E.items.length;Te++){var Se=new Ln;dn(E.items[Te],k.additionalItems,Se,ie),$.mergePropertyMatch(Se)}else k.additionalItems===!1&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has too many items according to schema. Expected "+ne.length+" or fewer."})}else{var $e=Mn(k.items);if($e)for(var Ue=0,He=E.items;Ue<He.length;Ue++){var be=He[Ue],Se=new Ln;dn(be,$e,Se,ie),$.mergePropertyMatch(Se)}}var Be=Mn(k.contains);if(Be){var je=E.items.some(function(ze){var qe=new Ln;return dn(ze,Be,qe,qc.instance),!qe.hasProblems()});je||$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:k.errorMessage||"Array does not contain required item."})}if(Kn(k.minItems)&&E.items.length<k.minItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),Kn(k.maxItems)&&E.items.length>k.maxItems&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=Ea(E),Xe=We.some(function(ze,qe){return qe!==We.lastIndexOf(ze)});Xe&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Array has duplicate items."})}}function w(E,k,$,ie){for(var ne=Object.create(null),ce=[],ge=0,ve=E.properties;ge<ve.length;ge++){var Se=ve[ge],be=Se.keyNode.value;ne[be]=Se.valueNode,ce.push(be)}if(Array.isArray(k.required))for(var Te=0,$e=k.required;Te<$e.length;Te++){var Ue=$e[Te];if(!ne[Ue]){var He=E.parent&&E.parent.type==="property"&&E.parent.keyNode,Be=He?{offset:He.offset,length:He.length}:{offset:E.offset,length:1};$.problems.push({location:Be,severity:Kt.Warning,message:'Missing property "'+Ue+'".'})}}var je=function(xi){for(var Nl=ce.indexOf(xi);Nl>=0;)ce.splice(Nl,1),Nl=ce.indexOf(xi)};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],qe=ne[Ue];if(qe)if(Ri(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=qe.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Kt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var At=new Ln;dn(qe,ze,At,ie),$.mergePropertyMatch(At)}}if(k.patternProperties)for(var Ut=0,Ht=Object.keys(k.patternProperties);Ut<Ht.length;Ut++)for(var sr=Ht[Ut],Ir=new RegExp(sr),Er=0,$r=ce.slice(0);Er<$r.length;Er++){var Ue=$r[Er];if(Ir.test(Ue)){je(Ue);var qe=ne[Ue];if(qe){var ze=k.patternProperties[sr];if(Ri(ze))if(ze)$.propertiesMatches++,$.propertiesValueMatches++;else{var Se=qe.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Kt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}else{var At=new Ln;dn(qe,ze,At,ie),$.mergePropertyMatch(At)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Nr=ce;wr<Nr.length;wr++){var Ue=Nr[wr],qe=ne[Ue];if(qe){var At=new Ln;dn(qe,k.additionalProperties,At,ie),$.mergePropertyMatch(At)}}else if(k.additionalProperties===!1&&ce.length>0)for(var mn=0,Jt=ce;mn<Jt.length;mn++){var Ue=Jt[mn],qe=ne[Ue];if(qe){var Se=qe.parent;$.problems.push({location:{offset:Se.keyNode.offset,length:Se.keyNode.length},severity:Kt.Warning,message:k.errorMessage||"Property "+Ue+" is not allowed."})}}if(Kn(k.maxProperties)&&E.properties.length>k.maxProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),Kn(k.minProperties)&&E.properties.length<k.minProperties&&$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Lt=0,jt=Object.keys(k.dependencies);Lt<jt.length;Lt++){var be=jt[Lt],lr=ne[be];if(lr){var an=k.dependencies[be];if(Array.isArray(an))for(var yr=0,ds=an;yr<ds.length;yr++){var Ll=ds[yr];ne[Ll]?$.propertiesValueMatches++:$.problems.push({location:{offset:E.offset,length:E.length},severity:Kt.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var ze=Mn(an);if(ze){var At=new Ln;dn(E,ze,At,ie),$.mergePropertyMatch(At)}}}}var po=Mn(k.propertyNames);if(po)for(var Li=0,Dl=E.properties;Li<Dl.length;Li++){var If=Dl[Li],be=If.keyNode;be&&dn(be,po,$,qc.instance)}}}function pg(t,r){var i=[],o=-1,s=t.getText(),p=os(s,!1),m=r&&r.collectComments?[]:void 0;function A(){for(;;){var He=p.scan();switch($(),He){case 12:case 13:Array.isArray(m)&&m.push(fr.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return He}}}function w(He){return p.getToken()===He?(A(),!0):!1}function E(He,Be,je,We,Xe){if(Xe===void 0&&(Xe=Kt.Error),i.length===0||je!==o){var ze=fr.create(t.positionAt(je),t.positionAt(We));i.push(ia.create(ze,He,Xe,Be,t.languageId)),o=je}}function k(He,Be,je,We,Xe){je===void 0&&(je=null),We===void 0&&(We=[]),Xe===void 0&&(Xe=[]);var ze=p.getTokenOffset(),qe=p.getTokenOffset()+p.getTokenLength();if(ze===qe&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;qe=ze+1}if(E(He,Be,ze,qe),je&&ie(je,!1),We.length+Xe.length>0)for(var At=p.getToken();At!==17;){if(We.indexOf(At)!==-1){A();break}else if(Xe.indexOf(At)!==-1)break;At=A()}return je}function $(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",rr.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",rr.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",rr.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",rr.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",rr.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",rr.InvalidCharacter),!0}return!1}function ie(He,Be){return He.length=p.getTokenOffset()+p.getTokenLength()-He.offset,Be&&A(),He}function ne(He){if(p.getToken()!==3)return null;var Be=new sg(He,p.getTokenOffset());A();for(var je=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",rr.ValueExpected);var Xe=p.getTokenOffset();if(A(),p.getToken()===4){We&&E("Trailing comma",rr.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",rr.CommaExpected);var ze=Te(Be,je++);ze?Be.items.push(ze):k("Value expected",rr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",rr.CommaOrCloseBacketExpected,Be):ie(Be,!0)}function ce(He,Be){var je=new ug(He,p.getTokenOffset()),We=ve(je);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",rr.Undefined);var Xe=new Vp(je,p.getTokenOffset(),p.getTokenLength());Xe.value=p.getTokenValue(),We=Xe,A()}else return null;je.keyNode=We;var ze=Be[We.value];if(ze?(E("Duplicate object key",rr.DuplicateKey,je.keyNode.offset,je.keyNode.offset+je.keyNode.length,Kt.Warning),typeof ze=="object"&&E("DuplicateKeyWarning",rr.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,Kt.Warning),Be[We.value]=!0):Be[We.value]=je,p.getToken()===6)je.colonOffset=p.getTokenOffset(),A();else if(k("Colon expected",rr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return je.length=We.length,je;var qe=Te(je,We.value);return qe?(je.valueNode=qe,je.length=qe.offset+qe.length-je.offset,je):k("Value expected",rr.ValueExpected,je,[],[2,5])}function ge(He){if(p.getToken()!==1)return null;var Be=new fg(He,p.getTokenOffset()),je=Object.create(null);A();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",rr.PropertyExpected);var Xe=p.getTokenOffset();if(A(),p.getToken()===2){We&&E("Trailing comma",rr.TrailingComma,Xe,Xe+1);continue}}else We&&k("Expected comma",rr.CommaExpected);var ze=ce(Be,je);ze?Be.properties.push(ze):k("Property expected",rr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",rr.CommaOrCloseBraceExpected,Be):ie(Be,!0)}function ve(He){if(p.getToken()!==10)return null;var Be=new Vp(He,p.getTokenOffset());return Be.value=p.getTokenValue(),ie(Be,!0)}function Se(He){if(p.getToken()!==11)return null;var Be=new lg(He,p.getTokenOffset());if(p.getTokenError()===0){var je=p.getTokenValue();try{var We=JSON.parse(je);if(!Kn(We))return k("Invalid number format.",rr.Undefined,Be);Be.value=We}catch(Xe){return k("Invalid number format.",rr.Undefined,Be)}Be.isInteger=je.indexOf(".")===-1}return ie(Be,!0)}function be(He){var Be;switch(p.getToken()){case 7:return ie(new og(He,p.getTokenOffset()),!0);case 8:return ie(new jp(He,!0,p.getTokenOffset()),!0);case 9:return ie(new jp(He,!1,p.getTokenOffset()),!0);default:return null}}function Te(He,Be){return ne(He)||ge(He)||ve(He)||Se(He)||be(He)}var $e=null,Ue=A();return Ue!==17&&($e=Te(null,null),$e?p.getToken()!==17&&k("End of file expected.",rr.Undefined):k("Expected a JSON object, array or literal.",rr.Undefined)),new zp($e,i,m)}function td(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
351
+ `,p=0;p<t.length;p++)s+=o+td(t[p],o,i),p<t.length-1&&(s+=","),s+=`
352
352
  `;return s+=r+"]",s}else{var m=Object.keys(t);if(m.length===0)return"{}";for(var s=`{
353
- `,p=0;p<m.length;p++){var S=m[p];s+=o+JSON.stringify(S)+": "+ed(t[S],o,i),p<m.length-1&&(s+=","),s+=`
354
- `}return s+=r+"}",s}}return i(t)}function hg(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 td(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function vg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Bm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var gg=[",","}","]"],yg=[":"],mg=function(){function t(r,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=o,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 o=this.contributions[i].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,o){var s=this,p={items:[],isIncomplete:!1},m=r.getText(),S=r.offsetAt(i),w=o.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=m[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"))$=fr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var oe=S-k.length;oe>0&&m[oe-1]==='"'&&oe--,$=fr.create(r.positionAt(oe),i)}var te=this.doesSupportsCommitCharacters(),ce={},ge={add:function(ve){var Se=ce[ve.label];Se?Se.documentation||(Se.documentation=ve.documentation):(ce[ve.label]=ve,$&&(ve.textEdit=xi.replace($,ve.insertText)),te&&(ve.commitCharacters=ve.kind===Yn.Property?yg:gg),p.items.push(ve))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ve){console.error(ve)},log:function(ve){console.log(ve)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(ve){var Se=[],be=!0,Te="",Ge=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(be=!Ue.valueNode,Ge=Ue,Te=m.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===S)return p;var He=w.properties;He.forEach(function(Xe){(!Ge||Ge!==Xe)&&(ce[Xe.keyNode.value]=Qc.create("__"))});var Be="";be&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt($.end))),ve?s.getPropertyCompletions(ve,o,w,be,Be,ge):s.getSchemaLessPropertyCompletions(o,w,Te,ge);var je=qc(w);s.contributions.forEach(function(Xe){var ze=Xe.collectPropertyCompletions(r.uri,je,k,be,Be==="",ge);ze&&Se.push(ze)}),!ve&&k.length>0&&m.charAt(S-k.length-1)!=='"'&&(ge.add({kind:Yn.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Be),insertTextFormat:_r.Snippet,documentation:""}),ge.setAsIncomplete())}var We={};return ve?s.getValueCompletions(ve,o,w,S,r,ge,We):s.getSchemaLessValueCompletions(o,w,S,r,ge),s.contributions.length>0&&s.getContributedValueCompletions(o,w,S,r,ge,Se),s.promiseConstructor.all(Se).then(function(){if(ge.getNumberOfProposals()===0){var Xe=S;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Xe=w.offset+w.length);var ze=s.evaluateSeparatorAfter(r,Xe);s.addFillerValueCompletions(We,ze,ge)}return p})})},t.prototype.getPropertyCompletions=function(r,i,o,s,p,m){var S=this,w=i.getMatchingSchemas(r.schema,o.offset);w.forEach(function(E){if(E.node===o&&!E.inverted){var k=E.schema.properties;k&&Object.keys(k).forEach(function($){var oe=k[$],te=!1;if(typeof oe=="object"&&oe.allOf)for(var ce=0,ge=oe.allOf;ce<ge.length;ce++){var ve=ge[ce];if(ve.readOnly){te=!0;break}}if(typeof oe=="object"&&!oe.deprecationMessage&&!oe.doNotSuggest&&!te){var Se={kind:Yn.Property,label:S.sanitizeLabel($),insertText:S.getInsertTextForProperty($,oe,s,p),insertTextFormat:_r.Snippet,filterText:S.getFilterTextForValue($),documentation:S.fromMarkup(oe.markdownDescription)||oe.description||""};td(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),m.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var p=this,m=function(w){w.properties.forEach(function(E){var k=E.keyNode.value;s.add({kind:Yn.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:_r.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"&&m(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&m(w)});else i.type==="object"&&s.add({kind:Yn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:_r.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,o,s,p){var m=this,S=o;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:_r.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:_r.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,S),E=function(te){Wp(te.parent,o,!0)||p.add({kind:m.getSuggestionKind(te.type),label:m.getLabelTextForMatchingNode(te,s),insertText:m.getInsertTextForMatchingNode(te,s,w),insertTextFormat:_r.Snippet,documentation:""}),te.type==="boolean"&&m.addBooleanValueCompletion(!te.value,w,p)};if(i.type==="property"&&o>i.colonOffset){var k=i.valueNode;if(k&&(o>k.offset+k.length||k.type==="object"||k.type==="array"))return;var $=i.keyNode.value;r.visit(function(te){return te.type==="property"&&te.keyNode.value===$&&te.valueNode&&E(te.valueNode),!0}),$==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var oe=i.parent.keyNode.value;r.visit(function(te){return te.type==="property"&&te.keyNode.value===oe&&te.valueNode&&te.valueNode.type==="array"&&te.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,o,s,p,m,S){var w=this,E=s,k=null,$=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(E=o.offset+o.length,$=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",m,S);return}if(o.type==="property"&&s>o.colonOffset){var oe=o.valueNode;if(oe&&s>oe.offset+oe.length)return;k=o.keyNode.value,o=o.parent}if(o&&(k!==null||o.type==="array")){var te=this.evaluateSeparatorAfter(p,E),ce=i.getMatchingSchemas(r.schema,o.offset,$);ce.forEach(function(ge){if(ge.node===o&&!ge.inverted&&ge.schema){if(o.type==="array"&&ge.schema.items)if(Array.isArray(ge.schema.items)){var ve=w.findItemAtOffset(o,p,s);ve<ge.schema.items.length&&w.addSchemaValueCompletions(ge.schema.items[ve],te,m,S)}else w.addSchemaValueCompletions(ge.schema.items,te,m,S);if(ge.schema.properties){var Se=ge.schema.properties[k];Se&&w.addSchemaValueCompletions(Se,te,m,S)}}}),k==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(te,m),S.boolean&&(this.addBooleanValueCompletion(!0,te,m),this.addBooleanValueCompletion(!1,te,m)),S.null&&this.addNullValueCompletion(te,m)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,p,m){if(!i)this.contributions.forEach(function(k){var $=k.collectDefaultCompletions(s.uri,p);$&&m.push($)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&o>i.colonOffset){var S=i.keyNode.value,w=i.valueNode;if(!w||o<=w.offset+w.length){var E=qc(i.parent);this.contributions.forEach(function(k){var $=k.collectValueCompletions(s.uri,E,S,p);$&&m.push($)})}}},t.prototype.addSchemaValueCompletions=function(r,i,o,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,o),this.addDefaultValueCompletions(r,i,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var p=this;s===void 0&&(s=0);var m=!1;if(aa(r.default)){for(var S=r.type,w=r.default,E=s;E>0;E--)w=[w],S="array";o.add({kind:this.getSuggestionKind(S),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:_r.Snippet}),m=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var $=r.type,oe=k,te=s;te>0;te--)oe=[oe],$="array";o.add({kind:p.getSuggestionKind($),label:p.getLabelForValue(oe),insertText:p.getInsertTextForValue(oe,i),insertTextFormat:_r.Snippet}),m=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var $=r.type,oe=k.body,te=k.label,ce,ge;if(aa(oe)){for(var ve=r.type,Se=s;Se>0;Se--)oe=[oe],ve="array";ce=p.getInsertTextForSnippetValue(oe,i),ge=p.getFilterTextForSnippetValue(oe),te=te||p.getLabelForSnippetValue(oe)}else if(typeof k.bodyText=="string"){for(var be="",Te="",Ge="",Se=s;Se>0;Se--)be=be+Ge+`[
353
+ `,p=0;p<m.length;p++){var A=m[p];s+=o+JSON.stringify(A)+": "+td(t[A],o,i),p<m.length-1&&(s+=","),s+=`
354
+ `}return s+=r+"}",s}}return i(t)}function hg(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 rd(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function vg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Bm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var gg=[",","}","]"],yg=[":"],mg=function(){function t(r,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=o,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 o=this.contributions[i].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,o){var s=this,p={items:[],isIncomplete:!1},m=r.getText(),A=r.offsetAt(i),w=o.getNodeFromOffset(A,!0);if(this.isInComment(r,w?w.offset:0,A))return Promise.resolve(p);if(w&&A===w.offset+w.length&&A>0){var E=m[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var k=this.getCurrentWord(r,A),$=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))$=fr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ie=A-k.length;ie>0&&m[ie-1]==='"'&&ie--,$=fr.create(r.positionAt(ie),i)}var ne=this.doesSupportsCommitCharacters(),ce={},ge={add:function(ve){var Se=ce[ve.label];Se?Se.documentation||(Se.documentation=ve.documentation):(ce[ve.label]=ve,$&&(ve.textEdit=yi.replace($,ve.insertText)),ne&&(ve.commitCharacters=ve.kind===Yn.Property?yg:gg),p.items.push(ve))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ve){console.error(ve)},log:function(ve){console.log(ve)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(ve){var Se=[],be=!0,Te="",$e=null;if(w&&w.type==="string"){var Ue=w.parent;Ue&&Ue.type==="property"&&Ue.keyNode===w&&(be=!Ue.valueNode,$e=Ue,Te=m.substr(w.offset+1,w.length-2),Ue&&(w=Ue.parent))}if(w&&w.type==="object"){if(w.offset===A)return p;var He=w.properties;He.forEach(function(Xe){(!$e||$e!==Xe)&&(ce[Xe.keyNode.value]=Zc.create("__"))});var Be="";be&&(Be=s.evaluateSeparatorAfter(r,r.offsetAt($.end))),ve?s.getPropertyCompletions(ve,o,w,be,Be,ge):s.getSchemaLessPropertyCompletions(o,w,Te,ge);var je=ed(w);s.contributions.forEach(function(Xe){var ze=Xe.collectPropertyCompletions(r.uri,je,k,be,Be==="",ge);ze&&Se.push(ze)}),!ve&&k.length>0&&m.charAt(A-k.length-1)!=='"'&&(ge.add({kind:Yn.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Be),insertTextFormat:Zr.Snippet,documentation:""}),ge.setAsIncomplete())}var We={};return ve?s.getValueCompletions(ve,o,w,A,r,ge,We):s.getSchemaLessValueCompletions(o,w,A,r,ge),s.contributions.length>0&&s.getContributedValueCompletions(o,w,A,r,ge,Se),s.promiseConstructor.all(Se).then(function(){if(ge.getNumberOfProposals()===0){var Xe=A;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Xe=w.offset+w.length);var ze=s.evaluateSeparatorAfter(r,Xe);s.addFillerValueCompletions(We,ze,ge)}return p})})},t.prototype.getPropertyCompletions=function(r,i,o,s,p,m){var A=this,w=i.getMatchingSchemas(r.schema,o.offset);w.forEach(function(E){if(E.node===o&&!E.inverted){var k=E.schema.properties;k&&Object.keys(k).forEach(function($){var ie=k[$],ne=!1;if(typeof ie=="object"&&ie.allOf)for(var ce=0,ge=ie.allOf;ce<ge.length;ce++){var ve=ge[ce];if(ve.readOnly){ne=!0;break}}if(typeof ie=="object"&&!ie.deprecationMessage&&!ie.doNotSuggest&&!ne){var Se={kind:Yn.Property,label:A.sanitizeLabel($),insertText:A.getInsertTextForProperty($,ie,s,p),insertTextFormat:Zr.Snippet,filterText:A.getFilterTextForValue($),documentation:A.fromMarkup(ie.markdownDescription)||ie.description||""};rd(Se.insertText,"$1"+p)&&(Se.command={title:"Suggest",command:"editor.action.triggerSuggest"}),m.add(Se)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var p=this,m=function(w){w.properties.forEach(function(E){var k=E.keyNode.value;s.add({kind:Yn.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:Zr.Snippet,filterText:p.getFilterTextForValue(k),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var A=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===A&&w.valueNode&&w.valueNode.type==="object"&&m(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&m(w)});else i.type==="object"&&s.add({kind:Yn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,o,s,p){var m=this,A=o;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(A=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,A),E=function(ne){Hp(ne.parent,o,!0)||p.add({kind:m.getSuggestionKind(ne.type),label:m.getLabelTextForMatchingNode(ne,s),insertText:m.getInsertTextForMatchingNode(ne,s,w),insertTextFormat:Zr.Snippet,documentation:""}),ne.type==="boolean"&&m.addBooleanValueCompletion(!ne.value,w,p)};if(i.type==="property"&&o>i.colonOffset){var k=i.valueNode;if(k&&(o>k.offset+k.length||k.type==="object"||k.type==="array"))return;var $=i.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===$&&ne.valueNode&&E(ne.valueNode),!0}),$==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var ie=i.parent.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===ie&&ne.valueNode&&ne.valueNode.type==="array"&&ne.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,o,s,p,m,A){var w=this,E=s,k=null,$=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(E=o.offset+o.length,$=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",m,A);return}if(o.type==="property"&&s>o.colonOffset){var ie=o.valueNode;if(ie&&s>ie.offset+ie.length)return;k=o.keyNode.value,o=o.parent}if(o&&(k!==null||o.type==="array")){var ne=this.evaluateSeparatorAfter(p,E),ce=i.getMatchingSchemas(r.schema,o.offset,$);ce.forEach(function(ge){if(ge.node===o&&!ge.inverted&&ge.schema){if(o.type==="array"&&ge.schema.items)if(Array.isArray(ge.schema.items)){var ve=w.findItemAtOffset(o,p,s);ve<ge.schema.items.length&&w.addSchemaValueCompletions(ge.schema.items[ve],ne,m,A)}else w.addSchemaValueCompletions(ge.schema.items,ne,m,A);if(ge.schema.properties){var Se=ge.schema.properties[k];Se&&w.addSchemaValueCompletions(Se,ne,m,A)}}}),k==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(ne,m),A.boolean&&(this.addBooleanValueCompletion(!0,ne,m),this.addBooleanValueCompletion(!1,ne,m)),A.null&&this.addNullValueCompletion(ne,m)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,p,m){if(!i)this.contributions.forEach(function(k){var $=k.collectDefaultCompletions(s.uri,p);$&&m.push($)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&o>i.colonOffset){var A=i.keyNode.value,w=i.valueNode;if(!w||o<=w.offset+w.length){var E=ed(i.parent);this.contributions.forEach(function(k){var $=k.collectValueCompletions(s.uri,E,A,p);$&&m.push($)})}}},t.prototype.addSchemaValueCompletions=function(r,i,o,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,o),this.addDefaultValueCompletions(r,i,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(m){return p.addSchemaValueCompletions(m,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var p=this;s===void 0&&(s=0);var m=!1;if(na(r.default)){for(var A=r.type,w=r.default,E=s;E>0;E--)w=[w],A="array";o.add({kind:this.getSuggestionKind(A),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Zr.Snippet}),m=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var $=r.type,ie=k,ne=s;ne>0;ne--)ie=[ie],$="array";o.add({kind:p.getSuggestionKind($),label:p.getLabelForValue(ie),insertText:p.getInsertTextForValue(ie,i),insertTextFormat:Zr.Snippet}),m=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var $=r.type,ie=k.body,ne=k.label,ce,ge;if(na(ie)){for(var ve=r.type,Se=s;Se>0;Se--)ie=[ie],ve="array";ce=p.getInsertTextForSnippetValue(ie,i),ge=p.getFilterTextForSnippetValue(ie),ne=ne||p.getLabelForSnippetValue(ie)}else if(typeof k.bodyText=="string"){for(var be="",Te="",$e="",Se=s;Se>0;Se--)be=be+$e+`[
355
355
  `,Te=Te+`
356
- `+Ge+"]",Ge+=" ",$="array";ce=be+Ge+k.bodyText.split(`
356
+ `+$e+"]",$e+=" ",$="array";ce=be+$e+k.bodyText.split(`
357
357
  `).join(`
358
- `+Ge)+Te+i,te=te||p.sanitizeLabel(ce),ge=ce.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind($),label:te,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:ce,insertTextFormat:_r.Snippet,filterText:ge}),m=!0}),!m&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(aa(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:_r.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var m=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]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(m),insertText:this.getInsertTextForValue(m,i),insertTextFormat:_r.Snippet,documentation:S})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||aa(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return i[s]=!0}):i[o]=!0}},t.prototype.addFillerValueCompletions=function(r,i,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:_r.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:_r.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:_r.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:_r.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:Yn.Module,label:o.getLabelForValue(p),filterText:o.getFilterTextForValue(p),insertText:o.getInsertTextForValue(p,r),insertTextFormat:_r.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 o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+i:o==="[]"?"[$1]"+i:this.getInsertTextForPlainText(o+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return ed(r,"",o)+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 o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+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 Yn.Value;switch(r){case"string":return Yn.Value;case"object":return Yn.Module;case"property":return Yn.Property;default:return Yn.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=i.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,i,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=i.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,o,s){var p=this.getInsertTextForValue(r,"");if(!o)return p;var m=p+": ",S,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;aa(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),aa(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"),m+S+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
359
- \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=ss(r.getText(),!0);o.setPosition(i);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,o){for(var s=ss(i.getText(),!0),p=r.items,m=p.length-1;m>=0;m--){var S=p[m];if(o>S.offset+S.length){s.setPosition(S.offset+S.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?m+1:m}else if(o>=S.offset)return m}return 0},t.prototype.isInComment=function(r,i,o){var s=ss(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<o;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:sa.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!aa(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(sa.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!aa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),xg=function(){function t(r,i,o){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=o||Promise}return t.prototype.doHover=function(r,i,o){var s=r.offsetAt(i),p=o.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 m=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=fr.create(r.positionAt(m.offset),r.positionAt(m.offset+m.length)),E=function(ce){var ge={contents:ce,range:w};return ge},k=qc(p),$=this.contributions.length-1;$>=0;$--){var oe=this.contributions[$],te=oe.getInfoContribution(r.uri,k);if(te)return te.then(function(ce){return E(ce)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(ce){if(ce){var ge=o.getMatchingSchemas(ce.schema,p.offset),ve=null,Se=null,be=null,Te=null;ge.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(ve=ve||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||rd(Ue.schema.description),Ue.schema.enum)){var He=Ue.schema.enum.indexOf(Ea(p));Ue.schema.markdownEnumDescriptions?be=Ue.schema.markdownEnumDescriptions[He]:Ue.schema.enumDescriptions&&(be=rd(Ue.schema.enumDescriptions[He])),be&&(Te=Ue.schema.enum[He],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var Ge="";return ve&&(Ge=rd(ve)),Se&&(Ge.length>0&&(Ge+=`
358
+ `+$e)+Te+i,ne=ne||p.sanitizeLabel(ce),ge=ce.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind($),label:ne,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:ce,insertTextFormat:Zr.Snippet,filterText:ge}),m=!0}),!m&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(na(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var m=r.enum[s],A=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?A=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(A=r.enumDescriptions[s]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(m),insertText:this.getInsertTextForValue(m,i),insertTextFormat:Zr.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||na(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return i[s]=!0}):i[o]=!0}},t.prototype.addFillerValueCompletions=function(r,i,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Zr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:Yn.Module,label:o.getLabelForValue(p),filterText:o.getFilterTextForValue(p),insertText:o.getInsertTextForValue(p,r),insertTextFormat:Zr.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 o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+i:o==="[]"?"[$1]"+i:this.getInsertTextForPlainText(o+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return td(r,"",o)+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 o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+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 Yn.Value;switch(r){case"string":return Yn.Value;case"object":return Yn.Module;case"property":return Yn.Property;default:return Yn.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=i.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,i,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=i.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,o,s){var p=this.getInsertTextForValue(r,"");if(!o)return p;var m=p+": ",A,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;na(E)&&(A=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!A&&i.enum.length===1&&(A=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),na(i.default)&&(A||(A=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":A="$1";break;case"string":A='"$1"';break;case"object":A="{$1}";break;case"array":A="[$1]";break;case"number":case"integer":A="${1:0}";break;case"null":A="${1:null}";break;default:return p}}}return(!A||w>1)&&(A="$1"),m+A+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
359
+ \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=os(r.getText(),!0);o.setPosition(i);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,o){for(var s=os(i.getText(),!0),p=r.items,m=p.length-1;m>=0;m--){var A=p[m];if(o>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?m+1:m}else if(o>=A.offset)return m}return 0},t.prototype.isInComment=function(r,i,o){var s=os(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<o;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:aa.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!na(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(aa.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!na(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),xg=function(){function t(r,i,o){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=o||Promise}return t.prototype.doHover=function(r,i,o){var s=r.offsetAt(i),p=o.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 m=p;if(p.type==="string"){var A=p.parent;if(A&&A.type==="property"&&A.keyNode===p&&(p=A.valueNode,!p))return this.promise.resolve(null)}for(var w=fr.create(r.positionAt(m.offset),r.positionAt(m.offset+m.length)),E=function(ce){var ge={contents:ce,range:w};return ge},k=ed(p),$=this.contributions.length-1;$>=0;$--){var ie=this.contributions[$],ne=ie.getInfoContribution(r.uri,k);if(ne)return ne.then(function(ce){return E(ce)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(ce){if(ce){var ge=o.getMatchingSchemas(ce.schema,p.offset),ve=null,Se=null,be=null,Te=null;ge.every(function(Ue){if(Ue.node===p&&!Ue.inverted&&Ue.schema&&(ve=ve||Ue.schema.title,Se=Se||Ue.schema.markdownDescription||nd(Ue.schema.description),Ue.schema.enum)){var He=Ue.schema.enum.indexOf(Ea(p));Ue.schema.markdownEnumDescriptions?be=Ue.schema.markdownEnumDescriptions[He]:Ue.schema.enumDescriptions&&(be=nd(Ue.schema.enumDescriptions[He])),be&&(Te=Ue.schema.enum[He],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var $e="";return ve&&($e=nd(ve)),Se&&($e.length>0&&($e+=`
360
360
 
361
- `),Ge+=Se),be&&(Ge.length>0&&(Ge+=`
361
+ `),$e+=Se),be&&($e.length>0&&($e+=`
362
362
 
363
- `),Ge+="`"+bg(Te)+"`: "+be),E([Ge])}return null})},t}();function rd(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
363
+ `),$e+="`"+bg(Te)+"`: "+be),E([$e])}return null})},t}();function nd(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
364
364
 
365
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function bg(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var wg=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vr,Rl;if(typeof process=="object")Rl=!1;else if(typeof navigator=="object"){var Sg=navigator.userAgent;Rl=Sg.indexOf("Windows")>=0}function Um(t){return 55296<=t&&t<=56319}function jm(t){return 56320<=t&&t<=57343}function Vm(t){return t>=97&&t<=102}function Ag(t){return t>=97&&t<=122}function Eg(t){return t>=65&&t<=90}function Wm(t){return Ag(t)||Eg(t)}var Cg=/^\w[\w\d+.-]*$/,Og=/^\//,Tg=/^\/\//;function Pg(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&&!Cg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Og.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(Tg.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 Ig(t,r){return!t&&!r?"file":t}function Fg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==bi&&(r=bi+r):r=bi;break}return r}var hr="",bi="/",kg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,nd=function(){function t(r,i,o,s,p,m){m===void 0&&(m=!1),typeof r=="object"?(this.scheme=r.scheme||hr,this.authority=r.authority||hr,this.path=r.path||hr,this.query=r.query||hr,this.fragment=r.fragment||hr):(this.scheme=Ig(r,m),this.authority=i||hr,this.path=Fg(this.scheme,o||hr),this.query=s||hr,this.fragment=p||hr,Pg(this,m))}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 Kp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,p=r.query,m=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=hr),o===void 0?o=this.authority:o===null&&(o=hr),s===void 0?s=this.path:s===null&&(s=hr),p===void 0?p=this.query:p===null&&(p=hr),m===void 0?m=this.fragment:m===null&&(m=hr),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&m===this.fragment?this:new us(i,o,s,p,m)},t.parse=function(r,i){i===void 0&&(i=!1);var o=kg.exec(r);return o?new us(o[2]||hr,wf(o[4]||hr),wf(o[5]||hr),wf(o[7]||hr),wf(o[9]||hr),i):new us(hr,hr,hr,hr,hr)},t.file=function(r){var i=hr;if(Rl&&(r=r.replace(/\\/g,bi)),r[0]===bi&&r[1]===bi){var o=r.indexOf(bi,2);o===-1?(i=r.substring(2),r=bi):(i=r.substring(2,o),r=r.substring(o)||bi)}return new us("file",i,r,hr,hr)},t.from=function(r){return new us(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),id(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new us(r);return i._formatted=r.external,i._fsPath=r._sep===zp?r.fsPath:null,i}else return r},t}(),zp=Rl?1:void 0,us=function(t){wg(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=Kp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?id(this,!0):(this._formatted||(this._formatted=id(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=zp),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}(nd),Gp=(Vr={},Vr[58]="%3A",Vr[47]="%2F",Vr[63]="%3F",Vr[35]="%23",Vr[91]="%5B",Vr[93]="%5D",Vr[64]="%40",Vr[33]="%21",Vr[36]="%24",Vr[38]="%26",Vr[39]="%27",Vr[40]="%28",Vr[41]="%29",Vr[42]="%2A",Vr[43]="%2B",Vr[44]="%2C",Vr[59]="%3B",Vr[61]="%3D",Vr[32]="%20",Vr);function $p(t,r){for(var i=void 0,o=-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)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var m=Gp[p];m!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=m):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Rg(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=Gp[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Kp(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,Rl&&(i=i.replace(/\//g,"\\")),i}function id(t,r){var i=r?Rg:$p,o="",s=t.scheme,p=t.authority,m=t.path,S=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=bi,o+=bi),p){var E=p.indexOf("@");if(E!==-1){var k=p.substr(0,E);p=p.substr(E+1),E=k.indexOf(":"),E===-1?o+=i(k,!1):(o+=i(k.substr(0,E),!1),o+=":",o+=i(k.substr(E+1),!1)),o+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?o+=i(p,!1):(o+=i(p.substr(0,E),!1),o+=p.substr(E))}if(m){if(m.length>=3&&m.charCodeAt(0)===47&&m.charCodeAt(2)===58){var $=m.charCodeAt(1);$>=65&&$<=90&&(m="/"+String.fromCharCode($+32)+":"+m.substr(3))}else if(m.length>=2&&m.charCodeAt(1)===58){var $=m.charCodeAt(0);$>=65&&$<=90&&(m=String.fromCharCode($+32)+":"+m.substr(2))}o+=i(m,!0)}return S&&(o+="?",o+=i(S,!1)),w&&(o+="#",o+=r?w:$p(w,!1)),o}function Yp(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+Yp(t.substr(3)):t}}var Jp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function wf(t){return t.match(Jp)?t.replace(Jp,function(r){return Yp(r)}):t}var Mg=function(){function t(r){try{this.patternRegExp=new RegExp(vg(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}(),Lg=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new fs(o)))}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}(),fs=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Xp=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Rn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var m=p[s],S=new RegExp(m);if(S.test(o))return this.getSectionRecursive(r,i.patternProperties[m])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(o,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}(),Dg=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||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 o=nd.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},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,o=!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 m=s.pop(),S=0;S<p.length;S++){var w=p[S];w&&(w.url===m||w.dependencies[m])&&(w.url!==m&&s.push(w.url),w.clearSchema(),p[S]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return nd.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var m in p){var S=p[m];this.contributionAssociations[m]=S;for(var w=this.getOrAddFilePatternAssociation(m),E=0,k=S;E<k.length;E++){var $=k[E],o=this.normalizeId($);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Lg(this,r,i);return this.schemasById[r]=o,o},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 Mg(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,m=i;p<m.length;p++){var S=m[p];this.getOrAddFilePatternAssociation(S).addSchema(s)}return o?this.addSchemaHandle(s,o):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 o=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var m=p[s],r=this.normalizeId(m);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Sf(r)+"'. No schema request service available";return this.promise.resolve(new fs({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Sf(r)+"': No content.";return new fs({},[s])}var p={},m=[];p=Zv(o,m);var S=m.length?["Unable to parse content from '"+Sf(r)+"': Parse error at offset "+m[0].offset]:[];return new fs(p,S)},function(o){var s="Unable to load schema from '"+Sf(r)+"': "+o.toString();return new fs({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),m=r.schema;if(m.$schema){var S=this.normalizeId(m.$schema);if(S==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Xp({},["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(te,ce){if(!ce)return te;var ge=te;return ce[0]==="/"&&(ce=ce.substr(1)),ce.split("/").some(function(ve){return ge=ge[ve],!ge}),ge},k=function(te,ce,ge,ve){var Se=E(ce,ve);if(Se)for(var be in Se)Se.hasOwnProperty(be)&&!te.hasOwnProperty(be)&&(te[be]=Se[be]);else p.push("$ref '"+ve+"' in '"+ge+"' can not be resolved.")},$=function(te,ce,ge,ve,Se){w&&!/^\w+:\/\/.*/.test(ce)&&(ce=w.resolveRelativePath(ce,ve)),ce=s.normalizeId(ce);var be=s.getOrAddSchemaHandle(ce);return be.getUnresolvedSchema().then(function(Te){if(Se[ce]=!0,Te.errors.length){var Ge=ge?ce+"#"+ge:ce;p.push("Problems loading reference '"+Ge+"': "+Te.errors[0]+".")}return k(te,Te.schema,ce,ge),oe(te,Te.schema,ce,be.dependencies)})},oe=function(te,ce,ge,ve){if(!te||typeof te!="object")return Promise.resolve(null);for(var Se=[te],be=[],Te=[],Ge=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,qe=We;ze<qe.length;ze++){var At=qe[ze];typeof At=="object"&&Se.push(At)}},Ue=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,qe=We;ze<qe.length;ze++){var At=qe[ze];if(typeof At=="object")for(var Bt in At){var zt=At[Bt];typeof zt=="object"&&Se.push(zt)}}},He=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,qe=We;ze<qe.length;ze++){var At=qe[ze];if(Array.isArray(At))for(var Bt=0,zt=At;Bt<zt.length;Bt++){var sr=zt[Bt];typeof sr=="object"&&Se.push(sr)}}},Be=function(We){for(var Xe=[];We.$ref;){var ze=We.$ref,qe=ze.split("#",2);if(delete We.$ref,qe[0].length>0){Te.push($(We,qe[0],qe[1],ge,ve));return}else Xe.indexOf(ze)===-1&&(k(We,ce,ge,qe[1]),Xe.push(ze))}Ge(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),He(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var je=Se.pop();be.indexOf(je)>=0||(be.push(je),Be(je))}return s.promise.all(Te)};return oe(m,m,i,o).then(function(te){return new Xp(m,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(ce){return ce.keyNode.value==="$schema"&&ce.valueNode&&ce.valueNode.type==="string"});if(o.length>0){var s=Ea(o[0].valueNode);if(s&&hg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var m=Object.create(null),S=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var k=E[w];if(k.matchesPattern(r))for(var $=0,oe=k.getSchemas();$<oe.length;$++){var te=oe[$];m[te]||(S.push(te),m[te]=!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 o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function Sf(t){try{}catch(r){}return t}var Ng=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:Kt.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var m=[],S={},w=function($){var oe=$.range.start.line+" "+$.range.start.character+" "+$.message;S[oe]||(S[oe]=!0,m.push($))},E=function($){var oe=o?_p(o.trailingCommas):Kt.Error,te=o?_p(o.comments):p.commentSeverity;if($){if($.errors.length&&i.root){var ce=i.root,ge=ce.type==="object"?ce.properties[0]:null;if(ge&&ge.keyNode.value==="$schema"){var ve=ge.valueNode||ge,Se=fr.create(r.positionAt(ve.offset),r.positionAt(ve.offset+ve.length));w(oa.create(Se,$.errors[0],Kt.Warning,rr.SchemaResolveError))}else{var Se=fr.create(r.positionAt(ce.offset),r.positionAt(ce.offset+1));w(oa.create(Se,$.errors[0],Kt.Warning,rr.SchemaResolveError))}}else{var be=i.validate(r,$.schema);be&&be.forEach(w)}Qp($.schema)&&(te=void 0),Zp($.schema)&&(oe=void 0)}for(var Te=0,Ge=i.syntaxErrors;Te<Ge.length;Te++){var Ue=Ge[Te];if(Ue.code===rr.TrailingComma){if(typeof oe!="number")continue;Ue.severity=oe}w(Ue)}if(typeof te=="number"){var He="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(oa.create(Be,He,te,rr.CommentNotPermitted))})}return m};if(s){var k=s.id||"schemaservice://untitled/"+Bg++;return this.jsonSchemaService.resolveSchemaContent(new fs(s),k,{}).then(function($){return E($)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function($){return E($)})},t}(),Bg=0;function Qp(t){if(t&&typeof t=="object"){if(Li(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Qp(o);if(Li(s))return s}}}function Zp(t){if(t&&typeof t=="object"){if(Li(t.allowTrailingCommas))return t.allowTrailingCommas;if(Li(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Zp(o);if(Li(s))return s}}}function _p(t){switch(t){case"error":return Kt.Error;case"warning":return Kt.Warning;case"ignore":return}}var qp=48,Ug=57,jg=65,Af=97,Vg=102;function Wr(t){return t<qp?0:t<=Ug?t-qp:(t<Af&&(t+=Af-jg),t>=Af&&t<=Vg?t-Af+10:0)}function Wg(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Wr(t.charCodeAt(1))*17/255,green:Wr(t.charCodeAt(2))*17/255,blue:Wr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Wr(t.charCodeAt(1))*17/255,green:Wr(t.charCodeAt(2))*17/255,blue:Wr(t.charCodeAt(3))*17/255,alpha:Wr(t.charCodeAt(4))*17/255};case 7:return{red:(Wr(t.charCodeAt(1))*16+Wr(t.charCodeAt(2)))/255,green:(Wr(t.charCodeAt(3))*16+Wr(t.charCodeAt(4)))/255,blue:(Wr(t.charCodeAt(5))*16+Wr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Wr(t.charCodeAt(1))*16+Wr(t.charCodeAt(2)))/255,green:(Wr(t.charCodeAt(3))*16+Wr(t.charCodeAt(4)))/255,blue:(Wr(t.charCodeAt(5))*16+Wr(t.charCodeAt(6)))/255,alpha:(Wr(t.charCodeAt(7))*16+Wr(t.charCodeAt(8)))/255}}return null}function Hm(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Hg=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=o.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||td(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 oe=0,te=$.properties;oe<te.length;oe++){var ce=te[oe];if(ce.keyNode.value==="key"&&ce.valueNode){var ge=Ol.create(r.uri,Ca(r,$));if(w.push({name:Ea(ce.valueNode),kind:Di.Function,location:ge}),m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S),w}}}return w}var ve=function(be,Te,Ge){return m>=0&&(Te.type==="array"?Te.items.forEach(function(Ue){return ve(be,Ue,Ge)}):Te.type==="object"&&Te.properties.forEach(function(Ue){if(m>=0){var He=Ue.valueNode;if(He){m--;var Be=Ol.create(r.uri,Ca(r,Ue)),je=Ge?Ge+"."+Ue.keyNode.value:Ue.keyNode.value;be.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(He.type),location:Be,containerName:Ge}),ve(be,He,je)}}})),be},Se=ve([],p,void 0);return m<0&&(Se.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S)),Se},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=o.resultLimit,S=r.uri;if((S==="vscode://defaultsettings/keybindings.json"||td(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 oe=0,te=$.properties;oe<te.length;oe++){var ce=te[oe];if(ce.keyNode.value==="key"&&ce.valueNode){var ge=Ca(r,$),ve=Ca(r,ce.keyNode);if(w.push({name:Ea(ce.valueNode),kind:Di.Function,range:ge,selectionRange:ve}),m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S),w}}}return w}var Se=function(Te,Ge){return m>=0&&(Ge.type==="array"?Ge.items.forEach(function(Ue,He){if(Ue&&m>=0){m--;var Be=Ca(r,Ue),je=Be,We=String(He),Xe=Se([],Ue);Te.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Xe})}}):Ge.type==="object"&&Ge.properties.forEach(function(Ue){var He=Ue.valueNode;if(He&&m>=0){m--;var Be=Ca(r,Ue),je=Ca(r,Ue.keyNode),We=Se([],He);Te.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(He.type),range:Be,selectionRange:je,children:We})}})),Te},be=Se([],p);return m<0&&(be.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(S)),be},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Di.Module;case"string":return Di.String;case"number":return Di.Number;case"array":return Di.Array;case"boolean":return Di.Boolean;default:return Di.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,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var m=o&&typeof o.resultLimit=="number"?o.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 oe=String($.node.offset);if(!w[oe]){var te=Wg(Ea($.node));if(te){var ce=Ca(r,$.node);p.push({color:te,range:ce})}if(w[oe]=!0,m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],m=Math.round(o.red*255),S=Math.round(o.green*255),w=Math.round(o.blue*255);function E($){var oe=$.toString(16);return oe.length!==2?"0"+oe:oe}var k;return o.alpha===1?k="#"+E(m)+E(S)+E(w):k="#"+E(m)+E(S)+E(w)+E(Math.round(o.alpha*255)),p.push({label:k,textEdit:xi.replace(s,JSON.stringify(k))}),p},t}();function Ca(t,r){return fr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var zg={schemaAssociations:{},schemas:{}};function Gg(t,r){var i=[],o=[],s=[],p=-1,m=ss(t.getText(),!1),S=m.scan();function w(Xe){i.push(Xe),o.push(s.length)}for(;S!==17;){switch(S){case 1:case 3:{var E=t.positionAt(m.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(),oe=t.positionAt(m.getTokenOffset()).line;k&&oe>k.startLine+1&&p!==k.startLine&&(k.endLine=oe-1,w(k),p=k.startLine)}break}case 13:{var E=t.positionAt(m.getTokenOffset()).line,te=t.positionAt(m.getTokenOffset()+m.getTokenLength()).line;m.getTokenError()===1&&E+1<t.lineCount?m.setPosition(t.offsetAt(mi.create(E+1,0))):E<te&&(w({startLine:E,endLine:te,kind:Tl.Comment}),p=E);break}case 12:{var ce=t.getText().substr(m.getTokenOffset(),m.getTokenLength()),ge=ce.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ge){var oe=t.positionAt(m.getTokenOffset()).line;if(ge[1]){var k={startLine:oe,endLine:oe,kind:Tl.Region};s.push(k)}else{for(var ve=s.length-1;ve>=0&&s[ve].kind!==Tl.Region;)ve--;if(ve>=0){var k=s[ve];s.length=ve,oe>k.startLine&&p!==k.startLine&&(k.endLine=oe,w(k),p=k.startLine)}}}break}}S=m.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var be=[],Te=0,Ge=o;Te<Ge.length;Te++){var Ue=Ge[Te];Ue<30&&(be[Ue]=(be[Ue]||0)+1)}for(var He=0,Be=0,ve=0;ve<be.length;ve++){var je=be[ve];if(je){if(je+He>Se){Be=ve;break}He+=je}}for(var We=[],ve=0;ve<i.length;ve++){var Ue=o[ve];typeof Ue=="number"&&(Ue<Be||Ue===Be&&He++<Se)&&We.push(i[ve])}return We}function $g(t,r,i){function o(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,oe=E.offset+E.length-1;$<oe&&w>=$&&w<=oe&&k.push(s($,oe)),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 te=m(E.offset+E.length,5);te!==-1&&k.push(s(E.offset,te))}E=E.parent}for(var ce=void 0,ge=k.length-1;ge>=0;ge--)ce=xf.create(k[ge],ce);return ce||(ce=xf.create(fr.create(S,S))),ce}function s(S,w){return fr.create(t.positionAt(S),t.positionAt(w))}var p=ss(t.getText(),!0);function m(S,w){p.setPosition(S);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function Kg(t){var r=t.promiseConstructor||Promise,i=new Dg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(zg);var o=new mg(i,t.contributions,r,t.clientCapabilities),s=new xg(i,t.contributions,r),p=new Hg(i),m=new Ng(i,r);return{configure:function(S){i.clearExternalSchemas(),S.schemas&&S.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),m.configure(S)},resetSchema:function(S){return i.onResourceChange(S)},doValidation:m.doValidation.bind(m),parseJSONDocument:function(S){return pg(S,{collectComments:!0})},newJSONDocument:function(S,w){return dg(S,w)},doComplete:o.doComplete.bind(o),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:Gg,getSelectionRanges:$g,format:function(S,w,E){var k=void 0;if(w){var $=S.offsetAt(w.start),oe=S.offsetAt(w.end)-$;k={offset:$,length:oe}}var te={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
366
- `};return tg(S.getText(),k,te).map(function(ce){return xi.replace(fr.create(S.positionAt(ce.offset),S.positionAt(ce.offset+ce.length)),ce.content)})}}}var zm=a(96876),Gm=a(4328),$m=a(3256),Km=a(71707),Ym=a(82801),Jm=a(32095),Xm=a(86081),Qm=a(44254),Zm=a(75019),_m=a(13837),eh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const cs=Kg({});as.registerHelper("lint","json",function(t,r){return eh(this,null,function*(){const{schema:i,setError:o}=r;cs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=bf.create(r.id+".json","json",0,t),p=cs.parseJSONDocument(s),m=yield cs.doValidation(s,p);return m.length?o&&o(m[0].message):o&&o(void 0),m.map(S=>({from:as.Pos(S.range.start.line,S.range.start.character),to:as.Pos(S.range.end.line,S.range.end.character),message:S.message}))})}),as.registerHelper("hint","json",(t,r)=>eh(void 0,null,function*(){const i=r.schema;if(!i)return;cs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=bf.create(r.id+".json","json",0,t.getValue()),m=cs.parseJSONDocument(p),S=yield cs.doComplete(p,{line:o.line,character:o.ch},m),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:($,oe,te)=>{const ce="_$__REDOC_CURSOR_HERE";let ge=te.text.replace(/(\$1|\${1:[^}]+})/,ce)||"";if(ge=ge.replace(/(\$\d+|\${[^}]+})/g,"")||"",$.setSelection(te.from,te.to),ge.indexOf(`
365
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function bg(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var wg=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),jr,Ml;if(typeof process=="object")Ml=!1;else if(typeof navigator=="object"){var Sg=navigator.userAgent;Ml=Sg.indexOf("Windows")>=0}function Um(t){return 55296<=t&&t<=56319}function jm(t){return 56320<=t&&t<=57343}function Vm(t){return t>=97&&t<=102}function Ag(t){return t>=97&&t<=122}function Eg(t){return t>=65&&t<=90}function Wm(t){return Ag(t)||Eg(t)}var Cg=/^\w[\w\d+.-]*$/,Og=/^\//,Tg=/^\/\//;function Pg(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&&!Cg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Og.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(Tg.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 Ig(t,r){return!t&&!r?"file":t}function Fg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==mi&&(r=mi+r):r=mi;break}return r}var vr="",mi="/",kg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,id=function(){function t(r,i,o,s,p,m){m===void 0&&(m=!1),typeof r=="object"?(this.scheme=r.scheme||vr,this.authority=r.authority||vr,this.path=r.path||vr,this.query=r.query||vr,this.fragment=r.fragment||vr):(this.scheme=Ig(r,m),this.authority=i||vr,this.path=Fg(this.scheme,o||vr),this.query=s||vr,this.fragment=p||vr,Pg(this,m))}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 Yp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,p=r.query,m=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=vr),o===void 0?o=this.authority:o===null&&(o=vr),s===void 0?s=this.path:s===null&&(s=vr),p===void 0?p=this.query:p===null&&(p=vr),m===void 0?m=this.fragment:m===null&&(m=vr),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&m===this.fragment?this:new ls(i,o,s,p,m)},t.parse=function(r,i){i===void 0&&(i=!1);var o=kg.exec(r);return o?new ls(o[2]||vr,Sf(o[4]||vr),Sf(o[5]||vr),Sf(o[7]||vr),Sf(o[9]||vr),i):new ls(vr,vr,vr,vr,vr)},t.file=function(r){var i=vr;if(Ml&&(r=r.replace(/\\/g,mi)),r[0]===mi&&r[1]===mi){var o=r.indexOf(mi,2);o===-1?(i=r.substring(2),r=mi):(i=r.substring(2,o),r=r.substring(o)||mi)}return new ls("file",i,r,vr,vr)},t.from=function(r){return new ls(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),ad(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new ls(r);return i._formatted=r.external,i._fsPath=r._sep===Gp?r.fsPath:null,i}else return r},t}(),Gp=Ml?1:void 0,ls=function(t){wg(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=Yp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?ad(this,!0):(this._formatted||(this._formatted=ad(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Gp),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}(id),$p=(jr={},jr[58]="%3A",jr[47]="%2F",jr[63]="%3F",jr[35]="%23",jr[91]="%5B",jr[93]="%5D",jr[64]="%40",jr[33]="%21",jr[36]="%24",jr[38]="%26",jr[39]="%27",jr[40]="%28",jr[41]="%29",jr[42]="%2A",jr[43]="%2B",jr[44]="%2C",jr[59]="%3B",jr[61]="%3D",jr[32]="%20",jr);function Kp(t,r){for(var i=void 0,o=-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)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var m=$p[p];m!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=m):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Rg(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=$p[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Yp(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,Ml&&(i=i.replace(/\//g,"\\")),i}function ad(t,r){var i=r?Rg:Kp,o="",s=t.scheme,p=t.authority,m=t.path,A=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=mi,o+=mi),p){var E=p.indexOf("@");if(E!==-1){var k=p.substr(0,E);p=p.substr(E+1),E=k.indexOf(":"),E===-1?o+=i(k,!1):(o+=i(k.substr(0,E),!1),o+=":",o+=i(k.substr(E+1),!1)),o+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?o+=i(p,!1):(o+=i(p.substr(0,E),!1),o+=p.substr(E))}if(m){if(m.length>=3&&m.charCodeAt(0)===47&&m.charCodeAt(2)===58){var $=m.charCodeAt(1);$>=65&&$<=90&&(m="/"+String.fromCharCode($+32)+":"+m.substr(3))}else if(m.length>=2&&m.charCodeAt(1)===58){var $=m.charCodeAt(0);$>=65&&$<=90&&(m=String.fromCharCode($+32)+":"+m.substr(2))}o+=i(m,!0)}return A&&(o+="?",o+=i(A,!1)),w&&(o+="#",o+=r?w:Kp(w,!1)),o}function Jp(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+Jp(t.substr(3)):t}}var Xp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Sf(t){return t.match(Xp)?t.replace(Xp,function(r){return Jp(r)}):t}var Mg=function(){function t(r){try{this.patternRegExp=new RegExp(vg(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}(),Lg=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new us(o)))}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}(),us=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Qp=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Mn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var m=p[s],A=new RegExp(m);if(A.test(o))return this.getSectionRecursive(r,i.patternProperties[m])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(o,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}(),Dg=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||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 o=id.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},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,o=!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 m=s.pop(),A=0;A<p.length;A++){var w=p[A];w&&(w.url===m||w.dependencies[m])&&(w.url!==m&&s.push(w.url),w.clearSchema(),p[A]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return id.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var m in p){var A=p[m];this.contributionAssociations[m]=A;for(var w=this.getOrAddFilePatternAssociation(m),E=0,k=A;E<k.length;E++){var $=k[E],o=this.normalizeId($);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Lg(this,r,i);return this.schemasById[r]=o,o},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 Mg(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,m=i;p<m.length;p++){var A=m[p];this.getOrAddFilePatternAssociation(A).addSchema(s)}return o?this.addSchemaHandle(s,o):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 o=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var m=p[s],r=this.normalizeId(m);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Af(r)+"'. No schema request service available";return this.promise.resolve(new us({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Af(r)+"': No content.";return new us({},[s])}var p={},m=[];p=Zv(o,m);var A=m.length?["Unable to parse content from '"+Af(r)+"': Parse error at offset "+m[0].offset]:[];return new us(p,A)},function(o){var s="Unable to load schema from '"+Af(r)+"': "+o.toString();return new us({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),m=r.schema;if(m.$schema){var A=this.normalizeId(m.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Qp({},["Draft-03 schemas are not supported."]));A==="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(ne,ce){if(!ce)return ne;var ge=ne;return ce[0]==="/"&&(ce=ce.substr(1)),ce.split("/").some(function(ve){return ge=ge[ve],!ge}),ge},k=function(ne,ce,ge,ve){var Se=E(ce,ve);if(Se)for(var be in Se)Se.hasOwnProperty(be)&&!ne.hasOwnProperty(be)&&(ne[be]=Se[be]);else p.push("$ref '"+ve+"' in '"+ge+"' can not be resolved.")},$=function(ne,ce,ge,ve,Se){w&&!/^\w+:\/\/.*/.test(ce)&&(ce=w.resolveRelativePath(ce,ve)),ce=s.normalizeId(ce);var be=s.getOrAddSchemaHandle(ce);return be.getUnresolvedSchema().then(function(Te){if(Se[ce]=!0,Te.errors.length){var $e=ge?ce+"#"+ge:ce;p.push("Problems loading reference '"+$e+"': "+Te.errors[0]+".")}return k(ne,Te.schema,ce,ge),ie(ne,Te.schema,ce,be.dependencies)})},ie=function(ne,ce,ge,ve){if(!ne||typeof ne!="object")return Promise.resolve(null);for(var Se=[ne],be=[],Te=[],$e=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,qe=We;ze<qe.length;ze++){var At=qe[ze];typeof At=="object"&&Se.push(At)}},Ue=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,qe=We;ze<qe.length;ze++){var At=qe[ze];if(typeof At=="object")for(var Ut in At){var Ht=At[Ut];typeof Ht=="object"&&Se.push(Ht)}}},He=function(){for(var We=[],Xe=0;Xe<arguments.length;Xe++)We[Xe]=arguments[Xe];for(var ze=0,qe=We;ze<qe.length;ze++){var At=qe[ze];if(Array.isArray(At))for(var Ut=0,Ht=At;Ut<Ht.length;Ut++){var sr=Ht[Ut];typeof sr=="object"&&Se.push(sr)}}},Be=function(We){for(var Xe=[];We.$ref;){var ze=We.$ref,qe=ze.split("#",2);if(delete We.$ref,qe[0].length>0){Te.push($(We,qe[0],qe[1],ge,ve));return}else Xe.indexOf(ze)===-1&&(k(We,ce,ge,qe[1]),Xe.push(ze))}$e(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),He(We.anyOf,We.allOf,We.oneOf,We.items)};Se.length;){var je=Se.pop();be.indexOf(je)>=0||(be.push(je),Be(je))}return s.promise.all(Te)};return ie(m,m,i,o).then(function(ne){return new Qp(m,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(ce){return ce.keyNode.value==="$schema"&&ce.valueNode&&ce.valueNode.type==="string"});if(o.length>0){var s=Ea(o[0].valueNode);if(s&&hg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var m=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var k=E[w];if(k.matchesPattern(r))for(var $=0,ie=k.getSchemas();$<ie.length;$++){var ne=ie[$];m[ne]||(A.push(ne),m[ne]=!0)}}return A.length>0?this.createCombinedSchema(r,A).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function Af(t){try{}catch(r){}return t}var Ng=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:Kt.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var m=[],A={},w=function($){var ie=$.range.start.line+" "+$.range.start.character+" "+$.message;A[ie]||(A[ie]=!0,m.push($))},E=function($){var ie=o?qp(o.trailingCommas):Kt.Error,ne=o?qp(o.comments):p.commentSeverity;if($){if($.errors.length&&i.root){var ce=i.root,ge=ce.type==="object"?ce.properties[0]:null;if(ge&&ge.keyNode.value==="$schema"){var ve=ge.valueNode||ge,Se=fr.create(r.positionAt(ve.offset),r.positionAt(ve.offset+ve.length));w(ia.create(Se,$.errors[0],Kt.Warning,rr.SchemaResolveError))}else{var Se=fr.create(r.positionAt(ce.offset),r.positionAt(ce.offset+1));w(ia.create(Se,$.errors[0],Kt.Warning,rr.SchemaResolveError))}}else{var be=i.validate(r,$.schema);be&&be.forEach(w)}Zp($.schema)&&(ne=void 0),_p($.schema)&&(ie=void 0)}for(var Te=0,$e=i.syntaxErrors;Te<$e.length;Te++){var Ue=$e[Te];if(Ue.code===rr.TrailingComma){if(typeof ie!="number")continue;Ue.severity=ie}w(Ue)}if(typeof ne=="number"){var He="Comments are not permitted in JSON.";i.comments.forEach(function(Be){w(ia.create(Be,He,ne,rr.CommentNotPermitted))})}return m};if(s){var k=s.id||"schemaservice://untitled/"+Bg++;return this.jsonSchemaService.resolveSchemaContent(new us(s),k,{}).then(function($){return E($)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function($){return E($)})},t}(),Bg=0;function Zp(t){if(t&&typeof t=="object"){if(Ri(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Zp(o);if(Ri(s))return s}}}function _p(t){if(t&&typeof t=="object"){if(Ri(t.allowTrailingCommas))return t.allowTrailingCommas;if(Ri(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=_p(o);if(Ri(s))return s}}}function qp(t){switch(t){case"error":return Kt.Error;case"warning":return Kt.Warning;case"ignore":return}}var eh=48,Ug=57,jg=65,Ef=97,Vg=102;function Vr(t){return t<eh?0:t<=Ug?t-eh:(t<Ef&&(t+=Ef-jg),t>=Ef&&t<=Vg?t-Ef+10:0)}function Wg(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Vr(t.charCodeAt(1))*17/255,green:Vr(t.charCodeAt(2))*17/255,blue:Vr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Vr(t.charCodeAt(1))*17/255,green:Vr(t.charCodeAt(2))*17/255,blue:Vr(t.charCodeAt(3))*17/255,alpha:Vr(t.charCodeAt(4))*17/255};case 7:return{red:(Vr(t.charCodeAt(1))*16+Vr(t.charCodeAt(2)))/255,green:(Vr(t.charCodeAt(3))*16+Vr(t.charCodeAt(4)))/255,blue:(Vr(t.charCodeAt(5))*16+Vr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Vr(t.charCodeAt(1))*16+Vr(t.charCodeAt(2)))/255,green:(Vr(t.charCodeAt(3))*16+Vr(t.charCodeAt(4)))/255,blue:(Vr(t.charCodeAt(5))*16+Vr(t.charCodeAt(6)))/255,alpha:(Vr(t.charCodeAt(7))*16+Vr(t.charCodeAt(8)))/255}}return null}function Hm(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Hg=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||rd(A.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 ie=0,ne=$.properties;ie<ne.length;ie++){var ce=ne[ie];if(ce.keyNode.value==="key"&&ce.valueNode){var ge=Tl.create(r.uri,Ca(r,$));if(w.push({name:Ea(ce.valueNode),kind:Mi.Function,location:ge}),m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var ve=function(be,Te,$e){return m>=0&&(Te.type==="array"?Te.items.forEach(function(Ue){return ve(be,Ue,$e)}):Te.type==="object"&&Te.properties.forEach(function(Ue){if(m>=0){var He=Ue.valueNode;if(He){m--;var Be=Tl.create(r.uri,Ca(r,Ue)),je=$e?$e+"."+Ue.keyNode.value:Ue.keyNode.value;be.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(He.type),location:Be,containerName:$e}),ve(be,He,je)}}})),be},Se=ve([],p,void 0);return m<0&&(Se.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),Se},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||rd(A.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 ie=0,ne=$.properties;ie<ne.length;ie++){var ce=ne[ie];if(ce.keyNode.value==="key"&&ce.valueNode){var ge=Ca(r,$),ve=Ca(r,ce.keyNode);if(w.push({name:Ea(ce.valueNode),kind:Mi.Function,range:ge,selectionRange:ve}),m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var Se=function(Te,$e){return m>=0&&($e.type==="array"?$e.items.forEach(function(Ue,He){if(Ue&&m>=0){m--;var Be=Ca(r,Ue),je=Be,We=String(He),Xe=Se([],Ue);Te.push({name:We,kind:s.getSymbolKind(Ue.type),range:Be,selectionRange:je,children:Xe})}}):$e.type==="object"&&$e.properties.forEach(function(Ue){var He=Ue.valueNode;if(He&&m>=0){m--;var Be=Ca(r,Ue),je=Ca(r,Ue.keyNode),We=Se([],He);Te.push({name:s.getKeyLabel(Ue),kind:s.getSymbolKind(He.type),range:Be,selectionRange:je,children:We})}})),Te},be=Se([],p);return m<0&&(be.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),be},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Mi.Module;case"string":return Mi.String;case"number":return Mi.Number;case"array":return Mi.Array;case"boolean":return Mi.Boolean;default:return Mi.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,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var m=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,k=A;E<k.length;E++){var $=k[E];if(!$.inverted&&$.schema&&($.schema.format==="color"||$.schema.format==="color-hex")&&$.node&&$.node.type==="string"){var ie=String($.node.offset);if(!w[ie]){var ne=Wg(Ea($.node));if(ne){var ce=Ca(r,$.node);p.push({color:ne,range:ce})}if(w[ie]=!0,m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],m=Math.round(o.red*255),A=Math.round(o.green*255),w=Math.round(o.blue*255);function E($){var ie=$.toString(16);return ie.length!==2?"0"+ie:ie}var k;return o.alpha===1?k="#"+E(m)+E(A)+E(w):k="#"+E(m)+E(A)+E(w)+E(Math.round(o.alpha*255)),p.push({label:k,textEdit:yi.replace(s,JSON.stringify(k))}),p},t}();function Ca(t,r){return fr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var zg={schemaAssociations:{},schemas:{}};function Gg(t,r){var i=[],o=[],s=[],p=-1,m=os(t.getText(),!1),A=m.scan();function w(Xe){i.push(Xe),o.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(m.getTokenOffset()).line,k={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(k);break}case 2:case 4:{var $=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===$){var k=s.pop(),ie=t.positionAt(m.getTokenOffset()).line;k&&ie>k.startLine+1&&p!==k.startLine&&(k.endLine=ie-1,w(k),p=k.startLine)}break}case 13:{var E=t.positionAt(m.getTokenOffset()).line,ne=t.positionAt(m.getTokenOffset()+m.getTokenLength()).line;m.getTokenError()===1&&E+1<t.lineCount?m.setPosition(t.offsetAt(gi.create(E+1,0))):E<ne&&(w({startLine:E,endLine:ne,kind:Pl.Comment}),p=E);break}case 12:{var ce=t.getText().substr(m.getTokenOffset(),m.getTokenLength()),ge=ce.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ge){var ie=t.positionAt(m.getTokenOffset()).line;if(ge[1]){var k={startLine:ie,endLine:ie,kind:Pl.Region};s.push(k)}else{for(var ve=s.length-1;ve>=0&&s[ve].kind!==Pl.Region;)ve--;if(ve>=0){var k=s[ve];s.length=ve,ie>k.startLine&&p!==k.startLine&&(k.endLine=ie,w(k),p=k.startLine)}}}break}}A=m.scan()}var Se=r&&r.rangeLimit;if(typeof Se!="number"||i.length<=Se)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var be=[],Te=0,$e=o;Te<$e.length;Te++){var Ue=$e[Te];Ue<30&&(be[Ue]=(be[Ue]||0)+1)}for(var He=0,Be=0,ve=0;ve<be.length;ve++){var je=be[ve];if(je){if(je+He>Se){Be=ve;break}He+=je}}for(var We=[],ve=0;ve<i.length;ve++){var Ue=o[ve];typeof Ue=="number"&&(Ue<Be||Ue===Be&&He++<Se)&&We.push(i[ve])}return We}function $g(t,r,i){function o(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),k=[];E;){switch(E.type){case"string":case"object":case"array":var $=E.offset+1,ie=E.offset+E.length-1;$<ie&&w>=$&&w<=ie&&k.push(s($,ie)),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 ne=m(E.offset+E.length,5);ne!==-1&&k.push(s(E.offset,ne))}E=E.parent}for(var ce=void 0,ge=k.length-1;ge>=0;ge--)ce=bf.create(k[ge],ce);return ce||(ce=bf.create(fr.create(A,A))),ce}function s(A,w){return fr.create(t.positionAt(A),t.positionAt(w))}var p=os(t.getText(),!0);function m(A,w){p.setPosition(A);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function Kg(t){var r=t.promiseConstructor||Promise,i=new Dg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(zg);var o=new mg(i,t.contributions,r,t.clientCapabilities),s=new xg(i,t.contributions,r),p=new Hg(i),m=new Ng(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),m.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:m.doValidation.bind(m),parseJSONDocument:function(A){return pg(A,{collectComments:!0})},newJSONDocument:function(A,w){return dg(A,w)},doComplete:o.doComplete.bind(o),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(A,w){return p.findDocumentColors(A,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:Gg,getSelectionRanges:$g,format:function(A,w,E){var k=void 0;if(w){var $=A.offsetAt(w.start),ie=A.offsetAt(w.end)-$;k={offset:$,length:ie}}var ne={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
366
+ `};return tg(A.getText(),k,ne).map(function(ce){return yi.replace(fr.create(A.positionAt(ce.offset),A.positionAt(ce.offset+ce.length)),ce.content)})}}}var zm=a(96876),Gm=a(4328),$m=a(3256),Km=a(71707),Ym=a(82801),Jm=a(32095),Xm=a(86081),Qm=a(44254),Zm=a(75019),_m=a(13837),th=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const fs=Kg({});is.registerHelper("lint","json",function(t,r){return th(this,null,function*(){const{schema:i,setError:o}=r;fs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=wf.create(r.id+".json","json",0,t),p=fs.parseJSONDocument(s),m=yield fs.doValidation(s,p);return m.length?o&&o(m[0].message):o&&o(void 0),m.map(A=>({from:is.Pos(A.range.start.line,A.range.start.character),to:is.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),is.registerHelper("hint","json",(t,r)=>th(void 0,null,function*(){const i=r.schema;if(!i)return;fs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=wf.create(r.id+".json","json",0,t.getValue()),m=fs.parseJSONDocument(p),A=yield fs.doComplete(p,{line:o.line,character:o.ch},m),w=k=>{let $="";for(;k--;)$+=" ";return $};let E=A?A.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:($,ie,ne)=>{const ce="_$__REDOC_CURSOR_HERE";let ge=ne.text.replace(/(\$1|\${1:[^}]+})/,ce)||"";if(ge=ge.replace(/(\$\d+|\${[^}]+})/g,"")||"",$.setSelection(ne.from,ne.to),ge.indexOf(`
367
367
  `)>-1){const Se=$.getLine($.getCursor().line).search(/(\S|$)/);ge=ge.replace(/\n/g,`
368
- `+w(Se))}$.replaceSelection(ge);const ve=$.getSearchCursor(ce,te.from);ve.findNext()&&($.setCursor(ve.from()),ve.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:as.Pos(o.line,s.start),to:as.Pos(o.line,o.ch),list:E}}));var Yg=Object.defineProperty,Jg=(t,r,i)=>r in t?Yg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ef=(t,r,i)=>(Jg(t,typeof r!="symbol"?r+"":r,i),i);const Xg=St.createGlobalStyle`
368
+ `+w(Se))}$.replaceSelection(ge);const ve=$.getSearchCursor(ce,ne.from);ve.findNext()&&($.setCursor(ve.from()),ve.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:is.Pos(o.line,s.start),to:is.Pos(o.line,o.ch),list:E}}));var Yg=Object.defineProperty,Jg=(t,r,i)=>r in t?Yg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Cf=(t,r,i)=>(Jg(t,typeof r!="symbol"?r+"":r,i),i);const Xg=St.createGlobalStyle`
369
369
  .cm-s-material.CodeMirror {
370
370
  background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
371
371
  color: ${({theme:t})=>t.colors.text.light}!important;
@@ -413,55 +413,55 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function bg(t){return t.i
413
413
  flex: 1;
414
414
  border-radius: ${({theme:t})=>t.components.panels.borderRadius};
415
415
  }
416
- `;class Qg extends d.Component{constructor(){super(...arguments);Ef(this,"editor"),Ef(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Ef(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Ef(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:o,setError:s}=this.props.fieldApi,{onChange:p,onBlur:m,forwardedRef:S}=this.props;return d.createElement(d.Fragment,null,d.createElement(Xg,null),d.createElement(Vv.fk,{editorDidMount:this.initEditor,value:r||"",ref:S||void 0,onBeforeChange:(w,E,k)=>{i(k),p&&p(k)},onBlur:w=>{o(),m&&m(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 Zg=zr(Qg);var _g=Object.defineProperty,qg=Object.defineProperties,ey=Object.getOwnPropertyDescriptors,th=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,rh=(t,r,i)=>r in t?_g(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ny=(t,r)=>{for(var i in r||(r={}))ty.call(r,i)&&rh(t,i,r[i]);if(th)for(var i of th(r))ry.call(r,i)&&rh(t,i,r[i]);return t},iy=(t,r)=>qg(t,ey(r)),ay=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});const oy=(0,Ta.Pi)(t=>{var r;const i=t.body.content,o=t.console.formApi,s=(te={})=>Array.isArray(te)?[]:{},p=te=>{var ce;if(!i||!i.hasSample)return"";const ge=(ce=i.active)==null?void 0:ce.examples;if(!(ge==null?void 0:ge[te]))return"";const ve=ge==null?void 0:ge[te].value,Se=Kd()(ve,t.properties||s(ve),{arrayMerge:kn.lN});return JSON.stringify(Se,null,2)},m=(r=i==null?void 0:i.operation)==null?void 0:r.activeExampleName,S=te=>{var ce;(ce=i==null?void 0:i.operation)==null||ce.activateExampleName(te),o.setValue("body",p(te))},w=te=>{if(!te)return"";if(te.mime==="application/x-www-form-urlencoded")return te.value;const ce=te.value,ge=Kd()(ce,t.properties||s(ce),{arrayMerge:kn.lN});return JSON.stringify(ge,null,2)},E=(te,ce)=>ay(void 0,null,function*(){const{setValue:ge}=o;ge(`body.${te}`,ce)});(0,d.useEffect)(()=>{m!==!1?m&&o.setValue("body",p(m)):o.setValue("body",JSON.stringify(t.properties||s(),null,2))},[m]);const{validate:k,body:$}=t,oe=te=>d.createElement(St.DropdownOrLabel,iy(ny({},te),{variant:"dark",fullWidth:!0,Label:jv,Dropdown:Br.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(St.MediaTypesSwitch,{content:$.content,renderDropdown:oe},te=>{var ce;const ge=te.examples||{},ve=Object.keys(ge),Se=te.schema,be=xt(Se||{},te.name)||te.name===Ne.MULTIPART||te.name===Ne.URL_ENCODED,{exampleKey:Te}=(0,Hc.C6)(te.operation,ge),Ge=ge[Te];return d.createElement(d.Fragment,null,ve.length&&ve.length!==1&&d.createElement(Hc.b_,{examples:ge,onChange:S,exampleKey:Te})||null,be?d.createElement(Bv,{mediaType:te,formApi:o,onChange:E.bind(void 0)}):d.createElement(Zg,{id:"body"+t.id,field:"body",initialValue:w(Ge),schema:(((ce=t==null?void 0:t.resolvedBody)==null?void 0:ce.content[te.name])||{}).schema,mode:te.name,validate:k}))}))}),sy=d.memo(oy);function ly({response:t}){return d.createElement(d.Fragment,null,d.createElement(oh,null," Body: "),uy(t))}function uy(t){return t.body?d.createElement(St.JsonViewer,{data:t.body}):t.fileInfo?d.createElement(St.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(St.SourceCodeWithText,{lang:(0,St.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):d.createElement(sh,null,d.createElement("i",null,"(no content)")):null}function fy({headers:t}){const r=d.useContext(St.OptionsContext),[i,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),m=!!s&&p.length>s,S=m&&i?[...p].splice(0,s):[...p],w=()=>{o(!i)};return d.createElement(d.Fragment,null,d.createElement(oh,null," Headers: "),d.createElement(sh,null,S.map(E=>d.createElement("div",{key:E},d.createElement(nh,null,E,":"),d.createElement("code",null,t[E]))),m&&d.createElement(ih,{onClick:w},i?"Show more...":"Hide headers")))}const nh=St.styled.strong`
416
+ `;class Qg extends d.Component{constructor(){super(...arguments);Cf(this,"editor"),Cf(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Cf(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Cf(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:o,setError:s}=this.props.fieldApi,{onChange:p,onBlur:m,forwardedRef:A}=this.props;return d.createElement(d.Fragment,null,d.createElement(Xg,null),d.createElement(Vv.fk,{editorDidMount:this.initEditor,value:r||"",ref:A||void 0,onBeforeChange:(w,E,k)=>{i(k),p&&p(k)},onBlur:w=>{o(),m&&m(w)},options:{mode:this.props.mode||Al.T.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 Zg=Hr(Qg);var _g=Object.defineProperty,qg=Object.defineProperties,ey=Object.getOwnPropertyDescriptors,rh=Object.getOwnPropertySymbols,ty=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,nh=(t,r,i)=>r in t?_g(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ny=(t,r)=>{for(var i in r||(r={}))ty.call(r,i)&&nh(t,i,r[i]);if(rh)for(var i of rh(r))ry.call(r,i)&&nh(t,i,r[i]);return t},iy=(t,r)=>qg(t,ey(r)),ay=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});const oy=(0,Ta.Pi)(t=>{var r;const i=t.body.content,o=t.console.formApi,s=ie=>{var ne;if(!i||!i.hasSample)return"";const ce=(ne=i.active)==null?void 0:ne.examples;if(!(ce==null?void 0:ce[ie]))return"";const ge=ce==null?void 0:ce[ie].value,ve=t.properties?Yd()(ge,t.properties,{arrayMerge:Rn.lN}):ge;return JSON.stringify(ve,null,2)},p=(r=i==null?void 0:i.operation)==null?void 0:r.activeExampleName,m=ie=>{var ne;(ne=i==null?void 0:i.operation)==null||ne.activateExampleName(ie),o.setValue("body",s(ie))},A=ie=>{if(!ie)return"";if(ie.mime===Al.T.URL_ENCODED)return ie.value;const ne=ie.value,ce=t.properties?Yd()(ne,t.properties,{arrayMerge:Rn.lN}):ne;return JSON.stringify(ce,null,2)},w=(ie,ne)=>ay(void 0,null,function*(){const{setValue:ce}=o;ce(`body.${ie}`,ne)});(0,d.useEffect)(()=>{p!==!1?p&&o.setValue("body",s(p)):o.setValue("body",JSON.stringify(t.properties||{},null,2))},[p]);const{validate:E,body:k}=t,$=ie=>d.createElement(St.DropdownOrLabel,iy(ny({},ie),{variant:"dark",fullWidth:!0,Label:jv,Dropdown:ir.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(St.MediaTypesSwitch,{content:k.content,renderDropdown:$},ie=>{var ne;const ce=ie.examples||{},ge=Object.keys(ce),ve=ie.schema,Se=ct(ve||{},ie.name)||ie.name===Al.T.MULTIPART||ie.name===Al.T.URL_ENCODED,{exampleKey:be}=(0,zc.C6)(ie.operation,ce),Te=ce[be];return d.createElement(d.Fragment,null,ge.length&&ge.length!==1&&d.createElement(zc.b_,{examples:ce,onChange:m,exampleKey:be})||null,Se?d.createElement(Bv,{mediaType:ie,formApi:o,onChange:w.bind(void 0)}):d.createElement(Zg,{id:"body"+t.id,field:"body",initialValue:A(Te),schema:(((ne=t==null?void 0:t.resolvedBody)==null?void 0:ne.content[ie.name])||{}).schema,mode:ie.name,validate:E}))}))}),sy=d.memo(oy);function ly({response:t}){return d.createElement(d.Fragment,null,d.createElement(sh,null," Body: "),uy(t))}function uy(t){return t.body?d.createElement(St.JsonViewer,{data:t.body}):t.fileInfo?d.createElement(St.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(St.SourceCodeWithText,{lang:(0,St.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):d.createElement(lh,null,d.createElement("i",null,"(no content)")):null}function fy({headers:t}){const r=d.useContext(St.OptionsContext),[i,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),m=!!s&&p.length>s,A=m&&i?[...p].splice(0,s):[...p],w=()=>{o(!i)};return d.createElement(d.Fragment,null,d.createElement(sh,null," Headers: "),d.createElement(lh,null,A.map(E=>d.createElement("div",{key:E},d.createElement(ih,null,E,":"),d.createElement("code",null,t[E]))),m&&d.createElement(ah,{onClick:w},i?"Show more...":"Hide headers")))}const ih=St.styled.strong`
417
417
  text-transform: capitalize;
418
418
  display: inline-block;
419
419
  padding-right: 5px;
420
- `,ih=St.styled.div`
420
+ `,ah=St.styled.div`
421
421
  cursor: pointer;
422
422
  margin-top: 5px;
423
423
  font-size: 14px;
424
- `;nh.displayName="HeaderName",ih.displayName="StyledShowMoreLabel";const cy=St.styled.div`
424
+ `;ih.displayName="HeaderName",ah.displayName="StyledShowMoreLabel";const cy=St.styled.div`
425
425
  margin-bottom: 10px;
426
- `,ad=St.styled.div`
426
+ `,od=St.styled.div`
427
427
  display: inline-block;
428
428
  margin-right: 20px;
429
429
  padding: 2px 0;
430
430
  text-align: center;
431
431
  color: ${({theme:t})=>t.colors.text.light};
432
- `,dy=(0,St.styled)(ad)`
432
+ `,dy=(0,St.styled)(od)`
433
433
  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};
434
- `,ah=St.styled.header`
434
+ `,oh=St.styled.header`
435
435
  font-weight: bold;
436
436
  margin-bottom: 10px;
437
437
  `,py=St.styled.code`
438
438
  border-left: 3px solid #ff4040;
439
439
  padding-left: 5px;
440
- `,oh=St.styled.div`
440
+ `,sh=St.styled.div`
441
441
  margin-bottom: 10px;
442
442
 
443
443
  &:not(:first-child) {
444
444
  margin-top: 10px;
445
445
  }
446
- `,sh=(0,St.styled)(xl.nr)`
446
+ `,lh=(0,St.styled)(xl.nr)`
447
447
  border-top-left-radius: 0;
448
448
  border-top-right-radius: 0;
449
- `;class hy extends d.PureComponent{render(){const{error:r,response:i,time:o}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let m;return p>1e6?m=(p/1e6).toFixed(2)+" MB":p>1e3?m=(p/1e3).toFixed(2)+" KB":m=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(ah,null," Could not get any response "),d.createElement(py,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(ah,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")):s?d.createElement(d.Fragment,null,d.createElement(cy,null,d.createElement(dy,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(ad,null,d.createElement("span",null," Time: "),o,"ms"),d.createElement(ad,null,d.createElement("span",null," Size: "),m)),d.createElement("div",null,d.createElement(fy,{headers:s.headers}),d.createElement(ly,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var lh=a(55346);function vy(t,r,i){const o=r.path||{},s=r.query||{},p=Object.keys(s);let m=(0,Ut.v5)(t,o);const S=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(m+="?"+p.map(w=>{if(!s[w])return"";const E=S(w);return E?(0,St.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),m}const gy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>d.createElement(my,null,d.createElement(lh._,null,d.createElement(so.FH,{type:r.httpVerb},r.httpVerb),d.createElement(lh.y,{wrap:"true"},vy(r.path,s,r.parameters))),d.createElement(yy,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),yy=(0,St.styled)(so.zx)`
449
+ `;class hy extends d.PureComponent{render(){const{error:r,response:i,time:o}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let m;return p>1e6?m=(p/1e6).toFixed(2)+" MB":p>1e3?m=(p/1e3).toFixed(2)+" KB":m=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(oh,null," Could not get any response "),d.createElement(py,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(oh,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")):s?d.createElement(d.Fragment,null,d.createElement(cy,null,d.createElement(dy,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(od,null,d.createElement("span",null," Time: "),o,"ms"),d.createElement(od,null,d.createElement("span",null," Size: "),m)),d.createElement("div",null,d.createElement(fy,{headers:s.headers}),d.createElement(ly,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var uh=a(55346);function vy(t,r,i){const o=r.path||{},s=r.query||{},p=Object.keys(s);let m=(0,It.v5)(t,o);const A=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(m+="?"+p.map(w=>{if(!s[w])return"";const E=A(w);return E?(0,St.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),m}const gy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>d.createElement(my,null,d.createElement(uh._,null,d.createElement(so.FH,{type:r.httpVerb},r.httpVerb),d.createElement(uh.y,{wrap:"true"},vy(r.path,s,r.parameters))),d.createElement(yy,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),yy=(0,St.styled)(so.zx)`
450
450
  width: ${({theme:t})=>t.components.tryItSendButton.fullWidth?"100%":"auto"};
451
451
  `,my=(0,St.styled)(En.k1)`
452
452
  ${({theme:t})=>t.components.tryItSendButton.fullWidth?`
453
453
  flex-direction: column;
454
454
  align-items: flex-start;`:""};
455
- `,xy=d.memo(gy),by=t=>{(0,d.useEffect)(()=>{t()},[])},qm=t=>{useEffect(()=>()=>{t()},[])},wy=zr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=d.useState(t),p=r.map((S,w)=>({idx:w,value:S})),m=S=>{i.setValue(S.value),s(S.value)};return by(()=>{t&&i.setValue(t)}),d.createElement(Br.Dropdown,{fullWidth:!0,variant:"dark",value:o,options:p,onChange:m})});var co;(function(t){t.ARRAY="array",t.OBJECT="object"})(co||(co={}));const Sy=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Ay(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function Ey(t){const r={};return t.forEach(i=>{Ay(r,i.in,i)}),r}const Cy=["path","query","cookie","header"];function Oy(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===co.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 Ty(t){if(t.schema.type===co.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&typeof t.schema.rawSchema.items!="boolean"&&Array.isArray(t.schema.rawSchema.items)){if(t.schema.rawSchema.items[0].default)return[t.schema.rawSchema.items[0].default];if(t.schema.rawSchema.items[0].example)return[t.schema.rawSchema.items[0].example]}if(!r&&typeof t.schema.rawSchema.items!="boolean"&&!Array.isArray(t.schema.rawSchema.items)&&(0,St.isObject)(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 Py({values:t,operation:r}){function i(S,w){const E=d.useMemo(()=>Oy(w),[w]),k=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,$=Ty(w),oe=S.split(".").map(te=>(0,$t.dw)(te));return k?d.createElement(ct.NI,null,d.createElement(wy,{initValue:$,paramEnum:k,field:S})):d.createElement(Mr,{fullWidth:!0,"data-cy":"parameter-input",id:S,field:S,placeholder:Sy(w),validate:E,initialValue:$||(0,$t.U2)(t,oe),validateOnBlur:!0,validateOnChange:!0})}function o({oneOfType:S,type:w,items:E}){return S||w===co.ARRAY&&(E==null?void 0:E.type)===co.OBJECT&&"Array of objects"}function s(S,w,E){var k;const $=E?(0,$t.s1)(E,S.name):S.name,oe=o(S.schema);if(oe&&console.warn(`Unsupported parameter definition: "${oe}"`),S.schema.type===co.OBJECT)return(k=S.schema.fields)==null?void 0:k.map(ge=>s(ge,w,$));const te=E?[w,E]:[S.in],ce=(0,$t.s1)(...te,(0,$t.A8)(S.name));return d.createElement(ct.NI,{key:ce},d.createElement(ct.lX,{required:S.required},$,":"),oe?d.createElement(ct.GE,null,"Unsupported field schema definition"):i(ce,S))}function p(S,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:S},d.createElement(ct.NI,null,d.createElement(ct.iG,null," # ",S," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,S)))}const m=Ey(r.parameters||[]);return d.createElement(ct.iA,null,Cy.map(S=>p(S,m[S])))}function Iy(t){const{name:r,value:i,description:o,variableEnum:s,onChange:p,defaultValue:m}=t,S=k=>p(k.target.value),w=k=>p(k.value),E=s?s.map((k,$)=>({value:k,idx:$})):[];return d.createElement(ct.NI,null,d.createElement(ct.lX,null,r,":"),E&&E.length?d.createElement(Br.Dropdown,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement($n,{fullWidth:!0,value:i,onChange:S,placeholder:m}),o&&d.createElement(Fy,null,o))}const Fy=St.styled.small`
455
+ `,xy=d.memo(gy),by=t=>{(0,d.useEffect)(()=>{t()},[])},qm=t=>{useEffect(()=>()=>{t()},[])},wy=Hr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=d.useState(),p=r.map((w,E)=>({idx:E,value:w})),m=w=>{i.setValue(w.value),s(w.value)};by(()=>{if(!!t)if(Array.isArray(t)){const w=t.length?t[0]:"";s(w),i.setValue(w)}else s(t),i.setValue(t)});const A=()=>{i.setValue(""),s("")};return d.createElement(ir.Dropdown,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:p,handleClear:A,onChange:m})});var co;(function(t){t.ARRAY="array",t.OBJECT="object"})(co||(co={}));const Sy=t=>`(${t.schema.type})`+(t.example?` ${t.example}`:"");function Ay(t,r,i){t[r]||(t[r]=[]),t[r].push(i)}function Ey(t){const r={};return t.forEach(i=>{Ay(r,i.in,i)}),r}const Cy=["path","query","cookie","header"];function Oy(t){return r=>{if(t.required&&!r)return"Field is required";if(t.required&&t.schema.type===co.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 Ty(t){if(t.schema.type===co.ARRAY){const r=t.schema.default||t.schema.example;if(!r&&typeof t.schema.rawSchema.items!="boolean"&&Array.isArray(t.schema.rawSchema.items)){if(t.schema.rawSchema.items[0].default)return[t.schema.rawSchema.items[0].default];if(t.schema.rawSchema.items[0].example)return[t.schema.rawSchema.items[0].example]}if(!r&&typeof t.schema.rawSchema.items!="boolean"&&!Array.isArray(t.schema.rawSchema.items)&&(0,St.isObject)(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 Py({values:t,operation:r}){function i(A,w){const E=d.useMemo(()=>Oy(w),[w]),k=Array.isArray(w.schema.enum)&&w.schema.enum.length?w.schema.enum:void 0,$=Ty(w),ie=A.split(".").map(ne=>(0,Gt.dw)(ne));return k?d.createElement(vt.NI,null,d.createElement(wy,{initValue:$,paramEnum:k,field:A})):d.createElement(Lr,{fullWidth:!0,"data-cy":"parameter-input",id:A,field:A,placeholder:Sy(w),validate:E,initialValue:$||(0,Gt.U2)(t,ie),validateOnBlur:!0,validateOnChange:!0})}function o({oneOfType:A,type:w,items:E}){return A||w===co.ARRAY&&(E==null?void 0:E.type)===co.OBJECT&&"Array of objects"}function s(A,w,E){var k;const $=E?(0,Gt.s1)(E,A.name):A.name,ie=o(A.schema);if(ie&&console.warn(`Unsupported parameter definition: "${ie}"`),A.schema.type===co.OBJECT)return(k=A.schema.fields)==null?void 0:k.map(ge=>s(ge,w,$));const ne=E?[w,E]:[A.in],ce=(0,Gt.s1)(...ne,(0,Gt.A8)(A.name));return d.createElement(vt.NI,{key:ce},d.createElement(vt.lX,{required:A.required},$,":"),ie?d.createElement(vt.GE,null,"Unsupported field schema definition"):i(ce,A))}function p(A,w){return!w||!w.length?null:d.createElement(d.Fragment,{key:A},d.createElement(vt.NI,null,d.createElement(vt.iG,null," # ",A," parameters "),d.createElement("span",null,"\xA0")),w.map(E=>s(E,A)))}const m=Ey(r.parameters||[]);return d.createElement(vt.iA,null,Cy.map(A=>p(A,m[A])))}function Iy(t){const{name:r,value:i,description:o,variableEnum:s,onChange:p,defaultValue:m}=t,A=k=>p(k.target.value),w=k=>p(k.value),E=s?s.map((k,$)=>({value:k,idx:$})):[];return d.createElement(vt.NI,null,d.createElement(vt.lX,null,r,":"),E&&E.length?d.createElement(ir.Dropdown,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement(Cn,{fullWidth:!0,value:i,onChange:A,placeholder:m}),o&&d.createElement(Fy,null,o))}const Fy=St.styled.small`
456
456
  display: inline-block;
457
457
  margin-top: 5px;
458
458
  color: #d0d0d0;
459
- `;var uh=Object.defineProperty,ky=Object.defineProperties,Ry=Object.getOwnPropertyDescriptor,My=Object.getOwnPropertyDescriptors,fh=Object.getOwnPropertySymbols,Ly=Object.prototype.hasOwnProperty,Dy=Object.prototype.propertyIsEnumerable,od=(t,r,i)=>r in t?uh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ch=(t,r)=>{for(var i in r||(r={}))Ly.call(r,i)&&od(t,i,r[i]);if(fh)for(var i of fh(r))Dy.call(r,i)&&od(t,i,r[i]);return t},dh=(t,r)=>ky(t,My(r)),Ny=(t,r,i,o)=>{for(var s=o>1?void 0:o?Ry(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(o?m(r,i,s):m(s))||s);return o&&s&&uh(r,i,s),s},sd=(t,r,i)=>(od(t,typeof r!="symbol"?r+"":r,i),i);let ld=class extends d.Component{constructor(){super(...arguments);sd(this,"state",{activeIdx:0,variables:{}}),sd(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(o=>o.url===t.serverUrl),i=(0,Ut.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:i}),(0,$t.WW)("serverUrl",t.serverUrl||""),this.setState({variables:i})}),sd(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],o=r||r===""?r:(0,Ut.mj)(i)[t],s=dh(ch({},this.state.variables),{[t]:o});this.setState({variables:s}),(0,Ut.UY)(t,o),this.props.onChange(dh(ch({},i),{variables:s}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,$t.YQ)("serverUrl"),o=r.servers.findIndex(s=>s.url===i);return{activeIdx:o<0?0:o}}componentDidMount(){const t=(0,Ut.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:`
460
- ${(0,Ut.nq)((0,Ut.v5)(s.url,this.state.variables),s.variables)}
459
+ `;var fh=Object.defineProperty,ky=Object.defineProperties,Ry=Object.getOwnPropertyDescriptor,My=Object.getOwnPropertyDescriptors,ch=Object.getOwnPropertySymbols,Ly=Object.prototype.hasOwnProperty,Dy=Object.prototype.propertyIsEnumerable,sd=(t,r,i)=>r in t?fh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dh=(t,r)=>{for(var i in r||(r={}))Ly.call(r,i)&&sd(t,i,r[i]);if(ch)for(var i of ch(r))Dy.call(r,i)&&sd(t,i,r[i]);return t},ph=(t,r)=>ky(t,My(r)),Ny=(t,r,i,o)=>{for(var s=o>1?void 0:o?Ry(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(o?m(r,i,s):m(s))||s);return o&&s&&fh(r,i,s),s},ld=(t,r,i)=>(sd(t,typeof r!="symbol"?r+"":r,i),i);let ud=class extends d.Component{constructor(){super(...arguments);ld(this,"state",{activeIdx:0,variables:{}}),ld(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(o=>o.url===t.serverUrl),i=(0,It.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:i}),(0,Gt.WW)("serverUrl",t.serverUrl||""),this.setState({variables:i})}),ld(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],o=r||r===""?r:(0,It.mj)(i)[t],s=ph(dh({},this.state.variables),{[t]:o});this.setState({variables:s}),(0,It.UY)(t,o),this.props.onChange(ph(dh({},i),{variables:s}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,Gt.YQ)("serverUrl"),o=r.servers.findIndex(s=>s.url===i);return{activeIdx:o<0?0:o}}componentDidMount(){const t=(0,It.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:`
460
+ ${(0,It.nq)((0,It.v5)(s.url,this.state.variables),s.variables)}
461
461
  - ${s.description||"Default"}
462
- `})),o=Object.keys(this.state.variables);return d.createElement(By,null,d.createElement(ct.lX,{htmlFor:"server"},"Target server: "),d.createElement(ct.NI,null,d.createElement(Br.Dropdown,{variant:"dark",value:i[t].value,options:i,fullWidth:!0,onChange:this.handleServerChange})),o.length?o.map(s=>{var p;const m=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(m)return d.createElement(Iy,{key:s,name:s,value:this.state.variables[s],defaultValue:m.default,onChange:S=>this.handleVariableChange(s,S),variableEnum:m.enum,description:m.description})}):null)}};ld=Ny([Ta.Pi],ld);const By=St.styled.div`
462
+ `})),o=Object.keys(this.state.variables);return d.createElement(By,null,d.createElement(vt.lX,{htmlFor:"server"},"Target server: "),d.createElement(vt.NI,null,d.createElement(ir.Dropdown,{variant:"dark",value:i[t].value,options:i,fullWidth:!0,onChange:this.handleServerChange})),o.length?o.map(s=>{var p;const m=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(m)return d.createElement(Iy,{key:s,name:s,value:this.state.variables[s],defaultValue:m.default,onChange:A=>this.handleVariableChange(s,A),variableEnum:m.enum,description:m.description})}):null)}};ud=Ny([Ta.Pi],ud);const By=St.styled.div`
463
463
  margin-top: 20px;
464
- `;var Uy=a(72940),jy=Object.defineProperty,Vy=Object.defineProperties,Wy=Object.getOwnPropertyDescriptors,Cf=Object.getOwnPropertySymbols,ph=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,vh=(t,r,i)=>r in t?jy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Hy=(t,r)=>{for(var i in r||(r={}))ph.call(r,i)&&vh(t,i,r[i]);if(Cf)for(var i of Cf(r))hh.call(r,i)&&vh(t,i,r[i]);return t},zy=(t,r)=>Vy(t,Wy(r)),Gy=(t,r)=>{var i={};for(var o in t)ph.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Cf)for(var o of Cf(t))r.indexOf(o)<0&&hh.call(t,o)&&(i[o]=t[o]);return i};function ud(t){var r=t,{header:i,error:o,success:s}=r,p=Gy(r,["header","error","success"]);const m=({toggle:S,expanded:w})=>d.createElement(En.h4,{onClick:S,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(En.xz,null,d.createElement(En.Dx,null,i),d.createElement(St.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(St.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&d.createElement(St.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement($y,zy(Hy({},p),{header:m}))}const $y=(0,ir.ZP)(En.s_)`
464
+ `;var Uy=a(72940),jy=Object.defineProperty,Vy=Object.defineProperties,Wy=Object.getOwnPropertyDescriptors,Of=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,gh=(t,r,i)=>r in t?jy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Hy=(t,r)=>{for(var i in r||(r={}))hh.call(r,i)&&gh(t,i,r[i]);if(Of)for(var i of Of(r))vh.call(r,i)&&gh(t,i,r[i]);return t},zy=(t,r)=>Vy(t,Wy(r)),Gy=(t,r)=>{var i={};for(var o in t)hh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Of)for(var o of Of(t))r.indexOf(o)<0&&vh.call(t,o)&&(i[o]=t[o]);return i};function fd(t){var r=t,{header:i,error:o,success:s}=r,p=Gy(r,["header","error","success"]);const m=({toggle:A,expanded:w})=>d.createElement(En.h4,{onClick:A,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(En.xz,null,d.createElement(En.Dx,null,i),d.createElement(St.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(St.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&d.createElement(St.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement($y,zy(Hy({},p),{header:m}))}const $y=(0,$t.ZP)(En.s_)`
465
465
  ${En.h4} {
466
466
  color: white;
467
467
  border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
@@ -478,41 +478,41 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function bg(t){return t.i
478
478
  border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
479
479
  border-top: 0;
480
480
  }
481
- `;var Of=a(25973),gh=Object.defineProperty,Ky=Object.defineProperties,Yy=Object.getOwnPropertyDescriptor,Jy=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertySymbols,yh=Object.prototype.hasOwnProperty,mh=Object.prototype.propertyIsEnumerable,fd=(t,r,i)=>r in t?gh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Kr=(t,r)=>{for(var i in r||(r={}))yh.call(r,i)&&fd(t,i,r[i]);if(Tf)for(var i of Tf(r))mh.call(r,i)&&fd(t,i,r[i]);return t},Ln=(t,r)=>Ky(t,Jy(r)),xh=(t,r)=>{var i={};for(var o in t)yh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Tf)for(var o of Tf(t))r.indexOf(o)<0&&mh.call(t,o)&&(i[o]=t[o]);return i},Xy=(t,r,i,o)=>{for(var s=o>1?void 0:o?Yy(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(o?m(r,i,s):m(s))||s);return o&&s&&gh(r,i,s),s},ds=(t,r,i)=>(fd(t,typeof r!="symbol"?r+"":r,i),i),bh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{S(i.next(w))}catch(E){s(E)}},m=w=>{try{S(i.throw(w))}catch(E){s(E)}},S=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);S((i=i.apply(t,r)).next())});function wh(t){return t.startsWith("//")?"https:"+t:t}const Qy={flex:1,display:"flex",flexDirection:"column"};let cd=class extends d.Component{constructor(t){super(t);ds(this,"formApi"),ds(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=xh(o,["values"]);this.formApi=r,setTimeout(()=>{const m=Ln(Kr({},p),{values:Ln(Kr({},s),{query:(0,Ut.FU)(s.query||{})})});this.setState({form:m})},0)}),ds(this,"handleChange",r=>{var i=r,{values:o}=i,s=xh(i,["values"]);const p=Ln(Kr({},s),{values:Ln(Kr({},o),{query:(0,Ut.FU)(o.query||{})})});this.setState({form:p}),(0,Ut.Hc)(p),this.props.operation.setRequestValues(o)}),ds(this,"handleTabChange",r=>{this.setState({activeTab:r})}),ds(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),ds(this,"handleExecute",()=>bh(this,null,function*(){var r,i,o,s,p,m,S;const{store:w,operation:E,onResponse:k}=this.props,{values:$,invalid:oe}=this.state.form;if(this.formApi.submitForm(),oe){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:yl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const te=this.props.operation.requestBody,ce=te&&te.content&&te.content.active&&te.content.active.name||"";let ge=$.body;if(/json/.test(ce))try{ge=JSON.parse(ge)}catch(ze){console.error(ze)}this.setState({loading:!0});const ve=this.state.resolvedRawSpec,Se=(E.httpVerb||"").toLowerCase(),be=(0,$t.U2)(ve,["paths",E.path,Se,"servers"])||(0,$t.U2)(ve,["paths",E.path,"servers"])||(0,$t.U2)(ve,["servers"]);if(!be)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 Te=be.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),Ge=Date.now(),Ue=!!window.document.documentMode;let He,Be=$.auth;if($.auth){const ze=Object.keys($.auth)[0],qe=(0,$t.dw)(ze);He=Ln(Kr({},ve),{components:Ln(Kr({},ve.components),{securitySchemes:Ln(Kr({},ve.components.securitySchemes),{[qe]:Ln(Kr({},ve.components.securitySchemes[qe]),{type:ve.components.securitySchemes[qe].type==="openIdConnect"?"oauth2":ve.components.securitySchemes[qe].type})})})}),Be=Ln(Kr({},Be),{[qe]:Be[ze]})}else He=Kr({},ve);const je=w.options.corsProxyUrl;je&&be.length&&(He.servers=be.map(ze=>Ln(Kr({},ze),{url:je+wh(ze.url)})),He.paths=Ln(Kr({},He.paths),{[E.path]:Ln(Kr({},He.paths[E.path]),{[Se]:Ln(Kr({},He.paths[E.path][Se]),{servers:void 0}),servers:void 0})}));const We=((s=(o=te==null?void 0:te.content)==null?void 0:o.active)==null?void 0:s.name)||null;if(We&&ge&&gt(We)){const ze=Object.values(ge);ge=ze.length>1?ze:ze[0]}const Xe={userFetch:Ue&&a(54098).fetch,server:je?je+wh(Te.url):Te.url,serverVariables:this.state.server.variables,spec:He,pathName:E.path,method:E.httpVerb,parameters:Kr(Kr(Kr(Kr({},$.path),$.query),$.header),$.cookie),securities:{authorized:Be},requestBody:ge,requestContentType:We,responseContentType:((p=$.header)==null?void 0:p.Accept)||null,requestInterceptor:(0,Ut.Tz)(w.options,E)};try{const ze=yield Lc.execute(Xe),qe=ze==null?void 0:ze.data;qe instanceof Blob&&(gt(qe.type)&&(ze.fileInfo={rawData:qe,fileName:(0,Ut.AM)(ze.headers)}),ze.data=yield qe.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()-Ge}),(S=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||S.call(m,{eventType:yl.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,Ut.ZS)(t.operation.parameters,"path"),cookie:(0,Ut.ZS)(t.operation.parameters,"cookie"),header:(0,Ut.ZS)(t.operation.parameters,"header"),query:(0,Ut.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return bh(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:o,activeTab:s,form:p,response:m,loading:S,error:w}=this.state,E=!!(m||w);return d.createElement(_y,{shaking:o,className:r,rootElement:i},d.createElement(En.k1,null,d.createElement(kv,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Of.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Of.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Of.RE,{hidden:s!==1},this.renderResponse()),d.createElement(xy,{hasResponse:E,params:p.values,operation:t,loading:S,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:S}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,k=m&&St.JsonPointer.get(m,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 oe=r.parameters||[],te=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(Hl,{onChange:this.handleChange,getApi:this.setFormApi,style:Ln(Kr({},Qy),{margin:0})},d.createElement(En.UQ,{initialActiveIdx:r.security.length&&$?1:0},r.security.length&&d.createElement(ud,{header:(0,oo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!$&&!!w.auth,success:!!$},te?d.createElement(qy,{field:"auth",validate:Sl},ce=>d.createElement(af.Q,{Hook:te,props:{server:S,operation:r,onChange:ce,OAuth2:y}})):d.createElement(Iv,{formApi:this.formApi,form:p,operation:r,activeServer:S.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(ud,{header:(0,oo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(sy,{validate:Zy,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:o}))||null,oe.length&&d.createElement(ud,{header:(0,oo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Py,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(ld,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(hy,{response:t,error:r,time:i})}};cd=Xy([Ta.Pi],cd);function Zy(){}function _y(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,$t.Bs)(s);return d.createElement(Of.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function qy(t){const{fieldApi:r,render:i,userProps:o}=Bn(Kr({},t)),{setValue:s}=r,{children:p}=o;return i(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=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=a.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,A.concat(a.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,A.concat(a.call(arguments)))},D=Math.max(0,b.length-A.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var ee=function(){};ee.prototype=b.prototype,g.prototype=new ee,ee.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(xe){}},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(xe){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},ee=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?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%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?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"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":ee,"%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(xe){var pe;if(xe==="%AsyncFunction%")pe=b("async function () {}");else if(xe==="%GeneratorFunction%")pe=b("function* () {}");else if(xe==="%AsyncGeneratorFunction%")pe=b("async function* () {}");else if(xe==="%AsyncGenerator%"){var fe=ye("%AsyncGeneratorFunction%");fe&&(pe=fe.prototype)}else if(xe==="%AsyncIteratorPrototype%"){var se=ye("%AsyncGenerator%");se&&(pe=B(se.prototype))}return W[xe]=pe,pe},Q={"%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=a(58612),C=a(17642),V=M.call(Function.call,Array.prototype.concat),X=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Z=M.call(Function.call,String.prototype.slice),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,re=function(xe){var pe=Z(xe,0,1),fe=Z(xe,-1);if(pe==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&pe!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var se=[];return q(xe,J,function(Fe,De,Re,Pe){se[se.length]=Re?q(Pe,de,"$1"):De||Fe}),se},ie=function(xe,pe){var fe=xe,se;if(C(Q,fe)&&(se=Q[fe],fe="%"+se[0]+"%"),C(W,fe)){var Fe=W[fe];if(Fe===j&&(Fe=R(fe)),typeof Fe=="undefined"&&!pe)throw new d("intrinsic "+xe+" exists, but is not available. Please file an issue!");return{alias:se,name:fe,value:Fe}}throw new v("intrinsic "+xe+" does not exist!")};h.exports=function(xe,pe){if(typeof xe!="string"||xe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pe!="boolean")throw new d('"allowMissing" argument must be a boolean');var fe=re(xe),se=fe.length>0?fe[0]:"",Fe=ie("%"+se+"%",pe),De=Fe.name,Re=Fe.value,Pe=!1,et=Fe.alias;et&&(se=et[0],X(fe,V([0,1],et)));for(var Qe=1,Je=!0;Qe<fe.length;Qe+=1){var ut=fe[Qe],ht=Z(ut,0,1),wt=Z(ut,-1);if((ht==='"'||ht==="'"||ht==="`"||wt==='"'||wt==="'"||wt==="`")&&ht!==wt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(Pe=!0),se+="."+ut,De="%"+se+"%",C(W,De))Re=W[De];else if(Re!=null){if(!(ut in Re)){if(!pe)throw new d("base intrinsic for "+xe+" exists, but the property is not available.");return}if(A&&Qe+1>=fe.length){var rt=A(Re,ut);Je=!!rt,Je&&"get"in rt&&!("originalValue"in rt.get)?Re=rt.get:Re=Re[ut]}else Je=C(Re,ut),Re=Re[ut];Je&&!Pe&&(W[De]=Re)}}return Re}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(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 a={},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;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(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(a,c,v,x,d){var b,A,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,ee=v?-1:1,W=a[c+j];for(j+=ee,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=ee,B-=8);for(A=b&(1<<-B)-1,b>>=-B,B+=x;B>0;A=A*256+a[c+j],j+=ee,B-=8);if(b===0)b=1-D;else{if(b===L)return A?NaN:(W?-1:1)*(1/0);A=A+Math.pow(2,x),b=b-D}return(W?-1:1)*A*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var A,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,ee=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,R=x?1:-1,Q=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+=ee/L:c+=ee*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;a[v+W]=g&255,W+=R,g/=256,d-=8);for(A=A<<d|g,D+=d;D>0;a[v+W]=A&255,W+=R,A/=256,D-=8);a[v+W-R]|=Q*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(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=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(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 a(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,D,B;if(A)for(B=Object.keys(A),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=A[D];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=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,A=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,ee=34,W=35,R=37,Q=38,M=39,C=42,V=44,X=45,q=58,Z=61,J=62,de=63,re=64,ie=91,ye=93,xe=96,pe=123,fe=124,se=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var De=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Re(N,ne){var z,ae,Oe,Ae,Ve,Le,nt;if(ne===null)return{};for(z={},ae=Object.keys(ne),Oe=0,Ae=ae.length;Oe<Ae;Oe+=1)Ve=ae[Oe],Le=String(ne[Ve]),Ve.slice(0,2)==="!!"&&(Ve="tag:yaml.org,2002:"+Ve.slice(2)),nt=N.compiledTypeMap.fallback[Ve],nt&&A.call(nt.styleAliases,Le)&&(Le=nt.styleAliases[Le]),z[Ve]=Le;return z}function Pe(N){var ne,z,ae;if(ne=N.toString(16).toUpperCase(),N<=255)z="x",ae=2;else if(N<=65535)z="u",ae=4;else if(N<=4294967295)z="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+z+c.repeat("0",ae-ne.length)+ne}function et(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Re(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(N,ne){for(var z=c.repeat(" ",ne),ae=0,Oe=-1,Ae="",Ve,Le=N.length;ae<Le;)Oe=N.indexOf(`
482
- `,ae),Oe===-1?(Ve=N.slice(ae),ae=Le):(Ve=N.slice(ae,Oe+1),ae=Oe+1),Ve.length&&Ve!==`
483
- `&&(Ae+=z),Ae+=Ve;return Ae}function Je(N,ne){return`
484
- `+c.repeat(" ",N.indent*ne)}function ut(N,ne){var z,ae,Oe;for(z=0,ae=N.implicitTypes.length;z<ae;z+=1)if(Oe=N.implicitTypes[z],Oe.resolve(ne))return!0;return!1}function ht(N){return N===B||N===g}function wt(N){return 32<=N&&N<=126||161<=N&&N<=55295&&N!==8232&&N!==8233||57344<=N&&N<=65533&&N!==65279||65536<=N&&N<=1114111}function rt(N){return wt(N)&&!ht(N)&&N!==65279&&N!==D&&N!==L}function lt(N,ne){return wt(N)&&N!==65279&&N!==V&&N!==ie&&N!==ye&&N!==pe&&N!==se&&N!==q&&(N!==W||ne&&rt(ne))}function yt(N){return wt(N)&&N!==65279&&!ht(N)&&N!==X&&N!==de&&N!==q&&N!==V&&N!==ie&&N!==ye&&N!==pe&&N!==se&&N!==W&&N!==Q&&N!==C&&N!==j&&N!==fe&&N!==Z&&N!==J&&N!==M&&N!==ee&&N!==R&&N!==re&&N!==xe}function mt(N){var ne=/^\n* /;return ne.test(N)}var pt=1,kt=2,Ft=3,Ct=4,Ht=5;function Lt(N,ne,z,ae,Oe){var Ae,Ve,Le,nt=!1,vt=!1,bt=ae!==-1,Gt=-1,Rt=yt(N.charCodeAt(0))&&!ht(N.charCodeAt(N.length-1));if(ne)for(Ae=0;Ae<N.length;Ae++){if(Ve=N.charCodeAt(Ae),!wt(Ve))return Ht;Le=Ae>0?N.charCodeAt(Ae-1):null,Rt=Rt&&lt(Ve,Le)}else{for(Ae=0;Ae<N.length;Ae++){if(Ve=N.charCodeAt(Ae),Ve===L)nt=!0,bt&&(vt=vt||Ae-Gt-1>ae&&N[Gt+1]!==" ",Gt=Ae);else if(!wt(Ve))return Ht;Le=Ae>0?N.charCodeAt(Ae-1):null,Rt=Rt&&lt(Ve,Le)}vt=vt||bt&&Ae-Gt-1>ae&&N[Gt+1]!==" "}return!nt&&!vt?Rt&&!Oe(N)?pt:kt:z>9&&mt(N)?Ht:vt?Ct:Ft}function Vt(N,ne,z,ae){N.dump=function(){if(ne.length===0)return"''";if(!N.noCompatMode&&De.indexOf(ne)!==-1)return"'"+ne+"'";var Oe=N.indent*Math.max(1,z),Ae=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-Oe),Ve=ae||N.flowLevel>-1&&z>=N.flowLevel;function Le(nt){return ut(N,nt)}switch(Lt(ne,Ve,N.indent,Ae,Le)){case pt:return ne;case kt:return"'"+ne.replace(/'/g,"''")+"'";case Ft:return"|"+Tt(ne,N.indent)+Dt(Qe(ne,Oe));case Ct:return">"+Tt(ne,N.indent)+Dt(Qe(he(ne,Ae),Oe));case Ht:return'"'+K(ne,Ae)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function Tt(N,ne){var z=mt(N)?String(ne):"",ae=N[N.length-1]===`
485
- `,Oe=ae&&(N[N.length-2]===`
481
+ `;var Tf=a(25973),yh=Object.defineProperty,Ky=Object.defineProperties,Yy=Object.getOwnPropertyDescriptor,Jy=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,cd=(t,r,i)=>r in t?yh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Gr=(t,r)=>{for(var i in r||(r={}))mh.call(r,i)&&cd(t,i,r[i]);if(Pf)for(var i of Pf(r))xh.call(r,i)&&cd(t,i,r[i]);return t},Dn=(t,r)=>Ky(t,Jy(r)),bh=(t,r)=>{var i={};for(var o in t)mh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Pf)for(var o of Pf(t))r.indexOf(o)<0&&xh.call(t,o)&&(i[o]=t[o]);return i},Xy=(t,r,i,o)=>{for(var s=o>1?void 0:o?Yy(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(o?m(r,i,s):m(s))||s);return o&&s&&yh(r,i,s),s},cs=(t,r,i)=>(cd(t,typeof r!="symbol"?r+"":r,i),i),wh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},m=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);A((i=i.apply(t,r)).next())});function Sh(t){return t.startsWith("//")?"https:"+t:t}const Qy={flex:1,display:"flex",flexDirection:"column"};let dd=class extends d.Component{constructor(t){super(t);cs(this,"formApi"),cs(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=bh(o,["values"]);this.formApi=r,setTimeout(()=>{const m=Dn(Gr({},p),{values:Dn(Gr({},s),{query:(0,It.FU)(s.query||{})})});this.setState({form:m})},0)}),cs(this,"handleChange",r=>{var i=r,{values:o}=i,s=bh(i,["values"]);const p=Dn(Gr({},s),{values:Dn(Gr({},o),{query:(0,It.FU)(o.query||{})})});this.setState({form:p}),(0,It.Hc)(p),this.props.operation.setRequestValues(o)}),cs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),cs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),cs(this,"handleExecute",()=>wh(this,null,function*(){var r,i,o,s,p,m,A;const{store:w,operation:E,onResponse:k}=this.props,{values:$,invalid:ie}=this.state.form;if(this.formApi.submitForm(),ie){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:gl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:E.operationId,operationPath:E.path,operationHttpVerb:E.httpVerb,operationSummary:E.description});return}const ne=this.props.operation.requestBody,ce=ne&&ne.content&&ne.content.active&&ne.content.active.name||"";let ge=$.body;if(/json/.test(ce))try{ge=JSON.parse(ge)}catch(ze){console.error(ze)}this.setState({loading:!0});const ve=this.state.resolvedRawSpec,Se=(E.httpVerb||"").toLowerCase(),be=(0,Gt.U2)(ve,["paths",E.path,Se,"servers"])||(0,Gt.U2)(ve,["paths",E.path,"servers"])||(0,Gt.U2)(ve,["servers"]);if(!be)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 Te=be.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),$e=Date.now(),Ue=!!window.document.documentMode;let He,Be=$.auth;if($.auth){const ze=Object.keys($.auth)[0],qe=(0,Gt.dw)(ze);He=Dn(Gr({},ve),{components:Dn(Gr({},ve.components),{securitySchemes:Dn(Gr({},ve.components.securitySchemes),{[qe]:Dn(Gr({},ve.components.securitySchemes[qe]),{type:ve.components.securitySchemes[qe].type==="openIdConnect"?"oauth2":ve.components.securitySchemes[qe].type})})})}),Be=Dn(Gr({},Be),{[qe]:Be[ze]})}else He=Gr({},ve);const je=w.options.corsProxyUrl;je&&be.length&&(He.servers=be.map(ze=>Dn(Gr({},ze),{url:je+Sh(ze.url)})),He.paths=Dn(Gr({},He.paths),{[E.path]:Dn(Gr({},He.paths[E.path]),{[Se]:Dn(Gr({},He.paths[E.path][Se]),{servers:void 0}),servers:void 0})}));const We=((s=(o=ne==null?void 0:ne.content)==null?void 0:o.active)==null?void 0:s.name)||null;if(We&&ge&&ft(We)){const ze=Object.values(ge);ge=ze.length>1?ze:ze[0]}const Xe={userFetch:Ue&&a(54098).fetch,server:je?je+Sh(Te.url):Te.url,serverVariables:this.state.server.variables,spec:He,pathName:E.path,method:E.httpVerb,parameters:Gr(Gr(Gr(Gr({},$.path),$.query),$.header),$.cookie),securities:{authorized:Be},requestBody:ge,requestContentType:We,responseContentType:((p=$.header)==null?void 0:p.Accept)||null,requestInterceptor:(0,It.Tz)(w.options,E)};try{const ze=yield Dc.execute(Xe),qe=ze==null?void 0:ze.data;qe instanceof Blob&&(ft(qe.type)&&(ze.fileInfo={rawData:qe,fileName:(0,It.AM)(ze.headers)}),ze.data=yield qe.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()-$e}),(A=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||A.call(m,{eventType:gl.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,It.ZS)(t.operation.parameters,"path"),cookie:(0,It.ZS)(t.operation.parameters,"cookie"),header:(0,It.ZS)(t.operation.parameters,"header"),query:(0,It.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return wh(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:o,activeTab:s,form:p,response:m,loading:A,error:w}=this.state,E=!!(m||w);return d.createElement(_y,{shaking:o,className:r,rootElement:i},d.createElement(En.k1,null,d.createElement(kv,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Tf.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Tf.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Tf.RE,{hidden:s!==1},this.renderResponse()),d.createElement(xy,{hasResponse:E,params:p.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:A}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,k=m&&St.JsonPointer.get(m,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 ie=r.parameters||[],ne=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Dn(Gr({},Qy),{margin:0})},d.createElement(En.UQ,{initialActiveIdx:r.security.length&&$?1:0},r.security.length&&d.createElement(fd,{header:(0,oo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!$&&!!w.auth,success:!!$},ne?d.createElement(qy,{field:"auth",validate:Sl},ce=>d.createElement(of.Q,{Hook:ne,props:{server:A,operation:r,onChange:ce,OAuth2:y}})):d.createElement(Iv,{formApi:this.formApi,form:p,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(fd,{header:(0,oo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(sy,{validate:Zy,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:o}))||null,ie.length&&d.createElement(fd,{header:(0,oo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Py,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(ud,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(hy,{response:t,error:r,time:i})}};dd=Xy([Ta.Pi],dd);function Zy(){}function _y(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,Gt.Bs)(s);return d.createElement(Tf.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function qy(t){const{fieldApi:r,render:i,userProps:o}=Un(Gr({},t)),{setValue:s}=r,{children:p}=o;return i(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=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 S=a.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,S.concat(a.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,S.concat(a.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var ee=function(){};ee.prototype=b.prototype,g.prototype=new ee,ee.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(xe){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(ye){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(ye){try{return S(arguments,"callee").get}catch(xe){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},ee=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?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%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?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"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":ee,"%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(xe){var pe;if(xe==="%AsyncFunction%")pe=b("async function () {}");else if(xe==="%GeneratorFunction%")pe=b("function* () {}");else if(xe==="%AsyncGeneratorFunction%")pe=b("async function* () {}");else if(xe==="%AsyncGenerator%"){var fe=ye("%AsyncGeneratorFunction%");fe&&(pe=fe.prototype)}else if(xe==="%AsyncIteratorPrototype%"){var se=ye("%AsyncGenerator%");se&&(pe=B(se.prototype))}return W[xe]=pe,pe},Q={"%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=a(58612),C=a(17642),V=M.call(Function.call,Array.prototype.concat),X=M.call(Function.apply,Array.prototype.splice),q=M.call(Function.call,String.prototype.replace),Z=M.call(Function.call,String.prototype.slice),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,de=/\\(\\)?/g,te=function(xe){var pe=Z(xe,0,1),fe=Z(xe,-1);if(pe==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&pe!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var se=[];return q(xe,J,function(Fe,De,Re,Pe){se[se.length]=Re?q(Pe,de,"$1"):De||Fe}),se},ae=function(xe,pe){var fe=xe,se;if(C(Q,fe)&&(se=Q[fe],fe="%"+se[0]+"%"),C(W,fe)){var Fe=W[fe];if(Fe===j&&(Fe=R(fe)),typeof Fe=="undefined"&&!pe)throw new d("intrinsic "+xe+" exists, but is not available. Please file an issue!");return{alias:se,name:fe,value:Fe}}throw new v("intrinsic "+xe+" does not exist!")};h.exports=function(xe,pe){if(typeof xe!="string"||xe.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pe!="boolean")throw new d('"allowMissing" argument must be a boolean');var fe=te(xe),se=fe.length>0?fe[0]:"",Fe=ae("%"+se+"%",pe),De=Fe.name,Re=Fe.value,Pe=!1,tt=Fe.alias;tt&&(se=tt[0],X(fe,V([0,1],tt)));for(var Qe=1,Je=!0;Qe<fe.length;Qe+=1){var ut=fe[Qe],pt=Z(ut,0,1),wt=Z(ut,-1);if((pt==='"'||pt==="'"||pt==="`"||wt==='"'||wt==="'"||wt==="`")&&pt!==wt)throw new v("property names with quotes must have matching quotes");if((ut==="constructor"||!Je)&&(Pe=!0),se+="."+ut,De="%"+se+"%",C(W,De))Re=W[De];else if(Re!=null){if(!(ut in Re)){if(!pe)throw new d("base intrinsic for "+xe+" exists, but the property is not available.");return}if(S&&Qe+1>=fe.length){var rt=S(Re,ut);Je=!!rt,Je&&"get"in rt&&!("originalValue"in rt.get)?Re=rt.get:Re=Re[ut]}else Je=C(Re,ut),Re=Re[ut];Je&&!Pe&&(W[De]=Re)}}return Re}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(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 a={},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;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(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(a,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,ee=v?-1:1,W=a[c+j];for(j+=ee,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=ee,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=ee,B-=8);if(b===0)b=1-D;else{if(b===L)return S?NaN:(W?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(W?-1:1)*S*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var S,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,ee=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,R=x?1:-1,Q=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=ee/L:c+=ee*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;a[v+W]=g&255,W+=R,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=R,S/=256,D-=8);a[v+W-R]|=Q*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(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=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(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 a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,ee=34,W=35,R=37,Q=38,M=39,C=42,V=44,X=45,q=58,Z=61,J=62,de=63,te=64,ae=91,ye=93,xe=96,pe=123,fe=124,se=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var De=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Re(N,re){var z,oe,Oe,Ae,Ve,Le,nt;if(re===null)return{};for(z={},oe=Object.keys(re),Oe=0,Ae=oe.length;Oe<Ae;Oe+=1)Ve=oe[Oe],Le=String(re[Ve]),Ve.slice(0,2)==="!!"&&(Ve="tag:yaml.org,2002:"+Ve.slice(2)),nt=N.compiledTypeMap.fallback[Ve],nt&&S.call(nt.styleAliases,Le)&&(Le=nt.styleAliases[Le]),z[Ve]=Le;return z}function Pe(N){var re,z,oe;if(re=N.toString(16).toUpperCase(),N<=255)z="x",oe=2;else if(N<=65535)z="u",oe=4;else if(N<=4294967295)z="U",oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+z+c.repeat("0",oe-re.length)+re}function tt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Re(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Qe(N,re){for(var z=c.repeat(" ",re),oe=0,Oe=-1,Ae="",Ve,Le=N.length;oe<Le;)Oe=N.indexOf(`
482
+ `,oe),Oe===-1?(Ve=N.slice(oe),oe=Le):(Ve=N.slice(oe,Oe+1),oe=Oe+1),Ve.length&&Ve!==`
483
+ `&&(Ae+=z),Ae+=Ve;return Ae}function Je(N,re){return`
484
+ `+c.repeat(" ",N.indent*re)}function ut(N,re){var z,oe,Oe;for(z=0,oe=N.implicitTypes.length;z<oe;z+=1)if(Oe=N.implicitTypes[z],Oe.resolve(re))return!0;return!1}function pt(N){return N===B||N===g}function wt(N){return 32<=N&&N<=126||161<=N&&N<=55295&&N!==8232&&N!==8233||57344<=N&&N<=65533&&N!==65279||65536<=N&&N<=1114111}function rt(N){return wt(N)&&!pt(N)&&N!==65279&&N!==D&&N!==L}function lt(N,re){return wt(N)&&N!==65279&&N!==V&&N!==ae&&N!==ye&&N!==pe&&N!==se&&N!==q&&(N!==W||re&&rt(re))}function yt(N){return wt(N)&&N!==65279&&!pt(N)&&N!==X&&N!==de&&N!==q&&N!==V&&N!==ae&&N!==ye&&N!==pe&&N!==se&&N!==W&&N!==Q&&N!==C&&N!==j&&N!==fe&&N!==Z&&N!==J&&N!==M&&N!==ee&&N!==R&&N!==te&&N!==xe}function mt(N){var re=/^\n* /;return re.test(N)}var dt=1,Rt=2,kt=3,Ct=4,Wt=5;function Dt(N,re,z,oe,Oe){var Ae,Ve,Le,nt=!1,ht=!1,bt=oe!==-1,zt=-1,Mt=yt(N.charCodeAt(0))&&!pt(N.charCodeAt(N.length-1));if(re)for(Ae=0;Ae<N.length;Ae++){if(Ve=N.charCodeAt(Ae),!wt(Ve))return Wt;Le=Ae>0?N.charCodeAt(Ae-1):null,Mt=Mt&&lt(Ve,Le)}else{for(Ae=0;Ae<N.length;Ae++){if(Ve=N.charCodeAt(Ae),Ve===L)nt=!0,bt&&(ht=ht||Ae-zt-1>oe&&N[zt+1]!==" ",zt=Ae);else if(!wt(Ve))return Wt;Le=Ae>0?N.charCodeAt(Ae-1):null,Mt=Mt&&lt(Ve,Le)}ht=ht||bt&&Ae-zt-1>oe&&N[zt+1]!==" "}return!nt&&!ht?Mt&&!Oe(N)?dt:Rt:z>9&&mt(N)?Wt:ht?Ct:kt}function Vt(N,re,z,oe){N.dump=function(){if(re.length===0)return"''";if(!N.noCompatMode&&De.indexOf(re)!==-1)return"'"+re+"'";var Oe=N.indent*Math.max(1,z),Ae=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-Oe),Ve=oe||N.flowLevel>-1&&z>=N.flowLevel;function Le(nt){return ut(N,nt)}switch(Dt(re,Ve,N.indent,Ae,Le)){case dt:return re;case Rt:return"'"+re.replace(/'/g,"''")+"'";case kt:return"|"+Tt(re,N.indent)+Nt(Qe(re,Oe));case Ct:return">"+Tt(re,N.indent)+Nt(Qe(he(re,Ae),Oe));case Wt:return'"'+K(re,Ae)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function Tt(N,re){var z=mt(N)?String(re):"",oe=N[N.length-1]===`
485
+ `,Oe=oe&&(N[N.length-2]===`
486
486
  `||N===`
487
- `),Ae=Oe?"+":ae?"":"-";return z+Ae+`
488
- `}function Dt(N){return N[N.length-1]===`
489
- `?N.slice(0,-1):N}function he(N,ne){for(var z=/(\n+)([^\n]*)/g,ae=function(){var vt=N.indexOf(`
490
- `);return vt=vt!==-1?vt:N.length,z.lastIndex=vt,G(N.slice(0,vt),ne)}(),Oe=N[0]===`
491
- `||N[0]===" ",Ae,Ve;Ve=z.exec(N);){var Le=Ve[1],nt=Ve[2];Ae=nt[0]===" ",ae+=Le+(!Oe&&!Ae&&nt!==""?`
492
- `:"")+G(nt,ne),Oe=Ae}return ae}function G(N,ne){if(N===""||N[0]===" ")return N;for(var z=/ [^ ]/g,ae,Oe=0,Ae,Ve=0,Le=0,nt="";ae=z.exec(N);)Le=ae.index,Le-Oe>ne&&(Ae=Ve>Oe?Ve:Le,nt+=`
487
+ `),Ae=Oe?"+":oe?"":"-";return z+Ae+`
488
+ `}function Nt(N){return N[N.length-1]===`
489
+ `?N.slice(0,-1):N}function he(N,re){for(var z=/(\n+)([^\n]*)/g,oe=function(){var ht=N.indexOf(`
490
+ `);return ht=ht!==-1?ht:N.length,z.lastIndex=ht,G(N.slice(0,ht),re)}(),Oe=N[0]===`
491
+ `||N[0]===" ",Ae,Ve;Ve=z.exec(N);){var Le=Ve[1],nt=Ve[2];Ae=nt[0]===" ",oe+=Le+(!Oe&&!Ae&&nt!==""?`
492
+ `:"")+G(nt,re),Oe=Ae}return oe}function G(N,re){if(N===""||N[0]===" ")return N;for(var z=/ [^ ]/g,oe,Oe=0,Ae,Ve=0,Le=0,nt="";oe=z.exec(N);)Le=oe.index,Le-Oe>re&&(Ae=Ve>Oe?Ve:Le,nt+=`
493
493
  `+N.slice(Oe,Ae),Oe=Ae+1),Ve=Le;return nt+=`
494
- `,N.length-Oe>ne&&Ve>Oe?nt+=N.slice(Oe,Ve)+`
495
- `+N.slice(Ve+1):nt+=N.slice(Oe),nt.slice(1)}function K(N){for(var ne="",z,ae,Oe,Ae=0;Ae<N.length;Ae++){if(z=N.charCodeAt(Ae),z>=55296&&z<=56319&&(ae=N.charCodeAt(Ae+1),ae>=56320&&ae<=57343)){ne+=Pe((z-55296)*1024+ae-56320+65536),Ae++;continue}Oe=Fe[z],ne+=!Oe&&wt(z)?N[Ae]:Oe||Pe(z)}return ne}function we(N,ne,z){var ae="",Oe=N.tag,Ae,Ve;for(Ae=0,Ve=z.length;Ae<Ve;Ae+=1)Me(N,ne,z[Ae],!1,!1)&&(Ae!==0&&(ae+=","+(N.condenseFlow?"":" ")),ae+=N.dump);N.tag=Oe,N.dump="["+ae+"]"}function Ie(N,ne,z,ae){var Oe="",Ae=N.tag,Ve,Le;for(Ve=0,Le=z.length;Ve<Le;Ve+=1)Me(N,ne+1,z[Ve],!0,!0)&&((!ae||Ve!==0)&&(Oe+=Je(N,ne)),N.dump&&L===N.dump.charCodeAt(0)?Oe+="-":Oe+="- ",Oe+=N.dump);N.tag=Ae,N.dump=Oe||"[]"}function $e(N,ne,z){var ae="",Oe=N.tag,Ae=Object.keys(z),Ve,Le,nt,vt,bt;for(Ve=0,Le=Ae.length;Ve<Le;Ve+=1)bt="",Ve!==0&&(bt+=", "),N.condenseFlow&&(bt+='"'),nt=Ae[Ve],vt=z[nt],!!Me(N,ne,nt,!1,!1)&&(N.dump.length>1024&&(bt+="? "),bt+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Me(N,ne,vt,!1,!1)&&(bt+=N.dump,ae+=bt));N.tag=Oe,N.dump="{"+ae+"}"}function Ke(N,ne,z,ae){var Oe="",Ae=N.tag,Ve=Object.keys(z),Le,nt,vt,bt,Gt,Rt;if(N.sortKeys===!0)Ve.sort();else if(typeof N.sortKeys=="function")Ve.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Le=0,nt=Ve.length;Le<nt;Le+=1)Rt="",(!ae||Le!==0)&&(Rt+=Je(N,ne)),vt=Ve[Le],bt=z[vt],!!Me(N,ne+1,vt,!0,!0,!0)&&(Gt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Gt&&(N.dump&&L===N.dump.charCodeAt(0)?Rt+="?":Rt+="? "),Rt+=N.dump,Gt&&(Rt+=Je(N,ne)),!!Me(N,ne+1,bt,!0,Gt)&&(N.dump&&L===N.dump.charCodeAt(0)?Rt+=":":Rt+=": ",Rt+=N.dump,Oe+=Rt));N.tag=Ae,N.dump=Oe||"{}"}function P(N,ne,z){var ae,Oe,Ae,Ve,Le,nt;for(Oe=z?N.explicitTypes:N.implicitTypes,Ae=0,Ve=Oe.length;Ae<Ve;Ae+=1)if(Le=Oe[Ae],(Le.instanceOf||Le.predicate)&&(!Le.instanceOf||typeof ne=="object"&&ne instanceof Le.instanceOf)&&(!Le.predicate||Le.predicate(ne))){if(N.tag=z?Le.tag:"?",Le.represent){if(nt=N.styleMap[Le.tag]||Le.defaultStyle,b.call(Le.represent)==="[object Function]")ae=Le.represent(ne,nt);else if(A.call(Le.represent,nt))ae=Le.represent[nt](ne,nt);else throw new v("!<"+Le.tag+'> tag resolver accepts not "'+nt+'" style');N.dump=ae}return!0}return!1}function Me(N,ne,z,ae,Oe,Ae){N.tag=null,N.dump=z,P(N,z,!1)||P(N,z,!0);var Ve=b.call(N.dump);ae&&(ae=N.flowLevel<0||N.flowLevel>ne);var Le=Ve==="[object Object]"||Ve==="[object Array]",nt,vt;if(Le&&(nt=N.duplicates.indexOf(z),vt=nt!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&ne>0)&&(Oe=!1),vt&&N.usedDuplicates[nt])N.dump="*ref_"+nt;else{if(Le&&vt&&!N.usedDuplicates[nt]&&(N.usedDuplicates[nt]=!0),Ve==="[object Object]")ae&&Object.keys(N.dump).length!==0?(Ke(N,ne,N.dump,Oe),vt&&(N.dump="&ref_"+nt+N.dump)):($e(N,ne,N.dump),vt&&(N.dump="&ref_"+nt+" "+N.dump));else if(Ve==="[object Array]"){var bt=N.noArrayIndent&&ne>0?ne-1:ne;ae&&N.dump.length!==0?(Ie(N,bt,N.dump,Oe),vt&&(N.dump="&ref_"+nt+N.dump)):(we(N,bt,N.dump),vt&&(N.dump="&ref_"+nt+" "+N.dump))}else if(Ve==="[object String]")N.tag!=="?"&&Vt(N,N.dump,ne,Ae);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ve)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function Y(N,ne){var z=[],ae=[],Oe,Ae;for(T(N,z,ae),Oe=0,Ae=ae.length;Oe<Ae;Oe+=1)ne.duplicates.push(z[ae[Oe]]);ne.usedDuplicates=new Array(Ae)}function T(N,ne,z){var ae,Oe,Ae;if(N!==null&&typeof N=="object")if(Oe=ne.indexOf(N),Oe!==-1)z.indexOf(Oe)===-1&&z.push(Oe);else if(ne.push(N),Array.isArray(N))for(Oe=0,Ae=N.length;Oe<Ae;Oe+=1)T(N[Oe],ne,z);else for(ae=Object.keys(N),Oe=0,Ae=ae.length;Oe<Ae;Oe+=1)T(N[ae[Oe]],ne,z)}function O(N,ne){ne=ne||{};var z=new et(ne);return z.noRefs||Y(N,z),Me(z,0,N,!0,!0)?z.dump+`
496
- `:""}function le(N,ne){return O(N,c.extend({schema:d},ne))}h.exports.dump=O,h.exports.safeDump=le},14884:h=>{"use strict";function I(a,c){Error.call(this),this.name="YAMLException",this.reason=a,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,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(77334),d=a(5972),b=a(19321),A=Object.prototype.hasOwnProperty,g=1,L=2,D=3,B=4,j=1,ee=2,W=3,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Q=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function X(P){return Object.prototype.toString.call(P)}function q(P){return P===10||P===13}function Z(P){return P===9||P===32}function J(P){return P===9||P===32||P===10||P===13}function de(P){return P===44||P===91||P===93||P===123||P===125}function re(P){var Me;return 48<=P&&P<=57?P-48:(Me=P|32,97<=Me&&Me<=102?Me-97+10:-1)}function ie(P){return P===120?2:P===117?4:P===85?8:0}function ye(P){return 48<=P&&P<=57?P-48:-1}function xe(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
497
- `:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function pe(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var fe=new Array(256),se=new Array(256),Fe=0;Fe<256;Fe++)fe[Fe]=xe(Fe)?1:0,se[Fe]=xe(Fe);function De(P,Me){this.input=P,this.filename=Me.filename||null,this.schema=Me.schema||b,this.onWarning=Me.onWarning||null,this.legacy=Me.legacy||!1,this.json=Me.json||!1,this.listener=Me.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Re(P,Me){return new v(Me,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Me){throw Re(P,Me)}function et(P,Me){P.onWarning&&P.onWarning.call(null,Re(P,Me))}var Qe={YAML:function(Me,Y,T){var O,le,N;Me.version!==null&&Pe(Me,"duplication of %YAML directive"),T.length!==1&&Pe(Me,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Me,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Pe(Me,"unacceptable YAML version of the document"),Me.version=T[0],Me.checkLineBreaks=N<2,N!==1&&N!==2&&et(Me,"unsupported YAML version of the document")},TAG:function(Me,Y,T){var O,le;T.length!==2&&Pe(Me,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Pe(Me,"ill-formed tag handle (first argument) of the TAG directive"),A.call(Me.tagMap,O)&&Pe(Me,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Pe(Me,"ill-formed tag prefix (second argument) of the TAG directive"),Me.tagMap[O]=le}};function Je(P,Me,Y,T){var O,le,N,ne;if(Me<Y){if(ne=P.input.slice(Me,Y),T)for(O=0,le=ne.length;O<le;O+=1)N=ne.charCodeAt(O),N===9||32<=N&&N<=1114111||Pe(P,"expected valid JSON character");else R.test(ne)&&Pe(P,"the stream contains non-printable characters");P.result+=ne}}function ut(P,Me,Y,T){var O,le,N,ne;for(c.isObject(Y)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(Y),N=0,ne=O.length;N<ne;N+=1)le=O[N],A.call(Me,le)||(Me[le]=Y[le],T[le]=!0)}function ht(P,Me,Y,T,O,le,N,ne){var z,ae;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),z=0,ae=O.length;z<ae;z+=1)Array.isArray(O[z])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&X(O[z])==="[object Object]"&&(O[z]="[object Object]");if(typeof O=="object"&&X(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Me===null&&(Me={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(z=0,ae=le.length;z<ae;z+=1)ut(P,Me,le[z],Y);else ut(P,Me,le,Y);else!P.json&&!A.call(Y,O)&&A.call(Me,O)&&(P.line=N||P.line,P.position=ne||P.position,Pe(P,"duplicated mapping key")),Me[O]=le,delete Y[O];return Me}function wt(P){var Me;Me=P.input.charCodeAt(P.position),Me===10?P.position++:Me===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):Pe(P,"a line break is expected"),P.line+=1,P.lineStart=P.position}function rt(P,Me,Y){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Z(O);)O=P.input.charCodeAt(++P.position);if(Me&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(q(O))for(wt(P),O=P.input.charCodeAt(P.position),T++,P.lineIndent=0;O===32;)P.lineIndent++,O=P.input.charCodeAt(++P.position);else break}return Y!==-1&&T!==0&&P.lineIndent<Y&&et(P,"deficient indentation"),T}function lt(P){var Me=P.position,Y;return Y=P.input.charCodeAt(Me),!!((Y===45||Y===46)&&Y===P.input.charCodeAt(Me+1)&&Y===P.input.charCodeAt(Me+2)&&(Me+=3,Y=P.input.charCodeAt(Me),Y===0||J(Y)))}function yt(P,Me){Me===1?P.result+=" ":Me>1&&(P.result+=c.repeat(`
498
- `,Me-1))}function mt(P,Me,Y){var T,O,le,N,ne,z,ae,Oe,Ae=P.kind,Ve=P.result,Le;if(Le=P.input.charCodeAt(P.position),J(Le)||de(Le)||Le===35||Le===38||Le===42||Le===33||Le===124||Le===62||Le===39||Le===34||Le===37||Le===64||Le===96||(Le===63||Le===45)&&(O=P.input.charCodeAt(P.position+1),J(O)||Y&&de(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,ne=!1;Le!==0;){if(Le===58){if(O=P.input.charCodeAt(P.position+1),J(O)||Y&&de(O))break}else if(Le===35){if(T=P.input.charCodeAt(P.position-1),J(T))break}else{if(P.position===P.lineStart&&lt(P)||Y&&de(Le))break;if(q(Le))if(z=P.line,ae=P.lineStart,Oe=P.lineIndent,rt(P,!1,-1),P.lineIndent>=Me){ne=!0,Le=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=z,P.lineStart=ae,P.lineIndent=Oe;break}}ne&&(Je(P,le,N,!1),yt(P,P.line-z),le=N=P.position,ne=!1),Z(Le)||(N=P.position+1),Le=P.input.charCodeAt(++P.position)}return Je(P,le,N,!1),P.result?!0:(P.kind=Ae,P.result=Ve,!1)}function pt(P,Me){var Y,T,O;if(Y=P.input.charCodeAt(P.position),Y!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(Y=P.input.charCodeAt(P.position))!==0;)if(Y===39)if(Je(P,T,P.position,!0),Y=P.input.charCodeAt(++P.position),Y===39)T=P.position,P.position++,O=P.position;else return!0;else q(Y)?(Je(P,T,O,!0),yt(P,rt(P,!1,Me)),T=O=P.position):P.position===P.lineStart&&lt(P)?Pe(P,"unexpected end of the document within a single quoted scalar"):(P.position++,O=P.position);Pe(P,"unexpected end of the stream within a single quoted scalar")}function kt(P,Me){var Y,T,O,le,N,ne;if(ne=P.input.charCodeAt(P.position),ne!==34)return!1;for(P.kind="scalar",P.result="",P.position++,Y=T=P.position;(ne=P.input.charCodeAt(P.position))!==0;){if(ne===34)return Je(P,Y,P.position,!0),P.position++,!0;if(ne===92){if(Je(P,Y,P.position,!0),ne=P.input.charCodeAt(++P.position),q(ne))rt(P,!1,Me);else if(ne<256&&fe[ne])P.result+=se[ne],P.position++;else if((N=ie(ne))>0){for(O=N,le=0;O>0;O--)ne=P.input.charCodeAt(++P.position),(N=re(ne))>=0?le=(le<<4)+N:Pe(P,"expected hexadecimal character");P.result+=pe(le),P.position++}else Pe(P,"unknown escape sequence");Y=T=P.position}else q(ne)?(Je(P,Y,T,!0),yt(P,rt(P,!1,Me)),Y=T=P.position):P.position===P.lineStart&&lt(P)?Pe(P,"unexpected end of the document within a double quoted scalar"):(P.position++,T=P.position)}Pe(P,"unexpected end of the stream within a double quoted scalar")}function Ft(P,Me){var Y=!0,T,O=P.tag,le,N=P.anchor,ne,z,ae,Oe,Ae,Ve={},Le,nt,vt,bt;if(bt=P.input.charCodeAt(P.position),bt===91)z=93,Ae=!1,le=[];else if(bt===123)z=125,Ae=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),bt=P.input.charCodeAt(++P.position);bt!==0;){if(rt(P,!0,Me),bt=P.input.charCodeAt(P.position),bt===z)return P.position++,P.tag=O,P.anchor=N,P.kind=Ae?"mapping":"sequence",P.result=le,!0;Y||Pe(P,"missed comma between flow collection entries"),nt=Le=vt=null,ae=Oe=!1,bt===63&&(ne=P.input.charCodeAt(P.position+1),J(ne)&&(ae=Oe=!0,P.position++,rt(P,!0,Me))),T=P.line,he(P,Me,g,!1,!0),nt=P.tag,Le=P.result,rt(P,!0,Me),bt=P.input.charCodeAt(P.position),(Oe||P.line===T)&&bt===58&&(ae=!0,bt=P.input.charCodeAt(++P.position),rt(P,!0,Me),he(P,Me,g,!1,!0),vt=P.result),Ae?ht(P,le,Ve,nt,Le,vt):ae?le.push(ht(P,null,Ve,nt,Le,vt)):le.push(Le),rt(P,!0,Me),bt=P.input.charCodeAt(P.position),bt===44?(Y=!0,bt=P.input.charCodeAt(++P.position)):Y=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Ct(P,Me){var Y,T,O=j,le=!1,N=!1,ne=Me,z=0,ae=!1,Oe,Ae;if(Ae=P.input.charCodeAt(P.position),Ae===124)T=!1;else if(Ae===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ae!==0;)if(Ae=P.input.charCodeAt(++P.position),Ae===43||Ae===45)j===O?O=Ae===43?W:ee:Pe(P,"repeat of a chomping mode identifier");else if((Oe=ye(Ae))>=0)Oe===0?Pe(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Pe(P,"repeat of an indentation width identifier"):(ne=Me+Oe-1,N=!0);else break;if(Z(Ae)){do Ae=P.input.charCodeAt(++P.position);while(Z(Ae));if(Ae===35)do Ae=P.input.charCodeAt(++P.position);while(!q(Ae)&&Ae!==0)}for(;Ae!==0;){for(wt(P),P.lineIndent=0,Ae=P.input.charCodeAt(P.position);(!N||P.lineIndent<ne)&&Ae===32;)P.lineIndent++,Ae=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>ne&&(ne=P.lineIndent),q(Ae)){z++;continue}if(P.lineIndent<ne){O===W?P.result+=c.repeat(`
494
+ `,N.length-Oe>re&&Ve>Oe?nt+=N.slice(Oe,Ve)+`
495
+ `+N.slice(Ve+1):nt+=N.slice(Oe),nt.slice(1)}function K(N){for(var re="",z,oe,Oe,Ae=0;Ae<N.length;Ae++){if(z=N.charCodeAt(Ae),z>=55296&&z<=56319&&(oe=N.charCodeAt(Ae+1),oe>=56320&&oe<=57343)){re+=Pe((z-55296)*1024+oe-56320+65536),Ae++;continue}Oe=Fe[z],re+=!Oe&&wt(z)?N[Ae]:Oe||Pe(z)}return re}function we(N,re,z){var oe="",Oe=N.tag,Ae,Ve;for(Ae=0,Ve=z.length;Ae<Ve;Ae+=1)Me(N,re,z[Ae],!1,!1)&&(Ae!==0&&(oe+=","+(N.condenseFlow?"":" ")),oe+=N.dump);N.tag=Oe,N.dump="["+oe+"]"}function Ie(N,re,z,oe){var Oe="",Ae=N.tag,Ve,Le;for(Ve=0,Le=z.length;Ve<Le;Ve+=1)Me(N,re+1,z[Ve],!0,!0)&&((!oe||Ve!==0)&&(Oe+=Je(N,re)),N.dump&&L===N.dump.charCodeAt(0)?Oe+="-":Oe+="- ",Oe+=N.dump);N.tag=Ae,N.dump=Oe||"[]"}function Ge(N,re,z){var oe="",Oe=N.tag,Ae=Object.keys(z),Ve,Le,nt,ht,bt;for(Ve=0,Le=Ae.length;Ve<Le;Ve+=1)bt="",Ve!==0&&(bt+=", "),N.condenseFlow&&(bt+='"'),nt=Ae[Ve],ht=z[nt],!!Me(N,re,nt,!1,!1)&&(N.dump.length>1024&&(bt+="? "),bt+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Me(N,re,ht,!1,!1)&&(bt+=N.dump,oe+=bt));N.tag=Oe,N.dump="{"+oe+"}"}function Ke(N,re,z,oe){var Oe="",Ae=N.tag,Ve=Object.keys(z),Le,nt,ht,bt,zt,Mt;if(N.sortKeys===!0)Ve.sort();else if(typeof N.sortKeys=="function")Ve.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Le=0,nt=Ve.length;Le<nt;Le+=1)Mt="",(!oe||Le!==0)&&(Mt+=Je(N,re)),ht=Ve[Le],bt=z[ht],!!Me(N,re+1,ht,!0,!0,!0)&&(zt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,zt&&(N.dump&&L===N.dump.charCodeAt(0)?Mt+="?":Mt+="? "),Mt+=N.dump,zt&&(Mt+=Je(N,re)),!!Me(N,re+1,bt,!0,zt)&&(N.dump&&L===N.dump.charCodeAt(0)?Mt+=":":Mt+=": ",Mt+=N.dump,Oe+=Mt));N.tag=Ae,N.dump=Oe||"{}"}function P(N,re,z){var oe,Oe,Ae,Ve,Le,nt;for(Oe=z?N.explicitTypes:N.implicitTypes,Ae=0,Ve=Oe.length;Ae<Ve;Ae+=1)if(Le=Oe[Ae],(Le.instanceOf||Le.predicate)&&(!Le.instanceOf||typeof re=="object"&&re instanceof Le.instanceOf)&&(!Le.predicate||Le.predicate(re))){if(N.tag=z?Le.tag:"?",Le.represent){if(nt=N.styleMap[Le.tag]||Le.defaultStyle,b.call(Le.represent)==="[object Function]")oe=Le.represent(re,nt);else if(S.call(Le.represent,nt))oe=Le.represent[nt](re,nt);else throw new v("!<"+Le.tag+'> tag resolver accepts not "'+nt+'" style');N.dump=oe}return!0}return!1}function Me(N,re,z,oe,Oe,Ae){N.tag=null,N.dump=z,P(N,z,!1)||P(N,z,!0);var Ve=b.call(N.dump);oe&&(oe=N.flowLevel<0||N.flowLevel>re);var Le=Ve==="[object Object]"||Ve==="[object Array]",nt,ht;if(Le&&(nt=N.duplicates.indexOf(z),ht=nt!==-1),(N.tag!==null&&N.tag!=="?"||ht||N.indent!==2&&re>0)&&(Oe=!1),ht&&N.usedDuplicates[nt])N.dump="*ref_"+nt;else{if(Le&&ht&&!N.usedDuplicates[nt]&&(N.usedDuplicates[nt]=!0),Ve==="[object Object]")oe&&Object.keys(N.dump).length!==0?(Ke(N,re,N.dump,Oe),ht&&(N.dump="&ref_"+nt+N.dump)):(Ge(N,re,N.dump),ht&&(N.dump="&ref_"+nt+" "+N.dump));else if(Ve==="[object Array]"){var bt=N.noArrayIndent&&re>0?re-1:re;oe&&N.dump.length!==0?(Ie(N,bt,N.dump,Oe),ht&&(N.dump="&ref_"+nt+N.dump)):(we(N,bt,N.dump),ht&&(N.dump="&ref_"+nt+" "+N.dump))}else if(Ve==="[object String]")N.tag!=="?"&&Vt(N,N.dump,re,Ae);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ve)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function Y(N,re){var z=[],oe=[],Oe,Ae;for(T(N,z,oe),Oe=0,Ae=oe.length;Oe<Ae;Oe+=1)re.duplicates.push(z[oe[Oe]]);re.usedDuplicates=new Array(Ae)}function T(N,re,z){var oe,Oe,Ae;if(N!==null&&typeof N=="object")if(Oe=re.indexOf(N),Oe!==-1)z.indexOf(Oe)===-1&&z.push(Oe);else if(re.push(N),Array.isArray(N))for(Oe=0,Ae=N.length;Oe<Ae;Oe+=1)T(N[Oe],re,z);else for(oe=Object.keys(N),Oe=0,Ae=oe.length;Oe<Ae;Oe+=1)T(N[oe[Oe]],re,z)}function O(N,re){re=re||{};var z=new tt(re);return z.noRefs||Y(N,z),Me(z,0,N,!0,!0)?z.dump+`
496
+ `:""}function le(N,re){return O(N,c.extend({schema:d},re))}h.exports.dump=O,h.exports.safeDump=le},14884:h=>{"use strict";function I(a,c){Error.call(this),this.name="YAMLException",this.reason=a,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,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(77334),d=a(5972),b=a(19321),S=Object.prototype.hasOwnProperty,g=1,L=2,D=3,B=4,j=1,ee=2,W=3,R=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Q=/[\x85\u2028\u2029]/,M=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function X(P){return Object.prototype.toString.call(P)}function q(P){return P===10||P===13}function Z(P){return P===9||P===32}function J(P){return P===9||P===32||P===10||P===13}function de(P){return P===44||P===91||P===93||P===123||P===125}function te(P){var Me;return 48<=P&&P<=57?P-48:(Me=P|32,97<=Me&&Me<=102?Me-97+10:-1)}function ae(P){return P===120?2:P===117?4:P===85?8:0}function ye(P){return 48<=P&&P<=57?P-48:-1}function xe(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
497
+ `:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function pe(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var fe=new Array(256),se=new Array(256),Fe=0;Fe<256;Fe++)fe[Fe]=xe(Fe)?1:0,se[Fe]=xe(Fe);function De(P,Me){this.input=P,this.filename=Me.filename||null,this.schema=Me.schema||b,this.onWarning=Me.onWarning||null,this.legacy=Me.legacy||!1,this.json=Me.json||!1,this.listener=Me.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Re(P,Me){return new v(Me,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Me){throw Re(P,Me)}function tt(P,Me){P.onWarning&&P.onWarning.call(null,Re(P,Me))}var Qe={YAML:function(Me,Y,T){var O,le,N;Me.version!==null&&Pe(Me,"duplication of %YAML directive"),T.length!==1&&Pe(Me,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Me,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Pe(Me,"unacceptable YAML version of the document"),Me.version=T[0],Me.checkLineBreaks=N<2,N!==1&&N!==2&&tt(Me,"unsupported YAML version of the document")},TAG:function(Me,Y,T){var O,le;T.length!==2&&Pe(Me,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Pe(Me,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Me.tagMap,O)&&Pe(Me,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Pe(Me,"ill-formed tag prefix (second argument) of the TAG directive"),Me.tagMap[O]=le}};function Je(P,Me,Y,T){var O,le,N,re;if(Me<Y){if(re=P.input.slice(Me,Y),T)for(O=0,le=re.length;O<le;O+=1)N=re.charCodeAt(O),N===9||32<=N&&N<=1114111||Pe(P,"expected valid JSON character");else R.test(re)&&Pe(P,"the stream contains non-printable characters");P.result+=re}}function ut(P,Me,Y,T){var O,le,N,re;for(c.isObject(Y)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(Y),N=0,re=O.length;N<re;N+=1)le=O[N],S.call(Me,le)||(Me[le]=Y[le],T[le]=!0)}function pt(P,Me,Y,T,O,le,N,re){var z,oe;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),z=0,oe=O.length;z<oe;z+=1)Array.isArray(O[z])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&X(O[z])==="[object Object]"&&(O[z]="[object Object]");if(typeof O=="object"&&X(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Me===null&&(Me={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(z=0,oe=le.length;z<oe;z+=1)ut(P,Me,le[z],Y);else ut(P,Me,le,Y);else!P.json&&!S.call(Y,O)&&S.call(Me,O)&&(P.line=N||P.line,P.position=re||P.position,Pe(P,"duplicated mapping key")),Me[O]=le,delete Y[O];return Me}function wt(P){var Me;Me=P.input.charCodeAt(P.position),Me===10?P.position++:Me===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):Pe(P,"a line break is expected"),P.line+=1,P.lineStart=P.position}function rt(P,Me,Y){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Z(O);)O=P.input.charCodeAt(++P.position);if(Me&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(q(O))for(wt(P),O=P.input.charCodeAt(P.position),T++,P.lineIndent=0;O===32;)P.lineIndent++,O=P.input.charCodeAt(++P.position);else break}return Y!==-1&&T!==0&&P.lineIndent<Y&&tt(P,"deficient indentation"),T}function lt(P){var Me=P.position,Y;return Y=P.input.charCodeAt(Me),!!((Y===45||Y===46)&&Y===P.input.charCodeAt(Me+1)&&Y===P.input.charCodeAt(Me+2)&&(Me+=3,Y=P.input.charCodeAt(Me),Y===0||J(Y)))}function yt(P,Me){Me===1?P.result+=" ":Me>1&&(P.result+=c.repeat(`
498
+ `,Me-1))}function mt(P,Me,Y){var T,O,le,N,re,z,oe,Oe,Ae=P.kind,Ve=P.result,Le;if(Le=P.input.charCodeAt(P.position),J(Le)||de(Le)||Le===35||Le===38||Le===42||Le===33||Le===124||Le===62||Le===39||Le===34||Le===37||Le===64||Le===96||(Le===63||Le===45)&&(O=P.input.charCodeAt(P.position+1),J(O)||Y&&de(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,re=!1;Le!==0;){if(Le===58){if(O=P.input.charCodeAt(P.position+1),J(O)||Y&&de(O))break}else if(Le===35){if(T=P.input.charCodeAt(P.position-1),J(T))break}else{if(P.position===P.lineStart&&lt(P)||Y&&de(Le))break;if(q(Le))if(z=P.line,oe=P.lineStart,Oe=P.lineIndent,rt(P,!1,-1),P.lineIndent>=Me){re=!0,Le=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=z,P.lineStart=oe,P.lineIndent=Oe;break}}re&&(Je(P,le,N,!1),yt(P,P.line-z),le=N=P.position,re=!1),Z(Le)||(N=P.position+1),Le=P.input.charCodeAt(++P.position)}return Je(P,le,N,!1),P.result?!0:(P.kind=Ae,P.result=Ve,!1)}function dt(P,Me){var Y,T,O;if(Y=P.input.charCodeAt(P.position),Y!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(Y=P.input.charCodeAt(P.position))!==0;)if(Y===39)if(Je(P,T,P.position,!0),Y=P.input.charCodeAt(++P.position),Y===39)T=P.position,P.position++,O=P.position;else return!0;else q(Y)?(Je(P,T,O,!0),yt(P,rt(P,!1,Me)),T=O=P.position):P.position===P.lineStart&&lt(P)?Pe(P,"unexpected end of the document within a single quoted scalar"):(P.position++,O=P.position);Pe(P,"unexpected end of the stream within a single quoted scalar")}function Rt(P,Me){var Y,T,O,le,N,re;if(re=P.input.charCodeAt(P.position),re!==34)return!1;for(P.kind="scalar",P.result="",P.position++,Y=T=P.position;(re=P.input.charCodeAt(P.position))!==0;){if(re===34)return Je(P,Y,P.position,!0),P.position++,!0;if(re===92){if(Je(P,Y,P.position,!0),re=P.input.charCodeAt(++P.position),q(re))rt(P,!1,Me);else if(re<256&&fe[re])P.result+=se[re],P.position++;else if((N=ae(re))>0){for(O=N,le=0;O>0;O--)re=P.input.charCodeAt(++P.position),(N=te(re))>=0?le=(le<<4)+N:Pe(P,"expected hexadecimal character");P.result+=pe(le),P.position++}else Pe(P,"unknown escape sequence");Y=T=P.position}else q(re)?(Je(P,Y,T,!0),yt(P,rt(P,!1,Me)),Y=T=P.position):P.position===P.lineStart&&lt(P)?Pe(P,"unexpected end of the document within a double quoted scalar"):(P.position++,T=P.position)}Pe(P,"unexpected end of the stream within a double quoted scalar")}function kt(P,Me){var Y=!0,T,O=P.tag,le,N=P.anchor,re,z,oe,Oe,Ae,Ve={},Le,nt,ht,bt;if(bt=P.input.charCodeAt(P.position),bt===91)z=93,Ae=!1,le=[];else if(bt===123)z=125,Ae=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),bt=P.input.charCodeAt(++P.position);bt!==0;){if(rt(P,!0,Me),bt=P.input.charCodeAt(P.position),bt===z)return P.position++,P.tag=O,P.anchor=N,P.kind=Ae?"mapping":"sequence",P.result=le,!0;Y||Pe(P,"missed comma between flow collection entries"),nt=Le=ht=null,oe=Oe=!1,bt===63&&(re=P.input.charCodeAt(P.position+1),J(re)&&(oe=Oe=!0,P.position++,rt(P,!0,Me))),T=P.line,he(P,Me,g,!1,!0),nt=P.tag,Le=P.result,rt(P,!0,Me),bt=P.input.charCodeAt(P.position),(Oe||P.line===T)&&bt===58&&(oe=!0,bt=P.input.charCodeAt(++P.position),rt(P,!0,Me),he(P,Me,g,!1,!0),ht=P.result),Ae?pt(P,le,Ve,nt,Le,ht):oe?le.push(pt(P,null,Ve,nt,Le,ht)):le.push(Le),rt(P,!0,Me),bt=P.input.charCodeAt(P.position),bt===44?(Y=!0,bt=P.input.charCodeAt(++P.position)):Y=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Ct(P,Me){var Y,T,O=j,le=!1,N=!1,re=Me,z=0,oe=!1,Oe,Ae;if(Ae=P.input.charCodeAt(P.position),Ae===124)T=!1;else if(Ae===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ae!==0;)if(Ae=P.input.charCodeAt(++P.position),Ae===43||Ae===45)j===O?O=Ae===43?W:ee:Pe(P,"repeat of a chomping mode identifier");else if((Oe=ye(Ae))>=0)Oe===0?Pe(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Pe(P,"repeat of an indentation width identifier"):(re=Me+Oe-1,N=!0);else break;if(Z(Ae)){do Ae=P.input.charCodeAt(++P.position);while(Z(Ae));if(Ae===35)do Ae=P.input.charCodeAt(++P.position);while(!q(Ae)&&Ae!==0)}for(;Ae!==0;){for(wt(P),P.lineIndent=0,Ae=P.input.charCodeAt(P.position);(!N||P.lineIndent<re)&&Ae===32;)P.lineIndent++,Ae=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>re&&(re=P.lineIndent),q(Ae)){z++;continue}if(P.lineIndent<re){O===W?P.result+=c.repeat(`
499
499
  `,le?1+z:z):O===j&&le&&(P.result+=`
500
- `);break}for(T?Z(Ae)?(ae=!0,P.result+=c.repeat(`
501
- `,le?1+z:z)):ae?(ae=!1,P.result+=c.repeat(`
500
+ `);break}for(T?Z(Ae)?(oe=!0,P.result+=c.repeat(`
501
+ `,le?1+z:z)):oe?(oe=!1,P.result+=c.repeat(`
502
502
  `,z+1)):z===0?le&&(P.result+=" "):P.result+=c.repeat(`
503
503
  `,z):P.result+=c.repeat(`
504
- `,le?1+z:z),le=!0,N=!0,z=0,Y=P.position;!q(Ae)&&Ae!==0;)Ae=P.input.charCodeAt(++P.position);Je(P,Y,P.position,!1)}return!0}function Ht(P,Me){var Y,T=P.tag,O=P.anchor,le=[],N,ne=!1,z;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),z=P.input.charCodeAt(P.position);z!==0&&!(z!==45||(N=P.input.charCodeAt(P.position+1),!J(N)));){if(ne=!0,P.position++,rt(P,!0,-1)&&P.lineIndent<=Me){le.push(null),z=P.input.charCodeAt(P.position);continue}if(Y=P.line,he(P,Me,D,!1,!0),le.push(P.result),rt(P,!0,-1),z=P.input.charCodeAt(P.position),(P.line===Y||P.lineIndent>Me)&&z!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Me)break}return ne?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function Lt(P,Me,Y){var T,O,le,N,ne=P.tag,z=P.anchor,ae={},Oe={},Ae=null,Ve=null,Le=null,nt=!1,vt=!1,bt;for(P.anchor!==null&&(P.anchorMap[P.anchor]=ae),bt=P.input.charCodeAt(P.position);bt!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(bt===63||bt===58)&&J(T))bt===63?(nt&&(ht(P,ae,Oe,Ae,Ve,null),Ae=Ve=Le=null),vt=!0,nt=!0,O=!0):nt?(nt=!1,O=!0):Pe(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,bt=T;else if(he(P,Y,L,!1,!0))if(P.line===le){for(bt=P.input.charCodeAt(P.position);Z(bt);)bt=P.input.charCodeAt(++P.position);if(bt===58)bt=P.input.charCodeAt(++P.position),J(bt)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),nt&&(ht(P,ae,Oe,Ae,Ve,null),Ae=Ve=Le=null),vt=!0,nt=!1,O=!1,Ae=P.tag,Ve=P.result;else if(vt)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=ne,P.anchor=z,!0}else if(vt)Pe(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=ne,P.anchor=z,!0;else break;if((P.line===le||P.lineIndent>Me)&&(he(P,Me,B,!0,O)&&(nt?Ve=P.result:Le=P.result),nt||(ht(P,ae,Oe,Ae,Ve,Le,le,N),Ae=Ve=Le=null),rt(P,!0,-1),bt=P.input.charCodeAt(P.position)),P.lineIndent>Me&&bt!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Me)break}return nt&&ht(P,ae,Oe,Ae,Ve,null),vt&&(P.tag=ne,P.anchor=z,P.kind="mapping",P.result=ae),vt}function Vt(P){var Me,Y=!1,T=!1,O,le,N;if(N=P.input.charCodeAt(P.position),N!==33)return!1;if(P.tag!==null&&Pe(P,"duplication of a tag property"),N=P.input.charCodeAt(++P.position),N===60?(Y=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Me=P.position,Y){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Me,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!J(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Me-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Me=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Me,P.position),M.test(le)&&Pe(P,"tag suffix cannot contain flow indicator characters")}return le&&!V.test(le)&&Pe(P,"tag name cannot contain such characters: "+le),Y?P.tag=le:A.call(P.tagMap,O)?P.tag=P.tagMap[O]+le:O==="!"?P.tag="!"+le:O==="!!"?P.tag="tag:yaml.org,2002:"+le:Pe(P,'undeclared tag handle "'+O+'"'),!0}function Tt(P){var Me,Y;if(Y=P.input.charCodeAt(P.position),Y!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),Y=P.input.charCodeAt(++P.position),Me=P.position;Y!==0&&!J(Y)&&!de(Y);)Y=P.input.charCodeAt(++P.position);return P.position===Me&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Me,P.position),!0}function Dt(P){var Me,Y,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Me=P.position;T!==0&&!J(T)&&!de(T);)T=P.input.charCodeAt(++P.position);return P.position===Me&&Pe(P,"name of an alias node must contain at least one character"),Y=P.input.slice(Me,P.position),A.call(P.anchorMap,Y)||Pe(P,'unidentified alias "'+Y+'"'),P.result=P.anchorMap[Y],rt(P,!0,-1),!0}function he(P,Me,Y,T,O){var le,N,ne,z=1,ae=!1,Oe=!1,Ae,Ve,Le,nt,vt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=ne=B===Y||D===Y,T&&rt(P,!0,-1)&&(ae=!0,P.lineIndent>Me?z=1:P.lineIndent===Me?z=0:P.lineIndent<Me&&(z=-1)),z===1)for(;Vt(P)||Tt(P);)rt(P,!0,-1)?(ae=!0,ne=le,P.lineIndent>Me?z=1:P.lineIndent===Me?z=0:P.lineIndent<Me&&(z=-1)):ne=!1;if(ne&&(ne=ae||O),(z===1||B===Y)&&(g===Y||L===Y?nt=Me:nt=Me+1,vt=P.position-P.lineStart,z===1?ne&&(Ht(P,vt)||Lt(P,vt,nt))||Ft(P,nt)?Oe=!0:(N&&Ct(P,nt)||pt(P,nt)||kt(P,nt)?Oe=!0:Dt(P)?(Oe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):mt(P,nt,g===Y)&&(Oe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):z===0&&(Oe=ne&&Ht(P,vt))),P.tag!==null&&P.tag!=="!")if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&Pe(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),Ae=0,Ve=P.implicitTypes.length;Ae<Ve;Ae+=1)if(Le=P.implicitTypes[Ae],Le.resolve(P.result)){P.result=Le.construct(P.result),P.tag=Le.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else A.call(P.typeMap[P.kind||"fallback"],P.tag)?(Le=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&Le.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Le.kind+'", not "'+P.kind+'"'),Le.resolve(P.result)?(P.result=Le.construct(P.result),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):Pe(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")):Pe(P,"unknown tag !<"+P.tag+">");return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||Oe}function G(P){var Me=P.position,Y,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(rt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),Y=P.position;N!==0&&!J(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(Y,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Z(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!q(N));break}if(q(N))break;for(Y=P.position;N!==0&&!J(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(Y,P.position))}N!==0&&wt(P),A.call(Qe,T)?Qe[T](P,T,O):et(P,'unknown document directive "'+T+'"')}if(rt(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,rt(P,!0,-1)):le&&Pe(P,"directives end mark is expected"),he(P,P.lineIndent-1,B,!1,!0),rt(P,!0,-1),P.checkLineBreaks&&Q.test(P.input.slice(Me,P.position))&&et(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&lt(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,rt(P,!0,-1));return}if(P.position<P.length-1)Pe(P,"end of the stream or a document separator is expected");else return}function K(P,Me){P=String(P),Me=Me||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
505
- `),P.charCodeAt(0)===65279&&(P=P.slice(1)));var Y=new De(P,Me),T=P.indexOf("\0");for(T!==-1&&(Y.position=T,Pe(Y,"null byte is not allowed in input")),Y.input+="\0";Y.input.charCodeAt(Y.position)===32;)Y.lineIndent+=1,Y.position+=1;for(;Y.position<Y.length-1;)G(Y);return Y.documents}function we(P,Me,Y){Me!==null&&typeof Me=="object"&&typeof Y=="undefined"&&(Y=Me,Me=null);var T=K(P,Y);if(typeof Me!="function")return T;for(var O=0,le=T.length;O<le;O+=1)Me(T[O])}function Ie(P,Me){var Y=K(P,Me);if(Y.length!==0){if(Y.length===1)return Y[0];throw new v("expected a single document in the stream, but found more")}}function $e(P,Me,Y){return typeof Me=="object"&&Me!==null&&typeof Y=="undefined"&&(Y=Me,Me=null),we(P,Me,c.extend({schema:d},Y))}function Ke(P,Me){return Ie(P,c.extend({schema:d},Me))}h.exports.loadAll=we,h.exports.load=Ie,h.exports.safeLoadAll=$e,h.exports.safeLoad=Ke},77334:(h,I,a)=>{"use strict";var c=a(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,D,B;if(!this.buffer)return null;for(d=d||4,b=b||75,A="",g=this.position;g>0&&`\0\r
506
- \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="",D=this.position;D<this.buffer.length&&`\0\r
507
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(D))===-1;)if(D+=1,D-this.position>b/2-1){L=" ... ",D-=5;break}return B=this.buffer.slice(g,D),c.repeat(" ",d)+A+B+L+`
508
- `+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+=`:
509
- `+b)),A},h.exports=v},82409:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(53899);function d(g,L,D){var B=[];return g.include.forEach(function(j){D=d(j,L,D)}),g[L].forEach(function(j){D.forEach(function(ee,W){ee.tag===j.tag&&ee.kind===j.kind&&B.push(W)}),D.push(j)}),D.filter(function(j,ee){return B.indexOf(ee)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,D=arguments.length;L<D;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,D;switch(arguments.length){case 1:L=A.DEFAULT,D=arguments[0];break;case 2:L=arguments[0],D=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),D=c.toArray(D),!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(!D.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:D})},h.exports=A},17318:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(65796)]})},19321:(h,I,a)=>{"use strict";var c=a(82409);h.exports=c.DEFAULT=new c({include:[a(5972)],explicit:[a(70575),a(97287),a(89811)]})},5972:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(17318)],implicit:[a(56145),a(243)],explicit:[a(18964),a(3878),a(68244),a(67300)]})},75322:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({explicit:[a(79483),a(43745),a(86553)]})},65796:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(75322)],implicit:[a(3022),a(2648),a(95979),a(53456)]})},53899:(h,I,a)=>{"use strict";var c=a(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(D){g[String(D)]=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,a)=>{"use strict";var c;try{var v=void 0;c=a(48764).Buffer}catch(D){}var x=a(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
510
- \r`;function b(D){if(D===null)return!1;var B,j,ee=0,W=D.length,R=d;for(j=0;j<W;j++)if(B=R.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;ee+=6}return ee%8==0}function A(D){var B,j,ee=D.replace(/[\r\n=]/g,""),W=ee.length,R=d,Q=0,M=[];for(B=0;B<W;B++)B%4==0&&B&&(M.push(Q>>16&255),M.push(Q>>8&255),M.push(Q&255)),Q=Q<<6|R.indexOf(ee.charAt(B));return j=W%4*6,j===0?(M.push(Q>>16&255),M.push(Q>>8&255),M.push(Q&255)):j===18?(M.push(Q>>10&255),M.push(Q>>2&255)):j===12&&M.push(Q>>4&255),c?c.from?c.from(M):new c(M):M}function g(D){var B="",j=0,ee,W,R=D.length,Q=d;for(ee=0;ee<R;ee++)ee%3==0&&ee&&(B+=Q[j>>18&63],B+=Q[j>>12&63],B+=Q[j>>6&63],B+=Q[j&63]),j=(j<<8)+D[ee];return W=R%3,W===0?(B+=Q[j>>18&63],B+=Q[j>>12&63],B+=Q[j>>6&63],B+=Q[j&63]):W===2?(B+=Q[j>>10&63],B+=Q[j>>4&63],B+=Q[j<<2&63],B+=Q[64]):W===1&&(B+=Q[j>>2&63],B+=Q[j<<4&63],B+=Q[64],B+=Q[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:A,predicate:L,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(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,a)=>{"use strict";var c=a(25596),v=a(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(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,ee,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".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){W.unshift(parseFloat(R,10))}),B=0,ee=1,W.forEach(function(R){B+=R*ee,ee*=60}),j*B):j*parseFloat(B,10)}var A=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),A.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function A(D){if(D===null)return!1;var B=D.length,j=0,ee=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;ee=!0}return ee&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;ee=!0}return ee&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;ee=!0}return ee&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;ee=!0}return!ee||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,ee,W,R=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),ee=B[0],(ee==="-"||ee==="+")&&(ee==="-"&&(j=-1),B=B.slice(1),ee=B[0]),B==="0"?0:ee==="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(Q){R.unshift(parseInt(Q,10))}),B=0,W=1,R.forEach(function(Q){B+=Q*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:A,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{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 D="("+L+")",B=c.parse(D,{range:!0}),j=[],ee;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(W){j.push(W.name)}),ee=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(ee[0]+1,ee[1]-1)):new Function(j,"return "+D.slice(ee[0],ee[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,a)=>{"use strict";var c=a(53899);function v(A){if(A===null||A.length===0)return!1;var g=A,L=/\/([gim]*)$/.exec(A),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(A){var g=A,L=/\/([gim]*)$/.exec(A),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}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,a)=>{"use strict";var c=a(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,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(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,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(A){if(A===null)return!0;var g=[],L,D,B,j,ee,W=A;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],ee=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!ee)ee=!0;else return!1;if(!ee)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,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var A,g,L,D,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]"||(D=Object.keys(L),D.length!==1))return!1;B[A]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var A,g,L,D,B,j=b;for(B=new Array(j.length),A=0,g=j.length;A<g;A+=1)L=j[A],D=Object.keys(L),B[A]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(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,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(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,D,B,j,ee,W,R,Q=0,M=null,C,V,X;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(ee=+L[4],W=+L[5],R=+L[6],L[7]){for(Q=L[7].slice(0,3);Q.length<3;)Q+="0";Q=+Q}return L[9]&&(C=+L[10],V=+(L[11]||0),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),X=new Date(Date.UTC(D,B,j,ee,W,R,Q)),M&&X.setTime(X.getTime()-M),X}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,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function A(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){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,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function A(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){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,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function A(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){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,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(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,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),A=a(34309);function g(L){var D=this.__data__=new c(L);this.size=D.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,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var A=a[v];c(A,v,a)&&(b[d++]=A)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),A=a(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var ee=x(B),W=!ee&&v(B),R=!ee&&!W&&d(B),Q=!ee&&!W&&!R&&A(B),M=ee||W||R||Q,C=M?c(B.length,String):[],V=C.length;for(var X in B)(j||L.call(B,X))&&!(M&&(X=="length"||R&&(X=="offset"||X=="parent")||Q&&(X=="buffer"||X=="byteLength"||X=="byteOffset")||b(X,V)))&&C.push(X);return C}h.exports=D},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L){var D=A[g];(!(d.call(A,g)&&v(D,L))||L===void 0&&!(g in A))&&c(A,g,L)}h.exports=b},18470:(h,I,a)=>{var c=a(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,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(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(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),A=a(64626),g=a(278),L=a(18805),D=a(1911),B=a(58234),j=a(46904),ee=a(98882),W=a(43824),R=a(29148),Q=a(38517),M=a(1469),C=a(44144),V=a(56688),X=a(13218),q=a(72928),Z=a(3674),J=a(81704),de=1,re=2,ie=4,ye="[object Arguments]",xe="[object Array]",pe="[object Boolean]",fe="[object Date]",se="[object Error]",Fe="[object Function]",De="[object GeneratorFunction]",Re="[object Map]",Pe="[object Number]",et="[object Object]",Qe="[object RegExp]",Je="[object Set]",ut="[object String]",ht="[object Symbol]",wt="[object WeakMap]",rt="[object ArrayBuffer]",lt="[object DataView]",yt="[object Float32Array]",mt="[object Float64Array]",pt="[object Int8Array]",kt="[object Int16Array]",Ft="[object Int32Array]",Ct="[object Uint8Array]",Ht="[object Uint8ClampedArray]",Lt="[object Uint16Array]",Vt="[object Uint32Array]",Tt={};Tt[ye]=Tt[xe]=Tt[rt]=Tt[lt]=Tt[pe]=Tt[fe]=Tt[yt]=Tt[mt]=Tt[pt]=Tt[kt]=Tt[Ft]=Tt[Re]=Tt[Pe]=Tt[et]=Tt[Qe]=Tt[Je]=Tt[ut]=Tt[ht]=Tt[Ct]=Tt[Ht]=Tt[Lt]=Tt[Vt]=!0,Tt[se]=Tt[Fe]=Tt[wt]=!1;function Dt(he,G,K,we,Ie,$e){var Ke,P=G&de,Me=G&re,Y=G&ie;if(K&&(Ke=Ie?K(he,we,Ie,$e):K(he)),Ke!==void 0)return Ke;if(!X(he))return he;var T=M(he);if(T){if(Ke=W(he),!P)return g(he,Ke)}else{var O=ee(he),le=O==Fe||O==De;if(C(he))return A(he,P);if(O==et||O==ye||le&&!Ie){if(Ke=Me||le?{}:Q(he),!P)return Me?D(he,b(Ke,he)):L(he,d(Ke,he))}else{if(!Tt[O])return Ie?he:{};Ke=R(he,O,P)}}$e||($e=new c);var N=$e.get(he);if(N)return N;$e.set(he,Ke),q(he)?he.forEach(function(ae){Ke.add(Dt(ae,G,K,ae,he,$e))}):V(he)&&he.forEach(function(ae,Oe){Ke.set(Oe,Dt(ae,G,K,Oe,he,$e))});var ne=Y?Me?j:B:Me?J:Z,z=T?void 0:ne(he);return v(z||he,function(ae,Oe){z&&(Oe=ae,ae=he[Oe]),x(Ke,Oe,Dt(ae,G,K,Oe,he,$e))}),Ke}h.exports=Dt},3118:(h,I,a)=>{var c=a(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(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,A,g,L){var D=-1,B=d.length;for(A||(A=v),L||(L=[]);++D<B;){var j=d[D];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,a)=>{var c=a(71811),v=a(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,a)=>{var c=a(62488),v=a(1469);function x(d,b,A){var g=b(d);return v(d)?g:c(g,A(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(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(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(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,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),A=a(1469),g=a(44144),L=a(36719),D=1,B="[object Arguments]",j="[object Array]",ee="[object Object]",W=Object.prototype,R=W.hasOwnProperty;function Q(M,C,V,X,q,Z){var J=A(M),de=A(C),re=J?j:b(M),ie=de?j:b(C);re=re==B?ee:re,ie=ie==B?ee:ie;var ye=re==ee,xe=ie==ee,pe=re==ie;if(pe&&g(M)){if(!g(C))return!1;J=!0,ye=!1}if(pe&&!ye)return Z||(Z=new c),J||L(M)?v(M,C,V,X,q,Z):x(M,C,re,V,X,q,Z);if(!(V&D)){var fe=ye&&R.call(M,"__wrapped__"),se=xe&&R.call(C,"__wrapped__");if(fe||se){var Fe=fe?M.value():M,De=se?C.value():C;return Z||(Z=new c),q(Fe,De,V,X,Z)}}return pe?(Z||(Z=new c),d(M,C,V,X,q,Z)):!1}h.exports=Q},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(A,g,L,D){var B=L.length,j=B,ee=!D;if(A==null)return!j;for(A=Object(A);B--;){var W=L[B];if(ee&&W[2]?W[1]!==A[W[0]]:!(W[0]in A))return!1}for(;++B<j;){W=L[B];var R=W[0],Q=A[R],M=W[1];if(ee&&W[2]){if(Q===void 0&&!(R in A))return!1}else{var C=new c;if(D)var V=D(Q,M,R,A,g,C);if(!(V===void 0?v(M,Q,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,A=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ee(W){if(!x(W)||v(W))return!1;var R=c(W)?j:A;return R.test(d(W))}h.exports=ee},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",A="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",ee="[object Object]",W="[object RegExp]",R="[object Set]",Q="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",X="[object Float32Array]",q="[object Float64Array]",Z="[object Int8Array]",J="[object Int16Array]",de="[object Int32Array]",re="[object Uint8Array]",ie="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]",pe={};pe[X]=pe[q]=pe[Z]=pe[J]=pe[de]=pe[re]=pe[ie]=pe[ye]=pe[xe]=!0,pe[d]=pe[b]=pe[C]=pe[A]=pe[V]=pe[g]=pe[L]=pe[D]=pe[B]=pe[j]=pe[ee]=pe[W]=pe[R]=pe[Q]=pe[M]=!1;function fe(se){return x(se)&&v(se.length)&&!!pe[c(se)]}h.exports=fe},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(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,a)=>{var c=a(25726),v=a(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,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function A(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=A},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(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,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),A=a(42634),g=a(40327),L=1,D=2;function B(j,ee){return d(j)&&b(ee)?A(g(j),ee):function(W){var R=v(W,j);return R===void 0&&R===ee?x(W,j):c(ee,R,L|D)}}h.exports=B},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(A,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,A,g){for(var L=-1,D=A.length,B={};++L<D;){var j=A[L],ee=c(b,j);g(ee,j)&&v(B,x(j,b),ee)}return B}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,A){return x(v(b,A,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function A(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,ee=L.length,W=ee-1,R=g;R!=null&&++j<ee;){var Q=b(L[j]),M=D;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return g;if(j!=W){var C=R[Q];M=B?B(C,Q,R):void 0,M===void 0&&(M=d(C)?C:x(L[j+1])?[]:{})}c(R,Q,M),R=R[Q]}return g}h.exports=A},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(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(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,A=c?c.prototype:void 0,g=A?A.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(A,g){return c(A)?A:v(A,g)?[A]:x(d(A))}h.exports=b},74318:(h,I,a)=>{var c=a(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,a)=>{h=a.nmd(h);var c=a(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,D){if(D)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,a)=>{var c=a(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 a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(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,a)=>{var c=a(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(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,A,g){var L=!A;A||(A={});for(var D=-1,B=b.length;++D<B;){var j=b[D],ee=g?g(A[j],d[j],j,A,d):void 0;ee===void 0&&(ee=d[j]),L?v(A,j,ee):c(A,j,ee)}return A}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,A){var g=-1,L=A.length,D=L>1?A[L-1]:void 0,B=L>2?A[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(A[0],A[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=A[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(A,g,L){var D=Object(A);if(!v(A)){var B=c(g,3);A=x(A),g=function(ee){return B(D[ee],ee,D)}}var j=b(A,g,L);return j>-1?D[B?A[j]:j]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function A(g,L,D,B,j,ee){var W=D&d,R=g.length,Q=L.length;if(R!=Q&&!(W&&Q>R))return!1;var M=ee.get(g),C=ee.get(L);if(M&&C)return M==L&&C==g;var V=-1,X=!0,q=D&b?new c:void 0;for(ee.set(g,L),ee.set(L,g);++V<R;){var Z=g[V],J=L[V];if(B)var de=W?B(J,Z,V,L,g,ee):B(Z,J,V,g,L,ee);if(de!==void 0){if(de)continue;X=!1;break}if(q){if(!v(L,function(re,ie){if(!x(q,ie)&&(Z===re||j(Z,re,D,B,ee)))return q.push(ie)})){X=!1;break}}else if(!(Z===J||j(Z,J,D,B,ee))){X=!1;break}}return ee.delete(g),ee.delete(L),X}h.exports=A},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),A=a(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",ee="[object Map]",W="[object Number]",R="[object RegExp]",Q="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",X="[object DataView]",q=c?c.prototype:void 0,Z=q?q.valueOf:void 0;function J(de,re,ie,ye,xe,pe,fe){switch(ie){case X:if(de.byteLength!=re.byteLength||de.byteOffset!=re.byteOffset)return!1;de=de.buffer,re=re.buffer;case V:return!(de.byteLength!=re.byteLength||!pe(new v(de),new v(re)));case D:case B:case W:return x(+de,+re);case j:return de.name==re.name&&de.message==re.message;case R:case M:return de==re+"";case ee:var se=b;case Q:var Fe=ye&g;if(se||(se=A),de.size!=re.size&&!Fe)return!1;var De=fe.get(de);if(De)return De==re;ye|=L,fe.set(de,re);var Re=d(se(de),se(re),ye,xe,pe,fe);return fe.delete(de),Re;case C:if(Z)return Z.call(de)==Z.call(re)}return!1}h.exports=J},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(A,g,L,D,B,j){var ee=L&v,W=c(A),R=W.length,Q=c(g),M=Q.length;if(R!=M&&!ee)return!1;for(var C=R;C--;){var V=W[C];if(!(ee?V in g:d.call(g,V)))return!1}var X=j.get(A),q=j.get(g);if(X&&q)return X==g&&q==A;var Z=!0;j.set(A,g),j.set(g,A);for(var J=ee;++C<R;){V=W[C];var de=A[V],re=g[V];if(D)var ie=ee?D(re,de,V,g,A,j):D(de,re,V,A,g,j);if(!(ie===void 0?de===re||B(de,re,L,D,j):ie)){Z=!1;break}J||(J=V=="constructor")}if(Z&&!J){var ye=A.constructor,xe=g.constructor;ye!=xe&&"constructor"in A&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof xe=="function"&&xe instanceof xe)&&(Z=!1)}return j.delete(A),j.delete(g),Z}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(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,a)=>{var c=a(89162),v=a(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,a)=>{var c=a(28458),v=a(47801);function x(d,b){var A=v(d,b);return c(A)?A:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(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),D=g[b];try{g[b]=void 0;var B=!0}catch(ee){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=A},99551:(h,I,a)=>{var c=a(34963),v=a(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,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(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,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),A=a(44239),g=a(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",ee="[object WeakMap]",W="[object DataView]",R=g(c),Q=g(v),M=g(x),C=g(d),V=g(b),X=A;(c&&X(new c(new ArrayBuffer(1)))!=W||v&&X(new v)!=L||x&&X(x.resolve())!=B||d&&X(new d)!=j||b&&X(new b)!=ee)&&(X=function(q){var Z=A(q),J=Z==D?q.constructor:void 0,de=J?g(J):"";if(de)switch(de){case R:return W;case Q:return L;case M:return B;case C:return j;case V:return ee}return Z}),h.exports=X},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),A=a(40327);function g(L,D,B){D=c(D,L);for(var j=-1,ee=D.length,W=!1;++j<ee;){var R=A(D[j]);if(!(W=L!=null&&B(L,R)))break;L=L[R]}return W||++j!=ee?W:(ee=L==null?0:L.length,!!ee&&b(ee)&&d(R,ee)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),A="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",ee="[object String]",W="[object Symbol]",R="[object ArrayBuffer]",Q="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",X="[object Int16Array]",q="[object Int32Array]",Z="[object Uint8Array]",J="[object Uint8ClampedArray]",de="[object Uint16Array]",re="[object Uint32Array]";function ie(ye,xe,pe){var fe=ye.constructor;switch(xe){case R:return c(ye);case A:case g:return new fe(+ye);case Q:return v(ye,pe);case M:case C:case V:case X:case q:case Z:case J:case de:case re:return b(ye,pe);case L:return new fe;case D:case ee:return new fe(ye);case B:return x(ye);case j:return new fe;case W:return d(ye)}}h.exports=ie},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(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,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(A,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],A):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(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(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(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 a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(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,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(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(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(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,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(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,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(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,D=v(g.length-b,0),B=Array(D);++L<D;)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,a)=>{var c=a(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 a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var A=c(),g=a-(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,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(A,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([A,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(A,g),this.size=L.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(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,D,B){A.push(D?B.replace(x,"$1"):L||g)}),A});h.exports=d},40327:(h,I,a)=>{var c=a(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,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),A=a(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,A(j),B);return}for(var ee in j)L.call(j,ee)&&c(B,ee,j[ee])});h.exports=D},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(A,g,L){var D=A==null?0:A.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(A,v(g,3),B)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(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,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(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,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(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,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),A=a(44144),g=a(25726),L=a(36719),D="[object Map]",B="[object Set]",j=Object.prototype,ee=j.hasOwnProperty;function W(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 Q=v(R);if(Q==D||Q==B)return!R.size;if(g(R))return!c(R).length;for(var M in R)if(ee.call(R,M))return!1;return!0}h.exports=W},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",A="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==A}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,A=Object.prototype,g=b.toString,L=A.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var ee=v(j);if(ee===null)return!0;var W=L.call(ee,"constructor")&&ee.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(A){return typeof A=="string"||!v(A)&&x(A)&&c(A)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(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],D=A.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return A.cache=D.set(L,B)||D,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,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(A){return x(A)?c(d(A)):v(A)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(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,a)=>{var c=a(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,a)=>{var c=a(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,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(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 ee=A.test(B);return ee||g.test(B)?L(B.slice(2),ee?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{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,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,ee=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,R=W?WeakRef.prototype.deref:null,Q=Boolean.prototype.valueOf,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,X=String.prototype.slice,q=String.prototype.replace,Z=String.prototype.toUpperCase,J=String.prototype.toLowerCase,de=RegExp.prototype.test,re=Array.prototype.concat,ie=Array.prototype.join,ye=Array.prototype.slice,xe=Math.floor,pe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",De=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Re=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(z){return z.__proto__}:null);function et(z,ae){if(z===1/0||z===-1/0||z!==z||z&&z>-1e3&&z<1e3||de.call(/e/,ae))return ae;var Oe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof z=="number"){var Ae=z<0?-xe(-z):xe(z);if(Ae!==z){var Ve=String(Ae),Le=X.call(ae,Ve.length+1);return q.call(Ve,Oe,"$&_")+"."+q.call(q.call(Le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(ae,Oe,"$&_")}var Qe=a(24654).custom,Je=Qe&&Ft(Qe)?Qe:null;h.exports=function z(ae,Oe,Ae,Ve){var Le=Oe||{};if(Lt(Le,"quoteStyle")&&Le.quoteStyle!=="single"&&Le.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Lt(Le,"maxStringLength")&&(typeof Le.maxStringLength=="number"?Le.maxStringLength<0&&Le.maxStringLength!==1/0:Le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var nt=Lt(Le,"customInspect")?Le.customInspect:!0;if(typeof nt!="boolean"&&nt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Lt(Le,"indent")&&Le.indent!==null&&Le.indent!==" "&&!(parseInt(Le.indent,10)===Le.indent&&Le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Lt(Le,"numericSeparator")&&typeof Le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var vt=Le.numericSeparator;if(typeof ae=="undefined")return"undefined";if(ae===null)return"null";if(typeof ae=="boolean")return ae?"true":"false";if(typeof ae=="string")return Ke(ae,Le);if(typeof ae=="number"){if(ae===0)return 1/0/ae>0?"0":"-0";var bt=String(ae);return vt?et(ae,bt):bt}if(typeof ae=="bigint"){var Gt=String(ae)+"n";return vt?et(ae,Gt):Gt}var Rt=typeof Le.depth=="undefined"?5:Le.depth;if(typeof Ae=="undefined"&&(Ae=0),Ae>=Rt&&Rt>0&&typeof ae=="object")return wt(ae)?"[Array]":"[Object]";var Jr=le(Le,Ae);if(typeof Ve=="undefined")Ve=[];else if(Dt(Ve,ae)>=0)return"[Circular]";function vr(Un,Qr,sn){if(Qr&&(Ve=ye.call(Ve),Ve.push(Qr)),sn){var jn={depth:Le.depth};return Lt(Le,"quoteStyle")&&(jn.quoteStyle=Le.quoteStyle),z(Un,jn,Ae+1,Ve)}return z(Un,Le,Ae+1,Ve)}if(typeof ae=="function"){var Cn=Tt(ae),Si=ne(ae,vr);return"[Function"+(Cn?": "+Cn:" (anonymous)")+"]"+(Si.length>0?" { "+ie.call(Si,", ")+" }":"")}if(Ft(ae)){var Hr=Fe?q.call(String(ae),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(ae);return typeof ae=="object"&&!Fe?Me(Hr):Hr}if($e(ae)){for(var Jn="<"+J.call(String(ae.nodeName)),ai=ae.attributes||[],on=0;on<ai.length;on++)Jn+=" "+ai[on].name+"="+ut(ht(ai[on].value),"double",Le);return Jn+=">",ae.childNodes&&ae.childNodes.length&&(Jn+="..."),Jn+="</"+J.call(String(ae.nodeName))+">",Jn}if(wt(ae)){if(ae.length===0)return"[]";var Bn=ne(ae,vr);return Jr&&!O(Bn)?"["+N(Bn,Jr)+"]":"[ "+ie.call(Bn,", ")+" ]"}if(yt(ae)){var zr=ne(ae,vr);return"cause"in ae&&!Re.call(ae,"cause")?"{ ["+String(ae)+"] "+ie.call(re.call("[cause]: "+vr(ae.cause),zr),", ")+" }":zr.length===0?"["+String(ae)+"]":"{ ["+String(ae)+"] "+ie.call(zr,", ")+" }"}if(typeof ae=="object"&&nt){if(Je&&typeof ae[Je]=="function")return ae[Je]();if(nt!=="symbol"&&typeof ae.inspect=="function")return ae.inspect()}if(he(ae)){var Ui=[];return d.call(ae,function(Un,Qr){Ui.push(vr(Qr,ae,!0)+" => "+vr(Un,ae))}),T("Map",x.call(ae),Ui,Jr)}if(we(ae)){var Ai=[];return L.call(ae,function(Un){Ai.push(vr(Un,ae))}),T("Set",g.call(ae),Ai,Jr)}if(G(ae))return Y("WeakMap");if(Ie(ae))return Y("WeakSet");if(K(ae))return Y("WeakRef");if(pt(ae))return Me(vr(Number(ae)));if(Ct(ae))return Me(vr(pe.call(ae)));if(kt(ae))return Me(Q.call(ae));if(mt(ae))return Me(vr(String(ae)));if(!rt(ae)&&!lt(ae)){var Xr=ne(ae,vr),xn=Pe?Pe(ae)===Object.prototype:ae instanceof Object||ae.constructor===Object,On=ae instanceof Object?"":"null prototype",Xn=!xn&&De&&Object(ae)===ae&&De in ae?X.call(Vt(ae),8,-1):On?"Object":"",bn=xn||typeof ae.constructor!="function"?"":ae.constructor.name?ae.constructor.name+" ":"",Tn=bn+(Xn||On?"["+ie.call(re.call([],Xn||[],On||[]),": ")+"] ":"");return Xr.length===0?Tn+"{}":Jr?Tn+"{"+N(Xr,Jr)+"}":Tn+"{ "+ie.call(Xr,", ")+" }"}return String(ae)};function ut(z,ae,Oe){var Ae=(Oe.quoteStyle||ae)==="double"?'"':"'";return Ae+z+Ae}function ht(z){return q.call(String(z),/"/g,"&quot;")}function wt(z){return Vt(z)==="[object Array]"&&(!De||!(typeof z=="object"&&De in z))}function rt(z){return Vt(z)==="[object Date]"&&(!De||!(typeof z=="object"&&De in z))}function lt(z){return Vt(z)==="[object RegExp]"&&(!De||!(typeof z=="object"&&De in z))}function yt(z){return Vt(z)==="[object Error]"&&(!De||!(typeof z=="object"&&De in z))}function mt(z){return Vt(z)==="[object String]"&&(!De||!(typeof z=="object"&&De in z))}function pt(z){return Vt(z)==="[object Number]"&&(!De||!(typeof z=="object"&&De in z))}function kt(z){return Vt(z)==="[object Boolean]"&&(!De||!(typeof z=="object"&&De in z))}function Ft(z){if(Fe)return z&&typeof z=="object"&&z instanceof Symbol;if(typeof z=="symbol")return!0;if(!z||typeof z!="object"||!se)return!1;try{return se.call(z),!0}catch(ae){}return!1}function Ct(z){if(!z||typeof z!="object"||!pe)return!1;try{return pe.call(z),!0}catch(ae){}return!1}var Ht=Object.prototype.hasOwnProperty||function(z){return z in this};function Lt(z,ae){return Ht.call(z,ae)}function Vt(z){return M.call(z)}function Tt(z){if(z.name)return z.name;var ae=V.call(C.call(z),/^function\s*([\w$]+)/);return ae?ae[1]:null}function Dt(z,ae){if(z.indexOf)return z.indexOf(ae);for(var Oe=0,Ae=z.length;Oe<Ae;Oe++)if(z[Oe]===ae)return Oe;return-1}function he(z){if(!x||!z||typeof z!="object")return!1;try{x.call(z);try{g.call(z)}catch(ae){return!0}return z instanceof Map}catch(ae){}return!1}function G(z){if(!B||!z||typeof z!="object")return!1;try{B.call(z,B);try{ee.call(z,ee)}catch(ae){return!0}return z instanceof WeakMap}catch(ae){}return!1}function K(z){if(!R||!z||typeof z!="object")return!1;try{return R.call(z),!0}catch(ae){}return!1}function we(z){if(!g||!z||typeof z!="object")return!1;try{g.call(z);try{x.call(z)}catch(ae){return!0}return z instanceof Set}catch(ae){}return!1}function Ie(z){if(!ee||!z||typeof z!="object")return!1;try{ee.call(z,ee);try{B.call(z,B)}catch(ae){return!0}return z instanceof WeakSet}catch(ae){}return!1}function $e(z){return!z||typeof z!="object"?!1:typeof HTMLElement!="undefined"&&z instanceof HTMLElement?!0:typeof z.nodeName=="string"&&typeof z.getAttribute=="function"}function Ke(z,ae){if(z.length>ae.maxStringLength){var Oe=z.length-ae.maxStringLength,Ae="... "+Oe+" more character"+(Oe>1?"s":"");return Ke(X.call(z,0,ae.maxStringLength),ae)+Ae}var Ve=q.call(q.call(z,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,P);return ut(Ve,"single",ae)}function P(z){var ae=z.charCodeAt(0),Oe={8:"b",9:"t",10:"n",12:"f",13:"r"}[ae];return Oe?"\\"+Oe:"\\x"+(ae<16?"0":"")+Z.call(ae.toString(16))}function Me(z){return"Object("+z+")"}function Y(z){return z+" { ? }"}function T(z,ae,Oe,Ae){var Ve=Ae?N(Oe,Ae):ie.call(Oe,", ");return z+" ("+ae+") {"+Ve+"}"}function O(z){for(var ae=0;ae<z.length;ae++)if(Dt(z[ae],`
511
- `)>=0)return!1;return!0}function le(z,ae){var Oe;if(z.indent===" ")Oe=" ";else if(typeof z.indent=="number"&&z.indent>0)Oe=ie.call(Array(z.indent+1)," ");else return null;return{base:Oe,prev:ie.call(Array(ae+1),Oe)}}function N(z,ae){if(z.length===0)return"";var Oe=`
512
- `+ae.prev+ae.base;return Oe+ie.call(z,","+Oe)+`
513
- `+ae.prev}function ne(z,ae){var Oe=wt(z),Ae=[];if(Oe){Ae.length=z.length;for(var Ve=0;Ve<z.length;Ve++)Ae[Ve]=Lt(z,Ve)?ae(z[Ve],z):""}var Le=typeof fe=="function"?fe(z):[],nt;if(Fe){nt={};for(var vt=0;vt<Le.length;vt++)nt["$"+Le[vt]]=Le[vt]}for(var bt in z)!Lt(z,bt)||Oe&&String(Number(bt))===bt&&bt<z.length||Fe&&nt["$"+bt]instanceof Symbol||(de.call(/[^\w$]/,bt)?Ae.push(ae(bt,z)+": "+ae(z[bt],z)):Ae.push(bt+": "+ae(z[bt],z)));if(typeof fe=="function")for(var Gt=0;Gt<Le.length;Gt++)Re.call(z,Le[Gt])&&Ae.push("["+ae(Le[Gt])+"]: "+ae(z[Le[Gt]],z));return Ae}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,ee,W,R,Q=0,M=0;Q<=L.length;Q++){var C=Q<L.length?L.charCodeAt(Q):NaN;switch(j){case 0:switch(C){case 37:ee=0,W=0,j=1;break;case 43:D&&(C=32);default:B[M++]=C;break}break;case 1:if(R=C,C>=48&&C<=57)ee=C-48;else if(C>=65&&C<=70)ee=C-65+10;else if(C>=97&&C<=102)ee=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)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[M++]=37,B[M++]=R,B[M++]=C;break}B[M++]=16*ee+W;break}}return B.slice(0,M-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).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 D="",B=0,j=0;j<L.length;++j){var ee=L.charCodeAt(j);if(!(ee===33||ee===45||ee===46||ee===95||ee===126||ee>=39&&ee<=42||ee>=48&&ee<=57||ee>=65&&ee<=90||ee>=97&&ee<=122)){if(j-B>0&&(D+=L.slice(B,j)),ee<128){B=j+1,D+=d[ee];continue}if(ee<2048){B=j+1,D+=d[192|ee>>6]+d[128|ee&63];continue}if(ee<55296||ee>=57344){B=j+1,D+=d[224|ee>>12]+d[128|ee>>6&63]+d[128|ee&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,ee=65536+((ee&1023)<<10|W),D+=d[240|ee>>18]+d[128|ee>>12&63]+d[128|ee>>6&63]+d[128|ee&63]}}return B===0?L:B<L.length?D+L.slice(B):D};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,D,B,j){D=D||"&",B=B||"=";var ee=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(ee=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),R=W.length,Q=R-1,M="",C=0;C<R;++C){var V=W[C],X=L[V],q=ee(A(V))+B;if(Array.isArray(X)){for(var Z=X.length,J=Z-1,de=0;de<Z;++de)M+=q+ee(A(X[de])),de<J&&(M+=D);Z&&C<Q&&(M+=D)}else M+=q+ee(A(X)),C<Q&&(M+=D)}return M}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var ee={};if(typeof L!="string"||L.length===0)return ee;typeof D!="string"&&(D+="");var W=B.length,R=D.length,Q=1e3;j&&typeof j.maxKeys=="number"&&(Q=j.maxKeys);var M=1/0;Q>0&&(M=Q);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,X=[],q=0,Z=0,J=0,de="",re="",ie=V,ye=V,xe=0,pe=0;pe<L.length;++pe){var fe=L.charCodeAt(pe);if(fe===D.charCodeAt(Z)){if(++Z===R){var se=pe-Z+1;if(J<W?q<se&&(de+=L.slice(q,se)):q<se&&(re+=L.slice(q,se)),ie&&(de=g(de,C)),ye&&(re=g(re,C)),X.indexOf(de)===-1)ee[de]=re,X[X.length]=de;else{var Fe=ee[de];Fe instanceof Array?Fe[Fe.length]=re:ee[de]=[Fe,re]}if(--M==0)break;ie=ye=V,xe=0,de=re="",q=pe+1,Z=J=0}continue}else Z=0,ye||(fe===37?xe=1:xe>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++xe==3&&(ye=!0):xe=0);if(J<W)if(fe===B.charCodeAt(J)){if(++J===W){var se=pe-J+1;q<se&&(de+=L.slice(q,se)),xe=0,q=pe+1}continue}else J=0,ie||(fe===37?xe=1:xe>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++xe==3&&(ie=!0):xe=0);fe===43&&(J<W?(pe-q>0&&(de+=L.slice(q,pe)),de+="%20",ie=!0):(pe-q>0&&(re+=L.slice(q,pe)),re+="%20",ye=!0),q=pe+1)}if(M>0&&(q<L.length||J>0))if(q<L.length&&(J<W?de+=L.slice(q):Z<R&&(re+=L.slice(q))),ie&&(de=g(de,C)),ye&&(re=g(re,C)),X.indexOf(de)===-1)ee[de]=re,X[X.length]=de;else{var Fe=ee[de];Fe instanceof Array?Fe[Fe.length]=re:ee[de]=[Fe,re]}return ee};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(ee){for(var W=1;W<arguments.length;W++){var R=arguments[W];for(var Q in R)Object.prototype.hasOwnProperty.call(R,Q)&&(ee[Q]=R[Q])}return ee},v.apply(this,arguments)}function x(ee){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(ee)}var d=function(){var ee=function(R,Q){return ee=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])},ee(R,Q)};return function(W,R){ee(W,R);function Q(){this.constructor=W}W.prototype=R===null?Object.create(R):(Q.prototype=R.prototype,new Q)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),A=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;A||(g=a(4631));var L=function(){function ee(){}return ee.equals=function(W,R){var Q=this,M=Object.keys,C=x(W),V=x(R);return W&&R&&C==="object"&&C===V?M(W).length===M(R).length&&M(W).every(function(X){return Q.equals(W[X],R[X])}):W===R},ee}(),D=function(){function ee(W,R){this.editor=W,this.props=R}return ee.prototype.delegateCursor=function(W,R,Q){var M=this.editor.getDoc();Q&&this.editor.focus(),R?M.setCursor(W):M.setCursor(W,null,{scroll:!1})},ee.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},ee.prototype.delegateSelection=function(W,R){var Q=this.editor.getDoc();Q.setSelections(W),R&&this.editor.focus()},ee.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},ee.prototype.applyNext=function(W,R,Q){W&&W.selection&&W.selection.ranges&&R&&R.selection&&R.selection.ranges&&!L.equals(W.selection.ranges,R.selection.ranges)&&this.delegateSelection(R.selection.ranges,R.selection.focus||!1),W&&W.cursor&&R&&R.cursor&&!L.equals(W.cursor,R.cursor)&&this.delegateCursor(Q.cursor||R.cursor,R.autoScroll||!1,R.autoCursor||!1),W&&W.scroll&&R&&R.scroll&&!L.equals(W.scroll,R.scroll)&&this.delegateScroll(R.scroll)},ee.prototype.applyUserDefined=function(W,R){R&&R.cursor&&this.delegateCursor(R.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ee.prototype.wire=function(W){var R=this;Object.keys(W||{}).filter(function(Q){return/^on/.test(Q)}).forEach(function(Q){switch(Q){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,X){R.props.onGutterClick(R.editor,C,V,X)});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}})},ee}(),B=function(ee){d(W,ee);function W(R){var Q=ee.call(this,R)||this;return A||(Q.applied=!1,Q.appliedNext=!1,Q.appliedUserDefined=!1,Q.deferred=null,Q.emulating=!1,Q.hydrated=!1,Q.initCb=function(){Q.props.editorDidConfigure&&Q.props.editorDidConfigure(Q.editor)},Q.mounted=!1),Q}return W.prototype.hydrate=function(R){var Q=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(X){return Q.editor.getOption(X)!==C[X]});V&&Object.keys(C).forEach(function(X){M.hasOwnProperty(X)&&Q.editor.getOption(X)!==C[X]&&(Q.editor.setOption(X,C[X]),Q.mirror.setOption(X,C[X]))}),this.hydrated||(this.deferred?this.resolveChange(R.value):this.initChange(R.value||"")),this.hydrated=!0},W.prototype.initChange=function(R){this.emulating=!0;var Q=this.editor.getDoc(),M=Q.lastLine(),C=Q.getLine(Q.lastLine()).length;Q.replaceRange(R||"",{line:0,ch:0},{line:M,ch:C}),this.mirror.setValue(R),Q.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(R){this.emulating=!0;var Q=this.editor.getDoc();if(this.deferred.origin==="undo"?Q.undo():this.deferred.origin==="redo"?Q.redo():Q.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),R&&R!==Q.getValue()){var M=Q.getCursor();Q.setValue(R),Q.setCursor(M)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(R){var Q=this.editor.getDoc();return R.origin==="undo"?(Q.setHistory(this.mirror.getHistory()),this.mirror.undo()):R.origin==="redo"?(Q.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(R.text,R.from,R.to,R.origin),this.mirror.getValue()},W.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 D(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(Q,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(Q,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))},W.prototype.componentDidUpdate=function(R){if(!A){var Q={cursor:null};this.props.value!==R.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Q.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(R,this.props,Q),this.appliedNext=!0),this.shared.applyUserDefined(R,Q),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(R,Q){return!A},W.prototype.render=function(){var R=this;if(A)return null;var Q=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Q,ref:function(C){return R.ref=C}})},W}(b.Component);I.fk=B;var j=function(ee){d(W,ee);function W(R){var Q=ee.call(this,R)||this;return A||(Q.applied=!1,Q.appliedUserDefined=!1,Q.continueChange=!1,Q.detached=!1,Q.hydrated=!1,Q.initCb=function(){Q.props.editorDidConfigure&&Q.props.editorDidConfigure(Q.editor)},Q.mounted=!1,Q.onBeforeChangeCb=function(){Q.continueChange=!0}),Q}return W.prototype.hydrate=function(R){var Q=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return Q.editor.getOption(J)!==C[J]});if(V&&Object.keys(C).forEach(function(J){M.hasOwnProperty(J)&&Q.editor.getOption(J)!==C[J]&&Q.editor.setOption(J,C[J])}),!this.hydrated){var X=this.editor.getDoc(),q=X.lastLine(),Z=X.getLine(X.lastLine()).length;X.replaceRange(R.value||"",{line:0,ch:0},{line:q,ch:Z})}this.hydrated=!0},W.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 D(this.editor,this.props),this.editor.on("beforeChange",function(Q,M){R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,M,R.editor.getValue(),R.onBeforeChangeCb)}),this.editor.on("change",function(Q,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))},W.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 Q={cursor:null};this.props.value!==R.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!R.autoCursor&&R.autoCursor!==void 0&&(Q.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(R),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(R,Q),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){A||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(R,Q){var M=!0;return A&&(M=!1),this.detached&&R.detach&&(M=!1),M},W.prototype.render=function(){var R=this;if(A)return null;var Q=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Q,ref:function(C){return R.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(a){"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(De,Re,Pe){return Object.defineProperty(De,Re,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),De[Re]}try{L({},"")}catch(De){L=function(Re,Pe,et){return Re[Pe]=et}}function D(De,Re,Pe,et){var Qe=Re&&Re.prototype instanceof M?Re:M,Je=Object.create(Qe.prototype),ut=new fe(et||[]);return Je._invoke=ie(De,Pe,ut),Je}a.wrap=D;function B(De,Re,Pe){try{return{type:"normal",arg:De.call(Re,Pe)}}catch(et){return{type:"throw",arg:et}}}var j="suspendedStart",ee="suspendedYield",W="executing",R="completed",Q={};function M(){}function C(){}function V(){}var X={};X[b]=function(){return this};var q=Object.getPrototypeOf,Z=q&&q(q(se([])));Z&&Z!==c&&v.call(Z,b)&&(X=Z);var J=V.prototype=M.prototype=Object.create(X);C.prototype=J.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function de(De){["next","throw","return"].forEach(function(Re){L(De,Re,function(Pe){return this._invoke(Re,Pe)})})}a.isGeneratorFunction=function(De){var Re=typeof De=="function"&&De.constructor;return Re?Re===C||(Re.displayName||Re.name)==="GeneratorFunction":!1},a.mark=function(De){return Object.setPrototypeOf?Object.setPrototypeOf(De,V):(De.__proto__=V,L(De,g,"GeneratorFunction")),De.prototype=Object.create(J),De},a.awrap=function(De){return{__await:De}};function re(De,Re){function Pe(Je,ut,ht,wt){var rt=B(De[Je],De,ut);if(rt.type==="throw")wt(rt.arg);else{var lt=rt.arg,yt=lt.value;return yt&&typeof yt=="object"&&v.call(yt,"__await")?Re.resolve(yt.__await).then(function(mt){Pe("next",mt,ht,wt)},function(mt){Pe("throw",mt,ht,wt)}):Re.resolve(yt).then(function(mt){lt.value=mt,ht(lt)},function(mt){return Pe("throw",mt,ht,wt)})}}var et;function Qe(Je,ut){function ht(){return new Re(function(wt,rt){Pe(Je,ut,wt,rt)})}return et=et?et.then(ht,ht):ht()}this._invoke=Qe}de(re.prototype),re.prototype[A]=function(){return this},a.AsyncIterator=re,a.async=function(De,Re,Pe,et,Qe){Qe===void 0&&(Qe=Promise);var Je=new re(D(De,Re,Pe,et),Qe);return a.isGeneratorFunction(Re)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ie(De,Re,Pe){var et=j;return function(Je,ut){if(et===W)throw new Error("Generator is already running");if(et===R){if(Je==="throw")throw ut;return Fe()}for(Pe.method=Je,Pe.arg=ut;;){var ht=Pe.delegate;if(ht){var wt=ye(ht,Pe);if(wt){if(wt===Q)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(et===j)throw et=R,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);et=W;var rt=B(De,Re,Pe);if(rt.type==="normal"){if(et=Pe.done?R:ee,rt.arg===Q)continue;return{value:rt.arg,done:Pe.done}}else rt.type==="throw"&&(et=R,Pe.method="throw",Pe.arg=rt.arg)}}}function ye(De,Re){var Pe=De.iterator[Re.method];if(Pe===x){if(Re.delegate=null,Re.method==="throw"){if(De.iterator.return&&(Re.method="return",Re.arg=x,ye(De,Re),Re.method==="throw"))return Q;Re.method="throw",Re.arg=new TypeError("The iterator does not provide a 'throw' method")}return Q}var et=B(Pe,De.iterator,Re.arg);if(et.type==="throw")return Re.method="throw",Re.arg=et.arg,Re.delegate=null,Q;var Qe=et.arg;if(!Qe)return Re.method="throw",Re.arg=new TypeError("iterator result is not an object"),Re.delegate=null,Q;if(Qe.done)Re[De.resultName]=Qe.value,Re.next=De.nextLoc,Re.method!=="return"&&(Re.method="next",Re.arg=x);else return Qe;return Re.delegate=null,Q}de(J),L(J,g,"Generator"),J[b]=function(){return this},J.toString=function(){return"[object Generator]"};function xe(De){var Re={tryLoc:De[0]};1 in De&&(Re.catchLoc=De[1]),2 in De&&(Re.finallyLoc=De[2],Re.afterLoc=De[3]),this.tryEntries.push(Re)}function pe(De){var Re=De.completion||{};Re.type="normal",delete Re.arg,De.completion=Re}function fe(De){this.tryEntries=[{tryLoc:"root"}],De.forEach(xe,this),this.reset(!0)}a.keys=function(De){var Re=[];for(var Pe in De)Re.push(Pe);return Re.reverse(),function et(){for(;Re.length;){var Qe=Re.pop();if(Qe in De)return et.value=Qe,et.done=!1,et}return et.done=!0,et}};function se(De){if(De){var Re=De[b];if(Re)return Re.call(De);if(typeof De.next=="function")return De;if(!isNaN(De.length)){var Pe=-1,et=function Qe(){for(;++Pe<De.length;)if(v.call(De,Pe))return Qe.value=De[Pe],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return et.next=et}}return{next:Fe}}a.values=se;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(De){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(pe),!De)for(var Re in this)Re.charAt(0)==="t"&&v.call(this,Re)&&!isNaN(+Re.slice(1))&&(this[Re]=x)},stop:function(){this.done=!0;var De=this.tryEntries[0],Re=De.completion;if(Re.type==="throw")throw Re.arg;return this.rval},dispatchException:function(De){if(this.done)throw De;var Re=this;function Pe(wt,rt){return Je.type="throw",Je.arg=De,Re.next=wt,rt&&(Re.method="next",Re.arg=x),!!rt}for(var et=this.tryEntries.length-1;et>=0;--et){var Qe=this.tryEntries[et],Je=Qe.completion;if(Qe.tryLoc==="root")return Pe("end");if(Qe.tryLoc<=this.prev){var ut=v.call(Qe,"catchLoc"),ht=v.call(Qe,"finallyLoc");if(ut&&ht){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0)}else if(ht){if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(De,Re){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var et=this.tryEntries[Pe];if(et.tryLoc<=this.prev&&v.call(et,"finallyLoc")&&this.prev<et.finallyLoc){var Qe=et;break}}Qe&&(De==="break"||De==="continue")&&Qe.tryLoc<=Re&&Re<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=De,Je.arg=Re,Qe?(this.method="next",this.next=Qe.finallyLoc,Q):this.complete(Je)},complete:function(De,Re){if(De.type==="throw")throw De.arg;return De.type==="break"||De.type==="continue"?this.next=De.arg:De.type==="return"?(this.rval=this.arg=De.arg,this.method="return",this.next="end"):De.type==="normal"&&Re&&(this.next=Re),Q},finish:function(De){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.finallyLoc===De)return this.complete(Pe.completion,Pe.afterLoc),pe(Pe),Q}},catch:function(De){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.tryLoc===De){var et=Pe.completion;if(et.type==="throw"){var Qe=et.arg;pe(Pe)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(De,Re,Pe){return this.delegate={iterator:se(De),resultName:Re,nextLoc:Pe},this.method==="next"&&(this.arg=x),Q}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),A=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),ee=v("Map.prototype.has",!0),W=function(C,V){for(var X=C,q;(q=X.next)!==null;X=q)if(q.key===V)return X.next=q.next,q.next=C.next,C.next=q,q},R=function(C,V){var X=W(C,V);return X&&X.value},Q=function(C,V,X){var q=W(C,V);q?q.value=X:C.next={key:V,next:C.next,value:X}},M=function(C,V){return!!W(C,V)};h.exports=function(){var V,X,q,Z={assert:function(J){if(!Z.has(J))throw new d("Side channel does not contain "+x(J))},get:function(J){if(b&&J&&(typeof J=="object"||typeof J=="function")){if(V)return g(V,J)}else if(A){if(X)return B(X,J)}else if(q)return R(q,J)},has:function(J){if(b&&J&&(typeof J=="object"||typeof J=="function")){if(V)return D(V,J)}else if(A){if(X)return ee(X,J)}else if(q)return M(q,J);return!1},set:function(J,de){b&&J&&(typeof J=="object"||typeof J=="function")?(V||(V=new b),L(V,J,de)):A?(X||(X=new A),j(X,J,de)):(q||(q={key:{},next:null}),Q(q,J,de))}};return Z}},13837:(h,I,a)=>{var c=a(93379),v=a(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,a)=>{var c=a(93379),v=a(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,a)=>{var c=a(93379),v=a(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,a)=>{var c=a(93379),v=a(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,a)=>{"use strict";/*!
504
+ `,le?1+z:z),le=!0,N=!0,z=0,Y=P.position;!q(Ae)&&Ae!==0;)Ae=P.input.charCodeAt(++P.position);Je(P,Y,P.position,!1)}return!0}function Wt(P,Me){var Y,T=P.tag,O=P.anchor,le=[],N,re=!1,z;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),z=P.input.charCodeAt(P.position);z!==0&&!(z!==45||(N=P.input.charCodeAt(P.position+1),!J(N)));){if(re=!0,P.position++,rt(P,!0,-1)&&P.lineIndent<=Me){le.push(null),z=P.input.charCodeAt(P.position);continue}if(Y=P.line,he(P,Me,D,!1,!0),le.push(P.result),rt(P,!0,-1),z=P.input.charCodeAt(P.position),(P.line===Y||P.lineIndent>Me)&&z!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Me)break}return re?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function Dt(P,Me,Y){var T,O,le,N,re=P.tag,z=P.anchor,oe={},Oe={},Ae=null,Ve=null,Le=null,nt=!1,ht=!1,bt;for(P.anchor!==null&&(P.anchorMap[P.anchor]=oe),bt=P.input.charCodeAt(P.position);bt!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(bt===63||bt===58)&&J(T))bt===63?(nt&&(pt(P,oe,Oe,Ae,Ve,null),Ae=Ve=Le=null),ht=!0,nt=!0,O=!0):nt?(nt=!1,O=!0):Pe(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,bt=T;else if(he(P,Y,L,!1,!0))if(P.line===le){for(bt=P.input.charCodeAt(P.position);Z(bt);)bt=P.input.charCodeAt(++P.position);if(bt===58)bt=P.input.charCodeAt(++P.position),J(bt)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),nt&&(pt(P,oe,Oe,Ae,Ve,null),Ae=Ve=Le=null),ht=!0,nt=!1,O=!1,Ae=P.tag,Ve=P.result;else if(ht)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=re,P.anchor=z,!0}else if(ht)Pe(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=re,P.anchor=z,!0;else break;if((P.line===le||P.lineIndent>Me)&&(he(P,Me,B,!0,O)&&(nt?Ve=P.result:Le=P.result),nt||(pt(P,oe,Oe,Ae,Ve,Le,le,N),Ae=Ve=Le=null),rt(P,!0,-1),bt=P.input.charCodeAt(P.position)),P.lineIndent>Me&&bt!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Me)break}return nt&&pt(P,oe,Oe,Ae,Ve,null),ht&&(P.tag=re,P.anchor=z,P.kind="mapping",P.result=oe),ht}function Vt(P){var Me,Y=!1,T=!1,O,le,N;if(N=P.input.charCodeAt(P.position),N!==33)return!1;if(P.tag!==null&&Pe(P,"duplication of a tag property"),N=P.input.charCodeAt(++P.position),N===60?(Y=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Me=P.position,Y){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Me,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!J(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Me-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Me=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Me,P.position),M.test(le)&&Pe(P,"tag suffix cannot contain flow indicator characters")}return le&&!V.test(le)&&Pe(P,"tag name cannot contain such characters: "+le),Y?P.tag=le:S.call(P.tagMap,O)?P.tag=P.tagMap[O]+le:O==="!"?P.tag="!"+le:O==="!!"?P.tag="tag:yaml.org,2002:"+le:Pe(P,'undeclared tag handle "'+O+'"'),!0}function Tt(P){var Me,Y;if(Y=P.input.charCodeAt(P.position),Y!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),Y=P.input.charCodeAt(++P.position),Me=P.position;Y!==0&&!J(Y)&&!de(Y);)Y=P.input.charCodeAt(++P.position);return P.position===Me&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Me,P.position),!0}function Nt(P){var Me,Y,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Me=P.position;T!==0&&!J(T)&&!de(T);)T=P.input.charCodeAt(++P.position);return P.position===Me&&Pe(P,"name of an alias node must contain at least one character"),Y=P.input.slice(Me,P.position),S.call(P.anchorMap,Y)||Pe(P,'unidentified alias "'+Y+'"'),P.result=P.anchorMap[Y],rt(P,!0,-1),!0}function he(P,Me,Y,T,O){var le,N,re,z=1,oe=!1,Oe=!1,Ae,Ve,Le,nt,ht;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=re=B===Y||D===Y,T&&rt(P,!0,-1)&&(oe=!0,P.lineIndent>Me?z=1:P.lineIndent===Me?z=0:P.lineIndent<Me&&(z=-1)),z===1)for(;Vt(P)||Tt(P);)rt(P,!0,-1)?(oe=!0,re=le,P.lineIndent>Me?z=1:P.lineIndent===Me?z=0:P.lineIndent<Me&&(z=-1)):re=!1;if(re&&(re=oe||O),(z===1||B===Y)&&(g===Y||L===Y?nt=Me:nt=Me+1,ht=P.position-P.lineStart,z===1?re&&(Wt(P,ht)||Dt(P,ht,nt))||kt(P,nt)?Oe=!0:(N&&Ct(P,nt)||dt(P,nt)||Rt(P,nt)?Oe=!0:Nt(P)?(Oe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):mt(P,nt,g===Y)&&(Oe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):z===0&&(Oe=re&&Wt(P,ht))),P.tag!==null&&P.tag!=="!")if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&Pe(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),Ae=0,Ve=P.implicitTypes.length;Ae<Ve;Ae+=1)if(Le=P.implicitTypes[Ae],Le.resolve(P.result)){P.result=Le.construct(P.result),P.tag=Le.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(Le=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&Le.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Le.kind+'", not "'+P.kind+'"'),Le.resolve(P.result)?(P.result=Le.construct(P.result),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):Pe(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")):Pe(P,"unknown tag !<"+P.tag+">");return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||Oe}function G(P){var Me=P.position,Y,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(rt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),Y=P.position;N!==0&&!J(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(Y,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Z(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!q(N));break}if(q(N))break;for(Y=P.position;N!==0&&!J(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(Y,P.position))}N!==0&&wt(P),S.call(Qe,T)?Qe[T](P,T,O):tt(P,'unknown document directive "'+T+'"')}if(rt(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,rt(P,!0,-1)):le&&Pe(P,"directives end mark is expected"),he(P,P.lineIndent-1,B,!1,!0),rt(P,!0,-1),P.checkLineBreaks&&Q.test(P.input.slice(Me,P.position))&&tt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&lt(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,rt(P,!0,-1));return}if(P.position<P.length-1)Pe(P,"end of the stream or a document separator is expected");else return}function K(P,Me){P=String(P),Me=Me||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
505
+ `),P.charCodeAt(0)===65279&&(P=P.slice(1)));var Y=new De(P,Me),T=P.indexOf("\0");for(T!==-1&&(Y.position=T,Pe(Y,"null byte is not allowed in input")),Y.input+="\0";Y.input.charCodeAt(Y.position)===32;)Y.lineIndent+=1,Y.position+=1;for(;Y.position<Y.length-1;)G(Y);return Y.documents}function we(P,Me,Y){Me!==null&&typeof Me=="object"&&typeof Y=="undefined"&&(Y=Me,Me=null);var T=K(P,Y);if(typeof Me!="function")return T;for(var O=0,le=T.length;O<le;O+=1)Me(T[O])}function Ie(P,Me){var Y=K(P,Me);if(Y.length!==0){if(Y.length===1)return Y[0];throw new v("expected a single document in the stream, but found more")}}function Ge(P,Me,Y){return typeof Me=="object"&&Me!==null&&typeof Y=="undefined"&&(Y=Me,Me=null),we(P,Me,c.extend({schema:d},Y))}function Ke(P,Me){return Ie(P,c.extend({schema:d},Me))}h.exports.loadAll=we,h.exports.load=Ie,h.exports.safeLoadAll=Ge,h.exports.safeLoad=Ke},77334:(h,I,a)=>{"use strict";var c=a(25596);function v(x,d,b,S,g){this.name=x,this.buffer=d,this.position=b,this.line=S,this.column=g}v.prototype.getSnippet=function(d,b){var S,g,L,D,B;if(!this.buffer)return null;for(d=d||4,b=b||75,S="",g=this.position;g>0&&`\0\r
506
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){S=" ... ",g+=5;break}for(L="",D=this.position;D<this.buffer.length&&`\0\r
507
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(D))===-1;)if(D+=1,D-this.position>b/2-1){L=" ... ",D-=5;break}return B=this.buffer.slice(g,D),c.repeat(" ",d)+S+B+L+`
508
+ `+c.repeat(" ",d+this.position-g+S.length)+"^"},v.prototype.toString=function(d){var b,S="";return this.name&&(S+='in "'+this.name+'" '),S+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(S+=`:
509
+ `+b)),S},h.exports=v},82409:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(53899);function d(g,L,D){var B=[];return g.include.forEach(function(j){D=d(j,L,D)}),g[L].forEach(function(j){D.forEach(function(ee,W){ee.tag===j.tag&&ee.kind===j.kind&&B.push(W)}),D.push(j)}),D.filter(function(j,ee){return B.indexOf(ee)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,D=arguments.length;L<D;L+=1)arguments[L].forEach(B);return g}function S(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)}S.DEFAULT=null,S.create=function(){var L,D;switch(arguments.length){case 1:L=S.DEFAULT,D=arguments[0];break;case 2:L=arguments[0],D=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),D=c.toArray(D),!L.every(function(B){return B instanceof S}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!D.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 S({include:L,explicit:D})},h.exports=S},17318:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(65796)]})},19321:(h,I,a)=>{"use strict";var c=a(82409);h.exports=c.DEFAULT=new c({include:[a(5972)],explicit:[a(70575),a(97287),a(89811)]})},5972:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(17318)],implicit:[a(56145),a(243)],explicit:[a(18964),a(3878),a(68244),a(67300)]})},75322:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({explicit:[a(79483),a(43745),a(86553)]})},65796:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(75322)],implicit:[a(3022),a(2648),a(95979),a(53456)]})},53899:(h,I,a)=>{"use strict";var c=a(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(S){var g={};return S!==null&&Object.keys(S).forEach(function(L){S[L].forEach(function(D){g[String(D)]=L})}),g}function b(S,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 "'+S+'" YAML type.')}),this.tag=S,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 "'+S+'" YAML type.')}h.exports=b},18964:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(48764).Buffer}catch(D){}var x=a(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
510
+ \r`;function b(D){if(D===null)return!1;var B,j,ee=0,W=D.length,R=d;for(j=0;j<W;j++)if(B=R.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;ee+=6}return ee%8==0}function S(D){var B,j,ee=D.replace(/[\r\n=]/g,""),W=ee.length,R=d,Q=0,M=[];for(B=0;B<W;B++)B%4==0&&B&&(M.push(Q>>16&255),M.push(Q>>8&255),M.push(Q&255)),Q=Q<<6|R.indexOf(ee.charAt(B));return j=W%4*6,j===0?(M.push(Q>>16&255),M.push(Q>>8&255),M.push(Q&255)):j===18?(M.push(Q>>10&255),M.push(Q>>2&255)):j===12&&M.push(Q>>4&255),c?c.from?c.from(M):new c(M):M}function g(D){var B="",j=0,ee,W,R=D.length,Q=d;for(ee=0;ee<R;ee++)ee%3==0&&ee&&(B+=Q[j>>18&63],B+=Q[j>>12&63],B+=Q[j>>6&63],B+=Q[j&63]),j=(j<<8)+D[ee];return W=R%3,W===0?(B+=Q[j>>18&63],B+=Q[j>>12&63],B+=Q[j>>6&63],B+=Q[j&63]):W===2?(B+=Q[j>>10&63],B+=Q[j>>4&63],B+=Q[j<<2&63],B+=Q[64]):W===1&&(B+=Q[j>>2&63],B+=Q[j<<4&63],B+=Q[64],B+=Q[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===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,a)=>{"use strict";var c=a(25596),v=a(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(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,ee,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".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){W.unshift(parseFloat(R,10))}),B=0,ee=1,W.forEach(function(R){B+=R*ee,ee*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,ee=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;ee=!0}return ee&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;ee=!0}return ee&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;ee=!0}return ee&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;ee=!0}return!ee||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,ee,W,R=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),ee=B[0],(ee==="-"||ee==="+")&&(ee==="-"&&(j=-1),B=B.slice(1),ee=B[0]),B==="0"?0:ee==="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(Q){R.unshift(parseInt(Q,10))}),B=0,W=1,R.forEach(function(Q){B+=Q*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{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 D="("+L+")",B=c.parse(D,{range:!0}),j=[],ee;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(W){j.push(W.name)}),ee=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(ee[0]+1,ee[1]-1)):new Function(j,"return "+D.slice(ee[0],ee[1]))}function S(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:S})},97287:(h,I,a)=>{"use strict";var c=a(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[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,a)=>{"use strict";var c=a(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===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,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,D,B,j,ee,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],ee=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!ee)ee=!0;else return!1;if(!ee)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==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,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(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,D,B,j,ee,W,R,Q=0,M=null,C,V,X;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(ee=+L[4],W=+L[5],R=+L[6],L[7]){for(Q=L[7].slice(0,3);Q.length<3;)Q+="0";Q=+Q}return L[9]&&(C=+L[10],V=+(L[11]||0),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),X=new Date(Date.UTC(D,B,j,ee,W,R,Q)),M&&X.setTime(X.getTime()-M),X}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),S=a(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var S=a[v];c(S,v,a)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),S=a(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var ee=x(B),W=!ee&&v(B),R=!ee&&!W&&d(B),Q=!ee&&!W&&!R&&S(B),M=ee||W||R||Q,C=M?c(B.length,String):[],V=C.length;for(var X in B)(j||L.call(B,X))&&!(M&&(X=="length"||R&&(X=="offset"||X=="parent")||Q&&(X=="buffer"||X=="byteLength"||X=="byteOffset")||b(X,V)))&&C.push(X);return C}h.exports=D},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(d.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,a)=>{var c=a(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,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(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(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),S=a(64626),g=a(278),L=a(18805),D=a(1911),B=a(58234),j=a(46904),ee=a(98882),W=a(43824),R=a(29148),Q=a(38517),M=a(1469),C=a(44144),V=a(56688),X=a(13218),q=a(72928),Z=a(3674),J=a(81704),de=1,te=2,ae=4,ye="[object Arguments]",xe="[object Array]",pe="[object Boolean]",fe="[object Date]",se="[object Error]",Fe="[object Function]",De="[object GeneratorFunction]",Re="[object Map]",Pe="[object Number]",tt="[object Object]",Qe="[object RegExp]",Je="[object Set]",ut="[object String]",pt="[object Symbol]",wt="[object WeakMap]",rt="[object ArrayBuffer]",lt="[object DataView]",yt="[object Float32Array]",mt="[object Float64Array]",dt="[object Int8Array]",Rt="[object Int16Array]",kt="[object Int32Array]",Ct="[object Uint8Array]",Wt="[object Uint8ClampedArray]",Dt="[object Uint16Array]",Vt="[object Uint32Array]",Tt={};Tt[ye]=Tt[xe]=Tt[rt]=Tt[lt]=Tt[pe]=Tt[fe]=Tt[yt]=Tt[mt]=Tt[dt]=Tt[Rt]=Tt[kt]=Tt[Re]=Tt[Pe]=Tt[tt]=Tt[Qe]=Tt[Je]=Tt[ut]=Tt[pt]=Tt[Ct]=Tt[Wt]=Tt[Dt]=Tt[Vt]=!0,Tt[se]=Tt[Fe]=Tt[wt]=!1;function Nt(he,G,K,we,Ie,Ge){var Ke,P=G&de,Me=G&te,Y=G&ae;if(K&&(Ke=Ie?K(he,we,Ie,Ge):K(he)),Ke!==void 0)return Ke;if(!X(he))return he;var T=M(he);if(T){if(Ke=W(he),!P)return g(he,Ke)}else{var O=ee(he),le=O==Fe||O==De;if(C(he))return S(he,P);if(O==tt||O==ye||le&&!Ie){if(Ke=Me||le?{}:Q(he),!P)return Me?D(he,b(Ke,he)):L(he,d(Ke,he))}else{if(!Tt[O])return Ie?he:{};Ke=R(he,O,P)}}Ge||(Ge=new c);var N=Ge.get(he);if(N)return N;Ge.set(he,Ke),q(he)?he.forEach(function(oe){Ke.add(Nt(oe,G,K,oe,he,Ge))}):V(he)&&he.forEach(function(oe,Oe){Ke.set(Oe,Nt(oe,G,K,Oe,he,Ge))});var re=Y?Me?j:B:Me?J:Z,z=T?void 0:re(he);return v(z||he,function(oe,Oe){z&&(Oe=oe,oe=he[Oe]),x(Ke,Oe,Nt(oe,G,K,Oe,he,Ge))}),Ke}h.exports=Nt},3118:(h,I,a)=>{var c=a(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,S,g,L){var D=-1,B=d.length;for(S||(S=v),L||(L=[]);++D<B;){var j=d[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,a)=>{var c=a(71811),v=a(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,a)=>{var c=a(62488),v=a(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),S=a(1469),g=a(44144),L=a(36719),D=1,B="[object Arguments]",j="[object Array]",ee="[object Object]",W=Object.prototype,R=W.hasOwnProperty;function Q(M,C,V,X,q,Z){var J=S(M),de=S(C),te=J?j:b(M),ae=de?j:b(C);te=te==B?ee:te,ae=ae==B?ee:ae;var ye=te==ee,xe=ae==ee,pe=te==ae;if(pe&&g(M)){if(!g(C))return!1;J=!0,ye=!1}if(pe&&!ye)return Z||(Z=new c),J||L(M)?v(M,C,V,X,q,Z):x(M,C,te,V,X,q,Z);if(!(V&D)){var fe=ye&&R.call(M,"__wrapped__"),se=xe&&R.call(C,"__wrapped__");if(fe||se){var Fe=fe?M.value():M,De=se?C.value():C;return Z||(Z=new c),q(Fe,De,V,X,Z)}}return pe?(Z||(Z=new c),d(M,C,V,X,q,Z)):!1}h.exports=Q},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(S,g,L,D){var B=L.length,j=B,ee=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(ee&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var R=W[0],Q=S[R],M=W[1];if(ee&&W[2]){if(Q===void 0&&!(R in S))return!1}else{var C=new c;if(D)var V=D(Q,M,R,S,g,C);if(!(V===void 0?v(M,Q,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ee(W){if(!x(W)||v(W))return!1;var R=c(W)?j:S;return R.test(d(W))}h.exports=ee},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",ee="[object Object]",W="[object RegExp]",R="[object Set]",Q="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",X="[object Float32Array]",q="[object Float64Array]",Z="[object Int8Array]",J="[object Int16Array]",de="[object Int32Array]",te="[object Uint8Array]",ae="[object Uint8ClampedArray]",ye="[object Uint16Array]",xe="[object Uint32Array]",pe={};pe[X]=pe[q]=pe[Z]=pe[J]=pe[de]=pe[te]=pe[ae]=pe[ye]=pe[xe]=!0,pe[d]=pe[b]=pe[C]=pe[S]=pe[V]=pe[g]=pe[L]=pe[D]=pe[B]=pe[j]=pe[ee]=pe[W]=pe[R]=pe[Q]=pe[M]=!1;function fe(se){return x(se)&&v(se.length)&&!!pe[c(se)]}h.exports=fe},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(39601);function S(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=S},280:(h,I,a)=>{var c=a(25726),v=a(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=S},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),S=a(42634),g=a(40327),L=1,D=2;function B(j,ee){return d(j)&&b(ee)?S(g(j),ee):function(W){var R=v(W,j);return R===void 0&&R===ee?x(W,j):c(ee,R,L|D)}}h.exports=B},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],ee=c(b,j);g(ee,j)&&v(B,x(j,b),ee)}return B}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function S(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,ee=L.length,W=ee-1,R=g;R!=null&&++j<ee;){var Q=b(L[j]),M=D;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return g;if(j!=W){var C=R[Q];M=B?B(C,Q,R):void 0,M===void 0&&(M=d(C)?C:x(L[j+1])?[]:{})}c(R,Q,M),R=R[Q]}return g}h.exports=S},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,a)=>{var c=a(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,a)=>{h=a.nmd(h);var c=a(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,a)=>{var c=a(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 a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(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,a)=>{var c=a(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(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],ee=g?g(S[j],d[j],j,S,d):void 0;ee===void 0&&(ee=d[j]),L?v(S,j,ee):c(S,j,ee)}return S}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(ee){return B(D[ee],ee,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function S(g,L,D,B,j,ee){var W=D&d,R=g.length,Q=L.length;if(R!=Q&&!(W&&Q>R))return!1;var M=ee.get(g),C=ee.get(L);if(M&&C)return M==L&&C==g;var V=-1,X=!0,q=D&b?new c:void 0;for(ee.set(g,L),ee.set(L,g);++V<R;){var Z=g[V],J=L[V];if(B)var de=W?B(J,Z,V,L,g,ee):B(Z,J,V,g,L,ee);if(de!==void 0){if(de)continue;X=!1;break}if(q){if(!v(L,function(te,ae){if(!x(q,ae)&&(Z===te||j(Z,te,D,B,ee)))return q.push(ae)})){X=!1;break}}else if(!(Z===J||j(Z,J,D,B,ee))){X=!1;break}}return ee.delete(g),ee.delete(L),X}h.exports=S},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),S=a(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",ee="[object Map]",W="[object Number]",R="[object RegExp]",Q="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",X="[object DataView]",q=c?c.prototype:void 0,Z=q?q.valueOf:void 0;function J(de,te,ae,ye,xe,pe,fe){switch(ae){case X:if(de.byteLength!=te.byteLength||de.byteOffset!=te.byteOffset)return!1;de=de.buffer,te=te.buffer;case V:return!(de.byteLength!=te.byteLength||!pe(new v(de),new v(te)));case D:case B:case W:return x(+de,+te);case j:return de.name==te.name&&de.message==te.message;case R:case M:return de==te+"";case ee:var se=b;case Q:var Fe=ye&g;if(se||(se=S),de.size!=te.size&&!Fe)return!1;var De=fe.get(de);if(De)return De==te;ye|=L,fe.set(de,te);var Re=d(se(de),se(te),ye,xe,pe,fe);return fe.delete(de),Re;case C:if(Z)return Z.call(de)==Z.call(te)}return!1}h.exports=J},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,D,B,j){var ee=L&v,W=c(S),R=W.length,Q=c(g),M=Q.length;if(R!=M&&!ee)return!1;for(var C=R;C--;){var V=W[C];if(!(ee?V in g:d.call(g,V)))return!1}var X=j.get(S),q=j.get(g);if(X&&q)return X==g&&q==S;var Z=!0;j.set(S,g),j.set(g,S);for(var J=ee;++C<R;){V=W[C];var de=S[V],te=g[V];if(D)var ae=ee?D(te,de,V,g,S,j):D(de,te,V,S,g,j);if(!(ae===void 0?de===te||B(de,te,L,D,j):ae)){Z=!1;break}J||(J=V=="constructor")}if(Z&&!J){var ye=S.constructor,xe=g.constructor;ye!=xe&&"constructor"in S&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof xe=="function"&&xe instanceof xe)&&(Z=!1)}return j.delete(S),j.delete(g),Z}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(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,a)=>{var c=a(89162),v=a(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,a)=>{var c=a(28458),v=a(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(ee){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=S},99551:(h,I,a)=>{var c=a(34963),v=a(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),S=a(44239),g=a(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",ee="[object WeakMap]",W="[object DataView]",R=g(c),Q=g(v),M=g(x),C=g(d),V=g(b),X=S;(c&&X(new c(new ArrayBuffer(1)))!=W||v&&X(new v)!=L||x&&X(x.resolve())!=B||d&&X(new d)!=j||b&&X(new b)!=ee)&&(X=function(q){var Z=S(q),J=Z==D?q.constructor:void 0,de=J?g(J):"";if(de)switch(de){case R:return W;case Q:return L;case M:return B;case C:return j;case V:return ee}return Z}),h.exports=X},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),S=a(40327);function g(L,D,B){D=c(D,L);for(var j=-1,ee=D.length,W=!1;++j<ee;){var R=S(D[j]);if(!(W=L!=null&&B(L,R)))break;L=L[R]}return W||++j!=ee?W:(ee=L==null?0:L.length,!!ee&&b(ee)&&d(R,ee)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,a)=>{var c=a(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",ee="[object String]",W="[object Symbol]",R="[object ArrayBuffer]",Q="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",X="[object Int16Array]",q="[object Int32Array]",Z="[object Uint8Array]",J="[object Uint8ClampedArray]",de="[object Uint16Array]",te="[object Uint32Array]";function ae(ye,xe,pe){var fe=ye.constructor;switch(xe){case R:return c(ye);case S:case g:return new fe(+ye);case Q:return v(ye,pe);case M:case C:case V:case X:case q:case Z:case J:case de:case te:return b(ye,pe);case L:return new fe;case D:case ee:return new fe(ye);case B:return x(ye);case j:return new fe;case W:return d(ye)}}h.exports=ae},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(S,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(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 a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(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,a)=>{var c=a(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,a)=>{var c=a(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,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,a)=>{var c=a(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 a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=a-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,a)=>{var c=a(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,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),S=a(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var ee in j)L.call(j,ee)&&c(B,ee,j[ee])});h.exports=D},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),S=a(44144),g=a(25726),L=a(36719),D="[object Map]",B="[object Set]",j=Object.prototype,ee=j.hasOwnProperty;function W(R){if(R==null)return!0;if(b(R)&&(d(R)||typeof R=="string"||typeof R.splice=="function"||S(R)||L(R)||x(R)))return!R.length;var Q=v(R);if(Q==D||Q==B)return!R.size;if(g(R))return!c(R).length;for(var M in R)if(ee.call(R,M))return!1;return!0}h.exports=W},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==S}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var ee=v(j);if(ee===null)return!0;var W=L.call(ee,"constructor")&&ee.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.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,a)=>{var c=a(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 S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,a)=>{var c=a(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,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(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 ee=S.test(B);return ee||g.test(B)?L(B.slice(2),ee?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{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,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,ee=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,R=W?WeakRef.prototype.deref:null,Q=Boolean.prototype.valueOf,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,X=String.prototype.slice,q=String.prototype.replace,Z=String.prototype.toUpperCase,J=String.prototype.toLowerCase,de=RegExp.prototype.test,te=Array.prototype.concat,ae=Array.prototype.join,ye=Array.prototype.slice,xe=Math.floor,pe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",De=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Re=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(z){return z.__proto__}:null);function tt(z,oe){if(z===1/0||z===-1/0||z!==z||z&&z>-1e3&&z<1e3||de.call(/e/,oe))return oe;var Oe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof z=="number"){var Ae=z<0?-xe(-z):xe(z);if(Ae!==z){var Ve=String(Ae),Le=X.call(oe,Ve.length+1);return q.call(Ve,Oe,"$&_")+"."+q.call(q.call(Le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(oe,Oe,"$&_")}var Qe=a(24654).custom,Je=Qe&&kt(Qe)?Qe:null;h.exports=function z(oe,Oe,Ae,Ve){var Le=Oe||{};if(Dt(Le,"quoteStyle")&&Le.quoteStyle!=="single"&&Le.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Dt(Le,"maxStringLength")&&(typeof Le.maxStringLength=="number"?Le.maxStringLength<0&&Le.maxStringLength!==1/0:Le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var nt=Dt(Le,"customInspect")?Le.customInspect:!0;if(typeof nt!="boolean"&&nt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Dt(Le,"indent")&&Le.indent!==null&&Le.indent!==" "&&!(parseInt(Le.indent,10)===Le.indent&&Le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Dt(Le,"numericSeparator")&&typeof Le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ht=Le.numericSeparator;if(typeof oe=="undefined")return"undefined";if(oe===null)return"null";if(typeof oe=="boolean")return oe?"true":"false";if(typeof oe=="string")return Ke(oe,Le);if(typeof oe=="number"){if(oe===0)return 1/0/oe>0?"0":"-0";var bt=String(oe);return ht?tt(oe,bt):bt}if(typeof oe=="bigint"){var zt=String(oe)+"n";return ht?tt(oe,zt):zt}var Mt=typeof Le.depth=="undefined"?5:Le.depth;if(typeof Ae=="undefined"&&(Ae=0),Ae>=Mt&&Mt>0&&typeof oe=="object")return wt(oe)?"[Array]":"[Object]";var Kr=le(Le,Ae);if(typeof Ve=="undefined")Ve=[];else if(Nt(Ve,oe)>=0)return"[Circular]";function gr(jn,Jr,ln){if(Jr&&(Ve=ye.call(Ve),Ve.push(Jr)),ln){var Vn={depth:Le.depth};return Dt(Le,"quoteStyle")&&(Vn.quoteStyle=Le.quoteStyle),z(jn,Vn,Ae+1,Ve)}return z(jn,Le,Ae+1,Ve)}if(typeof oe=="function"){var On=Tt(oe),bi=re(oe,gr);return"[Function"+(On?": "+On:" (anonymous)")+"]"+(bi.length>0?" { "+ae.call(bi,", ")+" }":"")}if(kt(oe)){var Wr=Fe?q.call(String(oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(oe);return typeof oe=="object"&&!Fe?Me(Wr):Wr}if(Ge(oe)){for(var Jn="<"+J.call(String(oe.nodeName)),ii=oe.attributes||[],sn=0;sn<ii.length;sn++)Jn+=" "+ii[sn].name+"="+ut(pt(ii[sn].value),"double",Le);return Jn+=">",oe.childNodes&&oe.childNodes.length&&(Jn+="..."),Jn+="</"+J.call(String(oe.nodeName))+">",Jn}if(wt(oe)){if(oe.length===0)return"[]";var Un=re(oe,gr);return Kr&&!O(Un)?"["+N(Un,Kr)+"]":"[ "+ae.call(Un,", ")+" ]"}if(yt(oe)){var Hr=re(oe,gr);return"cause"in oe&&!Re.call(oe,"cause")?"{ ["+String(oe)+"] "+ae.call(te.call("[cause]: "+gr(oe.cause),Hr),", ")+" }":Hr.length===0?"["+String(oe)+"]":"{ ["+String(oe)+"] "+ae.call(Hr,", ")+" }"}if(typeof oe=="object"&&nt){if(Je&&typeof oe[Je]=="function")return oe[Je]();if(nt!=="symbol"&&typeof oe.inspect=="function")return oe.inspect()}if(he(oe)){var Ni=[];return d.call(oe,function(jn,Jr){Ni.push(gr(Jr,oe,!0)+" => "+gr(jn,oe))}),T("Map",x.call(oe),Ni,Kr)}if(we(oe)){var wi=[];return L.call(oe,function(jn){wi.push(gr(jn,oe))}),T("Set",g.call(oe),wi,Kr)}if(G(oe))return Y("WeakMap");if(Ie(oe))return Y("WeakSet");if(K(oe))return Y("WeakRef");if(dt(oe))return Me(gr(Number(oe)));if(Ct(oe))return Me(gr(pe.call(oe)));if(Rt(oe))return Me(Q.call(oe));if(mt(oe))return Me(gr(String(oe)));if(!rt(oe)&&!lt(oe)){var Yr=re(oe,gr),xn=Pe?Pe(oe)===Object.prototype:oe instanceof Object||oe.constructor===Object,Tn=oe instanceof Object?"":"null prototype",Xn=!xn&&De&&Object(oe)===oe&&De in oe?X.call(Vt(oe),8,-1):Tn?"Object":"",bn=xn||typeof oe.constructor!="function"?"":oe.constructor.name?oe.constructor.name+" ":"",Pn=bn+(Xn||Tn?"["+ae.call(te.call([],Xn||[],Tn||[]),": ")+"] ":"");return Yr.length===0?Pn+"{}":Kr?Pn+"{"+N(Yr,Kr)+"}":Pn+"{ "+ae.call(Yr,", ")+" }"}return String(oe)};function ut(z,oe,Oe){var Ae=(Oe.quoteStyle||oe)==="double"?'"':"'";return Ae+z+Ae}function pt(z){return q.call(String(z),/"/g,"&quot;")}function wt(z){return Vt(z)==="[object Array]"&&(!De||!(typeof z=="object"&&De in z))}function rt(z){return Vt(z)==="[object Date]"&&(!De||!(typeof z=="object"&&De in z))}function lt(z){return Vt(z)==="[object RegExp]"&&(!De||!(typeof z=="object"&&De in z))}function yt(z){return Vt(z)==="[object Error]"&&(!De||!(typeof z=="object"&&De in z))}function mt(z){return Vt(z)==="[object String]"&&(!De||!(typeof z=="object"&&De in z))}function dt(z){return Vt(z)==="[object Number]"&&(!De||!(typeof z=="object"&&De in z))}function Rt(z){return Vt(z)==="[object Boolean]"&&(!De||!(typeof z=="object"&&De in z))}function kt(z){if(Fe)return z&&typeof z=="object"&&z instanceof Symbol;if(typeof z=="symbol")return!0;if(!z||typeof z!="object"||!se)return!1;try{return se.call(z),!0}catch(oe){}return!1}function Ct(z){if(!z||typeof z!="object"||!pe)return!1;try{return pe.call(z),!0}catch(oe){}return!1}var Wt=Object.prototype.hasOwnProperty||function(z){return z in this};function Dt(z,oe){return Wt.call(z,oe)}function Vt(z){return M.call(z)}function Tt(z){if(z.name)return z.name;var oe=V.call(C.call(z),/^function\s*([\w$]+)/);return oe?oe[1]:null}function Nt(z,oe){if(z.indexOf)return z.indexOf(oe);for(var Oe=0,Ae=z.length;Oe<Ae;Oe++)if(z[Oe]===oe)return Oe;return-1}function he(z){if(!x||!z||typeof z!="object")return!1;try{x.call(z);try{g.call(z)}catch(oe){return!0}return z instanceof Map}catch(oe){}return!1}function G(z){if(!B||!z||typeof z!="object")return!1;try{B.call(z,B);try{ee.call(z,ee)}catch(oe){return!0}return z instanceof WeakMap}catch(oe){}return!1}function K(z){if(!R||!z||typeof z!="object")return!1;try{return R.call(z),!0}catch(oe){}return!1}function we(z){if(!g||!z||typeof z!="object")return!1;try{g.call(z);try{x.call(z)}catch(oe){return!0}return z instanceof Set}catch(oe){}return!1}function Ie(z){if(!ee||!z||typeof z!="object")return!1;try{ee.call(z,ee);try{B.call(z,B)}catch(oe){return!0}return z instanceof WeakSet}catch(oe){}return!1}function Ge(z){return!z||typeof z!="object"?!1:typeof HTMLElement!="undefined"&&z instanceof HTMLElement?!0:typeof z.nodeName=="string"&&typeof z.getAttribute=="function"}function Ke(z,oe){if(z.length>oe.maxStringLength){var Oe=z.length-oe.maxStringLength,Ae="... "+Oe+" more character"+(Oe>1?"s":"");return Ke(X.call(z,0,oe.maxStringLength),oe)+Ae}var Ve=q.call(q.call(z,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,P);return ut(Ve,"single",oe)}function P(z){var oe=z.charCodeAt(0),Oe={8:"b",9:"t",10:"n",12:"f",13:"r"}[oe];return Oe?"\\"+Oe:"\\x"+(oe<16?"0":"")+Z.call(oe.toString(16))}function Me(z){return"Object("+z+")"}function Y(z){return z+" { ? }"}function T(z,oe,Oe,Ae){var Ve=Ae?N(Oe,Ae):ae.call(Oe,", ");return z+" ("+oe+") {"+Ve+"}"}function O(z){for(var oe=0;oe<z.length;oe++)if(Nt(z[oe],`
511
+ `)>=0)return!1;return!0}function le(z,oe){var Oe;if(z.indent===" ")Oe=" ";else if(typeof z.indent=="number"&&z.indent>0)Oe=ae.call(Array(z.indent+1)," ");else return null;return{base:Oe,prev:ae.call(Array(oe+1),Oe)}}function N(z,oe){if(z.length===0)return"";var Oe=`
512
+ `+oe.prev+oe.base;return Oe+ae.call(z,","+Oe)+`
513
+ `+oe.prev}function re(z,oe){var Oe=wt(z),Ae=[];if(Oe){Ae.length=z.length;for(var Ve=0;Ve<z.length;Ve++)Ae[Ve]=Dt(z,Ve)?oe(z[Ve],z):""}var Le=typeof fe=="function"?fe(z):[],nt;if(Fe){nt={};for(var ht=0;ht<Le.length;ht++)nt["$"+Le[ht]]=Le[ht]}for(var bt in z)!Dt(z,bt)||Oe&&String(Number(bt))===bt&&bt<z.length||Fe&&nt["$"+bt]instanceof Symbol||(de.call(/[^\w$]/,bt)?Ae.push(oe(bt,z)+": "+oe(z[bt],z)):Ae.push(bt+": "+oe(z[bt],z)));if(typeof fe=="function")for(var zt=0;zt<Le.length;zt++)Re.call(z,Le[zt])&&Ae.push("["+oe(Le[zt])+"]: "+oe(z[Le[zt]],z));return Ae}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,ee,W,R,Q=0,M=0;Q<=L.length;Q++){var C=Q<L.length?L.charCodeAt(Q):NaN;switch(j){case 0:switch(C){case 37:ee=0,W=0,j=1;break;case 43:D&&(C=32);default:B[M++]=C;break}break;case 1:if(R=C,C>=48&&C<=57)ee=C-48;else if(C>=65&&C<=70)ee=C-65+10;else if(C>=97&&C<=102)ee=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)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[M++]=37,B[M++]=R,B[M++]=C;break}B[M++]=16*ee+W;break}}return B.slice(0,M-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).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 D="",B=0,j=0;j<L.length;++j){var ee=L.charCodeAt(j);if(!(ee===33||ee===45||ee===46||ee===95||ee===126||ee>=39&&ee<=42||ee>=48&&ee<=57||ee>=65&&ee<=90||ee>=97&&ee<=122)){if(j-B>0&&(D+=L.slice(B,j)),ee<128){B=j+1,D+=d[ee];continue}if(ee<2048){B=j+1,D+=d[192|ee>>6]+d[128|ee&63];continue}if(ee<55296||ee>=57344){B=j+1,D+=d[224|ee>>12]+d[128|ee>>6&63]+d[128|ee&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,ee=65536+((ee&1023)<<10|W),D+=d[240|ee>>18]+d[128|ee>>12&63]+d[128|ee>>6&63]+d[128|ee&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var S=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,D,B,j){D=D||"&",B=B||"=";var ee=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(ee=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),R=W.length,Q=R-1,M="",C=0;C<R;++C){var V=W[C],X=L[V],q=ee(S(V))+B;if(Array.isArray(X)){for(var Z=X.length,J=Z-1,de=0;de<Z;++de)M+=q+ee(S(X[de])),de<J&&(M+=D);Z&&C<Q&&(M+=D)}else M+=q+ee(S(X)),C<Q&&(M+=D)}return M}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var ee={};if(typeof L!="string"||L.length===0)return ee;typeof D!="string"&&(D+="");var W=B.length,R=D.length,Q=1e3;j&&typeof j.maxKeys=="number"&&(Q=j.maxKeys);var M=1/0;Q>0&&(M=Q);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,X=[],q=0,Z=0,J=0,de="",te="",ae=V,ye=V,xe=0,pe=0;pe<L.length;++pe){var fe=L.charCodeAt(pe);if(fe===D.charCodeAt(Z)){if(++Z===R){var se=pe-Z+1;if(J<W?q<se&&(de+=L.slice(q,se)):q<se&&(te+=L.slice(q,se)),ae&&(de=g(de,C)),ye&&(te=g(te,C)),X.indexOf(de)===-1)ee[de]=te,X[X.length]=de;else{var Fe=ee[de];Fe instanceof Array?Fe[Fe.length]=te:ee[de]=[Fe,te]}if(--M==0)break;ae=ye=V,xe=0,de=te="",q=pe+1,Z=J=0}continue}else Z=0,ye||(fe===37?xe=1:xe>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++xe==3&&(ye=!0):xe=0);if(J<W)if(fe===B.charCodeAt(J)){if(++J===W){var se=pe-J+1;q<se&&(de+=L.slice(q,se)),xe=0,q=pe+1}continue}else J=0,ae||(fe===37?xe=1:xe>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++xe==3&&(ae=!0):xe=0);fe===43&&(J<W?(pe-q>0&&(de+=L.slice(q,pe)),de+="%20",ae=!0):(pe-q>0&&(te+=L.slice(q,pe)),te+="%20",ye=!0),q=pe+1)}if(M>0&&(q<L.length||J>0))if(q<L.length&&(J<W?de+=L.slice(q):Z<R&&(te+=L.slice(q))),ae&&(de=g(de,C)),ye&&(te=g(te,C)),X.indexOf(de)===-1)ee[de]=te,X[X.length]=de;else{var Fe=ee[de];Fe instanceof Array?Fe[Fe.length]=te:ee[de]=[Fe,te]}return ee};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(ee){for(var W=1;W<arguments.length;W++){var R=arguments[W];for(var Q in R)Object.prototype.hasOwnProperty.call(R,Q)&&(ee[Q]=R[Q])}return ee},v.apply(this,arguments)}function x(ee){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(ee)}var d=function(){var ee=function(R,Q){return ee=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])},ee(R,Q)};return function(W,R){ee(W,R);function Q(){this.constructor=W}W.prototype=R===null?Object.create(R):(Q.prototype=R.prototype,new Q)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),S=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=a(4631));var L=function(){function ee(){}return ee.equals=function(W,R){var Q=this,M=Object.keys,C=x(W),V=x(R);return W&&R&&C==="object"&&C===V?M(W).length===M(R).length&&M(W).every(function(X){return Q.equals(W[X],R[X])}):W===R},ee}(),D=function(){function ee(W,R){this.editor=W,this.props=R}return ee.prototype.delegateCursor=function(W,R,Q){var M=this.editor.getDoc();Q&&this.editor.focus(),R?M.setCursor(W):M.setCursor(W,null,{scroll:!1})},ee.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},ee.prototype.delegateSelection=function(W,R){var Q=this.editor.getDoc();Q.setSelections(W),R&&this.editor.focus()},ee.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},ee.prototype.applyNext=function(W,R,Q){W&&W.selection&&W.selection.ranges&&R&&R.selection&&R.selection.ranges&&!L.equals(W.selection.ranges,R.selection.ranges)&&this.delegateSelection(R.selection.ranges,R.selection.focus||!1),W&&W.cursor&&R&&R.cursor&&!L.equals(W.cursor,R.cursor)&&this.delegateCursor(Q.cursor||R.cursor,R.autoScroll||!1,R.autoCursor||!1),W&&W.scroll&&R&&R.scroll&&!L.equals(W.scroll,R.scroll)&&this.delegateScroll(R.scroll)},ee.prototype.applyUserDefined=function(W,R){R&&R.cursor&&this.delegateCursor(R.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ee.prototype.wire=function(W){var R=this;Object.keys(W||{}).filter(function(Q){return/^on/.test(Q)}).forEach(function(Q){switch(Q){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,X){R.props.onGutterClick(R.editor,C,V,X)});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}})},ee}(),B=function(ee){d(W,ee);function W(R){var Q=ee.call(this,R)||this;return S||(Q.applied=!1,Q.appliedNext=!1,Q.appliedUserDefined=!1,Q.deferred=null,Q.emulating=!1,Q.hydrated=!1,Q.initCb=function(){Q.props.editorDidConfigure&&Q.props.editorDidConfigure(Q.editor)},Q.mounted=!1),Q}return W.prototype.hydrate=function(R){var Q=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(X){return Q.editor.getOption(X)!==C[X]});V&&Object.keys(C).forEach(function(X){M.hasOwnProperty(X)&&Q.editor.getOption(X)!==C[X]&&(Q.editor.setOption(X,C[X]),Q.mirror.setOption(X,C[X]))}),this.hydrated||(this.deferred?this.resolveChange(R.value):this.initChange(R.value||"")),this.hydrated=!0},W.prototype.initChange=function(R){this.emulating=!0;var Q=this.editor.getDoc(),M=Q.lastLine(),C=Q.getLine(Q.lastLine()).length;Q.replaceRange(R||"",{line:0,ch:0},{line:M,ch:C}),this.mirror.setValue(R),Q.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(R){this.emulating=!0;var Q=this.editor.getDoc();if(this.deferred.origin==="undo"?Q.undo():this.deferred.origin==="redo"?Q.redo():Q.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),R&&R!==Q.getValue()){var M=Q.getCursor();Q.setValue(R),Q.setCursor(M)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(R){var Q=this.editor.getDoc();return R.origin==="undo"?(Q.setHistory(this.mirror.getHistory()),this.mirror.undo()):R.origin==="redo"?(Q.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(R.text,R.from,R.to,R.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var R=this;S||(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 D(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(Q,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(Q,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))},W.prototype.componentDidUpdate=function(R){if(!S){var Q={cursor:null};this.props.value!==R.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(Q.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(R,this.props,Q),this.appliedNext=!0),this.shared.applyUserDefined(R,Q),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(R,Q){return!S},W.prototype.render=function(){var R=this;if(S)return null;var Q=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Q,ref:function(C){return R.ref=C}})},W}(b.Component);I.fk=B;var j=function(ee){d(W,ee);function W(R){var Q=ee.call(this,R)||this;return S||(Q.applied=!1,Q.appliedUserDefined=!1,Q.continueChange=!1,Q.detached=!1,Q.hydrated=!1,Q.initCb=function(){Q.props.editorDidConfigure&&Q.props.editorDidConfigure(Q.editor)},Q.mounted=!1,Q.onBeforeChangeCb=function(){Q.continueChange=!0}),Q}return W.prototype.hydrate=function(R){var Q=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return Q.editor.getOption(J)!==C[J]});if(V&&Object.keys(C).forEach(function(J){M.hasOwnProperty(J)&&Q.editor.getOption(J)!==C[J]&&Q.editor.setOption(J,C[J])}),!this.hydrated){var X=this.editor.getDoc(),q=X.lastLine(),Z=X.getLine(X.lastLine()).length;X.replaceRange(R.value||"",{line:0,ch:0},{line:q,ch:Z})}this.hydrated=!0},W.prototype.componentDidMount=function(){var R=this;S||(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 D(this.editor,this.props),this.editor.on("beforeChange",function(Q,M){R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,M,R.editor.getValue(),R.onBeforeChangeCb)}),this.editor.on("change",function(Q,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))},W.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)),!(S||this.detached)){var Q={cursor:null};this.props.value!==R.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!R.autoCursor&&R.autoCursor!==void 0&&(Q.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(R),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(R,Q),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(R,Q){var M=!0;return S&&(M=!1),this.detached&&R.detach&&(M=!1),M},W.prototype.render=function(){var R=this;if(S)return null;var Q=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:Q,ref:function(C){return R.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(De,Re,Pe){return Object.defineProperty(De,Re,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),De[Re]}try{L({},"")}catch(De){L=function(Re,Pe,tt){return Re[Pe]=tt}}function D(De,Re,Pe,tt){var Qe=Re&&Re.prototype instanceof M?Re:M,Je=Object.create(Qe.prototype),ut=new fe(tt||[]);return Je._invoke=ae(De,Pe,ut),Je}a.wrap=D;function B(De,Re,Pe){try{return{type:"normal",arg:De.call(Re,Pe)}}catch(tt){return{type:"throw",arg:tt}}}var j="suspendedStart",ee="suspendedYield",W="executing",R="completed",Q={};function M(){}function C(){}function V(){}var X={};X[b]=function(){return this};var q=Object.getPrototypeOf,Z=q&&q(q(se([])));Z&&Z!==c&&v.call(Z,b)&&(X=Z);var J=V.prototype=M.prototype=Object.create(X);C.prototype=J.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function de(De){["next","throw","return"].forEach(function(Re){L(De,Re,function(Pe){return this._invoke(Re,Pe)})})}a.isGeneratorFunction=function(De){var Re=typeof De=="function"&&De.constructor;return Re?Re===C||(Re.displayName||Re.name)==="GeneratorFunction":!1},a.mark=function(De){return Object.setPrototypeOf?Object.setPrototypeOf(De,V):(De.__proto__=V,L(De,g,"GeneratorFunction")),De.prototype=Object.create(J),De},a.awrap=function(De){return{__await:De}};function te(De,Re){function Pe(Je,ut,pt,wt){var rt=B(De[Je],De,ut);if(rt.type==="throw")wt(rt.arg);else{var lt=rt.arg,yt=lt.value;return yt&&typeof yt=="object"&&v.call(yt,"__await")?Re.resolve(yt.__await).then(function(mt){Pe("next",mt,pt,wt)},function(mt){Pe("throw",mt,pt,wt)}):Re.resolve(yt).then(function(mt){lt.value=mt,pt(lt)},function(mt){return Pe("throw",mt,pt,wt)})}}var tt;function Qe(Je,ut){function pt(){return new Re(function(wt,rt){Pe(Je,ut,wt,rt)})}return tt=tt?tt.then(pt,pt):pt()}this._invoke=Qe}de(te.prototype),te.prototype[S]=function(){return this},a.AsyncIterator=te,a.async=function(De,Re,Pe,tt,Qe){Qe===void 0&&(Qe=Promise);var Je=new te(D(De,Re,Pe,tt),Qe);return a.isGeneratorFunction(Re)?Je:Je.next().then(function(ut){return ut.done?ut.value:Je.next()})};function ae(De,Re,Pe){var tt=j;return function(Je,ut){if(tt===W)throw new Error("Generator is already running");if(tt===R){if(Je==="throw")throw ut;return Fe()}for(Pe.method=Je,Pe.arg=ut;;){var pt=Pe.delegate;if(pt){var wt=ye(pt,Pe);if(wt){if(wt===Q)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(tt===j)throw tt=R,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);tt=W;var rt=B(De,Re,Pe);if(rt.type==="normal"){if(tt=Pe.done?R:ee,rt.arg===Q)continue;return{value:rt.arg,done:Pe.done}}else rt.type==="throw"&&(tt=R,Pe.method="throw",Pe.arg=rt.arg)}}}function ye(De,Re){var Pe=De.iterator[Re.method];if(Pe===x){if(Re.delegate=null,Re.method==="throw"){if(De.iterator.return&&(Re.method="return",Re.arg=x,ye(De,Re),Re.method==="throw"))return Q;Re.method="throw",Re.arg=new TypeError("The iterator does not provide a 'throw' method")}return Q}var tt=B(Pe,De.iterator,Re.arg);if(tt.type==="throw")return Re.method="throw",Re.arg=tt.arg,Re.delegate=null,Q;var Qe=tt.arg;if(!Qe)return Re.method="throw",Re.arg=new TypeError("iterator result is not an object"),Re.delegate=null,Q;if(Qe.done)Re[De.resultName]=Qe.value,Re.next=De.nextLoc,Re.method!=="return"&&(Re.method="next",Re.arg=x);else return Qe;return Re.delegate=null,Q}de(J),L(J,g,"Generator"),J[b]=function(){return this},J.toString=function(){return"[object Generator]"};function xe(De){var Re={tryLoc:De[0]};1 in De&&(Re.catchLoc=De[1]),2 in De&&(Re.finallyLoc=De[2],Re.afterLoc=De[3]),this.tryEntries.push(Re)}function pe(De){var Re=De.completion||{};Re.type="normal",delete Re.arg,De.completion=Re}function fe(De){this.tryEntries=[{tryLoc:"root"}],De.forEach(xe,this),this.reset(!0)}a.keys=function(De){var Re=[];for(var Pe in De)Re.push(Pe);return Re.reverse(),function tt(){for(;Re.length;){var Qe=Re.pop();if(Qe in De)return tt.value=Qe,tt.done=!1,tt}return tt.done=!0,tt}};function se(De){if(De){var Re=De[b];if(Re)return Re.call(De);if(typeof De.next=="function")return De;if(!isNaN(De.length)){var Pe=-1,tt=function Qe(){for(;++Pe<De.length;)if(v.call(De,Pe))return Qe.value=De[Pe],Qe.done=!1,Qe;return Qe.value=x,Qe.done=!0,Qe};return tt.next=tt}}return{next:Fe}}a.values=se;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(De){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(pe),!De)for(var Re in this)Re.charAt(0)==="t"&&v.call(this,Re)&&!isNaN(+Re.slice(1))&&(this[Re]=x)},stop:function(){this.done=!0;var De=this.tryEntries[0],Re=De.completion;if(Re.type==="throw")throw Re.arg;return this.rval},dispatchException:function(De){if(this.done)throw De;var Re=this;function Pe(wt,rt){return Je.type="throw",Je.arg=De,Re.next=wt,rt&&(Re.method="next",Re.arg=x),!!rt}for(var tt=this.tryEntries.length-1;tt>=0;--tt){var Qe=this.tryEntries[tt],Je=Qe.completion;if(Qe.tryLoc==="root")return Pe("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 Pe(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else if(ut){if(this.prev<Qe.catchLoc)return Pe(Qe.catchLoc,!0)}else if(pt){if(this.prev<Qe.finallyLoc)return Pe(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(De,Re){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var tt=this.tryEntries[Pe];if(tt.tryLoc<=this.prev&&v.call(tt,"finallyLoc")&&this.prev<tt.finallyLoc){var Qe=tt;break}}Qe&&(De==="break"||De==="continue")&&Qe.tryLoc<=Re&&Re<=Qe.finallyLoc&&(Qe=null);var Je=Qe?Qe.completion:{};return Je.type=De,Je.arg=Re,Qe?(this.method="next",this.next=Qe.finallyLoc,Q):this.complete(Je)},complete:function(De,Re){if(De.type==="throw")throw De.arg;return De.type==="break"||De.type==="continue"?this.next=De.arg:De.type==="return"?(this.rval=this.arg=De.arg,this.method="return",this.next="end"):De.type==="normal"&&Re&&(this.next=Re),Q},finish:function(De){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.finallyLoc===De)return this.complete(Pe.completion,Pe.afterLoc),pe(Pe),Q}},catch:function(De){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.tryLoc===De){var tt=Pe.completion;if(tt.type==="throw"){var Qe=tt.arg;pe(Pe)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(De,Re,Pe){return this.delegate={iterator:se(De),resultName:Re,nextLoc:Pe},this.method==="next"&&(this.arg=x),Q}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),ee=v("Map.prototype.has",!0),W=function(C,V){for(var X=C,q;(q=X.next)!==null;X=q)if(q.key===V)return X.next=q.next,q.next=C.next,C.next=q,q},R=function(C,V){var X=W(C,V);return X&&X.value},Q=function(C,V,X){var q=W(C,V);q?q.value=X:C.next={key:V,next:C.next,value:X}},M=function(C,V){return!!W(C,V)};h.exports=function(){var V,X,q,Z={assert:function(J){if(!Z.has(J))throw new d("Side channel does not contain "+x(J))},get:function(J){if(b&&J&&(typeof J=="object"||typeof J=="function")){if(V)return g(V,J)}else if(S){if(X)return B(X,J)}else if(q)return R(q,J)},has:function(J){if(b&&J&&(typeof J=="object"||typeof J=="function")){if(V)return D(V,J)}else if(S){if(X)return ee(X,J)}else if(q)return M(q,J);return!1},set:function(J,de){b&&J&&(typeof J=="object"||typeof J=="function")?(V||(V=new b),L(V,J,de)):S?(X||(X=new S),j(X,J,de)):(q||(q={key:{},next:null}),Q(q,J,de))}};return Z}},13837:(h,I,a)=>{var c=a(93379),v=a(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,a)=>{var c=a(93379),v=a(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,a)=>{var c=a(93379),v=a(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,a)=>{var c=a(93379),v=a(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,a)=>{"use strict";/*!
514
514
  * The buffer module from node.js, for the browser.
515
515
  *
516
516
  * @author Feross Aboukhadijeh <https://feross.org>
517
517
  * @license MIT
518
- */const c=a(79742),v=a(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 Y=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(Y,T),Y.foo()===42}catch(Y){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(Y){if(Y>d)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const T=new Uint8Array(Y);return Object.setPrototypeOf(T,g.prototype),T}function g(Y,T,O){if(typeof Y=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(Y)}return L(Y,T,O)}g.poolSize=8192;function L(Y,T,O){if(typeof Y=="string")return ee(Y,T);if(ArrayBuffer.isView(Y))return R(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(Ie(Y,ArrayBuffer)||Y&&Ie(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(Y,SharedArrayBuffer)||Y&&Ie(Y.buffer,SharedArrayBuffer)))return Q(Y,T,O);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=Y.valueOf&&Y.valueOf();if(le!=null&&le!==Y)return g.from(le,T,O);const N=M(Y);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return g.from(Y[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}g.from=function(Y,T,O){return L(Y,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function B(Y,T,O){return D(Y),Y<=0?A(Y):T!==void 0?typeof O=="string"?A(Y).fill(T,O):A(Y).fill(T):A(Y)}g.alloc=function(Y,T,O){return B(Y,T,O)};function j(Y){return D(Y),A(Y<0?0:C(Y)|0)}g.allocUnsafe=function(Y){return j(Y)},g.allocUnsafeSlow=function(Y){return j(Y)};function ee(Y,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=X(Y,T)|0;let le=A(O);const N=le.write(Y,T);return N!==O&&(le=le.slice(0,N)),le}function W(Y){const T=Y.length<0?0:C(Y.length)|0,O=A(T);for(let le=0;le<T;le+=1)O[le]=Y[le]&255;return O}function R(Y){if(Ie(Y,Uint8Array)){const T=new Uint8Array(Y);return Q(T.buffer,T.byteOffset,T.byteLength)}return W(Y)}function Q(Y,T,O){if(T<0||Y.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let le;return T===void 0&&O===void 0?le=new Uint8Array(Y):O===void 0?le=new Uint8Array(Y,T):le=new Uint8Array(Y,T,O),Object.setPrototypeOf(le,g.prototype),le}function M(Y){if(g.isBuffer(Y)){const T=C(Y.length)|0,O=A(T);return O.length===0||Y.copy(O,0,0,T),O}if(Y.length!==void 0)return typeof Y.length!="number"||$e(Y.length)?A(0):W(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return W(Y.data)}function C(Y){if(Y>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return Y|0}function V(Y){return+Y!=Y&&(Y=0),g.alloc(+Y)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let le=T.length,N=O.length;for(let ne=0,z=Math.min(le,N);ne<z;++ne)if(T[ne]!==O[ne]){le=T[ne],N=O[ne];break}return le<N?-1:N<le?1:0},g.isEncoding=function(T){switch(String(T).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(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let le;if(O===void 0)for(O=0,le=0;le<T.length;++le)O+=T[le].length;const N=g.allocUnsafe(O);let ne=0;for(le=0;le<T.length;++le){let z=T[le];if(Ie(z,Uint8Array))ne+z.length>N.length?(g.isBuffer(z)||(z=g.from(z)),z.copy(N,ne)):Uint8Array.prototype.set.call(N,z,ne);else if(g.isBuffer(z))z.copy(N,ne);else throw new TypeError('"list" argument must be an Array of Buffers');ne+=z.length}return N};function X(Y,T){if(g.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||Ie(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const O=Y.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return K(Y).length;default:if(N)return le?-1:Dt(Y).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=X;function q(Y,T,O){let le=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return et(this,T,O);case"utf8":case"utf-8":return se(this,T,O);case"ascii":return Re(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Z(Y,T,O){const le=Y[T];Y[T]=Y[O],Y[O]=le}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Z(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Z(this,O,O+3),Z(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Z(this,O,O+7),Z(this,O+1,O+6),Z(this,O+2,O+5),Z(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?se(this,0,T):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,le,N,ne){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),le===void 0&&(le=T?T.length:0),N===void 0&&(N=0),ne===void 0&&(ne=this.length),O<0||le>T.length||N<0||ne>this.length)throw new RangeError("out of range index");if(N>=ne&&O>=le)return 0;if(N>=ne)return-1;if(O>=le)return 1;if(O>>>=0,le>>>=0,N>>>=0,ne>>>=0,this===T)return 0;let z=ne-N,ae=le-O;const Oe=Math.min(z,ae),Ae=this.slice(N,ne),Ve=T.slice(O,le);for(let Le=0;Le<Oe;++Le)if(Ae[Le]!==Ve[Le]){z=Ae[Le],ae=Ve[Le];break}return z<ae?-1:ae<z?1:0};function J(Y,T,O,le,N){if(Y.length===0)return-1;if(typeof O=="string"?(le=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,$e(O)&&(O=N?0:Y.length-1),O<0&&(O=Y.length+O),O>=Y.length){if(N)return-1;O=Y.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,le)),g.isBuffer(T))return T.length===0?-1:de(Y,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(Y,T,O):Uint8Array.prototype.lastIndexOf.call(Y,T,O):de(Y,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function de(Y,T,O,le,N){let ne=1,z=Y.length,ae=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(Y.length<2||T.length<2)return-1;ne=2,z/=2,ae/=2,O/=2}function Oe(Ve,Le){return ne===1?Ve[Le]:Ve.readUInt16BE(Le*ne)}let Ae;if(N){let Ve=-1;for(Ae=O;Ae<z;Ae++)if(Oe(Y,Ae)===Oe(T,Ve===-1?0:Ae-Ve)){if(Ve===-1&&(Ve=Ae),Ae-Ve+1===ae)return Ve*ne}else Ve!==-1&&(Ae-=Ae-Ve),Ve=-1}else for(O+ae>z&&(O=z-ae),Ae=O;Ae>=0;Ae--){let Ve=!0;for(let Le=0;Le<ae;Le++)if(Oe(Y,Ae+Le)!==Oe(T,Le)){Ve=!1;break}if(Ve)return Ae}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return J(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return J(this,T,O,le,!1)};function re(Y,T,O,le){O=Number(O)||0;const N=Y.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const ne=T.length;le>ne/2&&(le=ne/2);let z;for(z=0;z<le;++z){const ae=parseInt(T.substr(z*2,2),16);if($e(ae))return z;Y[O+z]=ae}return z}function ie(Y,T,O,le){return we(Dt(T,Y.length-O),Y,O,le)}function ye(Y,T,O,le){return we(he(T),Y,O,le)}function xe(Y,T,O,le){return we(K(T),Y,O,le)}function pe(Y,T,O,le){return we(G(T,Y.length-O),Y,O,le)}g.prototype.write=function(T,O,le,N){if(O===void 0)N="utf8",le=this.length,O=0;else if(le===void 0&&typeof O=="string")N=O,le=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(le)?(le=le>>>0,N===void 0&&(N="utf8")):(N=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ne=this.length-O;if((le===void 0||le>ne)&&(le=ne),T.length>0&&(le<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let z=!1;for(;;)switch(N){case"hex":return re(this,T,O,le);case"utf8":case"utf-8":return ie(this,T,O,le);case"ascii":case"latin1":case"binary":return ye(this,T,O,le);case"base64":return xe(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,T,O,le);default:if(z)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),z=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(Y,T,O){return T===0&&O===Y.length?c.fromByteArray(Y):c.fromByteArray(Y.slice(T,O))}function se(Y,T,O){O=Math.min(Y.length,O);const le=[];let N=T;for(;N<O;){const ne=Y[N];let z=null,ae=ne>239?4:ne>223?3:ne>191?2:1;if(N+ae<=O){let Oe,Ae,Ve,Le;switch(ae){case 1:ne<128&&(z=ne);break;case 2:Oe=Y[N+1],(Oe&192)==128&&(Le=(ne&31)<<6|Oe&63,Le>127&&(z=Le));break;case 3:Oe=Y[N+1],Ae=Y[N+2],(Oe&192)==128&&(Ae&192)==128&&(Le=(ne&15)<<12|(Oe&63)<<6|Ae&63,Le>2047&&(Le<55296||Le>57343)&&(z=Le));break;case 4:Oe=Y[N+1],Ae=Y[N+2],Ve=Y[N+3],(Oe&192)==128&&(Ae&192)==128&&(Ve&192)==128&&(Le=(ne&15)<<18|(Oe&63)<<12|(Ae&63)<<6|Ve&63,Le>65535&&Le<1114112&&(z=Le))}}z===null?(z=65533,ae=1):z>65535&&(z-=65536,le.push(z>>>10&1023|55296),z=56320|z&1023),le.push(z),N+=ae}return De(le)}const Fe=4096;function De(Y){const T=Y.length;if(T<=Fe)return String.fromCharCode.apply(String,Y);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,Y.slice(le,le+=Fe));return O}function Re(Y,T,O){let le="";O=Math.min(Y.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(Y[N]&127);return le}function Pe(Y,T,O){let le="";O=Math.min(Y.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(Y[N]);return le}function et(Y,T,O){const le=Y.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let ne=T;ne<O;++ne)N+=Ke[Y[ne]];return N}function Qe(Y,T,O){const le=Y.slice(T,O);let N="";for(let ne=0;ne<le.length-1;ne+=2)N+=String.fromCharCode(le[ne]+le[ne+1]*256);return N}g.prototype.slice=function(T,O){const le=this.length;T=~~T,O=O===void 0?le:~~O,T<0?(T+=le,T<0&&(T=0)):T>le&&(T=le),O<0?(O+=le,O<0&&(O=0)):O>le&&(O=le),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Je(Y,T,O){if(Y%1!=0||Y<0)throw new RangeError("offset is not uint");if(Y+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T],ne=1,z=0;for(;++z<O&&(ne*=256);)N+=this[T+z]*ne;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T+--O],ne=1;for(;O>0&&(ne*=256);)N+=this[T+--O]*ne;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Lt(T,this.length-8);const N=O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24),ne=this[++T]+this[++T]*mr(2,8)+this[++T]*mr(2,16)+le*mr(2,24);return BigInt(N)+(BigInt(ne)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Lt(T,this.length-8);const N=O*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T],ne=this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+le;return(BigInt(N)<<BigInt(32))+BigInt(ne)}),g.prototype.readIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T],ne=1,z=0;for(;++z<O&&(ne*=256);)N+=this[T+z]*ne;return ne*=128,N>=ne&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=O,ne=1,z=this[T+--N];for(;N>0&&(ne*=256);)z+=this[T+--N]*ne;return ne*=128,z>=ne&&(z-=Math.pow(2,8*O)),z},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const le=this[T]|this[T+1]<<8;return le&32768?le|4294901760:le},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const le=this[T+1]|this[T]<<8;return le&32768?le|4294901760:le},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Lt(T,this.length-8);const N=this[T+4]+this[T+5]*mr(2,8)+this[T+6]*mr(2,16)+(le<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Lt(T,this.length-8);const N=(O<<24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+le)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!1,52,8)};function ut(Y,T,O,le,N,ne){if(!g.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<ne)throw new RangeError('"value" argument is out of bounds');if(O+le>Y.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const ae=Math.pow(2,8*le)-1;ut(this,T,O,le,ae,0)}let ne=1,z=0;for(this[O]=T&255;++z<le&&(ne*=256);)this[O+z]=T/ne&255;return O+le},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const ae=Math.pow(2,8*le)-1;ut(this,T,O,le,ae,0)}let ne=le-1,z=1;for(this[O+ne]=T&255;--ne>=0&&(z*=256);)this[O+ne]=T/z&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function ht(Y,T,O,le,N){Ct(T,le,N,Y,O,7);let ne=Number(T&BigInt(4294967295));Y[O++]=ne,ne=ne>>8,Y[O++]=ne,ne=ne>>8,Y[O++]=ne,ne=ne>>8,Y[O++]=ne;let z=Number(T>>BigInt(32)&BigInt(4294967295));return Y[O++]=z,z=z>>8,Y[O++]=z,z=z>>8,Y[O++]=z,z=z>>8,Y[O++]=z,O}function wt(Y,T,O,le,N){Ct(T,le,N,Y,O,7);let ne=Number(T&BigInt(4294967295));Y[O+7]=ne,ne=ne>>8,Y[O+6]=ne,ne=ne>>8,Y[O+5]=ne,ne=ne>>8,Y[O+4]=ne;let z=Number(T>>BigInt(32)&BigInt(4294967295));return Y[O+3]=z,z=z>>8,Y[O+2]=z,z=z>>8,Y[O+1]=z,z=z>>8,Y[O]=z,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return ht(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return wt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const Oe=Math.pow(2,8*le-1);ut(this,T,O,le,Oe-1,-Oe)}let ne=0,z=1,ae=0;for(this[O]=T&255;++ne<le&&(z*=256);)T<0&&ae===0&&this[O+ne-1]!==0&&(ae=1),this[O+ne]=(T/z>>0)-ae&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const Oe=Math.pow(2,8*le-1);ut(this,T,O,le,Oe-1,-Oe)}let ne=le-1,z=1,ae=0;for(this[O+ne]=T&255;--ne>=0&&(z*=256);)T<0&&ae===0&&this[O+ne+1]!==0&&(ae=1),this[O+ne]=(T/z>>0)-ae&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return ht(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return wt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function rt(Y,T,O,le,N,ne){if(O+le>Y.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function lt(Y,T,O,le,N){return T=+T,O=O>>>0,N||rt(Y,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(Y,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return lt(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return lt(this,T,O,!1,le)};function yt(Y,T,O,le,N){return T=+T,O=O>>>0,N||rt(Y,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(Y,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return yt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return yt(this,T,O,!1,le)},g.prototype.copy=function(T,O,le,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(le||(le=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<le&&(N=le),N===le||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-le&&(N=T.length-O+le);const ne=N-le;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,le,N):Uint8Array.prototype.set.call(T,this.subarray(le,N),O),ne},g.prototype.fill=function(T,O,le,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,le=this.length):typeof le=="string"&&(N=le,le=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const z=T.charCodeAt(0);(N==="utf8"&&z<128||N==="latin1")&&(T=z)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<le)throw new RangeError("Out of range index");if(le<=O)return this;O=O>>>0,le=le===void 0?this.length:le>>>0,T||(T=0);let ne;if(typeof T=="number")for(ne=O;ne<le;++ne)this[ne]=T;else{const z=g.isBuffer(T)?T:g.from(T,N),ae=z.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(ne=0;ne<le-O;++ne)this[ne+O]=z[ne%ae]}return this};const mt={};function pt(Y,T,O){mt[Y]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Y}]`,this.stack,delete this.name}get code(){return Y}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${Y}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){return Y?`${Y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(Y,T){return`The "${Y}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(Y,T,O){let le=`The value of "${Y}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=kt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=kt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function kt(Y){let T="",O=Y.length;const le=Y[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${Y.slice(O-3,O)}${T}`;return`${Y.slice(0,O)}${T}`}function Ft(Y,T,O){Ht(T,"offset"),(Y[T]===void 0||Y[T+O]===void 0)&&Lt(T,Y.length-(O+1))}function Ct(Y,T,O,le,N,ne){if(Y>O||Y<T){const z=typeof T=="bigint"?"n":"";let ae;throw ne>3?T===0||T===BigInt(0)?ae=`>= 0${z} and < 2${z} ** ${(ne+1)*8}${z}`:ae=`>= -(2${z} ** ${(ne+1)*8-1}${z}) and < 2 ** ${(ne+1)*8-1}${z}`:ae=`>= ${T}${z} and <= ${O}${z}`,new mt.ERR_OUT_OF_RANGE("value",ae,Y)}Ft(le,N,ne)}function Ht(Y,T){if(typeof Y!="number")throw new mt.ERR_INVALID_ARG_TYPE(T,"number",Y)}function Lt(Y,T,O){throw Math.floor(Y)!==Y?(Ht(Y,O),new mt.ERR_OUT_OF_RANGE(O||"offset","an integer",Y)):T<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,Y)}const Vt=/[^+/0-9A-Za-z-_]/g;function Tt(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(Vt,""),Y.length<2)return"";for(;Y.length%4!=0;)Y=Y+"=";return Y}function Dt(Y,T){T=T||1/0;let O;const le=Y.length;let N=null;const ne=[];for(let z=0;z<le;++z){if(O=Y.charCodeAt(z),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&ne.push(239,191,189);continue}else if(z+1===le){(T-=3)>-1&&ne.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&ne.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&ne.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;ne.push(O)}else if(O<2048){if((T-=2)<0)break;ne.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;ne.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;ne.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return ne}function he(Y){const T=[];for(let O=0;O<Y.length;++O)T.push(Y.charCodeAt(O)&255);return T}function G(Y,T){let O,le,N;const ne=[];for(let z=0;z<Y.length&&!((T-=2)<0);++z)O=Y.charCodeAt(z),le=O>>8,N=O%256,ne.push(N),ne.push(le);return ne}function K(Y){return c.toByteArray(Tt(Y))}function we(Y,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=Y.length);++N)T[N+O]=Y[N];return N}function Ie(Y,T){return Y instanceof T||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===T.name}function $e(Y){return Y!==Y}const Ke=function(){const Y="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const le=O*16;for(let N=0;N<16;++N)T[le+N]=Y[O]+Y[N]}return T}();function P(Y){return typeof BigInt=="undefined"?Me:Y}function Me(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(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(W){return W.replace(/&#(\d+);/g,function(R,Q){return String.fromCharCode(parseInt(Q,10))})},A=function(W,R){return W&&typeof W=="string"&&R.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(R,Q){var M={},C=Q.ignoreQueryPrefix?R.replace(/^\?/,""):R,V=Q.parameterLimit===1/0?void 0:Q.parameterLimit,X=C.split(Q.delimiter,V),q=-1,Z,J=Q.charset;if(Q.charsetSentinel)for(Z=0;Z<X.length;++Z)X[Z].indexOf("utf8=")===0&&(X[Z]===L?J="utf-8":X[Z]===g&&(J="iso-8859-1"),q=Z,Z=X.length);for(Z=0;Z<X.length;++Z)if(Z!==q){var de=X[Z],re=de.indexOf("]="),ie=re===-1?de.indexOf("="):re+1,ye,xe;ie===-1?(ye=Q.decoder(de,d.decoder,J,"key"),xe=Q.strictNullHandling?null:""):(ye=Q.decoder(de.slice(0,ie),d.decoder,J,"key"),xe=c.maybeMap(A(de.slice(ie+1),Q),function(pe){return Q.decoder(pe,d.decoder,J,"value")})),xe&&Q.interpretNumericEntities&&J==="iso-8859-1"&&(xe=b(xe)),de.indexOf("[]=")>-1&&(xe=x(xe)?[xe]:xe),v.call(M,ye)?M[ye]=c.combine(M[ye],xe):M[ye]=xe}return M},B=function(W,R,Q,M){for(var C=M?R:A(R,Q),V=W.length-1;V>=0;--V){var X,q=W[V];if(q==="[]"&&Q.parseArrays)X=[].concat(C);else{X=Q.plainObjects?Object.create(null):{};var Z=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,J=parseInt(Z,10);!Q.parseArrays&&Z===""?X={0:C}:!isNaN(J)&&q!==Z&&String(J)===Z&&J>=0&&Q.parseArrays&&J<=Q.arrayLimit?(X=[],X[J]=C):X[Z]=C}C=X}return C},j=function(R,Q,M,C){if(!!R){var V=M.allowDots?R.replace(/\.([^.[]+)/g,"[$1]"):R,X=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Z=M.depth>0&&X.exec(V),J=Z?V.slice(0,Z.index):V,de=[];if(J){if(!M.plainObjects&&v.call(Object.prototype,J)&&!M.allowPrototypes)return;de.push(J)}for(var re=0;M.depth>0&&(Z=q.exec(V))!==null&&re<M.depth;){if(re+=1,!M.plainObjects&&v.call(Object.prototype,Z[1].slice(1,-1))&&!M.allowPrototypes)return;de.push(Z[1])}return Z&&de.push("["+V.slice(Z.index)+"]"),B(de,Q,M,C)}},ee=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 Q=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:Q,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(W,R){var Q=ee(R);if(W===""||W===null||typeof W=="undefined")return Q.plainObjects?Object.create(null):{};for(var M=typeof W=="string"?D(W,Q):W,C=Q.plainObjects?Object.create(null):{},V=Object.keys(M),X=0;X<V.length;++X){var q=V[X],Z=j(q,M[q],Q,typeof W=="string");C=c.merge(C,Z,Q)}return Q.allowSparse===!0?C:c.compact(C)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(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(Q,M){g.apply(Q,A(M)?M:[M])},D=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 D.call(M)},skipNulls:!1,strictNullHandling:!1},ee=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},W=function Q(M,C,V,X,q,Z,J,de,re,ie,ye,xe,pe,fe,se){var Fe=M;if(se.has(M))throw new RangeError("Cyclic object value");if(typeof J=="function"?Fe=J(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&A(Fe)&&(Fe=v.maybeMap(Fe,function(rt){return rt instanceof Date?ie(rt):rt})),Fe===null){if(X)return Z&&!pe?Z(C,j.encoder,fe,"key",ye):C;Fe=""}if(ee(Fe)||v.isBuffer(Fe)){if(Z){var De=pe?C:Z(C,j.encoder,fe,"key",ye);return[xe(De)+"="+xe(Z(Fe,j.encoder,fe,"value",ye))]}return[xe(C)+"="+xe(String(Fe))]}var Re=[];if(typeof Fe=="undefined")return Re;var Pe;if(V==="comma"&&A(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(A(J))Pe=J;else{var et=Object.keys(Fe);Pe=de?et.sort(de):et}for(var Qe=0;Qe<Pe.length;++Qe){var Je=Pe[Qe],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:Fe[Je];if(!(q&&ut===null)){var ht=A(Fe)?typeof V=="function"?V(C,Je):C:C+(re?"."+Je:"["+Je+"]");se.set(M,!0);var wt=c();L(Re,Q(ut,ht,V,X,q,Z,J,de,re,ie,ye,xe,pe,fe,wt))}}return Re},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 X=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:X,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(Q,M){var C=Q,V=R(M),X,q;typeof V.filter=="function"?(q=V.filter,C=q("",C)):A(V.filter)&&(q=V.filter,X=q);var Z=[];if(typeof C!="object"||C===null)return"";var J;M&&M.arrayFormat in b?J=M.arrayFormat:M&&"indices"in M?J=M.indices?"indices":"repeat":J="indices";var de=b[J];X||(X=Object.keys(C)),V.sort&&X.sort(V.sort);for(var re=c(),ie=0;ie<X.length;++ie){var ye=X[ie];V.skipNulls&&C[ye]===null||L(Z,W(C[ye],ye,de,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,re))}var xe=Z.join(V.delimiter),pe=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?pe+="utf8=%26%2310003%3B&":pe+="utf8=%E2%9C%93&"),xe.length>0?pe+xe:""}},58760:(h,I,a)=>{"use strict";var c=a(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(),X=V.obj[V.prop];if(x(X)){for(var q=[],Z=0;Z<X.length;++Z)typeof X[Z]!="undefined"&&q.push(X[Z]);V.obj[V.prop]=q}}},A=function(C,V){for(var X=V&&V.plainObjects?Object.create(null):{},q=0;q<C.length;++q)typeof C[q]!="undefined"&&(X[q]=C[q]);return X},g=function M(C,V,X){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(X&&(X.plainObjects||X.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,X)),x(C)&&x(V)?(V.forEach(function(Z,J){if(v.call(C,J)){var de=C[J];de&&typeof de=="object"&&Z&&typeof Z=="object"?C[J]=M(de,Z,X):C.push(Z)}else C[J]=Z}),C):Object.keys(V).reduce(function(Z,J){var de=V[J];return v.call(Z,J)?Z[J]=M(Z[J],de,X):Z[J]=de,Z},q)},L=function(C,V){return Object.keys(V).reduce(function(X,q){return X[q]=V[q],X},C)},D=function(M,C,V){var X=M.replace(/\+/g," ");if(V==="iso-8859-1")return X.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(X)}catch(q){return X}},B=function(C,V,X,q,Z){if(C.length===0)return C;var J=C;if(typeof C=="symbol"?J=Symbol.prototype.toString.call(C):typeof C!="string"&&(J=String(C)),X==="iso-8859-1")return escape(J).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var de="",re=0;re<J.length;++re){var ie=J.charCodeAt(re);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Z===c.RFC1738&&(ie===40||ie===41)){de+=J.charAt(re);continue}if(ie<128){de=de+d[ie];continue}if(ie<2048){de=de+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){de=de+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}re+=1,ie=65536+((ie&1023)<<10|J.charCodeAt(re)&1023),de+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return de},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],X=[],q=0;q<V.length;++q)for(var Z=V[q],J=Z.obj[Z.prop],de=Object.keys(J),re=0;re<de.length;++re){var ie=de[re],ye=J[ie];typeof ye=="object"&&ye!==null&&X.indexOf(ye)===-1&&(V.push({obj:J,prop:ie}),X.push(ye))}return b(V),C},ee=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=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)},Q=function(C,V){if(x(C)){for(var X=[],q=0;q<C.length;q+=1)X.push(V(C[q]));return X}return V(C)};h.exports={arrayToObject:A,assign:L,combine:R,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:ee,maybeMap:Q,merge:g}},13692:h=>{var I=h.exports=function(R){return new a(R)};function a(R){this.value=R}a.prototype.get=function(R){for(var Q=this.value,M=0;M<R.length;M++){var C=R[M];if(!Q||!W.call(Q,C)){Q=void 0;break}Q=Q[C]}return Q},a.prototype.has=function(R){for(var Q=this.value,M=0;M<R.length;M++){var C=R[M];if(!Q||!W.call(Q,C))return!1;Q=Q[C]}return!0},a.prototype.set=function(R,Q){for(var M=this.value,C=0;C<R.length-1;C++){var V=R[C];W.call(M,V)||(M[V]={}),M=M[V]}return M[R[C]]=Q,Q},a.prototype.map=function(R){return c(this.value,R,!0)},a.prototype.forEach=function(R){return this.value=c(this.value,R,!1),this.value},a.prototype.reduce=function(R,Q){var M=arguments.length===1,C=M?this.value:Q;return this.forEach(function(V){(!this.isRoot||!M)&&(C=R.call(this,C,V))}),C},a.prototype.paths=function(){var R=[];return this.forEach(function(Q){R.push(this.path)}),R},a.prototype.nodes=function(){var R=[];return this.forEach(function(Q){R.push(this.node)}),R},a.prototype.clone=function(){var R=[],Q=[];return function M(C){for(var V=0;V<R.length;V++)if(R[V]===C)return Q[V];if(typeof C=="object"&&C!==null){var X=v(C);return R.push(C),Q.push(X),ee(x(C),function(q){X[q]=M(C[q])}),R.pop(),Q.pop(),X}else return C}(this.value)};function c(R,Q,M){var C=[],V=[],X=!0;return function q(Z){var J=M?v(Z):Z,de={},re=!0,ie={node:J,node_:Z,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(pe,fe){ie.isRoot||(ie.parent.node[ie.key]=pe),ie.node=pe,fe&&(re=!1)},delete:function(pe){delete ie.parent.node[ie.key],pe&&(re=!1)},remove:function(pe){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],pe&&(re=!1)},keys:null,before:function(pe){de.before=pe},after:function(pe){de.after=pe},pre:function(pe){de.pre=pe},post:function(pe){de.post=pe},stop:function(){X=!1},block:function(){re=!1}};if(!X)return ie;function ye(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var pe=0;pe<V.length;pe++)if(V[pe].node_===Z){ie.circular=V[pe];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}ye();var xe=Q.call(ie,ie.node);return xe!==void 0&&ie.update&&ie.update(xe),de.before&&de.before.call(ie,ie.node),re&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),ye(),ee(ie.keys,function(pe,fe){C.push(pe),de.pre&&de.pre.call(ie,ie.node[pe],pe);var se=q(ie.node[pe]);M&&W.call(ie.node,pe)&&(ie.node[pe]=se.node),se.isLast=fe==ie.keys.length-1,se.isFirst=fe==0,de.post&&de.post.call(ie,se),C.pop()}),V.pop()),de.after&&de.after.call(ie,ie.node)),ie}(R).node}function v(R){if(typeof R=="object"&&R!==null){var Q;if(j(R))Q=[];else if(b(R))Q=new Date(R.getTime?R.getTime():R);else if(A(R))Q=new RegExp(R);else if(g(R))Q={message:R.message};else if(L(R))Q=new Boolean(R);else if(D(R))Q=new Number(R);else if(B(R))Q=new String(R);else if(Object.create&&Object.getPrototypeOf)Q=Object.create(Object.getPrototypeOf(R));else if(R.constructor===Object)Q={};else{var M=R.constructor&&R.constructor.prototype||R.__proto__||{},C=function(){};C.prototype=M,Q=new C}return ee(x(R),function(V){Q[V]=R[V]}),Q}else return R}var x=Object.keys||function(Q){var M=[];for(var C in Q)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 D(R){return d(R)==="[object Number]"}function B(R){return d(R)==="[object String]"}var j=Array.isArray||function(Q){return Object.prototype.toString.call(Q)==="[object Array]"},ee=function(R,Q){if(R.forEach)return R.forEach(Q);for(var M=0;M<R.length;M++)Q(R[M],M,R)};ee(x(a.prototype),function(R){I[R]=function(Q){var M=[].slice.call(arguments,1),C=new a(Q);return C[R].apply(C,M)}});var W=Object.hasOwnProperty||function(R,Q){return Q 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:()=>{}}]);
518
+ */const c=a(79742),v=a(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 Y=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(Y,T),Y.foo()===42}catch(Y){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 S(Y){if(Y>d)throw new RangeError('The value "'+Y+'" is invalid for option "size"');const T=new Uint8Array(Y);return Object.setPrototypeOf(T,g.prototype),T}function g(Y,T,O){if(typeof Y=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(Y)}return L(Y,T,O)}g.poolSize=8192;function L(Y,T,O){if(typeof Y=="string")return ee(Y,T);if(ArrayBuffer.isView(Y))return R(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(Ie(Y,ArrayBuffer)||Y&&Ie(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(Y,SharedArrayBuffer)||Y&&Ie(Y.buffer,SharedArrayBuffer)))return Q(Y,T,O);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=Y.valueOf&&Y.valueOf();if(le!=null&&le!==Y)return g.from(le,T,O);const N=M(Y);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return g.from(Y[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}g.from=function(Y,T,O){return L(Y,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function B(Y,T,O){return D(Y),Y<=0?S(Y):T!==void 0?typeof O=="string"?S(Y).fill(T,O):S(Y).fill(T):S(Y)}g.alloc=function(Y,T,O){return B(Y,T,O)};function j(Y){return D(Y),S(Y<0?0:C(Y)|0)}g.allocUnsafe=function(Y){return j(Y)},g.allocUnsafeSlow=function(Y){return j(Y)};function ee(Y,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=X(Y,T)|0;let le=S(O);const N=le.write(Y,T);return N!==O&&(le=le.slice(0,N)),le}function W(Y){const T=Y.length<0?0:C(Y.length)|0,O=S(T);for(let le=0;le<T;le+=1)O[le]=Y[le]&255;return O}function R(Y){if(Ie(Y,Uint8Array)){const T=new Uint8Array(Y);return Q(T.buffer,T.byteOffset,T.byteLength)}return W(Y)}function Q(Y,T,O){if(T<0||Y.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let le;return T===void 0&&O===void 0?le=new Uint8Array(Y):O===void 0?le=new Uint8Array(Y,T):le=new Uint8Array(Y,T,O),Object.setPrototypeOf(le,g.prototype),le}function M(Y){if(g.isBuffer(Y)){const T=C(Y.length)|0,O=S(T);return O.length===0||Y.copy(O,0,0,T),O}if(Y.length!==void 0)return typeof Y.length!="number"||Ge(Y.length)?S(0):W(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return W(Y.data)}function C(Y){if(Y>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return Y|0}function V(Y){return+Y!=Y&&(Y=0),g.alloc(+Y)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let le=T.length,N=O.length;for(let re=0,z=Math.min(le,N);re<z;++re)if(T[re]!==O[re]){le=T[re],N=O[re];break}return le<N?-1:N<le?1:0},g.isEncoding=function(T){switch(String(T).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(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let le;if(O===void 0)for(O=0,le=0;le<T.length;++le)O+=T[le].length;const N=g.allocUnsafe(O);let re=0;for(le=0;le<T.length;++le){let z=T[le];if(Ie(z,Uint8Array))re+z.length>N.length?(g.isBuffer(z)||(z=g.from(z)),z.copy(N,re)):Uint8Array.prototype.set.call(N,z,re);else if(g.isBuffer(z))z.copy(N,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=z.length}return N};function X(Y,T){if(g.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||Ie(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);const O=Y.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Nt(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return K(Y).length;default:if(N)return le?-1:Nt(Y).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=X;function q(Y,T,O){let le=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return tt(this,T,O);case"utf8":case"utf-8":return se(this,T,O);case"ascii":return Re(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Z(Y,T,O){const le=Y[T];Y[T]=Y[O],Y[O]=le}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Z(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Z(this,O,O+3),Z(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Z(this,O,O+7),Z(this,O+1,O+6),Z(this,O+2,O+5),Z(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?se(this,0,T):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,le,N,re){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),le===void 0&&(le=T?T.length:0),N===void 0&&(N=0),re===void 0&&(re=this.length),O<0||le>T.length||N<0||re>this.length)throw new RangeError("out of range index");if(N>=re&&O>=le)return 0;if(N>=re)return-1;if(O>=le)return 1;if(O>>>=0,le>>>=0,N>>>=0,re>>>=0,this===T)return 0;let z=re-N,oe=le-O;const Oe=Math.min(z,oe),Ae=this.slice(N,re),Ve=T.slice(O,le);for(let Le=0;Le<Oe;++Le)if(Ae[Le]!==Ve[Le]){z=Ae[Le],oe=Ve[Le];break}return z<oe?-1:oe<z?1:0};function J(Y,T,O,le,N){if(Y.length===0)return-1;if(typeof O=="string"?(le=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:Y.length-1),O<0&&(O=Y.length+O),O>=Y.length){if(N)return-1;O=Y.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,le)),g.isBuffer(T))return T.length===0?-1:de(Y,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(Y,T,O):Uint8Array.prototype.lastIndexOf.call(Y,T,O):de(Y,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function de(Y,T,O,le,N){let re=1,z=Y.length,oe=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(Y.length<2||T.length<2)return-1;re=2,z/=2,oe/=2,O/=2}function Oe(Ve,Le){return re===1?Ve[Le]:Ve.readUInt16BE(Le*re)}let Ae;if(N){let Ve=-1;for(Ae=O;Ae<z;Ae++)if(Oe(Y,Ae)===Oe(T,Ve===-1?0:Ae-Ve)){if(Ve===-1&&(Ve=Ae),Ae-Ve+1===oe)return Ve*re}else Ve!==-1&&(Ae-=Ae-Ve),Ve=-1}else for(O+oe>z&&(O=z-oe),Ae=O;Ae>=0;Ae--){let Ve=!0;for(let Le=0;Le<oe;Le++)if(Oe(Y,Ae+Le)!==Oe(T,Le)){Ve=!1;break}if(Ve)return Ae}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return J(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return J(this,T,O,le,!1)};function te(Y,T,O,le){O=Number(O)||0;const N=Y.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const re=T.length;le>re/2&&(le=re/2);let z;for(z=0;z<le;++z){const oe=parseInt(T.substr(z*2,2),16);if(Ge(oe))return z;Y[O+z]=oe}return z}function ae(Y,T,O,le){return we(Nt(T,Y.length-O),Y,O,le)}function ye(Y,T,O,le){return we(he(T),Y,O,le)}function xe(Y,T,O,le){return we(K(T),Y,O,le)}function pe(Y,T,O,le){return we(G(T,Y.length-O),Y,O,le)}g.prototype.write=function(T,O,le,N){if(O===void 0)N="utf8",le=this.length,O=0;else if(le===void 0&&typeof O=="string")N=O,le=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(le)?(le=le>>>0,N===void 0&&(N="utf8")):(N=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const re=this.length-O;if((le===void 0||le>re)&&(le=re),T.length>0&&(le<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let z=!1;for(;;)switch(N){case"hex":return te(this,T,O,le);case"utf8":case"utf-8":return ae(this,T,O,le);case"ascii":case"latin1":case"binary":return ye(this,T,O,le);case"base64":return xe(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,T,O,le);default:if(z)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),z=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(Y,T,O){return T===0&&O===Y.length?c.fromByteArray(Y):c.fromByteArray(Y.slice(T,O))}function se(Y,T,O){O=Math.min(Y.length,O);const le=[];let N=T;for(;N<O;){const re=Y[N];let z=null,oe=re>239?4:re>223?3:re>191?2:1;if(N+oe<=O){let Oe,Ae,Ve,Le;switch(oe){case 1:re<128&&(z=re);break;case 2:Oe=Y[N+1],(Oe&192)==128&&(Le=(re&31)<<6|Oe&63,Le>127&&(z=Le));break;case 3:Oe=Y[N+1],Ae=Y[N+2],(Oe&192)==128&&(Ae&192)==128&&(Le=(re&15)<<12|(Oe&63)<<6|Ae&63,Le>2047&&(Le<55296||Le>57343)&&(z=Le));break;case 4:Oe=Y[N+1],Ae=Y[N+2],Ve=Y[N+3],(Oe&192)==128&&(Ae&192)==128&&(Ve&192)==128&&(Le=(re&15)<<18|(Oe&63)<<12|(Ae&63)<<6|Ve&63,Le>65535&&Le<1114112&&(z=Le))}}z===null?(z=65533,oe=1):z>65535&&(z-=65536,le.push(z>>>10&1023|55296),z=56320|z&1023),le.push(z),N+=oe}return De(le)}const Fe=4096;function De(Y){const T=Y.length;if(T<=Fe)return String.fromCharCode.apply(String,Y);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,Y.slice(le,le+=Fe));return O}function Re(Y,T,O){let le="";O=Math.min(Y.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(Y[N]&127);return le}function Pe(Y,T,O){let le="";O=Math.min(Y.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(Y[N]);return le}function tt(Y,T,O){const le=Y.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let re=T;re<O;++re)N+=Ke[Y[re]];return N}function Qe(Y,T,O){const le=Y.slice(T,O);let N="";for(let re=0;re<le.length-1;re+=2)N+=String.fromCharCode(le[re]+le[re+1]*256);return N}g.prototype.slice=function(T,O){const le=this.length;T=~~T,O=O===void 0?le:~~O,T<0?(T+=le,T<0&&(T=0)):T>le&&(T=le),O<0?(O+=le,O<0&&(O=0)):O>le&&(O=le),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Je(Y,T,O){if(Y%1!=0||Y<0)throw new RangeError("offset is not uint");if(Y+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T],re=1,z=0;for(;++z<O&&(re*=256);)N+=this[T+z]*re;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T+--O],re=1;for(;O>0&&(re*=256);)N+=this[T+--O]*re;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Je(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Dt(T,this.length-8);const N=O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24),re=this[++T]+this[++T]*mr(2,8)+this[++T]*mr(2,16)+le*mr(2,24);return BigInt(N)+(BigInt(re)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Dt(T,this.length-8);const N=O*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T],re=this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+le;return(BigInt(N)<<BigInt(32))+BigInt(re)}),g.prototype.readIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=this[T],re=1,z=0;for(;++z<O&&(re*=256);)N+=this[T+z]*re;return re*=128,N>=re&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Je(T,O,this.length);let N=O,re=1,z=this[T+--N];for(;N>0&&(re*=256);)z+=this[T+--N]*re;return re*=128,z>=re&&(z-=Math.pow(2,8*O)),z},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Je(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const le=this[T]|this[T+1]<<8;return le&32768?le|4294901760:le},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Je(T,2,this.length);const le=this[T+1]|this[T]<<8;return le&32768?le|4294901760:le},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Dt(T,this.length-8);const N=this[T+4]+this[T+5]*mr(2,8)+this[T+6]*mr(2,16)+(le<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&Dt(T,this.length-8);const N=(O<<24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+le)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Je(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Je(T,8,this.length),v.read(this,T,!1,52,8)};function ut(Y,T,O,le,N,re){if(!g.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<re)throw new RangeError('"value" argument is out of bounds');if(O+le>Y.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const oe=Math.pow(2,8*le)-1;ut(this,T,O,le,oe,0)}let re=1,z=0;for(this[O]=T&255;++z<le&&(re*=256);)this[O+z]=T/re&255;return O+le},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const oe=Math.pow(2,8*le)-1;ut(this,T,O,le,oe,0)}let re=le-1,z=1;for(this[O+re]=T&255;--re>=0&&(z*=256);)this[O+re]=T/z&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function pt(Y,T,O,le,N){Ct(T,le,N,Y,O,7);let re=Number(T&BigInt(4294967295));Y[O++]=re,re=re>>8,Y[O++]=re,re=re>>8,Y[O++]=re,re=re>>8,Y[O++]=re;let z=Number(T>>BigInt(32)&BigInt(4294967295));return Y[O++]=z,z=z>>8,Y[O++]=z,z=z>>8,Y[O++]=z,z=z>>8,Y[O++]=z,O}function wt(Y,T,O,le,N){Ct(T,le,N,Y,O,7);let re=Number(T&BigInt(4294967295));Y[O+7]=re,re=re>>8,Y[O+6]=re,re=re>>8,Y[O+5]=re,re=re>>8,Y[O+4]=re;let z=Number(T>>BigInt(32)&BigInt(4294967295));return Y[O+3]=z,z=z>>8,Y[O+2]=z,z=z>>8,Y[O+1]=z,z=z>>8,Y[O]=z,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return pt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return wt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const Oe=Math.pow(2,8*le-1);ut(this,T,O,le,Oe-1,-Oe)}let re=0,z=1,oe=0;for(this[O]=T&255;++re<le&&(z*=256);)T<0&&oe===0&&this[O+re-1]!==0&&(oe=1),this[O+re]=(T/z>>0)-oe&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const Oe=Math.pow(2,8*le-1);ut(this,T,O,le,Oe-1,-Oe)}let re=le-1,z=1,oe=0;for(this[O+re]=T&255;--re>=0&&(z*=256);)T<0&&oe===0&&this[O+re+1]!==0&&(oe=1),this[O+re]=(T/z>>0)-oe&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ut(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return pt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return wt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function rt(Y,T,O,le,N,re){if(O+le>Y.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function lt(Y,T,O,le,N){return T=+T,O=O>>>0,N||rt(Y,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(Y,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return lt(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return lt(this,T,O,!1,le)};function yt(Y,T,O,le,N){return T=+T,O=O>>>0,N||rt(Y,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(Y,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return yt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return yt(this,T,O,!1,le)},g.prototype.copy=function(T,O,le,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(le||(le=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<le&&(N=le),N===le||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-le&&(N=T.length-O+le);const re=N-le;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,le,N):Uint8Array.prototype.set.call(T,this.subarray(le,N),O),re},g.prototype.fill=function(T,O,le,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,le=this.length):typeof le=="string"&&(N=le,le=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const z=T.charCodeAt(0);(N==="utf8"&&z<128||N==="latin1")&&(T=z)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<le)throw new RangeError("Out of range index");if(le<=O)return this;O=O>>>0,le=le===void 0?this.length:le>>>0,T||(T=0);let re;if(typeof T=="number")for(re=O;re<le;++re)this[re]=T;else{const z=g.isBuffer(T)?T:g.from(T,N),oe=z.length;if(oe===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(re=0;re<le-O;++re)this[re+O]=z[re%oe]}return this};const mt={};function dt(Y,T,O){mt[Y]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Y}]`,this.stack,delete this.name}get code(){return Y}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${Y}]: ${this.message}`}}}dt("ERR_BUFFER_OUT_OF_BOUNDS",function(Y){return Y?`${Y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),dt("ERR_INVALID_ARG_TYPE",function(Y,T){return`The "${Y}" argument must be of type number. Received type ${typeof T}`},TypeError),dt("ERR_OUT_OF_RANGE",function(Y,T,O){let le=`The value of "${Y}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=Rt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=Rt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function Rt(Y){let T="",O=Y.length;const le=Y[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${Y.slice(O-3,O)}${T}`;return`${Y.slice(0,O)}${T}`}function kt(Y,T,O){Wt(T,"offset"),(Y[T]===void 0||Y[T+O]===void 0)&&Dt(T,Y.length-(O+1))}function Ct(Y,T,O,le,N,re){if(Y>O||Y<T){const z=typeof T=="bigint"?"n":"";let oe;throw re>3?T===0||T===BigInt(0)?oe=`>= 0${z} and < 2${z} ** ${(re+1)*8}${z}`:oe=`>= -(2${z} ** ${(re+1)*8-1}${z}) and < 2 ** ${(re+1)*8-1}${z}`:oe=`>= ${T}${z} and <= ${O}${z}`,new mt.ERR_OUT_OF_RANGE("value",oe,Y)}kt(le,N,re)}function Wt(Y,T){if(typeof Y!="number")throw new mt.ERR_INVALID_ARG_TYPE(T,"number",Y)}function Dt(Y,T,O){throw Math.floor(Y)!==Y?(Wt(Y,O),new mt.ERR_OUT_OF_RANGE(O||"offset","an integer",Y)):T<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,Y)}const Vt=/[^+/0-9A-Za-z-_]/g;function Tt(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(Vt,""),Y.length<2)return"";for(;Y.length%4!=0;)Y=Y+"=";return Y}function Nt(Y,T){T=T||1/0;let O;const le=Y.length;let N=null;const re=[];for(let z=0;z<le;++z){if(O=Y.charCodeAt(z),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&re.push(239,191,189);continue}else if(z+1===le){(T-=3)>-1&&re.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&re.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&re.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;re.push(O)}else if(O<2048){if((T-=2)<0)break;re.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;re.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;re.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return re}function he(Y){const T=[];for(let O=0;O<Y.length;++O)T.push(Y.charCodeAt(O)&255);return T}function G(Y,T){let O,le,N;const re=[];for(let z=0;z<Y.length&&!((T-=2)<0);++z)O=Y.charCodeAt(z),le=O>>8,N=O%256,re.push(N),re.push(le);return re}function K(Y){return c.toByteArray(Tt(Y))}function we(Y,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=Y.length);++N)T[N+O]=Y[N];return N}function Ie(Y,T){return Y instanceof T||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===T.name}function Ge(Y){return Y!==Y}const Ke=function(){const Y="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const le=O*16;for(let N=0;N<16;++N)T[le+N]=Y[O]+Y[N]}return T}();function P(Y){return typeof BigInt=="undefined"?Me:Y}function Me(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(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(W){return W.replace(/&#(\d+);/g,function(R,Q){return String.fromCharCode(parseInt(Q,10))})},S=function(W,R){return W&&typeof W=="string"&&R.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(R,Q){var M={},C=Q.ignoreQueryPrefix?R.replace(/^\?/,""):R,V=Q.parameterLimit===1/0?void 0:Q.parameterLimit,X=C.split(Q.delimiter,V),q=-1,Z,J=Q.charset;if(Q.charsetSentinel)for(Z=0;Z<X.length;++Z)X[Z].indexOf("utf8=")===0&&(X[Z]===L?J="utf-8":X[Z]===g&&(J="iso-8859-1"),q=Z,Z=X.length);for(Z=0;Z<X.length;++Z)if(Z!==q){var de=X[Z],te=de.indexOf("]="),ae=te===-1?de.indexOf("="):te+1,ye,xe;ae===-1?(ye=Q.decoder(de,d.decoder,J,"key"),xe=Q.strictNullHandling?null:""):(ye=Q.decoder(de.slice(0,ae),d.decoder,J,"key"),xe=c.maybeMap(S(de.slice(ae+1),Q),function(pe){return Q.decoder(pe,d.decoder,J,"value")})),xe&&Q.interpretNumericEntities&&J==="iso-8859-1"&&(xe=b(xe)),de.indexOf("[]=")>-1&&(xe=x(xe)?[xe]:xe),v.call(M,ye)?M[ye]=c.combine(M[ye],xe):M[ye]=xe}return M},B=function(W,R,Q,M){for(var C=M?R:S(R,Q),V=W.length-1;V>=0;--V){var X,q=W[V];if(q==="[]"&&Q.parseArrays)X=[].concat(C);else{X=Q.plainObjects?Object.create(null):{};var Z=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,J=parseInt(Z,10);!Q.parseArrays&&Z===""?X={0:C}:!isNaN(J)&&q!==Z&&String(J)===Z&&J>=0&&Q.parseArrays&&J<=Q.arrayLimit?(X=[],X[J]=C):X[Z]=C}C=X}return C},j=function(R,Q,M,C){if(!!R){var V=M.allowDots?R.replace(/\.([^.[]+)/g,"[$1]"):R,X=/(\[[^[\]]*])/,q=/(\[[^[\]]*])/g,Z=M.depth>0&&X.exec(V),J=Z?V.slice(0,Z.index):V,de=[];if(J){if(!M.plainObjects&&v.call(Object.prototype,J)&&!M.allowPrototypes)return;de.push(J)}for(var te=0;M.depth>0&&(Z=q.exec(V))!==null&&te<M.depth;){if(te+=1,!M.plainObjects&&v.call(Object.prototype,Z[1].slice(1,-1))&&!M.allowPrototypes)return;de.push(Z[1])}return Z&&de.push("["+V.slice(Z.index)+"]"),B(de,Q,M,C)}},ee=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 Q=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:Q,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(W,R){var Q=ee(R);if(W===""||W===null||typeof W=="undefined")return Q.plainObjects?Object.create(null):{};for(var M=typeof W=="string"?D(W,Q):W,C=Q.plainObjects?Object.create(null):{},V=Object.keys(M),X=0;X<V.length;++X){var q=V[X],Z=j(q,M[q],Q,typeof W=="string");C=c.merge(C,Z,Q)}return Q.allowSparse===!0?C:c.compact(C)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(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}},S=Array.isArray,g=Array.prototype.push,L=function(Q,M){g.apply(Q,S(M)?M:[M])},D=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 D.call(M)},skipNulls:!1,strictNullHandling:!1},ee=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},W=function Q(M,C,V,X,q,Z,J,de,te,ae,ye,xe,pe,fe,se){var Fe=M;if(se.has(M))throw new RangeError("Cyclic object value");if(typeof J=="function"?Fe=J(C,Fe):Fe instanceof Date?Fe=ae(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(rt){return rt instanceof Date?ae(rt):rt})),Fe===null){if(X)return Z&&!pe?Z(C,j.encoder,fe,"key",ye):C;Fe=""}if(ee(Fe)||v.isBuffer(Fe)){if(Z){var De=pe?C:Z(C,j.encoder,fe,"key",ye);return[xe(De)+"="+xe(Z(Fe,j.encoder,fe,"value",ye))]}return[xe(C)+"="+xe(String(Fe))]}var Re=[];if(typeof Fe=="undefined")return Re;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(J))Pe=J;else{var tt=Object.keys(Fe);Pe=de?tt.sort(de):tt}for(var Qe=0;Qe<Pe.length;++Qe){var Je=Pe[Qe],ut=typeof Je=="object"&&Je.value!==void 0?Je.value:Fe[Je];if(!(q&&ut===null)){var pt=S(Fe)?typeof V=="function"?V(C,Je):C:C+(te?"."+Je:"["+Je+"]");se.set(M,!0);var wt=c();L(Re,Q(ut,pt,V,X,q,Z,J,de,te,ae,ye,xe,pe,fe,wt))}}return Re},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 X=x.formatters[V],q=j.filter;return(typeof M.filter=="function"||S(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:X,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(Q,M){var C=Q,V=R(M),X,q;typeof V.filter=="function"?(q=V.filter,C=q("",C)):S(V.filter)&&(q=V.filter,X=q);var Z=[];if(typeof C!="object"||C===null)return"";var J;M&&M.arrayFormat in b?J=M.arrayFormat:M&&"indices"in M?J=M.indices?"indices":"repeat":J="indices";var de=b[J];X||(X=Object.keys(C)),V.sort&&X.sort(V.sort);for(var te=c(),ae=0;ae<X.length;++ae){var ye=X[ae];V.skipNulls&&C[ye]===null||L(Z,W(C[ye],ye,de,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 xe=Z.join(V.delimiter),pe=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?pe+="utf8=%26%2310003%3B&":pe+="utf8=%E2%9C%93&"),xe.length>0?pe+xe:""}},58760:(h,I,a)=>{"use strict";var c=a(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(),X=V.obj[V.prop];if(x(X)){for(var q=[],Z=0;Z<X.length;++Z)typeof X[Z]!="undefined"&&q.push(X[Z]);V.obj[V.prop]=q}}},S=function(C,V){for(var X=V&&V.plainObjects?Object.create(null):{},q=0;q<C.length;++q)typeof C[q]!="undefined"&&(X[q]=C[q]);return X},g=function M(C,V,X){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(X&&(X.plainObjects||X.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=S(C,X)),x(C)&&x(V)?(V.forEach(function(Z,J){if(v.call(C,J)){var de=C[J];de&&typeof de=="object"&&Z&&typeof Z=="object"?C[J]=M(de,Z,X):C.push(Z)}else C[J]=Z}),C):Object.keys(V).reduce(function(Z,J){var de=V[J];return v.call(Z,J)?Z[J]=M(Z[J],de,X):Z[J]=de,Z},q)},L=function(C,V){return Object.keys(V).reduce(function(X,q){return X[q]=V[q],X},C)},D=function(M,C,V){var X=M.replace(/\+/g," ");if(V==="iso-8859-1")return X.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(X)}catch(q){return X}},B=function(C,V,X,q,Z){if(C.length===0)return C;var J=C;if(typeof C=="symbol"?J=Symbol.prototype.toString.call(C):typeof C!="string"&&(J=String(C)),X==="iso-8859-1")return escape(J).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var de="",te=0;te<J.length;++te){var ae=J.charCodeAt(te);if(ae===45||ae===46||ae===95||ae===126||ae>=48&&ae<=57||ae>=65&&ae<=90||ae>=97&&ae<=122||Z===c.RFC1738&&(ae===40||ae===41)){de+=J.charAt(te);continue}if(ae<128){de=de+d[ae];continue}if(ae<2048){de=de+(d[192|ae>>6]+d[128|ae&63]);continue}if(ae<55296||ae>=57344){de=de+(d[224|ae>>12]+d[128|ae>>6&63]+d[128|ae&63]);continue}te+=1,ae=65536+((ae&1023)<<10|J.charCodeAt(te)&1023),de+=d[240|ae>>18]+d[128|ae>>12&63]+d[128|ae>>6&63]+d[128|ae&63]}return de},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],X=[],q=0;q<V.length;++q)for(var Z=V[q],J=Z.obj[Z.prop],de=Object.keys(J),te=0;te<de.length;++te){var ae=de[te],ye=J[ae];typeof ye=="object"&&ye!==null&&X.indexOf(ye)===-1&&(V.push({obj:J,prop:ae}),X.push(ye))}return b(V),C},ee=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=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)},Q=function(C,V){if(x(C)){for(var X=[],q=0;q<C.length;q+=1)X.push(V(C[q]));return X}return V(C)};h.exports={arrayToObject:S,assign:L,combine:R,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:ee,maybeMap:Q,merge:g}},13692:h=>{var I=h.exports=function(R){return new a(R)};function a(R){this.value=R}a.prototype.get=function(R){for(var Q=this.value,M=0;M<R.length;M++){var C=R[M];if(!Q||!W.call(Q,C)){Q=void 0;break}Q=Q[C]}return Q},a.prototype.has=function(R){for(var Q=this.value,M=0;M<R.length;M++){var C=R[M];if(!Q||!W.call(Q,C))return!1;Q=Q[C]}return!0},a.prototype.set=function(R,Q){for(var M=this.value,C=0;C<R.length-1;C++){var V=R[C];W.call(M,V)||(M[V]={}),M=M[V]}return M[R[C]]=Q,Q},a.prototype.map=function(R){return c(this.value,R,!0)},a.prototype.forEach=function(R){return this.value=c(this.value,R,!1),this.value},a.prototype.reduce=function(R,Q){var M=arguments.length===1,C=M?this.value:Q;return this.forEach(function(V){(!this.isRoot||!M)&&(C=R.call(this,C,V))}),C},a.prototype.paths=function(){var R=[];return this.forEach(function(Q){R.push(this.path)}),R},a.prototype.nodes=function(){var R=[];return this.forEach(function(Q){R.push(this.node)}),R},a.prototype.clone=function(){var R=[],Q=[];return function M(C){for(var V=0;V<R.length;V++)if(R[V]===C)return Q[V];if(typeof C=="object"&&C!==null){var X=v(C);return R.push(C),Q.push(X),ee(x(C),function(q){X[q]=M(C[q])}),R.pop(),Q.pop(),X}else return C}(this.value)};function c(R,Q,M){var C=[],V=[],X=!0;return function q(Z){var J=M?v(Z):Z,de={},te=!0,ae={node:J,node_:Z,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(pe,fe){ae.isRoot||(ae.parent.node[ae.key]=pe),ae.node=pe,fe&&(te=!1)},delete:function(pe){delete ae.parent.node[ae.key],pe&&(te=!1)},remove:function(pe){j(ae.parent.node)?ae.parent.node.splice(ae.key,1):delete ae.parent.node[ae.key],pe&&(te=!1)},keys:null,before:function(pe){de.before=pe},after:function(pe){de.after=pe},pre:function(pe){de.pre=pe},post:function(pe){de.post=pe},stop:function(){X=!1},block:function(){te=!1}};if(!X)return ae;function ye(){if(typeof ae.node=="object"&&ae.node!==null){(!ae.keys||ae.node_!==ae.node)&&(ae.keys=x(ae.node)),ae.isLeaf=ae.keys.length==0;for(var pe=0;pe<V.length;pe++)if(V[pe].node_===Z){ae.circular=V[pe];break}}else ae.isLeaf=!0,ae.keys=null;ae.notLeaf=!ae.isLeaf,ae.notRoot=!ae.isRoot}ye();var xe=Q.call(ae,ae.node);return xe!==void 0&&ae.update&&ae.update(xe),de.before&&de.before.call(ae,ae.node),te&&(typeof ae.node=="object"&&ae.node!==null&&!ae.circular&&(V.push(ae),ye(),ee(ae.keys,function(pe,fe){C.push(pe),de.pre&&de.pre.call(ae,ae.node[pe],pe);var se=q(ae.node[pe]);M&&W.call(ae.node,pe)&&(ae.node[pe]=se.node),se.isLast=fe==ae.keys.length-1,se.isFirst=fe==0,de.post&&de.post.call(ae,se),C.pop()}),V.pop()),de.after&&de.after.call(ae,ae.node)),ae}(R).node}function v(R){if(typeof R=="object"&&R!==null){var Q;if(j(R))Q=[];else if(b(R))Q=new Date(R.getTime?R.getTime():R);else if(S(R))Q=new RegExp(R);else if(g(R))Q={message:R.message};else if(L(R))Q=new Boolean(R);else if(D(R))Q=new Number(R);else if(B(R))Q=new String(R);else if(Object.create&&Object.getPrototypeOf)Q=Object.create(Object.getPrototypeOf(R));else if(R.constructor===Object)Q={};else{var M=R.constructor&&R.constructor.prototype||R.__proto__||{},C=function(){};C.prototype=M,Q=new C}return ee(x(R),function(V){Q[V]=R[V]}),Q}else return R}var x=Object.keys||function(Q){var M=[];for(var C in Q)M.push(C);return M};function d(R){return Object.prototype.toString.call(R)}function b(R){return d(R)==="[object Date]"}function S(R){return d(R)==="[object RegExp]"}function g(R){return d(R)==="[object Error]"}function L(R){return d(R)==="[object Boolean]"}function D(R){return d(R)==="[object Number]"}function B(R){return d(R)==="[object String]"}var j=Array.isArray||function(Q){return Object.prototype.toString.call(Q)==="[object Array]"},ee=function(R,Q){if(R.forEach)return R.forEach(Q);for(var M=0;M<R.length;M++)Q(R[M],M,R)};ee(x(a.prototype),function(R){I[R]=function(Q){var M=[].slice.call(arguments,1),C=new a(Q);return C[R].apply(C,M)}});var W=Object.hasOwnProperty||function(R,Q){return Q 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:()=>{}}]);