@redocly/reference-docs 3.0.0-alpha.5 → 3.0.0-alpha.7

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 (122) hide show
  1. package/bin/cli/commands/redocly-docs-cli.min.js +452 -454
  2. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
  3. package/dist/console.redocly-reference-docs.min.js +60 -61
  4. package/dist/oauth2-redirect.js +1 -1
  5. package/dist/redocly-reference-docs.min.js +1072 -1061
  6. package/lib/components/NextSectionButton.d.ts +1 -1
  7. package/lib/components/NextSectionButton.js +1 -1
  8. package/lib/components/Panel/ResponsePanel.js +1 -1
  9. package/lib/components/console/Console.js +1 -1
  10. package/lib/components/console/RequestBody/RequestBody.js +1 -1
  11. package/lib/components/console/ResponsePanel.js +1 -1
  12. package/lib/components/console/ServerVariable.d.ts +1 -1
  13. package/lib/components/console/ServerVariable.js +1 -1
  14. package/lib/components/console/utils.d.ts +3 -0
  15. package/lib/components/console/utils.js +1 -1
  16. package/lib/components/styled.elements.js +1 -1
  17. package/lib/redoc-lib/src/common-elements/LinkToField.js +1 -1
  18. package/lib/redoc-lib/src/common-elements/icons.d.ts +0 -5
  19. package/lib/redoc-lib/src/common-elements/icons.js +1 -1
  20. package/lib/redoc-lib/src/common-elements/mixins.js +1 -1
  21. package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +1 -1
  22. package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +11 -0
  23. package/lib/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
  24. package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
  25. package/lib/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
  26. package/lib/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
  27. package/lib/redoc-lib/src/components/Markdown/Markdown.js +1 -1
  28. package/lib/redoc-lib/src/components/Markdown/index.d.ts +1 -0
  29. package/lib/redoc-lib/src/components/Markdown/index.js +1 -1
  30. package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  31. package/lib/redoc-lib/src/components/Operation/index.d.ts +1 -0
  32. package/lib/redoc-lib/src/components/Parameters/Parameters.d.ts +2 -5
  33. package/lib/redoc-lib/src/components/Parameters/Parameters.js +1 -1
  34. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  35. package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  36. package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
  37. package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +1 -0
  38. package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
  39. package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +2 -0
  40. package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
  41. package/lib/redoc-lib/src/components/Schema/ObjectSchema.js +1 -1
  42. package/lib/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
  43. package/lib/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
  44. package/lib/redoc-lib/src/components/Schema/Schema.js +1 -1
  45. package/lib/redoc-lib/src/components/Schema/index.d.ts +0 -1
  46. package/lib/redoc-lib/src/components/Schema/index.js +1 -1
  47. package/lib/redoc-lib/src/components/Schema/types.d.ts +8 -2
  48. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +1 -0
  49. package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
  50. package/lib/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
  51. package/lib/redoc-lib/src/components/index.d.ts +4 -2
  52. package/lib/redoc-lib/src/components/index.js +1 -1
  53. package/lib/redoc-lib/src/services/models/MediaContent.d.ts +1 -0
  54. package/lib/redoc-lib/src/services/models/MediaContent.js +1 -1
  55. package/lib/redoc-lib/src/services/models/Schema.js +1 -1
  56. package/lib/services/OAuth2.js +1 -1
  57. package/lib-esm/components/NextSectionButton.d.ts +1 -1
  58. package/lib-esm/components/NextSectionButton.js +1 -1
  59. package/lib-esm/components/Panel/ResponsePanel.js +1 -1
  60. package/lib-esm/components/console/Console.js +1 -1
  61. package/lib-esm/components/console/RequestBody/RequestBody.js +1 -1
  62. package/lib-esm/components/console/ResponsePanel.js +1 -1
  63. package/lib-esm/components/console/ServerVariable.d.ts +1 -1
  64. package/lib-esm/components/console/ServerVariable.js +1 -1
  65. package/lib-esm/components/console/utils.d.ts +3 -0
  66. package/lib-esm/components/console/utils.js +1 -1
  67. package/lib-esm/components/styled.elements.js +1 -1
  68. package/lib-esm/redoc-lib/src/common-elements/LinkToField.js +1 -1
  69. package/lib-esm/redoc-lib/src/common-elements/icons.d.ts +0 -5
  70. package/lib-esm/redoc-lib/src/common-elements/icons.js +1 -1
  71. package/lib-esm/redoc-lib/src/common-elements/mixins.js +1 -1
  72. package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +1 -1
  73. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +11 -0
  74. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/DiscriminatorDropdown.js +2 -0
  75. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.d.ts +1 -0
  76. package/lib-esm/redoc-lib/src/components/DiscriminatorDropdown/index.js +2 -0
  77. package/lib-esm/redoc-lib/src/components/Fields/FieldDetails.js +1 -1
  78. package/lib-esm/redoc-lib/src/components/Markdown/Markdown.js +1 -1
  79. package/lib-esm/redoc-lib/src/components/Markdown/index.d.ts +1 -0
  80. package/lib-esm/redoc-lib/src/components/Markdown/index.js +1 -1
  81. package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  82. package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +1 -0
  83. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.d.ts +2 -5
  84. package/lib-esm/redoc-lib/src/components/Parameters/Parameters.js +1 -1
  85. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +1 -1
  86. package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
  87. package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
  88. package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +1 -0
  89. package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
  90. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +2 -0
  91. package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
  92. package/lib-esm/redoc-lib/src/components/Schema/ObjectSchema.js +1 -1
  93. package/lib-esm/redoc-lib/src/components/Schema/OneOfSchema.js +1 -1
  94. package/lib-esm/redoc-lib/src/components/Schema/Schema.d.ts +1 -1
  95. package/lib-esm/redoc-lib/src/components/Schema/Schema.js +1 -1
  96. package/lib-esm/redoc-lib/src/components/Schema/index.d.ts +0 -1
  97. package/lib-esm/redoc-lib/src/components/Schema/index.js +1 -1
  98. package/lib-esm/redoc-lib/src/components/Schema/types.d.ts +8 -2
  99. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.d.ts +1 -0
  100. package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
  101. package/lib-esm/redoc-lib/src/components/SideMenu/styled.elements.js +1 -1
  102. package/lib-esm/redoc-lib/src/components/index.d.ts +4 -2
  103. package/lib-esm/redoc-lib/src/components/index.js +1 -1
  104. package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +1 -0
  105. package/lib-esm/redoc-lib/src/services/models/MediaContent.js +1 -1
  106. package/lib-esm/redoc-lib/src/services/models/Schema.js +1 -1
  107. package/lib-esm/services/OAuth2.js +1 -1
  108. package/package.json +3 -3
  109. package/bin/cli/assets/assets/redoc-fast-scroll.js +0 -23
  110. package/bin/cli/assets/assets/template.hbs +0 -25
  111. package/lib/redoc-lib/src/components/OperationItem/OperationItem.d.ts +0 -7
  112. package/lib/redoc-lib/src/components/OperationItem/OperationItem.js +0 -2
  113. package/lib/redoc-lib/src/components/OperationItem/index.d.ts +0 -1
  114. package/lib/redoc-lib/src/components/OperationItem/index.js +0 -2
  115. package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +0 -11
  116. package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +0 -2
  117. package/lib-esm/redoc-lib/src/components/OperationItem/OperationItem.d.ts +0 -7
  118. package/lib-esm/redoc-lib/src/components/OperationItem/OperationItem.js +0 -2
  119. package/lib-esm/redoc-lib/src/components/OperationItem/index.d.ts +0 -1
  120. package/lib-esm/redoc-lib/src/components/OperationItem/index.js +0 -2
  121. package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.d.ts +0 -11
  122. package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +0 -2
@@ -2,48 +2,48 @@ var mr=Math.pow;/*!
2
2
  * Redocly Reference Docs
3
3
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
4
  * -------------------------------------------------------------
5
- * Version: "3.0.0-alpha.5"
5
+ * Version: "3.0.0-alpha.7"
6
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=q;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 M=W.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=W.indexOf("=");X===-1&&(X=M);var R=X===M?0:4-X%4;return[X,R]}function g(W){var M=S(W),X=M[0],R=M[1];return(X+R)*3/4-R}function L(W,M,X){return(M+X)*3/4-X}function D(W){var M,X=S(W),R=X[0],C=X[1],V=new v(L(W,R,C)),J=0,_=C>0?R-4:R,Q;for(Q=0;Q<_;Q+=4)M=c[W.charCodeAt(Q)]<<18|c[W.charCodeAt(Q+1)]<<12|c[W.charCodeAt(Q+2)]<<6|c[W.charCodeAt(Q+3)],V[J++]=M>>16&255,V[J++]=M>>8&255,V[J++]=M&255;return C===2&&(M=c[W.charCodeAt(Q)]<<2|c[W.charCodeAt(Q+1)]>>4,V[J++]=M&255),C===1&&(M=c[W.charCodeAt(Q)]<<10|c[W.charCodeAt(Q+1)]<<4|c[W.charCodeAt(Q+2)]>>2,V[J++]=M>>8&255,V[J++]=M&255),V}function B(W){return a[W>>18&63]+a[W>>12&63]+a[W>>6&63]+a[W&63]}function j(W,M,X){for(var R,C=[],V=M;V<X;V+=3)R=(W[V]<<16&16711680)+(W[V+1]<<8&65280)+(W[V+2]&255),C.push(B(R));return C.join("")}function q(W){for(var M,X=W.length,R=X%3,C=[],V=16383,J=0,_=X-R;J<_;J+=V)C.push(j(W,J,J+V>_?_:J+V));return R===1?(M=W[X-1],C.push(a[M>>2]+a[M<<4&63]+"==")):R===2&&(M=(W[X-2]<<8)+W[X-1],C.push(a[M>>10]+a[M>>4&63]+a[M<<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 ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?M(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},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(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:R(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:R(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function M(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=R(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(z[Ge]!==$[Ge]){Se=z[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).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(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];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(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Et(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return se(this,z,$);case"ascii":return Me(this,z,$);case"latin1":case"binary":return Pe(this,z,$);case"base64":return fe(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?se(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,Ge){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>z.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===z)return 0;for(var Ke=Ge-Ie,P=Se-$,Re=Math.min(Ke,P),K=this.slice(Ie,Ge),T=z.slice($,Se),O=0;O<Re;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var Ge=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Re(N,re){return Ge===1?N[re]:N.readUInt16BE(re*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Re(ve,K)===Re(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,le=0;le<P;le++)if(Re(ve,K+le)!==Re(z,le)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function ce(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=z.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return St(Et(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return St(Ht(z),ve,$,Se)}function xe(ve,z,$,Se){return ie(ve,z,$,Se)}function we(ve,z,$,Se){return St(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return St(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return xe(this,z,$,Se);case"base64":return we(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);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(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function se(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var Ge=ve[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Re,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Re=ve[Ie+1],(Re&192)==128&&(O=(Ge&31)<<6|Re&63,O>127&&(Ke=O));break;case 3:Re=ve[Ie+1],K=ve[Ie+2],(Re&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Re&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Re=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Re&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Re&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Me(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Pe(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=z;Ge<$;++Ge)Ie+=kt(ve[Ge]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var Ge=$-z;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[z+--$]*Ge;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,Ge=1,Ke=this[z+--Ie];Ie>0&&(Ge*=256);)Ke+=this[z+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,Ge){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,2);Ie<Ge;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function wt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,4);Ie<Ge;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):wt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):wt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Re=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Re===0&&this[$+Ke-1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Re=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Re===0&&this[$+Ke+1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):wt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):wt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,Ge){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function mt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return mt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return mt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=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),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var Ge=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var Ge=z.charCodeAt(0);Ge<256&&(z=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 z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Et(new g(z,Ie).toString()),Re=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Re]}return this};var xt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Mt(ve).replace(xt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Mt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Et(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;Ge.push($)}else if($<2048){if((z-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Ht(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function Vt(ve){return c.toByteArray(pt(ve))}function St(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},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 q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};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(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:D,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return W(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function D(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;R.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var Y=R.lineSeparator()||`
12
- `;R.replaceSelection(Y+Y,null),j(R,-1),J=R.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;R.indentLine(ee,null,!0),R.indentLine(ee+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==R.getCursor()&&(_=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}R.setSelections(V,_)}function q(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function W(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),ce=J.charAt(_+1)==C,ee=R.listSelections(),ie=_%2==0,xe,we=0;we<ee.length;we++){var he=ee[we],fe=he.head,se,Fe=R.getRange(fe,x(fe.line,fe.ch+1));if(ie&&!he.empty())se="surround";else if((ce||!ie)&&Fe==C)ce&&X(R,fe)?se="both":Y.indexOf(C)>=0&&R.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?se="skipThree":se="skip";else if(ce&&fe.ch>1&&Y.indexOf(C)>=0&&R.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;se="addFour"}else if(ce){var Le=fe.ch==0?" ":R.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))se="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))se="both";else return c.Pass;if(!xe)xe=se;else if(xe!=se)return c.Pass}var Me=_%2?J.charAt(_-1):C,Pe=_%2?C:J.charAt(_+1);R.operation(function(){if(xe=="skip")j(R,1);else if(xe=="skipThree")j(R,3);else if(xe=="surround"){for(var rt=R.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Me+rt[Ze]+Pe;R.replaceSelections(rt,"around"),rt=R.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);R.setSelections(rt)}else xe=="both"?(R.replaceSelection(Me+Pe,null),R.triggerElectric(Me+Pe),j(R,-1)):xe=="addFour"&&(R.replaceSelection(Me+Me+Me+Me,"before"),j(R,1))})}function M(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.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,q,W){var M=j.getLineHandle(q.line),X=q.ch-1,R=W&&W.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!R&&X>=0&&C.test(M.text.charAt(X))&&d[M.text.charAt(X)]||C.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,M,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var ce=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>R))for(Q==q.line&&(ce=q.ch-(W<0?1:0));ce!=ee;ce+=W){var ie=Y.charAt(ce);if(J.test(ie)&&(M===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(M||""))){var xe=d[ie];if(xe&&xe.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var M=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=M&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<R.length;Y++)R[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}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,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,M){return g(this,j,q,W,M)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,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;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,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(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=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<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,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=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(R,C)),_}function L(R){return typeof R=="string"?R:R.text}function D(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=R.options.customKeys,Q=_?{}:V;function Y(ie,xe){var we;typeof xe!="string"?we=function(he){return xe(he,C)}:V.hasOwnProperty(xe)?we=V[xe]:we=xe,Q[ie]=we}if(_)for(var ce in _)_.hasOwnProperty(ce)&&Y(ce,_[ce]);var ee=R.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=R.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var xe=Y.appendChild(_.createElement("li")),we=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);we.className!=null&&(he=we.className+" "+he),xe.className=he,ie==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ie,xe.setAttribute("role","option"),we.render?we.render(xe,C,we):xe.appendChild(_.createTextNode(we.displayText||L(we))),xe.hintId=ie}var fe=R.options.container||_.body,se=J.cursorCoords(R.options.alignWithWord?C.from:null),Fe=se.left,Le=se.bottom,Me=!0,Pe=0,rt=0;if(fe!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(fe).position)!==-1,Xe=Ze?fe:fe.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Pe=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var wt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);fe.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=R.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,mt=R.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,xt;setTimeout(function(){xt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Mt=ut.bottom-ut.top,kt=se.top-(se.bottom-ut.top);if(kt-Mt>0)Y.style.top=(Le=se.top-Mt-rt)+"px",Me=!1;else if(Mt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=se.bottom-ut.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(se=J.cursorCoords(Et),Y.style.left=(Fe=se.left-Pe)+"px",ut=Y.getBoundingClientRect())}}var Ht=ut.right-wt;if(mt&&(Ht+=J.display.nativeBarWidth),Ht>0&&(ut.right-ut.left>wt&&(Y.style.width=wt-5+"px",Ht-=ut.right-ut.left-wt),Y.style.left=(Fe=se.left-Ht-Pe)+"px"),mt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(R,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();xt||(xt=J.getScrollInfo());var z=Le+xt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Me||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return R.close();Y.style.top=z+"px",Y.style.left=Fe+xt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.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 R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],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 R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function q(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(R,C,V,J){if(R.async)R(C,J,V);else{var _=R(C,V);_&&_.then?_.then(J):J(_)}}function M(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,ce){var ee=q(Q,V);function ie(xe){if(xe==ee.length)return Y(null);W(ee[xe],Q,ce,function(we){we&&we.list.length>0?Y(we):ie(xe+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var ce=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&ce.push(ie)}if(ce.length)return{list:ce,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,ce,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function xe(we){if(!ie.parentNode)return c.off(document,"mousemove",xe);ie.style.top=Math.max(0,we.clientY-ie.offsetHeight-5)+"px",ie.style.left=we.clientX+5+"px"}return c.on(document,"mousemove",xe),xe(ce),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ie){var xe=d(Y,ce,ee);function we(){c.off(ie,"mouseout",we),xe&&(S(xe),xe=null)}var he=setInterval(function(){if(xe)for(var fe=ie;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){we();break}}if(!xe)return clearInterval(he)},400);c.on(ie,"mouseout",we)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in ce)D.hasOwnProperty(ie)?ce[ie]!=null&&(this.options[ie]=ce[ie]):ce.options||(this.linterOptions[ie]=ce[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(xe){Q(Y,xe)},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(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function q(Y,ce,ee,ie,xe){var we=document.createElement("div"),he=we;return we.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=we.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),xe!=!1&&c.on(he,"mouseover",function(fe){g(Y,fe,ce,he)}),we}function W(Y,ce){return Y=="error"?Y:ce}function M(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],xe=ie.from.line;(ce[xe]||(ce[xe]=[])).push(ie)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function R(Y,ce){var ee=Y.state.lint,ie=++ee.waitingFor;function xe(){ie=-1,Y.off("change",xe)}Y.on("change",xe),ce(Y.getValue(),function(we,he){Y.off("change",xe),ee.waitingFor==ie&&(he&&we instanceof c&&(we=he),Y.operation(function(){V(Y,we)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)R(Y,ie);else{var xe=ie(Y.getValue(),ce.linterOptions,Y);if(!xe)return;xe.then?xe.then(function(we){Y.operation(function(){V(Y,we)})}):Y.operation(function(){V(Y,xe)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var xe=M(ce),we=0;we<xe.length;++we){var he=xe[we];if(!!he){var fe=[];he=he.filter(function(rt){return fe.indexOf(rt.message)>-1?!1:fe.push(rt.message)});for(var se=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Me=he[Le],Pe=Me.severity;Pe||(Pe="error"),se=W(se,Pe),ie.formatAnnotation&&(Me=ie.formatAnnotation(Me)),ee.hasGutter&&Fe.appendChild(X(Me)),Me.to&&ee.marked.push(Y.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Me}))}ee.hasGutter&&Y.setGutterMarker(we,v,q(Y,Fe,se,xe[we].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(we,"wrap",x+se)}}ie.onUpdateLinting&&ie.onUpdateLinting(ce,xe,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function _(Y,ce,ee){for(var ie=ee.target||ee.srcElement,xe=document.createDocumentFragment(),we=0;we<ce.length;we++){var he=ce[we];xe.appendChild(X(he))}g(Y,ee,xe,ie)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),xe=(ie.left+ie.right)/2,we=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:xe,top:we},"client")),fe=[],se=0;se<he.length;++se){var Fe=he[se].__annotation;Fe&&fe.push(Fe)}fe.length&&_(Y,fe,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ie=Y.getOption("gutters"),xe=!1,we=0;we<ie.length;++we)ie[we]==v&&(xe=!0);var he=Y.state.lint=new L(Y,ce,xe);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),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 J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var ce=C.getLine(_),ee=V.exec(ce);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
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 ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?M(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},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(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:R(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:R(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function M(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=R(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(z[Ge]!==$[Ge]){Se=z[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).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(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];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(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Et(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return oe(this,z,$);case"ascii":return Me(this,z,$);case"latin1":case"binary":return Pe(this,z,$);case"base64":return fe(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?oe(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,Ge){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>z.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===z)return 0;for(var Ke=Ge-Ie,P=Se-$,Re=Math.min(Ke,P),K=this.slice(Ie,Ge),T=z.slice($,Se),O=0;O<Re;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var Ge=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Re(N,re){return Ge===1?N[re]:N.readUInt16BE(re*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Re(ve,K)===Re(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,le=0;le<P;le++)if(Re(ve,K+le)!==Re(z,le)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function ce(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=z.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return St(Et(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return St(Ht(z),ve,$,Se)}function xe(ve,z,$,Se){return ie(ve,z,$,Se)}function we(ve,z,$,Se){return St(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return St(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return xe(this,z,$,Se);case"base64":return we(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);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(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function oe(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var Ge=ve[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Re,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Re=ve[Ie+1],(Re&192)==128&&(O=(Ge&31)<<6|Re&63,O>127&&(Ke=O));break;case 3:Re=ve[Ie+1],K=ve[Ie+2],(Re&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Re&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Re=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Re&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Re&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Me(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Pe(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=z;Ge<$;++Ge)Ie+=kt(ve[Ge]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var Ge=$-z;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[z+--$]*Ge;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,Ge=1,Ke=this[z+--Ie];Ie>0&&(Ge*=256);)Ke+=this[z+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,Ge){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,2);Ie<Ge;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function wt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,4);Ie<Ge;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):wt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):wt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Re=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Re===0&&this[$+Ke-1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Re=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Re===0&&this[$+Ke+1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):wt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):wt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,Ge){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function mt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return mt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return mt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=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),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var Ge=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var Ge=z.charCodeAt(0);Ge<256&&(z=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 z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Et(new g(z,Ie).toString()),Re=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Re]}return this};var xt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Mt(ve).replace(xt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Mt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Et(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;Ge.push($)}else if($<2048){if((z-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Ht(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function Vt(ve){return c.toByteArray(pt(ve))}function St(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},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 q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};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(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:D,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return W(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function D(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;R.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var Y=R.lineSeparator()||`
12
+ `;R.replaceSelection(Y+Y,null),j(R,-1),J=R.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;R.indentLine(ee,null,!0),R.indentLine(ee+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==R.getCursor()&&(_=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}R.setSelections(V,_)}function q(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function W(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),ce=J.charAt(_+1)==C,ee=R.listSelections(),ie=_%2==0,xe,we=0;we<ee.length;we++){var he=ee[we],fe=he.head,oe,Fe=R.getRange(fe,x(fe.line,fe.ch+1));if(ie&&!he.empty())oe="surround";else if((ce||!ie)&&Fe==C)ce&&X(R,fe)?oe="both":Y.indexOf(C)>=0&&R.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(ce&&fe.ch>1&&Y.indexOf(C)>=0&&R.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;oe="addFour"}else if(ce){var Le=fe.ch==0?" ":R.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))oe="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))oe="both";else return c.Pass;if(!xe)xe=oe;else if(xe!=oe)return c.Pass}var Me=_%2?J.charAt(_-1):C,Pe=_%2?C:J.charAt(_+1);R.operation(function(){if(xe=="skip")j(R,1);else if(xe=="skipThree")j(R,3);else if(xe=="surround"){for(var rt=R.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Me+rt[Ze]+Pe;R.replaceSelections(rt,"around"),rt=R.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);R.setSelections(rt)}else xe=="both"?(R.replaceSelection(Me+Pe,null),R.triggerElectric(Me+Pe),j(R,-1)):xe=="addFour"&&(R.replaceSelection(Me+Me+Me+Me,"before"),j(R,1))})}function M(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.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,q,W){var M=j.getLineHandle(q.line),X=q.ch-1,R=W&&W.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!R&&X>=0&&C.test(M.text.charAt(X))&&d[M.text.charAt(X)]||C.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,M,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var ce=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>R))for(Q==q.line&&(ce=q.ch-(W<0?1:0));ce!=ee;ce+=W){var ie=Y.charAt(ce);if(J.test(ie)&&(M===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(M||""))){var xe=d[ie];if(xe&&xe.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var M=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=M&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<R.length;Y++)R[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}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,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,M){return g(this,j,q,W,M)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,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;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,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(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=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<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,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=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(R,C)),_}function L(R){return typeof R=="string"?R:R.text}function D(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=R.options.customKeys,Q=_?{}:V;function Y(ie,xe){var we;typeof xe!="string"?we=function(he){return xe(he,C)}:V.hasOwnProperty(xe)?we=V[xe]:we=xe,Q[ie]=we}if(_)for(var ce in _)_.hasOwnProperty(ce)&&Y(ce,_[ce]);var ee=R.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=R.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var xe=Y.appendChild(_.createElement("li")),we=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);we.className!=null&&(he=we.className+" "+he),xe.className=he,ie==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ie,xe.setAttribute("role","option"),we.render?we.render(xe,C,we):xe.appendChild(_.createTextNode(we.displayText||L(we))),xe.hintId=ie}var fe=R.options.container||_.body,oe=J.cursorCoords(R.options.alignWithWord?C.from:null),Fe=oe.left,Le=oe.bottom,Me=!0,Pe=0,rt=0;if(fe!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(fe).position)!==-1,Xe=Ze?fe:fe.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Pe=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var wt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);fe.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=R.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,mt=R.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,xt;setTimeout(function(){xt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Mt=ut.bottom-ut.top,kt=oe.top-(oe.bottom-ut.top);if(kt-Mt>0)Y.style.top=(Le=oe.top-Mt-rt)+"px",Me=!1;else if(Mt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=oe.bottom-ut.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(oe=J.cursorCoords(Et),Y.style.left=(Fe=oe.left-Pe)+"px",ut=Y.getBoundingClientRect())}}var Ht=ut.right-wt;if(mt&&(Ht+=J.display.nativeBarWidth),Ht>0&&(ut.right-ut.left>wt&&(Y.style.width=wt-5+"px",Ht-=ut.right-ut.left-wt),Y.style.left=(Fe=oe.left-Ht-Pe)+"px"),mt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(R,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();xt||(xt=J.getScrollInfo());var z=Le+xt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Me||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return R.close();Y.style.top=z+"px",Y.style.left=Fe+xt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.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 R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],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 R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function q(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(R,C,V,J){if(R.async)R(C,J,V);else{var _=R(C,V);_&&_.then?_.then(J):J(_)}}function M(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,ce){var ee=q(Q,V);function ie(xe){if(xe==ee.length)return Y(null);W(ee[xe],Q,ce,function(we){we&&we.list.length>0?Y(we):ie(xe+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var ce=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&ce.push(ie)}if(ce.length)return{list:ce,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,ce,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function xe(we){if(!ie.parentNode)return c.off(document,"mousemove",xe);ie.style.top=Math.max(0,we.clientY-ie.offsetHeight-5)+"px",ie.style.left=we.clientX+5+"px"}return c.on(document,"mousemove",xe),xe(ce),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ie){var xe=d(Y,ce,ee);function we(){c.off(ie,"mouseout",we),xe&&(S(xe),xe=null)}var he=setInterval(function(){if(xe)for(var fe=ie;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){we();break}}if(!xe)return clearInterval(he)},400);c.on(ie,"mouseout",we)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in ce)D.hasOwnProperty(ie)?ce[ie]!=null&&(this.options[ie]=ce[ie]):ce.options||(this.linterOptions[ie]=ce[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(xe){Q(Y,xe)},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(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function q(Y,ce,ee,ie,xe){var we=document.createElement("div"),he=we;return we.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=we.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),xe!=!1&&c.on(he,"mouseover",function(fe){g(Y,fe,ce,he)}),we}function W(Y,ce){return Y=="error"?Y:ce}function M(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],xe=ie.from.line;(ce[xe]||(ce[xe]=[])).push(ie)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function R(Y,ce){var ee=Y.state.lint,ie=++ee.waitingFor;function xe(){ie=-1,Y.off("change",xe)}Y.on("change",xe),ce(Y.getValue(),function(we,he){Y.off("change",xe),ee.waitingFor==ie&&(he&&we instanceof c&&(we=he),Y.operation(function(){V(Y,we)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)R(Y,ie);else{var xe=ie(Y.getValue(),ce.linterOptions,Y);if(!xe)return;xe.then?xe.then(function(we){Y.operation(function(){V(Y,we)})}):Y.operation(function(){V(Y,xe)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var xe=M(ce),we=0;we<xe.length;++we){var he=xe[we];if(!!he){var fe=[];he=he.filter(function(rt){return fe.indexOf(rt.message)>-1?!1:fe.push(rt.message)});for(var oe=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Me=he[Le],Pe=Me.severity;Pe||(Pe="error"),oe=W(oe,Pe),ie.formatAnnotation&&(Me=ie.formatAnnotation(Me)),ee.hasGutter&&Fe.appendChild(X(Me)),Me.to&&ee.marked.push(Y.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Me}))}ee.hasGutter&&Y.setGutterMarker(we,v,q(Y,Fe,oe,xe[we].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(we,"wrap",x+oe)}}ie.onUpdateLinting&&ie.onUpdateLinting(ce,xe,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function _(Y,ce,ee){for(var ie=ee.target||ee.srcElement,xe=document.createDocumentFragment(),we=0;we<ce.length;we++){var he=ce[we];xe.appendChild(X(he))}g(Y,ee,xe,ie)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),xe=(ie.left+ie.right)/2,we=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:xe,top:we},"client")),fe=[],oe=0;oe<he.length;++oe){var Fe=he[oe].__annotation;Fe&&fe.push(Fe)}fe.length&&_(Y,fe,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ie=Y.getOption("gutters"),xe=!1,we=0;we<ie.length;++we)ie[we]==v&&(xe=!0);var he=Y.state.lint=new L(Y,ce,xe);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),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 J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var ce=C.getLine(_),ee=V.exec(ce);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
13
13
  `+ie}Q=Q*2,V.lastIndex=J.ch;var xe=V.exec(_);if(xe){var we=_.slice(0,xe.index).split(`
14
14
  `),he=xe[0].split(`
15
- `),fe=J.line+we.length-1,se=we[we.length-1].length;return{from:v(fe,se),to:v(fe+he.length-1,he.length==1?se+he[0].length:he[he.length-1].length),match:xe}}}}function L(C,V,J){for(var _,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var ce=Y.index+Y[0].length;if(ce>C.length-J)break;(!_||ce>_.index+_[0].length)&&(_=Y),Q=Y.index+1}return _}function D(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.firstLine();_>=Y;_--,Q=-1){var ce=C.getLine(_),ee=L(ce,V,Q<0?0:ce.length-Q);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function B(C,V,J){if(!b(V))return D(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=C.getLine(J.line).length-J.ch,ce=J.line,ee=C.firstLine();ce>=ee;){for(var ie=0;ie<Q&&ce>=ee;ie++){var xe=C.getLine(ce--);_=_==null?xe:xe+`
15
+ `),fe=J.line+we.length-1,oe=we[we.length-1].length;return{from:v(fe,oe),to:v(fe+he.length-1,he.length==1?oe+he[0].length:he[he.length-1].length),match:xe}}}}function L(C,V,J){for(var _,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var ce=Y.index+Y[0].length;if(ce>C.length-J)break;(!_||ce>_.index+_[0].length)&&(_=Y),Q=Y.index+1}return _}function D(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.firstLine();_>=Y;_--,Q=-1){var ce=C.getLine(_),ee=L(ce,V,Q<0?0:ce.length-Q);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function B(C,V,J){if(!b(V))return D(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=C.getLine(J.line).length-J.ch,ce=J.line,ee=C.firstLine();ce>=ee;){for(var ie=0;ie<Q&&ce>=ee;ie++){var xe=C.getLine(ce--);_=_==null?xe:xe+`
16
16
  `+_}Q*=2;var we=L(_,V,Y);if(we){var he=_.slice(0,we.index).split(`
17
17
  `),fe=we[0].split(`
18
- `),se=ce+he.length,Fe=he[he.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:we}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=_(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function M(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;ce<=ie;ce++,ee=0){var xe=C.getLine(ce).slice(ee),we=Q(xe);if(Y.length==1){var he=we.indexOf(Y[0]);if(he==-1)continue e;var J=W(xe,we,he,Q)+ee;return{from:v(ce,W(xe,we,he,Q)+ee),to:v(ce,W(xe,we,he+Y[0].length,Q)+ee)}}else{var fe=we.length-Y[0].length;if(we.slice(fe)!=Y[0])continue e;for(var se=1;se<Y.length-1;se++)if(Q(C.getLine(ce+se))!=Y[se])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Me=Y[Y.length-1];if(Le.slice(0,Me.length)!=Me)continue e;return{from:v(ce,W(xe,we,fe,Q)+ee),to:v(ce+Y.length-1,W(Fe,Le,Me.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;ce>=ie;ce--,ee=-1){var xe=C.getLine(ce);ee>-1&&(xe=xe.slice(0,ee));var we=Q(xe);if(Y.length==1){var he=we.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(ce,W(xe,we,he,Q)),to:v(ce,W(xe,we,he+Y[0].length,Q))}}else{var fe=Y[Y.length-1];if(we.slice(0,fe.length)!=fe)continue e;for(var se=1,J=ce-Y.length+1;se<Y.length-1;se++)if(Q(C.getLine(J+se))!=Y[se])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,W(xe,we,fe.length,Q))}}}}function R(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,ce){return(Y?X:M)(C,V,ce,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,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),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),M=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),J=/win/i.test(a),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,n){var u=e.className,l=ce(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 xe(e,n){return ie(e).appendChild(n)}function we(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function he(e,n,u,l){var f=we(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 Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Me(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ce(u[l]).test(n)&&(n+=" "+u[l]);return n}var Pe=function(e){e.select()};M?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Ze(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var m=l||0,k=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return k+(n-m);k+=U-m,k+=u-k%u,m=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.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,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},mt={origin:"*mouse"},xt={origin:"+move"};function pt(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var k=m-l;if(m==e.length||f+k>=n)return l+Math.min(k,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var Mt=[""];function kt(e){for(;Mt.length<=e;)Mt.push(Et(Mt)+" ");return Mt[e]}function Et(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 jt(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 St(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Ze(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,n){return n?n.source.indexOf("\\w")>-1&&ve(e)?!0:n.test(e):ve(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Se=/[\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&&Se.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,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var k=e[m];(k.from<u&&k.to>n||n==u&&k.to==n)&&(l(Math.max(k.from,n),Math.min(k.to,u),k.level==1?"rtl":"ltr",m),f=!0)}f||l(n,u,"ltr")}var Re=null;function K(e,n,u){var l;Re=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Re=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Re=f)}return l!=null?l:Re}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,k=/[Lb1n]/,U=/[1n]/;function H(Z,be,Ce){this.level=Z,this.from=be,this.to=Ce}return function(Z,be){var Ce=be=="ltr"?"L":"R";if(Z.length==0||be=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,ke=[],Ye=0;Ye<Ne;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,ot=Ce;tt<Ne;++tt){var ct=ke[tt];ct=="m"?ke[tt]=ot:ot=ct}for(var yt=0,dt=Ce;yt<Ne;++yt){var bt=ke[yt];bt=="1"&&dt=="r"?ke[yt]="n":m.test(bt)&&(dt=bt,bt=="r"&&(ke[yt]="R"))}for(var Ft=1,It=ke[0];Ft<Ne-1;++Ft){var it=ke[Ft];it=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":it==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=it}for(var Tt=0;Tt<Ne;++Tt){var Sr=ke[Tt];if(Sr==",")ke[Tt]="N";else if(Sr=="%"){var vr=void 0;for(vr=Tt+1;vr<Ne&&ke[vr]=="%";++vr);for(var wn=Tt&&ke[Tt-1]=="!"||vr<Ne&&ke[vr]=="1"?"1":"N",fn=Tt;fn<vr;++fn)ke[fn]=wn;Tt=vr-1}}for(var Ir=0,Yr=Ce;Ir<Ne;++Ir){var Vr=ke[Ir];Yr=="L"&&Vr=="1"?ke[Ir]="L":m.test(Vr)&&(Yr=Vr)}for(var Fr=0;Fr<Ne;++Fr)if(f.test(ke[Fr])){var Ar=void 0;for(Ar=Fr+1;Ar<Ne&&f.test(ke[Ar]);++Ar);for(var dr=(Fr?ke[Fr-1]:Ce)=="L",cn=(Ar<Ne?ke[Ar]:Ce)=="L",Ca=dr==cn?dr?"L":"R":Ce,gi=Fr;gi<Ar;++gi)ke[gi]=Ca;Fr=Ar-1}for(var Jr=[],ri,Wr=0;Wr<Ne;)if(k.test(ke[Wr])){var is=Wr;for(++Wr;Wr<Ne&&k.test(ke[Wr]);++Wr);Jr.push(new H(0,is,Wr))}else{var yi=Wr,$n=Jr.length,Lr=be=="rtl"?1:0;for(++Wr;Wr<Ne&&ke[Wr]!="L";++Wr);for(var dn=yi;dn<Wr;)if(U.test(ke[dn])){yi<dn&&(Jr.splice($n,0,new H(1,yi,dn)),$n+=Lr);var ni=dn;for(++dn;dn<Wr&&U.test(ke[dn]);++dn);Jr.splice($n,0,new H(2,ni,dn)),$n+=Lr,yi=dn}else++dn;yi<Wr&&Jr.splice($n,0,new H(1,yi,Wr))}return be=="ltr"&&(Jr[0].level==1&&(ri=Z.match(/^\s+/))&&(Jr[0].from=ri[0].length,Jr.unshift(new H(0,0,ri[0].length))),Et(Jr).level==1&&(ri=Z.match(/\s+$/))&&(Et(Jr).to-=ri[0].length,Jr.push(new H(0,Ne-ri[0].length,Ne)))),be=="rtl"?Jr.reverse():Jr}}();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 de(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=ht(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function ae(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 pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||n.type,e,n),At(n)||n.codemirrorIgnore}function Ee(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 Ue(e,n){return re(e,n).length>0}function je(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function hn(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 Nr=function(){if(b&&S<9)return!1;var e=we("div");return"draggable"in e||"dragDrop"in e}(),Cr;function Si(e){if(Cr==null){var n=we("span","\u200B");xe(e,we("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Cr?we("span","\u200B"):we("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Gr;function Vi(e){if(Gr!=null)return Gr;var n=xe(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:Gr=l.right-u.right<3}var Nn=`
18
+ `),oe=ce+he.length,Fe=he[he.length-1].length;return{from:v(oe,Fe),to:v(oe+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:we}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=_(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function M(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;ce<=ie;ce++,ee=0){var xe=C.getLine(ce).slice(ee),we=Q(xe);if(Y.length==1){var he=we.indexOf(Y[0]);if(he==-1)continue e;var J=W(xe,we,he,Q)+ee;return{from:v(ce,W(xe,we,he,Q)+ee),to:v(ce,W(xe,we,he+Y[0].length,Q)+ee)}}else{var fe=we.length-Y[0].length;if(we.slice(fe)!=Y[0])continue e;for(var oe=1;oe<Y.length-1;oe++)if(Q(C.getLine(ce+oe))!=Y[oe])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Me=Y[Y.length-1];if(Le.slice(0,Me.length)!=Me)continue e;return{from:v(ce,W(xe,we,fe,Q)+ee),to:v(ce+Y.length-1,W(Fe,Le,Me.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;ce>=ie;ce--,ee=-1){var xe=C.getLine(ce);ee>-1&&(xe=xe.slice(0,ee));var we=Q(xe);if(Y.length==1){var he=we.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(ce,W(xe,we,he,Q)),to:v(ce,W(xe,we,he+Y[0].length,Q))}}else{var fe=Y[Y.length-1];if(we.slice(0,fe.length)!=fe)continue e;for(var oe=1,J=ce-Y.length+1;oe<Y.length-1;oe++)if(Q(C.getLine(J+oe))!=Y[oe])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,W(xe,we,fe.length,Q))}}}}function R(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,ce){return(Y?X:M)(C,V,ce,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,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),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),M=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),J=/win/i.test(a),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,n){var u=e.className,l=ce(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 xe(e,n){return ie(e).appendChild(n)}function we(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function he(e,n,u,l){var f=we(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 oe(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function 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 Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Me(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ce(u[l]).test(n)&&(n+=" "+u[l]);return n}var Pe=function(e){e.select()};M?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Ze(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var m=l||0,k=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return k+(n-m);k+=U-m,k+=u-k%u,m=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.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,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},mt={origin:"*mouse"},xt={origin:"+move"};function pt(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var k=m-l;if(m==e.length||f+k>=n)return l+Math.min(k,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var Mt=[""];function kt(e){for(;Mt.length<=e;)Mt.push(Et(Mt)+" ");return Mt[e]}function Et(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 jt(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 St(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Ze(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,n){return n?n.source.indexOf("\\w")>-1&&ve(e)?!0:n.test(e):ve(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Se=/[\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&&Se.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,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var k=e[m];(k.from<u&&k.to>n||n==u&&k.to==n)&&(l(Math.max(k.from,n),Math.min(k.to,u),k.level==1?"rtl":"ltr",m),f=!0)}f||l(n,u,"ltr")}var Re=null;function K(e,n,u){var l;Re=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Re=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Re=f)}return l!=null?l:Re}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,k=/[Lb1n]/,U=/[1n]/;function H(Z,be,Ce){this.level=Z,this.from=be,this.to=Ce}return function(Z,be){var Ce=be=="ltr"?"L":"R";if(Z.length==0||be=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,ke=[],Ye=0;Ye<Ne;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,ot=Ce;tt<Ne;++tt){var ct=ke[tt];ct=="m"?ke[tt]=ot:ot=ct}for(var yt=0,dt=Ce;yt<Ne;++yt){var bt=ke[yt];bt=="1"&&dt=="r"?ke[yt]="n":m.test(bt)&&(dt=bt,bt=="r"&&(ke[yt]="R"))}for(var Ft=1,It=ke[0];Ft<Ne-1;++Ft){var it=ke[Ft];it=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":it==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=it}for(var Tt=0;Tt<Ne;++Tt){var Sr=ke[Tt];if(Sr==",")ke[Tt]="N";else if(Sr=="%"){var vr=void 0;for(vr=Tt+1;vr<Ne&&ke[vr]=="%";++vr);for(var wn=Tt&&ke[Tt-1]=="!"||vr<Ne&&ke[vr]=="1"?"1":"N",fn=Tt;fn<vr;++fn)ke[fn]=wn;Tt=vr-1}}for(var Ir=0,Yr=Ce;Ir<Ne;++Ir){var Vr=ke[Ir];Yr=="L"&&Vr=="1"?ke[Ir]="L":m.test(Vr)&&(Yr=Vr)}for(var Fr=0;Fr<Ne;++Fr)if(f.test(ke[Fr])){var Ar=void 0;for(Ar=Fr+1;Ar<Ne&&f.test(ke[Ar]);++Ar);for(var dr=(Fr?ke[Fr-1]:Ce)=="L",cn=(Ar<Ne?ke[Ar]:Ce)=="L",Ca=dr==cn?dr?"L":"R":Ce,gi=Fr;gi<Ar;++gi)ke[gi]=Ca;Fr=Ar-1}for(var Jr=[],ri,Wr=0;Wr<Ne;)if(k.test(ke[Wr])){var is=Wr;for(++Wr;Wr<Ne&&k.test(ke[Wr]);++Wr);Jr.push(new H(0,is,Wr))}else{var yi=Wr,$n=Jr.length,Lr=be=="rtl"?1:0;for(++Wr;Wr<Ne&&ke[Wr]!="L";++Wr);for(var dn=yi;dn<Wr;)if(U.test(ke[dn])){yi<dn&&(Jr.splice($n,0,new H(1,yi,dn)),$n+=Lr);var ni=dn;for(++dn;dn<Wr&&U.test(ke[dn]);++dn);Jr.splice($n,0,new H(2,ni,dn)),$n+=Lr,yi=dn}else++dn;yi<Wr&&Jr.splice($n,0,new H(1,yi,Wr))}return be=="ltr"&&(Jr[0].level==1&&(ri=Z.match(/^\s+/))&&(Jr[0].from=ri[0].length,Jr.unshift(new H(0,0,ri[0].length))),Et(Jr).level==1&&(ri=Z.match(/\s+$/))&&(Et(Jr).to-=ri[0].length,Jr.push(new H(0,Ne-ri[0].length,Ne)))),be=="rtl"?Jr.reverse():Jr}}();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 de(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=ht(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function ae(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 pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||n.type,e,n),At(n)||n.codemirrorIgnore}function Ee(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 je(e,n){return re(e,n).length>0}function Ve(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function hn(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 Nr=function(){if(b&&S<9)return!1;var e=we("div");return"draggable"in e||"dragDrop"in e}(),Cr;function Si(e){if(Cr==null){var n=we("span","\u200B");xe(e,we("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Cr?we("span","\u200B"):we("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Gr;function Vi(e){if(Gr!=null)return Gr;var n=xe(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:Gr=l.right-u.right<3}var Nn=`
19
19
 
20
20
  b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
21
- `,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),k=m.indexOf("\r");k!=-1?(u.push(m.slice(0,k)),n+=k+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},vn=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},Tn=function(){var e=we("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$r=null;function Ai(e){if($r!=null)return $r;var n=xe(e,we("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return $r=Math.abs(u.left-l.left)>1}var Ei={},en={};function gn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ei[e]=n}function Bn(e,n){en[e]=n}function Un(e){if(typeof e=="string"&&en.hasOwnProperty(e))e=en[e];else if(e&&typeof e.name=="string"&&en.hasOwnProperty(e.name)){var n=en[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Un("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Un("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function yn(e,n){n=Un(n);var u=Ei[n.name];if(!u)return yn(e,"text/plain");var l=u(e,n);if(Jn.hasOwnProperty(n.name)){var f=Jn[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var k in n.modeProps)l[k]=n.modeProps[k];return l}var Jn={};function Ci(e,n){var u=Jn.hasOwnProperty(e)?Jn[e]:Jn[e]={};Ze(n,u)}function Br(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 Kr(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 Xn(e,n,u){return e.startState?e.startState(n,u):!0}var fr=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};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fr.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},fr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},fr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},fr.prototype.backUp=function(e){this.pos-=e},fr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(k){return u?k.toLowerCase():k},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},fr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},fr.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],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function ai(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var k=m.text;f==u.line&&(k=k.slice(0,u.ch)),f==n.line&&(k=k.slice(n.ch)),l.push(k),++f}),l}function Oi(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function En(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(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 jn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var k=0;k<e.lines.length;++k){var U=e.lines[k],H=U.height;if(n<H)break;n-=H}return u+k}function Qn(e,n){return n>=e.first&&n<e.first+e.size}function fa(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function at(e,n,u){if(u===void 0&&(u=null),!(this instanceof at))return new at(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function oi(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function ue(e){return at(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function st(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function lt(e,n){if(n.line<e.first)return at(e.first,0);var u=e.first+e.size-1;return n.line>u?at(u,Ot(e,u).text.length):Kt(n,Ot(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?at(e.line,n):u<0?at(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=lt(e,n[l]);return u}var Or=function(e,n){this.state=e,this.lookAhead=n},Tr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Tr.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}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(e,n,u){return n instanceof Or?new Tr(e,Br(e.mode,n.state),u,n.lookAhead):new Tr(e,Br(e.mode,n),u)},Tr.prototype.save=function(e){var n=e!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],m={};zl(e,n.text,e.doc.mode,u,function(Z,be){return f.push(Z,be)},m,l);for(var k=u.state,U=function(Z){u.baseTokens=f;var be=e.state.overlays[Z],Ce=1,Ne=0;u.state=!0,zl(e,n.text,be.mode,u,function(ke,Ye){for(var tt=Ce;Ne<ke;){var ot=f[Ce];ot>ke&&f.splice(Ce,1,ke,f[Ce+1],ot),Ce+=2,Ne=Math.min(ke,ot)}if(!!Ye)if(be.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=k,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Wl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=tn(e,Zt(n)),f=n.text.length>e.options.maxHighlightLength&&Br(e.doc.mode,l.state),m=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function tn(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Tr(l,!0,n);var m=Rf(e,n,u),k=m>l.first&&Ot(l,m-1).stateAfter,U=k?Tr.fromSaved(l,k,m):new Tr(l,Xn(l.mode),m);return l.iter(m,n,function(H){ys(e,H.text,U);var Z=U.line;H.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ys(e,n,u,l){var f=e.doc.mode,m=new fr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&yo(f,u.state);!m.eol();)ms(f,m,u.state),m.start=m.pos}function yo(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=Kr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ms(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=Kr(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var xs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function bs(e,n,u,l){var f=e.doc,m=f.mode,k;n=lt(f,n);var U=Ot(f,n.line),H=tn(e,n.line,u),Z=new fr(U.text,e.options.tabSize,H),be;for(l&&(be=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,k=ms(m,Z,H.state),l&&be.push(new xs(Z,k,Br(f.mode,H.state)));return l?be:new xs(Z,k,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,m,k){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,be=new fr(n,e.options.tabSize,l),Ce,Ne=e.options.addModeClass&&[null];for(n==""&&Hl(yo(u,l.state),m);!be.eol();){if(be.pos>e.options.maxHighlightLength?(U=!1,k&&ys(e,n,l,be.pos),be.pos=n.length,Ce=null):Ce=Hl(ms(u,be,l.state,Ne),m),Ne){var ke=Ne[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<be.start;)H=Math.min(be.start,H+5e3),f(H,Z);Z=Ce}be.start=be.pos}for(;H<be.pos;){var Ye=Math.min(be.pos,H+5e3);f(Ye,Z),H=Ye}}function Rf(e,n,u){for(var l,f,m=e.doc,k=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>k;--U){if(U<=m.first)return m.first;var H=Ot(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Or?Z.lookAhead:0)<=m.modeFrontier))return U;var be=Xe(H.text,null,e.options.tabSize);(f==null||l>be)&&(f=U-1,l=be)}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 Or)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Df=!1,Ti=!1;function Nf(){Df=!0}function Bf(){Ti=!0}function mo(e,n,u){this.marker=e,this.from=n,this.to=u}function Ia(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 Cd(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 Od(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],k=m.marker,U=m.from==null||(k.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&k.type=="bookmark"&&(!u||!m.marker.insertLeft)){var H=m.to==null||(k.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new mo(k,m.from,H?null:m.to))}}return l}function Td(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],k=m.marker,U=m.to==null||(k.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&k.type=="bookmark"&&(!u||m.marker.insertLeft)){var H=m.from==null||(k.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new mo(k,H?null:m.from-n,m.to==null?null:m.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,m=n.to.ch,k=Lt(n.from,n.to)==0,U=Od(u,f,k),H=Td(l,m,k),Z=n.text.length==1,be=Et(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var Ne=U[Ce];if(Ne.to==null){var ke=Ia(H,Ne.marker);ke?Z&&(Ne.to=ke.to==null?null:ke.to+be):Ne.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=be),tt.from==null){var ot=Ia(U,tt.marker);ot||(tt.from=be,Z&&(U||(U=[])).push(tt))}else tt.from+=be,Z&&(U||(U=[])).push(tt)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ct=[U];if(!Z){var yt=n.text.length-2,dt;if(yt>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(dt||(dt=[])).push(new mo(U[bt].marker,null,null));for(var Ft=0;Ft<yt;++Ft)ct.push(dt);ct.push(H)}return ct}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 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}],m=0;m<l.length;++m)for(var k=l[m],U=k.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var be=[H,1],Ce=Lt(Z.from,U.from),Ne=Lt(Z.to,U.to);(Ce<0||!k.inclusiveLeft&&!Ce)&&be.push({from:Z.from,to:U.from}),(Ne>0||!k.inclusiveRight&&!Ne)&&be.push({from:U.to,to:Z.to}),f.splice.apply(f,be),H+=be.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 ws(e){return e.inclusiveLeft?-1:0}function Ss(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(),m=Lt(l.from,f.from)||ws(e)-ws(n);if(m)return-m;var k=Lt(l.to,f.to)||Ss(e)-Ss(n);return k||n.id-e.id}function Fa(e,n){var u=Ti&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function As(e){return Fa(e,!0)}function Wi(e){return Fa(e,!1)}function Vf(e,n){var u=Ti&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||Jl(l,m.marker)<0)&&(l=m.marker)}return l}function xo(e,n,u,l,f){var m=Ot(e,n),k=Ti&&m.markedSpans;if(k)for(var U=0;U<k.length;++U){var H=k[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),be=Lt(Z.from,u)||ws(H.marker)-ws(f),Ce=Lt(Z.to,l)||Ss(H.marker)-Ss(f);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||be>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Vn(e){for(var n;n=As(e);)e=n.find(-1,!0).line;return e}function Xl(e){for(var n;n=Wi(e);)e=n.find(1,!0).line;return e}function Wf(e){for(var n,u;n=Wi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function ka(e,n){var u=Ot(e,n),l=Vn(u);return u==l?n:Zt(l)}function Es(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!si(e,u))return n;for(;l=Wi(u);)u=l.find(1,!0).line;return Zt(u)+1}function si(e,n){var u=Ti&&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,Ia(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,n,f))return!0}function li(e){e=Vn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var k=0;k<m.children.length;++k){var U=m.children[k];if(U==u)break;n+=U.height}return n}function Hi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=As(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Wi(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function Cs(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=Hi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Hi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var zi=function(e,n,u){this.text=e,jf(this,n),this.height=u?u(this):1};zi.prototype.lineNo=function(){return Zt(this)},je(zi);function Pi(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&&En(e,f)}function Gi(e){e.parent=null,Yl(e)}var Os={},Ts={};function Ql(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Ts:Os;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Ps(e,n){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,k=void 0;l.pos=0,l.addToken=Fs,Vi(e.display.measure)&&(k=O(m,e.doc.direction))&&(l.addToken=Hf(l.addToken,k)),l.map=[];var U=n!=e.display.externalMeasured&&Zt(m);zf(m,l,Wl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.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=Me(l.pre.className,l.textClass||"")),l}function Is(e){var n=we("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Fs(e,n,u,l,f,m,k){if(!!n){var U=e.splitSpaces?$i(n,e.trailingSpace):n,H=e.cm.state.specialChars,Z=!1,be;if(!H.test(n))e.col+=n.length,be=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,be),b&&S<9&&(Z=!0),e.pos+=n.length;else{be=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var Ne=H.exec(n),ke=Ne?Ne.index-Ce:n.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?be.appendChild(we("span",[Ye])):be.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!Ne)break;Ce+=ke+1;var tt=void 0;if(Ne[0]==" "){var ot=e.cm.options.tabSize,ct=ot-e.col%ot;tt=be.appendChild(we("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else Ne[0]=="\r"||Ne[0]==`
22
- `?(tt=be.appendChild(we("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&&S<9?be.appendChild(we("span",[tt])):be.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||k){var yt=u||"";l&&(yt+=l),f&&(yt+=f);var dt=we("span",[be],yt,m);if(k)for(var bt in k)k.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&dt.setAttribute(bt,k[bt]);return e.content.appendChild(dt)}e.content.appendChild(be)}}function $i(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Hf(e,n){return function(u,l,f,m,k,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,be=Z+l.length;;){for(var Ce=void 0,Ne=0;Ne<n.length&&(Ce=n[Ne],!(Ce.to>Z&&Ce.from<=Z));Ne++);if(Ce.to>=be)return e(u,l,f,m,k,U,H);e(u,l.slice(0,Ce.to-Z),f,m,null,U,H),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function ir(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,m=0;if(!l){for(var k=1;k<u.length;k+=2)n.addToken(n,f.slice(m,m=u[k]),Ql(u[k+1],n.cm.options));return}for(var U=f.length,H=0,Z=1,be="",Ce,Ne,ke=0,Ye,tt,ot,ct,yt;;){if(ke==H){Ye=tt=ot=Ne="",yt=null,ct=null,ke=1/0;for(var dt=[],bt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],it=It.marker;if(it.type=="bookmark"&&It.from==H&&it.widgetNode)dt.push(it);else if(It.from<=H&&(It.to==null||It.to>H||it.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),it.className&&(Ye+=" "+it.className),it.css&&(Ne=(Ne?Ne+";":"")+it.css),it.startStyle&&It.from==H&&(ot+=" "+it.startStyle),it.endStyle&&It.to==ke&&(bt||(bt=[])).push(it.endStyle,It.to),it.title&&((yt||(yt={})).title=it.title),it.attributes)for(var Tt in it.attributes)(yt||(yt={}))[Tt]=it.attributes[Tt];it.collapsed&&(!ct||Jl(ct.marker,it)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(bt)for(var Sr=0;Sr<bt.length;Sr+=2)bt[Sr+1]==ke&&(tt+=" "+bt[Sr]);if(!ct||ct.from==H)for(var vr=0;vr<dt.length;++vr)ir(n,0,dt[vr]);if(ct&&(ct.from||0)==H){if(ir(n,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var wn=Math.min(U,ke);;){if(be){var fn=H+be.length;if(!ct){var Ir=fn>wn?be.slice(0,wn-H):be;n.addToken(n,Ir,Ce?Ce+Ye:Ye,ot,H+Ir.length==ke?tt:"",Ne,yt)}if(fn>=wn){be=be.slice(wn-H),H=wn;break}H=fn,ot=""}be=f.slice(m,m=u[Z++]),Ce=Ql(u[Z++],n.cm.options)}}}function Zl(e,n,u){this.line=n,this.rest=Wf(n),this.size=this.rest?Zt(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=si(e,n)}function bo(e,n,u){for(var l=[],f,m=n;m<u;m=f){var k=new Zl(e.doc,Ot(e.doc,m),m);f=m+k.size,l.push(k)}return l}var rn=null;function _l(e){rn?rn.ops.push(e):e.ownsGroup=rn={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 ks(e,n){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{rn=null,n(u)}}var Ma=null;function ar(e,n){var u=re(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;rn?f=rn.delayedCallbacks:Ma?f=Ma:(f=Ma=[],setTimeout(Gf,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},k=0;k<u.length;++k)m(k)}}function Gf(){var e=Ma;Ma=null;for(var n=0;n<e.length;++n)e[n]()}function wo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?$f(e,n):m=="gutter"?La(e,n,u,l):m=="class"?Ms(e,n):m=="widget"&&Kf(e,n,l)}n.changes=null}function Ra(e){return e.node==e.text&&(e.node=we("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=Ra(n);n.background=l.insertBefore(we("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):Ps(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,Ms(e,n)):u&&(n.text.className=u)}function Ms(e,n){eu(e,n),n.line.wrapClass?Ra(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 La(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=Ra(n);n.gutterBackground=we("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var k=Ra(n),U=n.gutter=we("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),k.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(we("div",fa(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,be=m.hasOwnProperty(Z)&&m[Z];be&&U.appendChild(we("div",[be],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Kf(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);ru(e,n,u)}function qt(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),Ms(e,n),La(e,n,u,l),ru(e,n,l),n.node}function ru(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var m=Ra(u),k=0,U=n.widgets;k<U.length;++k){var H=U[k],Z=we("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Yf(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),ar(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 Ct(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;"),xe(n.display.measure,we("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,n){for(var u=Pt(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 Da(e){return e.lineSpace.offsetTop}function Rs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=xe(e.measure,we("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 Ki(e){return e.display.scroller.clientWidth-fi(e)-e.display.barWidth}function Na(e){return e.display.scroller.clientHeight-fi(e)-e.display.barHeight}function Jf(e,n,u){var l=e.options.lineWrapping,f=l&&Ki(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=n.measure.heights=[];if(l){n.measure.width=f;for(var k=n.text.firstChild.getClientRects(),U=0;U<k.length-1;U++){var H=k[U],Z=k[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ls(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(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Xf(e,n){n=Vn(n);var u=Zt(n),l=e.display.externalMeasured=new Zl(e.doc,n,u);l.lineN=u;var f=l.built=Ps(e,l);return l.text=f.pre,xe(e.display.lineMeasure,f.pre),l}function So(e,n,u,l){return Wn(e,Zn(e,n),u,l)}function Ds(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Qi(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=Zt(n),l=Ds(e,u);l&&!l.text?l=null:l&&l.changes&&(wo(e,l,u,Hs(e)),e.curOp.forceUpdate=!0),l||(l=Xf(e,n));var f=Ls(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Wn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),k;return n.cache.hasOwnProperty(m)?k=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Jf(e,n.view,n.rect),n.hasHeights=!0),k=nu(e,n,u,l),k.bogus||(n.cache[m]=k)),{left:k.left,right:k.right,top:f?k.rtop:k.top,bottom:f?k.rbottom:k.bottom}}var Ao={left:0,right:0,top:0,bottom:0};function Ns(e,n,u){for(var l,f,m,k,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],n<U?(f=0,m=1,k="left"):n<H?(f=n-U,m=f+1):(Z==e.length-3||n==H&&e[Z+3]>n)&&(m=H-U,f=m-1,n>=H&&(k="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(k=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],k="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],k="right";break}return{node:l,start:f,end:m,collapse:k,coverStart:U,coverEnd:H}}function Bs(e,n){var u=Ao;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=Ns(n.map,u,l),m=f.node,k=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var be=0;be<4;be++){for(;k&&Ie(n.line.text.charAt(f.coverStart+k));)--k;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&k==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Bs(fe(m,k,U).getClientRects(),l),Z.left||Z.right||k==0)break;U=k,k=k-1,H="right"}b&&S<11&&(Z=iu(e.display.measure,Z))}else{k>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!k&&(!Z||!Z.left&&!Z.right)){var Ne=m.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+Pn(e.display),top:Ne.top,bottom:Ne.bottom}:Z=Ao}for(var ke=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(ke+Ye)/2,ot=n.view.measure.heights,ct=0;ct<ot.length-1&&!(tt<ot[ct]);ct++);var yt=ct?ot[ct-1]:0,dt=ot[ct],bt={left:(H=="right"?Z.right:Z.left)-n.rect.left,right:(H=="left"?Z.left:Z.right)-n.rect.left,top:yt,bottom:dt};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=ke,bt.rbottom=Ye),bt}function iu(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ai(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 Us(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 Yi(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Us(e.display.view[n])}function Ba(e){Yi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ua(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ja(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ct(e.widgets[u]));return n}function Eo(e,n,u,l,f){if(!f){var m=ja(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var k=li(n);if(l=="local"?k+=Da(e.display):k-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();k+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Ua());u.left+=H,u.right+=H}return u.top+=k,u.bottom+=k,u}function Va(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ua(),f-=au();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var k=e.display.lineSpace.getBoundingClientRect();return{left:l-k.left,top:f-k.top}}function Co(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Eo(e,l,So(e,l,n.ch,f),u)}function Hn(e,n,u,l,f,m){l=l||Ot(e.doc,n.line),f||(f=Zn(e,l));function k(Ye,tt){var ot=Wn(e,f,Ye,tt?"right":"left",m);return tt?ot.left=ot.right:ot.right=ot.left,Eo(e,l,ot,u)}var U=O(l,e.doc.direction),H=n.ch,Z=n.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return k(Z=="before"?H-1:H,Z=="before");function be(Ye,tt,ot){var ct=U[tt],yt=ct.level==1;return k(ot?Ye-1:Ye,yt!=ot)}var Ce=K(U,H,Z),Ne=Re,ke=be(H,Ce,Z=="before");return Ne!=null&&(ke.other=be(H,Ne,Z!="before")),ke}function ou(e,n){var u=0;n=lt(e.doc,n),e.options.lineWrapping||(u=Pn(e.display)*n.ch);var l=Ot(e.doc,n.line),f=li(l)+Da(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function js(e,n,u,l,f){var m=at(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function Vs(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return js(l.first,0,null,-1,-1);var f=jn(l,u),m=l.first+l.size-1;if(f>m)return js(l.first+l.size-1,Ot(l,m).text.length,null,1,1);n<0&&(n=0);for(var k=Ot(l,f);;){var U=Qf(e,k,f,n,u),H=Vf(k,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;k=Ot(l,f=Z.line)}}function su(e,n,u,l){l-=ja(n);var f=n.text.length,m=Ke(function(k){return Wn(e,u,k-1).bottom<=l},f,0);return f=Ke(function(k){return Wn(e,u,k).top>l},m,f),{begin:m,end:f}}function lu(e,n,u,l){u||(u=Zn(e,n));var f=Eo(e,n,Wn(e,u,l),"line").top;return su(e,n,u,f)}function Ws(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 m=Zn(e,n),k=ja(n),U=0,H=n.text.length,Z=!0,be=O(n,e.doc.direction);if(be){var Ce=(e.options.lineWrapping?_f:Zf)(e,n,u,m,be,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var Ne=null,ke=null,Ye=Ke(function(Ft){var It=Wn(e,m,Ft);return It.top+=k,It.bottom+=k,Ws(It,l,f,!1)?(It.top<=f&&It.left<=l&&(Ne=Ft,ke=It),!0):!1},U,H),tt,ot,ct=!1;if(ke){var yt=l-ke.left<ke.right-l,dt=yt==Z;Ye=Ne+(dt?0:1),ot=dt?"after":"before",tt=yt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,ot=Ye==0?"after":Ye==n.text.length?"before":Wn(e,m,Ye-(Z?1:0)).bottom+k<=f==Z?"after":"before";var bt=Hn(e,at(u,Ye,ot),"line",n,m);tt=bt.left,ct=f<bt.top?-1:f>=bt.bottom?1:0}return Ye=Ge(n.text,Ye,1),js(u,Ye,ot,ct,l-tt)}function Zf(e,n,u,l,f,m,k){var U=Ke(function(Ce){var Ne=f[Ce],ke=Ne.level!=1;return Ws(Hn(e,at(u,ke?Ne.to:Ne.from,ke?"before":"after"),"line",n,l),m,k,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,be=Hn(e,at(u,Z?H.from:H.to,Z?"after":"before"),"line",n,l);Ws(be,m,k,!0)&&be.top>k&&(H=f[U-1])}return H}function _f(e,n,u,l,f,m,k){var U=su(e,n,l,k),H=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var be=null,Ce=null,Ne=0;Ne<f.length;Ne++){var ke=f[Ne];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Wn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,ot=tt<m?m-tt+1e9:tt-m;(!be||Ce>ot)&&(be=ke,Ce=ot)}}return be||(be=f[f.length-1]),be.from<H&&(be={from:H,to:be.to,level:be.level}),be.to>Z&&(be={from:be.from,to:Z,level:be.level}),be}var Ji;function ca(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ji==null){Ji=we("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Ji.appendChild(document.createTextNode("x")),Ji.appendChild(we("br"));Ji.appendChild(document.createTextNode("x"))}xe(e.measure,Ji);var u=Ji.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=we("span","xxxxxxxxxx"),u=we("pre",[n],"CodeMirror-line-like");xe(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Hs(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,k=0;m;m=m.nextSibling,++k){var U=e.display.gutterSpecs[k].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.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 uu(e){var n=ca(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Pn(e.display)-3);return function(f){if(si(e.doc,f))return 0;var m=0;if(f.widgets)for(var k=0;k<f.widgets.length;k++)f.widgets[k].height&&(m+=f.widgets[k].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function zs(e){var n=e.doc,u=uu(e);n.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function Xi(e,n,u,l){var f=e.display;if(!u&&Pt(n).getAttribute("cm-not-content")=="true")return null;var m,k,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,k=n.clientY-U.top}catch(Ce){return null}var H=Vs(e,m,k),Z;if(l&&H.xRel>0&&(Z=Ot(e.doc,H.line).text).length==H.ch){var be=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=at(H.line,Math.max(0,Math.round((m-ln(e.display).left)/Pn(e.display))-be))}return H}function Qi(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 Mr(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)Ti&&ka(e.doc,n)<f.viewTo&&Ii(e);else if(u<=f.viewFrom)Ti&&Es(e.doc,u+l)>f.viewFrom?Ii(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Ii(e);else if(n<=f.viewFrom){var m=Oo(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Ii(e)}else if(u>=f.viewTo){var k=Oo(e,n,n,-1);k?(f.view=f.view.slice(0,k.index),f.viewTo=k.lineN):Ii(e)}else{var U=Oo(e,n,n,-1),H=Oo(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(bo(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ii(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function _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 m=l.view[Qi(e,n)];if(m.node!=null){var k=m.changes||(m.changes=[]);ht(k,u)==-1&&k.push(u)}}}function Ii(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,n,u,l){var f=Qi(e,n),m,k=e.display.view;if(!Ti||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=k[H].size;if(U!=n){if(l>0){if(f==k.length-1)return null;m=U+k[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;ka(e.doc,u)!=u;){if(f==(l<0?0:k.length-1))return null;u+=l*k[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=bo(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=bo(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Qi(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(bo(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Qi(e,u)))),l.viewTo=u}function To(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 Fi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Po(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),k=e.options.$customCursor;k&&(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 Z=H.empty();if(k){var be=k(e,H);be&&Gs(e,be,f)}else(Z||e.options.showCursorWhenSelecting)&&Gs(e,H.head,f);Z||fu(e,H,m)}}return l}function Gs(e,n,u){var l=Hn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(we("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=Co(e,n,"div",null,null),k=m.right-m.left;f.style.width=(k>0?k:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(we("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 Io(e,n){return e.top-n.top||e.left-n.left}function fu(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),k=ln(e.display),U=k.left,H=Math.max(l.sizerWidth,Ki(e)-l.sizer.offsetLeft)-k.right,Z=f.direction=="ltr";function be(dt,bt,Ft,It){bt<0&&(bt=0),bt=Math.round(bt),It=Math.round(It),m.appendChild(we("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
21
+ `,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),k=m.indexOf("\r");k!=-1?(u.push(m.slice(0,k)),n+=k+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},vn=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},Tn=function(){var e=we("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$r=null;function Ai(e){if($r!=null)return $r;var n=xe(e,we("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return $r=Math.abs(u.left-l.left)>1}var Ei={},en={};function gn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ei[e]=n}function Bn(e,n){en[e]=n}function Un(e){if(typeof e=="string"&&en.hasOwnProperty(e))e=en[e];else if(e&&typeof e.name=="string"&&en.hasOwnProperty(e.name)){var n=en[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Un("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Un("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function yn(e,n){n=Un(n);var u=Ei[n.name];if(!u)return yn(e,"text/plain");var l=u(e,n);if(Jn.hasOwnProperty(n.name)){var f=Jn[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var k in n.modeProps)l[k]=n.modeProps[k];return l}var Jn={};function Ci(e,n){var u=Jn.hasOwnProperty(e)?Jn[e]:Jn[e]={};Ze(n,u)}function Br(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 Kr(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 Xn(e,n,u){return e.startState?e.startState(n,u):!0}var fr=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};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fr.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},fr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},fr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},fr.prototype.backUp=function(e){this.pos-=e},fr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(k){return u?k.toLowerCase():k},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},fr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},fr.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],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function ai(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var k=m.text;f==u.line&&(k=k.slice(0,u.ch)),f==n.line&&(k=k.slice(n.ch)),l.push(k),++f}),l}function Oi(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function En(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(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 jn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var k=0;k<e.lines.length;++k){var U=e.lines[k],H=U.height;if(n<H)break;n-=H}return u+k}function Qn(e,n){return n>=e.first&&n<e.first+e.size}function fa(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function at(e,n,u){if(u===void 0&&(u=null),!(this instanceof at))return new at(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function oi(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function ue(e){return at(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function st(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function lt(e,n){if(n.line<e.first)return at(e.first,0);var u=e.first+e.size-1;return n.line>u?at(u,Ot(e,u).text.length):Kt(n,Ot(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?at(e.line,n):u<0?at(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=lt(e,n[l]);return u}var Or=function(e,n){this.state=e,this.lookAhead=n},Tr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Tr.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}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(e,n,u){return n instanceof Or?new Tr(e,Br(e.mode,n.state),u,n.lookAhead):new Tr(e,Br(e.mode,n),u)},Tr.prototype.save=function(e){var n=e!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],m={};zl(e,n.text,e.doc.mode,u,function(Z,be){return f.push(Z,be)},m,l);for(var k=u.state,U=function(Z){u.baseTokens=f;var be=e.state.overlays[Z],Ce=1,Ne=0;u.state=!0,zl(e,n.text,be.mode,u,function(ke,Ye){for(var tt=Ce;Ne<ke;){var ot=f[Ce];ot>ke&&f.splice(Ce,1,ke,f[Ce+1],ot),Ce+=2,Ne=Math.min(ke,ot)}if(!!Ye)if(be.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=k,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Wl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=tn(e,Zt(n)),f=n.text.length>e.options.maxHighlightLength&&Br(e.doc.mode,l.state),m=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function tn(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Tr(l,!0,n);var m=Rf(e,n,u),k=m>l.first&&Ot(l,m-1).stateAfter,U=k?Tr.fromSaved(l,k,m):new Tr(l,Xn(l.mode),m);return l.iter(m,n,function(H){ys(e,H.text,U);var Z=U.line;H.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ys(e,n,u,l){var f=e.doc.mode,m=new fr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&yo(f,u.state);!m.eol();)ms(f,m,u.state),m.start=m.pos}function yo(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=Kr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ms(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=Kr(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var xs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function bs(e,n,u,l){var f=e.doc,m=f.mode,k;n=lt(f,n);var U=Ot(f,n.line),H=tn(e,n.line,u),Z=new fr(U.text,e.options.tabSize,H),be;for(l&&(be=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,k=ms(m,Z,H.state),l&&be.push(new xs(Z,k,Br(f.mode,H.state)));return l?be:new xs(Z,k,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,m,k){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,be=new fr(n,e.options.tabSize,l),Ce,Ne=e.options.addModeClass&&[null];for(n==""&&Hl(yo(u,l.state),m);!be.eol();){if(be.pos>e.options.maxHighlightLength?(U=!1,k&&ys(e,n,l,be.pos),be.pos=n.length,Ce=null):Ce=Hl(ms(u,be,l.state,Ne),m),Ne){var ke=Ne[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<be.start;)H=Math.min(be.start,H+5e3),f(H,Z);Z=Ce}be.start=be.pos}for(;H<be.pos;){var Ye=Math.min(be.pos,H+5e3);f(Ye,Z),H=Ye}}function Rf(e,n,u){for(var l,f,m=e.doc,k=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>k;--U){if(U<=m.first)return m.first;var H=Ot(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Or?Z.lookAhead:0)<=m.modeFrontier))return U;var be=Xe(H.text,null,e.options.tabSize);(f==null||l>be)&&(f=U-1,l=be)}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 Or)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Df=!1,Ti=!1;function Nf(){Df=!0}function Bf(){Ti=!0}function mo(e,n,u){this.marker=e,this.from=n,this.to=u}function Ia(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 Cd(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 Od(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],k=m.marker,U=m.from==null||(k.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&k.type=="bookmark"&&(!u||!m.marker.insertLeft)){var H=m.to==null||(k.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new mo(k,m.from,H?null:m.to))}}return l}function Td(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],k=m.marker,U=m.to==null||(k.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&k.type=="bookmark"&&(!u||m.marker.insertLeft)){var H=m.from==null||(k.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new mo(k,H?null:m.from-n,m.to==null?null:m.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,m=n.to.ch,k=Lt(n.from,n.to)==0,U=Od(u,f,k),H=Td(l,m,k),Z=n.text.length==1,be=Et(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var Ne=U[Ce];if(Ne.to==null){var ke=Ia(H,Ne.marker);ke?Z&&(Ne.to=ke.to==null?null:ke.to+be):Ne.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=be),tt.from==null){var ot=Ia(U,tt.marker);ot||(tt.from=be,Z&&(U||(U=[])).push(tt))}else tt.from+=be,Z&&(U||(U=[])).push(tt)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ct=[U];if(!Z){var yt=n.text.length-2,dt;if(yt>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(dt||(dt=[])).push(new mo(U[bt].marker,null,null));for(var Ft=0;Ft<yt;++Ft)ct.push(dt);ct.push(H)}return ct}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 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}],m=0;m<l.length;++m)for(var k=l[m],U=k.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var be=[H,1],Ce=Lt(Z.from,U.from),Ne=Lt(Z.to,U.to);(Ce<0||!k.inclusiveLeft&&!Ce)&&be.push({from:Z.from,to:U.from}),(Ne>0||!k.inclusiveRight&&!Ne)&&be.push({from:U.to,to:Z.to}),f.splice.apply(f,be),H+=be.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 ws(e){return e.inclusiveLeft?-1:0}function Ss(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(),m=Lt(l.from,f.from)||ws(e)-ws(n);if(m)return-m;var k=Lt(l.to,f.to)||Ss(e)-Ss(n);return k||n.id-e.id}function Fa(e,n){var u=Ti&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function As(e){return Fa(e,!0)}function Wi(e){return Fa(e,!1)}function Vf(e,n){var u=Ti&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||Jl(l,m.marker)<0)&&(l=m.marker)}return l}function xo(e,n,u,l,f){var m=Ot(e,n),k=Ti&&m.markedSpans;if(k)for(var U=0;U<k.length;++U){var H=k[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),be=Lt(Z.from,u)||ws(H.marker)-ws(f),Ce=Lt(Z.to,l)||Ss(H.marker)-Ss(f);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||be>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Vn(e){for(var n;n=As(e);)e=n.find(-1,!0).line;return e}function Xl(e){for(var n;n=Wi(e);)e=n.find(1,!0).line;return e}function Wf(e){for(var n,u;n=Wi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function ka(e,n){var u=Ot(e,n),l=Vn(u);return u==l?n:Zt(l)}function Es(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!si(e,u))return n;for(;l=Wi(u);)u=l.find(1,!0).line;return Zt(u)+1}function si(e,n){var u=Ti&&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,Ia(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,n,f))return!0}function li(e){e=Vn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var k=0;k<m.children.length;++k){var U=m.children[k];if(U==u)break;n+=U.height}return n}function Hi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=As(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Wi(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function Cs(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=Hi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=Hi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var zi=function(e,n,u){this.text=e,jf(this,n),this.height=u?u(this):1};zi.prototype.lineNo=function(){return Zt(this)},Ve(zi);function Pi(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&&En(e,f)}function Gi(e){e.parent=null,Yl(e)}var Os={},Ts={};function Ql(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Ts:Os;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Ps(e,n){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,k=void 0;l.pos=0,l.addToken=Fs,Vi(e.display.measure)&&(k=O(m,e.doc.direction))&&(l.addToken=Hf(l.addToken,k)),l.map=[];var U=n!=e.display.externalMeasured&&Zt(m);zf(m,l,Wl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.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=Me(l.pre.className,l.textClass||"")),l}function Is(e){var n=we("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Fs(e,n,u,l,f,m,k){if(!!n){var U=e.splitSpaces?$i(n,e.trailingSpace):n,H=e.cm.state.specialChars,Z=!1,be;if(!H.test(n))e.col+=n.length,be=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,be),b&&S<9&&(Z=!0),e.pos+=n.length;else{be=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var Ne=H.exec(n),ke=Ne?Ne.index-Ce:n.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?be.appendChild(we("span",[Ye])):be.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!Ne)break;Ce+=ke+1;var tt=void 0;if(Ne[0]==" "){var ot=e.cm.options.tabSize,ct=ot-e.col%ot;tt=be.appendChild(we("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else Ne[0]=="\r"||Ne[0]==`
22
+ `?(tt=be.appendChild(we("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&&S<9?be.appendChild(we("span",[tt])):be.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||k){var yt=u||"";l&&(yt+=l),f&&(yt+=f);var dt=we("span",[be],yt,m);if(k)for(var bt in k)k.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&dt.setAttribute(bt,k[bt]);return e.content.appendChild(dt)}e.content.appendChild(be)}}function $i(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Hf(e,n){return function(u,l,f,m,k,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,be=Z+l.length;;){for(var Ce=void 0,Ne=0;Ne<n.length&&(Ce=n[Ne],!(Ce.to>Z&&Ce.from<=Z));Ne++);if(Ce.to>=be)return e(u,l,f,m,k,U,H);e(u,l.slice(0,Ce.to-Z),f,m,null,U,H),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function ir(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,m=0;if(!l){for(var k=1;k<u.length;k+=2)n.addToken(n,f.slice(m,m=u[k]),Ql(u[k+1],n.cm.options));return}for(var U=f.length,H=0,Z=1,be="",Ce,Ne,ke=0,Ye,tt,ot,ct,yt;;){if(ke==H){Ye=tt=ot=Ne="",yt=null,ct=null,ke=1/0;for(var dt=[],bt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],it=It.marker;if(it.type=="bookmark"&&It.from==H&&it.widgetNode)dt.push(it);else if(It.from<=H&&(It.to==null||It.to>H||it.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),it.className&&(Ye+=" "+it.className),it.css&&(Ne=(Ne?Ne+";":"")+it.css),it.startStyle&&It.from==H&&(ot+=" "+it.startStyle),it.endStyle&&It.to==ke&&(bt||(bt=[])).push(it.endStyle,It.to),it.title&&((yt||(yt={})).title=it.title),it.attributes)for(var Tt in it.attributes)(yt||(yt={}))[Tt]=it.attributes[Tt];it.collapsed&&(!ct||Jl(ct.marker,it)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(bt)for(var Sr=0;Sr<bt.length;Sr+=2)bt[Sr+1]==ke&&(tt+=" "+bt[Sr]);if(!ct||ct.from==H)for(var vr=0;vr<dt.length;++vr)ir(n,0,dt[vr]);if(ct&&(ct.from||0)==H){if(ir(n,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var wn=Math.min(U,ke);;){if(be){var fn=H+be.length;if(!ct){var Ir=fn>wn?be.slice(0,wn-H):be;n.addToken(n,Ir,Ce?Ce+Ye:Ye,ot,H+Ir.length==ke?tt:"",Ne,yt)}if(fn>=wn){be=be.slice(wn-H),H=wn;break}H=fn,ot=""}be=f.slice(m,m=u[Z++]),Ce=Ql(u[Z++],n.cm.options)}}}function Zl(e,n,u){this.line=n,this.rest=Wf(n),this.size=this.rest?Zt(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=si(e,n)}function bo(e,n,u){for(var l=[],f,m=n;m<u;m=f){var k=new Zl(e.doc,Ot(e.doc,m),m);f=m+k.size,l.push(k)}return l}var rn=null;function _l(e){rn?rn.ops.push(e):e.ownsGroup=rn={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 ks(e,n){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{rn=null,n(u)}}var Ma=null;function ar(e,n){var u=re(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;rn?f=rn.delayedCallbacks:Ma?f=Ma:(f=Ma=[],setTimeout(Gf,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},k=0;k<u.length;++k)m(k)}}function Gf(){var e=Ma;Ma=null;for(var n=0;n<e.length;++n)e[n]()}function wo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?$f(e,n):m=="gutter"?La(e,n,u,l):m=="class"?Ms(e,n):m=="widget"&&Kf(e,n,l)}n.changes=null}function Ra(e){return e.node==e.text&&(e.node=we("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=Ra(n);n.background=l.insertBefore(we("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):Ps(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,Ms(e,n)):u&&(n.text.className=u)}function Ms(e,n){eu(e,n),n.line.wrapClass?Ra(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 La(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=Ra(n);n.gutterBackground=we("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var k=Ra(n),U=n.gutter=we("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),k.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(we("div",fa(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,be=m.hasOwnProperty(Z)&&m[Z];be&&U.appendChild(we("div",[be],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Kf(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);ru(e,n,u)}function qt(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),Ms(e,n),La(e,n,u,l),ru(e,n,l),n.node}function ru(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var m=Ra(u),k=0,U=n.widgets;k<U.length;++k){var H=U[k],Z=we("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Yf(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),ar(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 Ct(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),xe(n.display.measure,we("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,n){for(var u=Pt(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 Da(e){return e.lineSpace.offsetTop}function Rs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=xe(e.measure,we("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 Ki(e){return e.display.scroller.clientWidth-fi(e)-e.display.barWidth}function Na(e){return e.display.scroller.clientHeight-fi(e)-e.display.barHeight}function Jf(e,n,u){var l=e.options.lineWrapping,f=l&&Ki(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=n.measure.heights=[];if(l){n.measure.width=f;for(var k=n.text.firstChild.getClientRects(),U=0;U<k.length-1;U++){var H=k[U],Z=k[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ls(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(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Xf(e,n){n=Vn(n);var u=Zt(n),l=e.display.externalMeasured=new Zl(e.doc,n,u);l.lineN=u;var f=l.built=Ps(e,l);return l.text=f.pre,xe(e.display.lineMeasure,f.pre),l}function So(e,n,u,l){return Wn(e,Zn(e,n),u,l)}function Ds(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Qi(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=Zt(n),l=Ds(e,u);l&&!l.text?l=null:l&&l.changes&&(wo(e,l,u,Hs(e)),e.curOp.forceUpdate=!0),l||(l=Xf(e,n));var f=Ls(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Wn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),k;return n.cache.hasOwnProperty(m)?k=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Jf(e,n.view,n.rect),n.hasHeights=!0),k=nu(e,n,u,l),k.bogus||(n.cache[m]=k)),{left:k.left,right:k.right,top:f?k.rtop:k.top,bottom:f?k.rbottom:k.bottom}}var Ao={left:0,right:0,top:0,bottom:0};function Ns(e,n,u){for(var l,f,m,k,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],n<U?(f=0,m=1,k="left"):n<H?(f=n-U,m=f+1):(Z==e.length-3||n==H&&e[Z+3]>n)&&(m=H-U,f=m-1,n>=H&&(k="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(k=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],k="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],k="right";break}return{node:l,start:f,end:m,collapse:k,coverStart:U,coverEnd:H}}function Bs(e,n){var u=Ao;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=Ns(n.map,u,l),m=f.node,k=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var be=0;be<4;be++){for(;k&&Ie(n.line.text.charAt(f.coverStart+k));)--k;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&k==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Bs(fe(m,k,U).getClientRects(),l),Z.left||Z.right||k==0)break;U=k,k=k-1,H="right"}b&&S<11&&(Z=iu(e.display.measure,Z))}else{k>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!k&&(!Z||!Z.left&&!Z.right)){var Ne=m.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+Pn(e.display),top:Ne.top,bottom:Ne.bottom}:Z=Ao}for(var ke=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(ke+Ye)/2,ot=n.view.measure.heights,ct=0;ct<ot.length-1&&!(tt<ot[ct]);ct++);var yt=ct?ot[ct-1]:0,dt=ot[ct],bt={left:(H=="right"?Z.right:Z.left)-n.rect.left,right:(H=="left"?Z.left:Z.right)-n.rect.left,top:yt,bottom:dt};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=ke,bt.rbottom=Ye),bt}function iu(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ai(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 Us(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 Yi(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Us(e.display.view[n])}function Ba(e){Yi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ua(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ja(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ct(e.widgets[u]));return n}function Eo(e,n,u,l,f){if(!f){var m=ja(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var k=li(n);if(l=="local"?k+=Da(e.display):k-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();k+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Ua());u.left+=H,u.right+=H}return u.top+=k,u.bottom+=k,u}function Va(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ua(),f-=au();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var k=e.display.lineSpace.getBoundingClientRect();return{left:l-k.left,top:f-k.top}}function Co(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Eo(e,l,So(e,l,n.ch,f),u)}function Hn(e,n,u,l,f,m){l=l||Ot(e.doc,n.line),f||(f=Zn(e,l));function k(Ye,tt){var ot=Wn(e,f,Ye,tt?"right":"left",m);return tt?ot.left=ot.right:ot.right=ot.left,Eo(e,l,ot,u)}var U=O(l,e.doc.direction),H=n.ch,Z=n.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return k(Z=="before"?H-1:H,Z=="before");function be(Ye,tt,ot){var ct=U[tt],yt=ct.level==1;return k(ot?Ye-1:Ye,yt!=ot)}var Ce=K(U,H,Z),Ne=Re,ke=be(H,Ce,Z=="before");return Ne!=null&&(ke.other=be(H,Ne,Z!="before")),ke}function ou(e,n){var u=0;n=lt(e.doc,n),e.options.lineWrapping||(u=Pn(e.display)*n.ch);var l=Ot(e.doc,n.line),f=li(l)+Da(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function js(e,n,u,l,f){var m=at(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function Vs(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return js(l.first,0,null,-1,-1);var f=jn(l,u),m=l.first+l.size-1;if(f>m)return js(l.first+l.size-1,Ot(l,m).text.length,null,1,1);n<0&&(n=0);for(var k=Ot(l,f);;){var U=Qf(e,k,f,n,u),H=Vf(k,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;k=Ot(l,f=Z.line)}}function su(e,n,u,l){l-=ja(n);var f=n.text.length,m=Ke(function(k){return Wn(e,u,k-1).bottom<=l},f,0);return f=Ke(function(k){return Wn(e,u,k).top>l},m,f),{begin:m,end:f}}function lu(e,n,u,l){u||(u=Zn(e,n));var f=Eo(e,n,Wn(e,u,l),"line").top;return su(e,n,u,f)}function Ws(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 m=Zn(e,n),k=ja(n),U=0,H=n.text.length,Z=!0,be=O(n,e.doc.direction);if(be){var Ce=(e.options.lineWrapping?_f:Zf)(e,n,u,m,be,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var Ne=null,ke=null,Ye=Ke(function(Ft){var It=Wn(e,m,Ft);return It.top+=k,It.bottom+=k,Ws(It,l,f,!1)?(It.top<=f&&It.left<=l&&(Ne=Ft,ke=It),!0):!1},U,H),tt,ot,ct=!1;if(ke){var yt=l-ke.left<ke.right-l,dt=yt==Z;Ye=Ne+(dt?0:1),ot=dt?"after":"before",tt=yt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,ot=Ye==0?"after":Ye==n.text.length?"before":Wn(e,m,Ye-(Z?1:0)).bottom+k<=f==Z?"after":"before";var bt=Hn(e,at(u,Ye,ot),"line",n,m);tt=bt.left,ct=f<bt.top?-1:f>=bt.bottom?1:0}return Ye=Ge(n.text,Ye,1),js(u,Ye,ot,ct,l-tt)}function Zf(e,n,u,l,f,m,k){var U=Ke(function(Ce){var Ne=f[Ce],ke=Ne.level!=1;return Ws(Hn(e,at(u,ke?Ne.to:Ne.from,ke?"before":"after"),"line",n,l),m,k,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,be=Hn(e,at(u,Z?H.from:H.to,Z?"after":"before"),"line",n,l);Ws(be,m,k,!0)&&be.top>k&&(H=f[U-1])}return H}function _f(e,n,u,l,f,m,k){var U=su(e,n,l,k),H=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var be=null,Ce=null,Ne=0;Ne<f.length;Ne++){var ke=f[Ne];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Wn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,ot=tt<m?m-tt+1e9:tt-m;(!be||Ce>ot)&&(be=ke,Ce=ot)}}return be||(be=f[f.length-1]),be.from<H&&(be={from:H,to:be.to,level:be.level}),be.to>Z&&(be={from:be.from,to:Z,level:be.level}),be}var Ji;function ca(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ji==null){Ji=we("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Ji.appendChild(document.createTextNode("x")),Ji.appendChild(we("br"));Ji.appendChild(document.createTextNode("x"))}xe(e.measure,Ji);var u=Ji.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=we("span","xxxxxxxxxx"),u=we("pre",[n],"CodeMirror-line-like");xe(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Hs(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,k=0;m;m=m.nextSibling,++k){var U=e.display.gutterSpecs[k].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.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 uu(e){var n=ca(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Pn(e.display)-3);return function(f){if(si(e.doc,f))return 0;var m=0;if(f.widgets)for(var k=0;k<f.widgets.length;k++)f.widgets[k].height&&(m+=f.widgets[k].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function zs(e){var n=e.doc,u=uu(e);n.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function Xi(e,n,u,l){var f=e.display;if(!u&&Pt(n).getAttribute("cm-not-content")=="true")return null;var m,k,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,k=n.clientY-U.top}catch(Ce){return null}var H=Vs(e,m,k),Z;if(l&&H.xRel>0&&(Z=Ot(e.doc,H.line).text).length==H.ch){var be=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=at(H.line,Math.max(0,Math.round((m-ln(e.display).left)/Pn(e.display))-be))}return H}function Qi(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 Mr(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)Ti&&ka(e.doc,n)<f.viewTo&&Ii(e);else if(u<=f.viewFrom)Ti&&Es(e.doc,u+l)>f.viewFrom?Ii(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Ii(e);else if(n<=f.viewFrom){var m=Oo(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Ii(e)}else if(u>=f.viewTo){var k=Oo(e,n,n,-1);k?(f.view=f.view.slice(0,k.index),f.viewTo=k.lineN):Ii(e)}else{var U=Oo(e,n,n,-1),H=Oo(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(bo(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ii(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function _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 m=l.view[Qi(e,n)];if(m.node!=null){var k=m.changes||(m.changes=[]);ht(k,u)==-1&&k.push(u)}}}function Ii(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,n,u,l){var f=Qi(e,n),m,k=e.display.view;if(!Ti||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=k[H].size;if(U!=n){if(l>0){if(f==k.length-1)return null;m=U+k[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;ka(e.doc,u)!=u;){if(f==(l<0?0:k.length-1))return null;u+=l*k[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=bo(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=bo(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Qi(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(bo(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Qi(e,u)))),l.viewTo=u}function To(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 Fi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Po(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),k=e.options.$customCursor;k&&(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 Z=H.empty();if(k){var be=k(e,H);be&&Gs(e,be,f)}else(Z||e.options.showCursorWhenSelecting)&&Gs(e,H.head,f);Z||fu(e,H,m)}}return l}function Gs(e,n,u){var l=Hn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(we("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=Co(e,n,"div",null,null),k=m.right-m.left;f.style.width=(k>0?k:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(we("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 Io(e,n){return e.top-n.top||e.left-n.left}function fu(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),k=ln(e.display),U=k.left,H=Math.max(l.sizerWidth,Ki(e)-l.sizer.offsetLeft)-k.right,Z=f.direction=="ltr";function be(dt,bt,Ft,It){bt<0&&(bt=0),bt=Math.round(bt),It=Math.round(It),m.appendChild(we("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
23
23
  top: `+bt+"px; width: "+(Ft==null?H-dt:Ft)+`px;
24
24
  height: `+(It-bt)+"px"))}function Ce(dt,bt,Ft){var It=Ot(f,dt),it=It.text.length,Tt,Sr;function vr(Ir,Yr){return Co(e,at(dt,Ir),"div",It,Yr)}function wn(Ir,Yr,Vr){var Fr=lu(e,It,null,Ir),Ar=Yr=="ltr"==(Vr=="after")?"left":"right",dr=Vr=="after"?Fr.begin:Fr.end-(/\s/.test(It.text.charAt(Fr.end-1))?2:1);return vr(dr,Ar)[Ar]}var fn=O(It,f.direction);return P(fn,bt||0,Ft==null?it:Ft,function(Ir,Yr,Vr,Fr){var Ar=Vr=="ltr",dr=vr(Ir,Ar?"left":"right"),cn=vr(Yr-1,Ar?"right":"left"),Ca=bt==null&&Ir==0,gi=Ft==null&&Yr==it,Jr=Fr==0,ri=!fn||Fr==fn.length-1;if(cn.top-dr.top<=3){var Wr=(Z?Ca:gi)&&Jr,is=(Z?gi:Ca)&&ri,yi=Wr?U:(Ar?dr:cn).left,$n=is?H:(Ar?cn:dr).right;be(yi,dr.top,$n-yi,dr.bottom)}else{var Lr,dn,ni,an;Ar?(Lr=Z&&Ca&&Jr?U:dr.left,dn=Z?H:wn(Ir,Vr,"before"),ni=Z?U:wn(Yr,Vr,"after"),an=Z&&gi&&ri?H:cn.right):(Lr=Z?wn(Ir,Vr,"before"):U,dn=!Z&&Ca&&Jr?H:dr.right,ni=!Z&&gi&&ri?U:cn.left,an=Z?wn(Yr,Vr,"after"):H),be(Lr,dr.top,dn-Lr,dr.bottom),dr.bottom<cn.top&&be(U,dr.bottom,null,cn.top),be(ni,cn.top,an-ni,cn.bottom)}(!Tt||Io(dr,Tt)<0)&&(Tt=dr),Io(cn,Tt)<0&&(Tt=cn),(!Sr||Io(dr,Sr)<0)&&(Sr=dr),Io(cn,Sr)<0&&(Sr=cn)}),{start:Tt,end:Sr}}var Ne=n.from(),ke=n.to();if(Ne.line==ke.line)Ce(Ne.line,Ne.ch,ke.ch);else{var Ye=Ot(f,Ne.line),tt=Ot(f,ke.line),ot=Vn(Ye)==Vn(tt),ct=Ce(Ne.line,Ne.ch,ot?Ye.text.length+1:null).end,yt=Ce(ke.line,ot?0:null,ke.ch).start;ot&&(ct.top<yt.top-2?(be(ct.right,ct.top,null,ct.bottom),be(U,yt.top,yt.left,yt.bottom)):be(ct.right,ct.top,yt.left-ct.right,ct.bottom)),ct.bottom<yt.top&&be(U,ct.bottom,null,yt.top)}u.appendChild(m)}function $s(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()||da(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function Ks(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Fo(e))}function Wa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&da(e))},100)}function Fo(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,Le(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()),$s(e))}function da(e,n){e.state.delayingBlurEvent||(e.state.focused&&(ae(e,"blur",e,n),e.state.focused=!1,ee(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ko(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,m=0,k=0;k<n.view.length;k++){var U=n.view[k],H=e.options.lineWrapping,Z=void 0,be=0;if(!U.hidden){if(f+=U.line.height,b&&S<8){var Ce=U.node.offsetTop+U.node.offsetHeight;Z=Ce-u,u=Ce}else{var Ne=U.node.getBoundingClientRect();Z=Ne.bottom-Ne.top,!H&&U.text.firstChild&&(be=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var ke=U.line.height-Z;if((ke>.005||ke<-.005)&&(f<l&&(m-=ke),En(U.line,Z),Ys(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Ys(U.rest[Ye]);if(be>e.display.sizerWidth){var tt=Math.ceil(be/Pn(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function Ys(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 Ha(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Da(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=jn(n,l),k=jn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<m?(m=U,k=jn(n,li(Ot(n,U))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=k&&(m=jn(n,li(Ot(n,H))-e.wrapper.clientHeight),k=H)}return{from:m,to:Math.max(k,m+1)}}function ec(e,n){if(!pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!W){var m=we("div","\u200B",null,`position: absolute;
25
25
  top: `+(n.top-u.viewOffset-Da(e.display))+`px;
26
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(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function cu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?at(n.line,n.ch+1,"before"):n,n=n.ch?at(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var k=!1,U=Hn(e,n),H=!u||u==n?U:Hn(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 Z=Js(e,f),be=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ga(e,Z.scrollTop),Math.abs(e.doc.scrollTop-be)>1&&(k=!0)),Z.scrollLeft!=null&&(_i(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(k=!0)),!k)break}return f}function du(e,n){var u=Js(e,n);u.scrollTop!=null&&Ga(e,u.scrollTop),u.scrollLeft!=null&&_i(e,u.scrollLeft)}function Js(e,n){var u=e.display,l=ca(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Na(e),k={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+Rs(u),H=n.top<l,Z=n.bottom>U-l;if(n.top<f)k.scrollTop=H?0:n.top;else if(n.bottom>f+m){var be=Math.min(n.top,(Z?U:n.bottom)-m);be!=f&&(k.scrollTop=be)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=Ki(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?k.scrollLeft=0:n.left<Ne?k.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>ke+Ne-3&&(k.scrollLeft=n.right+(Ye?0:10)-ke),k}function Xs(e,n){n!=null&&(Mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function nn(e){Mo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function za(e,n,u){(n!=null||u!=null)&&Mo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Zi(e,n){Mo(e),e.curOp.scrollToPos=n}function Mo(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=Js(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});za(e,f.scrollLeft,f.scrollTop)}function Ga(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||qs(e,{top:n}),hu(e,n,!0),c&&qs(e),zn(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 _i(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 pa(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Rs(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 qi=function(e,n,u){this.cm=u;var l=this.vert=we("div",[we("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=we("div",[we("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")};qi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},qi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qi.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},qi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},qi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $a=function(){};$a.prototype.update=function(){return{bottom:0,right:0}},$a.prototype.setScrollLeft=function(){},$a.prototype.setScrollTop=function(){},$a.prototype.clear=function(){};function ci(e,n){n||(n=pa(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&&ko(e),Ro(e,pa(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 mn={native:qi,null:$a};function Lo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new mn[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"?_i(e,n):Ga(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var di=0;function ki(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 Mi(e){var n=e.curOp;n&&ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Pd(u)})}function Pd(e){for(var n=e.ops,u=0;u<n.length;u++)Qs(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 m=0;m<n.length;m++)Pr(n[m]);for(var k=0;k<n.length;k++)tc(n[k])}function Qs(e){var n=e.cm,u=n.display;yu(n),e.updateMaxLine&&Cs(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 ea(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&_s(e.cm,e.update)}function gu(e){var n=e.cm,u=n.display;e.updatedDisplay&&ko(n),e.barMeasure=pa(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=So(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-Ki(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Pr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&_i(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&&tl(n,e.barMeasure),e.selectionChanged&&$s(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Ks(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&&_i(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(n,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);ec(n,f)}var m=e.maybeHiddenMarkers,k=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||ae(m[U],"hide");if(k)for(var H=0;H<k.length;++H)k[H].lines.length&&ae(k[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 Ur(e,n){if(e.curOp)return n();ki(e);try{return n()}finally{Mi(e)}}function jr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);ki(e);try{return n.apply(e,arguments)}finally{Mi(e)}}}function Rr(e){return function(){if(this.curOp)return e.apply(this,arguments);ki(this);try{return e.apply(this,arguments)}finally{Mi(this)}}}function pr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);ki(n);try{return e.apply(this,arguments)}finally{Mi(n)}}}function zn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(rc,e))}function rc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=tn(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var k=m.styles,U=m.text.length>e.options.maxHighlightLength?Br(n.mode,l.state):null,H=_t(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,be=H.classes;be?m.styleClasses=be:Z&&(m.styleClasses=null);for(var Ce=!k||k.length!=m.styles.length||Z!=be&&(!Z||!be||Z.bgClass!=be.bgClass||Z.textClass!=be.textClass),Ne=0;!Ce&&Ne<k.length;++Ne)Ce=k[Ne]!=m.styles[Ne];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ys(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return zn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Ur(e,function(){for(var m=0;m<f.length;m++)_n(e,f[m],"text")})}}var ea=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Ha(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ki(e),this.force=u,this.dims=Hs(e),this.events=[]};ea.prototype.signal=function(e,n){Ue(e,n)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.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 Ka(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 Zs(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 _s(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Ii(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&To(e)==0)return!1;Do(e)&&(Ii(e),n.dims=Hs(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),k=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>k&&u.viewTo-k<20&&(k=Math.min(f,u.viewTo)),Ti&&(m=ka(e.doc,m),k=Es(e.doc,k));var U=m!=u.viewFrom||k!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;qf(e,m,k),u.viewOffset=li(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=To(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Ka(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,Zs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,zn(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==Ki(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Rs(e.display)-Na(e),u.top)}),n.visible=Ha(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Ha(e.display,e.doc,u));if(!_s(e,n))break;ko(e);var f=pa(e);Fi(e),ci(e,f),tl(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 ea(e,n);if(_s(e,u)){ko(e),mu(e,u);var l=pa(e);Fi(e),ci(e,l),tl(e,l),u.finish()}}function nc(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,k=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,be=0;be<H.length;be++){var Ce=H[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var Ne=qt(e,Ce,Z,u);m.insertBefore(Ne,k)}else{for(;k!=Ce.node;)k=U(k);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),wo(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(fa(e.options,Z)))),k=Ce.node.nextSibling}Z+=Ce.size}for(;k;)k=U(k)}function el(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ar(e,"gutterChanged",e)}function tl(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=In(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",k=0;k<u.length;k++)if(!u[k].hidden){e.options.fixedGutter&&(u[k].gutter&&(u[k].gutter.style.left=m),u[k].gutterBackground&&(u[k].gutterBackground.style.left=m));var U=u[k].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Do(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=fa(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(we("div",[we("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,k=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-k)+1,l.lineNumWidth=l.lineNumInnerWidth+k,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",el(e.display),!0}return!1}function Ya(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],k=null;if(typeof m!="string"&&(k=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:k})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(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],m=f.className,k=f.style,U=n.appendChild(we("div",null,"CodeMirror-gutter "+m));k&&(U.style.cssText=k),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",el(e)}function No(e){bu(e.display),Mr(e),xu(e)}function ic(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=we("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=we("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=we("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=we("div",null,"CodeMirror-cursors"),f.measure=we("div",null,"CodeMirror-measure"),f.lineMeasure=we("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=we("div",[m],null,"position: relative"),f.sizer=we("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=we("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=we("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=we("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=we("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&&R)&&(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=Ya(l.gutters,l.lineNumbers),bu(f),u.init(f)}var Bo=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 rr(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,m=pi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var k=e.display,U=k.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var be=n.target,Ce=k.view;be!=U;be=be.parentNode)for(var Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].node==be){e.display.currentWheelTarget=be;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&Ga(e,Math.max(0,U.scrollTop+f*m)),_i(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Qe(n),k.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,Ye=e.doc.scrollTop,tt=Ye+k.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})}Bo<20&&n.deltaMode!==0&&(k.wheelStartX==null?(k.wheelStartX=U.scrollLeft,k.wheelStartY=U.scrollTop,k.wheelDX=l,k.wheelDY=f,setTimeout(function(){if(k.wheelStartX!=null){var ot=U.scrollLeft-k.wheelStartX,ct=U.scrollTop-k.wheelStartY,yt=ct&&k.wheelDY&&ct/k.wheelDY||ot&&k.wheelDX&&ot/k.wheelDX;k.wheelStartX=k.wheelStartY=null,!!yt&&(pi=(pi*Bo+yt)/(Bo+1),++Bo)}},200)):(k.wheelDX+=l,k.wheelDY+=f))}}var xn=function(e,n){this.ranges=e,this.primIndex=n};xn.prototype.primary=function(){return this.ranges[this.primIndex]},xn.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},xn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new er(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new xn(e,this.primIndex)},xn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,n){this.anchor=e,this.head=n};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Cn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,ke){return Lt(Ne.from(),ke.from())}),u=ht(n,f);for(var m=1;m<n.length;m++){var k=n[m],U=n[m-1],H=Lt(U.to(),k.from());if(l&&!k.empty()?H>0:H>=0){var Z=qe(U.from(),k.from()),be=Oe(U.to(),k.to()),Ce=U.empty()?k.from()==k.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new er(Ce?be:Z,Ce?Z:be))}}return new xn(n,u)}function Ri(e,n){return new xn([new er(e,n||e)],0)}function Li(e){return e.text?at(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Li(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Li(n).ch-n.to.ch),at(u,l)}function rl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Au(f.anchor,n),Au(f.head,n)))}return Cn(e.cm,u,e.sel.primIndex)}function Eu(e,n,u){return e.line==n.line?at(u.line,e.ch-n.ch+u.ch):at(u.line+(e.line-n.line),e.ch)}function ac(e,n,u){for(var l=[],f=at(e.first,0),m=f,k=0;k<n.length;k++){var U=n[k],H=Eu(U.from,f,m),Z=Eu(Li(U),f,m);if(f=U.to,m=Z,u=="around"){var be=e.sel.ranges[k],Ce=Lt(be.head,be.anchor)<0;l[k]=new er(Ce?Z:H,Ce?H:Z)}else l[k]=new er(H,H)}return new xn(l,e.sel.primIndex)}function Uo(e){e.doc.mode=yn(e.options,e.doc.modeOption),ta(e)}function ta(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,zn(e,100),e.state.modeGen++,e.curOp&&Mr(e)}function jo(e,n){return n.from.ch==0&&n.to.ch==0&&Et(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function nl(e,n,u,l){function f(yt){return u?u[yt]:null}function m(yt,dt,bt){Pi(yt,dt,bt,l),ar(yt,"change",yt,n)}function k(yt,dt){for(var bt=[],Ft=yt;Ft<dt;++Ft)bt.push(new zi(Z[Ft],f(Ft),l));return bt}var U=n.from,H=n.to,Z=n.text,be=Ot(e,U.line),Ce=Ot(e,H.line),Ne=Et(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,k(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(jo(e,n)){var tt=k(0,Z.length-1);m(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(be==Ce)if(Z.length==1)m(be,be.text.slice(0,U.ch)+Ne+be.text.slice(H.ch),ke);else{var ot=k(1,Z.length-1);ot.push(new zi(Ne+be.text.slice(H.ch),ke,l)),m(be,be.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,ot)}else if(Z.length==1)m(be,be.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(be,be.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,Ne+Ce.text.slice(H.ch),ke);var ct=k(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ar(e,"change",e,n)}function Di(e,n,u){function l(f,m,k){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=k&&H.sharedHist;u&&!Z||(n(H.doc,Z),l(H.doc,f,Z))}}}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,zs(e),Uo(e),il(e),e.options.direction=n.direction,e.options.lineWrapping||Cs(e),e.options.mode=n.modeOption,Mr(e)}function il(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Ja(e){Ur(e,function(){il(e),Mr(e)})}function Xa(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:Li(n),text:ai(e,n.from,n.to)};return Za(e,u,n.from.line,n.to.line+1),Di(e,function(l){return Za(l,u,n.from.line,n.to.line+1)},!0),u}function Ou(e){for(;e.length;){var n=Et(e);if(n.ranges)e.pop();else break}}function Tu(e,n){if(n)return Ou(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Pu(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,k,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(k=Tu(f,f.lastOp==l)))U=Et(k.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Li(n):k.changes.push(qn(e,n));else{var H=Et(f.done);for((!H||!H.ranges)&&Qa(e.sel,f.done),k={changes:[qn(e,n)],generation:f.generation},f.done.push(k);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||ae(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,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Iu(e,m,Et(f.done),n))?f.done[f.done.length-1]=n:Qa(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Qa(e,n){var u=Et(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Za(e,n,u,l){var f=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(k){k.markedSpans&&((f||(f=n["spans_"+e.id]={}))[m]=k.markedSpans),++m})}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 Vo(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 Wo(e,n){var u=Vo(e,n),l=Gl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],k=l[f];if(m&&k){e:for(var U=0;U<k.length;++U){for(var H=k[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else k&&(u[f]=k)}return u}function ha(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?xn.prototype.deepCopy.call(m):m);continue}var k=m.changes,U=[];l.push({changes:U});for(var H=0;H<k.length;++H){var Z=k[H],be=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(be=Ce.match(/^spans_(\d+)$/))&&ht(n,Number(be[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function al(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new er(f,n)}else return new er(u||n,n)}function Ho(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Zr(e,new xn([al(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),m=0;m<e.sel.ranges.length;m++)l[m]=al(e.sel.ranges[m],n[m],null,f);var k=Cn(e.cm,l,e.sel.primIndex);Zr(e,k,u)}function zo(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Zr(e,Cn(e.cm,f,e.sel.primIndex),l)}function ol(e,n,u,l){Zr(e,Ri(n,u),l)}function lc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new er(lt(e,f[m].anchor),lt(e,f[m].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Cn(e.cm,l.ranges,l.ranges.length-1):n}function ku(e,n,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=n,Go(e,n,u)):Zr(e,n,u)}function Zr(e,n,u){Go(e,n,u),oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Go(e,n,u){(Ue(e,"beforeSelectionChange")||e.cm&&Ue(e.cm,"beforeSelectionChange"))&&(n=lc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Lu(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&nn(e.cm)}function Mu(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),ar(e,"cursorActivity",e))}function Ru(e){Mu(e,Lu(e,e.sel,null,!1))}function Lu(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var k=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],H=_a(e,k.anchor,U&&U.anchor,u,l),Z=_a(e,k.head,U&&U.head,u,l);(f||H!=k.anchor||Z!=k.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new er(H,Z))}return f?Cn(e.cm,f,n.primIndex):n}function va(e,n,u,l,f){var m=Ot(e,n.line);if(m.markedSpans)for(var k=0;k<m.markedSpans.length;++k){var U=m.markedSpans[k],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,be="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(be?U.to>=n.ch:U.to>n.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--k;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),Ne=void 0;if((l<0?be:Z)&&(Ce=Du(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(Ne=Lt(Ce,u))&&(l<0?Ne<0:Ne>0))return va(e,Ce,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:be)&&(ke=Du(e,ke,l,ke.line==n.line?m:null)),ke?va(e,ke,n,l,f):null}}return n}function _a(e,n,u,l,f){var m=l||1,k=va(e,n,u,m,f)||!f&&va(e,n,u,m,!0)||va(e,n,u,-m,f)||!f&&va(e,n,u,-m,!0);return k||(e.cantEdit=!0,at(e.first,0))}function Du(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?lt(e,at(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?at(n.line+1,0):null:new at(n.line,n.ch+u)}function $o(e){e.setSelection(at(e.firstLine(),0),at(e.lastLine()),ut)}function sl(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,k,U){f&&(l.from=lt(e,f)),m&&(l.to=lt(e,m)),k&&(l.text=k),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 ga(e,n,u){if(e.cm){if(!e.cm.curOp)return jr(e.cm,ga)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ue(e,"beforeChange")||e.cm&&Ue(e.cm,"beforeChange"))&&(n=sl(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)ra(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else ra(e,n)}}function ra(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=rl(e,n);Pu(e,n,u,e.cm?e.cm.curOp.id:NaN),qa(e,n,u,Gl(e,n));var l=[];Di(e,function(f,m){!m&&ht(l,f.history)==-1&&(fl(f.history,n),l.push(f.history)),qa(f,n,null,Gl(f,n))})}}function Fn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,k=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(Qa(m,H),u&&!m.equals(e.sel)){Zr(e,m,{clearRedo:!1});return}k=m}else if(l){U.push(m);return}else break;var be=[];Qa(k,H),H.push({changes:be,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=Ue(e,"beforeChange")||e.cm&&Ue(e.cm,"beforeChange"),Ne=function(tt){var ot=m.changes[tt];if(ot.origin=n,Ce&&!sl(e,ot,!1))return U.length=0,{};be.push(qn(e,ot));var ct=tt?rl(e,ot):Et(U);qa(e,ot,ct,Wo(e,ot)),!tt&&e.cm&&e.cm.scrollIntoView({from:ot.from,to:Li(ot)});var yt=[];Di(e,function(dt,bt){!bt&&ht(yt,dt.history)==-1&&(fl(dt.history,ot),yt.push(dt.history)),qa(dt,ot,null,Wo(dt,ot))})},ke=m.changes.length-1;ke>=0;--ke){var Ye=Ne(ke);if(Ye)return Ye.v}}}}function ll(e,n){if(n!=0&&(e.first+=n,e.sel=new xn(Ht(e.sel.ranges,function(f){return new er(at(f.anchor.line+n,f.anchor.ch),at(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Mr(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 jr(e.cm,qa)(e,n,u,l);if(n.to.line<e.first){ll(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);ll(e,f),n={from:at(e.first,0),to:at(n.to.line+f,n.to.ch),text:[Et(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:at(m,Ot(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ai(e,n.from,n.to),u||(u=rl(e,n)),e.cm?uc(e.cm,n,l):nl(e,n,l),Go(e,u,ut),e.cantEdit&&_a(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}}function uc(e,n,u){var l=e.doc,f=e.display,m=n.from,k=n.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Vn(Ot(l,m.line))),l.iter(H,k.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ee(e),nl(l,n,u,uu(e)),e.options.lineWrapping||(l.iter(H,m.line+n.text.length,function(ke){var Ye=Hi(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Lf(l,m.line),zn(e,400);var Z=n.text.length-(k.line-m.line)-1;n.full?Mr(e):m.line==k.line&&n.text.length==1&&!jo(e.doc,n)?_n(e,m.line,"text"):Mr(e,m.line,k.line+1,Z);var be=Ue(e,"changes"),Ce=Ue(e,"change");if(Ce||be){var Ne={from:m,to:k,text:n.text,removed:n.removed,origin:n.origin};Ce&&ar(e,"change",e,Ne),be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function ya(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),ga(e,{from:u,to:l,text:n,origin:f})}function ul(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 m=e[f],k=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)ul(m.ranges[U].anchor,n,u,l),ul(m.ranges[U].head,n,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=at(Z.from.line+l,Z.from.ch),Z.to=at(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){k=!1;break}}k||(e.splice(0,f+1),f=0)}}function fl(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 na(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Ot(e,st(e,n)):f=Zt(n),f==null?null:(l(m,f)&&e.cm&&_n(e.cm,f,u),m)}function ma(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}ma.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,Gi(f),ar(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function xa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}xa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(n,f-e),k=l.height;if(l.removeInner(e,m),this.height-=k-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ma))){var U=[];this.collapse(U),this.children=[new ma(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var k=f.lines.length%25+25,U=k;U<f.lines.length;){var H=new ma(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,k),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new xa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new xa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var k=Math.min(n,m-e);if(f.iterN(e,k,u))return!0;if((n-=k)==0)break;e=0}else e-=m}}};var eo=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};eo.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var m=Ct(this);En(u,Math.max(0,u.height-m)),e&&(Ur(e,function(){cl(e,u,-m),_n(e,l,"widget")}),ar(e,"lineWidgetCleared",e,this,l))}},eo.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-n;!f||(si(this.doc,l)||En(l,l.height+f),u&&Ur(u,function(){u.curOp.forceUpdate=!0,cl(u,l,f),ar(u,"lineWidgetChanged",u,e,Zt(l))}))},je(eo);function cl(e,n,u){li(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xs(e,u)}function fc(e,n,u,l){var f=new eo(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),na(e,n,"widget",function(k){var U=k.widgets||(k.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=k,m&&!si(e,k)){var H=li(k)<e.scrollTop;En(k,k.height+Ct(f)),H&&Xs(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&ar(m,"lineWidgetAdded",m,f,typeof n=="number"?n:Zt(n)),f}var Ko=0,ei=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ko};ei.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&ki(e),Ue(this,"clear")){var u=this.find();u&&ar(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var k=this.lines[m],U=Ia(k.markedSpans,this);e&&!this.collapsed?_n(e,Zt(k),"text"):e&&(U.to!=null&&(f=Zt(k)),U.from!=null&&(l=Zt(k))),k.markedSpans=Uf(k.markedSpans,U),U.from==null&&this.collapsed&&!si(this.doc,k)&&e&&En(k,ca(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Vn(this.lines[H]),be=Hi(Z);be>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=be,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Mr(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&&ar(e,"markerCleared",e,this,l,f),n&&Mi(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 m=this.lines[f],k=Ia(m.markedSpans,this);if(k.from!=null&&(u=at(n?m:Zt(m),k.from),e==-1))return u;if(k.to!=null&&(l=at(n?m:Zt(m),k.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||Ur(l,function(){var f=n.line,m=Zt(n.line),k=Ds(l,m);if(k&&(Us(k),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=Ct(u)-U;H&&En(f,f.height+H)}ar(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)}},je(ei);function ia(e,n,u,l,f){if(l&&l.shared)return cc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return jr(e.cm,ia)(e,n,u,l,f);var m=new ei(e,f),k=Lt(n,u);if(l&&Ze(l,m,!1),k>0||k==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(xo(e,n.line,n,u,m)||n.line!=u.line&&xo(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bf()}m.addToHistory&&Pu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&m.collapsed&&!H.options.lineWrapping&&Vn(Ce)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&En(Ce,0),Cd(Ce,new mo(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){si(e,Ce)&&En(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Nf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Ko,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)Mr(H,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var be=n.line;be<=u.line;be++)_n(H,be,"text");m.atomic&&Ru(H.doc),ar(H,"markerAdded",H,m)}return m}var ba=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ar(this,"clear")}},ba.prototype.find=function(e,n){return this.primary.find(e,n)},je(ba);function cc(e,n,u,l,f){l=Ze(l),l.shared=!1;var m=[ia(e,n,u,l,f)],k=m[0],U=l.widgetNode;return Di(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(ia(H,lt(H,n),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;k=Et(m)}),new ba(m,k)}function Bu(e){return e.findMarks(at(e.first,0),e.clipPos(at(e.lastLine())),function(n){return n.parent})}function dl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),k=e.clipPos(f.to);if(Lt(m,k)){var U=ia(e,m,k,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function dc(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];Di(f.primary.doc,function(H){return m.push(H)});for(var k=0;k<f.markers.length;k++){var U=f.markers[k];ht(m,U.doc)==-1&&(U.parent=null,f.markers.splice(k--,1))}},u=0;u<e.length;u++)n(u)}var pc=0,un=function(e,n,u,l,f){if(!(this instanceof un))return new un(e,n,u,l,f);u==null&&(u=0),xa.call(this,[new ma([new zi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=at(u,0);this.sel=Ri(m),this.history=new Xa(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)),nl(this,{from:m,to:m,text:e}),Zr(this,Ri(m),ut)};un.prototype=St(xa.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=Oi(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:pr(function(e){var n=at(this.first,0),u=this.first+this.size-1;ga(this,{from:n,to:at(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&za(this.cm,0,0),Zr(this,Ri(n),ut)}),replaceRange:function(e,n,u,l){n=lt(this,n),u=u?lt(this,u):n,ya(this,e,n,u,l)},getRange:function(e,n,u){var l=ai(this,lt(this,e),lt(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 Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Vn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(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){ol(this,lt(this,typeof e=="number"?at(e,n||0):e),null,u)}),setSelection:pr(function(e,n,u){ol(this,lt(this,e),lt(this,n||e),u)}),extendSelection:pr(function(e,n,u){Ho(this,lt(this,e),n&&lt(this,n),u)}),extendSelections:pr(function(e,n){Fu(this,Xt(this,e),n)}),extendSelectionsBy:pr(function(e,n){var u=Ht(this.sel.ranges,e);Fu(this,Xt(this,u),n)}),setSelections:pr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Zr(this,Cn(this.cm,l,n),u)}}),addSelection:pr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,n||e))),Zr(this,Cn(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,m=0;m<f.ranges.length;m++){var k=f.ranges[m];l[m]={from:k.from(),to:k.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&ac(this,l,n),H=l.length-1;H>=0;H--)ga(this,l[H]);U?ku(this,U):this.cm&&nn(this.cm)}),undo:pr(function(){Fn(this,"undo")}),redo:pr(function(){Fn(this,"redo")}),undoSelection:pr(function(){Fn(this,"undo",!0)}),redoSelection:pr(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 Xa(this.history),Di(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:ha(this.history.done),undone:ha(this.history.undone)}},setHistory:function(e){var n=this.history=new Xa(this.history);n.done=ha(e.done.slice(0),null,!0),n.undone=ha(e.undone.slice(0),null,!0)},setGutterMarker:pr(function(e,n,u){return na(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:pr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&na(n,u,"gutter",function(){return u.gutterMarkers[e]=null,$(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=Zt(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 na(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(ce(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:pr(function(e,n,u){return na(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var k=m.match(ce(u));if(!k)return!1;var U=k.index+k[0].length;l[f]=m.slice(0,k.index)+(!k.index||U==m.length?"":" ")+m.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 ia(this,lt(this,e),lt(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=lt(this,e),ia(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(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=lt(this,e),n=lt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var k=m.markedSpans;if(k)for(var U=0;U<k.length;U++){var H=k[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 m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),lt(this,at(u,n))},indexFromPos:function(e){e=lt(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(Oi(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(Oi(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}],dl(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];Di(e,function(f){return l.push(f.id)},!0),e.history=new Xa(null),e.history.done=ha(this.history.done,l),e.history.undone=ha(this.history.undone,l)}},iterLinkedDocs:function(e){Di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Nn(e)},lineSeparator:function(){return this.lineSep||`
27
+ left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function cu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?at(n.line,n.ch+1,"before"):n,n=n.ch?at(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var k=!1,U=Hn(e,n),H=!u||u==n?U:Hn(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 Z=Js(e,f),be=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ga(e,Z.scrollTop),Math.abs(e.doc.scrollTop-be)>1&&(k=!0)),Z.scrollLeft!=null&&(_i(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(k=!0)),!k)break}return f}function du(e,n){var u=Js(e,n);u.scrollTop!=null&&Ga(e,u.scrollTop),u.scrollLeft!=null&&_i(e,u.scrollLeft)}function Js(e,n){var u=e.display,l=ca(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Na(e),k={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+Rs(u),H=n.top<l,Z=n.bottom>U-l;if(n.top<f)k.scrollTop=H?0:n.top;else if(n.bottom>f+m){var be=Math.min(n.top,(Z?U:n.bottom)-m);be!=f&&(k.scrollTop=be)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=Ki(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?k.scrollLeft=0:n.left<Ne?k.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>ke+Ne-3&&(k.scrollLeft=n.right+(Ye?0:10)-ke),k}function Xs(e,n){n!=null&&(Mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function nn(e){Mo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function za(e,n,u){(n!=null||u!=null)&&Mo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Zi(e,n){Mo(e),e.curOp.scrollToPos=n}function Mo(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=Js(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});za(e,f.scrollLeft,f.scrollTop)}function Ga(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||qs(e,{top:n}),hu(e,n,!0),c&&qs(e),zn(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 _i(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 pa(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Rs(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 qi=function(e,n,u){this.cm=u;var l=this.vert=we("div",[we("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=we("div",[we("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")};qi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},qi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},qi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},qi.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},qi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},qi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $a=function(){};$a.prototype.update=function(){return{bottom:0,right:0}},$a.prototype.setScrollLeft=function(){},$a.prototype.setScrollTop=function(){},$a.prototype.clear=function(){};function ci(e,n){n||(n=pa(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&&ko(e),Ro(e,pa(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 mn={native:qi,null:$a};function Lo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new mn[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"?_i(e,n):Ga(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var di=0;function ki(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 Mi(e){var n=e.curOp;n&&ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Pd(u)})}function Pd(e){for(var n=e.ops,u=0;u<n.length;u++)Qs(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 m=0;m<n.length;m++)Pr(n[m]);for(var k=0;k<n.length;k++)tc(n[k])}function Qs(e){var n=e.cm,u=n.display;yu(n),e.updateMaxLine&&Cs(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 ea(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&_s(e.cm,e.update)}function gu(e){var n=e.cm,u=n.display;e.updatedDisplay&&ko(n),e.barMeasure=pa(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=So(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-Ki(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Pr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&_i(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&&tl(n,e.barMeasure),e.selectionChanged&&$s(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Ks(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&&_i(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(n,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);ec(n,f)}var m=e.maybeHiddenMarkers,k=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||ae(m[U],"hide");if(k)for(var H=0;H<k.length;++H)k[H].lines.length&&ae(k[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 Ur(e,n){if(e.curOp)return n();ki(e);try{return n()}finally{Mi(e)}}function jr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);ki(e);try{return n.apply(e,arguments)}finally{Mi(e)}}}function Rr(e){return function(){if(this.curOp)return e.apply(this,arguments);ki(this);try{return e.apply(this,arguments)}finally{Mi(this)}}}function pr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);ki(n);try{return e.apply(this,arguments)}finally{Mi(n)}}}function zn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(rc,e))}function rc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=tn(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var k=m.styles,U=m.text.length>e.options.maxHighlightLength?Br(n.mode,l.state):null,H=_t(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,be=H.classes;be?m.styleClasses=be:Z&&(m.styleClasses=null);for(var Ce=!k||k.length!=m.styles.length||Z!=be&&(!Z||!be||Z.bgClass!=be.bgClass||Z.textClass!=be.textClass),Ne=0;!Ce&&Ne<k.length;++Ne)Ce=k[Ne]!=m.styles[Ne];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ys(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return zn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Ur(e,function(){for(var m=0;m<f.length;m++)_n(e,f[m],"text")})}}var ea=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Ha(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Ki(e),this.force=u,this.dims=Hs(e),this.events=[]};ea.prototype.signal=function(e,n){je(e,n)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.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 Ka(e){if(e.hasFocus())return null;var n=Fe();if(!n||!oe(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Zs(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function _s(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Ii(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&To(e)==0)return!1;Do(e)&&(Ii(e),n.dims=Hs(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),k=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>k&&u.viewTo-k<20&&(k=Math.min(f,u.viewTo)),Ti&&(m=ka(e.doc,m),k=Es(e.doc,k));var U=m!=u.viewFrom||k!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;qf(e,m,k),u.viewOffset=li(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=To(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Ka(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,Zs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,zn(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==Ki(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Rs(e.display)-Na(e),u.top)}),n.visible=Ha(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Ha(e.display,e.doc,u));if(!_s(e,n))break;ko(e);var f=pa(e);Fi(e),ci(e,f),tl(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 ea(e,n);if(_s(e,u)){ko(e),mu(e,u);var l=pa(e);Fi(e),ci(e,l),tl(e,l),u.finish()}}function nc(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,k=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,be=0;be<H.length;be++){var Ce=H[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var Ne=qt(e,Ce,Z,u);m.insertBefore(Ne,k)}else{for(;k!=Ce.node;)k=U(k);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),wo(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(fa(e.options,Z)))),k=Ce.node.nextSibling}Z+=Ce.size}for(;k;)k=U(k)}function el(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ar(e,"gutterChanged",e)}function tl(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=In(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",k=0;k<u.length;k++)if(!u[k].hidden){e.options.fixedGutter&&(u[k].gutter&&(u[k].gutter.style.left=m),u[k].gutterBackground&&(u[k].gutterBackground.style.left=m));var U=u[k].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Do(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=fa(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(we("div",[we("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,k=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-k)+1,l.lineNumWidth=l.lineNumInnerWidth+k,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",el(e.display),!0}return!1}function Ya(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],k=null;if(typeof m!="string"&&(k=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:k})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(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],m=f.className,k=f.style,U=n.appendChild(we("div",null,"CodeMirror-gutter "+m));k&&(U.style.cssText=k),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",el(e)}function No(e){bu(e.display),Mr(e),xu(e)}function ic(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=we("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=we("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=we("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=we("div",null,"CodeMirror-cursors"),f.measure=we("div",null,"CodeMirror-measure"),f.lineMeasure=we("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=we("div",[m],null,"position: relative"),f.sizer=we("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=we("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=we("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=we("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=we("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&&R)&&(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=Ya(l.gutters,l.lineNumbers),bu(f),u.init(f)}var Bo=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,m=pi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var k=e.display,U=k.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var be=n.target,Ce=k.view;be!=U;be=be.parentNode)for(var Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].node==be){e.display.currentWheelTarget=be;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&Ga(e,Math.max(0,U.scrollTop+f*m)),_i(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Qe(n),k.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,Ye=e.doc.scrollTop,tt=Ye+k.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})}Bo<20&&n.deltaMode!==0&&(k.wheelStartX==null?(k.wheelStartX=U.scrollLeft,k.wheelStartY=U.scrollTop,k.wheelDX=l,k.wheelDY=f,setTimeout(function(){if(k.wheelStartX!=null){var ot=U.scrollLeft-k.wheelStartX,ct=U.scrollTop-k.wheelStartY,yt=ct&&k.wheelDY&&ct/k.wheelDY||ot&&k.wheelDX&&ot/k.wheelDX;k.wheelStartX=k.wheelStartY=null,!!yt&&(pi=(pi*Bo+yt)/(Bo+1),++Bo)}},200)):(k.wheelDX+=l,k.wheelDY+=f))}}var xn=function(e,n){this.ranges=e,this.primIndex=n};xn.prototype.primary=function(){return this.ranges[this.primIndex]},xn.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},xn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new er(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new xn(e,this.primIndex)},xn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,n){this.anchor=e,this.head=n};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Cn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,ke){return Lt(Ne.from(),ke.from())}),u=ht(n,f);for(var m=1;m<n.length;m++){var k=n[m],U=n[m-1],H=Lt(U.to(),k.from());if(l&&!k.empty()?H>0:H>=0){var Z=qe(U.from(),k.from()),be=Oe(U.to(),k.to()),Ce=U.empty()?k.from()==k.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new er(Ce?be:Z,Ce?Z:be))}}return new xn(n,u)}function Ri(e,n){return new xn([new er(e,n||e)],0)}function Li(e){return e.text?at(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Li(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Li(n).ch-n.to.ch),at(u,l)}function rl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Au(f.anchor,n),Au(f.head,n)))}return Cn(e.cm,u,e.sel.primIndex)}function Eu(e,n,u){return e.line==n.line?at(u.line,e.ch-n.ch+u.ch):at(u.line+(e.line-n.line),e.ch)}function ac(e,n,u){for(var l=[],f=at(e.first,0),m=f,k=0;k<n.length;k++){var U=n[k],H=Eu(U.from,f,m),Z=Eu(Li(U),f,m);if(f=U.to,m=Z,u=="around"){var be=e.sel.ranges[k],Ce=Lt(be.head,be.anchor)<0;l[k]=new er(Ce?Z:H,Ce?H:Z)}else l[k]=new er(H,H)}return new xn(l,e.sel.primIndex)}function Uo(e){e.doc.mode=yn(e.options,e.doc.modeOption),ta(e)}function ta(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,zn(e,100),e.state.modeGen++,e.curOp&&Mr(e)}function jo(e,n){return n.from.ch==0&&n.to.ch==0&&Et(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function nl(e,n,u,l){function f(yt){return u?u[yt]:null}function m(yt,dt,bt){Pi(yt,dt,bt,l),ar(yt,"change",yt,n)}function k(yt,dt){for(var bt=[],Ft=yt;Ft<dt;++Ft)bt.push(new zi(Z[Ft],f(Ft),l));return bt}var U=n.from,H=n.to,Z=n.text,be=Ot(e,U.line),Ce=Ot(e,H.line),Ne=Et(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,k(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(jo(e,n)){var tt=k(0,Z.length-1);m(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(be==Ce)if(Z.length==1)m(be,be.text.slice(0,U.ch)+Ne+be.text.slice(H.ch),ke);else{var ot=k(1,Z.length-1);ot.push(new zi(Ne+be.text.slice(H.ch),ke,l)),m(be,be.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,ot)}else if(Z.length==1)m(be,be.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(be,be.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,Ne+Ce.text.slice(H.ch),ke);var ct=k(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ar(e,"change",e,n)}function Di(e,n,u){function l(f,m,k){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=k&&H.sharedHist;u&&!Z||(n(H.doc,Z),l(H.doc,f,Z))}}}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,zs(e),Uo(e),il(e),e.options.direction=n.direction,e.options.lineWrapping||Cs(e),e.options.mode=n.modeOption,Mr(e)}function il(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Ja(e){Ur(e,function(){il(e),Mr(e)})}function Xa(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:Li(n),text:ai(e,n.from,n.to)};return Za(e,u,n.from.line,n.to.line+1),Di(e,function(l){return Za(l,u,n.from.line,n.to.line+1)},!0),u}function Ou(e){for(;e.length;){var n=Et(e);if(n.ranges)e.pop();else break}}function Tu(e,n){if(n)return Ou(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Pu(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,k,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(k=Tu(f,f.lastOp==l)))U=Et(k.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Li(n):k.changes.push(qn(e,n));else{var H=Et(f.done);for((!H||!H.ranges)&&Qa(e.sel,f.done),k={changes:[qn(e,n)],generation:f.generation},f.done.push(k);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||ae(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,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Iu(e,m,Et(f.done),n))?f.done[f.done.length-1]=n:Qa(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Qa(e,n){var u=Et(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Za(e,n,u,l){var f=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(k){k.markedSpans&&((f||(f=n["spans_"+e.id]={}))[m]=k.markedSpans),++m})}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 Vo(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 Wo(e,n){var u=Vo(e,n),l=Gl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],k=l[f];if(m&&k){e:for(var U=0;U<k.length;++U){for(var H=k[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else k&&(u[f]=k)}return u}function ha(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?xn.prototype.deepCopy.call(m):m);continue}var k=m.changes,U=[];l.push({changes:U});for(var H=0;H<k.length;++H){var Z=k[H],be=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(be=Ce.match(/^spans_(\d+)$/))&&ht(n,Number(be[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function al(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new er(f,n)}else return new er(u||n,n)}function Ho(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Zr(e,new xn([al(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),m=0;m<e.sel.ranges.length;m++)l[m]=al(e.sel.ranges[m],n[m],null,f);var k=Cn(e.cm,l,e.sel.primIndex);Zr(e,k,u)}function zo(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Zr(e,Cn(e.cm,f,e.sel.primIndex),l)}function ol(e,n,u,l){Zr(e,Ri(n,u),l)}function lc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new er(lt(e,f[m].anchor),lt(e,f[m].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Cn(e.cm,l.ranges,l.ranges.length-1):n}function ku(e,n,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=n,Go(e,n,u)):Zr(e,n,u)}function Zr(e,n,u){Go(e,n,u),oc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Go(e,n,u){(je(e,"beforeSelectionChange")||e.cm&&je(e.cm,"beforeSelectionChange"))&&(n=lc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Lu(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&nn(e.cm)}function Mu(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),ar(e,"cursorActivity",e))}function Ru(e){Mu(e,Lu(e,e.sel,null,!1))}function Lu(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var k=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],H=_a(e,k.anchor,U&&U.anchor,u,l),Z=_a(e,k.head,U&&U.head,u,l);(f||H!=k.anchor||Z!=k.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new er(H,Z))}return f?Cn(e.cm,f,n.primIndex):n}function va(e,n,u,l,f){var m=Ot(e,n.line);if(m.markedSpans)for(var k=0;k<m.markedSpans.length;++k){var U=m.markedSpans[k],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,be="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(be?U.to>=n.ch:U.to>n.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--k;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),Ne=void 0;if((l<0?be:Z)&&(Ce=Du(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(Ne=Lt(Ce,u))&&(l<0?Ne<0:Ne>0))return va(e,Ce,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:be)&&(ke=Du(e,ke,l,ke.line==n.line?m:null)),ke?va(e,ke,n,l,f):null}}return n}function _a(e,n,u,l,f){var m=l||1,k=va(e,n,u,m,f)||!f&&va(e,n,u,m,!0)||va(e,n,u,-m,f)||!f&&va(e,n,u,-m,!0);return k||(e.cantEdit=!0,at(e.first,0))}function Du(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?lt(e,at(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?at(n.line+1,0):null:new at(n.line,n.ch+u)}function $o(e){e.setSelection(at(e.firstLine(),0),at(e.lastLine()),ut)}function sl(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,k,U){f&&(l.from=lt(e,f)),m&&(l.to=lt(e,m)),k&&(l.text=k),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 ga(e,n,u){if(e.cm){if(!e.cm.curOp)return jr(e.cm,ga)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((je(e,"beforeChange")||e.cm&&je(e.cm,"beforeChange"))&&(n=sl(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)ra(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else ra(e,n)}}function ra(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=rl(e,n);Pu(e,n,u,e.cm?e.cm.curOp.id:NaN),qa(e,n,u,Gl(e,n));var l=[];Di(e,function(f,m){!m&&ht(l,f.history)==-1&&(fl(f.history,n),l.push(f.history)),qa(f,n,null,Gl(f,n))})}}function Fn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,k=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(Qa(m,H),u&&!m.equals(e.sel)){Zr(e,m,{clearRedo:!1});return}k=m}else if(l){U.push(m);return}else break;var be=[];Qa(k,H),H.push({changes:be,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=je(e,"beforeChange")||e.cm&&je(e.cm,"beforeChange"),Ne=function(tt){var ot=m.changes[tt];if(ot.origin=n,Ce&&!sl(e,ot,!1))return U.length=0,{};be.push(qn(e,ot));var ct=tt?rl(e,ot):Et(U);qa(e,ot,ct,Wo(e,ot)),!tt&&e.cm&&e.cm.scrollIntoView({from:ot.from,to:Li(ot)});var yt=[];Di(e,function(dt,bt){!bt&&ht(yt,dt.history)==-1&&(fl(dt.history,ot),yt.push(dt.history)),qa(dt,ot,null,Wo(dt,ot))})},ke=m.changes.length-1;ke>=0;--ke){var Ye=Ne(ke);if(Ye)return Ye.v}}}}function ll(e,n){if(n!=0&&(e.first+=n,e.sel=new xn(Ht(e.sel.ranges,function(f){return new er(at(f.anchor.line+n,f.anchor.ch),at(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Mr(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 jr(e.cm,qa)(e,n,u,l);if(n.to.line<e.first){ll(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);ll(e,f),n={from:at(e.first,0),to:at(n.to.line+f,n.to.ch),text:[Et(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:at(m,Ot(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ai(e,n.from,n.to),u||(u=rl(e,n)),e.cm?uc(e.cm,n,l):nl(e,n,l),Go(e,u,ut),e.cantEdit&&_a(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}}function uc(e,n,u){var l=e.doc,f=e.display,m=n.from,k=n.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Vn(Ot(l,m.line))),l.iter(H,k.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ee(e),nl(l,n,u,uu(e)),e.options.lineWrapping||(l.iter(H,m.line+n.text.length,function(ke){var Ye=Hi(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Lf(l,m.line),zn(e,400);var Z=n.text.length-(k.line-m.line)-1;n.full?Mr(e):m.line==k.line&&n.text.length==1&&!jo(e.doc,n)?_n(e,m.line,"text"):Mr(e,m.line,k.line+1,Z);var be=je(e,"changes"),Ce=je(e,"change");if(Ce||be){var Ne={from:m,to:k,text:n.text,removed:n.removed,origin:n.origin};Ce&&ar(e,"change",e,Ne),be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function ya(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),ga(e,{from:u,to:l,text:n,origin:f})}function ul(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 m=e[f],k=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)ul(m.ranges[U].anchor,n,u,l),ul(m.ranges[U].head,n,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=at(Z.from.line+l,Z.from.ch),Z.to=at(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){k=!1;break}}k||(e.splice(0,f+1),f=0)}}function fl(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 na(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Ot(e,st(e,n)):f=Zt(n),f==null?null:(l(m,f)&&e.cm&&_n(e.cm,f,u),m)}function ma(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}ma.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,Gi(f),ar(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function xa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}xa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(n,f-e),k=l.height;if(l.removeInner(e,m),this.height-=k-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ma))){var U=[];this.collapse(U),this.children=[new ma(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var k=f.lines.length%25+25,U=k;U<f.lines.length;){var H=new ma(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,k),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new xa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new xa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var k=Math.min(n,m-e);if(f.iterN(e,k,u))return!0;if((n-=k)==0)break;e=0}else e-=m}}};var eo=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};eo.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var m=Ct(this);En(u,Math.max(0,u.height-m)),e&&(Ur(e,function(){cl(e,u,-m),_n(e,l,"widget")}),ar(e,"lineWidgetCleared",e,this,l))}},eo.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-n;!f||(si(this.doc,l)||En(l,l.height+f),u&&Ur(u,function(){u.curOp.forceUpdate=!0,cl(u,l,f),ar(u,"lineWidgetChanged",u,e,Zt(l))}))},Ve(eo);function cl(e,n,u){li(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xs(e,u)}function fc(e,n,u,l){var f=new eo(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),na(e,n,"widget",function(k){var U=k.widgets||(k.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=k,m&&!si(e,k)){var H=li(k)<e.scrollTop;En(k,k.height+Ct(f)),H&&Xs(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&ar(m,"lineWidgetAdded",m,f,typeof n=="number"?n:Zt(n)),f}var Ko=0,ei=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ko};ei.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&ki(e),je(this,"clear")){var u=this.find();u&&ar(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var k=this.lines[m],U=Ia(k.markedSpans,this);e&&!this.collapsed?_n(e,Zt(k),"text"):e&&(U.to!=null&&(f=Zt(k)),U.from!=null&&(l=Zt(k))),k.markedSpans=Uf(k.markedSpans,U),U.from==null&&this.collapsed&&!si(this.doc,k)&&e&&En(k,ca(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Vn(this.lines[H]),be=Hi(Z);be>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=be,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Mr(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&&ar(e,"markerCleared",e,this,l,f),n&&Mi(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 m=this.lines[f],k=Ia(m.markedSpans,this);if(k.from!=null&&(u=at(n?m:Zt(m),k.from),e==-1))return u;if(k.to!=null&&(l=at(n?m:Zt(m),k.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||Ur(l,function(){var f=n.line,m=Zt(n.line),k=Ds(l,m);if(k&&(Us(k),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=Ct(u)-U;H&&En(f,f.height+H)}ar(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)}},Ve(ei);function ia(e,n,u,l,f){if(l&&l.shared)return cc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return jr(e.cm,ia)(e,n,u,l,f);var m=new ei(e,f),k=Lt(n,u);if(l&&Ze(l,m,!1),k>0||k==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(xo(e,n.line,n,u,m)||n.line!=u.line&&xo(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bf()}m.addToHistory&&Pu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&m.collapsed&&!H.options.lineWrapping&&Vn(Ce)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&En(Ce,0),Cd(Ce,new mo(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){si(e,Ce)&&En(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Nf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Ko,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)Mr(H,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var be=n.line;be<=u.line;be++)_n(H,be,"text");m.atomic&&Ru(H.doc),ar(H,"markerAdded",H,m)}return m}var ba=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ar(this,"clear")}},ba.prototype.find=function(e,n){return this.primary.find(e,n)},Ve(ba);function cc(e,n,u,l,f){l=Ze(l),l.shared=!1;var m=[ia(e,n,u,l,f)],k=m[0],U=l.widgetNode;return Di(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(ia(H,lt(H,n),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;k=Et(m)}),new ba(m,k)}function Bu(e){return e.findMarks(at(e.first,0),e.clipPos(at(e.lastLine())),function(n){return n.parent})}function dl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),k=e.clipPos(f.to);if(Lt(m,k)){var U=ia(e,m,k,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function dc(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];Di(f.primary.doc,function(H){return m.push(H)});for(var k=0;k<f.markers.length;k++){var U=f.markers[k];ht(m,U.doc)==-1&&(U.parent=null,f.markers.splice(k--,1))}},u=0;u<e.length;u++)n(u)}var pc=0,un=function(e,n,u,l,f){if(!(this instanceof un))return new un(e,n,u,l,f);u==null&&(u=0),xa.call(this,[new ma([new zi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=at(u,0);this.sel=Ri(m),this.history=new Xa(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)),nl(this,{from:m,to:m,text:e}),Zr(this,Ri(m),ut)};un.prototype=St(xa.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=Oi(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:pr(function(e){var n=at(this.first,0),u=this.first+this.size-1;ga(this,{from:n,to:at(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&za(this.cm,0,0),Zr(this,Ri(n),ut)}),replaceRange:function(e,n,u,l){n=lt(this,n),u=u?lt(this,u):n,ya(this,e,n,u,l)},getRange:function(e,n,u){var l=ai(this,lt(this,e),lt(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 Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Vn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(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){ol(this,lt(this,typeof e=="number"?at(e,n||0):e),null,u)}),setSelection:pr(function(e,n,u){ol(this,lt(this,e),lt(this,n||e),u)}),extendSelection:pr(function(e,n,u){Ho(this,lt(this,e),n&&lt(this,n),u)}),extendSelections:pr(function(e,n){Fu(this,Xt(this,e),n)}),extendSelectionsBy:pr(function(e,n){var u=Ht(this.sel.ranges,e);Fu(this,Xt(this,u),n)}),setSelections:pr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Zr(this,Cn(this.cm,l,n),u)}}),addSelection:pr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,n||e))),Zr(this,Cn(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,m=0;m<f.ranges.length;m++){var k=f.ranges[m];l[m]={from:k.from(),to:k.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&ac(this,l,n),H=l.length-1;H>=0;H--)ga(this,l[H]);U?ku(this,U):this.cm&&nn(this.cm)}),undo:pr(function(){Fn(this,"undo")}),redo:pr(function(){Fn(this,"redo")}),undoSelection:pr(function(){Fn(this,"undo",!0)}),redoSelection:pr(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 Xa(this.history),Di(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:ha(this.history.done),undone:ha(this.history.undone)}},setHistory:function(e){var n=this.history=new Xa(this.history);n.done=ha(e.done.slice(0),null,!0),n.undone=ha(e.undone.slice(0),null,!0)},setGutterMarker:pr(function(e,n,u){return na(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:pr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&na(n,u,"gutter",function(){return u.gutterMarkers[e]=null,$(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=Zt(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 na(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(ce(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:pr(function(e,n,u){return na(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var k=m.match(ce(u));if(!k)return!1;var U=k.index+k[0].length;l[f]=m.slice(0,k.index)+(!k.index||U==m.length?"":" ")+m.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 ia(this,lt(this,e),lt(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=lt(this,e),ia(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(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=lt(this,e),n=lt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var k=m.markedSpans;if(k)for(var U=0;U<k.length;U++){var H=k[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 m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),lt(this,at(u,n))},indexFromPos:function(e){e=lt(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(Oi(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(Oi(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}],dl(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];Di(e,function(f){return l.push(f.id)},!0),e.history=new Xa(null),e.history.done=ha(this.history.done,l),e.history.undone=ha(this.history.undone,l)}},iterLinkedDocs:function(e){Di(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Nn(e)},lineSeparator:function(){return this.lineSep||`
28
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&&Ja(this.cm))})}),un.prototype.eachLine=un.prototype.iter;var Uu=0;function hc(e){var n=this;if(ju(n),!(pe(n,e)||ui(n.display,e))){Qe(e),b&&(Uu=+new Date);var u=Xi(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),k=0,U=function(){++k==f&&jr(n,function(){u=lt(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};ga(n.doc,ke),ku(n.doc,Ri(lt(n.doc,u),lt(n.doc,Li(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 ot=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ot)){U();return}m[Ye]=ot,U()},tt.readAsText(ke)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var be=e.dataTransfer.getData("Text");if(be){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),Go(n.doc,Ri(u,u)),Ce)for(var Ne=0;Ne<Ce.length;++Ne)ya(n.doc,"",Ce[Ne].anchor,Ce[Ne].head,"drag");n.replaceSelection(be,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function vc(e,n){if(b&&(!e.state.draggingText||+new Date-Uu<100)){Bt(n);return}if(!(pe(e,n)||ui(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=we("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=Xi(e,n);if(!!u){var l=document.createDocumentFragment();Gs(e,u,l),e.display.dragCursor||(e.display.dragCursor=we("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),xe(e.display.dragCursor,l)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Yo(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var to=!1;function Vu(){to||(yc(),to=!0)}function yc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Yo(mc)},100))}),N(window,"blur",function(){return Yo(da)})}function mc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var bn={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"},ro=0;ro<10;ro++)bn[ro+48]=bn[ro+96]=String(ro);for(var no=65;no<=90;no++)bn[no]=String.fromCharCode(no);for(var wa=1;wa<=12;wa++)bn[wa+111]=bn[wa+63235]="F"+wa;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,m,k=0;k<n.length-1;k++){var U=n[k];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Id(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(" "),Wu),m=0;m<f.length;m++){var k=void 0,U=void 0;m==f.length-1?(U=f.join(" "),k=l):(U=f.slice(0,m+1).join(" "),k="...");var H=n[U];if(!H)n[U]=k;else if(H!=k)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function hi(e,n,u,l){n=Jo(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 m=0;m<n.fallthrough.length;m++){var k=hi(e,n.fallthrough[m],u,l);if(k)return k}}}function Hu(e){var n=typeof e=="string"?e:bn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function pl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function zu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=bn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),pl(u,e,n))}function Jo(e){return typeof e=="string"?ti[e]:e}function aa(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Lt(m.from,Et(l).to)<=0;){var k=l.pop();if(Lt(k.from,m.from)<0){m.from=k.from;break}}l.push(m)}Ur(e,function(){for(var U=l.length-1;U>=0;U--)ya(e.doc,"",l[U].from,l[U].to,"+delete");nn(e)})}function Xo(e,n,u){var l=Ge(e.text,n+u,u);return l<0||l>e.text.length?null:l}function Qo(e,n,u){var l=Xo(e,n.ch,u);return l==null?null:new at(n.line,l,u<0?"after":"before")}function hl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=O(u,n.doc.direction);if(m){var k=f<0?Et(m):m[0],U=f<0==(k.level==1),H=U?"after":"before",Z;if(k.level>0||n.doc.direction=="rtl"){var be=Zn(n,u);Z=f<0?u.text.length-1:0;var Ce=Wn(n,be,Z).top;Z=Ke(function(Ne){return Wn(n,be,Ne).top==Ce},f<0==(k.level==1)?k.from:k.to-1,Z),H=="before"&&(Z=Xo(u,Z,1))}else Z=f<0?k.to:k.from;return new at(l,Z,H)}}return new at(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 Qo(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=K(f,u.ch,u.sticky),k=f[m];if(e.doc.direction=="ltr"&&k.level%2==0&&(l>0?k.to>u.ch:k.from<u.ch))return Qo(n,u,l);var U=function(ct,yt){return Xo(n,ct instanceof at?ct.ch:ct,yt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||Zn(e,n),lu(e,n,H,ct)):{begin:0,end:n.text.length}},be=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||k.level==1){var Ce=k.level==1==l<0,Ne=U(u,Ce?1:-1);if(Ne!=null&&(Ce?Ne<=k.to&&Ne<=be.end:Ne>=k.from&&Ne>=be.begin)){var ke=Ce?"before":"after";return new at(u.line,Ne,ke)}}var Ye=function(ct,yt,dt){for(var bt=function(Tt,Sr){return Sr?new at(u.line,U(Tt,1),"before"):new at(u.line,Tt,"after")};ct>=0&&ct<f.length;ct+=yt){var Ft=f[ct],It=yt>0==(Ft.level!=1),it=It?dt.begin:U(dt.end,-1);if(Ft.from<=it&&it<Ft.to||(it=It?Ft.from:U(Ft.to,-1),dt.begin<=it&&it<dt.end))return bt(it,It)}},tt=Ye(m+l,l,be);if(tt)return tt;var ot=l>0?be.end:U(be.begin,-1);return ot!=null&&!(l>0&&ot==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(ot)),tt)?tt:null}var io={selectAll:$o,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ut)},killLine:function(e){return aa(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:at(n.head.line+1,0)}:{from:n.head,to:at(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return aa(e,function(n){return{from:at(n.from().line,0),to:lt(e.doc,at(n.to().line+1,0))}})},delLineLeft:function(e){return aa(e,function(n){return{from:at(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return aa(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 aa(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(at(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(at(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Sa(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Zo(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")},xt)},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")},xt)},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/)?Zo(e,n.head):l},xt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),k=Xe(e.getLine(m.line),m.ch,l);n.push(kt(l-k%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ur(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=Ot(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new at(f.line,f.ch-1)),f.ch>0)f=new at(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),at(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var k=Ot(e.doc,f.line-1).text;k&&(f=new at(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+k.charAt(k.length-1),at(f.line-1,k.length-1),f,"+transpose"))}}u.push(new er(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Ur(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);nn(e)})},openLine:function(e){return e.replaceSelection(`
29
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Sa(e,n){var u=Ot(e.doc,n),l=Vn(u);return l!=u&&(n=Zt(l)),hl(!0,e,l,n,1)}function xc(e,n){var u=Ot(e.doc,n),l=Xl(u);return l!=u&&(n=Zt(l)),hl(!0,e,u,n,-1)}function Zo(e,n){var u=Sa(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),k=n.line==u.line&&n.ch<=m&&n.ch;return at(u.line,k?0:m,u.sticky)}return u}function _o(e,n,u){if(typeof n=="string"&&(n=io[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)!=nt}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 qo=new ft;function ao(e,n,u,l){var f=e.state.keySeq;if(f){if(Hu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:qo.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"&&ar(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Qe(u),$s(e)),!!f}function $u(e,n){var u=zu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ao(e,"Shift-"+u,n,function(l){return _o(e,l,!0)})||ao(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return _o(e,l)}):ao(e,u,n,function(l){return _o(e,l)}):!1}function Sc(e,n,u){return ao(e,"'"+u+"'",n,function(l){return _o(e,l,!0)})}var es=null;function Ku(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!pe(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&&(es=l?u:null,!l&&u==88&&!Tn&&(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;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function vl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ui(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==es){es=null,Qe(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,gl=function(e,n,u){this.time=e,this.pos=n,this.button=u};gl.prototype.compare=function(e,n,u){return this.time+Ec>e&&Lt(n,this.pos)==0&&u==this.button};var oo,so;function Cc(e,n){var u=+new Date;return so&&so.compare(u,e,n)?(oo=so=null,"triple"):oo&&oo.compare(u,e,n)?(so=new gl(u,e,n),oo=null,"double"):(oo=new gl(u,e,n),so=null,"single")}function Ju(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ui(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!yl(n,e)){var l=Xi(n,e),f=hn(e),m=l?Cc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Oc(n,f,l,m,e))&&(f==1?l?Pc(n,l,m,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Ho(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Wa(n)))}}}function Oc(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,ao(e,pl(m,f),f,function(k){if(typeof k=="string"&&(k=io[k]),!k)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=k(e,u)!=nt}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 m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Pc(e,n,u,l){b?setTimeout(rt(Ks,e),0):e.curOp.focus=Fe();var f=Tc(e,u,l),m=e.doc.sel,k;e.options.dragDrop&&Nr&&!e.isReadOnly()&&u=="single"&&(k=m.contains(n))>-1&&(Lt((k=m.ranges[k]).from(),n)<0||n.xRel>0)&&(Lt(k.to(),n)>0||n.xRel<0)?ts(e,l,n,f):Ic(e,l,n,f)}function ts(e,n,u,l){var f=e.display,m=!1,k=jr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wa(e)),de(f.wrapper.ownerDocument,"mouseup",k),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",k),m||(Qe(Z),l.addNew||Ho(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(Z){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=k,k.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",k),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",k),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 er(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new er(at(n.line,0),lt(e.doc,at(n.line+1,0)));var l=u(e,n);return new er(l.from,l.to)}function Ic(e,n,u,l){b&&Wa(e);var f=e.display,m=e.doc;Qe(n);var k,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?k=Z[U]:k=new er(u,u)):(k=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(k=new er(u,u)),u=Xi(e,n,!0,!0),U=-1;else{var be=Xu(e,u,l.unit);l.extend?k=al(k,be.anchor,be.head,l.extend):k=be}l.addNew?U==-1?(U=Z.length,Zr(m,Cn(e,Z.concat([k]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Zr(m,Cn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):zo(m,U,k,mt):(U=0,Zr(m,new xn([k],0),mt),H=m.sel);var Ce=u;function Ne(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var bt=[],Ft=e.options.tabSize,It=Xe(Ot(m,u.line).text,u.ch,Ft),it=Xe(Ot(m,dt.line).text,dt.ch,Ft),Tt=Math.min(It,it),Sr=Math.max(It,it),vr=Math.min(u.line,dt.line),wn=Math.min(e.lastLine(),Math.max(u.line,dt.line));vr<=wn;vr++){var fn=Ot(m,vr).text,Ir=pt(fn,Tt,Ft);Tt==Sr?bt.push(new er(at(vr,Ir),at(vr,Ir))):fn.length>Ir&&bt.push(new er(at(vr,Ir),at(vr,pt(fn,Sr,Ft))))}bt.length||bt.push(new er(u,u)),Zr(m,Cn(e,H.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var Yr=k,Vr=Xu(e,dt,l.unit),Fr=Yr.anchor,Ar;Lt(Vr.anchor,Fr)>0?(Ar=Vr.head,Fr=qe(Yr.from(),Vr.anchor)):(Ar=Vr.anchor,Fr=Oe(Yr.to(),Vr.head));var dr=H.ranges.slice(0);dr[U]=Fc(e,new er(lt(m,Fr),Ar)),Zr(m,Cn(e,dr,U),mt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var bt=++Ye,Ft=Xi(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),Ne(Ft);var It=Ha(f,m);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(jr(e,function(){Ye==bt&&tt(dt)}),150)}else{var it=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;it&&setTimeout(jr(e,function(){Ye==bt&&(f.scroller.scrollTop+=it,tt(dt))}),50)}}function ot(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",yt),m.history.lastSelOrigin=null}var ct=jr(e,function(dt){dt.buttons===0||!hn(dt)?ot(dt):tt(dt)}),yt=jr(e,ot);e.state.selectingText=yt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",yt)}function Fc(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=O(f);if(!m)return n;var k=K(m,u.ch,u.sticky),U=m[k];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=k+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var be=K(m,l.ch,l.sticky),Ce=be-k||(l.ch-u.ch)*(U.level==1?-1:1);be==H-1||be==H?Z=Ce<0:Z=Ce>0}var Ne=m[H+(Z?-1:0)],ke=Z==(Ne.level==1),Ye=ke?Ne.from:Ne.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new er(new at(u.line,Ye,tt),l)}function Qu(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(n);var k=e.display,U=k.lineDiv.getBoundingClientRect();if(m>U.bottom||!Ue(e,u))return At(n);m-=U.top-k.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=k.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var be=jn(e.doc,m),Ce=e.display.gutterSpecs[H];return ae(e,u,e,be,Ce.className,n),At(n)}}}function yl(e,n){return Qu(e,n,"gutterClick",!0)}function Zu(e,n){ui(e.display,n)||_u(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function _u(e,n){return Ue(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-"),Ba(e)}var Aa={toString:function(){return"CodeMirror.Init"}},ef={},rs={};function tf(e){var n=e.optionHandlers;function u(l,f,m,k){e.defaults[l]=f,m&&(n[l]=k?function(U,H,Z){Z!=Aa&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=Aa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Uo(l)},!0),u("indentUnit",2,Uo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ta(l),Ba(l),Mr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],k=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var be=H.text.indexOf(f,Z);if(be==-1)break;Z=be+f.length,m.push(at(k,be))}k++});for(var U=m.length-1;U>=0;U--)ya(l.doc,f,m[U],at(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Aa&&l.refresh()}),u("specialCharPlaceholder",Is,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),No(l)},!0),u("keyMap","default",function(l,f,m){var k=Jo(f),U=m!=Aa&&Jo(m);U&&U.detach&&U.detach(l,k),k.attach&&k.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Mc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ya(f,l.options.lineNumbers),No(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 ci(l)},!0),u("scrollbarStyle","native",function(l){Lo(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=Ya(l.options.gutters,f),No(l)},!0),u("firstLineNumber",1,No,!0),u("lineNumberFormatter",function(l){return l},No,!0),u("showCursorWhenSelecting",!1,Fi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(da(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,Fi,!0),u("singleCursorHeightPerLine",!0,Fi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ta,!0),u("addModeClass",!1,ta,!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,ta,!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!=Aa;if(!n!=!l){var f=e.display.dragFunctions,m=n?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function Mc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Cs(e)),zs(e),Mr(e),Ba(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?Ze(n):{},Ze(ef,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 hr.inputStyles[n.inputStyle](this),m=this.display=new ic(e,l,f,n);m.wrapper.CodeMirror=this,qu(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Lo(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 ft,keySeq:null,specialChars:null},n.autofocus&&!R&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Rc(this),Vu(),ki(this),this.curOp.forceUpdate=!0,Cu(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Fo(u)},20):da(this);for(var k in rs)rs.hasOwnProperty(k)&&rs[k](this,n[k],Aa);Do(this),n.finishInit&&n.finishInit(this);for(var U=0;U<ml.length;++U)ml[U](this);Mi(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}hr.defaults=ef,hr.optionHandlers=rs;function Rc(e){var n=e.display;N(n.scroller,"mousedown",jr(e,Ju)),b&&S<11?N(n.scroller,"dblclick",jr(e,function(H){if(!pe(e,H)){var Z=Xi(e,H);if(!(!Z||yl(e,H)||ui(e.display,H))){Qe(H);var be=e.findWordAt(Z);Ho(e.doc,be.anchor,be.head)}}})):N(n.scroller,"dblclick",function(H){return pe(e,H)||Qe(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 m(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function k(H,Z){if(Z.left==null)return!0;var be=Z.left-H.left,Ce=Z.top-H.top;return be*be+Ce*Ce>20*20}N(n.scroller,"touchstart",function(H){if(!pe(e,H)&&!m(H)&&!yl(e,H)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-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 Z=n.activeTouch;if(Z&&!ui(n,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var be=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||k(Z,Z.prev)?Ce=new er(be,be):!Z.prev.prev||k(Z,Z.prev.prev)?Ce=e.findWordAt(be):Ce=new er(at(be.line,0),lt(e.doc,at(be.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Ga(e,n.scroller.scrollTop),_i(e,n.scroller.scrollLeft,!0),ae(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){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(gc(e,H),Bt(H))},start:function(H){return vc(e,H)},drop:jr(e,hc),leave:function(H){pe(e,H)||ju(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",jr(e,Ku)),N(U,"keypress",jr(e,vl)),N(U,"focus",function(H){return Fo(e,H)}),N(U,"blur",function(H){return da(e,H)})}var ml=[];hr.defineInitHook=function(e){return ml.push(e)};function Ea(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=tn(e,n).state:u="prev");var k=e.options.tabSize,U=Ot(f,n),H=Xe(U.text,null,k);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],be;if(!l&&!/\S/.test(U.text))be=0,u="not";else if(u=="smart"&&(be=f.mode.indent(m,U.text.slice(Z.length),U.text),be==nt||be>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?be=Xe(Ot(f,n-1).text,null,k):be=0:u=="add"?be=H+e.options.indentUnit:u=="subtract"?be=H-e.options.indentUnit:typeof u=="number"&&(be=H+u),be=Math.max(0,be);var Ce="",Ne=0;if(e.options.indentWithTabs)for(var ke=Math.floor(be/k);ke;--ke)Ne+=k,Ce+=" ";if(Ne<be&&(Ce+=kt(be-Ne)),Ce!=Z)return ya(f,Ce,at(n,0),at(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var ot=at(n,Z.length);zo(f,Ye,new er(ot,ot));break}}}var On=null;function lo(e){On=e}function xl(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var k=+new Date-200,U=f=="paste"||e.state.pasteIncoming>k,H=Nn(n),Z=null;if(U&&l.ranges.length>1)if(On&&On.text.join(`
29
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Sa(e,n){var u=Ot(e.doc,n),l=Vn(u);return l!=u&&(n=Zt(l)),hl(!0,e,l,n,1)}function xc(e,n){var u=Ot(e.doc,n),l=Xl(u);return l!=u&&(n=Zt(l)),hl(!0,e,u,n,-1)}function Zo(e,n){var u=Sa(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),k=n.line==u.line&&n.ch<=m&&n.ch;return at(u.line,k?0:m,u.sticky)}return u}function _o(e,n,u){if(typeof n=="string"&&(n=io[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)!=nt}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 qo=new ft;function ao(e,n,u,l){var f=e.state.keySeq;if(f){if(Hu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:qo.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"&&ar(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Qe(u),$s(e)),!!f}function $u(e,n){var u=zu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ao(e,"Shift-"+u,n,function(l){return _o(e,l,!0)})||ao(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return _o(e,l)}):ao(e,u,n,function(l){return _o(e,l)}):!1}function Sc(e,n,u){return ao(e,"'"+u+"'",n,function(l){return _o(e,l,!0)})}var es=null;function Ku(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!pe(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&&(es=l?u:null,!l&&u==88&&!Tn&&(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;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function vl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(ui(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==es){es=null,Qe(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,gl=function(e,n,u){this.time=e,this.pos=n,this.button=u};gl.prototype.compare=function(e,n,u){return this.time+Ec>e&&Lt(n,this.pos)==0&&u==this.button};var oo,so;function Cc(e,n){var u=+new Date;return so&&so.compare(u,e,n)?(oo=so=null,"triple"):oo&&oo.compare(u,e,n)?(so=new gl(u,e,n),oo=null,"double"):(oo=new gl(u,e,n),so=null,"single")}function Ju(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ui(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!yl(n,e)){var l=Xi(n,e),f=hn(e),m=l?Cc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Oc(n,f,l,m,e))&&(f==1?l?Pc(n,l,m,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Ho(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Wa(n)))}}}function Oc(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,ao(e,pl(m,f),f,function(k){if(typeof k=="string"&&(k=io[k]),!k)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=k(e,u)!=nt}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 m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Pc(e,n,u,l){b?setTimeout(rt(Ks,e),0):e.curOp.focus=Fe();var f=Tc(e,u,l),m=e.doc.sel,k;e.options.dragDrop&&Nr&&!e.isReadOnly()&&u=="single"&&(k=m.contains(n))>-1&&(Lt((k=m.ranges[k]).from(),n)<0||n.xRel>0)&&(Lt(k.to(),n)>0||n.xRel<0)?ts(e,l,n,f):Ic(e,l,n,f)}function ts(e,n,u,l){var f=e.display,m=!1,k=jr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wa(e)),de(f.wrapper.ownerDocument,"mouseup",k),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",k),m||(Qe(Z),l.addNew||Ho(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(Z){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=k,k.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",k),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",k),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 er(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new er(at(n.line,0),lt(e.doc,at(n.line+1,0)));var l=u(e,n);return new er(l.from,l.to)}function Ic(e,n,u,l){b&&Wa(e);var f=e.display,m=e.doc;Qe(n);var k,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?k=Z[U]:k=new er(u,u)):(k=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(k=new er(u,u)),u=Xi(e,n,!0,!0),U=-1;else{var be=Xu(e,u,l.unit);l.extend?k=al(k,be.anchor,be.head,l.extend):k=be}l.addNew?U==-1?(U=Z.length,Zr(m,Cn(e,Z.concat([k]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Zr(m,Cn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):zo(m,U,k,mt):(U=0,Zr(m,new xn([k],0),mt),H=m.sel);var Ce=u;function Ne(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var bt=[],Ft=e.options.tabSize,It=Xe(Ot(m,u.line).text,u.ch,Ft),it=Xe(Ot(m,dt.line).text,dt.ch,Ft),Tt=Math.min(It,it),Sr=Math.max(It,it),vr=Math.min(u.line,dt.line),wn=Math.min(e.lastLine(),Math.max(u.line,dt.line));vr<=wn;vr++){var fn=Ot(m,vr).text,Ir=pt(fn,Tt,Ft);Tt==Sr?bt.push(new er(at(vr,Ir),at(vr,Ir))):fn.length>Ir&&bt.push(new er(at(vr,Ir),at(vr,pt(fn,Sr,Ft))))}bt.length||bt.push(new er(u,u)),Zr(m,Cn(e,H.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var Yr=k,Vr=Xu(e,dt,l.unit),Fr=Yr.anchor,Ar;Lt(Vr.anchor,Fr)>0?(Ar=Vr.head,Fr=qe(Yr.from(),Vr.anchor)):(Ar=Vr.anchor,Fr=Oe(Yr.to(),Vr.head));var dr=H.ranges.slice(0);dr[U]=Fc(e,new er(lt(m,Fr),Ar)),Zr(m,Cn(e,dr,U),mt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var bt=++Ye,Ft=Xi(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),Ne(Ft);var It=Ha(f,m);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(jr(e,function(){Ye==bt&&tt(dt)}),150)}else{var it=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;it&&setTimeout(jr(e,function(){Ye==bt&&(f.scroller.scrollTop+=it,tt(dt))}),50)}}function ot(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",yt),m.history.lastSelOrigin=null}var ct=jr(e,function(dt){dt.buttons===0||!hn(dt)?ot(dt):tt(dt)}),yt=jr(e,ot);e.state.selectingText=yt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",yt)}function Fc(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=O(f);if(!m)return n;var k=K(m,u.ch,u.sticky),U=m[k];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=k+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var be=K(m,l.ch,l.sticky),Ce=be-k||(l.ch-u.ch)*(U.level==1?-1:1);be==H-1||be==H?Z=Ce<0:Z=Ce>0}var Ne=m[H+(Z?-1:0)],ke=Z==(Ne.level==1),Ye=ke?Ne.from:Ne.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new er(new at(u.line,Ye,tt),l)}function Qu(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(n);var k=e.display,U=k.lineDiv.getBoundingClientRect();if(m>U.bottom||!je(e,u))return At(n);m-=U.top-k.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=k.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var be=jn(e.doc,m),Ce=e.display.gutterSpecs[H];return ae(e,u,e,be,Ce.className,n),At(n)}}}function yl(e,n){return Qu(e,n,"gutterClick",!0)}function Zu(e,n){ui(e.display,n)||_u(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function _u(e,n){return je(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-"),Ba(e)}var Aa={toString:function(){return"CodeMirror.Init"}},ef={},rs={};function tf(e){var n=e.optionHandlers;function u(l,f,m,k){e.defaults[l]=f,m&&(n[l]=k?function(U,H,Z){Z!=Aa&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=Aa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Uo(l)},!0),u("indentUnit",2,Uo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ta(l),Ba(l),Mr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],k=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var be=H.text.indexOf(f,Z);if(be==-1)break;Z=be+f.length,m.push(at(k,be))}k++});for(var U=m.length-1;U>=0;U--)ya(l.doc,f,m[U],at(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Aa&&l.refresh()}),u("specialCharPlaceholder",Is,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),No(l)},!0),u("keyMap","default",function(l,f,m){var k=Jo(f),U=m!=Aa&&Jo(m);U&&U.detach&&U.detach(l,k),k.attach&&k.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Mc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ya(f,l.options.lineNumbers),No(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 ci(l)},!0),u("scrollbarStyle","native",function(l){Lo(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=Ya(l.options.gutters,f),No(l)},!0),u("firstLineNumber",1,No,!0),u("lineNumberFormatter",function(l){return l},No,!0),u("showCursorWhenSelecting",!1,Fi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(da(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,Fi,!0),u("singleCursorHeightPerLine",!0,Fi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ta,!0),u("addModeClass",!1,ta,!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,ta,!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!=Aa;if(!n!=!l){var f=e.display.dragFunctions,m=n?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function Mc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Cs(e)),zs(e),Mr(e),Ba(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?Ze(n):{},Ze(ef,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 hr.inputStyles[n.inputStyle](this),m=this.display=new ic(e,l,f,n);m.wrapper.CodeMirror=this,qu(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Lo(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 ft,keySeq:null,specialChars:null},n.autofocus&&!R&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Rc(this),Vu(),ki(this),this.curOp.forceUpdate=!0,Cu(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Fo(u)},20):da(this);for(var k in rs)rs.hasOwnProperty(k)&&rs[k](this,n[k],Aa);Do(this),n.finishInit&&n.finishInit(this);for(var U=0;U<ml.length;++U)ml[U](this);Mi(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}hr.defaults=ef,hr.optionHandlers=rs;function Rc(e){var n=e.display;N(n.scroller,"mousedown",jr(e,Ju)),b&&S<11?N(n.scroller,"dblclick",jr(e,function(H){if(!pe(e,H)){var Z=Xi(e,H);if(!(!Z||yl(e,H)||ui(e.display,H))){Qe(H);var be=e.findWordAt(Z);Ho(e.doc,be.anchor,be.head)}}})):N(n.scroller,"dblclick",function(H){return pe(e,H)||Qe(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 m(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function k(H,Z){if(Z.left==null)return!0;var be=Z.left-H.left,Ce=Z.top-H.top;return be*be+Ce*Ce>20*20}N(n.scroller,"touchstart",function(H){if(!pe(e,H)&&!m(H)&&!yl(e,H)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-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 Z=n.activeTouch;if(Z&&!ui(n,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var be=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||k(Z,Z.prev)?Ce=new er(be,be):!Z.prev.prev||k(Z,Z.prev.prev)?Ce=e.findWordAt(be):Ce=new er(at(be.line,0),lt(e.doc,at(be.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Ga(e,n.scroller.scrollTop),_i(e,n.scroller.scrollLeft,!0),ae(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){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(gc(e,H),Bt(H))},start:function(H){return vc(e,H)},drop:jr(e,hc),leave:function(H){pe(e,H)||ju(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",jr(e,Ku)),N(U,"keypress",jr(e,vl)),N(U,"focus",function(H){return Fo(e,H)}),N(U,"blur",function(H){return da(e,H)})}var ml=[];hr.defineInitHook=function(e){return ml.push(e)};function Ea(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=tn(e,n).state:u="prev");var k=e.options.tabSize,U=Ot(f,n),H=Xe(U.text,null,k);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],be;if(!l&&!/\S/.test(U.text))be=0,u="not";else if(u=="smart"&&(be=f.mode.indent(m,U.text.slice(Z.length),U.text),be==nt||be>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?be=Xe(Ot(f,n-1).text,null,k):be=0:u=="add"?be=H+e.options.indentUnit:u=="subtract"?be=H-e.options.indentUnit:typeof u=="number"&&(be=H+u),be=Math.max(0,be);var Ce="",Ne=0;if(e.options.indentWithTabs)for(var ke=Math.floor(be/k);ke;--ke)Ne+=k,Ce+=" ";if(Ne<be&&(Ce+=kt(be-Ne)),Ce!=Z)return ya(f,Ce,at(n,0),at(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var ot=at(n,Z.length);zo(f,Ye,new er(ot,ot));break}}}var On=null;function lo(e){On=e}function xl(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var k=+new Date-200,U=f=="paste"||e.state.pasteIncoming>k,H=Nn(n),Z=null;if(U&&l.ranges.length>1)if(On&&On.text.join(`
30
30
  `)==n){if(l.ranges.length%On.text.length==0){Z=[];for(var be=0;be<On.text.length;be++)Z.push(m.splitLines(On.text[be]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=Ht(H,function(ct){return[ct]}));for(var Ce=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=at(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=at(tt.line,Math.min(Ot(m,tt.line).text.length,tt.ch+Et(H).length)):U&&On&&On.lineWise&&On.text.join(`
31
31
  `)==H.join(`
32
- `)&&(Ye=tt=at(Ye.line,0)));var ot={from:Ye,to:tt,text:Z?Z[Ne%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>k?"cut":"+input")};ga(e.doc,ot),ar(e,"inputRead",e,ot)}n&&!U&&nf(e,n),nn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),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&&Ur(n,function(){return xl(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 m=e.getModeAt(f.head),k=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){k=Ea(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(k=Ea(e,f.head.line,"smart"));k&&ar(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,m={anchor:at(f,0),head:at(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function xr(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Lc(){var e=we("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=we("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),xr(e),n}function Dc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,k=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&jr(this,n[l])(this,f,k),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"](Jo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Rr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(k){return k.priority}),this.state.modeGen++,Mr(this)}),removeOverlay:Rr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var k=f[m].modeSpec;if(k==l||typeof l=="string"&&k.name==l){f.splice(m,1),this.state.modeGen++,Mr(this);return}}}),indentLine:Rr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Qn(this.doc,l)&&Ea(this,l,f,m)}),indentSelection:Rr(function(l){for(var f=this.doc.sel.ranges,m=-1,k=0;k<f.length;k++){var U=f[k];if(U.empty())U.head.line>m&&(Ea(this,U.head.line,l,!0),m=U.head.line,k==this.doc.sel.primIndex&&nn(this));else{var H=U.from(),Z=U.to(),be=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=be;Ce<m;++Ce)Ea(this,Ce,l);var Ne=this.doc.sel.ranges;H.ch==0&&f.length==Ne.length&&Ne[k].from().ch>0&&zo(this.doc,k,new er(H,Ne[k].to()),ut)}}}),getTokenAt:function(l,f){return bs(this,l,f)},getLineTokens:function(l,f){return bs(this,at(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Wl(this,Ot(this.doc,l.line)),m=0,k=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=m+k>>1;if((Z?f[Z*2-1]:0)>=U)k=Z;else if(f[Z*2+1]<U)m=Z+1;else{H=f[Z*2+2];break}}var be=H?H.indexOf("overlay "):-1;return be<0?H:be==0?null:H.slice(0,be-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var k=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")k[U[f]]&&m.push(k[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=k[U[f][H]];Z&&m.push(Z)}else U.helperType&&k[U.helperType]?m.push(k[U.helperType]):k[U.name]&&m.push(k[U.name]);for(var be=0;be<k._global.length;be++){var Ce=k._global[be];Ce.pred(U,this)&&ht(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=st(m,l==null?m.first+m.size-1:l),tn(this,l+1,f).state},cursorCoords:function(l,f){var m,k=this.doc.sel.primary();return l==null?m=k.head:typeof l=="object"?m=lt(this.doc,l):m=l?k.from():k.to(),Hn(this,m,f||"page")},charCoords:function(l,f){return Co(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Va(this,l,f||"page"),Vs(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Va(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var k=!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,k=!0),U=Ot(this.doc,l)}else U=l;return Eo(this,U,{top:0,left:0},f||"page",m||k).top+(k?this.doc.height-li(U):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return Pn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,k,U){var H=this.display;l=Hn(this,lt(this.doc,l));var Z=l.bottom,be=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),k=="over")Z=l.top;else if(k=="above"||k=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),Ne=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(k=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),be+f.offsetWidth>Ne&&(be=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(be=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?be=0:U=="middle"&&(be=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=be+"px"),m&&du(this,{left:be,top:Z,right:be+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Rr(Ku),triggerOnKeyPress:Rr(vl),triggerOnKeyUp:Yu,triggerOnMouseDown:Rr(Ju),execCommand:function(l){if(io.hasOwnProperty(l))return io[l].call(null,this)},triggerElectric:Rr(function(l){nf(this,l)}),findPosH:function(l,f,m,k){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=Wt(this.doc,H,U,m,k),!H.hitSide);++Z);return H},moveH:Rr(function(l,f){var m=this;this.extendSelectionsBy(function(k){return m.display.shift||m.doc.extend||k.empty()?Wt(m.doc,k.head,l,f,m.options.rtlMoveVisually):l<0?k.from():k.to()},xt)}),deleteH:Rr(function(l,f){var m=this.doc.sel,k=this.doc;m.somethingSelected()?k.replaceSelection("",null,"+delete"):aa(this,function(U){var H=Wt(k,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,k){var U=1,H=k;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),be=0;be<f;++be){var Ce=Hn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=bl(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Rr(function(l,f){var m=this,k=this.doc,U=[],H=!this.display.shift&&!k.extend&&k.sel.somethingSelected();if(k.extendSelectionsBy(function(be){if(H)return l<0?be.from():be.to();var Ce=Hn(m,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),U.push(Ce.left);var Ne=bl(m,Ce,l,f);return f=="page"&&be==k.sel.primary()&&Xs(m,Co(m,Ne,"div").top-Ce.top),Ne},xt),U.length)for(var Z=0;Z<k.sel.ranges.length;Z++)k.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Ot(f,l.line).text,k=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&k?--k:++U;for(var Z=m.charAt(k),be=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};k>0&&be(m.charAt(k-1));)--k;for(;U<m.length&&be(m.charAt(U));)++U}return new er(at(l.line,k),at(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(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:Rr(function(l,f){za(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:Na(this),clientWidth:Ki(this)}},scrollIntoView:Rr(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:at(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?Zi(this,l):pu(this,l.from,l.to,l.margin)}),setSize:Rr(function(l,f){var m=this,k=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=k(l)),f!=null&&(this.display.wrapper.style.height=k(f)),this.options.lineWrapping&&Yi(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){_n(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return Ur(this,l)},startOperation:function(){return ki(this)},endOperation:function(){return Mi(this)},refresh:Rr(function(){var l=this.display.cachedTextHeight;Mr(this),this.curOp.forceUpdate=!0,Ba(this),za(this,this.doc.scrollLeft,this.doc.scrollTop),el(this.display),(l==null||Math.abs(l-ca(this.display))>.5||this.options.lineWrapping)&&zs(this),ae(this,"refresh",this)}),swapDoc:Rr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),Ba(this),this.display.input.reset(),za(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ar(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}},je(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,k){e.registerHelper(l,f,k),u[l]._global.push({pred:m,val:k})}}function Wt(e,n,u,l,f){var m=n,k=u,U=Ot(e,n.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var yt=n.line+H;return yt<e.first||yt>=e.first+e.size?!1:(n=new at(yt,n.ch,n.sticky),U=Ot(e,yt))}function be(yt){var dt;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))dt=null;else{var Ft=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;dt=new at(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Ft?2:1))),-u)}}else f?dt=Gu(e.cm,U,n,u):dt=Qo(U,n,u);if(dt==null)if(!yt&&Z())n=hl(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")be();else if(l=="column")be(!0);else if(l=="word"||l=="group")for(var Ce=null,Ne=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!be(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
32
+ `)&&(Ye=tt=at(Ye.line,0)));var ot={from:Ye,to:tt,text:Z?Z[Ne%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>k?"cut":"+input")};ga(e.doc,ot),ar(e,"inputRead",e,ot)}n&&!U&&nf(e,n),nn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),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&&Ur(n,function(){return xl(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 m=e.getModeAt(f.head),k=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){k=Ea(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(k=Ea(e,f.head.line,"smart"));k&&ar(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,m={anchor:at(f,0),head:at(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function xr(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Lc(){var e=we("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=we("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),xr(e),n}function Dc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,k=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&jr(this,n[l])(this,f,k),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"](Jo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Rr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(k){return k.priority}),this.state.modeGen++,Mr(this)}),removeOverlay:Rr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var k=f[m].modeSpec;if(k==l||typeof l=="string"&&k.name==l){f.splice(m,1),this.state.modeGen++,Mr(this);return}}}),indentLine:Rr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Qn(this.doc,l)&&Ea(this,l,f,m)}),indentSelection:Rr(function(l){for(var f=this.doc.sel.ranges,m=-1,k=0;k<f.length;k++){var U=f[k];if(U.empty())U.head.line>m&&(Ea(this,U.head.line,l,!0),m=U.head.line,k==this.doc.sel.primIndex&&nn(this));else{var H=U.from(),Z=U.to(),be=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=be;Ce<m;++Ce)Ea(this,Ce,l);var Ne=this.doc.sel.ranges;H.ch==0&&f.length==Ne.length&&Ne[k].from().ch>0&&zo(this.doc,k,new er(H,Ne[k].to()),ut)}}}),getTokenAt:function(l,f){return bs(this,l,f)},getLineTokens:function(l,f){return bs(this,at(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Wl(this,Ot(this.doc,l.line)),m=0,k=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=m+k>>1;if((Z?f[Z*2-1]:0)>=U)k=Z;else if(f[Z*2+1]<U)m=Z+1;else{H=f[Z*2+2];break}}var be=H?H.indexOf("overlay "):-1;return be<0?H:be==0?null:H.slice(0,be-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var k=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")k[U[f]]&&m.push(k[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=k[U[f][H]];Z&&m.push(Z)}else U.helperType&&k[U.helperType]?m.push(k[U.helperType]):k[U.name]&&m.push(k[U.name]);for(var be=0;be<k._global.length;be++){var Ce=k._global[be];Ce.pred(U,this)&&ht(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=st(m,l==null?m.first+m.size-1:l),tn(this,l+1,f).state},cursorCoords:function(l,f){var m,k=this.doc.sel.primary();return l==null?m=k.head:typeof l=="object"?m=lt(this.doc,l):m=l?k.from():k.to(),Hn(this,m,f||"page")},charCoords:function(l,f){return Co(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Va(this,l,f||"page"),Vs(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Va(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var k=!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,k=!0),U=Ot(this.doc,l)}else U=l;return Eo(this,U,{top:0,left:0},f||"page",m||k).top+(k?this.doc.height-li(U):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return Pn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,k,U){var H=this.display;l=Hn(this,lt(this.doc,l));var Z=l.bottom,be=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),k=="over")Z=l.top;else if(k=="above"||k=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),Ne=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(k=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),be+f.offsetWidth>Ne&&(be=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(be=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?be=0:U=="middle"&&(be=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=be+"px"),m&&du(this,{left:be,top:Z,right:be+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Rr(Ku),triggerOnKeyPress:Rr(vl),triggerOnKeyUp:Yu,triggerOnMouseDown:Rr(Ju),execCommand:function(l){if(io.hasOwnProperty(l))return io[l].call(null,this)},triggerElectric:Rr(function(l){nf(this,l)}),findPosH:function(l,f,m,k){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=Gt(this.doc,H,U,m,k),!H.hitSide);++Z);return H},moveH:Rr(function(l,f){var m=this;this.extendSelectionsBy(function(k){return m.display.shift||m.doc.extend||k.empty()?Gt(m.doc,k.head,l,f,m.options.rtlMoveVisually):l<0?k.from():k.to()},xt)}),deleteH:Rr(function(l,f){var m=this.doc.sel,k=this.doc;m.somethingSelected()?k.replaceSelection("",null,"+delete"):aa(this,function(U){var H=Gt(k,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,k){var U=1,H=k;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),be=0;be<f;++be){var Ce=Hn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=bl(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Rr(function(l,f){var m=this,k=this.doc,U=[],H=!this.display.shift&&!k.extend&&k.sel.somethingSelected();if(k.extendSelectionsBy(function(be){if(H)return l<0?be.from():be.to();var Ce=Hn(m,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),U.push(Ce.left);var Ne=bl(m,Ce,l,f);return f=="page"&&be==k.sel.primary()&&Xs(m,Co(m,Ne,"div").top-Ce.top),Ne},xt),U.length)for(var Z=0;Z<k.sel.ranges.length;Z++)k.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Ot(f,l.line).text,k=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&k?--k:++U;for(var Z=m.charAt(k),be=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};k>0&&be(m.charAt(k-1));)--k;for(;U<m.length&&be(m.charAt(U));)++U}return new er(at(l.line,k),at(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(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:Rr(function(l,f){za(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:Na(this),clientWidth:Ki(this)}},scrollIntoView:Rr(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:at(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?Zi(this,l):pu(this,l.from,l.to,l.margin)}),setSize:Rr(function(l,f){var m=this,k=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=k(l)),f!=null&&(this.display.wrapper.style.height=k(f)),this.options.lineWrapping&&Yi(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){_n(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return Ur(this,l)},startOperation:function(){return ki(this)},endOperation:function(){return Mi(this)},refresh:Rr(function(){var l=this.display.cachedTextHeight;Mr(this),this.curOp.forceUpdate=!0,Ba(this),za(this,this.doc.scrollLeft,this.doc.scrollTop),el(this.display),(l==null||Math.abs(l-ca(this.display))>.5||this.options.lineWrapping)&&zs(this),ae(this,"refresh",this)}),swapDoc:Rr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),Ba(this),this.display.input.reset(),za(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ar(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}},Ve(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,k){e.registerHelper(l,f,k),u[l]._global.push({pred:m,val:k})}}function Gt(e,n,u,l,f){var m=n,k=u,U=Ot(e,n.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var yt=n.line+H;return yt<e.first||yt>=e.first+e.size?!1:(n=new at(yt,n.ch,n.sticky),U=Ot(e,yt))}function be(yt){var dt;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))dt=null;else{var Ft=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;dt=new at(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Ft?2:1))),-u)}}else f?dt=Gu(e.cm,U,n,u):dt=Qo(U,n,u);if(dt==null)if(!yt&&Z())n=hl(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")be();else if(l=="column")be(!0);else if(l=="word"||l=="group")for(var Ce=null,Ne=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!be(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
33
33
  `,ot=z(tt,ke)?"w":Ne&&tt==`
34
- `?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!ot&&(ot="s"),Ce&&Ce!=ot){u<0&&(u=1,be(),n.sticky="after");break}if(ot&&(Ce=ot),u>0&&!be(!Ye))break}var ct=_a(e,n,m,k,!0);return oi(m,ct)&&(ct.hitSide=!0),ct}function bl(e,n,u,l){var f=e.doc,m=n.left,k;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*ca(e.display),3);k=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(k=u>0?n.bottom+3:n.top-3);for(var Z;Z=Vs(e,m,k),!!Z.outside;){if(u<0?k<=0:k>=f.height){Z.hitSide=!0;break}k+=u*5}return Z}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ft,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,xr(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(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){!m(U)||pe(l,U)||rf(U,l)||S<=11&&setTimeout(jr(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 k(U){if(!(!m(U)||pe(l,U))){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=af(l);lo({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,ut),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=On.text.join(`
34
+ `?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!ot&&(ot="s"),Ce&&Ce!=ot){u<0&&(u=1,be(),n.sticky="after");break}if(ot&&(Ce=ot),u>0&&!be(!Ye))break}var ct=_a(e,n,m,k,!0);return oi(m,ct)&&(ct.hitSide=!0),ct}function bl(e,n,u,l){var f=e.doc,m=n.left,k;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*ca(e.display),3);k=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(k=u>0?n.bottom+3:n.top-3);for(var Z;Z=Vs(e,m,k),!!Z.outside;){if(u<0?k<=0:k>=f.height){Z.hitSide=!0;break}k+=u*5}return Z}var Wt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ft,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wt.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,xr(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(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){!m(U)||pe(l,U)||rf(U,l)||S<=11&&setTimeout(jr(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 k(U){if(!(!m(U)||pe(l,U))){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=af(l);lo({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,ut),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=On.text.join(`
35
35
  `);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var be=Lc(),Ce=be.firstChild;l.display.lineSpace.insertBefore(be,l.display.lineSpace.firstChild),Ce.value=On.text.join(`
36
- `);var Ne=Fe();Pe(Ce),setTimeout(function(){l.display.lineSpace.removeChild(be),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}N(f,"copy",k),N(f,"cut",k)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=Po(this.cm,!1);return e.focus=Fe()==this.div,e},zt.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var m=Gn(n,e.anchorNode,e.anchorOffset),k=Gn(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&k&&!k.bad&&Lt(qe(m,k),l)==0&&Lt(Oe(m,k),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&of(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&of(n,f);if(!Z){var be=U[U.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!H||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(H.node,H.offset,Z.offset,Z.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()}},zt.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)},zt.prototype.showMultipleSelections=function(e){xe(this.cm.display.cursorDiv,e.cursors),xe(this.cm.display.selectionDiv,e.selection)},zt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},zt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return se(this.div,n)},zt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zt.prototype.blur=function(){this.div.blur()},zt.prototype.getField=function(){return this.div},zt.prototype.supportsTouch=function(){return!0},zt.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Ur(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)},zt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},zt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&D&&this.cm.display.gutterSpecs.length&&uo(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Gn(n,e.anchorNode,e.anchorOffset),l=Gn(n,e.focusNode,e.focusOffset);u&&l&&Ur(n,function(){Zr(n.doc,Ri(u,l),ut),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},zt.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=at(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=at(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,k,U;l.line==n.viewFrom||(m=Qi(e,l.line))==0?(k=Zt(n.view[0].line),U=n.view[0].node):(k=Zt(n.view[m].line),U=n.view[m-1].node.nextSibling);var H=Qi(e,f.line),Z,be;if(H==n.view.length-1?(Z=n.viewTo-1,be=n.lineDiv.lastChild):(Z=Zt(n.view[H+1].line)-1,be=n.view[H+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(sf(e,U,be,k,Z)),Ne=ai(e.doc,at(k,0),at(Z,Ot(e.doc,Z).text.length));Ce.length>1&&Ne.length>1;)if(Et(Ce)==Et(Ne))Ce.pop(),Ne.pop(),Z--;else if(Ce[0]==Ne[0])Ce.shift(),Ne.shift(),k++;else break;for(var ke=0,Ye=0,tt=Ce[0],ot=Ne[0],ct=Math.min(tt.length,ot.length);ke<ct&&tt.charCodeAt(ke)==ot.charCodeAt(ke);)++ke;for(var yt=Et(Ce),dt=Et(Ne),bt=Math.min(yt.length-(Ce.length==1?ke:0),dt.length-(Ne.length==1?ke:0));Ye<bt&&yt.charCodeAt(yt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ce.length==1&&Ne.length==1&&k==l.line)for(;ke&&ke>l.ch&&yt.charCodeAt(yt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)ke--,Ye++;Ce[Ce.length-1]=yt.slice(0,yt.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(ke).replace(/\u200b+$/,"");var Ft=at(k,ke),It=at(Z,Ne.length?Et(Ne).length-Ye:0);if(Ce.length>1||Ce[0]||Lt(Ft,It))return ya(e.doc,Ce,Ft,It,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zt.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))},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Mr(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||jr(this.cm,xl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function of(e,n){var u=Ds(e,n.line);if(!u||u.hidden)return null;var l=Ot(e.doc,n.line),f=Ls(u,l,n.line),m=O(l,e.doc.direction),k="left";if(m){var U=K(m,n.ch);k=U%2?"right":"left"}var H=Ns(f.map,n.ch,k);return H.offset=H.collapse=="right"?H.end:H.start,H}function uo(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function vi(e,n){return n&&(e.bad=!0),e}function sf(e,n,u,l,f){var m="",k=!1,U=e.doc.lineSeparator(),H=!1;function Z(ke){return function(Ye){return Ye.id==ke}}function be(){k&&(m+=U,H&&(m+=U),k=H=!1)}function Ce(ke){ke&&(be(),m+=ke)}function Ne(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ce(Ye);return}var tt=ke.getAttribute("cm-marker"),ot;if(tt){var ct=e.findMarks(at(l,0),at(f+1,0),Z(+tt));ct.length&&(ot=ct[0].find(0))&&Ce(ai(e.doc,ot.from,ot.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var yt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;yt&&be();for(var dt=0;dt<ke.childNodes.length;dt++)Ne(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),yt&&(k=!0)}else ke.nodeType==3&&Ce(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,H=!1;return m}function Gn(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return vi(e.clipPos(at(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var m=e.display.view[f];if(m.node==l)return Nc(m,n,u)}}function Nc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!se(l,n))return vi(at(Zt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?Et(e.rest):e.line;return vi(at(Zt(m),m.text.length),f)}var k=n.nodeType==3?n:null,U=n;for(!k&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(k=n.firstChild,u&&(u=k.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var H=e.measure,Z=H.maps;function be(ot,ct,yt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var bt=dt<0?H.map:Z[dt],Ft=0;Ft<bt.length;Ft+=3){var It=bt[Ft+2];if(It==ot||It==ct){var it=Zt(dt<0?e.line:e.rest[dt]),Tt=bt[Ft]+yt;return(yt<0||It!=ot)&&(Tt=bt[Ft+(yt?1:0)]),at(it,Tt)}}}var Ce=be(k,U,u);if(Ce)return vi(Ce,f);for(var Ne=U.nextSibling,ke=k?k.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ce=be(Ne,Ne.firstChild,0),Ce)return vi(at(Ce.line,Ce.ch-ke),f);ke+=Ne.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ce=be(Ye,Ye.firstChild,-1),Ce)return vi(at(Ce.line,Ce.ch+tt),f);tt+=Ye.textContent.length}}var wr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};wr.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),M&&(f.style.width="0px"),N(f,"input",function(){b&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(k){pe(l,k)||rf(k,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(k){if(!pe(l,k)){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=af(l);lo({lineWise:!0,text:U.text}),k.type=="cut"?l.setSelections(U.ranges,null,ut):(u.prevInput="",f.value=U.text.join(`
36
+ `);var Ne=Fe();Pe(Ce),setTimeout(function(){l.display.lineSpace.removeChild(be),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}N(f,"copy",k),N(f,"cut",k)},Wt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=Po(this.cm,!1);return e.focus=Fe()==this.div,e},Wt.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Wt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wt.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var m=Gn(n,e.anchorNode,e.anchorOffset),k=Gn(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&k&&!k.bad&&Lt(qe(m,k),l)==0&&Lt(Oe(m,k),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&of(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&of(n,f);if(!Z){var be=U[U.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!H||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(H.node,H.offset,Z.offset,Z.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()}},Wt.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)},Wt.prototype.showMultipleSelections=function(e){xe(this.cm.display.cursorDiv,e.cursors),xe(this.cm.display.selectionDiv,e.selection)},Wt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Wt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return oe(this.div,n)},Wt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wt.prototype.blur=function(){this.div.blur()},Wt.prototype.getField=function(){return this.div},Wt.prototype.supportsTouch=function(){return!0},Wt.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Ur(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)},Wt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Wt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&D&&this.cm.display.gutterSpecs.length&&uo(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Gn(n,e.anchorNode,e.anchorOffset),l=Gn(n,e.focusNode,e.focusOffset);u&&l&&Ur(n,function(){Zr(n.doc,Ri(u,l),ut),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},Wt.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=at(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=at(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,k,U;l.line==n.viewFrom||(m=Qi(e,l.line))==0?(k=Zt(n.view[0].line),U=n.view[0].node):(k=Zt(n.view[m].line),U=n.view[m-1].node.nextSibling);var H=Qi(e,f.line),Z,be;if(H==n.view.length-1?(Z=n.viewTo-1,be=n.lineDiv.lastChild):(Z=Zt(n.view[H+1].line)-1,be=n.view[H+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(sf(e,U,be,k,Z)),Ne=ai(e.doc,at(k,0),at(Z,Ot(e.doc,Z).text.length));Ce.length>1&&Ne.length>1;)if(Et(Ce)==Et(Ne))Ce.pop(),Ne.pop(),Z--;else if(Ce[0]==Ne[0])Ce.shift(),Ne.shift(),k++;else break;for(var ke=0,Ye=0,tt=Ce[0],ot=Ne[0],ct=Math.min(tt.length,ot.length);ke<ct&&tt.charCodeAt(ke)==ot.charCodeAt(ke);)++ke;for(var yt=Et(Ce),dt=Et(Ne),bt=Math.min(yt.length-(Ce.length==1?ke:0),dt.length-(Ne.length==1?ke:0));Ye<bt&&yt.charCodeAt(yt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ce.length==1&&Ne.length==1&&k==l.line)for(;ke&&ke>l.ch&&yt.charCodeAt(yt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)ke--,Ye++;Ce[Ce.length-1]=yt.slice(0,yt.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(ke).replace(/\u200b+$/,"");var Ft=at(k,ke),It=at(Z,Ne.length?Et(Ne).length-Ye:0);if(Ce.length>1||Ce[0]||Lt(Ft,It))return ya(e.doc,Ce,Ft,It,"+input"),!0},Wt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wt.prototype.reset=function(){this.forceCompositionEnd()},Wt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wt.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))},Wt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Mr(e.cm)})},Wt.prototype.setUneditable=function(e){e.contentEditable="false"},Wt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||jr(this.cm,xl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Wt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Wt.prototype.onContextMenu=function(){},Wt.prototype.resetPosition=function(){},Wt.prototype.needsContentAttribute=!0;function of(e,n){var u=Ds(e,n.line);if(!u||u.hidden)return null;var l=Ot(e.doc,n.line),f=Ls(u,l,n.line),m=O(l,e.doc.direction),k="left";if(m){var U=K(m,n.ch);k=U%2?"right":"left"}var H=Ns(f.map,n.ch,k);return H.offset=H.collapse=="right"?H.end:H.start,H}function uo(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function vi(e,n){return n&&(e.bad=!0),e}function sf(e,n,u,l,f){var m="",k=!1,U=e.doc.lineSeparator(),H=!1;function Z(ke){return function(Ye){return Ye.id==ke}}function be(){k&&(m+=U,H&&(m+=U),k=H=!1)}function Ce(ke){ke&&(be(),m+=ke)}function Ne(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ce(Ye);return}var tt=ke.getAttribute("cm-marker"),ot;if(tt){var ct=e.findMarks(at(l,0),at(f+1,0),Z(+tt));ct.length&&(ot=ct[0].find(0))&&Ce(ai(e.doc,ot.from,ot.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var yt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;yt&&be();for(var dt=0;dt<ke.childNodes.length;dt++)Ne(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),yt&&(k=!0)}else ke.nodeType==3&&Ce(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,H=!1;return m}function Gn(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return vi(e.clipPos(at(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var m=e.display.view[f];if(m.node==l)return Nc(m,n,u)}}function Nc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!oe(l,n))return vi(at(Zt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?Et(e.rest):e.line;return vi(at(Zt(m),m.text.length),f)}var k=n.nodeType==3?n:null,U=n;for(!k&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(k=n.firstChild,u&&(u=k.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var H=e.measure,Z=H.maps;function be(ot,ct,yt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var bt=dt<0?H.map:Z[dt],Ft=0;Ft<bt.length;Ft+=3){var It=bt[Ft+2];if(It==ot||It==ct){var it=Zt(dt<0?e.line:e.rest[dt]),Tt=bt[Ft]+yt;return(yt<0||It!=ot)&&(Tt=bt[Ft+(yt?1:0)]),at(it,Tt)}}}var Ce=be(k,U,u);if(Ce)return vi(Ce,f);for(var Ne=U.nextSibling,ke=k?k.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ce=be(Ne,Ne.firstChild,0),Ce)return vi(at(Ce.line,Ce.ch-ke),f);ke+=Ne.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ce=be(Ye,Ye.firstChild,-1),Ce)return vi(at(Ce.line,Ce.ch+tt),f);tt+=Ye.textContent.length}}var wr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};wr.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),M&&(f.style.width="0px"),N(f,"input",function(){b&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(k){pe(l,k)||rf(k,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(k){if(!pe(l,k)){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=af(l);lo({lineWise:!0,text:U.text}),k.type=="cut"?l.setSelections(U.ranges,null,ut):(u.prevInput="",f.value=U.text.join(`
37
37
  `),Pe(f))}else return;k.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",m),N(f,"copy",m),N(e.scroller,"paste",function(k){if(!(ui(e,k)||pe(l,k))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=k.clipboardData,f.dispatchEvent(U)}}),N(e.lineSpace,"selectstart",function(k){ui(e,k)||Qe(k)}),N(f,"compositionstart",function(){var k=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:k,range:l.markText(k,l.getCursor("to"),{className:"CodeMirror-composing"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},wr.prototype.createField=function(e){this.wrapper=Lc(),this.textarea=this.wrapper.firstChild},wr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},wr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Po(e);if(e.options.moveInputWithCursor){var f=Hn(e,u.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),k=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+k.top-m.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+k.left-m.left))}return l},wr.prototype.showSelection=function(e){var n=this.cm,u=n.display;xe(u.cursorDiv,e.cursors),xe(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},wr.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))}},wr.prototype.getField=function(){return this.textarea},wr.prototype.supportsTouch=function(){return!1},wr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},wr.prototype.blur=function(){this.textarea.blur()},wr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wr.prototype.receivedFocus=function(){this.slowPoll()},wr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},wr.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)},wr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||vn(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 m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var k=0,U=Math.min(l.length,f.length);k<U&&l.charCodeAt(k)==f.charCodeAt(k);)++k;return Ur(n,function(){xl(n,f.slice(k),l.length-k,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
38
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},wr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wr.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},wr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=Xi(u,e),k=l.scroller.scrollTop;if(!m||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&jr(u,Zr)(u.doc,Ri(m),ut);var H=f.style.cssText,Z=n.wrapper.style.cssText,be=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
39
39
  top: `+(e.clientY-be.top-5)+"px; left: "+(e.clientX-be.left-5)+`px;
40
40
  z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
41
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var tt=u.somethingSelected(),ot="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=ot,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=ot.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=k),f.selectionStart!=null)){(!b||b&&S<9)&&Ne();var tt=0,ot=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?jr(u,$o)(u):tt++<10?l.detectingSelectAll=setTimeout(ot,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ot,200)}}if(b&&S>=9&&Ne(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},wr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},wr.prototype.setUneditable=function(){},wr.prototype.needsContentAttribute=!1;function Bc(e,n){if(n=n?Ze(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=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 m=e.form;f=m.submit;try{var k=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=k}}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&&(de(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=de,e.on=N,e.wheelEventPixels=rr,e.Doc=un,e.splitLines=Nn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=ae,e.Line=zi,e.changeEnd=Li,e.scrollbarModel=mn,e.Pos=at,e.cmpPos=Lt,e.modes=Ei,e.mimeModes=en,e.resolveMode=Un,e.getMode=yn,e.modeExtensions=Jn,e.extendMode=Ci,e.copyState=Br,e.startState=Xn,e.innerMode=Kr,e.commands=io,e.keyMap=ti,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=hi,e.normalizeKeyMap=Id,e.StringStream=fr,e.SharedTextMarker=ba,e.TextMarker=ei,e.LineWidget=eo,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=se,e.rmClass=ee,e.keyNames=bn}tf(hr),Dc(hr);var Uc="iter insert remove copy getEditor constructor".split(" ");for(var ns in un.prototype)un.prototype.hasOwnProperty(ns)&&ht(Uc,ns)<0&&(hr.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[ns]));return je(un),hr.inputStyles={textarea:wr,contenteditable:zt},hr.defineMode=function(e){!hr.defaults.mode&&e!="null"&&(hr.defaults.mode=e),gn.apply(this,arguments)},hr.defineMIME=Bn,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){un.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(Or){return{type:Or,style:"keyword"}}var Oe=ue("keyword a"),qe=ue("keyword b"),st=ue("keyword c"),lt=ue("keyword d"),Kt=ue("operator"),Xt={type:"atom",style:"atom"};return{if:ue("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:ue("new"),delete:st,void:st,throw:st,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:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:st,export:ue("export"),import:ue("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(ue){for(var Oe=!1,qe,st=!1;(qe=ue.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,R;function C(ue,Oe,qe){return X=ue,R=qe,Oe}function V(ue,Oe){var qe=ue.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(ue,Oe);if(qe=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&ue.eat(">"))return C("=>","operator");if(qe=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return ue.eat("*")?(Oe.tokenize=_,_(ue,Oe)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):oi(ue,Oe,1)?(M(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(qe=="`")return Oe.tokenize=Q,Q(ue,Oe);if(qe=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(qe=="#"&&ue.eatWhile(B))return C("variable","property");if(qe=="<"&&ue.match("!--")||qe=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(ue.eat("=")?(qe=="!"||qe=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(qe)&&(ue.eat(qe),qe==">"&&ue.eat(qe))),qe=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(qe)){ue.eatWhile(B);var st=ue.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(ue){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==ue&&!st);)st=!st&&lt=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(ue,Oe){for(var qe=!1,st;st=ue.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(ue,Oe){for(var qe=!1,st;(st=ue.next())!=null;){if(!qe&&(st=="`"||st=="$"&&ue.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",ue.current())}var Y="([{}])";function ce(ue,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=ue.string.indexOf("=>",ue.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Or=ue.string.charAt(Xt),Tr=Y.indexOf(Or);if(Tr>=0&&Tr<3){if(!lt){++Xt;break}if(--lt==0){Or=="("&&(Kt=!0);break}}else if(Tr>=3&&Tr<6)++lt;else if(B.test(Or))Kt=!0;else if(/["'\/`]/.test(Or))for(;;--Xt){if(Xt==0)return;var _t=ue.string.charAt(Xt-1);if(_t==Or&&ue.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(ue,Oe,qe,st,lt,Kt){this.indented=ue,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function xe(ue,Oe){if(!L)return!1;for(var qe=ue.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=ue.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function we(ue,Oe,qe,st,lt){var Kt=ue.cc;for(he.state=ue,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Mt:xt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&xe(ue,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)he.cc.push(arguments[ue])}function se(){return fe.apply(null,arguments),!0}function Fe(ue,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==ue)return!0;return!1}function Le(ue){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Me(ue,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(ue,Oe.localVars)){Oe.localVars=new Ze(ue,Oe.localVars);return}}x.globalVars&&!Fe(ue,Oe.globalVars)&&(Oe.globalVars=new Ze(ue,Oe.globalVars))}}function Me(ue,Oe){if(Oe)if(Oe.block){var qe=Me(ue,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(ue,Oe.vars)?Oe:new rt(Oe.prev,new Ze(ue,Oe.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function rt(ue,Oe,qe){this.prev=ue,this.vars=Oe,this.block=qe}function Ze(ue,Oe){this.name=ue,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function wt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}wt.lex=!0;function nt(ue,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),ue,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var ue=he.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}ut.lex=!0;function mt(ue){function Oe(qe){return qe==ue?se():ue==";"||qe=="}"||qe==")"||qe=="]"?fe():se(Oe)}return Oe}function xt(ue,Oe){return ue=="var"?se(nt("vardef",Oe),Si,mt(";"),ut):ue=="keyword a"?se(nt("form"),Et,xt,ut):ue=="keyword b"?se(nt("form"),xt,ut):ue=="keyword d"?he.stream.match(/^\s*$/,!1)?se():se(nt("stat"),jt,mt(";"),ut):ue=="debugger"?se(mt(";")):ue=="{"?se(nt("}"),ht,N,ut,wt):ue==";"?se():ue=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),se(nt("form"),Et,xt,ut,$r)):ue=="function"?se(gn):ue=="for"?se(nt("form"),ht,Ai,xt,wt,ut):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",se(nt("form",ue=="class"?ue:Oe),Ci,ut)):ue=="variable"?D&&Oe=="declare"?(he.marked="keyword",se(xt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?se(fa):Oe=="type"?se(Un,mt("operator"),Ee,mt(";")):se(nt("form"),Gr,mt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",se(nt("form"),Mt,xt,ut)):D&&Oe=="abstract"?(he.marked="keyword",se(xt)):se(nt("stat"),Ke):ue=="switch"?se(nt("form"),Et,mt("{"),nt("}","switch"),ht,N,ut,ut,wt):ue=="case"?se(Mt,mt(":")):ue=="default"?se(mt(":")):ue=="catch"?se(nt("form"),ft,pt,xt,ut,wt):ue=="export"?se(nt("stat"),fr,ut):ue=="import"?se(nt("stat"),ai,ut):ue=="async"?se(xt):Oe=="@"?se(Mt,xt):fe(nt("stat"),Mt,mt(";"),ut)}function pt(ue){if(ue=="(")return se(yn,mt(")"))}function Mt(ue,Oe){return Ht(ue,Oe,!1)}function kt(ue,Oe){return Ht(ue,Oe,!0)}function Et(ue){return ue!="("?fe():se(nt(")"),jt,mt(")"),ut)}function Ht(ue,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(ue=="(")return se(ft,nt(")"),O(yn,")"),ut,mt("=>"),st,wt);if(ue=="variable")return fe(ft,Gr,mt("=>"),st,wt)}var lt=qe?St:Vt;return ee.hasOwnProperty(ue)?se(lt):ue=="function"?se(gn,lt):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",se(nt("form"),Jn,ut)):ue=="keyword c"||ue=="async"?se(qe?kt:Mt):ue=="("?se(nt(")"),jt,mt(")"),ut,lt):ue=="operator"||ue=="spread"?se(qe?kt:Mt):ue=="["?se(nt("]"),Qn,ut,lt):ue=="{"?le(Re,"}",null,lt):ue=="quasi"?fe(Dt,lt):ue=="new"?se(Se(qe)):se()}function jt(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Mt)}function Vt(ue,Oe){return ue==","?se(jt):St(ue,Oe,!1)}function St(ue,Oe,qe){var st=qe==!1?Vt:St,lt=qe==!1?Mt:kt;if(ue=="=>")return se(ft,qe?$:z,wt);if(ue=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?se(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?se(nt(">"),O(Ee,">"),ut,st):Oe=="?"?se(Mt,mt(":"),lt):se(lt);if(ue=="quasi")return fe(Dt,st);if(ue!=";"){if(ue=="(")return le(kt,")","call",st);if(ue==".")return se(P,st);if(ue=="[")return se(nt("]"),jt,mt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",se(Ee,st);if(ue=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),se(lt)}}function Dt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?se(Dt):se(jt,ve)}function ve(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,se(Dt)}function z(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:Mt)}function $(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:kt)}function Se(ue){return function(Oe){return Oe=="."?se(ue?Ge:Ie):Oe=="variable"&&D?se(hn,ue?St:Vt):fe(ue?kt:Mt)}}function Ie(ue,Oe){if(Oe=="target")return he.marked="keyword",se(Vt)}function Ge(ue,Oe){if(Oe=="target")return he.marked="keyword",se(St)}function Ke(ue){return ue==":"?se(ut,xt):fe(Vt,mt(";"),ut)}function P(ue){if(ue=="variable")return he.marked="property",se()}function Re(ue,Oe){if(ue=="async")return he.marked="property",se(Re);if(ue=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return se(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),se(T)}else{if(ue=="number"||ue=="string")return he.marked=S?"property":he.style+" property",se(T);if(ue=="jsonld-keyword")return se(T);if(D&&Pe(Oe))return he.marked="keyword",se(Re);if(ue=="[")return se(Mt,re,mt("]"),T);if(ue=="spread")return se(kt,T);if(Oe=="*")return he.marked="keyword",se(Re);if(ue==":")return fe(T)}}function K(ue){return ue!="variable"?fe(T):(he.marked="property",se(gn))}function T(ue){if(ue==":")return se(kt);if(ue=="(")return fe(gn)}function O(ue,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),se(function(Or,Tr){return Or==Oe||Tr==Oe?fe():fe(ue)},st)}return lt==Oe||Kt==Oe?se():qe&&qe.indexOf(";")>-1?fe(ue):se(mt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?se():fe(ue,st)}}function le(ue,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return se(nt(Oe,qe),O(ue,Oe),ut)}function N(ue){return ue=="}"?se():fe(xt,N)}function re(ue,Oe){if(D){if(ue==":")return se(Ee);if(Oe=="?")return se(re)}}function de(ue,Oe){if(D&&(ue==":"||Oe=="in"))return se(Ee)}function ae(ue){if(D&&ue==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?se(Mt,pe,Ee):se(Ee)}function pe(ue,Oe){if(Oe=="is")return he.marked="keyword",se()}function Ee(ue,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",se(Oe=="typeof"?kt:Ee);if(ue=="variable"||Oe=="void")return he.marked="type",se(Pt);if(Oe=="|"||Oe=="&")return se(Ee);if(ue=="string"||ue=="number"||ue=="atom")return se(Pt);if(ue=="[")return se(nt("]"),O(Ee,"]",","),ut,Pt);if(ue=="{")return se(nt("}"),je,ut,Pt);if(ue=="(")return se(O(Bt,")"),Ue,Pt);if(ue=="<")return se(O(Ee,">"),Ee);if(ue=="quasi")return fe(vt,Pt)}function Ue(ue){if(ue=="=>")return se(Ee)}function je(ue){return ue.match(/[\}\)\]]/)?se():ue==","||ue==";"?se(je):fe(Qe,je)}function Qe(ue,Oe){if(ue=="variable"||he.style=="keyword")return he.marked="property",se(Qe);if(Oe=="?"||ue=="number"||ue=="string")return se(Qe);if(ue==":")return se(Ee);if(ue=="[")return se(mt("variable"),de,mt("]"),Qe);if(ue=="(")return fe(Bn,Qe);if(!ue.match(/[;\}\)\],]/))return se()}function vt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?se(vt):se(Ee,At)}function At(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,se(vt)}function Bt(ue,Oe){return ue=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?se(Bt):ue==":"?se(Ee):ue=="spread"?se(Bt):fe(Ee)}function Pt(ue,Oe){if(Oe=="<")return se(nt(">"),O(Ee,">"),ut,Pt);if(Oe=="|"||ue=="."||Oe=="&")return se(Ee);if(ue=="[")return se(Ee,mt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",se(Ee);if(Oe=="?")return se(Ee,mt(":"),Ee)}function hn(ue,Oe){if(Oe=="<")return se(nt(">"),O(Ee,">"),ut,Pt)}function Nr(){return fe(Ee,Cr)}function Cr(ue,Oe){if(Oe=="=")return se(Ee)}function Si(ue,Oe){return Oe=="enum"?(he.marked="keyword",se(fa)):fe(Gr,re,vn,Tn)}function Gr(ue,Oe){if(D&&Pe(Oe))return he.marked="keyword",se(Gr);if(ue=="variable")return Le(Oe),se();if(ue=="spread")return se(Gr);if(ue=="[")return le(Nn,"]");if(ue=="{")return le(Vi,"}")}function Vi(ue,Oe){return ue=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),se(vn)):(ue=="variable"&&(he.marked="property"),ue=="spread"?se(Gr):ue=="}"?fe():ue=="["?se(Mt,mt("]"),mt(":"),Vi):se(mt(":"),Gr,vn))}function Nn(){return fe(Gr,vn)}function vn(ue,Oe){if(Oe=="=")return se(kt)}function Tn(ue){if(ue==",")return se(Si)}function $r(ue,Oe){if(ue=="keyword b"&&Oe=="else")return se(nt("form","else"),xt,ut)}function Ai(ue,Oe){if(Oe=="await")return se(Ai);if(ue=="(")return se(nt(")"),Ei,ut)}function Ei(ue){return ue=="var"?se(Si,en):ue=="variable"?se(en):fe(en)}function en(ue,Oe){return ue==")"?se():ue==";"?se(en):Oe=="in"||Oe=="of"?(he.marked="keyword",se(Mt,en)):fe(Mt,en)}function gn(ue,Oe){if(Oe=="*")return he.marked="keyword",se(gn);if(ue=="variable")return Le(Oe),se(gn);if(ue=="(")return se(ft,nt(")"),O(yn,")"),ut,ae,xt,wt);if(D&&Oe=="<")return se(nt(">"),O(Nr,">"),ut,gn)}function Bn(ue,Oe){if(Oe=="*")return he.marked="keyword",se(Bn);if(ue=="variable")return Le(Oe),se(Bn);if(ue=="(")return se(ft,nt(")"),O(yn,")"),ut,ae,wt);if(D&&Oe=="<")return se(nt(">"),O(Nr,">"),ut,Bn)}function Un(ue,Oe){if(ue=="keyword"||ue=="variable")return he.marked="type",se(Un);if(Oe=="<")return se(nt(">"),O(Nr,">"),ut)}function yn(ue,Oe){return Oe=="@"&&se(Mt,yn),ue=="spread"?se(yn):D&&Pe(Oe)?(he.marked="keyword",se(yn)):D&&ue=="this"?se(re,vn):fe(Gr,re,vn)}function Jn(ue,Oe){return ue=="variable"?Ci(ue,Oe):Br(ue,Oe)}function Ci(ue,Oe){if(ue=="variable")return Le(Oe),se(Br)}function Br(ue,Oe){if(Oe=="<")return se(nt(">"),O(Nr,">"),ut,Br);if(Oe=="extends"||Oe=="implements"||D&&ue==",")return Oe=="implements"&&(he.marked="keyword"),se(D?Ee:Mt,Br);if(ue=="{")return se(nt("}"),Kr,ut)}function Kr(ue,Oe){if(ue=="async"||ue=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",se(Kr);if(ue=="variable"||he.style=="keyword")return he.marked="property",se(Xn,Kr);if(ue=="number"||ue=="string")return se(Xn,Kr);if(ue=="[")return se(Mt,re,mt("]"),Xn,Kr);if(Oe=="*")return he.marked="keyword",se(Kr);if(D&&ue=="(")return fe(Bn,Kr);if(ue==";"||ue==",")return se(Kr);if(ue=="}")return se();if(Oe=="@")return se(Mt,Kr)}function Xn(ue,Oe){if(Oe=="!"||Oe=="?")return se(Xn);if(ue==":")return se(Ee,vn);if(Oe=="=")return se(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return fe(st?Bn:gn)}function fr(ue,Oe){return Oe=="*"?(he.marked="keyword",se(jn,mt(";"))):Oe=="default"?(he.marked="keyword",se(Mt,mt(";"))):ue=="{"?se(O(Ot,"}"),jn,mt(";")):fe(xt)}function Ot(ue,Oe){if(Oe=="as")return he.marked="keyword",se(mt("variable"));if(ue=="variable")return fe(kt,Ot)}function ai(ue){return ue=="string"?se():ue=="("?fe(Mt):ue=="."?fe(Vt):fe(Oi,En,jn)}function Oi(ue,Oe){return ue=="{"?le(Oi,"}"):(ue=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),se(Zt))}function En(ue){if(ue==",")return se(Oi,En)}function Zt(ue,Oe){if(Oe=="as")return he.marked="keyword",se(Oi)}function jn(ue,Oe){if(Oe=="from")return he.marked="keyword",se(Mt)}function Qn(ue){return ue=="]"?se():fe(O(kt,"]"))}function fa(){return fe(nt("form"),Gr,mt("{"),nt("}"),O(at,"}"),ut,ut)}function at(){return fe(Gr,vn)}function Lt(ue,Oe){return ue.lastType=="operator"||ue.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function oi(ue,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(qe||0)))}return{startState:function(ue){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((ue||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(ue,Oe){if(ue.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=ue.indentation(),ce(ue,Oe)),Oe.tokenize!=_&&ue.eatSpace())return null;var qe=Oe.tokenize(ue,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,we(Oe,qe,X,R,ue))},indent:function(ue,Oe){if(ue.tokenize==_||ue.tokenize==Q)return c.Pass;if(ue.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=ue.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=ue.cc.length-1;Kt>=0;--Kt){var Xt=ue.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=$r&&Xt!=wt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=ue.cc[ue.cc.length-1])&&(lt==Vt||lt==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Or=st.type,Tr=qe==Or;return Or=="vardef"?st.indented+(ue.lastType=="operator"||ue.lastType==","?st.info.length+1:0):Or=="form"&&qe=="{"?st.indented:Or=="form"?st.indented+d:Or=="stat"?st.indented+(Lt(ue,Oe)?b||d:0):st.info=="switch"&&!Tr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Tr?0:1):st.indented+(Tr?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){we(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 Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),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(),ot="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=ot,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=ot.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=k),f.selectionStart!=null)){(!b||b&&S<9)&&Ne();var tt=0,ot=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?jr(u,$o)(u):tt++<10?l.detectingSelectAll=setTimeout(ot,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ot,200)}}if(b&&S>=9&&Ne(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},wr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},wr.prototype.setUneditable=function(){},wr.prototype.needsContentAttribute=!1;function Bc(e,n){if(n=n?Ze(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=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 m=e.form;f=m.submit;try{var k=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=k}}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&&(de(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=de,e.on=N,e.wheelEventPixels=nr,e.Doc=un,e.splitLines=Nn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=ae,e.Line=zi,e.changeEnd=Li,e.scrollbarModel=mn,e.Pos=at,e.cmpPos=Lt,e.modes=Ei,e.mimeModes=en,e.resolveMode=Un,e.getMode=yn,e.modeExtensions=Jn,e.extendMode=Ci,e.copyState=Br,e.startState=Xn,e.innerMode=Kr,e.commands=io,e.keyMap=ti,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=hi,e.normalizeKeyMap=Id,e.StringStream=fr,e.SharedTextMarker=ba,e.TextMarker=ei,e.LineWidget=eo,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=oe,e.rmClass=ee,e.keyNames=bn}tf(hr),Dc(hr);var Uc="iter insert remove copy getEditor constructor".split(" ");for(var ns in un.prototype)un.prototype.hasOwnProperty(ns)&&ht(Uc,ns)<0&&(hr.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[ns]));return Ve(un),hr.inputStyles={textarea:wr,contenteditable:Wt},hr.defineMode=function(e){!hr.defaults.mode&&e!="null"&&(hr.defaults.mode=e),gn.apply(this,arguments)},hr.defineMIME=Bn,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){un.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(Or){return{type:Or,style:"keyword"}}var Oe=ue("keyword a"),qe=ue("keyword b"),st=ue("keyword c"),lt=ue("keyword d"),Kt=ue("operator"),Xt={type:"atom",style:"atom"};return{if:ue("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:ue("new"),delete:st,void:st,throw:st,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:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:st,export:ue("export"),import:ue("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(ue){for(var Oe=!1,qe,st=!1;(qe=ue.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,R;function C(ue,Oe,qe){return X=ue,R=qe,Oe}function V(ue,Oe){var qe=ue.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(ue,Oe);if(qe=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&ue.eat(">"))return C("=>","operator");if(qe=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return ue.eat("*")?(Oe.tokenize=_,_(ue,Oe)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):oi(ue,Oe,1)?(M(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(qe=="`")return Oe.tokenize=Q,Q(ue,Oe);if(qe=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(qe=="#"&&ue.eatWhile(B))return C("variable","property");if(qe=="<"&&ue.match("!--")||qe=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(ue.eat("=")?(qe=="!"||qe=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(qe)&&(ue.eat(qe),qe==">"&&ue.eat(qe))),qe=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(qe)){ue.eatWhile(B);var st=ue.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(ue){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==ue&&!st);)st=!st&&lt=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(ue,Oe){for(var qe=!1,st;st=ue.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(ue,Oe){for(var qe=!1,st;(st=ue.next())!=null;){if(!qe&&(st=="`"||st=="$"&&ue.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",ue.current())}var Y="([{}])";function ce(ue,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=ue.string.indexOf("=>",ue.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Or=ue.string.charAt(Xt),Tr=Y.indexOf(Or);if(Tr>=0&&Tr<3){if(!lt){++Xt;break}if(--lt==0){Or=="("&&(Kt=!0);break}}else if(Tr>=3&&Tr<6)++lt;else if(B.test(Or))Kt=!0;else if(/["'\/`]/.test(Or))for(;;--Xt){if(Xt==0)return;var _t=ue.string.charAt(Xt-1);if(_t==Or&&ue.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(ue,Oe,qe,st,lt,Kt){this.indented=ue,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function xe(ue,Oe){if(!L)return!1;for(var qe=ue.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=ue.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function we(ue,Oe,qe,st,lt){var Kt=ue.cc;for(he.state=ue,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Mt:xt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&xe(ue,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)he.cc.push(arguments[ue])}function oe(){return fe.apply(null,arguments),!0}function Fe(ue,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==ue)return!0;return!1}function Le(ue){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Me(ue,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(ue,Oe.localVars)){Oe.localVars=new Ze(ue,Oe.localVars);return}}x.globalVars&&!Fe(ue,Oe.globalVars)&&(Oe.globalVars=new Ze(ue,Oe.globalVars))}}function Me(ue,Oe){if(Oe)if(Oe.block){var qe=Me(ue,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(ue,Oe.vars)?Oe:new rt(Oe.prev,new Ze(ue,Oe.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function rt(ue,Oe,qe){this.prev=ue,this.vars=Oe,this.block=qe}function Ze(ue,Oe){this.name=ue,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function wt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}wt.lex=!0;function nt(ue,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),ue,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var ue=he.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}ut.lex=!0;function mt(ue){function Oe(qe){return qe==ue?oe():ue==";"||qe=="}"||qe==")"||qe=="]"?fe():oe(Oe)}return Oe}function xt(ue,Oe){return ue=="var"?oe(nt("vardef",Oe),Si,mt(";"),ut):ue=="keyword a"?oe(nt("form"),Et,xt,ut):ue=="keyword b"?oe(nt("form"),xt,ut):ue=="keyword d"?he.stream.match(/^\s*$/,!1)?oe():oe(nt("stat"),jt,mt(";"),ut):ue=="debugger"?oe(mt(";")):ue=="{"?oe(nt("}"),ht,N,ut,wt):ue==";"?oe():ue=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),oe(nt("form"),Et,xt,ut,$r)):ue=="function"?oe(gn):ue=="for"?oe(nt("form"),ht,Ai,xt,wt,ut):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form",ue=="class"?ue:Oe),Ci,ut)):ue=="variable"?D&&Oe=="declare"?(he.marked="keyword",oe(xt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?oe(fa):Oe=="type"?oe(Un,mt("operator"),Ee,mt(";")):oe(nt("form"),Gr,mt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",oe(nt("form"),Mt,xt,ut)):D&&Oe=="abstract"?(he.marked="keyword",oe(xt)):oe(nt("stat"),Ke):ue=="switch"?oe(nt("form"),Et,mt("{"),nt("}","switch"),ht,N,ut,ut,wt):ue=="case"?oe(Mt,mt(":")):ue=="default"?oe(mt(":")):ue=="catch"?oe(nt("form"),ft,pt,xt,ut,wt):ue=="export"?oe(nt("stat"),fr,ut):ue=="import"?oe(nt("stat"),ai,ut):ue=="async"?oe(xt):Oe=="@"?oe(Mt,xt):fe(nt("stat"),Mt,mt(";"),ut)}function pt(ue){if(ue=="(")return oe(yn,mt(")"))}function Mt(ue,Oe){return Ht(ue,Oe,!1)}function kt(ue,Oe){return Ht(ue,Oe,!0)}function Et(ue){return ue!="("?fe():oe(nt(")"),jt,mt(")"),ut)}function Ht(ue,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(ue=="(")return oe(ft,nt(")"),O(yn,")"),ut,mt("=>"),st,wt);if(ue=="variable")return fe(ft,Gr,mt("=>"),st,wt)}var lt=qe?St:Vt;return ee.hasOwnProperty(ue)?oe(lt):ue=="function"?oe(gn,lt):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form"),Jn,ut)):ue=="keyword c"||ue=="async"?oe(qe?kt:Mt):ue=="("?oe(nt(")"),jt,mt(")"),ut,lt):ue=="operator"||ue=="spread"?oe(qe?kt:Mt):ue=="["?oe(nt("]"),Qn,ut,lt):ue=="{"?le(Re,"}",null,lt):ue=="quasi"?fe(Dt,lt):ue=="new"?oe(Se(qe)):oe()}function jt(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Mt)}function Vt(ue,Oe){return ue==","?oe(jt):St(ue,Oe,!1)}function St(ue,Oe,qe){var st=qe==!1?Vt:St,lt=qe==!1?Mt:kt;if(ue=="=>")return oe(ft,qe?$:z,wt);if(ue=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?oe(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(nt(">"),O(Ee,">"),ut,st):Oe=="?"?oe(Mt,mt(":"),lt):oe(lt);if(ue=="quasi")return fe(Dt,st);if(ue!=";"){if(ue=="(")return le(kt,")","call",st);if(ue==".")return oe(P,st);if(ue=="[")return oe(nt("]"),jt,mt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",oe(Ee,st);if(ue=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),oe(lt)}}function Dt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?oe(Dt):oe(jt,ve)}function ve(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,oe(Dt)}function z(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:Mt)}function $(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:kt)}function Se(ue){return function(Oe){return Oe=="."?oe(ue?Ge:Ie):Oe=="variable"&&D?oe(hn,ue?St:Vt):fe(ue?kt:Mt)}}function Ie(ue,Oe){if(Oe=="target")return he.marked="keyword",oe(Vt)}function Ge(ue,Oe){if(Oe=="target")return he.marked="keyword",oe(St)}function Ke(ue){return ue==":"?oe(ut,xt):fe(Vt,mt(";"),ut)}function P(ue){if(ue=="variable")return he.marked="property",oe()}function Re(ue,Oe){if(ue=="async")return he.marked="property",oe(Re);if(ue=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return oe(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),oe(T)}else{if(ue=="number"||ue=="string")return he.marked=S?"property":he.style+" property",oe(T);if(ue=="jsonld-keyword")return oe(T);if(D&&Pe(Oe))return he.marked="keyword",oe(Re);if(ue=="[")return oe(Mt,re,mt("]"),T);if(ue=="spread")return oe(kt,T);if(Oe=="*")return he.marked="keyword",oe(Re);if(ue==":")return fe(T)}}function K(ue){return ue!="variable"?fe(T):(he.marked="property",oe(gn))}function T(ue){if(ue==":")return oe(kt);if(ue=="(")return fe(gn)}function O(ue,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),oe(function(Or,Tr){return Or==Oe||Tr==Oe?fe():fe(ue)},st)}return lt==Oe||Kt==Oe?oe():qe&&qe.indexOf(";")>-1?fe(ue):oe(mt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?oe():fe(ue,st)}}function le(ue,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return oe(nt(Oe,qe),O(ue,Oe),ut)}function N(ue){return ue=="}"?oe():fe(xt,N)}function re(ue,Oe){if(D){if(ue==":")return oe(Ee);if(Oe=="?")return oe(re)}}function de(ue,Oe){if(D&&(ue==":"||Oe=="in"))return oe(Ee)}function ae(ue){if(D&&ue==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?oe(Mt,pe,Ee):oe(Ee)}function pe(ue,Oe){if(Oe=="is")return he.marked="keyword",oe()}function Ee(ue,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",oe(Oe=="typeof"?kt:Ee);if(ue=="variable"||Oe=="void")return he.marked="type",oe(Pt);if(Oe=="|"||Oe=="&")return oe(Ee);if(ue=="string"||ue=="number"||ue=="atom")return oe(Pt);if(ue=="[")return oe(nt("]"),O(Ee,"]",","),ut,Pt);if(ue=="{")return oe(nt("}"),Ve,ut,Pt);if(ue=="(")return oe(O(Bt,")"),je,Pt);if(ue=="<")return oe(O(Ee,">"),Ee);if(ue=="quasi")return fe(vt,Pt)}function je(ue){if(ue=="=>")return oe(Ee)}function Ve(ue){return ue.match(/[\}\)\]]/)?oe():ue==","||ue==";"?oe(Ve):fe(Qe,Ve)}function Qe(ue,Oe){if(ue=="variable"||he.style=="keyword")return he.marked="property",oe(Qe);if(Oe=="?"||ue=="number"||ue=="string")return oe(Qe);if(ue==":")return oe(Ee);if(ue=="[")return oe(mt("variable"),de,mt("]"),Qe);if(ue=="(")return fe(Bn,Qe);if(!ue.match(/[;\}\)\],]/))return oe()}function vt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?oe(vt):oe(Ee,At)}function At(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,oe(vt)}function Bt(ue,Oe){return ue=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?oe(Bt):ue==":"?oe(Ee):ue=="spread"?oe(Bt):fe(Ee)}function Pt(ue,Oe){if(Oe=="<")return oe(nt(">"),O(Ee,">"),ut,Pt);if(Oe=="|"||ue=="."||Oe=="&")return oe(Ee);if(ue=="[")return oe(Ee,mt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",oe(Ee);if(Oe=="?")return oe(Ee,mt(":"),Ee)}function hn(ue,Oe){if(Oe=="<")return oe(nt(">"),O(Ee,">"),ut,Pt)}function Nr(){return fe(Ee,Cr)}function Cr(ue,Oe){if(Oe=="=")return oe(Ee)}function Si(ue,Oe){return Oe=="enum"?(he.marked="keyword",oe(fa)):fe(Gr,re,vn,Tn)}function Gr(ue,Oe){if(D&&Pe(Oe))return he.marked="keyword",oe(Gr);if(ue=="variable")return Le(Oe),oe();if(ue=="spread")return oe(Gr);if(ue=="[")return le(Nn,"]");if(ue=="{")return le(Vi,"}")}function Vi(ue,Oe){return ue=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),oe(vn)):(ue=="variable"&&(he.marked="property"),ue=="spread"?oe(Gr):ue=="}"?fe():ue=="["?oe(Mt,mt("]"),mt(":"),Vi):oe(mt(":"),Gr,vn))}function Nn(){return fe(Gr,vn)}function vn(ue,Oe){if(Oe=="=")return oe(kt)}function Tn(ue){if(ue==",")return oe(Si)}function $r(ue,Oe){if(ue=="keyword b"&&Oe=="else")return oe(nt("form","else"),xt,ut)}function Ai(ue,Oe){if(Oe=="await")return oe(Ai);if(ue=="(")return oe(nt(")"),Ei,ut)}function Ei(ue){return ue=="var"?oe(Si,en):ue=="variable"?oe(en):fe(en)}function en(ue,Oe){return ue==")"?oe():ue==";"?oe(en):Oe=="in"||Oe=="of"?(he.marked="keyword",oe(Mt,en)):fe(Mt,en)}function gn(ue,Oe){if(Oe=="*")return he.marked="keyword",oe(gn);if(ue=="variable")return Le(Oe),oe(gn);if(ue=="(")return oe(ft,nt(")"),O(yn,")"),ut,ae,xt,wt);if(D&&Oe=="<")return oe(nt(">"),O(Nr,">"),ut,gn)}function Bn(ue,Oe){if(Oe=="*")return he.marked="keyword",oe(Bn);if(ue=="variable")return Le(Oe),oe(Bn);if(ue=="(")return oe(ft,nt(")"),O(yn,")"),ut,ae,wt);if(D&&Oe=="<")return oe(nt(">"),O(Nr,">"),ut,Bn)}function Un(ue,Oe){if(ue=="keyword"||ue=="variable")return he.marked="type",oe(Un);if(Oe=="<")return oe(nt(">"),O(Nr,">"),ut)}function yn(ue,Oe){return Oe=="@"&&oe(Mt,yn),ue=="spread"?oe(yn):D&&Pe(Oe)?(he.marked="keyword",oe(yn)):D&&ue=="this"?oe(re,vn):fe(Gr,re,vn)}function Jn(ue,Oe){return ue=="variable"?Ci(ue,Oe):Br(ue,Oe)}function Ci(ue,Oe){if(ue=="variable")return Le(Oe),oe(Br)}function Br(ue,Oe){if(Oe=="<")return oe(nt(">"),O(Nr,">"),ut,Br);if(Oe=="extends"||Oe=="implements"||D&&ue==",")return Oe=="implements"&&(he.marked="keyword"),oe(D?Ee:Mt,Br);if(ue=="{")return oe(nt("}"),Kr,ut)}function Kr(ue,Oe){if(ue=="async"||ue=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",oe(Kr);if(ue=="variable"||he.style=="keyword")return he.marked="property",oe(Xn,Kr);if(ue=="number"||ue=="string")return oe(Xn,Kr);if(ue=="[")return oe(Mt,re,mt("]"),Xn,Kr);if(Oe=="*")return he.marked="keyword",oe(Kr);if(D&&ue=="(")return fe(Bn,Kr);if(ue==";"||ue==",")return oe(Kr);if(ue=="}")return oe();if(Oe=="@")return oe(Mt,Kr)}function Xn(ue,Oe){if(Oe=="!"||Oe=="?")return oe(Xn);if(ue==":")return oe(Ee,vn);if(Oe=="=")return oe(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return fe(st?Bn:gn)}function fr(ue,Oe){return Oe=="*"?(he.marked="keyword",oe(jn,mt(";"))):Oe=="default"?(he.marked="keyword",oe(Mt,mt(";"))):ue=="{"?oe(O(Ot,"}"),jn,mt(";")):fe(xt)}function Ot(ue,Oe){if(Oe=="as")return he.marked="keyword",oe(mt("variable"));if(ue=="variable")return fe(kt,Ot)}function ai(ue){return ue=="string"?oe():ue=="("?fe(Mt):ue=="."?fe(Vt):fe(Oi,En,jn)}function Oi(ue,Oe){return ue=="{"?le(Oi,"}"):(ue=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),oe(Zt))}function En(ue){if(ue==",")return oe(Oi,En)}function Zt(ue,Oe){if(Oe=="as")return he.marked="keyword",oe(Oi)}function jn(ue,Oe){if(Oe=="from")return he.marked="keyword",oe(Mt)}function Qn(ue){return ue=="]"?oe():fe(O(kt,"]"))}function fa(){return fe(nt("form"),Gr,mt("{"),nt("}"),O(at,"}"),ut,ut)}function at(){return fe(Gr,vn)}function Lt(ue,Oe){return ue.lastType=="operator"||ue.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function oi(ue,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(qe||0)))}return{startState:function(ue){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((ue||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(ue,Oe){if(ue.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=ue.indentation(),ce(ue,Oe)),Oe.tokenize!=_&&ue.eatSpace())return null;var qe=Oe.tokenize(ue,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,we(Oe,qe,X,R,ue))},indent:function(ue,Oe){if(ue.tokenize==_||ue.tokenize==Q)return c.Pass;if(ue.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=ue.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=ue.cc.length-1;Kt>=0;--Kt){var Xt=ue.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=$r&&Xt!=wt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=ue.cc[ue.cc.length-1])&&(lt==Vt||lt==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Or=st.type,Tr=qe==Or;return Or=="vardef"?st.indented+(ue.lastType=="operator"||ue.lastType==","?st.info.length+1:0):Or=="form"&&qe=="{"?st.indented:Or=="form"?st.indented+d:Or=="stat"?st.indented+(Lt(ue,Oe)?b||d:0):st.info=="switch"&&!Tr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Tr?0:1):st.indented+(Tr?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){we(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),q=B.decode||a,W=0;W<j.length;W++){var M=j[W],X=M.indexOf("=");if(!(X<0)){var R=M.substr(0,X).trim(),C=M.substr(++X,M.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[R]==null&&(D[R]=S(C,q))}}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 q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var M=B.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(M)}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 X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){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(4808),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,q=arguments.length,W=q>1?arguments[1]:void 0,M=W!==void 0,X=g(B),R=0,C,V,J,_,Q,Y;if(M&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;R++)Y=M?x(_,W,[J.value,R],!0):J.value,S(V,R,Y);else for(C=b(B.length),V=new j(C);C>R;R++)Y=M?W(B[R],R):B[R],S(V,R,Y);return V.length=R,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),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)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,q=L==4,W=L==6,M=L==7,X=L==5||W;return function(R,C,V,J){for(var _=x(R),Q=v(_),Y=c(C,V,3),ce=d(Q.length),ee=0,ie=J||b,xe=D?ie(R,ce):B||M?ie(R,0):void 0,we,he;ce>ee;ee++)if((X||ee in Q)&&(we=Q[ee],he=Y(we,ee,_),L))if(D)xe[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return we;case 6:return ee;case 2:S.call(xe,we)}else switch(L){case 4:return!1;case 7:S.call(xe,we)}return W?-1:j||q?q:xe}};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,q=g.find,W=g.findIndex,M=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,xe){b(ie,Y,J),B(ie,{type:J,id:M++,frozen:void 0}),xe!=null&&S(xe,ie[Q],{that:ie,AS_ENTRIES:_})}),ce=j(J),ee=function(ie,xe,we){var he=ce(ie),fe=v(x(xe),!0);return fe===!0?X(he).set(xe,we):fe[he.id]=we,ie};return c(Y.prototype,{delete:function(ie){var xe=ce(this);if(!d(ie))return!1;var we=v(ie);return we===!0?X(xe).delete(ie):we&&L(we,xe.id)&&delete we[xe.id]},has:function(xe){var we=ce(this);if(!d(xe))return!1;var he=v(xe);return he===!0?X(we).has(xe):he&&L(he,we.id)}}),c(Y.prototype,_?{get:function(xe){var we=ce(this);if(d(xe)){var he=v(xe);return he===!0?X(we).get(xe):he?he[we.id]:void 0}},set:function(xe,we){return ee(this,xe,we)}}:{add:function(xe){return ee(this,xe,!0)}}),Y}}},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,q=a(55746),W=a(45402),M=W.set,X=W.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,_=R.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[R],ce=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||ce.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{ie=C(function(we,he){M(g(we,ie,R),{type:R,collection:new Y}),he!=null&&S(he,we[Q],{that:we,AS_ENTRIES:J})});var xe=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(we){var he=we=="add"||we=="set";we in ce&&!(_&&we=="clear")&&b(ie.prototype,we,function(fe,se){var Fe=xe(this).collection;if(!he&&_&&!L(fe))return we=="get"?void 0:!1;var Le=Fe[we](fe===0?0:fe,se);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return xe(this).collection.size}})}return D(ie,R,!1,!0),ee[R]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,R,J),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(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),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,M=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,ce,ee,ie){v(Q,_,Y);var xe=function(Ze){if(Ze===ce&&Fe)return Fe;if(!W&&Ze in fe)return fe[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case R:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},we=_+" Iterator",he=!1,fe=J.prototype,se=fe[M]||fe["@@iterator"]||ce&&fe[ce],Fe=!W&&se||xe(ce),Le=_=="Array"&&fe.entries||se,Me,Pe,rt;if(Le&&(Me=x(Le.call(new J)),q!==Object.prototype&&Me.next&&(!D&&x(Me)!==q&&(d?d(Me,q):typeof Me[M]!="function"&&S(Me,M,V)),b(Me,we,!0,!0),D&&(B[we]=V))),ce==R&&se&&se.name!==R&&(he=!0,Fe=function(){return se.call(this)}),(!D||ie)&&fe[M]!==Fe&&S(fe,M,Fe),B[_]=Fe,ce)if(Pe={values:xe(R),keys:ee?Fe:xe(X),entries:xe(C)},ie)for(rt in Pe)(W||he||!(rt in fe))&&g(fe,rt,Pe[rt]);else c({target:_,proto:!0,forced:W||he},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,q,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,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,M=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,R=q?d:d[j]||(d[j]={}),C=R.prototype,V,J,_,Q,Y,ce,ee,ie,xe;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=R[Q],J&&(D.noTargetGet?(xe=v(X,Q),ee=xe&&xe.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):M&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ie,"sham",!0),R[Q]=ie,M&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},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 q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};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(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},q=function(X,R){if(!x(X,g)){if(!D(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},W=function(X){return S&&M.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},M=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,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,q,W,M=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,Y){if(V.call(R,Q))throw new TypeError(D);return Y.facade=Q,J.call(R,Q,Y),Y},q=function(Q){return C.call(R,Q)||{}},W=function(Q){return V.call(R,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:M,getterFor:X}},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,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),M=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+M),R,C,V,J,_,Q,Y,ce=function(ie){return R&&S(R),new g(!0,ie)},ee=function(ie){return q?(c(ie),M?X(ie[0],ie[1],ce):X(ie[0],ie[1])):M?X(ie,ce):X(ie)};if(W)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}R=C.call(L)}for(Q=R.next;!(Y=Q.call(R)).done;){try{_=ee(Y.value)}catch(ie){throw S(R),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}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,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var M={};return B[g].call(M)!==M});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"),q=j&&j.value,W,M,X,R,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();M;){Y=M.fn,M=M.next;try{Y()}catch(ce){throw M?R():X=void 0,ce}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,R=function(){_.call(J,W)}):S?R=function(){D.nextTick(W)}:R=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),M||(M=Y,R()),X=Y}},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={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(M){j[M]=M}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),M=arguments.length,X=1,R=d.f,C=b.f;M>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);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",q=g("IE_PROTO"),W=function(){},M=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},R=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(M("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},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(q){}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,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};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 q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"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,q=c.MessageChannel,W=c.Dispatch,M=0,X={},R="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var xe=[],we=1;arguments.length>we;)xe.push(arguments[we++]);return X[++M]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,xe)},C(M),M},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):R in b("script")?C=function(ee){d.appendChild(b("script"))[R]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),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 q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};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),q=B("isConcatSpreadable"),W=9007199254740991,M="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),R=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),ce=0,ee,ie,xe,we,he;for(ee=-1,xe=arguments.length;ee<xe;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(we=S(he.length),ce+we>W)throw TypeError(M);for(ie=0;ie<we;ie++,ce++)ie in he&&g(Y,ce,he[ie])}else{if(ce>=W)throw TypeError(M);g(Y,ce++,he)}return Y.length=ce,Y}})},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,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],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"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),_=d(R===void 0?V:R,V),Q,Y,ce;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),ce=0;J<_;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},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,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,ce,ee,ie,xe;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(R),0),V-J)),V+Q-Y>q)throw TypeError(W);for(ce=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(ce,ee,C[ie]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,xe=ee+Q,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,xe=ee+Q-1,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},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,q){var W=q.charAt(j-1),M=q.charAt(j+1);return S.test(B)&&!g.test(M)||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,q,W){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},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),q={},W=0,M,X;j.length>W;)X=B(D,M=j[W++]),X!==void 0&&S(q,M,X);return q}})},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,q=d(function(){var W=v(L.resolve),M=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;M.push(void 0),R++,W.call(L,C).then(function(_){J||(J=!0,M[V]={status:"fulfilled",value:_},--R||B(M))},function(_){J||(J=!0,M[V]={status:"rejected",reason:_},--R||B(M))})}),--R||B(M)});return q.error&&j(q.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),q=j.resolve,W=j.reject,M=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;R.push(void 0),V++,X.call(B,_).then(function(ce){Y||J||(J=!0,q(ce))},function(ce){Y||J||(Y=!0,R[Q]=ce,--V||W(new(x("AggregateError"))(R,g)))})}),--V||W(new(x("AggregateError"))(R,g))});return M.error&&W(M.value),j.promise}})},4808:(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 q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(M){return g(q,j()).then(function(){return M})}:j,W?function(M){return g(q,j()).then(function(){throw M})}: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),q=a(33916),W=a(5743),M=a(81302),X=a(93091),R=a(21385),C=a(70487),V=a(42941).set,J=a(66132),_=a(56584),Q=a(34845),Y=a(69520),ce=a(40002),ee=a(45402),ie=a(37252),xe=a(99813),we=a(23321),he=a(6049),fe=a(53385),se=xe("species"),Fe="Promise",Le=ee.get,Me=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,wt=x.process,nt=Y.f,ut=nt,mt=!!(ht&&ht.createEvent&&x.dispatchEvent),xt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Mt="rejectionhandled",kt=0,Et=1,Ht=2,jt=1,Vt=2,St=!1,Dt,ve,z,$,Se=ie(Fe,function(){var re=M(Ze)!==String(Ze);if(!re&&fe===66||v&&!Xe.finally)return!0;if(fe>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ee){Ee(1)}),ae=function(Ee){Ee(function(){},function(){})},pe=de.constructor={};return pe[se]=ae,St=de.then(function(){})instanceof ae,St?!re&&we&&!xt:!0}),Ie=Se||!R(function(re){Ze.all(re).catch(function(){})}),Ge=function(re){var de;return j(re)&&typeof(de=re.then)=="function"?de:!1},Ke=function(re,de){if(!re.notified){re.notified=!0;var ae=re.reactions;J(function(){for(var pe=re.value,Ee=re.state==Et,Ue=0;ae.length>Ue;){var je=ae[Ue++],Qe=Ee?je.ok:je.fail,vt=je.resolve,At=je.reject,Bt=je.domain,Pt,hn,Nr;try{Qe?(Ee||(re.rejection===Vt&&T(re),re.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Nr=!0)),Pt===je.promise?At(ft("Promise-chain cycle")):(hn=Ge(Pt))?hn.call(Pt,vt,At):vt(Pt)):At(pe)}catch(Cr){Bt&&!Nr&&Bt.exit(),At(Cr)}}re.reactions=[],re.notified=!1,de&&!re.rejection&&Re(re)})}},P=function(re,de,ae){var pe,Ee;mt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=ae,pe.initEvent(re,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ae},!xt&&(Ee=x["on"+re])?Ee(pe):re===pt&&Q("Unhandled promise rejection",ae)},Re=function(re){V.call(x,function(){var de=re.facade,ae=re.value,pe=K(re),Ee;if(pe&&(Ee=ce(function(){he?wt.emit("unhandledRejection",ae,de):P(pt,de,ae)}),re.rejection=he||K(re)?Vt:jt,Ee.error))throw Ee.value})},K=function(re){return re.rejection!==jt&&!re.parent},T=function(re){V.call(x,function(){var de=re.facade;he?wt.emit("rejectionHandled",de):P(Mt,de,re.value)})},O=function(re,de,ae){return function(pe){re(de,pe,ae)}},le=function(re,de,ae){re.done||(re.done=!0,ae&&(re=ae),re.value=de,re.state=Ht,Ke(re,!0))},N=function(re,de,ae){if(!re.done){re.done=!0,ae&&(re=ae);try{if(re.facade===de)throw ft("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ee={done:!1};try{pe.call(de,O(N,Ee,re),O(le,Ee,re))}catch(Ue){le(Ee,Ue,re)}}):(re.value=de,re.state=Et,Ke(re,!1))}catch(Ee){le({done:!1},Ee,re)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var ae=Le(this);try{de(O(N,ae),O(le,ae))}catch(pe){le(ae,pe)}},Xe=Ze.prototype,Dt=function(de){Me(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,ae){var pe=Pe(this),Ee=nt(C(this,Ze));return Ee.ok=typeof de=="function"?de:!0,Ee.fail=typeof ae=="function"&&ae,Ee.domain=he?wt.domain:void 0,pe.parent=!0,pe.reactions.push(Ee),pe.state!=kt&&Ke(pe,!1),Ee.promise},catch:function(re){return this.then(void 0,re)}}),ve=function(){var re=new Dt,de=Le(re);this.promise=re,this.resolve=O(N,de),this.reject=O(le,de)},Y.f=nt=function(re){return re===Ze||re===z?new ve(re):ut(re)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,ae){var pe=this;return new Ze(function(Ee,Ue){$.call(pe,Ee,Ue)}).then(de,ae)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(re){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var ae=nt(this);return ae.reject.call(void 0,de),ae.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ae=this,pe=nt(ae),Ee=pe.resolve,Ue=pe.reject,je=ce(function(){var Qe=q(ae.resolve),vt=[],At=0,Bt=1;X(de,function(Pt){var hn=At++,Nr=!1;vt.push(void 0),Bt++,Qe.call(ae,Pt).then(function(Cr){Nr||(Nr=!0,vt[hn]=Cr,--Bt||Ee(vt))},Ue)}),--Bt||Ee(vt)});return je.error&&Ue(je.value),pe.promise},race:function(de){var ae=this,pe=nt(ae),Ee=pe.reject,Ue=ce(function(){var je=q(ae.resolve);X(de,function(Qe){je.call(ae,Qe).then(pe.resolve,Ee)})});return Ue.error&&Ee(Ue.value),pe.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(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(M,X){x(M),d(X);var R=arguments.length<3?M:x(arguments[2]);if(j&&!B)return D(M,X,R);if(M==R){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(M,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},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,q;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(q=S(L)))return g(q,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),q=a(96059),W=a(89678),M=a(74529),X=a(46935),R=a(31887),C=a(29290),V=a(14771),J=a(10946),_=a(684),Q=a(87857),Y=a(49677),ce=a(65988),ee=a(36760),ie=a(32029),xe=a(99754),we=a(68726),he=a(44262),fe=a(27748),se=a(99418),Fe=a(99813),Le=a(11477),Me=a(66349),Pe=a(90904),rt=a(45402),Ze=a(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",wt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),mt=Object[ht],xt=v.Symbol,pt=x("JSON","stringify"),Mt=Y.f,kt=ce.f,Et=_.f,Ht=ee.f,jt=we("symbols"),Vt=we("op-symbols"),St=we("string-to-symbol-registry"),Dt=we("symbol-to-string-registry"),ve=we("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(re,de,ae){var pe=Mt(mt,de);pe&&delete mt[de],kt(re,de,ae),pe&&re!==mt&&kt(mt,de,pe)}:kt,Ie=function(re,de){var ae=jt[re]=C(xt[ht]);return nt(ae,{type:ft,tag:re,description:de}),b||(ae.description=de),ae},Ge=g?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof xt},Ke=function(de,ae,pe){de===mt&&Ke(Vt,ae,pe),q(de);var Ee=X(ae,!0);return q(pe),D(jt,Ee)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ee]&&(de[Xe][Ee]=!1),pe=C(pe,{enumerable:R(0,!1)})):(D(de,Xe)||kt(de,Xe,R(1,{})),de[Xe][Ee]=!0),Se(de,Ee,pe)):kt(de,Ee,pe)},P=function(de,ae){q(de);var pe=M(ae),Ee=V(pe).concat(le(pe));return Ze(Ee,function(Ue){(!b||K.call(pe,Ue))&&Ke(de,Ue,pe[Ue])}),de},Re=function(de,ae){return ae===void 0?C(de):P(C(de),ae)},K=function(de){var ae=X(de,!0),pe=Ht.call(this,ae);return this===mt&&D(jt,ae)&&!D(Vt,ae)?!1:pe||!D(this,ae)||!D(jt,ae)||D(this,Xe)&&this[Xe][ae]?pe:!0},T=function(de,ae){var pe=M(de),Ee=X(ae,!0);if(!(pe===mt&&D(jt,Ee)&&!D(Vt,Ee))){var Ue=Mt(pe,Ee);return Ue&&D(jt,Ee)&&!(D(pe,Xe)&&pe[Xe][Ee])&&(Ue.enumerable=!0),Ue}},O=function(de){var ae=Et(M(de)),pe=[];return Ze(ae,function(Ee){!D(jt,Ee)&&!D(fe,Ee)&&pe.push(Ee)}),pe},le=function(de){var ae=de===mt,pe=Et(ae?Vt:M(de)),Ee=[];return Ze(pe,function(Ue){D(jt,Ue)&&(!ae||D(mt,Ue))&&Ee.push(jt[Ue])}),Ee};if(S||(xt=function(){if(this instanceof xt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=se(de),pe=function(Ee){this===mt&&pe.call(Vt,Ee),D(this,Xe)&&D(this[Xe],ae)&&(this[Xe][ae]=!1),Se(this,ae,R(1,Ee))};return b&&$&&Se(mt,ae,{configurable:!0,set:pe}),Ie(ae,de)},xe(xt[ht],"toString",function(){return ut(this).tag}),xe(xt,"withoutSetter",function(re){return Ie(se(re),re)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=_.f=O,Q.f=le,Le.f=function(re){return Ie(Fe(re),re)},b&&(kt(xt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||xe(mt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:xt}),Ze(V(ve),function(re){Me(re)}),c({target:ft,stat:!0,forced:!S},{for:function(re){var de=String(re);if(D(St,de))return St[de];var ae=xt(de);return St[de]=ae,Dt[ae]=de,ae},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Re,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(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var re=xt();return pt([re])!="[null]"||pt({a:re})!="{}"||pt(Object(re))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ae,pe){for(var Ee=[de],Ue=1,je;arguments.length>Ue;)Ee.push(arguments[Ue++]);if(je=ae,!(!j(ae)&&de===void 0||Ge(de)))return B(ae)||(ae=function(Qe,vt){if(typeof je=="function"&&(vt=je.call(this,Qe,vt)),!Ge(vt))return vt}),Ee[1]=ae,pt.apply(null,Ee)}})}xt[ht][wt]||ie(xt[ht],wt,xt[ht].valueOf),Pe(xt,ft),fe[Xe]=!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,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var M=W.prototype,X=M.delete,R=M.has,C=M.get,V=M.set;v(M,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)||Q.frozen.has(_)}return R.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),R.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);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(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}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(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var xe=ee.shift();return{done:xe===void 0,value:xe}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,xe){this.append(xe,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var xe=this.map[ee];this.map[ee]=xe?xe+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var xe in this.map)this.map.hasOwnProperty(xe)&&ee.call(ie,this.map[xe],xe,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,xe){ee.push(xe)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,xe){ee.push([xe,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,xe){ee.onload=function(){ie(ee.result)},ee.onerror=function(){xe(ee.error)}})}function j(ee){var ie=new FileReader,xe=B(ie);return ie.readAsArrayBuffer(ee),xe}function q(ee){var ie=new FileReader,xe=B(ie);return ie.readAsText(ee),xe}function W(ee){for(var ie=new Uint8Array(ee),xe=new Array(ie.length),we=0;we<ie.length;we++)xe[we]=String.fromCharCode(ie[we]);return xe.join("")}function M(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=M(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=M(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="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(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;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 ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(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(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return R.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var xe=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!xe&&ee._bodyInit!=null&&(xe=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);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")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(xe){if(xe){var we=xe.split("="),he=we.shift().replace(/\+/g," "),fe=we.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(fe))}}),ie}function _(ee){var ie=new L,xe=ee.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(we){var he=we.split(":"),fe=he.shift().trim();if(fe){var se=he.join(":").trim();ie.append(fe,se)}}),ie}X.call(V.prototype);function Q(ee,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(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(ee){a.DOMException=function(ie,xe){this.message=ie,this.name=xe;var we=Error(ie);this.stack=we.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ce(ee,ie){return new Promise(function(xe,we){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return we(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:_(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in fe?fe.response:fe.responseText;xe(new Q(Le,Fe))},fe.onerror=function(){we(new TypeError("Network request failed"))},fe.ontimeout=function(){we(new TypeError("Network request failed"))},fe.onabort=function(){we(new a.DOMException("Aborted","AbortError"))},fe.open(he.method,he.url,!0),he.credentials==="include"?fe.withCredentials=!0:he.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),he.headers.forEach(function(Fe,Le){fe.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",se),fe.onreadystatechange=function(){fe.readyState===4&&he.signal.removeEventListener("abort",se)}),fe.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,h.fetch||(h.fetch=ce,h.Headers=L,h.Request=V,h.Response=Q),a.Headers=L,a.Request=V,a.Response=Q,a.fetch=ce,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 q(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)}),q(fe)},W.prototype.values=function(){var fe=[];return this.forEach(function(se){fe.push(se)}),q(fe)},W.prototype.entries=function(){var fe=[];return this.forEach(function(se,Fe){fe.push([Fe,se])}),q(fe)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function M(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function X(fe){return new Promise(function(se,Fe){fe.onload=function(){se(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function R(fe){var se=new FileReader,Fe=X(se);return se.readAsArrayBuffer(fe),Fe}function C(fe){var se=new FileReader,Fe=X(se);return se.readAsText(fe),Fe}function V(fe){for(var se=new Uint8Array(fe),Fe=new Array(se.length),Le=0;Le<se.length;Le++)Fe[Le]=String.fromCharCode(se[Le]);return Fe.join("")}function J(fe){if(fe.slice)return fe.slice(0);var se=new Uint8Array(fe.byteLength);return se.set(new Uint8Array(fe)),se.buffer}function _(){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=J(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=J(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=M(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?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var fe=M(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(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(fe){var se=fe.toUpperCase();return Q.indexOf(se)>-1?se:fe}function ce(fe,se){se=se||{};var Fe=se.body;if(fe instanceof ce){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=Y(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)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(fe){var se=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Me=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");se.append(decodeURIComponent(Me),decodeURIComponent(Pe))}}),se}function ie(fe){var se=new W,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Me=Le.split(":"),Pe=Me.shift().trim();if(Pe){var rt=Me.join(":").trim();se.append(Pe,rt)}}),se}_.call(ce.prototype);function xe(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)}_.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},xe.error=function(){var fe=new xe(null,{status:0,statusText:""});return fe.type="error",fe};var we=[301,302,303,307,308];xe.redirect=function(fe,se){if(we.indexOf(se)===-1)throw new RangeError("Invalid status code");return new xe(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 Le=Error(se);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(fe,se){return new Promise(function(Fe,Le){var Me=new ce(fe,se);if(Me.signal&&Me.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Ze={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Ze.url="responseURL"in Pe?Pe.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Pe?Pe.response:Pe.responseText;Fe(new xe(Xe,Ze))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Me.method,Me.url,!0),Me.credentials==="include"?Pe.withCredentials=!0:Me.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Me.headers.forEach(function(Ze,Xe){Pe.setRequestHeader(Xe,Ze)}),Me.signal&&(Me.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Me.signal.removeEventListener("abort",rt)}),Pe.send(typeof Me._bodyInit=="undefined"?null:Me._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=ce,x.Response=xe),b.Headers=W,b.Request=ce,b.Response=xe,b.fetch=he,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}
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),q=B.decode||a,W=0;W<j.length;W++){var M=j[W],X=M.indexOf("=");if(!(X<0)){var R=M.substr(0,X).trim(),C=M.substr(++X,M.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[R]==null&&(D[R]=S(C,q))}}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 q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var M=B.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(M)}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 X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){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(4808),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,q=arguments.length,W=q>1?arguments[1]:void 0,M=W!==void 0,X=g(B),R=0,C,V,J,_,Q,Y;if(M&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;R++)Y=M?x(_,W,[J.value,R],!0):J.value,S(V,R,Y);else for(C=b(B.length),V=new j(C);C>R;R++)Y=M?W(B[R],R):B[R],S(V,R,Y);return V.length=R,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),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)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,q=L==4,W=L==6,M=L==7,X=L==5||W;return function(R,C,V,J){for(var _=x(R),Q=v(_),Y=c(C,V,3),ce=d(Q.length),ee=0,ie=J||b,xe=D?ie(R,ce):B||M?ie(R,0):void 0,we,he;ce>ee;ee++)if((X||ee in Q)&&(we=Q[ee],he=Y(we,ee,_),L))if(D)xe[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return we;case 6:return ee;case 2:S.call(xe,we)}else switch(L){case 4:return!1;case 7:S.call(xe,we)}return W?-1:j||q?q:xe}};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,q=g.find,W=g.findIndex,M=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,xe){b(ie,Y,J),B(ie,{type:J,id:M++,frozen:void 0}),xe!=null&&S(xe,ie[Q],{that:ie,AS_ENTRIES:_})}),ce=j(J),ee=function(ie,xe,we){var he=ce(ie),fe=v(x(xe),!0);return fe===!0?X(he).set(xe,we):fe[he.id]=we,ie};return c(Y.prototype,{delete:function(ie){var xe=ce(this);if(!d(ie))return!1;var we=v(ie);return we===!0?X(xe).delete(ie):we&&L(we,xe.id)&&delete we[xe.id]},has:function(xe){var we=ce(this);if(!d(xe))return!1;var he=v(xe);return he===!0?X(we).has(xe):he&&L(he,we.id)}}),c(Y.prototype,_?{get:function(xe){var we=ce(this);if(d(xe)){var he=v(xe);return he===!0?X(we).get(xe):he?he[we.id]:void 0}},set:function(xe,we){return ee(this,xe,we)}}:{add:function(xe){return ee(this,xe,!0)}}),Y}}},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,q=a(55746),W=a(45402),M=W.set,X=W.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,_=R.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[R],ce=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||ce.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{ie=C(function(we,he){M(g(we,ie,R),{type:R,collection:new Y}),he!=null&&S(he,we[Q],{that:we,AS_ENTRIES:J})});var xe=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(we){var he=we=="add"||we=="set";we in ce&&!(_&&we=="clear")&&b(ie.prototype,we,function(fe,oe){var Fe=xe(this).collection;if(!he&&_&&!L(fe))return we=="get"?void 0:!1;var Le=Fe[we](fe===0?0:fe,oe);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return xe(this).collection.size}})}return D(ie,R,!1,!0),ee[R]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,R,J),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(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),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,M=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,ce,ee,ie){v(Q,_,Y);var xe=function(Ze){if(Ze===ce&&Fe)return Fe;if(!W&&Ze in fe)return fe[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case R:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},we=_+" Iterator",he=!1,fe=J.prototype,oe=fe[M]||fe["@@iterator"]||ce&&fe[ce],Fe=!W&&oe||xe(ce),Le=_=="Array"&&fe.entries||oe,Me,Pe,rt;if(Le&&(Me=x(Le.call(new J)),q!==Object.prototype&&Me.next&&(!D&&x(Me)!==q&&(d?d(Me,q):typeof Me[M]!="function"&&S(Me,M,V)),b(Me,we,!0,!0),D&&(B[we]=V))),ce==R&&oe&&oe.name!==R&&(he=!0,Fe=function(){return oe.call(this)}),(!D||ie)&&fe[M]!==Fe&&S(fe,M,Fe),B[_]=Fe,ce)if(Pe={values:xe(R),keys:ee?Fe:xe(X),entries:xe(C)},ie)for(rt in Pe)(W||he||!(rt in fe))&&g(fe,rt,Pe[rt]);else c({target:_,proto:!0,forced:W||he},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,q,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,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,M=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,R=q?d:d[j]||(d[j]={}),C=R.prototype,V,J,_,Q,Y,ce,ee,ie,xe;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=R[Q],J&&(D.noTargetGet?(xe=v(X,Q),ee=xe&&xe.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):M&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ie,"sham",!0),R[Q]=ie,M&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},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 q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};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(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},q=function(X,R){if(!x(X,g)){if(!D(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},W=function(X){return S&&M.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},M=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,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,q,W,M=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,Y){if(V.call(R,Q))throw new TypeError(D);return Y.facade=Q,J.call(R,Q,Y),Y},q=function(Q){return C.call(R,Q)||{}},W=function(Q){return V.call(R,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:M,getterFor:X}},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,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),M=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+M),R,C,V,J,_,Q,Y,ce=function(ie){return R&&S(R),new g(!0,ie)},ee=function(ie){return q?(c(ie),M?X(ie[0],ie[1],ce):X(ie[0],ie[1])):M?X(ie,ce):X(ie)};if(W)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}R=C.call(L)}for(Q=R.next;!(Y=Q.call(R)).done;){try{_=ee(Y.value)}catch(ie){throw S(R),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}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,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var M={};return B[g].call(M)!==M});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"),q=j&&j.value,W,M,X,R,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();M;){Y=M.fn,M=M.next;try{Y()}catch(ce){throw M?R():X=void 0,ce}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,R=function(){_.call(J,W)}):S?R=function(){D.nextTick(W)}:R=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),M||(M=Y,R()),X=Y}},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={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(M){j[M]=M}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),M=arguments.length,X=1,R=d.f,C=b.f;M>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);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",q=g("IE_PROTO"),W=function(){},M=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},R=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(M("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},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(q){}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,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};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 q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"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,q=c.MessageChannel,W=c.Dispatch,M=0,X={},R="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var xe=[],we=1;arguments.length>we;)xe.push(arguments[we++]);return X[++M]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,xe)},C(M),M},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):R in b("script")?C=function(ee){d.appendChild(b("script"))[R]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),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 q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};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),q=B("isConcatSpreadable"),W=9007199254740991,M="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),R=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),ce=0,ee,ie,xe,we,he;for(ee=-1,xe=arguments.length;ee<xe;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(we=S(he.length),ce+we>W)throw TypeError(M);for(ie=0;ie<we;ie++,ce++)ie in he&&g(Y,ce,he[ie])}else{if(ce>=W)throw TypeError(M);g(Y,ce++,he)}return Y.length=ce,Y}})},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,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],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"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),_=d(R===void 0?V:R,V),Q,Y,ce;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),ce=0;J<_;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},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,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,ce,ee,ie,xe;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(R),0),V-J)),V+Q-Y>q)throw TypeError(W);for(ce=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(ce,ee,C[ie]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,xe=ee+Q,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,xe=ee+Q-1,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},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,q){var W=q.charAt(j-1),M=q.charAt(j+1);return S.test(B)&&!g.test(M)||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,q,W){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},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),q={},W=0,M,X;j.length>W;)X=B(D,M=j[W++]),X!==void 0&&S(q,M,X);return q}})},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,q=d(function(){var W=v(L.resolve),M=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;M.push(void 0),R++,W.call(L,C).then(function(_){J||(J=!0,M[V]={status:"fulfilled",value:_},--R||B(M))},function(_){J||(J=!0,M[V]={status:"rejected",reason:_},--R||B(M))})}),--R||B(M)});return q.error&&j(q.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),q=j.resolve,W=j.reject,M=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;R.push(void 0),V++,X.call(B,_).then(function(ce){Y||J||(J=!0,q(ce))},function(ce){Y||J||(Y=!0,R[Q]=ce,--V||W(new(x("AggregateError"))(R,g)))})}),--V||W(new(x("AggregateError"))(R,g))});return M.error&&W(M.value),j.promise}})},4808:(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 q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(M){return g(q,j()).then(function(){return M})}:j,W?function(M){return g(q,j()).then(function(){throw M})}: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),q=a(33916),W=a(5743),M=a(81302),X=a(93091),R=a(21385),C=a(70487),V=a(42941).set,J=a(66132),_=a(56584),Q=a(34845),Y=a(69520),ce=a(40002),ee=a(45402),ie=a(37252),xe=a(99813),we=a(23321),he=a(6049),fe=a(53385),oe=xe("species"),Fe="Promise",Le=ee.get,Me=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,wt=x.process,nt=Y.f,ut=nt,mt=!!(ht&&ht.createEvent&&x.dispatchEvent),xt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Mt="rejectionhandled",kt=0,Et=1,Ht=2,jt=1,Vt=2,St=!1,Dt,ve,z,$,Se=ie(Fe,function(){var re=M(Ze)!==String(Ze);if(!re&&fe===66||v&&!Xe.finally)return!0;if(fe>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ee){Ee(1)}),ae=function(Ee){Ee(function(){},function(){})},pe=de.constructor={};return pe[oe]=ae,St=de.then(function(){})instanceof ae,St?!re&&we&&!xt:!0}),Ie=Se||!R(function(re){Ze.all(re).catch(function(){})}),Ge=function(re){var de;return j(re)&&typeof(de=re.then)=="function"?de:!1},Ke=function(re,de){if(!re.notified){re.notified=!0;var ae=re.reactions;J(function(){for(var pe=re.value,Ee=re.state==Et,je=0;ae.length>je;){var Ve=ae[je++],Qe=Ee?Ve.ok:Ve.fail,vt=Ve.resolve,At=Ve.reject,Bt=Ve.domain,Pt,hn,Nr;try{Qe?(Ee||(re.rejection===Vt&&T(re),re.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Nr=!0)),Pt===Ve.promise?At(ft("Promise-chain cycle")):(hn=Ge(Pt))?hn.call(Pt,vt,At):vt(Pt)):At(pe)}catch(Cr){Bt&&!Nr&&Bt.exit(),At(Cr)}}re.reactions=[],re.notified=!1,de&&!re.rejection&&Re(re)})}},P=function(re,de,ae){var pe,Ee;mt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=ae,pe.initEvent(re,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ae},!xt&&(Ee=x["on"+re])?Ee(pe):re===pt&&Q("Unhandled promise rejection",ae)},Re=function(re){V.call(x,function(){var de=re.facade,ae=re.value,pe=K(re),Ee;if(pe&&(Ee=ce(function(){he?wt.emit("unhandledRejection",ae,de):P(pt,de,ae)}),re.rejection=he||K(re)?Vt:jt,Ee.error))throw Ee.value})},K=function(re){return re.rejection!==jt&&!re.parent},T=function(re){V.call(x,function(){var de=re.facade;he?wt.emit("rejectionHandled",de):P(Mt,de,re.value)})},O=function(re,de,ae){return function(pe){re(de,pe,ae)}},le=function(re,de,ae){re.done||(re.done=!0,ae&&(re=ae),re.value=de,re.state=Ht,Ke(re,!0))},N=function(re,de,ae){if(!re.done){re.done=!0,ae&&(re=ae);try{if(re.facade===de)throw ft("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ee={done:!1};try{pe.call(de,O(N,Ee,re),O(le,Ee,re))}catch(je){le(Ee,je,re)}}):(re.value=de,re.state=Et,Ke(re,!1))}catch(Ee){le({done:!1},Ee,re)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var ae=Le(this);try{de(O(N,ae),O(le,ae))}catch(pe){le(ae,pe)}},Xe=Ze.prototype,Dt=function(de){Me(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,ae){var pe=Pe(this),Ee=nt(C(this,Ze));return Ee.ok=typeof de=="function"?de:!0,Ee.fail=typeof ae=="function"&&ae,Ee.domain=he?wt.domain:void 0,pe.parent=!0,pe.reactions.push(Ee),pe.state!=kt&&Ke(pe,!1),Ee.promise},catch:function(re){return this.then(void 0,re)}}),ve=function(){var re=new Dt,de=Le(re);this.promise=re,this.resolve=O(N,de),this.reject=O(le,de)},Y.f=nt=function(re){return re===Ze||re===z?new ve(re):ut(re)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,ae){var pe=this;return new Ze(function(Ee,je){$.call(pe,Ee,je)}).then(de,ae)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(re){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var ae=nt(this);return ae.reject.call(void 0,de),ae.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ae=this,pe=nt(ae),Ee=pe.resolve,je=pe.reject,Ve=ce(function(){var Qe=q(ae.resolve),vt=[],At=0,Bt=1;X(de,function(Pt){var hn=At++,Nr=!1;vt.push(void 0),Bt++,Qe.call(ae,Pt).then(function(Cr){Nr||(Nr=!0,vt[hn]=Cr,--Bt||Ee(vt))},je)}),--Bt||Ee(vt)});return Ve.error&&je(Ve.value),pe.promise},race:function(de){var ae=this,pe=nt(ae),Ee=pe.reject,je=ce(function(){var Ve=q(ae.resolve);X(de,function(Qe){Ve.call(ae,Qe).then(pe.resolve,Ee)})});return je.error&&Ee(je.value),pe.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(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(M,X){x(M),d(X);var R=arguments.length<3?M:x(arguments[2]);if(j&&!B)return D(M,X,R);if(M==R){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(M,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},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,q;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(q=S(L)))return g(q,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),q=a(96059),W=a(89678),M=a(74529),X=a(46935),R=a(31887),C=a(29290),V=a(14771),J=a(10946),_=a(684),Q=a(87857),Y=a(49677),ce=a(65988),ee=a(36760),ie=a(32029),xe=a(99754),we=a(68726),he=a(44262),fe=a(27748),oe=a(99418),Fe=a(99813),Le=a(11477),Me=a(66349),Pe=a(90904),rt=a(45402),Ze=a(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",wt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),mt=Object[ht],xt=v.Symbol,pt=x("JSON","stringify"),Mt=Y.f,kt=ce.f,Et=_.f,Ht=ee.f,jt=we("symbols"),Vt=we("op-symbols"),St=we("string-to-symbol-registry"),Dt=we("symbol-to-string-registry"),ve=we("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(re,de,ae){var pe=Mt(mt,de);pe&&delete mt[de],kt(re,de,ae),pe&&re!==mt&&kt(mt,de,pe)}:kt,Ie=function(re,de){var ae=jt[re]=C(xt[ht]);return nt(ae,{type:ft,tag:re,description:de}),b||(ae.description=de),ae},Ge=g?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof xt},Ke=function(de,ae,pe){de===mt&&Ke(Vt,ae,pe),q(de);var Ee=X(ae,!0);return q(pe),D(jt,Ee)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ee]&&(de[Xe][Ee]=!1),pe=C(pe,{enumerable:R(0,!1)})):(D(de,Xe)||kt(de,Xe,R(1,{})),de[Xe][Ee]=!0),Se(de,Ee,pe)):kt(de,Ee,pe)},P=function(de,ae){q(de);var pe=M(ae),Ee=V(pe).concat(le(pe));return Ze(Ee,function(je){(!b||K.call(pe,je))&&Ke(de,je,pe[je])}),de},Re=function(de,ae){return ae===void 0?C(de):P(C(de),ae)},K=function(de){var ae=X(de,!0),pe=Ht.call(this,ae);return this===mt&&D(jt,ae)&&!D(Vt,ae)?!1:pe||!D(this,ae)||!D(jt,ae)||D(this,Xe)&&this[Xe][ae]?pe:!0},T=function(de,ae){var pe=M(de),Ee=X(ae,!0);if(!(pe===mt&&D(jt,Ee)&&!D(Vt,Ee))){var je=Mt(pe,Ee);return je&&D(jt,Ee)&&!(D(pe,Xe)&&pe[Xe][Ee])&&(je.enumerable=!0),je}},O=function(de){var ae=Et(M(de)),pe=[];return Ze(ae,function(Ee){!D(jt,Ee)&&!D(fe,Ee)&&pe.push(Ee)}),pe},le=function(de){var ae=de===mt,pe=Et(ae?Vt:M(de)),Ee=[];return Ze(pe,function(je){D(jt,je)&&(!ae||D(mt,je))&&Ee.push(jt[je])}),Ee};if(S||(xt=function(){if(this instanceof xt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=oe(de),pe=function(Ee){this===mt&&pe.call(Vt,Ee),D(this,Xe)&&D(this[Xe],ae)&&(this[Xe][ae]=!1),Se(this,ae,R(1,Ee))};return b&&$&&Se(mt,ae,{configurable:!0,set:pe}),Ie(ae,de)},xe(xt[ht],"toString",function(){return ut(this).tag}),xe(xt,"withoutSetter",function(re){return Ie(oe(re),re)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=_.f=O,Q.f=le,Le.f=function(re){return Ie(Fe(re),re)},b&&(kt(xt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||xe(mt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:xt}),Ze(V(ve),function(re){Me(re)}),c({target:ft,stat:!0,forced:!S},{for:function(re){var de=String(re);if(D(St,de))return St[de];var ae=xt(de);return St[de]=ae,Dt[ae]=de,ae},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Re,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(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var re=xt();return pt([re])!="[null]"||pt({a:re})!="{}"||pt(Object(re))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ae,pe){for(var Ee=[de],je=1,Ve;arguments.length>je;)Ee.push(arguments[je++]);if(Ve=ae,!(!j(ae)&&de===void 0||Ge(de)))return B(ae)||(ae=function(Qe,vt){if(typeof Ve=="function"&&(vt=Ve.call(this,Qe,vt)),!Ge(vt))return vt}),Ee[1]=ae,pt.apply(null,Ee)}})}xt[ht][wt]||ie(xt[ht],wt,xt[ht].valueOf),Pe(xt,ft),fe[Xe]=!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,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var M=W.prototype,X=M.delete,R=M.has,C=M.get,V=M.set;v(M,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)||Q.frozen.has(_)}return R.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),R.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);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(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}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(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var xe=ee.shift();return{done:xe===void 0,value:xe}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,xe){this.append(xe,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var xe=this.map[ee];this.map[ee]=xe?xe+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var xe in this.map)this.map.hasOwnProperty(xe)&&ee.call(ie,this.map[xe],xe,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,xe){ee.push(xe)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,xe){ee.push([xe,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,xe){ee.onload=function(){ie(ee.result)},ee.onerror=function(){xe(ee.error)}})}function j(ee){var ie=new FileReader,xe=B(ie);return ie.readAsArrayBuffer(ee),xe}function q(ee){var ie=new FileReader,xe=B(ie);return ie.readAsText(ee),xe}function W(ee){for(var ie=new Uint8Array(ee),xe=new Array(ie.length),we=0;we<ie.length;we++)xe[we]=String.fromCharCode(ie[we]);return xe.join("")}function M(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=M(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=M(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="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(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;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 ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(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(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return R.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var xe=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!xe&&ee._bodyInit!=null&&(xe=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);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")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(xe){if(xe){var we=xe.split("="),he=we.shift().replace(/\+/g," "),fe=we.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(fe))}}),ie}function _(ee){var ie=new L,xe=ee.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(we){var he=we.split(":"),fe=he.shift().trim();if(fe){var oe=he.join(":").trim();ie.append(fe,oe)}}),ie}X.call(V.prototype);function Q(ee,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(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(ee){a.DOMException=function(ie,xe){this.message=ie,this.name=xe;var we=Error(ie);this.stack=we.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ce(ee,ie){return new Promise(function(xe,we){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return we(new a.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function oe(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:_(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in fe?fe.response:fe.responseText;xe(new Q(Le,Fe))},fe.onerror=function(){we(new TypeError("Network request failed"))},fe.ontimeout=function(){we(new TypeError("Network request failed"))},fe.onabort=function(){we(new a.DOMException("Aborted","AbortError"))},fe.open(he.method,he.url,!0),he.credentials==="include"?fe.withCredentials=!0:he.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),he.headers.forEach(function(Fe,Le){fe.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",oe),fe.onreadystatechange=function(){fe.readyState===4&&he.signal.removeEventListener("abort",oe)}),fe.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,h.fetch||(h.fetch=ce,h.Headers=L,h.Request=V,h.Response=Q),a.Headers=L,a.Request=V,a.Response=Q,a.fetch=ce,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 q(fe){var oe={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function W(fe){this.map={},fe instanceof W?fe.forEach(function(oe,Fe){this.append(Fe,oe)},this):Array.isArray(fe)?fe.forEach(function(oe){this.append(oe[0],oe[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(oe){this.append(oe,fe[oe])},this)}W.prototype.append=function(fe,oe){fe=B(fe),oe=j(oe);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+oe:oe},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,oe){this.map[B(fe)]=j(oe)},W.prototype.forEach=function(fe,oe){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(oe,this.map[Fe],Fe,this)},W.prototype.keys=function(){var fe=[];return this.forEach(function(oe,Fe){fe.push(Fe)}),q(fe)},W.prototype.values=function(){var fe=[];return this.forEach(function(oe){fe.push(oe)}),q(fe)},W.prototype.entries=function(){var fe=[];return this.forEach(function(oe,Fe){fe.push([Fe,oe])}),q(fe)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function M(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function X(fe){return new Promise(function(oe,Fe){fe.onload=function(){oe(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function R(fe){var oe=new FileReader,Fe=X(oe);return oe.readAsArrayBuffer(fe),Fe}function C(fe){var oe=new FileReader,Fe=X(oe);return oe.readAsText(fe),Fe}function V(fe){for(var oe=new Uint8Array(fe),Fe=new Array(oe.length),Le=0;Le<oe.length;Le++)Fe[Le]=String.fromCharCode(oe[Le]);return Fe.join("")}function J(fe){if(fe.slice)return fe.slice(0);var oe=new Uint8Array(fe.byteLength);return oe.set(new Uint8Array(fe)),oe.buffer}function _(){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=J(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=J(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=M(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?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var fe=M(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(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(fe){var oe=fe.toUpperCase();return Q.indexOf(oe)>-1?oe:fe}function ce(fe,oe){oe=oe||{};var Fe=oe.body;if(fe instanceof ce){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,oe.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=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new W(oe.headers)),this.method=Y(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(fe){var oe=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Me=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Me),decodeURIComponent(Pe))}}),oe}function ie(fe){var oe=new W,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Me=Le.split(":"),Pe=Me.shift().trim();if(Pe){var rt=Me.join(":").trim();oe.append(Pe,rt)}}),oe}_.call(ce.prototype);function xe(fe,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new W(oe.headers),this.url=oe.url||"",this._initBody(fe)}_.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},xe.error=function(){var fe=new xe(null,{status:0,statusText:""});return fe.type="error",fe};var we=[301,302,303,307,308];xe.redirect=function(fe,oe){if(we.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new xe(null,{status:oe,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(oe,Fe){this.message=oe,this.name=Fe;var Le=Error(oe);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(fe,oe){return new Promise(function(Fe,Le){var Me=new ce(fe,oe);if(Me.signal&&Me.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Ze={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Ze.url="responseURL"in Pe?Pe.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Pe?Pe.response:Pe.responseText;Fe(new xe(Xe,Ze))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Me.method,Me.url,!0),Me.credentials==="include"?Pe.withCredentials=!0:Me.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Me.headers.forEach(function(Ze,Xe){Pe.setRequestHeader(Xe,Ze)}),Me.signal&&(Me.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Me.signal.removeEventListener("abort",rt)}),Pe.send(typeof Me._bodyInit=="undefined"?null:Me._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=ce,x.Response=xe),b.Headers=W,b.Request=ce,b.Response=xe,b.fetch=he,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
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),q=d()(v()),W=S()(g),M=S()(L),X=S()(D),R=S()(B),C=S()(j);q.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("+M+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+R+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
48
48
  `,""]);const V=q},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
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}
@@ -72,24 +72,24 @@ 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]=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(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,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}},19167:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>ud});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Pr,_areEquals:()=>Ka,applyOperation:()=>pr,applyPatch:()=>zn,applyReducer:()=>rc,deepClone:()=>tc,getValueByPointer:()=>Rr,validate:()=>yu,validator:()=>ea});var v={};a.r(v),a.d(v,{compare:()=>bu,generate:()=>Do,observe:()=>xu,unobserve:()=>tl});var x={};a.r(x),a.d(x,{cookie:()=>yl,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 q(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&&M(t,r)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},W(t)}function M(t,r){return M=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},M(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function R(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=R(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 J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function _(t){var r=X();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 J(this,s)}}function Q(t,r){return ee(t)||xe(t,r)||we(t,r)||se()}function Y(t){return ce(t)||ie(t)||we(t)||fe()}function ce(t){if(Array.isArray(t))return he(t)}function ee(t){if(Array.isArray(t))return t}function ie(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function xe(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],o=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),A;!(o=(A=y.next()).done)&&(i.push(A.value),!(r&&i.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&y.return!=null&&y.return()}finally{if(s)throw p}}return i}}function we(t,r){if(!!t){if(typeof t=="string")return he(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 he(t,r)}}function he(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
- 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.
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(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,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}},19167:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>ud});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Pr,_areEquals:()=>Ka,applyOperation:()=>pr,applyPatch:()=>zn,applyReducer:()=>rc,deepClone:()=>tc,getValueByPointer:()=>Rr,validate:()=>yu,validator:()=>ea});var v={};a.r(v),a.d(v,{compare:()=>bu,generate:()=>Do,observe:()=>xu,unobserve:()=>tl});var x={};a.r(x),a.d(x,{cookie:()=>yl,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 q(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&&M(t,r)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},W(t)}function M(t,r){return M=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},M(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function R(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=R(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 J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function _(t){var r=X();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 J(this,s)}}function Q(t,r){return ee(t)||xe(t,r)||we(t,r)||oe()}function Y(t){return ce(t)||ie(t)||we(t)||fe()}function ce(t){if(Array.isArray(t))return he(t)}function ee(t){if(Array.isArray(t))return t}function ie(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function xe(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],o=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),A;!(o=(A=y.next()).done)&&(i.push(A.value),!(r&&i.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&y.return!=null&&y.return()}finally{if(s)throw p}}return i}}function we(t,r){if(!!t){if(typeof t=="string")return he(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 he(t,r)}}function he(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
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
77
77
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=we(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,y=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){y=!0,A=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw A}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Me=Le(function(t){function r(F,G){for(var te=0,ne=0;ne<F.length;ne++)te=(te<<5)-te+F.charCodeAt(ne),te|=0;return G[Math.abs(te)%G.length]}function i(F,G){var te=G.namespace;if(G.useColors){var ne=G.color,oe="[3"+(ne<8?ne:"8;5;"+ne),ye=" ".concat(oe,";1m").concat(te," ");F[0]=ye+F[0].split(`
78
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){y=!0,A=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw A}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Me=Le(function(t){function r(F,G){for(var te=0,ne=0;ne<F.length;ne++)te=(te<<5)-te+F.charCodeAt(ne),te|=0;return G[Math.abs(te)%G.length]}function i(F,G){var te=G.namespace;if(G.useColors){var ne=G.color,se="[3"+(ne<8?ne:"8;5;"+ne),ye=" ".concat(se,";1m").concat(te," ");F[0]=ye+F[0].split(`
79
79
  `).join(`
80
- `+ye)}else F[0]=te+" "+F[0]}function o(F,G){if(F[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var te="color: "+G.color,ne=0,oe=0;F[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(ne++,ye==="%c"&&(oe=ne))}),F.splice(oe,0,te)}}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 F;try{F=localStorage.getItem("debug")}catch(G){}return!F&&typeof process!="undefined"&&"env"in process&&(F={}.DEBUG),{namespaces:F||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var te=arguments.length,ne=new Array(te),oe=0;oe<te;oe++)ne[oe]=arguments[oe];F&&ne.unshift(F);var ye=G.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ge=ye.some(function(Te){return Te.test(F)}),Ae={color:r(F,G.colors),namespace:F,useColors:G.useColors};if(!1)var me}}function w(F){return A(F,y())}function E(F){return A(F,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Me("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?o:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,i){var o=Xe(i),s=ft(i),p=o?Ze(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,y,A){return y===A.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+A[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+A[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=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,y,A){return s===void 0?s:(y===A.length-1&&(delete s[p],o=!0),s[p])},r),o},ut=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,y,A){return s===void 0?s:(y===A.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},mt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},xt=function(r){var i=rt(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 mt(i).length===0}},{key:"get",value:function(i,o){var s=Ze(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(xt(o)&&t.get(i,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),wt(i,o,void 0);var p=rt(o);p=p.slice(0,p.length-1),Mt(i,p)}else!xt(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),xt(o)?(Pe("ARRAY",o),this.pullOut(i,o)):nt(i,o);var s=rt(o);s=s.slice(0,s.length-1),Mt(i,s)}},{key:"pullOut",value:function(i,o){var s=rt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var y=Ze(i,s);Pe("Array",y),Array.isArray(y)&&ut(y,p),Mt(i,s)}}]),t}();function Mt(t,r){if(r.length!==0){var i=Ze(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&nt(t,r),Mt(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(){}}),Et=d.createContext({}),Ht=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),St=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(Ht);return t}function Ge(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Q(o,2),p=s[0],y=s[1];r.current=p;var A=function(F){r.current=F,i.current&&y(F)},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){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(y){o.e(y)}finally{o.f()}}return i},Re=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=P(s);return o}},K=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 K(o)}},O=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,A=s.keyword,w=s.params,E=y;A==="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,y=new Array(p),A=0;A<p;A++)y[A]=arguments[A];var w=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(w,i)}},re=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,F=i.items,G=i.enum,te=i.title,ne=i.minimum,oe=i.maximum,ye=i.minLength,ge=i.maxLength,Ae=i.pattern,me=i.type,Te=i.properties,He=le();y&&y.id&&(He=y.id);var Ve={componentType:s,field:o?"".concat(o,".").concat(r):r,type:me,uiBefore:A,uiAfter:w,properties:me==="object"?Te:void 0,items:me==="array"?F:void 0,props:j(j({label:te,id:He,min:ne,max:oe,minLength:ye,maxLength:ge,pattern:Ae},p),y)};if(E){var ze=i.oneOf.map(function(We){var Je=We["input:props"],et=Je===void 0?{}:Je;return j({value:We.const,label:We.title},et)});Ve.props.options=ze}if(G){var De=i.enum.map(function(We){return{value:We,label:We}});Ve.props.options=De}if(F&&F.oneOf){var Be=F.oneOf.map(function(We){var Je=We["input:props"],et=Je===void 0?{}:Je;return j({value:We.const,label:We.title},et)});Ve.props.options=Be}return Ve},de=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(F,G){var te=w.indexOf(F),ne=w.indexOf(G);return(te>-1?te:w.length+1)-(ne>-1?ne:w.length+1)}).map(function(F){var G=p[F],te=re(F,G,o);return te});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},ae=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},pe=function(r,i){if(typeof r=="string")return r.split("").map(function(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")},Ee=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},Ue=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=pe(i,o),p=s.findIndex(function(ge){return typeof ge!="string"}),y=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),A=[],w=o.split(""),E=0,F=0,G=Ee(s.slice(0,p),w.slice(0,p));G>-1&&(E=G+1,A=A.concat(s.slice(0,G+1)),F=G+1),G<0&&(A=A.concat(s.slice(0,p)),F=p);for(var te=F;te<s.length;te++){var ne=s[te];if(E!=w.length){var oe=w[E];if(typeof ne=="function")A.push(ne(oe)),E=E+1;else{var ye=typeof ne=="string"?ne===oe:ne.test(oe);ye&&typeof ne=="string"?(A.push(ne),E=E+1):!ye&&typeof ne=="string"?E!=w.length&&A.push(ne):ye&&typeof ne!="string"?(A.push(oe),E=E+1):!ye&&typeof ne!="string"&&(E=E+1,te=te-1)}}else if(typeof ne=="string"&&te>=y)A.push(ne);else break}return{value:A.join(""),offset:o?A.length-o.length:0}},je=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),A=(o=(s=y.formatToParts(.1).find(function(ge){var Ae=ge.type;return Ae==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ge,Ae){return ge instanceof RegExp&&Ae instanceof RegExp&&ge.source===Ae.source&&ge.global===Ae.global&&ge.ignoreCase===Ae.ignoreCase&&ge.multiline===Ae.multiline}function E(ge,Ae){for(var me=ge.length;me--;)if(Ae(ge[me]))return me;return-1}function F(ge,Ae,me){var Te=Y(ge);return Array.isArray(me)?Te.splice.apply(Te,[Ae,0].concat(Y(me))):Te.splice(Ae,0,me),Te}function G(ge){return"".concat(ge).replace(/\D/g,"")}function te(ge){return"".concat(ge).split(A).map(function(Ae){return G(Ae)}).join(".")}function ne(ge){if(typeof ge=="number")return ge;var Ae=parseFloat(te(ge));return Number.isNaN(Ae)?void 0:Ae}function oe(ge){var Ae=te(ge),me="".concat(Ae).split(".")[1],Te=p.formatToParts(Number(Ae));me==="0"&&Te.push({type:"decimal",value:A},{type:"fraction",value:me});var He=Te.reduce(function(De,Be){var We=Be.type,Je=Be.value;return["decimal","fraction"].includes(We)&&me==null?De:["integer","fraction"].includes(We)?[].concat(Y(De),Y(Je.split("").filter(function(et,$e){return We==="fraction"?$e<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(De),Y(Je.split(""))):[].concat(Y(De),[Je])},[]),Ve=E(He,function(De){return w(De,/\d/)});He.indexOf(A)===-1&&"".concat(ge).indexOf(A)!==-1&&(He=F(He,Ve+1,[A,"[]"]),Ve+=2);var ze=He.slice(Ve+1).join("");return He=[].concat(Y(He.slice(0,Ve+1)),[ze]),He}var ye=function(Ae){if(Ae!=null)return ne(Ae)};return{formatter:oe,parser:ye}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Re,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:re,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ae,informedFormat:Ue,createIntlNumberFormatter:je}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,At=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=Ge(0),A=Q(y,3),w=A[0],E=A[1],F=A[2],G=Ge(0),te=Q(G,3),ne=te[0],oe=te[1],ye=te[2];return vt(function(){if(o.current!=null&&F()){var ge=F()+ye();ye()!=0&&p?o.current.setSelectionRange(ge+1,ge+1):p&&o.current.setSelectionRange(ge,ge)}},[i]),{setCursorOffset:oe,setCursor:E,cursor:w,getCursor:F,cursorOffset:ne}},Bt=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)},Pt=Me("informed:useField "),hn=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var y=Ue(r,o);return y.value}return r}},Nr=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=Ue(r,s);return p.value}return r},Cr=function(r,i,o){var s=o.required;if(r||i)return function(p,y){if(i)return T(i,p);if(r)return r(p,y)};if(s)return function(p){return vn(p,s)}},Si=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,y=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(y.current).filter(function(F){return F.selected}).map(function(F){return F.value});o(p?E:E[0]||"")}),i==="checkbox"&&(A=function(E){o(E.target.checked),s&&s(E)}),function(w){A(w)}},Gr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Vi=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}},Nn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},vn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Tn(){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,y=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,F=t.formatter,G=t.parser,te=t.initialValue,ne=t.validateOnChange,oe=t.validateOnBlur,ye=t.validateOnMount,ge=t.asyncValidateOnBlur,Ae=t.maskOnBlur,me=t.allowEmptyString,Te=t.onValueChange,He=t.notify,Ve=t.keepState,ze=t.maintainCursor,De=t.debug,Be=t.shadow,We=t.step,Je=t.fieldType,et=t.multiple,$e=t.onChange,gt=t.onBlur,Nt=t.formController,Gt=t.relevant,or=t.required,kr=t.keepStateIfRelevant,Er=t.initialize,Qr=t.formatterDependencies,br=Qr===void 0?[]:Qr,Dr=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"]),An=(0,d.useState)(le()),Yt=Q(An,1),Rt=Yt[0],Ut=(0,d.useContext)(kt),sr=(0,d.useContext)(Se),on=sr||kr,yr=Ie(),gs=(0,d.useRef)(),Ll=(0,d.useRef)(!0),ho=(0,d.useRef)(),Ui=(0,d.useRef)(!1),Dl=function(){return!Ui.current},If=function(){return Ui.current};Nt&&(Ut=Nt.updater,yr=Nt.getFormApi());var wi=Cr(o,p,{required:or}),Nl=(0,d.useState)(function(){return Ut.getInitialValue(i)}),Qy=Q(Nl,1),Zy=Qy[0],Ff=Ut.getSavedValue(i),kf,xh;(Ve||on)&&Ff?(Pt("Setting field ".concat(Ed,"'s kept state"),Ff),kf=Ff.value,xh=Ff.touched,yr.removeSavedState(Ed)):te!=null?kf=te:kf=Zy;var _y=Ge(hn(kf,y,F,G,Er)),fd=Q(_y,3),Bl=fd[0],cd=fd[1],qy=fd[2],em=Ge(ye?wi(Bl):void 0),dd=Q(em,3),bh=dd[0],wh=dd[1],tm=dd[2],rm=Ge(xh),pd=Q(rm,3),Sh=pd[0],nm=pd[1],Ah=pd[2],im=(0,d.useState)(function(){return Nr(Bl,w,E,F)}),Eh=Q(im,2),hd=Eh[0],vd=Eh[1],Ch=(0,d.useRef)();Ch.current=hd;var Oh=(0,d.useRef)(te),vo=(0,d.useRef)(i),Th=(0,d.useRef)();Oh.current=te,vo.current=i;var am=(0,d.useRef)(null),ji=d.useMemo(function(){return r||am},[]),gd=At({value:Bl,inputRef:ji,maintainCursor:!!ze}),yd=gd.getCursor,om=gd.setCursor,md=gd.setCursorOffset,sm=function(){return!0},xd=function(lr){var sn=Gt||sm,Ln=yr.getFullField(vo.current)||vo.current,Jt={path:Ln,parentPath:Ln.replace(/(.*)[.[].*/,"$1"),get:function(Dn,Vl){return pt.get(Dn,Vl)}};return sr&&sr.relevant?sn(lr,Jt)&&sr.relevant(lr,Jt):sn(lr,Jt)},lm=Ge(xd(yr.getValues())),bd=Q(lm,3),Mf=bd[0],um=bd[1],Ph=bd[2],fm=function(lr){return sr&&sr.relevant?sr.relevant(lr):!0},cm=function(){var lr=xd(yr.getValues()),sn=Ph();return lr!=sn&&um(lr),lr};(0,d.useEffect)(function(){!Mf&&!Ve&&gs.current.reset()},[Mf]);var ii=function(){return Be?yr.getDerrivedValue(i):qy()},Ul=function(lr){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln=sn.preventUpdate;We&&yr.getStep()<We?(Pt("Setting ".concat(i,"'s error to undefined as we are not at that step")),wh(void 0),Ut.setError(Rt,void 0,!Ln)):(Pt("Setting ".concat(i,"'s error to ").concat(lr)),wh(lr),Ut.setError(Rt,lr,!Ln))},wd=function(lr,sn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=lr;Ui.current=!0,Pt("Setting ".concat(i," to ").concat(Jt)),Er&&(Jt=Er(Jt));var go=yr.getOptions(),Dn=Jt;if(Jt===""&&!me&&!Ln.allowEmptyString&&!go.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),sn&&sn.target&&sn.target.selectionStart&&om(sn.target.selectionStart),y&&!Ae&&(Dn=y(Jt,yd()),Jt=y(Jt,yd())),A&&!Ae){var Vl=A(Jt,yd());Dn=Vl.value,Jt=Vl.value,md(Vl.offset)}if(w&&E&&(Jt=E(Jt),Dn=w(Jt)),F){var Ih=Ue(Jt,F);md(Ih.offset),Dn=Ih.value,Jt=Dn}G&&(Jt=Jt!=null?G(Jt):Jt),wi&&ne&&!Ln.initial&&(Pt("Validating after change ".concat(i," ").concat(Jt)),Ul(wi(Jt,yr.getValues()))),cd(Jt),vd(Dn),Te&&Te(Jt),Ut.setValue(Rt,Jt,!Ln.preventUpdate)};Bt(function(){gs.current.setValue(Ch.current)},Y(br));var Sd=function(lr,sn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Ln.preventUpdate;if(Pt("Field ".concat(i," has been touched")),wi&&oe&&!sn&&lr&&(Pt("Validating after blur ".concat(i," ").concat(ii())),Ul(wi(ii(),yr.getValues()))),s&&ge&&!sn&&lr&&(Pt("Validating async after blur ".concat(i," ").concat(ii())),s(ii(),yr.getValues())),y&&Ae){var go=y(ii());cd(go),vd(go),Te&&Te(go),Ut.setValue(Rt,go,!Jt)}if(A&&Ae){var Dn=A(ii());md(Dn.offset),cd(Dn.value),vd(Dn.value),Te&&Te(Dn.value),Ut.setValue(Rt,Dn.value,!Jt)}nm(lr),Ut.setTouched(Rt,lr,!Jt)},dm=function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=lr.preventUpdate,Ln=hn(Oh.current||Ut.getInitialValue(vo.current),y,F,G,Er);wd(Ln,null,{initial:!0,preventUpdate:sn}),Ul(ye?wi(Ln):void 0,{preventUpdate:sn}),Sd(void 0,!0,{preventUpdate:sn}),Ui.current=!1},pm=function(lr){wi&&(Pt("Field validating ".concat(i," ").concat(ii())),Ul(wi(ii(),lr||yr.getValues())))},hm=function(lr){s&&(Pt("Field async validating ".concat(i," ").concat(ii())),s(ii(),lr||yr.getValues()))},Ad={setValue:wd,setTouched:Sd,setError:Ul,reset:dm,validate:pm,asyncValidate:hm,getValue:ii,getTouched:Ah,getError:tm,getIsRelevant:Ph,getDirty:If,getPristine:Dl,getFieldState:function(){return{value:ii(),touched:Ah(),dirty:If(),pristine:Dl()}},relevant:xd,multistepRelevant:fm,checkRelevant:cm};gs.current=Ad;var jl={value:Bl,error:bh,touched:Sh,maskedValue:hd,isRelevant:Mf,dirty:Ui.current,pristine:!Ui.current};Be&&(jl={error:bh,touched:Sh}),Pt("Render",yr.getFullField(i),jl),vt(function(){var qr=yr.getFullField(vo.current);return Pt("Register",Rt,vo.current),ho.current={field:qr,fieldId:Rt,fieldApi:Ad,fieldState:jl,notify:He,keepState:Ve,inMultistep:on,shadow:Be},Ut.register(Rt,ho.current),function(){var lr=yr.getFullField(vo.current);Pt("Deregister",Rt,lr),Ut.deregister(Rt)}},[]),(0,d.useEffect)(function(){var qr=yr.getFullField(i);return Ll.current?Ll.current=!1:(Pt("Update",i,on),ho.current.field=qr,Ut.update(Rt,ho.current,Th.current)),function(){Th.current=qr}},[i]),vt(function(){De&&ji&&(ji.current.style.border="5px solid orange",setTimeout(function(){ji.current.style.borderWidth="2px",ji.current.style.borderStyle="inset",ji.current.style.borderColor="initial",ji.current.style.borderImage="initial"},500))});var vm=[].concat(Y(Object.values(jl)),Y(Object.values(t)),Y(Object.values(Dr))),gm=function(lr){return(0,d.useMemo)(function(){return Mf?lr:null},Y(vm))},Ed=i,ym=Si({fieldType:Je,setValue:wd,onChange:$e,multiple:et,ref:ji}),mm=Gr({setTouched:Sd,onBlur:gt}),xm=Vi({fieldType:Je,maskedValue:hd,multiple:et,value:Bl}),bm=Nn(Je);return{fieldState:jl,fieldApi:Ad,render:gm,ref:ji,userProps:j(j({},Dr),{},{multiple:et,onChange:$e,onBlur:gt,id:Dr.id||Rt}),informed:j({name:Ed,multiple:et,onChange:ym,onBlur:mm,value:xm,ref:ji,type:bm,id:Dr.id||Rt},Dr)}}var $r=function(r){var i=d.forwardRef(function(o,s){var p=Tn(o,s),y=p.fieldState,A=p.fieldApi,w=p.render,E=p.ref,F=p.userProps;return w(d.createElement(r,D({fieldApi:A,fieldState:y,field:o.field,forwardedRef:E,debug:o.debug,type:o.type},F)))});return i.displayName="asField(".concat(Ke(r),")"),i},Ai=Me("informed:Text "),Ei=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.forwardedRef,ne=s.debug,oe=s.label,ye=s.title,ge=s.id,Ae=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ai("Render",F),vt(function(){ne&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),d.createElement(d.Fragment,null,oe?d.createElement("label",{htmlFor:ge}," ",oe," "):null,d.createElement("input",D({},Ae,{id:ge,name:F,ref:te,value:!p&&p!==0?"":p,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){A(!0),E&&E(Te)}})))},en=$r(Ei),gn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.forwardedRef,ne=s.debug,oe=s.label,ye=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){ne&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),d.createElement(d.Fragment,null,oe?d.createElement("label",{htmlFor:ye}," ",oe," "):null,d.createElement("textarea",D({},ge,{id:ye,name:F,ref:te,value:p||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)}})))},Bn=$r(gn),Un=Me("informed:Select "),yn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,F=s.initialValue,G=s.options,te=s.children,ne=s.forwardedRef,oe=s.debug,ye=s.multiple,ge=s.label,Ae=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),He=function(ze){var De=Array.from((ne||Te).current).filter(function(Be){return Be.selected}).map(function(Be){return Be.value});i.setValue(ye?De:De[0]||""),A&&ze&&A(ze)};return vt(function(){oe&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),Un("Render",E,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ae}," ",ge," "):null,d.createElement("select",D({},me,{id:Ae,multiple:ye,name:E,ref:ne||Te,value:p||(ye?[]:""),onChange:He,onBlur:function(ze){y(!0),w&&w(ze)}}),G?G.map(function(Ve){return d.createElement("option",{key:Ve.value,value:Ve.value,disabled:Ve.disabled},Ve.label)}):te))},Jn=$r(yn),Ci=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.debug,ne=s.forwardedRef,oe=s.id,ye=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ye?d.createElement("label",{htmlFor:oe}," ",ye," "):null,d.createElement("input",D({},ge,{id:oe,name:F,ref:ne,checked:!!p,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)},type:"checkbox"})))},Br=$r(Ci),Kr=function(r){return d.forwardRef(function(i,o){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:y,ref:o},i))})})},Xn=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,y=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,F=s.value,G=s.onChange,te=s.onBlur,ne=s.field,oe=s.initialValue,ye=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:ne,ref:ye,value:F,checked:p===F,onChange:function(me){!me.target.checked||(y(F),G&&G(me),w&&w(me))},onBlur:function(me){A(!0),te&&te(me),E&&E(me)},type:"radio"}))},fr=Kr(Xn),Ot=function(t){q(i,t);var r=_(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(A){return d.createElement("label",{key:A.value},A.label," ",d.createElement(fr,{value:A.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ai=$r(Ot);function Oi(){return(0,d.useContext)(St)}var En=function(){var r=Oi(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var jn=function(){var r=Zt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Qn=Me("informed:useArrayField "),fa=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Ie(),w=(0,d.useState)(new Map),E=Q(w,1),F=E[0],G=(0,d.useContext)(kt),te=A.getFullField(i),ne=G.getInitialValue(i)||o||[],oe=A.getSavedValue(te)&&A.getSavedValue(te).value,ye=Ge(oe||ne),ge=Q(ye,3),Ae=ge[0],me=ge[1],Te=ge[2],He=Ae?Ae.map(function(){return le()}):[],Ve=Ge(He),ze=Q(Ve,3),De=ze[0],Be=ze[1],We=ze[2],Je=(0,d.useMemo)(function(){return function(Yt,Rt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Rt):void 0}}),et=Tn(j({field:i,validate:s?Je:void 0,shadow:!0},y)),$e=et.fieldApi;vt(function(){var Yt=function(Ut){Ut!==te&&(Qn("".concat(te," changed")),RegExp("".concat(te,"\\[[0-9]+\\]")).test(Ut)&&$e.validate())};return A.emitter.on("value",Yt),function(){A.emitter.removeListener("value",Yt)}},[i]);var gt=function(Rt){Qn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(De.length-1,"]")),G.expectRemoval("".concat(i,"[").concat(Rt,"]")),G.expectRemoval("".concat(i,"[").concat(De.length-1,"]"));var Ut=De.slice(0,Rt).concat(De.slice(Rt+1,De.length));Be(Ut);var sr=Te(),on=sr.slice(0,Rt).concat(sr.slice(Rt+1,sr.length));me(on)},Nt=function(Rt,Ut){Qn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Ut,"]"));var sr=Y(De);De[Rt]&&De[Ut]?(sr[Rt]=De[Ut],sr[Ut]=De[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Ut," but one of them does not exist :(")),Be(sr)},Gt=function(){De.push(le()),Be(Y(De))},or=function(Rt){De.push(le()),Be(Y(De));var Ut=Y(Te());Ut[De.length-1]=Rt,me(Ut)},kr=function(){var Rt=G.getInitialValue(i)||o||[];me(Rt);var Ut=Rt?Rt.map(function(){return le()}):[];Be(Ut)},Er=De.map(function(Yt,Rt){var Ut={remove:function(){return gt(Rt)}},sr={initialValue:Ae&&Ae[Rt],key:Yt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:sr},Ut),sr)}),Qr={add:Gt,swap:Nt,addWithInitialValue:or,reset:kr};p&&(p.current=Qr);var br={fields:Er,field:i},Dr=j(j({},G),{},{register:function(Rt,Ut){F.set(Rt,Ut);for(var sr=arguments.length,on=new Array(sr>2?sr-2:0),yr=2;yr<sr;yr++)on[yr-2]=arguments[yr];G.register.apply(G,[Rt,Ut].concat(on))},deregister:function(Rt){F.delete(Rt);for(var Ut=arguments.length,sr=new Array(Ut>1?Ut-1:0),on=1;on<Ut;on++)sr[on-1]=arguments[on];G.deregister.apply(G,[Rt].concat(sr))},getInitialValue:function(Rt){if(RegExp("".concat(te,"\\[[0-9]+\\]")).test(Rt)){var Ut=Rt.replace(i,""),sr=pt.get(Te(),Ut);return Qn("Resetting ".concat(Ut," to ").concat(sr)),sr}return G.getInitialValue(Rt)}}),An=function(Rt){return d.createElement(kt.Provider,{value:Dr},d.createElement(St.Provider,{value:Qr},d.createElement(Vt.Provider,{value:br},Rt)))};return{render:An,add:Gt,swap:Nt,addWithInitialValue:or,fields:Er,arrayFieldState:br,arrayFieldApi:Qr,field:i}},at=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),i=(0,d.useMemo)(function(){return at(t,r)},[t]);return i}function oi(){var t=(0,d.useContext)(Et);return t}var ue=function(r){var i=r.when,o=r.children,s=oi(),p=i(s);return p?o:null},Oe=function(r){var i=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var y=p.getFullField(o),A={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(F,G){return pt.get(F,G)}},w=function(F){var G=F.values;return i(G,A)};return d.createElement(ue,{when:w},d.createElement(qe,D({field:o},s)))}else return d.createElement(qe,D({field:o},s))},qe=function(r){var i=r.children,o=C(r,["children"]),s=fa(o),p=s.render,y=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:y},A),y)):i)},st=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),y=Ie(),A=(0,d.useState)(0),w=Q(A,2),E=w[0],F=w[1],G=(0,d.useState)(new Map),te=Q(G,1),ne=te[0],oe=i.field,ye=Lt(oe),ge=function(){var De=y.getState(),Be=De.values,We=De.errors,Je=De.touched,et={values:pt.get(Be,oe),errors:pt.get(We,oe),touched:pt.get(Je,oe)};return et};(0,d.useEffect)(function(){var ze=function(Be){var We=Be.slice(0,Be.lastIndexOf("[")!=-1?Be.lastIndexOf("]")+1:Be.length);We===oe&&F(Math.random())};return y.emitter.on("value",ze),function(){y.emitter.removeListener("value",ze)}},[oe]);var Ae=function(){ne.forEach(function(De){De.fieldApi.reset()})},me=ge(),Te=j(j({},p),{},{register:function(De,Be,We){ne.set(De,Be),p.register(De,Be,We)},deregister:function(De){ne.delete(De);for(var Be=arguments.length,We=new Array(Be>1?Be-1:0),Je=1;Je<Be;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[De].concat(We))}}),He=j(j(j({},o),ye),{},{reset:Ae}),Ve=j(j({},i),me);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:He},d.createElement(ve.Provider,{value:Ve},s(j(j({arrayFieldItemApi:He,arrayFieldItemState:Ve},He),Ve))))):d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:He},d.createElement(ve.Provider,{value:Ve},s)))};Oe.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,A=p.key;return d.createElement(st,{key:A,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var lt=function(r){var i=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return i?i.map(function(p,y){var A=p["ui:control"],w=s[A];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Me("informed:FormFields "),Xt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),y=p.fieldMap,A=(0,d.useMemo)(function(){var w=de(i,s,o),E=w.map(function(F,G){var te=F.field,ne=F.props,oe=F.type,ye=F.properties,ge=F.items,Ae=F.componentType,me=F.uiBefore,Te=F.uiAfter,He=F.allOf,Ve=y[Ae];return Kt("Rendering Field",te,F),!Ve&&oe==="object"&&ye?d.createElement(t,{schema:F,prefix:te,key:"ScheamField-".concat(G)}):!Ve&&oe==="array"&&ge?d.createElement(Or,D({key:"ScheamField-".concat(G),field:te,items:ge,uiBefore:me,uiAfter:Te},ne)):Ve&&Ae==="array"&&ge&&oe==="array"?d.createElement(Ve,D({key:"ScheamField-".concat(G),field:te,items:ge,uiBefore:me,uiAfter:Te},ne)):Ae==="conditionals"?He.map(function(ze){var De=ze.then,Be=ze.if.properties,We=function(et){var $e=et.values;return Object.keys(Be).every(function(gt){var Nt=Be[gt];return $e[gt]===Nt.const})};return d.createElement(ue,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:De}))}):Ve?d.createElement(Ve,D({key:"ScheamField-".concat(G),field:te},ne)):null});return E},[i,o]);return A},Or=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:i},y),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(A){var w=A.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:o["ui:before"]}),d.createElement(Xt,{schema:o,prefix:w}),d.createElement(lt,{components:o["ui:after"]}))}),d.createElement(lt,{components:p}))},Tr={select:Jn,input:en,textarea:Bn,checkbox:Br,radio:ai,add:En,remove:jn,array:Or},_t=Me("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}},tn=function(){},ys=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||Tr,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:tn,setTouched:tn,setError:tn,reset:tn,validate:tn,getValue:tn,getTouched:tn,getError:tn,getFieldState:tn,checkRelevant:tn,getPristine:tn,getDirty:tn}},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,F=r.fieldsById.get(A);F.shadow||pt.set(r.state.values,F.field,F.fieldApi.getValue()),F.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,F.field),r.fieldsById.forEach(function(G){var te=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!te&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),E&&(r.emit("change"),r.emit("field",F.field),r.emit("value",F.field,w))},setTouched:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&pt.set(r.state.touched,F.field,F.fieldApi.getTouched()),F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,F.field,F.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",F.field))},setError:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&pt.set(r.state.errors,F.field,F.fieldApi.getError());var G=pt.get(r.state.errors,F.field);(F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)||F.shadow&&F.fieldApi.getError()===void 0&&F.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,F.field,F.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",F.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.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()?(_t("Submit",this.state),this.emit("submit")):(_t("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 _t("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 _t("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return _t("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("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){_t("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 y=".".concat(i),A="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(A);w&&(_t("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=Q(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(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("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;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Re(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 y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var A=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(A,w.field)){var E=pt.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){_t("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()?(_t("Submit",this.state),this.emit("submit")):(_t("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,y=o.state;_t("Register ID:",i,"Name:",p,y,"Initial",s);var A=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,F){E&&E.field===p&&(w=F)}),w&&(o.keepState||o.inMultistep)?(_t("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),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),_t("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;_t("Deregister",i,s),delete this.onScreen[i];var p=Wl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(_t("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)&&(_t("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[y]&&(_t("Pulling out",s,"with magic value",y),pt.pullOut(this.state.values,y),pt.pullOut(this.state.touched,y),pt.pullOut(this.state.errors,y),pt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){_t("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),y=o.fieldApi.getError(),A=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,y),pt.set(this.state.touched,o.field,A),this.emit("change")}}]),t}(),yo=Me("informed:FormProvider "),ms=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(yo("Render FormProvider"),o)return yo("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Ht.Provider,{value:o},d.createElement(Et.Provider,{value:p},i)));yo("Render FormProvider with generated values");var A=bs(y);return d.createElement(kt.Provider,{value:A.formController.updater},d.createElement(Ht.Provider,{value:A.formApi},d.createElement(Et.Provider,{value:A.formState},i)))},xs=Me("informed:useForm "),bs=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,F=r.onChange,G=r.onReset,te=r.onSubmit,ne=r.onValueChange,oe=r.onSubmitFailure,ye=r.validationSchema,ge=r.schema,Ae=r.ajv,me=r.fieldMap,Te=r.onlyValidateSchema,He=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);xs("Render useForm");var Ve=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:A,validationSchema:ye,schema:ge,ajv:Ae,fieldMap:me}},[i,o,s,p,y,A,ye,ge,Ae,me]),ze=(0,d.useState)(function(){return new ys(Ve)}),De=Q(ze,1),Be=De[0];(0,d.useEffect)(function(){Be.setOptions(Ve)},[Ve]),vt(function(){Be.mount()},[]);var We=(0,d.useState)(function(){return Be.getFormState()}),Je=Q(We,2),et=Je[0],$e=Je[1];vt(function(){var kr=function(){return F&&F(Be.getFormState())},Er=function(){return G&&G()},Qr=function(){return te&&te(Be.getFormState().values)},br=function(){return ne&&ne(Be.getFormState().values)},Dr=function(){return oe&&oe(Be.getFormState().errors)};return Be.on("change",kr),Be.on("reset",Er),Be.on("submit",Qr),Be.on("value",br),Be.on("failure",Dr),function(){Be.removeListener("change",kr),Be.removeListener("reset",Er),Be.removeListener("submit",Qr),Be.removeListener("value",br),Be.removeListener("failure",Dr)}},[F,G,te,ne,oe]),(0,d.useState)(function(){var kr=function(){xs("Setting form state"),$e(Be.getFormState())};Be.on("change",kr),w&&w(Be.getFormApi()),E&&(E.current=Be.getFormApi())});var gt=(0,d.useState)(function(){return Be.getFormApi()}),Nt=Q(gt,1),Gt=Nt[0],or=function(Er){return d.createElement(ms,{formApi:Gt,formState:et,formController:Be},d.createElement(d.Fragment,null,Er||d.createElement(Xt,{schema:ge,onlyValidateSchema:Te})))};return{formApi:Gt,formState:et,formController:Be,render:or,userProps:He}},Hl=Me("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 y=bs(p),A=y.formApi,w=y.formController,E=y.formState,F=y.render,G=y.userProps,te=function(){var oe={formState:E,formApi:A};return s?d.createElement(s,oe,i):o?o(oe):typeof i=="function"?i(oe):i};return F(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),te()))},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)}})},Lf=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,A=i.setError,w=i.update,E=i.getField,F=i.expectRemoval,G=i.getInitialValue,te=i.fieldMap,ne=i.getSavedValue;return{register:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return o.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},deregister:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},update:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setValue:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setTouched:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setError:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return A.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getField:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},expectRemoval:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return F.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getInitialValue:function(ye){return G("".concat(r,".").concat(ye))},getSavedValue:function(ye){return ne("".concat(r,".").concat(ye))},fieldMap:te}},Df=function(r){var i=r.scope,o=r.children,s=useContext(kt),p=Ie(),y=oi(),A=useMemo(function(){return Rf(i,p)},[i]),w=useMemo(function(){return Lf(i,s)},[i]);return React.createElement(kt.Provider,{value:w},React.createElement(Ht.Provider,{value:A},React.createElement(Et.Provider,{value:y},o)))},Ti=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,y=s.dirty,A=s.invalid,w=s.values,E=s.errors,F=s.touched,G=s.validating,te=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:A,values:w,errors:E,touched:F,validating:G,submitting:te},null,2)))},Nf=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,y=s.validate,A=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),F=E[0],G=(0,d.useRef)(0),te=Ge({current:i,steps:[],goal:null}),ne=Q(te,3),oe=ne[0],ye=ne[1],ge=ne[2],Ae=(0,d.useState)(function(){var Ve=function(){var Be=ge(),We=Be.current,Je=F.get(We);return Je},ze={getState:function(){return ge()},getCurrentStep:Ve,getStep:function(Be){return F.get(Be)},getNumberOfSteps:function(){return F.size},next:function(){if(y(),A()){var Be=Ve(),We=Be.getNext,Je=We(),et=typeof Je=="function"?Je(p()):Je;et&&ye(function($e){return j(j({},$e),{},{current:et})})}},back:function(){var Be=Ve(),We=Be.getPrevious,Je=We(),et=typeof Je=="function"?Je(p()):Je;et&&ye(function($e){return j(j({},$e),{},{current:et})})},setCurrent:function(Be){if(Be){var We=F.get(Be).index;We<Ve().index?ye(function(Je){return j(j({},Je),{},{current:Be,goal:null})}):ye(function(Je){return j(j({},Je),{},{goal:Be})})}},register:function(Be,We,Je){Je?(G.current=G.current+1,F.set(Be,j(j({},We),{},{index:G.current}))):ye(function(et){return j(j({},et),{},{steps:Array.from(F.keys())})})},deregister:function(Be){F.delete(Be),G.current=G.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(F.keys())})})}};return o&&(o.current=ze),ze}),me=Q(Ae,1),Te=me[0],He=function(ze){return d.createElement($.Provider,{value:Te},d.createElement(z.Provider,{value:oe},ze))};return j(j(j({},Te),oe),{},{render:He})};function Bf(){return(0,d.useContext)(z)}function mo(){return(0,d.useContext)($)}var Ia=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,y=oi(),A=y.values,w=Bf(),E=w.current,F=w.goal,G=mo(),te=G.register,ne=G.deregister,oe=G.next,ye=i===E,ge=p?p(A):!0,Ae=(0,d.useRef)(o),me=(0,d.useRef)(s),Te=(0,d.useRef)();Ae.current=o,me.current=s,Te.current=p,(0,d.useState)(function(){te(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return te(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}}),function(){ne(i)}},[i]),(0,d.useEffect)(function(){F&&ye&&F!==i&&oe()},[F,ye]);var He=function(ze){return d.createElement(Se.Provider,{value:{relevant:function(Be){return Te.current?Te.current(Be):!0},multistep:!0}},ye&&ge?ze:null)};return{isCurrent:ye,isRelevant:ge,step:i,render:He}};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=Ia(o),p=s.render;return p(i)};var Cd=function(r){var i=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),y=p.getFullField,A=p.getOptions,w=y(i),E=A(),F=E.schema,G=ae(w),te=pt.get(F,G);if(!te)return null;var ne=re(i,te),oe=ne.props,ye=ne.componentType,ge=s[ye];return React.createElement(ge,D({field:i},oe))},Od=function(){var r=Ie(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Xt,{schema:s})},Td=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))})})},Gl=function(r){return React.forwardRef(function(i,o){return React.createElement(Et.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=Q(o,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return vt(function(){var A=function(E){E===t&&y()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),vt(function(){y()},[]),r.getFieldState()||{}}var jf=function(r){return function(i){return function(o){var s=Yl(r);return React.createElement(i,D({fieldState:s},o))}}},ws=function(r){return function(i){return function(o){var s=Kl(r);return React.createElement(i,D({fieldApi:s},o))}}},Ss=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,Fa=a(80150),As=a(89356),Wi=a(63263),Vf=a(30699),xo=a(58377),Vn=a(28834),Xl=a(13038),Wf=a(32752),ka=a(44341);function Es(t,r,i){return r in t?ka(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function si(t,r){var i=As(t);if(Wi){var o=Wi(t);r&&(o=Vf(o).call(o,function(s){return xo(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;Vn(o=si(Object(i),!0)).call(o,function(p){Es(t,p,i[p])})}else if(Xl)Wf(t,Xl(i));else{var s;Vn(s=si(Object(i))).call(s,function(p){ka(t,p,xo(i,p))})}}return t}var li=a(28583),Hi=a.n(li),Cs=a(10240),zi=a.n(Cs),Pi=a(8575),Gi=a(51446),Os=a(19996),Ts=a(78363),Ql=a(95238),Ps=a(53592);function Is(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 Fs(t,r){var i;if(!!t){if(typeof t=="string")return Is(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 Ps(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Is(t,r)}}function $i(t,r){var i=typeof Gi!="undefined"&&Os(t)||t["@@iterator"];if(!i){if(Ts(t)||(i=Fs(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.
80
+ `+ye)}else F[0]=te+" "+F[0]}function o(F,G){if(F[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var te="color: "+G.color,ne=0,se=0;F[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(ne++,ye==="%c"&&(se=ne))}),F.splice(se,0,te)}}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 F;try{F=localStorage.getItem("debug")}catch(G){}return!F&&typeof process!="undefined"&&"env"in process&&(F={}.DEBUG),{namespaces:F||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var te=arguments.length,ne=new Array(te),se=0;se<te;se++)ne[se]=arguments[se];F&&ne.unshift(F);var ye=G.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ge=ye.some(function(Te){return Te.test(F)}),Ae={color:r(F,G.colors),namespace:F,useColors:G.useColors};if(!1)var me}}function w(F){return A(F,y())}function E(F){return A(F,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Me("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?o:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,i){var o=Xe(i),s=ft(i),p=o?Ze(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,y,A){return y===A.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+A[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+A[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=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,y,A){return s===void 0?s:(y===A.length-1&&(delete s[p],o=!0),s[p])},r),o},ut=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,y,A){return s===void 0?s:(y===A.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},mt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},xt=function(r){var i=rt(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 mt(i).length===0}},{key:"get",value:function(i,o){var s=Ze(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(xt(o)&&t.get(i,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),wt(i,o,void 0);var p=rt(o);p=p.slice(0,p.length-1),Mt(i,p)}else!xt(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),xt(o)?(Pe("ARRAY",o),this.pullOut(i,o)):nt(i,o);var s=rt(o);s=s.slice(0,s.length-1),Mt(i,s)}},{key:"pullOut",value:function(i,o){var s=rt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var y=Ze(i,s);Pe("Array",y),Array.isArray(y)&&ut(y,p),Mt(i,s)}}]),t}();function Mt(t,r){if(r.length!==0){var i=Ze(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&nt(t,r),Mt(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(){}}),Et=d.createContext({}),Ht=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),St=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(Ht);return t}function Ge(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Q(o,2),p=s[0],y=s[1];r.current=p;var A=function(F){r.current=F,i.current&&y(F)},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){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(y){o.e(y)}finally{o.f()}}return i},Re=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=P(s);return o}},K=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 K(o)}},O=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,A=s.keyword,w=s.params,E=y;A==="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,y=new Array(p),A=0;A<p;A++)y[A]=arguments[A];var w=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(w,i)}},re=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,F=i.items,G=i.enum,te=i.title,ne=i.minimum,se=i.maximum,ye=i.minLength,ge=i.maxLength,Ae=i.pattern,me=i.type,Te=i.properties,He=le();y&&y.id&&(He=y.id);var Be={componentType:s,field:o?"".concat(o,".").concat(r):r,type:me,uiBefore:A,uiAfter:w,properties:me==="object"?Te:void 0,items:me==="array"?F:void 0,props:j(j({label:te,id:He,min:ne,max:se,minLength:ye,maxLength:ge,pattern:Ae},p),y)};if(E){var ze=i.oneOf.map(function(We){var Je=We["input:props"],et=Je===void 0?{}:Je;return j({value:We.const,label:We.title},et)});Be.props.options=ze}if(G){var De=i.enum.map(function(We){return{value:We,label:We}});Be.props.options=De}if(F&&F.oneOf){var Ue=F.oneOf.map(function(We){var Je=We["input:props"],et=Je===void 0?{}:Je;return j({value:We.const,label:We.title},et)});Be.props.options=Ue}return Be},de=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(F,G){var te=w.indexOf(F),ne=w.indexOf(G);return(te>-1?te:w.length+1)-(ne>-1?ne:w.length+1)}).map(function(F){var G=p[F],te=re(F,G,o);return te});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},ae=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},pe=function(r,i){if(typeof r=="string")return r.split("").map(function(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")},Ee=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},je=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=pe(i,o),p=s.findIndex(function(ge){return typeof ge!="string"}),y=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),A=[],w=o.split(""),E=0,F=0,G=Ee(s.slice(0,p),w.slice(0,p));G>-1&&(E=G+1,A=A.concat(s.slice(0,G+1)),F=G+1),G<0&&(A=A.concat(s.slice(0,p)),F=p);for(var te=F;te<s.length;te++){var ne=s[te];if(E!=w.length){var se=w[E];if(typeof ne=="function")A.push(ne(se)),E=E+1;else{var ye=typeof ne=="string"?ne===se:ne.test(se);ye&&typeof ne=="string"?(A.push(ne),E=E+1):!ye&&typeof ne=="string"?E!=w.length&&A.push(ne):ye&&typeof ne!="string"?(A.push(se),E=E+1):!ye&&typeof ne!="string"&&(E=E+1,te=te-1)}}else if(typeof ne=="string"&&te>=y)A.push(ne);else break}return{value:A.join(""),offset:o?A.length-o.length:0}},Ve=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),A=(o=(s=y.formatToParts(.1).find(function(ge){var Ae=ge.type;return Ae==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ge,Ae){return ge instanceof RegExp&&Ae instanceof RegExp&&ge.source===Ae.source&&ge.global===Ae.global&&ge.ignoreCase===Ae.ignoreCase&&ge.multiline===Ae.multiline}function E(ge,Ae){for(var me=ge.length;me--;)if(Ae(ge[me]))return me;return-1}function F(ge,Ae,me){var Te=Y(ge);return Array.isArray(me)?Te.splice.apply(Te,[Ae,0].concat(Y(me))):Te.splice(Ae,0,me),Te}function G(ge){return"".concat(ge).replace(/\D/g,"")}function te(ge){return"".concat(ge).split(A).map(function(Ae){return G(Ae)}).join(".")}function ne(ge){if(typeof ge=="number")return ge;var Ae=parseFloat(te(ge));return Number.isNaN(Ae)?void 0:Ae}function se(ge){var Ae=te(ge),me="".concat(Ae).split(".")[1],Te=p.formatToParts(Number(Ae));me==="0"&&Te.push({type:"decimal",value:A},{type:"fraction",value:me});var He=Te.reduce(function(De,Ue){var We=Ue.type,Je=Ue.value;return["decimal","fraction"].includes(We)&&me==null?De:["integer","fraction"].includes(We)?[].concat(Y(De),Y(Je.split("").filter(function(et,$e){return We==="fraction"?$e<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(De),Y(Je.split(""))):[].concat(Y(De),[Je])},[]),Be=E(He,function(De){return w(De,/\d/)});He.indexOf(A)===-1&&"".concat(ge).indexOf(A)!==-1&&(He=F(He,Be+1,[A,"[]"]),Be+=2);var ze=He.slice(Be+1).join("");return He=[].concat(Y(He.slice(0,Be+1)),[ze]),He}var ye=function(Ae){if(Ae!=null)return ne(Ae)};return{formatter:se,parser:ye}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Re,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:re,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ae,informedFormat:je,createIntlNumberFormatter:Ve}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,At=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=Ge(0),A=Q(y,3),w=A[0],E=A[1],F=A[2],G=Ge(0),te=Q(G,3),ne=te[0],se=te[1],ye=te[2];return vt(function(){if(o.current!=null&&F()){var ge=F()+ye();ye()!=0&&p?o.current.setSelectionRange(ge+1,ge+1):p&&o.current.setSelectionRange(ge,ge)}},[i]),{setCursorOffset:se,setCursor:E,cursor:w,getCursor:F,cursorOffset:ne}},Bt=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)},Pt=Me("informed:useField "),hn=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var y=je(r,o);return y.value}return r}},Nr=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=je(r,s);return p.value}return r},Cr=function(r,i,o){var s=o.required;if(r||i)return function(p,y){if(i)return T(i,p);if(r)return r(p,y)};if(s)return function(p){return vn(p,s)}},Si=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,y=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(y.current).filter(function(F){return F.selected}).map(function(F){return F.value});o(p?E:E[0]||"")}),i==="checkbox"&&(A=function(E){o(E.target.checked),s&&s(E)}),function(w){A(w)}},Gr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Vi=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}},Nn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},vn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Tn(){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,y=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,F=t.formatter,G=t.parser,te=t.initialValue,ne=t.validateOnChange,se=t.validateOnBlur,ye=t.validateOnMount,ge=t.asyncValidateOnBlur,Ae=t.maskOnBlur,me=t.allowEmptyString,Te=t.onValueChange,He=t.notify,Be=t.keepState,ze=t.maintainCursor,De=t.debug,Ue=t.shadow,We=t.step,Je=t.fieldType,et=t.multiple,$e=t.onChange,gt=t.onBlur,Nt=t.formController,zt=t.relevant,or=t.required,kr=t.keepStateIfRelevant,Er=t.initialize,Qr=t.formatterDependencies,br=Qr===void 0?[]:Qr,Dr=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"]),An=(0,d.useState)(le()),Yt=Q(An,1),Rt=Yt[0],Ut=(0,d.useContext)(kt),sr=(0,d.useContext)(Se),on=sr||kr,yr=Ie(),gs=(0,d.useRef)(),Ll=(0,d.useRef)(!0),ho=(0,d.useRef)(),Ui=(0,d.useRef)(!1),Dl=function(){return!Ui.current},If=function(){return Ui.current};Nt&&(Ut=Nt.updater,yr=Nt.getFormApi());var wi=Cr(o,p,{required:or}),Nl=(0,d.useState)(function(){return Ut.getInitialValue(i)}),Qy=Q(Nl,1),Zy=Qy[0],Ff=Ut.getSavedValue(i),kf,xh;(Be||on)&&Ff?(Pt("Setting field ".concat(Ed,"'s kept state"),Ff),kf=Ff.value,xh=Ff.touched,yr.removeSavedState(Ed)):te!=null?kf=te:kf=Zy;var _y=Ge(hn(kf,y,F,G,Er)),fd=Q(_y,3),Bl=fd[0],cd=fd[1],qy=fd[2],em=Ge(ye?wi(Bl):void 0),dd=Q(em,3),bh=dd[0],wh=dd[1],tm=dd[2],rm=Ge(xh),pd=Q(rm,3),Sh=pd[0],nm=pd[1],Ah=pd[2],im=(0,d.useState)(function(){return Nr(Bl,w,E,F)}),Eh=Q(im,2),hd=Eh[0],vd=Eh[1],Ch=(0,d.useRef)();Ch.current=hd;var Oh=(0,d.useRef)(te),vo=(0,d.useRef)(i),Th=(0,d.useRef)();Oh.current=te,vo.current=i;var am=(0,d.useRef)(null),ji=d.useMemo(function(){return r||am},[]),gd=At({value:Bl,inputRef:ji,maintainCursor:!!ze}),yd=gd.getCursor,om=gd.setCursor,md=gd.setCursorOffset,sm=function(){return!0},xd=function(lr){var sn=zt||sm,Ln=yr.getFullField(vo.current)||vo.current,Jt={path:Ln,parentPath:Ln.replace(/(.*)[.[].*/,"$1"),get:function(Dn,Vl){return pt.get(Dn,Vl)}};return sr&&sr.relevant?sn(lr,Jt)&&sr.relevant(lr,Jt):sn(lr,Jt)},lm=Ge(xd(yr.getValues())),bd=Q(lm,3),Mf=bd[0],um=bd[1],Ph=bd[2],fm=function(lr){return sr&&sr.relevant?sr.relevant(lr):!0},cm=function(){var lr=xd(yr.getValues()),sn=Ph();return lr!=sn&&um(lr),lr};(0,d.useEffect)(function(){!Mf&&!Be&&gs.current.reset()},[Mf]);var ii=function(){return Ue?yr.getDerrivedValue(i):qy()},Ul=function(lr){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln=sn.preventUpdate;We&&yr.getStep()<We?(Pt("Setting ".concat(i,"'s error to undefined as we are not at that step")),wh(void 0),Ut.setError(Rt,void 0,!Ln)):(Pt("Setting ".concat(i,"'s error to ").concat(lr)),wh(lr),Ut.setError(Rt,lr,!Ln))},wd=function(lr,sn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=lr;Ui.current=!0,Pt("Setting ".concat(i," to ").concat(Jt)),Er&&(Jt=Er(Jt));var go=yr.getOptions(),Dn=Jt;if(Jt===""&&!me&&!Ln.allowEmptyString&&!go.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),sn&&sn.target&&sn.target.selectionStart&&om(sn.target.selectionStart),y&&!Ae&&(Dn=y(Jt,yd()),Jt=y(Jt,yd())),A&&!Ae){var Vl=A(Jt,yd());Dn=Vl.value,Jt=Vl.value,md(Vl.offset)}if(w&&E&&(Jt=E(Jt),Dn=w(Jt)),F){var Ih=je(Jt,F);md(Ih.offset),Dn=Ih.value,Jt=Dn}G&&(Jt=Jt!=null?G(Jt):Jt),wi&&ne&&!Ln.initial&&(Pt("Validating after change ".concat(i," ").concat(Jt)),Ul(wi(Jt,yr.getValues()))),cd(Jt),vd(Dn),Te&&Te(Jt),Ut.setValue(Rt,Jt,!Ln.preventUpdate)};Bt(function(){gs.current.setValue(Ch.current)},Y(br));var Sd=function(lr,sn){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Ln.preventUpdate;if(Pt("Field ".concat(i," has been touched")),wi&&se&&!sn&&lr&&(Pt("Validating after blur ".concat(i," ").concat(ii())),Ul(wi(ii(),yr.getValues()))),s&&ge&&!sn&&lr&&(Pt("Validating async after blur ".concat(i," ").concat(ii())),s(ii(),yr.getValues())),y&&Ae){var go=y(ii());cd(go),vd(go),Te&&Te(go),Ut.setValue(Rt,go,!Jt)}if(A&&Ae){var Dn=A(ii());md(Dn.offset),cd(Dn.value),vd(Dn.value),Te&&Te(Dn.value),Ut.setValue(Rt,Dn.value,!Jt)}nm(lr),Ut.setTouched(Rt,lr,!Jt)},dm=function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=lr.preventUpdate,Ln=hn(Oh.current||Ut.getInitialValue(vo.current),y,F,G,Er);wd(Ln,null,{initial:!0,preventUpdate:sn}),Ul(ye?wi(Ln):void 0,{preventUpdate:sn}),Sd(void 0,!0,{preventUpdate:sn}),Ui.current=!1},pm=function(lr){wi&&(Pt("Field validating ".concat(i," ").concat(ii())),Ul(wi(ii(),lr||yr.getValues())))},hm=function(lr){s&&(Pt("Field async validating ".concat(i," ").concat(ii())),s(ii(),lr||yr.getValues()))},Ad={setValue:wd,setTouched:Sd,setError:Ul,reset:dm,validate:pm,asyncValidate:hm,getValue:ii,getTouched:Ah,getError:tm,getIsRelevant:Ph,getDirty:If,getPristine:Dl,getFieldState:function(){return{value:ii(),touched:Ah(),dirty:If(),pristine:Dl()}},relevant:xd,multistepRelevant:fm,checkRelevant:cm};gs.current=Ad;var jl={value:Bl,error:bh,touched:Sh,maskedValue:hd,isRelevant:Mf,dirty:Ui.current,pristine:!Ui.current};Ue&&(jl={error:bh,touched:Sh}),Pt("Render",yr.getFullField(i),jl),vt(function(){var qr=yr.getFullField(vo.current);return Pt("Register",Rt,vo.current),ho.current={field:qr,fieldId:Rt,fieldApi:Ad,fieldState:jl,notify:He,keepState:Be,inMultistep:on,shadow:Ue},Ut.register(Rt,ho.current),function(){var lr=yr.getFullField(vo.current);Pt("Deregister",Rt,lr),Ut.deregister(Rt)}},[]),(0,d.useEffect)(function(){var qr=yr.getFullField(i);return Ll.current?Ll.current=!1:(Pt("Update",i,on),ho.current.field=qr,Ut.update(Rt,ho.current,Th.current)),function(){Th.current=qr}},[i]),vt(function(){De&&ji&&(ji.current.style.border="5px solid orange",setTimeout(function(){ji.current.style.borderWidth="2px",ji.current.style.borderStyle="inset",ji.current.style.borderColor="initial",ji.current.style.borderImage="initial"},500))});var vm=[].concat(Y(Object.values(jl)),Y(Object.values(t)),Y(Object.values(Dr))),gm=function(lr){return(0,d.useMemo)(function(){return Mf?lr:null},Y(vm))},Ed=i,ym=Si({fieldType:Je,setValue:wd,onChange:$e,multiple:et,ref:ji}),mm=Gr({setTouched:Sd,onBlur:gt}),xm=Vi({fieldType:Je,maskedValue:hd,multiple:et,value:Bl}),bm=Nn(Je);return{fieldState:jl,fieldApi:Ad,render:gm,ref:ji,userProps:j(j({},Dr),{},{multiple:et,onChange:$e,onBlur:gt,id:Dr.id||Rt}),informed:j({name:Ed,multiple:et,onChange:ym,onBlur:mm,value:xm,ref:ji,type:bm,id:Dr.id||Rt},Dr)}}var $r=function(r){var i=d.forwardRef(function(o,s){var p=Tn(o,s),y=p.fieldState,A=p.fieldApi,w=p.render,E=p.ref,F=p.userProps;return w(d.createElement(r,D({fieldApi:A,fieldState:y,field:o.field,forwardedRef:E,debug:o.debug,type:o.type},F)))});return i.displayName="asField(".concat(Ke(r),")"),i},Ai=Me("informed:Text "),Ei=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.forwardedRef,ne=s.debug,se=s.label,ye=s.title,ge=s.id,Ae=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ai("Render",F),vt(function(){ne&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),d.createElement(d.Fragment,null,se?d.createElement("label",{htmlFor:ge}," ",se," "):null,d.createElement("input",D({},Ae,{id:ge,name:F,ref:te,value:!p&&p!==0?"":p,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){A(!0),E&&E(Te)}})))},en=$r(Ei),gn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.forwardedRef,ne=s.debug,se=s.label,ye=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){ne&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),d.createElement(d.Fragment,null,se?d.createElement("label",{htmlFor:ye}," ",se," "):null,d.createElement("textarea",D({},ge,{id:ye,name:F,ref:te,value:p||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)}})))},Bn=$r(gn),Un=Me("informed:Select "),yn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,F=s.initialValue,G=s.options,te=s.children,ne=s.forwardedRef,se=s.debug,ye=s.multiple,ge=s.label,Ae=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),He=function(ze){var De=Array.from((ne||Te).current).filter(function(Ue){return Ue.selected}).map(function(Ue){return Ue.value});i.setValue(ye?De:De[0]||""),A&&ze&&A(ze)};return vt(function(){se&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),Un("Render",E,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ae}," ",ge," "):null,d.createElement("select",D({},me,{id:Ae,multiple:ye,name:E,ref:ne||Te,value:p||(ye?[]:""),onChange:He,onBlur:function(ze){y(!0),w&&w(ze)}}),G?G.map(function(Be){return d.createElement("option",{key:Be.value,value:Be.value,disabled:Be.disabled},Be.label)}):te))},Jn=$r(yn),Ci=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.debug,ne=s.forwardedRef,se=s.id,ye=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ye?d.createElement("label",{htmlFor:se}," ",ye," "):null,d.createElement("input",D({},ge,{id:se,name:F,ref:ne,checked:!!p,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)},type:"checkbox"})))},Br=$r(Ci),Kr=function(r){return d.forwardRef(function(i,o){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:y,ref:o},i))})})},Xn=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,y=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,F=s.value,G=s.onChange,te=s.onBlur,ne=s.field,se=s.initialValue,ye=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:ne,ref:ye,value:F,checked:p===F,onChange:function(me){!me.target.checked||(y(F),G&&G(me),w&&w(me))},onBlur:function(me){A(!0),te&&te(me),E&&E(me)},type:"radio"}))},fr=Kr(Xn),Ot=function(t){q(i,t);var r=_(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(A){return d.createElement("label",{key:A.value},A.label," ",d.createElement(fr,{value:A.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ai=$r(Ot);function Oi(){return(0,d.useContext)(St)}var En=function(){var r=Oi(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var jn=function(){var r=Zt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Qn=Me("informed:useArrayField "),fa=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Ie(),w=(0,d.useState)(new Map),E=Q(w,1),F=E[0],G=(0,d.useContext)(kt),te=A.getFullField(i),ne=G.getInitialValue(i)||o||[],se=A.getSavedValue(te)&&A.getSavedValue(te).value,ye=Ge(se||ne),ge=Q(ye,3),Ae=ge[0],me=ge[1],Te=ge[2],He=Ae?Ae.map(function(){return le()}):[],Be=Ge(He),ze=Q(Be,3),De=ze[0],Ue=ze[1],We=ze[2],Je=(0,d.useMemo)(function(){return function(Yt,Rt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Rt):void 0}}),et=Tn(j({field:i,validate:s?Je:void 0,shadow:!0},y)),$e=et.fieldApi;vt(function(){var Yt=function(Ut){Ut!==te&&(Qn("".concat(te," changed")),RegExp("".concat(te,"\\[[0-9]+\\]")).test(Ut)&&$e.validate())};return A.emitter.on("value",Yt),function(){A.emitter.removeListener("value",Yt)}},[i]);var gt=function(Rt){Qn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(De.length-1,"]")),G.expectRemoval("".concat(i,"[").concat(Rt,"]")),G.expectRemoval("".concat(i,"[").concat(De.length-1,"]"));var Ut=De.slice(0,Rt).concat(De.slice(Rt+1,De.length));Ue(Ut);var sr=Te(),on=sr.slice(0,Rt).concat(sr.slice(Rt+1,sr.length));me(on)},Nt=function(Rt,Ut){Qn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Ut,"]"));var sr=Y(De);De[Rt]&&De[Ut]?(sr[Rt]=De[Ut],sr[Ut]=De[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Ut," but one of them does not exist :(")),Ue(sr)},zt=function(){De.push(le()),Ue(Y(De))},or=function(Rt){De.push(le()),Ue(Y(De));var Ut=Y(Te());Ut[De.length-1]=Rt,me(Ut)},kr=function(){var Rt=G.getInitialValue(i)||o||[];me(Rt);var Ut=Rt?Rt.map(function(){return le()}):[];Ue(Ut)},Er=De.map(function(Yt,Rt){var Ut={remove:function(){return gt(Rt)}},sr={initialValue:Ae&&Ae[Rt],key:Yt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:sr},Ut),sr)}),Qr={add:zt,swap:Nt,addWithInitialValue:or,reset:kr};p&&(p.current=Qr);var br={fields:Er,field:i},Dr=j(j({},G),{},{register:function(Rt,Ut){F.set(Rt,Ut);for(var sr=arguments.length,on=new Array(sr>2?sr-2:0),yr=2;yr<sr;yr++)on[yr-2]=arguments[yr];G.register.apply(G,[Rt,Ut].concat(on))},deregister:function(Rt){F.delete(Rt);for(var Ut=arguments.length,sr=new Array(Ut>1?Ut-1:0),on=1;on<Ut;on++)sr[on-1]=arguments[on];G.deregister.apply(G,[Rt].concat(sr))},getInitialValue:function(Rt){if(RegExp("".concat(te,"\\[[0-9]+\\]")).test(Rt)){var Ut=Rt.replace(i,""),sr=pt.get(Te(),Ut);return Qn("Resetting ".concat(Ut," to ").concat(sr)),sr}return G.getInitialValue(Rt)}}),An=function(Rt){return d.createElement(kt.Provider,{value:Dr},d.createElement(St.Provider,{value:Qr},d.createElement(Vt.Provider,{value:br},Rt)))};return{render:An,add:zt,swap:Nt,addWithInitialValue:or,fields:Er,arrayFieldState:br,arrayFieldApi:Qr,field:i}},at=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),i=(0,d.useMemo)(function(){return at(t,r)},[t]);return i}function oi(){var t=(0,d.useContext)(Et);return t}var ue=function(r){var i=r.when,o=r.children,s=oi(),p=i(s);return p?o:null},Oe=function(r){var i=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var y=p.getFullField(o),A={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(F,G){return pt.get(F,G)}},w=function(F){var G=F.values;return i(G,A)};return d.createElement(ue,{when:w},d.createElement(qe,D({field:o},s)))}else return d.createElement(qe,D({field:o},s))},qe=function(r){var i=r.children,o=C(r,["children"]),s=fa(o),p=s.render,y=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:y},A),y)):i)},st=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),y=Ie(),A=(0,d.useState)(0),w=Q(A,2),E=w[0],F=w[1],G=(0,d.useState)(new Map),te=Q(G,1),ne=te[0],se=i.field,ye=Lt(se),ge=function(){var De=y.getState(),Ue=De.values,We=De.errors,Je=De.touched,et={values:pt.get(Ue,se),errors:pt.get(We,se),touched:pt.get(Je,se)};return et};(0,d.useEffect)(function(){var ze=function(Ue){var We=Ue.slice(0,Ue.lastIndexOf("[")!=-1?Ue.lastIndexOf("]")+1:Ue.length);We===se&&F(Math.random())};return y.emitter.on("value",ze),function(){y.emitter.removeListener("value",ze)}},[se]);var Ae=function(){ne.forEach(function(De){De.fieldApi.reset()})},me=ge(),Te=j(j({},p),{},{register:function(De,Ue,We){ne.set(De,Ue),p.register(De,Ue,We)},deregister:function(De){ne.delete(De);for(var Ue=arguments.length,We=new Array(Ue>1?Ue-1:0),Je=1;Je<Ue;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[De].concat(We))}}),He=j(j(j({},o),ye),{},{reset:Ae}),Be=j(j({},i),me);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:He},d.createElement(ve.Provider,{value:Be},s(j(j({arrayFieldItemApi:He,arrayFieldItemState:Be},He),Be))))):d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:He},d.createElement(ve.Provider,{value:Be},s)))};Oe.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,A=p.key;return d.createElement(st,{key:A,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var lt=function(r){var i=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return i?i.map(function(p,y){var A=p["ui:control"],w=s[A];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Me("informed:FormFields "),Xt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),y=p.fieldMap,A=(0,d.useMemo)(function(){var w=de(i,s,o),E=w.map(function(F,G){var te=F.field,ne=F.props,se=F.type,ye=F.properties,ge=F.items,Ae=F.componentType,me=F.uiBefore,Te=F.uiAfter,He=F.allOf,Be=y[Ae];return Kt("Rendering Field",te,F),!Be&&se==="object"&&ye?d.createElement(t,{schema:F,prefix:te,key:"ScheamField-".concat(G)}):!Be&&se==="array"&&ge?d.createElement(Or,D({key:"ScheamField-".concat(G),field:te,items:ge,uiBefore:me,uiAfter:Te},ne)):Be&&Ae==="array"&&ge&&se==="array"?d.createElement(Be,D({key:"ScheamField-".concat(G),field:te,items:ge,uiBefore:me,uiAfter:Te},ne)):Ae==="conditionals"?He.map(function(ze){var De=ze.then,Ue=ze.if.properties,We=function(et){var $e=et.values;return Object.keys(Ue).every(function(gt){var Nt=Ue[gt];return $e[gt]===Nt.const})};return d.createElement(ue,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:De}))}):Be?d.createElement(Be,D({key:"ScheamField-".concat(G),field:te},ne)):null});return E},[i,o]);return A},Or=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:i},y),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(A){var w=A.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:o["ui:before"]}),d.createElement(Xt,{schema:o,prefix:w}),d.createElement(lt,{components:o["ui:after"]}))}),d.createElement(lt,{components:p}))},Tr={select:Jn,input:en,textarea:Bn,checkbox:Br,radio:ai,add:En,remove:jn,array:Or},_t=Me("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}},tn=function(){},ys=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||Tr,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:tn,setTouched:tn,setError:tn,reset:tn,validate:tn,getValue:tn,getTouched:tn,getError:tn,getFieldState:tn,checkRelevant:tn,getPristine:tn,getDirty:tn}},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,F=r.fieldsById.get(A);F.shadow||pt.set(r.state.values,F.field,F.fieldApi.getValue()),F.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,F.field),r.fieldsById.forEach(function(G){var te=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!te&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),E&&(r.emit("change"),r.emit("field",F.field),r.emit("value",F.field,w))},setTouched:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&pt.set(r.state.touched,F.field,F.fieldApi.getTouched()),F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,F.field,F.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",F.field))},setError:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&pt.set(r.state.errors,F.field,F.fieldApi.getError());var G=pt.get(r.state.errors,F.field);(F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)||F.shadow&&F.fieldApi.getError()===void 0&&F.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,F.field,F.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",F.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.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()?(_t("Submit",this.state),this.emit("submit")):(_t("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 _t("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 _t("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return _t("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("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){_t("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 y=".".concat(i),A="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(A);w&&(_t("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=Q(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(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("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;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Re(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 y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var A=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(A,w.field)){var E=pt.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){_t("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()?(_t("Submit",this.state),this.emit("submit")):(_t("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,y=o.state;_t("Register ID:",i,"Name:",p,y,"Initial",s);var A=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,F){E&&E.field===p&&(w=F)}),w&&(o.keepState||o.inMultistep)?(_t("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),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),_t("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;_t("Deregister",i,s),delete this.onScreen[i];var p=Wl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(_t("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)&&(_t("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[y]&&(_t("Pulling out",s,"with magic value",y),pt.pullOut(this.state.values,y),pt.pullOut(this.state.touched,y),pt.pullOut(this.state.errors,y),pt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){_t("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),y=o.fieldApi.getError(),A=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,y),pt.set(this.state.touched,o.field,A),this.emit("change")}}]),t}(),yo=Me("informed:FormProvider "),ms=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(yo("Render FormProvider"),o)return yo("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Ht.Provider,{value:o},d.createElement(Et.Provider,{value:p},i)));yo("Render FormProvider with generated values");var A=bs(y);return d.createElement(kt.Provider,{value:A.formController.updater},d.createElement(Ht.Provider,{value:A.formApi},d.createElement(Et.Provider,{value:A.formState},i)))},xs=Me("informed:useForm "),bs=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,F=r.onChange,G=r.onReset,te=r.onSubmit,ne=r.onValueChange,se=r.onSubmitFailure,ye=r.validationSchema,ge=r.schema,Ae=r.ajv,me=r.fieldMap,Te=r.onlyValidateSchema,He=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);xs("Render useForm");var Be=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:A,validationSchema:ye,schema:ge,ajv:Ae,fieldMap:me}},[i,o,s,p,y,A,ye,ge,Ae,me]),ze=(0,d.useState)(function(){return new ys(Be)}),De=Q(ze,1),Ue=De[0];(0,d.useEffect)(function(){Ue.setOptions(Be)},[Be]),vt(function(){Ue.mount()},[]);var We=(0,d.useState)(function(){return Ue.getFormState()}),Je=Q(We,2),et=Je[0],$e=Je[1];vt(function(){var kr=function(){return F&&F(Ue.getFormState())},Er=function(){return G&&G()},Qr=function(){return te&&te(Ue.getFormState().values)},br=function(){return ne&&ne(Ue.getFormState().values)},Dr=function(){return se&&se(Ue.getFormState().errors)};return Ue.on("change",kr),Ue.on("reset",Er),Ue.on("submit",Qr),Ue.on("value",br),Ue.on("failure",Dr),function(){Ue.removeListener("change",kr),Ue.removeListener("reset",Er),Ue.removeListener("submit",Qr),Ue.removeListener("value",br),Ue.removeListener("failure",Dr)}},[F,G,te,ne,se]),(0,d.useState)(function(){var kr=function(){xs("Setting form state"),$e(Ue.getFormState())};Ue.on("change",kr),w&&w(Ue.getFormApi()),E&&(E.current=Ue.getFormApi())});var gt=(0,d.useState)(function(){return Ue.getFormApi()}),Nt=Q(gt,1),zt=Nt[0],or=function(Er){return d.createElement(ms,{formApi:zt,formState:et,formController:Ue},d.createElement(d.Fragment,null,Er||d.createElement(Xt,{schema:ge,onlyValidateSchema:Te})))};return{formApi:zt,formState:et,formController:Ue,render:or,userProps:He}},Hl=Me("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 y=bs(p),A=y.formApi,w=y.formController,E=y.formState,F=y.render,G=y.userProps,te=function(){var se={formState:E,formApi:A};return s?d.createElement(s,se,i):o?o(se):typeof i=="function"?i(se):i};return F(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),te()))},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)}})},Lf=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,A=i.setError,w=i.update,E=i.getField,F=i.expectRemoval,G=i.getInitialValue,te=i.fieldMap,ne=i.getSavedValue;return{register:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return o.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},deregister:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},update:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setValue:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setTouched:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setError:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return A.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getField:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},expectRemoval:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return F.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getInitialValue:function(ye){return G("".concat(r,".").concat(ye))},getSavedValue:function(ye){return ne("".concat(r,".").concat(ye))},fieldMap:te}},Df=function(r){var i=r.scope,o=r.children,s=useContext(kt),p=Ie(),y=oi(),A=useMemo(function(){return Rf(i,p)},[i]),w=useMemo(function(){return Lf(i,s)},[i]);return React.createElement(kt.Provider,{value:w},React.createElement(Ht.Provider,{value:A},React.createElement(Et.Provider,{value:y},o)))},Ti=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,y=s.dirty,A=s.invalid,w=s.values,E=s.errors,F=s.touched,G=s.validating,te=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:A,values:w,errors:E,touched:F,validating:G,submitting:te},null,2)))},Nf=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,y=s.validate,A=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),F=E[0],G=(0,d.useRef)(0),te=Ge({current:i,steps:[],goal:null}),ne=Q(te,3),se=ne[0],ye=ne[1],ge=ne[2],Ae=(0,d.useState)(function(){var Be=function(){var Ue=ge(),We=Ue.current,Je=F.get(We);return Je},ze={getState:function(){return ge()},getCurrentStep:Be,getStep:function(Ue){return F.get(Ue)},getNumberOfSteps:function(){return F.size},next:function(){if(y(),A()){var Ue=Be(),We=Ue.getNext,Je=We(),et=typeof Je=="function"?Je(p()):Je;et&&ye(function($e){return j(j({},$e),{},{current:et})})}},back:function(){var Ue=Be(),We=Ue.getPrevious,Je=We(),et=typeof Je=="function"?Je(p()):Je;et&&ye(function($e){return j(j({},$e),{},{current:et})})},setCurrent:function(Ue){if(Ue){var We=F.get(Ue).index;We<Be().index?ye(function(Je){return j(j({},Je),{},{current:Ue,goal:null})}):ye(function(Je){return j(j({},Je),{},{goal:Ue})})}},register:function(Ue,We,Je){Je?(G.current=G.current+1,F.set(Ue,j(j({},We),{},{index:G.current}))):ye(function(et){return j(j({},et),{},{steps:Array.from(F.keys())})})},deregister:function(Ue){F.delete(Ue),G.current=G.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(F.keys())})})}};return o&&(o.current=ze),ze}),me=Q(Ae,1),Te=me[0],He=function(ze){return d.createElement($.Provider,{value:Te},d.createElement(z.Provider,{value:se},ze))};return j(j(j({},Te),se),{},{render:He})};function Bf(){return(0,d.useContext)(z)}function mo(){return(0,d.useContext)($)}var Ia=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,y=oi(),A=y.values,w=Bf(),E=w.current,F=w.goal,G=mo(),te=G.register,ne=G.deregister,se=G.next,ye=i===E,ge=p?p(A):!0,Ae=(0,d.useRef)(o),me=(0,d.useRef)(s),Te=(0,d.useRef)();Ae.current=o,me.current=s,Te.current=p,(0,d.useState)(function(){te(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return te(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}}),function(){ne(i)}},[i]),(0,d.useEffect)(function(){F&&ye&&F!==i&&se()},[F,ye]);var He=function(ze){return d.createElement(Se.Provider,{value:{relevant:function(Ue){return Te.current?Te.current(Ue):!0},multistep:!0}},ye&&ge?ze:null)};return{isCurrent:ye,isRelevant:ge,step:i,render:He}};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=Ia(o),p=s.render;return p(i)};var Cd=function(r){var i=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),y=p.getFullField,A=p.getOptions,w=y(i),E=A(),F=E.schema,G=ae(w),te=pt.get(F,G);if(!te)return null;var ne=re(i,te),se=ne.props,ye=ne.componentType,ge=s[ye];return React.createElement(ge,D({field:i},se))},Od=function(){var r=Ie(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Xt,{schema:s})},Td=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))})})},Gl=function(r){return React.forwardRef(function(i,o){return React.createElement(Et.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=Q(o,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return vt(function(){var A=function(E){E===t&&y()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),vt(function(){y()},[]),r.getFieldState()||{}}var jf=function(r){return function(i){return function(o){var s=Yl(r);return React.createElement(i,D({fieldState:s},o))}}},ws=function(r){return function(i){return function(o){var s=Kl(r);return React.createElement(i,D({fieldApi:s},o))}}},Ss=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,Fa=a(80150),As=a(89356),Wi=a(63263),Vf=a(30699),xo=a(58377),Vn=a(28834),Xl=a(13038),Wf=a(32752),ka=a(44341);function Es(t,r,i){return r in t?ka(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function si(t,r){var i=As(t);if(Wi){var o=Wi(t);r&&(o=Vf(o).call(o,function(s){return xo(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;Vn(o=si(Object(i),!0)).call(o,function(p){Es(t,p,i[p])})}else if(Xl)Wf(t,Xl(i));else{var s;Vn(s=si(Object(i))).call(s,function(p){ka(t,p,xo(i,p))})}}return t}var li=a(28583),Hi=a.n(li),Cs=a(10240),zi=a.n(Cs),Pi=a(8575),Gi=a(51446),Os=a(19996),Ts=a(78363),Ql=a(95238),Ps=a(53592);function Is(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 Fs(t,r){var i;if(!!t){if(typeof t=="string")return Is(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 Ps(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Is(t,r)}}function $i(t,r){var i=typeof Gi!="undefined"&&Os(t)||t["@@iterator"];if(!i){if(Ts(t)||(i=Fs(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
81
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,A;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){y=!0,A=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw A}}}}var Hf=a(23882);function ir(t){return typeof Gi=="function"&&typeof Hf=="symbol"?ir=function(i){return typeof i}:ir=function(i){return i&&typeof Gi=="function"&&i.constructor===Gi&&i!==Gi.prototype?"symbol":typeof i},ir(t)}function zf(t){if(Ts(t))return t}function Zl(t,r){var i=t&&(typeof Gi!="undefined"&&Os(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,p=!1,y,A;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(o.push(y.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 bo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
82
82
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(t,r){return zf(t)||Zl(t,r)||Fs(t,r)||bo()}var _l=a(69798);function ql(t,r,i,o,s,p,y){try{var A=t[p](y),w=A.value}catch(E){i(E);return}A.done?r(w):_l.resolve(w).then(o,s)}function ks(t){return function(){var r=this,i=arguments;return new _l(function(o,s){var p=t.apply(r,i);function y(w){ql(p,o,s,y,A,"next",w)}function A(w){ql(p,o,s,y,A,"throw",w)}y(void 0)})}}var Ma=a(63109),ar=a.n(Ma),Gf=a(78580),wo=a.n(Gf),Ra=a(72119),eu=a.n(Ra),tu=a(66419),$f=a.n(tu),Ms=a(59340),La=a.n(Ms),Kf=a(2991),qt=a.n(Kf),ru=a(86902),Qt=a.n(ru),Yf=a(77766),Ct=a.n(Yf),ui=a(26295),Da=a.n(ui),Rs=a(20116),ln=a.n(Rs),fi=a(31905),Ki=a(92495),Na=a.n(Ki),Jf=a(93320),Ls=a.n(Jf),Xf=a(78718),So=a.n(Xf),Ds=a(23560),Zn=a.n(Ds),Wn=a(88996);function Ao(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ns(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),ka(t,o.key,o)}}function Bs(t,r,i){return r&&Ns(t.prototype,r),i&&Ns(t,i),t}var nu=a(83863),iu=a(79542),Us=a(24889);function Yi(t){return Yi=iu?Us:function(i){return i.__proto__||Us(i)},Yi(t)}function Ba(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=Yi(t),t!==null););return t}function Ua(t,r,i){return typeof Reflect!="undefined"&&nu?Ua=nu:Ua=function(s,p,y){var A=Ba(s,p);if(!!A){var w=xo(A,p);return w.get?w.get.call(y):w.value}},Ua(t,r,i||t)}var au=a(189);function ja(t,r){return ja=iu||function(o,s){return o.__proto__=s,o},ja(t,r)}function Eo(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&&ja(t,r)}var Va=a(13535);function Co(){if(typeof Reflect=="undefined"||!Va||Va.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Va(Boolean,[],function(){})),!0}catch(t){return!1}}function Hn(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&&(ir(r)==="object"||typeof r=="function")?r:Hn(t)}function js(t){var r=Co();return function(){var o=Yi(t),s;if(r){var p=Yi(this).constructor;s=Va(o,arguments,p)}else s=o.apply(this,arguments);return ou(this,s)}}var Vs=a(94473),su=a.n(Vs),lu=a(57514),Ws=a.n(lu),Qf=function(r){var i=function(p,y){return{name:p,value:y}};if(Zn()(r.prototype.set)||Zn()(r.prototype.get)||Zn()(r.prototype.getAll)||Zn()(r.prototype.has))return r;var o=function(s){Eo(y,s);var p=js(y);function y(A){var w;return Ao(this,y),w=p.call(this,A),w.entryList=[],w}return Bs(y,[{key:"append",value:function(w,E,F){return this.entryList.push(i(w,E)),Ua(Yi(y.prototype),"append",this).call(this,w,E,F)}},{key:"set",value:function(w,E){var F,G=i(w,E);this.entryList=ln()(F=this.entryList).call(F,function(te){return te.name!==w}),this.entryList.push(G)}},{key:"get",value:function(w){var E,F=su()(E=this.entryList).call(E,function(G){return G.name===w});return F===void 0?null:F}},{key:"getAll",value:function(w){var E,F;return qt()(E=ln()(F=this.entryList).call(F,function(G){return G.name===w})).call(E,function(G){return G.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),y}(r);return o};const Zf=Qf(Ws());function _f(t){if(Ts(t))return Is(t)}function Ji(t){if(typeof Gi!="undefined"&&Os(t)!=null||t["@@iterator"]!=null)return Ps(t)}function ca(){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 _f(t)||Ji(t)||Fs(t)||ca()}var Hs=a(3649),In=a.n(Hs),uu=a(88996),zs=uu.Buffer,Xi=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Qi=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Mr(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):qt()(r=Pn(t)).call(r,function(p){var y,A;if(Qi(p)||Xi(p)&&o==="unsafe")return p;var w=qt()(y=qt()(A=zs.from(p).toJSON().data||[]).call(A,function(E){var F;return In()(F="0".concat(E.toString(16).toUpperCase())).call(F,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function _n(t){var r=t.value;return Array.isArray(r)?Ii(t):ir(r)==="object"?Oo(t):qf(t)}function Ii(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(G){return Mr(G,{escape:p})};if(o==="simple")return qt()(i).call(i,function(F){return y(F)}).join(",");if(o==="label")return".".concat(qt()(i).call(i,function(F){return y(F)}).join("."));if(o==="matrix")return qt()(i).call(i,function(F){return y(F)}).reduce(function(F,G){var te;if(!F||s){var ne,oe;return Ct()(ne=Ct()(oe="".concat(F||"",";")).call(oe,r,"=")).call(ne,G)}return Ct()(te="".concat(F,",")).call(te,G)},"");if(o==="form"){var A=s?"&".concat(r,"="):",";return qt()(i).call(i,function(F){return y(F)}).join(A)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return qt()(i).call(i,function(F){return y(F)}).join(" ".concat(w))}if(o==="pipeDelimited"){var E=s?"".concat(r,"="):"";return qt()(i).call(i,function(F){return y(F)}).join("|".concat(E))}}function Oo(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(E){return Mr(E,{escape:p})},A=Qt()(i);if(o==="simple")return A.reduce(function(w,E){var F,G,te,ne=y(i[E]),oe=s?"=":",",ye=w?"".concat(w,","):"";return Ct()(F=Ct()(G=Ct()(te="".concat(ye)).call(te,E)).call(G,oe)).call(F,ne)},"");if(o==="label")return A.reduce(function(w,E){var F,G,te,ne=y(i[E]),oe=s?"=":".",ye=w?"".concat(w,"."):".";return Ct()(F=Ct()(G=Ct()(te="".concat(ye)).call(te,E)).call(G,oe)).call(F,ne)},"");if(o==="matrix"&&s)return A.reduce(function(w,E){var F,G,te=y(i[E]),ne=w?"".concat(w,";"):";";return Ct()(F=Ct()(G="".concat(ne)).call(G,E,"=")).call(F,te)},"");if(o==="matrix")return A.reduce(function(w,E){var F,G,te=y(i[E]),ne=w?"".concat(w,","):";".concat(r,"=");return Ct()(F=Ct()(G="".concat(ne)).call(G,E,",")).call(F,te)},"");if(o==="form")return A.reduce(function(w,E){var F,G,te,ne,oe=y(i[E]),ye=w?Ct()(F="".concat(w)).call(F,s?"&":","):"",ge=s?"=":",";return Ct()(G=Ct()(te=Ct()(ne="".concat(ye)).call(ne,E)).call(te,ge)).call(G,oe)},"")}function qf(t){var r=t.key,i=t.value,o=t.style,s=t.escape,p=function(w){return Mr(w,{escape:s})};if(o==="simple")return p(i);if(o==="label")return".".concat(p(i));if(o==="matrix"){var y;return Ct()(y=";".concat(r,"=")).call(y,p(i))}if(o==="form")return p(i);if(o==="deepObject")return p(i,{},!0)}var To={serializeRes:fu,mergeInQueryOrForm:du};function Fi(t){return Po.apply(this,arguments)}function Po(){return Po=ks(ar().mark(function t(r){var i,o,s,p,y,A=arguments;return ar().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},ir(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},To.mergeInQueryOrForm(i),i.headers&&Qt()(i.headers).forEach(function(F){var G=i.headers[F];typeof G=="string"&&(i.headers[F]=G.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,To.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Po.apply(this,arguments)}var Gs=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Io(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Ls().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:Ks(t.headers)},y=p.headers["content-type"],A=s||Gs(y),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 F=Io(E,y);p.body=F,p.obj=F}catch(G){p.parseError=G}return p})}function $s(t){var r=wo()(t).call(t,", ");return r?t.split(", "):t}function Ks(){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=rn(i,2),s=o[0],p=o[1];return r[s]=$s(p),r},{}):{}}function Wa(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&ir(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Wn.Buffer!="undefined"&&t instanceof Wn.Buffer?!0:t!==null&&ir(t)==="object"&&typeof t.pipe=="function"}function Fo(t,r){return Array.isArray(t)&&t.some(function(i){return Wa(i,r)})}var da={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ko={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Ys(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,A=ir(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},E=w(t);if(typeof A=="undefined"&&s)return[[E,""]];if(Wa(A)||Fo(A))return[[E,A]];if(p)return Ha(t,A,i,p);if(y){if([ir(y.style),ir(y.explode),ir(y.allowReserved)].some(function(G){return G!=="undefined"}))return Ha(t,A,i,So()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var F=typeof A=="string"?A:La()(A);return[[E,w(F)]]}return[[E,w(A.toString())]]}return ir(A)!=="object"?[[E,w(A)]]:Array.isArray(A)&&A.every(function(G){return ir(G)!=="object"})?[[E,qt()(A).call(A,w).join(",")]]:[[E,w(La()(A))]]}return ir(A)!=="object"?[[E,w(A)]]:Array.isArray(A)?o==="multi"?[[E,qt()(A).call(A,w)]]:[[E,qt()(A).call(A,w).join(ko[o||"csv"])]]:[[E,""]]}function Ha(t,r,i,o){var s,p=o.style||"form",y=typeof o.explode=="undefined"?p==="form":o.explode,A=i?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(ne){return Mr(ne,{escape:A})},E=i?function(te){return te}:function(te){return Mr(te,{escape:A})};if(ir(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return y?[[E(t),qt()(r).call(r,w)]]:[[E(t),qt()(r).call(r,w).join(da[p])]];if(p==="deepObject"){var F;return qt()(F=Qt()(r)).call(F,function(te){var ne;return[E(Ct()(ne="".concat(t,"[")).call(ne,te,"]")),w(r[te])]})}if(y){var G;return qt()(G=Qt()(r)).call(G,function(te){return[E(te),w(r[te])]})}return[[E(t),qt()(s=Qt()(r)).call(s,function(te){var ne;return[Ct()(ne="".concat(E(te),",")).call(ne,w(r[te]))]}).join(",")]]}function ec(t){return Da()(t).reduce(function(r,i){var o=rn(i,2),s=o[0],p=o[1],y=$i(Ys(s,p,!0)),A;try{for(y.s();!(A=y.n()).done;){var w=rn(A.value,2),E=w[0],F=w[1];if(Array.isArray(F)){var G=$i(F),te;try{for(G.s();!(te=G.n()).done;){var ne=te.value;r.append(E,ne)}}catch(oe){G.e(oe)}finally{G.f()}}else r.append(E,F)}}catch(oe){y.e(oe)}finally{y.f()}return r},new Zf)}function cu(t){var r=Qt()(t).reduce(function(i,o){var s=$i(Ys(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var y=rn(p.value,2),A=y[0],w=y[1];i[A]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Na().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 Ae=arguments.length,me=new Array(Ae),Te=0;Te<Ae;Te++)me[Te]=arguments[Te];var He=ln()(me).call(me,function(Ve){return Ve}).join("&");return He?"?".concat(He):""};if(s){var y=Qt()(s).some(function(ge){var Ae=s[ge].value;return Wa(Ae)||Fo(Ae)}),A=t.headers["content-type"]||t.headers["Content-Type"];y||/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=rn(w,2),F=E[0],G=E[1],te="";if(G){var ne=Na().parse(G),oe=Qt()(o);oe.forEach(function(ge){return delete ne[ge]}),te=Na().stringify(ne,{encode:!0})}var ye=p(te,cu(o));t.url=F+ye,delete t.query}return t}function Js(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}),To.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var Xs=a(51942),nn=a.n(Xs),za=a(93476),Zi=a.n(za),Mo=a(92762),pu=a.n(Mo),Ga=a(13311),hu=a.n(Ga),_i=a(50308),pa=a.n(_i);/*!
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pn(t){return _f(t)||Ji(t)||Fs(t)||ca()}var Hs=a(3649),In=a.n(Hs),uu=a(88996),zs=uu.Buffer,Xi=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Qi=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Mr(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):qt()(r=Pn(t)).call(r,function(p){var y,A;if(Qi(p)||Xi(p)&&o==="unsafe")return p;var w=qt()(y=qt()(A=zs.from(p).toJSON().data||[]).call(A,function(E){var F;return In()(F="0".concat(E.toString(16).toUpperCase())).call(F,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function _n(t){var r=t.value;return Array.isArray(r)?Ii(t):ir(r)==="object"?Oo(t):qf(t)}function Ii(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(G){return Mr(G,{escape:p})};if(o==="simple")return qt()(i).call(i,function(F){return y(F)}).join(",");if(o==="label")return".".concat(qt()(i).call(i,function(F){return y(F)}).join("."));if(o==="matrix")return qt()(i).call(i,function(F){return y(F)}).reduce(function(F,G){var te;if(!F||s){var ne,se;return Ct()(ne=Ct()(se="".concat(F||"",";")).call(se,r,"=")).call(ne,G)}return Ct()(te="".concat(F,",")).call(te,G)},"");if(o==="form"){var A=s?"&".concat(r,"="):",";return qt()(i).call(i,function(F){return y(F)}).join(A)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return qt()(i).call(i,function(F){return y(F)}).join(" ".concat(w))}if(o==="pipeDelimited"){var E=s?"".concat(r,"="):"";return qt()(i).call(i,function(F){return y(F)}).join("|".concat(E))}}function Oo(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(E){return Mr(E,{escape:p})},A=Qt()(i);if(o==="simple")return A.reduce(function(w,E){var F,G,te,ne=y(i[E]),se=s?"=":",",ye=w?"".concat(w,","):"";return Ct()(F=Ct()(G=Ct()(te="".concat(ye)).call(te,E)).call(G,se)).call(F,ne)},"");if(o==="label")return A.reduce(function(w,E){var F,G,te,ne=y(i[E]),se=s?"=":".",ye=w?"".concat(w,"."):".";return Ct()(F=Ct()(G=Ct()(te="".concat(ye)).call(te,E)).call(G,se)).call(F,ne)},"");if(o==="matrix"&&s)return A.reduce(function(w,E){var F,G,te=y(i[E]),ne=w?"".concat(w,";"):";";return Ct()(F=Ct()(G="".concat(ne)).call(G,E,"=")).call(F,te)},"");if(o==="matrix")return A.reduce(function(w,E){var F,G,te=y(i[E]),ne=w?"".concat(w,","):";".concat(r,"=");return Ct()(F=Ct()(G="".concat(ne)).call(G,E,",")).call(F,te)},"");if(o==="form")return A.reduce(function(w,E){var F,G,te,ne,se=y(i[E]),ye=w?Ct()(F="".concat(w)).call(F,s?"&":","):"",ge=s?"=":",";return Ct()(G=Ct()(te=Ct()(ne="".concat(ye)).call(ne,E)).call(te,ge)).call(G,se)},"")}function qf(t){var r=t.key,i=t.value,o=t.style,s=t.escape,p=function(w){return Mr(w,{escape:s})};if(o==="simple")return p(i);if(o==="label")return".".concat(p(i));if(o==="matrix"){var y;return Ct()(y=";".concat(r,"=")).call(y,p(i))}if(o==="form")return p(i);if(o==="deepObject")return p(i,{},!0)}var To={serializeRes:fu,mergeInQueryOrForm:du};function Fi(t){return Po.apply(this,arguments)}function Po(){return Po=ks(ar().mark(function t(r){var i,o,s,p,y,A=arguments;return ar().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},ir(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},To.mergeInQueryOrForm(i),i.headers&&Qt()(i.headers).forEach(function(F){var G=i.headers[F];typeof G=="string"&&(i.headers[F]=G.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,To.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Po.apply(this,arguments)}var Gs=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Io(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Ls().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:Ks(t.headers)},y=p.headers["content-type"],A=s||Gs(y),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 F=Io(E,y);p.body=F,p.obj=F}catch(G){p.parseError=G}return p})}function $s(t){var r=wo()(t).call(t,", ");return r?t.split(", "):t}function Ks(){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=rn(i,2),s=o[0],p=o[1];return r[s]=$s(p),r},{}):{}}function Wa(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&ir(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Wn.Buffer!="undefined"&&t instanceof Wn.Buffer?!0:t!==null&&ir(t)==="object"&&typeof t.pipe=="function"}function Fo(t,r){return Array.isArray(t)&&t.some(function(i){return Wa(i,r)})}var da={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ko={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Ys(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,A=ir(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},E=w(t);if(typeof A=="undefined"&&s)return[[E,""]];if(Wa(A)||Fo(A))return[[E,A]];if(p)return Ha(t,A,i,p);if(y){if([ir(y.style),ir(y.explode),ir(y.allowReserved)].some(function(G){return G!=="undefined"}))return Ha(t,A,i,So()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var F=typeof A=="string"?A:La()(A);return[[E,w(F)]]}return[[E,w(A.toString())]]}return ir(A)!=="object"?[[E,w(A)]]:Array.isArray(A)&&A.every(function(G){return ir(G)!=="object"})?[[E,qt()(A).call(A,w).join(",")]]:[[E,w(La()(A))]]}return ir(A)!=="object"?[[E,w(A)]]:Array.isArray(A)?o==="multi"?[[E,qt()(A).call(A,w)]]:[[E,qt()(A).call(A,w).join(ko[o||"csv"])]]:[[E,""]]}function Ha(t,r,i,o){var s,p=o.style||"form",y=typeof o.explode=="undefined"?p==="form":o.explode,A=i?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(ne){return Mr(ne,{escape:A})},E=i?function(te){return te}:function(te){return Mr(te,{escape:A})};if(ir(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return y?[[E(t),qt()(r).call(r,w)]]:[[E(t),qt()(r).call(r,w).join(da[p])]];if(p==="deepObject"){var F;return qt()(F=Qt()(r)).call(F,function(te){var ne;return[E(Ct()(ne="".concat(t,"[")).call(ne,te,"]")),w(r[te])]})}if(y){var G;return qt()(G=Qt()(r)).call(G,function(te){return[E(te),w(r[te])]})}return[[E(t),qt()(s=Qt()(r)).call(s,function(te){var ne;return[Ct()(ne="".concat(E(te),",")).call(ne,w(r[te]))]}).join(",")]]}function ec(t){return Da()(t).reduce(function(r,i){var o=rn(i,2),s=o[0],p=o[1],y=$i(Ys(s,p,!0)),A;try{for(y.s();!(A=y.n()).done;){var w=rn(A.value,2),E=w[0],F=w[1];if(Array.isArray(F)){var G=$i(F),te;try{for(G.s();!(te=G.n()).done;){var ne=te.value;r.append(E,ne)}}catch(se){G.e(se)}finally{G.f()}}else r.append(E,F)}}catch(se){y.e(se)}finally{y.f()}return r},new Zf)}function cu(t){var r=Qt()(t).reduce(function(i,o){var s=$i(Ys(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var y=rn(p.value,2),A=y[0],w=y[1];i[A]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Na().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 Ae=arguments.length,me=new Array(Ae),Te=0;Te<Ae;Te++)me[Te]=arguments[Te];var He=ln()(me).call(me,function(Be){return Be}).join("&");return He?"?".concat(He):""};if(s){var y=Qt()(s).some(function(ge){var Ae=s[ge].value;return Wa(Ae)||Fo(Ae)}),A=t.headers["content-type"]||t.headers["Content-Type"];y||/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=rn(w,2),F=E[0],G=E[1],te="";if(G){var ne=Na().parse(G),se=Qt()(o);se.forEach(function(ge){return delete ne[ge]}),te=Na().stringify(ne,{encode:!0})}var ye=p(te,cu(o));t.url=F+ye,delete t.query}return t}function Js(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}),To.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var Xs=a(51942),nn=a.n(Xs),za=a(93476),Zi=a.n(za),Mo=a(92762),pu=a.n(Mo),Ga=a(13311),hu=a.n(Ga),_i=a(50308),pa=a.n(_i);/*!
84
84
  * https://github.com/Starcounter-Jack/JSON-Patch
85
85
  * (c) 2017 Joachim Wester
86
86
  * MIT license
87
87
  */var qi=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)}}(),$a=Object.prototype.hasOwnProperty;function ci(t,r){return $a.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 mn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Lo(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 ki(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Mi(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=Mi(t[o],r),i!=""))return di(o)+"/"+i}return""}function Pd(t,r){if(t===r)return"/";var i=Mi(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Qs(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Qs(t[r]))return!0}else if(typeof t=="object"){for(var o=Ro(t),s=o.length,r=0;r<s;r++)if(Qs(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){qi(r,t);function r(i,o,s,p,y){var A=this.constructor,w=t.call(this,vu(i,{name:o,index:s,operation:p,tree:y}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,A.prototype),w.message=vu(i,{name:o,index:s,operation:p,tree:y}),w}return r}(Error),Pr=gu,tc=mn,Ur={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=Rr(i,this.path);o&&(o=mn(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=Rr(i,this.from);return pr(i,{op:"add",path:this.path,value:mn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Ka(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},jr={add:function(t,r,i){return Lo(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:Ur.move,copy:Ur.copy,test:Ur.test,_get:Ur._get};function Rr(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):ea(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Rr(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=Ka(t,r.value),y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{o||(t=mn(t));var A=r.path||"",w=A.split("/"),E=t,F=1,G=w.length,te=void 0,ne=void 0,oe=void 0;for(typeof i=="function"?oe=i:oe=ea;;){if(ne=w[F],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&&te===void 0&&(E[ne]===void 0?te=w.slice(0,F).join("/"):F==G-1&&(te=r.path),te!==void 0&&oe(r,0,t,te)),F++,Array.isArray(E)){if(ne==="-")ne=E.length;else{if(i&&!Lo(ne))throw new Pr("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);Lo(ne)&&(ne=~~ne)}if(F>=G){if(i&&r.op==="add"&&ne>E.length)throw new Pr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=jr[r.op].call(r,E,ne,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(ne&&ne.indexOf("~")!=-1&&(ne=ki(ne)),F>=G){var y=Ur[r.op].call(r,E,ne,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}E=E[ne]}}}function zn(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=mn(t));for(var p=new Array(r.length),y=0,A=r.length;y<A;y++)p[y]=pr(t,r[y],i,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function rc(t,r,i){var o=pr(t,r);if(o.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function ea(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(Ur[t.op]){if(typeof t.path!="string")throw new Pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Pr('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 Pr("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 Pr("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")&&Qs(t.value))throw new Pr("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 Pr("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 Pr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},A=yu([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Pr("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 Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)zn(mn(r),mn(t),i||!0);else{i=i||ea;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Pr)return s;throw s}}function Ka(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,y;if(i&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Ka(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(y=A[s],!Ka(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
88
+ `)}var gu=function(t){qi(r,t);function r(i,o,s,p,y){var A=this.constructor,w=t.call(this,vu(i,{name:o,index:s,operation:p,tree:y}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,A.prototype),w.message=vu(i,{name:o,index:s,operation:p,tree:y}),w}return r}(Error),Pr=gu,tc=mn,Ur={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=Rr(i,this.path);o&&(o=mn(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=Rr(i,this.from);return pr(i,{op:"add",path:this.path,value:mn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Ka(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},jr={add:function(t,r,i){return Lo(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:Ur.move,copy:Ur.copy,test:Ur.test,_get:Ur._get};function Rr(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):ea(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Rr(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=Ka(t,r.value),y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{o||(t=mn(t));var A=r.path||"",w=A.split("/"),E=t,F=1,G=w.length,te=void 0,ne=void 0,se=void 0;for(typeof i=="function"?se=i:se=ea;;){if(ne=w[F],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&&te===void 0&&(E[ne]===void 0?te=w.slice(0,F).join("/"):F==G-1&&(te=r.path),te!==void 0&&se(r,0,t,te)),F++,Array.isArray(E)){if(ne==="-")ne=E.length;else{if(i&&!Lo(ne))throw new Pr("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);Lo(ne)&&(ne=~~ne)}if(F>=G){if(i&&r.op==="add"&&ne>E.length)throw new Pr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=jr[r.op].call(r,E,ne,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(ne&&ne.indexOf("~")!=-1&&(ne=ki(ne)),F>=G){var y=Ur[r.op].call(r,E,ne,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}E=E[ne]}}}function zn(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=mn(t));for(var p=new Array(r.length),y=0,A=r.length;y<A;y++)p[y]=pr(t,r[y],i,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function rc(t,r,i){var o=pr(t,r);if(o.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function ea(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(Ur[t.op]){if(typeof t.path!="string")throw new Pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Pr('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 Pr("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 Pr("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")&&Qs(t.value))throw new Pr("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 Pr("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 Pr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},A=yu([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Pr("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 Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)zn(mn(r),mn(t),i||!0);else{i=i||ea;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Pr)return s;throw s}}function Ka(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,y;if(i&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Ka(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(y=A[s],!Ka(t[y],r[y]))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 Zs=new WeakMap,_s=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 qs(t){return Zs.get(t)}function nc(t,r){return t.observers.get(r)}function el(t,r){t.observers.delete(r.callback)}function tl(t,r){r.unobserve()}function xu(t,r){var i=[],o,s=qs(t);if(!s)s=new _s(t),Zs.set(t,s);else{var p=nc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=mn(t),r){o.callback=r,o.next=null;var y=function(){Do(o)},A=function(){clearTimeout(o.next),o.next=setTimeout(y)};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(){Do(o),clearTimeout(o.next),el(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 Do(t,r){r===void 0&&(r=!1);var i=Zs.get(t.object);Ya(i.value,t.object,t.patches,"",r),t.patches.length&&zn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ya(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Ro(r),y=Ro(t),A=!1,w=!1,E=y.length-1;E>=0;E--){var F=y[E],G=t[F];if(ci(r,F)&&!(r[F]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var te=r[F];typeof G=="object"&&G!=null&&typeof te=="object"&&te!=null?Ya(G,te,i,o+"/"+di(F),s):G!==te&&(A=!0,s&&i.push({op:"test",path:o+"/"+di(F),value:mn(G)}),i.push({op:"replace",path:o+"/"+di(F),value:mn(te)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+di(F),value:mn(G)}),i.push({op:"remove",path:o+"/"+di(F)}),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==y.length))for(var E=0;E<p.length;E++){var F=p[E];!ci(t,F)&&r[F]!==void 0&&i.push({op:"add",path:o+"/"+di(F),value:mn(r[F])})}}}function bu(t,r,i){i===void 0&&(i=!1);var o=[];return Ya(t,r,o,"",i),o}const No=Object.assign({},c,v,{JsonPatchError:gu,deepClone:mn,escapePathComponent:di,unescapePathComponent:ki});var ic=a(31312),Bo=a.n(ic),pi=a(50361),wu=a.n(pi);const rr={add:er,replace:Cn,remove:Ri,merge:Li,mergeDeep:Au,context:rl,getIn:Di,applyPatch:Su,parentPathMatch:nl,flatten:Ja,fullyNormalizeArray:Cu,normalizeArray:il,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:ac,isJsonPatch:Iu,isContextPatch:sc,isPatch:Vo,isMutation:Qa,isAdditiveMutation:Za,isGenerator:oc,isFunction:Tu,isObject:qn,isError:Pu};function Su(t,r,i){if(i=i||{},r=cr(cr({},r),{},{path:r.path&&xn(r.path)}),r.op==="merge"){var o=Wo(t,r.path);nn()(o,r.value),zn(t,[Cn(r.path,o)])}else if(r.op==="mergeDeep"){var s=Wo(t,r.path);for(var p in r.value){var y=r.value[p],A=Array.isArray(y);if(A){var w=s[p]||[];s[p]=Ct()(w).call(w,y)}else if(qn(y)&&!A){var E=cr({},s[p]);for(var F in y)if(Object.prototype.hasOwnProperty.call(E,F)){E=Bo()(wu()(E),y);break}else nn()(E,Es({},F,y[F]));s[p]=E}else s[p]=y}}else if(r.op==="add"&&r.path===""&&qn(r.value)){var G=Qt()(r.value).reduce(function(ge,Ae){return ge.push({op:"add",path:"/".concat(xn(Ae)),value:r.value[Ae]}),ge},[]);zn(t,G)}else if(r.op==="replace"&&r.path===""){var te=r,ne=te.value;i.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||qn(r.value))&&(ne=cr(cr({},ne),r.meta)),t=ne}else if(zn(t,[r]),i.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||qn(r.value))){var oe=Wo(t,r.path),ye=cr(cr({},oe),r.meta);zn(t,[Cn(r.path,ye)])}return t}function xn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function Cn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ri(t){return{op:"remove",path:t}}function Li(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 rl(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Uo(t,jo,r)}catch(i){return i}}function ac(t,r){try{return Uo(t,ta,r)}catch(i){return i}}function Uo(t,r,i){var o,s=qt()(o=ln()(t).call(t,Za)).call(o,function(A){return r(A.value,i,A.path)})||[],p=Ja(s),y=Xa(p);return y}function ta(t,r,i){if(i=i||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return ta(s,r,Ct()(i).call(i,p))});if(qn(t)){var o;return qt()(o=Qt()(t)).call(o,function(s){return ta(t[s],r,Ct()(i).call(i,s))})}return r(t,i[i.length-1],i)}function jo(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Ct()(o).call(o,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,E){return jo(w,r,Ct()(i).call(i,E))});p&&(o=Ct()(o).call(o,p))}else if(qn(t)){var y,A=qt()(y=Qt()(t)).call(y,function(w){return jo(t[w],r,Ct()(i).call(i,w))});A&&(o=Ct()(o).call(o,A))}return o=Ja(o),o}function nl(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 Di(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Cu(t){return Xa(Ja(il(t)))}function il(t){return Array.isArray(t)?t:[t]}function Ja(t){var r;return Ct()(r=[]).apply(r,Pn(qt()(t).call(t,function(i){return Array.isArray(i)?Ja(i):i})))}function Xa(t){return ln()(t).call(t,function(r){return typeof r!="undefined"})}function qn(t){return t&&ir(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(Vo(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 Qa(t){return Iu(t)||Vo(t)&&t.type==="mutation"}function Za(t){return Qa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function sc(t){return Vo(t)&&t.type==="context"}function Vo(t){return t&&ir(t)==="object"}function Wo(t,r){try{return Rr(t,r)}catch(i){return console.error(i),{}}}var ha=a(52424),al=a.n(ha),Ho=a(54098),Fu=a(9779),zo=a.n(Fu);function ol(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),Zr=a(47037),Go=a.n(Zr),Mu=["properties"],Ru=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],va=["schema/example","items/example"];function _a(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return Mu.indexOf(r)>-1&&Ru.indexOf(i)===-1||Lu.indexOf(o)>-1||va.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 F;return o.getContext(Ct()(F=[]).call(F,Pn(r),Pn(E))).baseDoc}:s,y=i.targetKeys,A=y===void 0?["$ref","$$ref"]:y,w=[];return ku()(t).forEach(function(){if(wo()(A).call(A,this.key)&&Go()(this.node)){var F=this.path,G=Ct()(r).call(r,this.path),te=$o(this.node,p(F));w.push(o.replace(G,te))}}),w}function $o(t,r){var i,o=t.split("#"),s=rn(o,2),p=s[0],y=s[1],A=Pi.resolve(p||"",r||"");return y?Ct()(i="".concat(A,"#")).call(i,y):A}var sl="application/json, application/yaml",ga=new RegExp("^([a-z]+://|//)","i"),ra=ol("JSONRefError",function(r,i,o){this.originalError=o,nn()(this,i||{})}),Fn={},ll=new(al()),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)})},ya={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),y=In()(o).call(o,0,-1);if(!(_a(y)||uc(y))){var A=s.getContext(o),w=A.baseDoc;if(typeof r!="string")return new ra("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var E=ma(r),F=E[0],G=E[1]||"",te;try{te=w||F?fl(F,w):null}catch(me){return na(me,{pointer:G,$ref:r,basePath:te,fullPath:o})}var ne,oe;if(dc(G,te,y,s)&&!p.useCircularStructures){var ye=$o(r,te);return r===ye?null:rr.replace(o,ye)}if(te==null?(oe=ei(G),ne=s.get(oe),typeof ne=="undefined"&&(ne=new ra("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:o}))):(ne=xa(te,G),ne.__value!=null?ne=ne.__value:ne=ne.catch(function(me){throw na(me,{pointer:G,$ref:r,baseDoc:w,fullPath:o})})),ne instanceof Error)return[rr.remove(o),ne];var ge=$o(r,te),Ae=rr.replace(y,ne,{$$ref:ge});if(te&&te!==w)return[Ae,rr.context(y,{baseDoc:te})];try{if(!pc(s.state,Ae)||p.useCircularStructures)return Ae}catch(me){return null}}}},ul=nn()(ya,{docCache:Fn,absoluteify:fl,clearCache:eo,JSONRefError:ra,wrapError:na,getDoc:cl,split:ma,extractFromDoc:xa,fetchJSON:fc,extract:Ko,jsonPointerToArray:ei,unescapeJsonPointerToken:ia});const Nu=ul;function fl(t,r){if(!ga.test(t)){if(!r){var i;throw new ra(Ct()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Pi.resolve(r,t)}return t}function na(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Ct()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new ra("Could not resolve reference: ".concat(i),r,t)}function ma(t){return(t+"").split("#")}function xa(t,r){var i=Fn[t];if(i&&!rr.isPromise(i))try{var o=Ko(r,i);return nn()(Zi().resolve(o),{__value:o})}catch(s){return Zi().reject(s)}return cl(t).then(function(s){return Ko(r,s)})}function eo(t){typeof t!="undefined"?delete Fn[t]:Qt()(Fn).forEach(function(r){delete Fn[r]})}function cl(t){var r=Fn[t];return r?rr.isPromise(r)?r:Zi().resolve(r):(Fn[t]=ul.fetchJSON(t).then(function(i){return Fn[t]=i,i}),Fn[t])}function fc(t){return(0,Ho.fetch)(t,{headers:{Accept:sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ls().safeLoad(r)})}function Ko(t,r){var i=ei(t);if(i.length<1)return r;var o=rr.getIn(r,i);if(typeof o=="undefined")throw new ra("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(ir(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,ia)}function ia(t){return typeof t!="string"?t:zo().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ba(t){return zo().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function cc(t){return t.length===0?"":"/".concat(qt()(t).call(t,ba).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function dl(t,r){if(Bu(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 dc(t,r,i,o){var s,p,y=ll.get(o);y||(y={},ll.set(o,y));var A=cc(i),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),F=o.contextTree.get([]).baseDoc;if(r==F&&dl(E,t))return!0;var G="",te=i.some(function(ne){var oe;return G=Ct()(oe="".concat(G,"/")).call(oe,ba(ne)),y[G]&&y[G].some(function(ye){return dl(ye,w)||dl(w,ye)})});if(te)return!0;y[E]=Ct()(p=y[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 rr.isObject(s)&&(i.indexOf(s)>=0||Qt()(s).some(function(p){return o(s[p])}))}}var un=a(41609),Uu=a.n(un);const hc={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var y=In()(o).call(o,0,-1);if(!_a(y)){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(y.forEach(function(te){!E||(E=E[te])}),E=cr({},E),!Uu()(E)){delete E.allOf;var F=[];if(F.push(s.replace(y,{})),r.forEach(function(te,ne){if(!s.isObject(te)){if(w)return null;w=!0;var oe=new TypeError("Elements in allOf must be objects");return oe.fullPath=o,F.push(oe)}F.push(s.mergeDeep(y,te));var ye=In()(o).call(o,0,-1),ge=Du(te,ye,{getBaseUrlForNodePath:function(me){var Te;return s.getContext(Ct()(Te=[]).call(Te,Pn(o),[ne],Pn(me))).baseDoc},specmap:s});F.push.apply(F,Pn(ge))}),F.push(s.mergeDeep(y,E)),!E.$$ref){var G;F.push(s.remove(Ct()(G=[]).call(G,y,"$$ref")))}return F}}}}},vc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=nn()([],r),y=In()(o).call(o,0,-1),A=cr({},rr.getIn(s.spec,y));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(A,w)}catch(G){var F=new Error(G);return F.fullPath=o,F}}),rr.replace(o,p)}return rr.replace(o,r)}},gc={key:"properties",plugin:function(r,i,o,s){var p=cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(E){var A=new Error(E);return A.fullPath=o,A}var w=rr.replace(o,p);return w}};var ju=function(){function t(r){Ao(this,t),this.root=Yo(r||{})}return Bs(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){to(this.root,o,null);return}var p=i[i.length-1],y=s.children;if(y[p]){to(y[p],o,s);return}y[p]=Yo(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,y=0;y<i.length&&(p=i[y],s=o.children,!!s[p]);y+=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 y=s.children;return!y[p]&&o&&(y[p]=Yo(null,s)),y[p]},this.root)}}]),t}();function Yo(t,r){return to({children:{}},t,r)}function to(t,r,i){return t.value=r||{},t.protoValue=i?cr(cr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=to(s,s.value,t)}),t}var Vu=100,yc=function(){function t(r){var i=this,o,s;Ao(this,t),nn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:nn()(Object.create(this),rr,{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=qt()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.context([],this.context)),this.updatePatches(this.patches)}return Bs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,y=new Array(p>1?p-1:0),A=1;A<p;A++)y[A-1]=arguments[A];(o=console).log.apply(o,Ct()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):rr.isFunction(i)?y=i:rr.isObject(i)&&(y=A(i)),nn()(y.bind(p),{pluginName:i.name||o,isGenerator:rr.isGenerator(y)});function A(w){var E=function(G,te){return Array.isArray(G)?G.every(function(ne,oe){return ne===te[oe]}):!0};return ar().mark(function F(G,te){var ne,oe,ye,ge,Ae,me;return ar().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:me=function(ze,De,Be){var We,Je,et,$e,gt,Nt,Gt,or,kr,Er,Qr,br,Dr;return ar().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(rr.isObject(ze)){Yt.next=6;break}if(w.key!==De[De.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(ze,w.key,De,te);case 4:Yt.next=30;break;case 6:We=De.length-1,Je=De[We],et=De.indexOf("properties"),$e=Je==="properties"&&We===et,gt=te.allowMetaPatches&&oe[ze.$$ref],Nt=0,Gt=Qt()(ze);case 12:if(!(Nt<Gt.length)){Yt.next=30;break}if(or=Gt[Nt],kr=ze[or],Er=Ct()(De).call(De,or),Qr=rr.isObject(kr),br=ze.$$ref,gt){Yt.next=22;break}if(!Qr){Yt.next=22;break}return te.allowMetaPatches&&br&&(oe[br]=!0),Yt.delegateYield(me(kr,Er,Be),"t0",22);case 22:if(!(!$e&&or===w.key)){Yt.next=27;break}if(Dr=E(s,De),!(!s||Dr)){Yt.next=27;break}return Yt.next=27,w.plugin(kr,or,Er,te,Be);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},ne)},ne=ar().mark(me),oe={},ye=$i(ln()(G).call(G,rr.isAdditiveMutation)),He.prev=4,ye.s();case 6:if((ge=ye.n()).done){He.next=11;break}return Ae=ge.value,He.delegateYield(me(Ae.value,Ae.path,Ae),"t0",9);case 9:He.next=6;break;case 11:He.next=16;break;case 13:He.prev=13,He.t1=He.catch(4),ye.e(He.t1);case 16:return He.prev=16,ye.f(),He.finish(16);case 19:case"end":return He.stop()}},F,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 Zi().race(qt()(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;rr.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!rr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),rr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(rr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(rr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(i){ir(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=cr({},i.value));var o=rr.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),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 rr.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 y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),Zi().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var A;return Zi().resolve({spec:o.state,errors:Ct()(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=qt()(w=this.promisedPatches).call(w,function(te){return te.value});return Zi().all(qt()(E).call(E,function(te){return te.then(pa(),pa())})).then(function(){return i.dispatch()})}return F();function F(){o.currentPlugin=s;var te=o.getCurrentMutations(),ne=o.mutations.length-1;try{if(s.isGenerator){var oe=$i(s(te,o.getLib())),ye;try{for(oe.s();!(ye=oe.n()).done;){var ge=ye.value;G(ge)}}catch(me){oe.e(me)}finally{oe.f()}}else{var Ae=s(te,o.getLib());G(Ae)}}catch(me){console.error(me),G([nn()(Object.create(me),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:ne})}return o.dispatch()}function G(te){te&&(te=rr.fullyNormalizeArray(te),o.updatePatches(te,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return ln()(i).call(i,o)}}]),t}();function mc(t){return new yc(t).dispatch()}var bn={refs:Nu,allOf:hc,parameters:vc,properties:gc},ro=a(13218),no=a.n(ro),wa=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?zi()(r,"3"):!1}function Id(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||ir(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,y,A=Ct()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Ct()(y="".concat(t.substring(1),"_")).call(y,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(i="".concat(wa(r))).call(i,ti(t))}function pl(t,r){var i;return Ct()(i="".concat(wa(r),"-")).call(i,t)}function zu(t,r){return!t||!t.paths?null:Jo(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||ir(p)!=="object")return!1;var y=p.operationId,A=hi(p,o,s),w=pl(o,s);return[A,w,y].some(function(E){return E&&E===r})})}function Jo(t,r){return aa(t,r,!0)||null}function aa(t,r,i){if(!t||ir(t)!=="object"||!t.paths||ir(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 y=o[s][p];if(!(!y||ir(y)!=="object")){var A={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(A);if(i&&w)return A}}}function Xo(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(!!no()(p)){var y=p.parameters,A=function(G){var te=p[G];if(!no()(te))return"continue";var ne=hi(te,s,G);if(ne){o[ne]?o[ne].push(te):o[ne]=[te];var oe=o[ne];if(oe.length>1)oe.forEach(function(Je,et){var $e;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ct()($e="".concat(ne)).call($e,et+1)});else if(typeof te.operationId!="undefined"){var ye=oe[0];ye.__originalOperationId=ye.__originalOperationId||te.operationId,ye.operationId=ne}}if(G!=="parameters"){var ge=[],Ae={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Ae[me]=r[me],ge.push(Ae));if(y&&(Ae.parameters=y,ge.push(Ae)),ge.length){var Te=$i(ge),He;try{for(Te.s();!(He=Te.n()).done;){var Ve=He.value;for(var ze in Ve)if(!te[ze])te[ze]=Ve[ze];else if(ze==="parameters"){var De=$i(Ve[ze]),Be;try{var We=function(){var et=Be.value,$e=te[ze].some(function(gt){return gt.name&&gt.name===et.name||gt.$ref&&gt.$ref===et.$ref||gt.$$ref&&gt.$$ref===et.$$ref||gt===et});$e||te[ze].push(et)};for(De.s();!(Be=De.n()).done;)We()}catch(Je){De.e(Je)}finally{De.f()}}}}catch(Je){Te.e(Je)}finally{Te.f()}}}};for(var w in p)var E=A(w)}}return r.$$normalized=!0,t}function Qo(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:sl},credentials:s}).then(function(y){return y.body})}}function hl(){bn.refs.clearCache()}function Gu(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,F=t.requestInterceptor,G=t.responseInterceptor,te=t.skipNormalization,ne=t.useCircularStructures,oe=t.http,ye=t.baseDoc;if(ye=ye||o,oe=r||oe||Fi,!i)return Qo(oe,{requestInterceptor:F,responseInterceptor:G})(ye).then(ge);return ge(i);function ge(Ae){ye&&(bn.refs.docCache[ye]=Ae),bn.refs.fetchJSON=Qo(oe,{requestInterceptor:F,responseInterceptor:G});var me=[bn.refs];return typeof E=="function"&&me.push(bn.parameters),typeof w=="function"&&me.push(bn.properties),s!=="strict"&&me.push(bn.allOf),mc({spec:Ae,context:{baseDoc:ye},plugins:me,allowMetaPatches:y,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:ne}).then(te?function(){var Te=ks(ar().mark(function He(Ve){return ar().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.abrupt("return",Ve);case 1:case"end":return De.stop()}},He)}));return function(He){return Te.apply(this,arguments)}}():Xo)}}var io=a(27361),Sa=a.n(io);function xc(t,r){return Zo.apply(this,arguments)}function Zo(){return Zo=ks(ar().mark(function t(r,i){var o,s,p,y,A,w,E,F,G,te,ne,oe,ye=arguments;return ar().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return o=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=o.returnEntireTree,p=o.baseDoc,y=o.requestInterceptor,A=o.responseInterceptor,w=o.parameterMacro,E=o.modelPropertyMacro,F=o.useCircularStructures,G={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:F},te=Xo({spec:r}),ne=te.spec,Ae.next=6,Gu(cr(cr({},G),{},{spec:ne,allowMetaPatches:!0,skipNormalization:!0}));case 6:return oe=Ae.sent,!s&&Array.isArray(i)&&i.length&&(oe.spec=Sa()(oe.spec,i)||null),Ae.abrupt("return",oe);case 9:case"end":return Ae.stop()}},t)})),Zo.apply(this,arguments)}var _o=function(){return null},bc=function(r){return Array.isArray(r)?r:[r]},qo={mapTagOperations:Sc,makeExecute:ao};function ao(){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 y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},So()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},y))}}}function wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qo.makeExecute(t),i=qo.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=qo.makeExecute(t);return{apis:qo.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Sc(t){var r=t.spec,i=t.cb,o=i===void 0?_o:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,A={},w={};return aa(r,function(E){var F=E.pathName,G=E.method,te=E.operation,ne=te.tags?bc(te.tags):[p];ne.forEach(function(oe){if(typeof oe=="string"){w[oe]=w[oe]||{};var ye=w[oe],ge=hi(te,F,G,{v2OperationIdCompatibilityMode:y}),Ae=o({spec:r,pathName:F,method:G,operation:te,operationId:ge});if(A[ge]){var me;A[ge]+=1,ye[Ct()(me="".concat(ge)).call(me,A[ge])]=Ae}else if(typeof ye[ge]!="undefined"){var Te,He,Ve=A[ge]||1;A[ge]=Ve+1,ye[Ct()(Te="".concat(ge)).call(Te,A[ge])]=Ae;var ze=ye[ge];delete ye[ge],ye[Ct()(He="".concat(ge)).call(He,Ve)]=ze}else ye[ge]=Ae}})}),w}var es=a(95683);function Ku(t,r){if(t==null)return{};var i={},o=As(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(es(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(Wi){var p=Wi(t);for(s=0;s<p.length;s++)o=p[s],!(es(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Yu=a(68630),vl=a.n(Yu),Ec=a(1469),gl=a.n(Ec),oo=a(76489);const so={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 ts(t,r){return wo()(r).call(r,"application/json")?typeof t=="string"?t:La()(t):t.toString()}function Xu(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,y=o.explode,A=o.content;if(A){var w=Qt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Mr(ts(i,w),{escape:!0}));return}var E=_n({key:o.name,value:i,style:p||"simple",explode:y||!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=Qt()(o.content)[0];r.query[o.name]=ts(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:So()(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=Qt()(i.content)[0];r.headers[i.name]=ts(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 yl(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=ir(o);if(i.content){var p,y=Qt()(i.content)[0];r.headers.Cookie=Ct()(p="".concat(i.name,"=")).call(p,ts(o,y));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,y=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Aa({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=Qt()(w.content||{}),F=A&&E.indexOf(A)>-1;if(o||y){if(A&&F)r.headers["Content-Type"]=A;else if(!A){var G=E[0];G&&(r.headers["Content-Type"]=G,A=G)}}else A&&F&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var te,ne=ln()(te=Da()(i.responses)).call(te,function(ye){var ge=rn(ye,2),Ae=ge[0],me=ge[1],Te=parseInt(Ae,10);return Te>=200&&Te<300&&vl()(me.content)}).reduce(function(ye,ge){var Ae=rn(ge,2),me=Ae[1];return Ct()(ye).call(ye,Qt()(me.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(ir(o)==="object"){var oe=(w.content[A]||{}).encoding||{};r.form={},Qt()(o).forEach(function(ye){r.form[ye]={value:o[ye],encoding:oe[ye]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Aa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,A=Hi()({},r),w=o.authorized,E=w===void 0?{}:w,F=p.security||y.security||[],G=E&&!!Qt()(E).length,te=Sa()(y,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!G||!F||Array.isArray(p.security)&&!p.security.length?r:(F.forEach(function(ne){Qt()(ne).forEach(function(oe){var ye=E[oe],ge=te[oe];if(!!ye){var Ae=ye.value||ye,me=ge.type;if(ye){if(me==="apiKey")ge.in==="query"&&(A.query[ge.name]=Ae),ge.in==="header"&&(A.headers[ge.name]=Ae),ge.in==="cookie"&&(A.cookies[ge.name]=Ae);else if(me==="http"){if(/^basic$/i.test(ge.scheme)){var Te,He=Ae.username||"",Ve=Ae.password||"",ze=_u()(Ct()(Te="".concat(He,":")).call(Te,Ve));A.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(ge.scheme)&&(A.headers.Authorization="Bearer ".concat(Ae))}else if(me==="oauth2"||me==="openIdConnect"){var De,Be=ye.token||{},We=ge["x-tokenName"]||"access_token",Je=Be[We],et=Be.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),A.headers.Authorization=Ct()(De="".concat(et," ")).call(De,Je)}}}})}),A)}function ef(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=rs({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 F=rn(o.consumes,1);r.headers["Content-Type"]=F[0]}else if(Array.isArray(i.consumes)){var G=rn(i.consumes,1);r.headers["Content-Type"]=G[0]}else o.parameters&&ln()(w=o.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&ln()(E=o.parameters).call(E,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var te,ne,oe=o.parameters&&ln()(te=o.parameters).call(te,function(ge){return ge.in==="body"}).length>0,ye=o.parameters&&ln()(ne=o.parameters).call(ne,function(ge){return ge.in==="formData"}).length>0;(oe||ye)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function rs(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,A=Hi()({},r),w=o.authorized,E=w===void 0?{}:w,F=o.specSecurity,G=F===void 0?[]:F,te=p.security||G,ne=E&&!!Qt()(E).length,oe=y.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!ne||!te||Array.isArray(p.security)&&!p.security.length?r:(te.forEach(function(ye){Qt()(ye).forEach(function(ge){var Ae=E[ge];if(!!Ae){var me=Ae.token,Te=Ae.value||Ae,He=oe[ge],Ve=He.type,ze=He["x-tokenName"]||"access_token",De=me&&me[ze],Be=me&&me.token_type;if(Ae){if(Ve==="apiKey"){var We=He.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][He.name]=Te}else if(Ve==="basic")if(Te.header)A.headers.authorization=Te.header;else{var Je,et=Te.username||"",$e=Te.password||"";Te.base64=_u()(Ct()(Je="".concat(et,":")).call(Je,$e)),A.headers.authorization="Basic ".concat(Te.base64)}else if(Ve==="oauth2"&&De){var gt;Be=!Be||Be.toLowerCase()==="bearer"?"Bearer":Be,A.headers.authorization=Ct()(gt="".concat(Be," ")).call(gt,De)}}}})}),A)}var tf=function(r){return Array.isArray(r)?r:[]},kc=ol("OperationNotFoundError",function(r,i,o){this.originalError=o,nn()(this,i||{})}),Mc=function(r,i){return ln()(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 Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},Rc={buildRequest:Ea};function ml(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,y=t.method,A=t.parameters,w=t.securities,E=Ac(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),F=r||i||Fi;p&&y&&!s&&(s=pl(p,y));var G=Rc.buildRequest(cr({spec:o,operationId:s,parameters:A,securities:w,http:F},E));return G.body&&(vl()(G.body)||gl()(G.body))&&(G.body=La()(G.body)),F(G)}function Ea(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,F=t.userFetch,G=t.server,te=t.serverVariables,ne=t.http,oe=t.parameters,ye=t.parameterBuilders,ge=Wu(o);ye||(ge?ye=x:ye=so);var Ae=ne&&ne.withCredentials?"include":"same-origin",me={url:"",credentials:Ae,headers:{},cookies:{}};A&&(me.requestInterceptor=A),w&&(me.responseInterceptor=w),F&&(me.userFetch=F);var Te=zu(o,s);if(!Te)throw new kc("Operation ".concat(s," not found"));var He=Te.operation,Ve=He===void 0?{}:He,ze=Te.method,De=Te.pathName;if(me.url+=lo({spec:o,scheme:y,contextUrl:E,server:G,serverVariables:te,pathName:De,method:ze}),!s)return delete me.cookies,me;me.url+=De,me.method="".concat(ze).toUpperCase(),oe=oe||{};var Be=o.paths[De]||{};p&&(me.headers.accept=p);var We=hr(Ct()(r=Ct()(i=[]).call(i,tf(Ve.parameters))).call(r,tf(Be.parameters)));We.forEach(function($e){var gt=ye[$e.in],Nt;if($e.in==="body"&&$e.schema&&$e.schema.properties&&(Nt=oe),Nt=$e&&$e.name&&oe[$e.name],typeof Nt=="undefined"){var Gt;Nt=$e&&$e.name&&oe[Ct()(Gt="".concat($e.in,".")).call(Gt,$e.name)]}else if(Mc($e.name,We).length>1){var or;console.warn(Ct()(or="Parameter '".concat($e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,$e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof $e.default!="undefined"&&typeof Nt=="undefined"&&(Nt=$e.default),typeof Nt=="undefined"&&$e.required&&!$e.allowEmptyValue)throw new Error("Required parameter ".concat($e.name," is not provided"));if(ge&&$e.schema&&$e.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(kr){throw new Error("Could not parse object parameter value string as JSON")}gt&&gt({req:me,parameter:$e,value:Nt,operation:Ve,spec:o})}});var Je=cr(cr({},t),{},{operation:Ve});if(ge?me=qu(Je,me):me=ef(Je,me),me.cookies&&Qt()(me.cookies).length){var et=Qt()(me.cookies).reduce(function($e,gt){var Nt=me.cookies[gt],Gt=$e?"&":"",or=oo.serialize(gt,Nt);return $e+Gt+or},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,du(me),me}var On=function(r){return r?r.replace(/\W/g,""):null};function lo(t){var r=Wu(t.spec);return r?xl(t):af(t)}function xl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,A=y===void 0?{}:y,w=Sa()(r,["paths",i,(o||"").toLowerCase(),"servers"])||Sa()(r,["paths",i,"servers"])||Sa()(r,["servers"]),E="",F=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(oe){return oe.url});G.indexOf(s)>-1&&(E=s,F=w[G.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var te=rn(w,1);F=te[0]}if(E.indexOf("{")>-1){var ne=nf(E);ne.forEach(function(oe){if(F.variables&&F.variables[oe]){var ye=F.variables[oe],ge=A[oe]||ye.default,Ae=new RegExp("{".concat(oe,"}"),"g");E=E.replace(Ae,ge)}})}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?Pi.parse(Pi.resolve(r,t)):Pi.parse(t),o=Pi.parse(r),s=On(i.protocol)||On(o.protocol)||"",p=i.host||o.host,y=i.pathname||"",A;if(s&&p){var w;A=Ct()(w="".concat(s,"://")).call(w,p+y)}else A=y;return A[A.length-1]==="/"?In()(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=Pi.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||y||On(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",F;if(A&&w){var G;F=Ct()(G="".concat(A,"://")).call(G,w+E)}else F=E;return F[F.length-1]==="/"?In()(F).call(F,0,-1):F}xr.http=Fi,xr.makeHttp=Js.bind(null,xr.http),xr.resolve=Gu,xr.resolveSubtree=xc,xr.execute=ml,xr.serializeRes=fu,xr.serializeHeaders=Ks,xr.clearCache=hl,xr.makeApisTagOperation=$u,xr.buildRequest=Ea,xr.helpers={opId:hi},xr.getBaseUrl=lo;function xr(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 xr))return new xr(i);Hi()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Hi()(r,xr.makeApisTagOperation(r)),r});return o.client=this,o}xr.prototype={http:Fi,execute:function(r){return this.applyDefaults(),xr.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 xr.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})}},xr.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&zi()(i,"http")){var o=Pi.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Lc=xr.helpers;const Dc=xr;var Wt=a(25446),bl=a(11429),zt=a(76671),of=a(7930),uo=a(51027),vi=a(50771),sf=a(17673),Gn=a(64776),Nc=Object.defineProperty,wr=Object.defineProperties,Bc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,ns=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))ns.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>wr(t,Bc(r)),l=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class m{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:A,errorCallback:w}){const E=(0,Gn.p8)({date:new Date().toString()}),F=new URL(r),G=p==="/"?"":p,te=`${window.location.origin}${G}${f}`;F.searchParams.set("client_id",i),F.searchParams.set("redirect_uri",y||te),F.searchParams.set("response_type","token"),F.searchParams.set("state",E),Array.isArray(o)&&F.searchParams.set("scope",o.join(" "));for(const ne in s)F.searchParams.set(ne,s[ne]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:E,successCallback:ne=>{A(ne),m.clearRedirectData("implicit")},errorCallback:ne=>{w(ne),m.clearRedirectData("implicit")}},window.open(F.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:A,extraParams:w={},extraHeaders:E={},routingBasePath:F,redirectUri:G,successCallback:te,errorCallback:ne}){const oe=new URL(r),ye=F==="/"?"":F,ge=`${window.location.origin}${ye}${f}`,Ae=(0,Gn.p8)({date:new Date().toString()});oe.searchParams.set("client_id",o),oe.searchParams.set("redirect_uri",G||ge),oe.searchParams.set("response_type","code"),oe.searchParams.set("state",Ae),Array.isArray(A)&&oe.searchParams.set("scope",A.join(" ")),y&&(oe.searchParams.set("code_challenge",y),oe.searchParams.set("code_challenge_method","S256"));for(const me in w)oe.searchParams.set(me,w[me]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:A},state:Ae,successCallback:me=>l(this,[me],function*({auth_code:Te}){try{const He=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},E),body:sf.stringify(n(u(n({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:Te,grant_type:"authorization_code",redirect_uri:G||ge}),w))});yield U(He,te,ne)}catch(He){ne(He)}m.clearRedirectData("authorizationCode")}),errorCallback:me=>{ne(me),m.clearRedirectData("authorizationCode")}},window.open(oe.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:y={},extraHeaders:A={},successCallback:w,errorCallback:E}){try{const F=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:sf.stringify(n({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield U(F,w,E)}catch(F){E(F)}})}}const k=new m;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,Gn.rS)(yield(0,Gn.JQ)(t))})}var Z=a(68929),be;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(be||(be={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var Ne=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function ot(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function yt(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||(ct(i)?"binary":"");return r.type===be.STRING&&ke.includes(o)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const i=t.format||t.contentEncoding||"";return t.type===be.STRING&&ke.includes(i)}function bt(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(Ce.BASE64)}function It(t,r){return Ne(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===be.STRING&&Ft(r)?o=yield bt(i[0]):r.type===be.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(i.map(p=>Ne(this,null,function*(){return yield bt(p)}))):o=i),o})}var it=a(39713),Tt=a(58804),Sr=a(8418),vr=a(32335),wn=Object.defineProperty,fn=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Ar=(t,r,i)=>r in t?wn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dr=(t,r)=>{for(var i in r||(r={}))Vr.call(r,i)&&Ar(t,i,r[i]);if(Yr)for(var i of Yr(r))Fr.call(r,i)&&Ar(t,i,r[i]);return t},cn=(t,r)=>fn(t,Ir(r)),Ca=(t,r)=>{var i={};for(var o in t)Vr.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Yr)for(var o of Yr(t))r.indexOf(o)<0&&Fr.call(t,o)&&(i[o]=t[o]);return i};const gi=t=>Tt.css`
92
+ */var Zs=new WeakMap,_s=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 qs(t){return Zs.get(t)}function nc(t,r){return t.observers.get(r)}function el(t,r){t.observers.delete(r.callback)}function tl(t,r){r.unobserve()}function xu(t,r){var i=[],o,s=qs(t);if(!s)s=new _s(t),Zs.set(t,s);else{var p=nc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=mn(t),r){o.callback=r,o.next=null;var y=function(){Do(o)},A=function(){clearTimeout(o.next),o.next=setTimeout(y)};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(){Do(o),clearTimeout(o.next),el(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 Do(t,r){r===void 0&&(r=!1);var i=Zs.get(t.object);Ya(i.value,t.object,t.patches,"",r),t.patches.length&&zn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ya(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Ro(r),y=Ro(t),A=!1,w=!1,E=y.length-1;E>=0;E--){var F=y[E],G=t[F];if(ci(r,F)&&!(r[F]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var te=r[F];typeof G=="object"&&G!=null&&typeof te=="object"&&te!=null?Ya(G,te,i,o+"/"+di(F),s):G!==te&&(A=!0,s&&i.push({op:"test",path:o+"/"+di(F),value:mn(G)}),i.push({op:"replace",path:o+"/"+di(F),value:mn(te)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+di(F),value:mn(G)}),i.push({op:"remove",path:o+"/"+di(F)}),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==y.length))for(var E=0;E<p.length;E++){var F=p[E];!ci(t,F)&&r[F]!==void 0&&i.push({op:"add",path:o+"/"+di(F),value:mn(r[F])})}}}function bu(t,r,i){i===void 0&&(i=!1);var o=[];return Ya(t,r,o,"",i),o}const No=Object.assign({},c,v,{JsonPatchError:gu,deepClone:mn,escapePathComponent:di,unescapePathComponent:ki});var ic=a(31312),Bo=a.n(ic),pi=a(50361),wu=a.n(pi);const nr={add:er,replace:Cn,remove:Ri,merge:Li,mergeDeep:Au,context:rl,getIn:Di,applyPatch:Su,parentPathMatch:nl,flatten:Ja,fullyNormalizeArray:Cu,normalizeArray:il,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:ac,isJsonPatch:Iu,isContextPatch:sc,isPatch:Vo,isMutation:Qa,isAdditiveMutation:Za,isGenerator:oc,isFunction:Tu,isObject:qn,isError:Pu};function Su(t,r,i){if(i=i||{},r=cr(cr({},r),{},{path:r.path&&xn(r.path)}),r.op==="merge"){var o=Wo(t,r.path);nn()(o,r.value),zn(t,[Cn(r.path,o)])}else if(r.op==="mergeDeep"){var s=Wo(t,r.path);for(var p in r.value){var y=r.value[p],A=Array.isArray(y);if(A){var w=s[p]||[];s[p]=Ct()(w).call(w,y)}else if(qn(y)&&!A){var E=cr({},s[p]);for(var F in y)if(Object.prototype.hasOwnProperty.call(E,F)){E=Bo()(wu()(E),y);break}else nn()(E,Es({},F,y[F]));s[p]=E}else s[p]=y}}else if(r.op==="add"&&r.path===""&&qn(r.value)){var G=Qt()(r.value).reduce(function(ge,Ae){return ge.push({op:"add",path:"/".concat(xn(Ae)),value:r.value[Ae]}),ge},[]);zn(t,G)}else if(r.op==="replace"&&r.path===""){var te=r,ne=te.value;i.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||qn(r.value))&&(ne=cr(cr({},ne),r.meta)),t=ne}else if(zn(t,[r]),i.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||qn(r.value))){var se=Wo(t,r.path),ye=cr(cr({},se),r.meta);zn(t,[Cn(r.path,ye)])}return t}function xn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function Cn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ri(t){return{op:"remove",path:t}}function Li(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 rl(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Uo(t,jo,r)}catch(i){return i}}function ac(t,r){try{return Uo(t,ta,r)}catch(i){return i}}function Uo(t,r,i){var o,s=qt()(o=ln()(t).call(t,Za)).call(o,function(A){return r(A.value,i,A.path)})||[],p=Ja(s),y=Xa(p);return y}function ta(t,r,i){if(i=i||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return ta(s,r,Ct()(i).call(i,p))});if(qn(t)){var o;return qt()(o=Qt()(t)).call(o,function(s){return ta(t[s],r,Ct()(i).call(i,s))})}return r(t,i[i.length-1],i)}function jo(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Ct()(o).call(o,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,E){return jo(w,r,Ct()(i).call(i,E))});p&&(o=Ct()(o).call(o,p))}else if(qn(t)){var y,A=qt()(y=Qt()(t)).call(y,function(w){return jo(t[w],r,Ct()(i).call(i,w))});A&&(o=Ct()(o).call(o,A))}return o=Ja(o),o}function nl(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 Di(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Cu(t){return Xa(Ja(il(t)))}function il(t){return Array.isArray(t)?t:[t]}function Ja(t){var r;return Ct()(r=[]).apply(r,Pn(qt()(t).call(t,function(i){return Array.isArray(i)?Ja(i):i})))}function Xa(t){return ln()(t).call(t,function(r){return typeof r!="undefined"})}function qn(t){return t&&ir(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(Vo(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 Qa(t){return Iu(t)||Vo(t)&&t.type==="mutation"}function Za(t){return Qa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function sc(t){return Vo(t)&&t.type==="context"}function Vo(t){return t&&ir(t)==="object"}function Wo(t,r){try{return Rr(t,r)}catch(i){return console.error(i),{}}}var ha=a(52424),al=a.n(ha),Ho=a(54098),Fu=a(9779),zo=a.n(Fu);function ol(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),Zr=a(47037),Go=a.n(Zr),Mu=["properties"],Ru=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],va=["schema/example","items/example"];function _a(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return Mu.indexOf(r)>-1&&Ru.indexOf(i)===-1||Lu.indexOf(o)>-1||va.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 F;return o.getContext(Ct()(F=[]).call(F,Pn(r),Pn(E))).baseDoc}:s,y=i.targetKeys,A=y===void 0?["$ref","$$ref"]:y,w=[];return ku()(t).forEach(function(){if(wo()(A).call(A,this.key)&&Go()(this.node)){var F=this.path,G=Ct()(r).call(r,this.path),te=$o(this.node,p(F));w.push(o.replace(G,te))}}),w}function $o(t,r){var i,o=t.split("#"),s=rn(o,2),p=s[0],y=s[1],A=Pi.resolve(p||"",r||"");return y?Ct()(i="".concat(A,"#")).call(i,y):A}var sl="application/json, application/yaml",ga=new RegExp("^([a-z]+://|//)","i"),ra=ol("JSONRefError",function(r,i,o){this.originalError=o,nn()(this,i||{})}),Fn={},ll=new(al()),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)})},ya={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),y=In()(o).call(o,0,-1);if(!(_a(y)||uc(y))){var A=s.getContext(o),w=A.baseDoc;if(typeof r!="string")return new ra("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var E=ma(r),F=E[0],G=E[1]||"",te;try{te=w||F?fl(F,w):null}catch(me){return na(me,{pointer:G,$ref:r,basePath:te,fullPath:o})}var ne,se;if(dc(G,te,y,s)&&!p.useCircularStructures){var ye=$o(r,te);return r===ye?null:nr.replace(o,ye)}if(te==null?(se=ei(G),ne=s.get(se),typeof ne=="undefined"&&(ne=new ra("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:o}))):(ne=xa(te,G),ne.__value!=null?ne=ne.__value:ne=ne.catch(function(me){throw na(me,{pointer:G,$ref:r,baseDoc:w,fullPath:o})})),ne instanceof Error)return[nr.remove(o),ne];var ge=$o(r,te),Ae=nr.replace(y,ne,{$$ref:ge});if(te&&te!==w)return[Ae,nr.context(y,{baseDoc:te})];try{if(!pc(s.state,Ae)||p.useCircularStructures)return Ae}catch(me){return null}}}},ul=nn()(ya,{docCache:Fn,absoluteify:fl,clearCache:eo,JSONRefError:ra,wrapError:na,getDoc:cl,split:ma,extractFromDoc:xa,fetchJSON:fc,extract:Ko,jsonPointerToArray:ei,unescapeJsonPointerToken:ia});const Nu=ul;function fl(t,r){if(!ga.test(t)){if(!r){var i;throw new ra(Ct()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Pi.resolve(r,t)}return t}function na(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Ct()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new ra("Could not resolve reference: ".concat(i),r,t)}function ma(t){return(t+"").split("#")}function xa(t,r){var i=Fn[t];if(i&&!nr.isPromise(i))try{var o=Ko(r,i);return nn()(Zi().resolve(o),{__value:o})}catch(s){return Zi().reject(s)}return cl(t).then(function(s){return Ko(r,s)})}function eo(t){typeof t!="undefined"?delete Fn[t]:Qt()(Fn).forEach(function(r){delete Fn[r]})}function cl(t){var r=Fn[t];return r?nr.isPromise(r)?r:Zi().resolve(r):(Fn[t]=ul.fetchJSON(t).then(function(i){return Fn[t]=i,i}),Fn[t])}function fc(t){return(0,Ho.fetch)(t,{headers:{Accept:sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ls().safeLoad(r)})}function Ko(t,r){var i=ei(t);if(i.length<1)return r;var o=nr.getIn(r,i);if(typeof o=="undefined")throw new ra("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(ir(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,ia)}function ia(t){return typeof t!="string"?t:zo().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ba(t){return zo().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function cc(t){return t.length===0?"":"/".concat(qt()(t).call(t,ba).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function dl(t,r){if(Bu(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 dc(t,r,i,o){var s,p,y=ll.get(o);y||(y={},ll.set(o,y));var A=cc(i),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),F=o.contextTree.get([]).baseDoc;if(r==F&&dl(E,t))return!0;var G="",te=i.some(function(ne){var se;return G=Ct()(se="".concat(G,"/")).call(se,ba(ne)),y[G]&&y[G].some(function(ye){return dl(ye,w)||dl(w,ye)})});if(te)return!0;y[E]=Ct()(p=y[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||Qt()(s).some(function(p){return o(s[p])}))}}var un=a(41609),Uu=a.n(un);const hc={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var y=In()(o).call(o,0,-1);if(!_a(y)){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(y.forEach(function(te){!E||(E=E[te])}),E=cr({},E),!Uu()(E)){delete E.allOf;var F=[];if(F.push(s.replace(y,{})),r.forEach(function(te,ne){if(!s.isObject(te)){if(w)return null;w=!0;var se=new TypeError("Elements in allOf must be objects");return se.fullPath=o,F.push(se)}F.push(s.mergeDeep(y,te));var ye=In()(o).call(o,0,-1),ge=Du(te,ye,{getBaseUrlForNodePath:function(me){var Te;return s.getContext(Ct()(Te=[]).call(Te,Pn(o),[ne],Pn(me))).baseDoc},specmap:s});F.push.apply(F,Pn(ge))}),F.push(s.mergeDeep(y,E)),!E.$$ref){var G;F.push(s.remove(Ct()(G=[]).call(G,y,"$$ref")))}return F}}}}},vc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=nn()([],r),y=In()(o).call(o,0,-1),A=cr({},nr.getIn(s.spec,y));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(A,w)}catch(G){var F=new Error(G);return F.fullPath=o,F}}),nr.replace(o,p)}return nr.replace(o,r)}},gc={key:"properties",plugin:function(r,i,o,s){var p=cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}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){Ao(this,t),this.root=Yo(r||{})}return Bs(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){to(this.root,o,null);return}var p=i[i.length-1],y=s.children;if(y[p]){to(y[p],o,s);return}y[p]=Yo(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,y=0;y<i.length&&(p=i[y],s=o.children,!!s[p]);y+=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 y=s.children;return!y[p]&&o&&(y[p]=Yo(null,s)),y[p]},this.root)}}]),t}();function Yo(t,r){return to({children:{}},t,r)}function to(t,r,i){return t.value=r||{},t.protoValue=i?cr(cr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=to(s,s.value,t)}),t}var Vu=100,yc=function(){function t(r){var i=this,o,s;Ao(this,t),nn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:nn()(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=qt()(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 Bs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,y=new Array(p>1?p-1:0),A=1;A<p;A++)y[A-1]=arguments[A];(o=console).log.apply(o,Ct()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):nr.isFunction(i)?y=i:nr.isObject(i)&&(y=A(i)),nn()(y.bind(p),{pluginName:i.name||o,isGenerator:nr.isGenerator(y)});function A(w){var E=function(G,te){return Array.isArray(G)?G.every(function(ne,se){return ne===te[se]}):!0};return ar().mark(function F(G,te){var ne,se,ye,ge,Ae,me;return ar().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:me=function(ze,De,Ue){var We,Je,et,$e,gt,Nt,zt,or,kr,Er,Qr,br,Dr;return ar().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(nr.isObject(ze)){Yt.next=6;break}if(w.key!==De[De.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(ze,w.key,De,te);case 4:Yt.next=30;break;case 6:We=De.length-1,Je=De[We],et=De.indexOf("properties"),$e=Je==="properties"&&We===et,gt=te.allowMetaPatches&&se[ze.$$ref],Nt=0,zt=Qt()(ze);case 12:if(!(Nt<zt.length)){Yt.next=30;break}if(or=zt[Nt],kr=ze[or],Er=Ct()(De).call(De,or),Qr=nr.isObject(kr),br=ze.$$ref,gt){Yt.next=22;break}if(!Qr){Yt.next=22;break}return te.allowMetaPatches&&br&&(se[br]=!0),Yt.delegateYield(me(kr,Er,Ue),"t0",22);case 22:if(!(!$e&&or===w.key)){Yt.next=27;break}if(Dr=E(s,De),!(!s||Dr)){Yt.next=27;break}return Yt.next=27,w.plugin(kr,or,Er,te,Ue);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},ne)},ne=ar().mark(me),se={},ye=$i(ln()(G).call(G,nr.isAdditiveMutation)),He.prev=4,ye.s();case 6:if((ge=ye.n()).done){He.next=11;break}return Ae=ge.value,He.delegateYield(me(Ae.value,Ae.path,Ae),"t0",9);case 9:He.next=6;break;case 11:He.next=16;break;case 13:He.prev=13,He.t1=He.catch(4),ye.e(He.t1);case 16:return He.prev=16,ye.f(),He.finish(16);case 19:case"end":return He.stop()}},F,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 Zi().race(qt()(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){ir(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),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 y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),Zi().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var A;return Zi().resolve({spec:o.state,errors:Ct()(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=qt()(w=this.promisedPatches).call(w,function(te){return te.value});return Zi().all(qt()(E).call(E,function(te){return te.then(pa(),pa())})).then(function(){return i.dispatch()})}return F();function F(){o.currentPlugin=s;var te=o.getCurrentMutations(),ne=o.mutations.length-1;try{if(s.isGenerator){var se=$i(s(te,o.getLib())),ye;try{for(se.s();!(ye=se.n()).done;){var ge=ye.value;G(ge)}}catch(me){se.e(me)}finally{se.f()}}else{var Ae=s(te,o.getLib());G(Ae)}}catch(me){console.error(me),G([nn()(Object.create(me),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:ne})}return o.dispatch()}function G(te){te&&(te=nr.fullyNormalizeArray(te),o.updatePatches(te,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return ln()(i).call(i,o)}}]),t}();function mc(t){return new yc(t).dispatch()}var bn={refs:Nu,allOf:hc,parameters:vc,properties:gc},ro=a(13218),no=a.n(ro),wa=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?zi()(r,"3"):!1}function Id(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||ir(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,y,A=Ct()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Ct()(y="".concat(t.substring(1),"_")).call(y,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(i="".concat(wa(r))).call(i,ti(t))}function pl(t,r){var i;return Ct()(i="".concat(wa(r),"-")).call(i,t)}function zu(t,r){return!t||!t.paths?null:Jo(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||ir(p)!=="object")return!1;var y=p.operationId,A=hi(p,o,s),w=pl(o,s);return[A,w,y].some(function(E){return E&&E===r})})}function Jo(t,r){return aa(t,r,!0)||null}function aa(t,r,i){if(!t||ir(t)!=="object"||!t.paths||ir(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 y=o[s][p];if(!(!y||ir(y)!=="object")){var A={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(A);if(i&&w)return A}}}function Xo(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(!!no()(p)){var y=p.parameters,A=function(G){var te=p[G];if(!no()(te))return"continue";var ne=hi(te,s,G);if(ne){o[ne]?o[ne].push(te):o[ne]=[te];var se=o[ne];if(se.length>1)se.forEach(function(Je,et){var $e;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ct()($e="".concat(ne)).call($e,et+1)});else if(typeof te.operationId!="undefined"){var ye=se[0];ye.__originalOperationId=ye.__originalOperationId||te.operationId,ye.operationId=ne}}if(G!=="parameters"){var ge=[],Ae={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Ae[me]=r[me],ge.push(Ae));if(y&&(Ae.parameters=y,ge.push(Ae)),ge.length){var Te=$i(ge),He;try{for(Te.s();!(He=Te.n()).done;){var Be=He.value;for(var ze in Be)if(!te[ze])te[ze]=Be[ze];else if(ze==="parameters"){var De=$i(Be[ze]),Ue;try{var We=function(){var et=Ue.value,$e=te[ze].some(function(gt){return gt.name&&gt.name===et.name||gt.$ref&&gt.$ref===et.$ref||gt.$$ref&&gt.$$ref===et.$$ref||gt===et});$e||te[ze].push(et)};for(De.s();!(Ue=De.n()).done;)We()}catch(Je){De.e(Je)}finally{De.f()}}}}catch(Je){Te.e(Je)}finally{Te.f()}}}};for(var w in p)var E=A(w)}}return r.$$normalized=!0,t}function Qo(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:sl},credentials:s}).then(function(y){return y.body})}}function hl(){bn.refs.clearCache()}function Gu(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,F=t.requestInterceptor,G=t.responseInterceptor,te=t.skipNormalization,ne=t.useCircularStructures,se=t.http,ye=t.baseDoc;if(ye=ye||o,se=r||se||Fi,!i)return Qo(se,{requestInterceptor:F,responseInterceptor:G})(ye).then(ge);return ge(i);function ge(Ae){ye&&(bn.refs.docCache[ye]=Ae),bn.refs.fetchJSON=Qo(se,{requestInterceptor:F,responseInterceptor:G});var me=[bn.refs];return typeof E=="function"&&me.push(bn.parameters),typeof w=="function"&&me.push(bn.properties),s!=="strict"&&me.push(bn.allOf),mc({spec:Ae,context:{baseDoc:ye},plugins:me,allowMetaPatches:y,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:ne}).then(te?function(){var Te=ks(ar().mark(function He(Be){return ar().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.abrupt("return",Be);case 1:case"end":return De.stop()}},He)}));return function(He){return Te.apply(this,arguments)}}():Xo)}}var io=a(27361),Sa=a.n(io);function xc(t,r){return Zo.apply(this,arguments)}function Zo(){return Zo=ks(ar().mark(function t(r,i){var o,s,p,y,A,w,E,F,G,te,ne,se,ye=arguments;return ar().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return o=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=o.returnEntireTree,p=o.baseDoc,y=o.requestInterceptor,A=o.responseInterceptor,w=o.parameterMacro,E=o.modelPropertyMacro,F=o.useCircularStructures,G={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:F},te=Xo({spec:r}),ne=te.spec,Ae.next=6,Gu(cr(cr({},G),{},{spec:ne,allowMetaPatches:!0,skipNormalization:!0}));case 6:return se=Ae.sent,!s&&Array.isArray(i)&&i.length&&(se.spec=Sa()(se.spec,i)||null),Ae.abrupt("return",se);case 9:case"end":return Ae.stop()}},t)})),Zo.apply(this,arguments)}var _o=function(){return null},bc=function(r){return Array.isArray(r)?r:[r]},qo={mapTagOperations:Sc,makeExecute:ao};function ao(){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 y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},So()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},y))}}}function wc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qo.makeExecute(t),i=qo.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=qo.makeExecute(t);return{apis:qo.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Sc(t){var r=t.spec,i=t.cb,o=i===void 0?_o:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,A={},w={};return aa(r,function(E){var F=E.pathName,G=E.method,te=E.operation,ne=te.tags?bc(te.tags):[p];ne.forEach(function(se){if(typeof se=="string"){w[se]=w[se]||{};var ye=w[se],ge=hi(te,F,G,{v2OperationIdCompatibilityMode:y}),Ae=o({spec:r,pathName:F,method:G,operation:te,operationId:ge});if(A[ge]){var me;A[ge]+=1,ye[Ct()(me="".concat(ge)).call(me,A[ge])]=Ae}else if(typeof ye[ge]!="undefined"){var Te,He,Be=A[ge]||1;A[ge]=Be+1,ye[Ct()(Te="".concat(ge)).call(Te,A[ge])]=Ae;var ze=ye[ge];delete ye[ge],ye[Ct()(He="".concat(ge)).call(He,Be)]=ze}else ye[ge]=Ae}})}),w}var es=a(95683);function Ku(t,r){if(t==null)return{};var i={},o=As(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(es(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(Wi){var p=Wi(t);for(s=0;s<p.length;s++)o=p[s],!(es(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Yu=a(68630),vl=a.n(Yu),Ec=a(1469),gl=a.n(Ec),oo=a(76489);const so={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 ts(t,r){return wo()(r).call(r,"application/json")?typeof t=="string"?t:La()(t):t.toString()}function Xu(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,y=o.explode,A=o.content;if(A){var w=Qt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Mr(ts(i,w),{escape:!0}));return}var E=_n({key:o.name,value:i,style:p||"simple",explode:y||!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=Qt()(o.content)[0];r.query[o.name]=ts(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:So()(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=Qt()(i.content)[0];r.headers[i.name]=ts(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 yl(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=ir(o);if(i.content){var p,y=Qt()(i.content)[0];r.headers.Cookie=Ct()(p="".concat(i.name,"=")).call(p,ts(o,y));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,y=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Aa({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=Qt()(w.content||{}),F=A&&E.indexOf(A)>-1;if(o||y){if(A&&F)r.headers["Content-Type"]=A;else if(!A){var G=E[0];G&&(r.headers["Content-Type"]=G,A=G)}}else A&&F&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var te,ne=ln()(te=Da()(i.responses)).call(te,function(ye){var ge=rn(ye,2),Ae=ge[0],me=ge[1],Te=parseInt(Ae,10);return Te>=200&&Te<300&&vl()(me.content)}).reduce(function(ye,ge){var Ae=rn(ge,2),me=Ae[1];return Ct()(ye).call(ye,Qt()(me.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(ir(o)==="object"){var se=(w.content[A]||{}).encoding||{};r.form={},Qt()(o).forEach(function(ye){r.form[ye]={value:o[ye],encoding:se[ye]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Aa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,A=Hi()({},r),w=o.authorized,E=w===void 0?{}:w,F=p.security||y.security||[],G=E&&!!Qt()(E).length,te=Sa()(y,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!G||!F||Array.isArray(p.security)&&!p.security.length?r:(F.forEach(function(ne){Qt()(ne).forEach(function(se){var ye=E[se],ge=te[se];if(!!ye){var Ae=ye.value||ye,me=ge.type;if(ye){if(me==="apiKey")ge.in==="query"&&(A.query[ge.name]=Ae),ge.in==="header"&&(A.headers[ge.name]=Ae),ge.in==="cookie"&&(A.cookies[ge.name]=Ae);else if(me==="http"){if(/^basic$/i.test(ge.scheme)){var Te,He=Ae.username||"",Be=Ae.password||"",ze=_u()(Ct()(Te="".concat(He,":")).call(Te,Be));A.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(ge.scheme)&&(A.headers.Authorization="Bearer ".concat(Ae))}else if(me==="oauth2"||me==="openIdConnect"){var De,Ue=ye.token||{},We=ge["x-tokenName"]||"access_token",Je=Ue[We],et=Ue.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),A.headers.Authorization=Ct()(De="".concat(et," ")).call(De,Je)}}}})}),A)}function ef(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=rs({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 F=rn(o.consumes,1);r.headers["Content-Type"]=F[0]}else if(Array.isArray(i.consumes)){var G=rn(i.consumes,1);r.headers["Content-Type"]=G[0]}else o.parameters&&ln()(w=o.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&ln()(E=o.parameters).call(E,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var te,ne,se=o.parameters&&ln()(te=o.parameters).call(te,function(ge){return ge.in==="body"}).length>0,ye=o.parameters&&ln()(ne=o.parameters).call(ne,function(ge){return ge.in==="formData"}).length>0;(se||ye)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function rs(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,A=Hi()({},r),w=o.authorized,E=w===void 0?{}:w,F=o.specSecurity,G=F===void 0?[]:F,te=p.security||G,ne=E&&!!Qt()(E).length,se=y.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!ne||!te||Array.isArray(p.security)&&!p.security.length?r:(te.forEach(function(ye){Qt()(ye).forEach(function(ge){var Ae=E[ge];if(!!Ae){var me=Ae.token,Te=Ae.value||Ae,He=se[ge],Be=He.type,ze=He["x-tokenName"]||"access_token",De=me&&me[ze],Ue=me&&me.token_type;if(Ae){if(Be==="apiKey"){var We=He.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][He.name]=Te}else if(Be==="basic")if(Te.header)A.headers.authorization=Te.header;else{var Je,et=Te.username||"",$e=Te.password||"";Te.base64=_u()(Ct()(Je="".concat(et,":")).call(Je,$e)),A.headers.authorization="Basic ".concat(Te.base64)}else if(Be==="oauth2"&&De){var gt;Ue=!Ue||Ue.toLowerCase()==="bearer"?"Bearer":Ue,A.headers.authorization=Ct()(gt="".concat(Ue," ")).call(gt,De)}}}})}),A)}var tf=function(r){return Array.isArray(r)?r:[]},kc=ol("OperationNotFoundError",function(r,i,o){this.originalError=o,nn()(this,i||{})}),Mc=function(r,i){return ln()(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 Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},Rc={buildRequest:Ea};function ml(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,y=t.method,A=t.parameters,w=t.securities,E=Ac(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),F=r||i||Fi;p&&y&&!s&&(s=pl(p,y));var G=Rc.buildRequest(cr({spec:o,operationId:s,parameters:A,securities:w,http:F},E));return G.body&&(vl()(G.body)||gl()(G.body))&&(G.body=La()(G.body)),F(G)}function Ea(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,F=t.userFetch,G=t.server,te=t.serverVariables,ne=t.http,se=t.parameters,ye=t.parameterBuilders,ge=Wu(o);ye||(ge?ye=x:ye=so);var Ae=ne&&ne.withCredentials?"include":"same-origin",me={url:"",credentials:Ae,headers:{},cookies:{}};A&&(me.requestInterceptor=A),w&&(me.responseInterceptor=w),F&&(me.userFetch=F);var Te=zu(o,s);if(!Te)throw new kc("Operation ".concat(s," not found"));var He=Te.operation,Be=He===void 0?{}:He,ze=Te.method,De=Te.pathName;if(me.url+=lo({spec:o,scheme:y,contextUrl:E,server:G,serverVariables:te,pathName:De,method:ze}),!s)return delete me.cookies,me;me.url+=De,me.method="".concat(ze).toUpperCase(),se=se||{};var Ue=o.paths[De]||{};p&&(me.headers.accept=p);var We=hr(Ct()(r=Ct()(i=[]).call(i,tf(Be.parameters))).call(r,tf(Ue.parameters)));We.forEach(function($e){var gt=ye[$e.in],Nt;if($e.in==="body"&&$e.schema&&$e.schema.properties&&(Nt=se),Nt=$e&&$e.name&&se[$e.name],typeof Nt=="undefined"){var zt;Nt=$e&&$e.name&&se[Ct()(zt="".concat($e.in,".")).call(zt,$e.name)]}else if(Mc($e.name,We).length>1){var or;console.warn(Ct()(or="Parameter '".concat($e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,$e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof $e.default!="undefined"&&typeof Nt=="undefined"&&(Nt=$e.default),typeof Nt=="undefined"&&$e.required&&!$e.allowEmptyValue)throw new Error("Required parameter ".concat($e.name," is not provided"));if(ge&&$e.schema&&$e.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(kr){throw new Error("Could not parse object parameter value string as JSON")}gt&&gt({req:me,parameter:$e,value:Nt,operation:Be,spec:o})}});var Je=cr(cr({},t),{},{operation:Be});if(ge?me=qu(Je,me):me=ef(Je,me),me.cookies&&Qt()(me.cookies).length){var et=Qt()(me.cookies).reduce(function($e,gt){var Nt=me.cookies[gt],zt=$e?"&":"",or=oo.serialize(gt,Nt);return $e+zt+or},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,du(me),me}var On=function(r){return r?r.replace(/\W/g,""):null};function lo(t){var r=Wu(t.spec);return r?xl(t):af(t)}function xl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,A=y===void 0?{}:y,w=Sa()(r,["paths",i,(o||"").toLowerCase(),"servers"])||Sa()(r,["paths",i,"servers"])||Sa()(r,["servers"]),E="",F=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(se){return se.url});G.indexOf(s)>-1&&(E=s,F=w[G.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var te=rn(w,1);F=te[0]}if(E.indexOf("{")>-1){var ne=nf(E);ne.forEach(function(se){if(F.variables&&F.variables[se]){var ye=F.variables[se],ge=A[se]||ye.default,Ae=new RegExp("{".concat(se,"}"),"g");E=E.replace(Ae,ge)}})}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?Pi.parse(Pi.resolve(r,t)):Pi.parse(t),o=Pi.parse(r),s=On(i.protocol)||On(o.protocol)||"",p=i.host||o.host,y=i.pathname||"",A;if(s&&p){var w;A=Ct()(w="".concat(s,"://")).call(w,p+y)}else A=y;return A[A.length-1]==="/"?In()(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=Pi.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||y||On(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",F;if(A&&w){var G;F=Ct()(G="".concat(A,"://")).call(G,w+E)}else F=E;return F[F.length-1]==="/"?In()(F).call(F,0,-1):F}xr.http=Fi,xr.makeHttp=Js.bind(null,xr.http),xr.resolve=Gu,xr.resolveSubtree=xc,xr.execute=ml,xr.serializeRes=fu,xr.serializeHeaders=Ks,xr.clearCache=hl,xr.makeApisTagOperation=$u,xr.buildRequest=Ea,xr.helpers={opId:hi},xr.getBaseUrl=lo;function xr(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 xr))return new xr(i);Hi()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||Hi()(r,xr.makeApisTagOperation(r)),r});return o.client=this,o}xr.prototype={http:Fi,execute:function(r){return this.applyDefaults(),xr.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 xr.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})}},xr.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&zi()(i,"http")){var o=Pi.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Lc=xr.helpers;const Dc=xr;var Gt=a(25446),bl=a(11429),Wt=a(76671),of=a(7930),uo=a(51027),vi=a(50771),sf=a(17673),Gn=a(64776),Nc=Object.defineProperty,wr=Object.defineProperties,Bc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,ns=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))ns.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>wr(t,Bc(r)),l=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class m{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:A,errorCallback:w}){const E=(0,Gn.p8)({date:new Date().toString()}),F=new URL(r),G=p==="/"?"":p,te=`${window.location.origin}${G}${f}`;F.searchParams.set("client_id",i),F.searchParams.set("redirect_uri",y||te),F.searchParams.set("response_type","token"),F.searchParams.set("state",E),Array.isArray(o)&&F.searchParams.set("scope",o.join(" "));for(const ne in s)F.searchParams.set(ne,s[ne]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:E,successCallback:ne=>{A(ne),m.clearRedirectData("implicit")},errorCallback:ne=>{w(ne),m.clearRedirectData("implicit")}},window.open(F.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:A,extraParams:w={},extraHeaders:E={},routingBasePath:F,redirectUri:G,successCallback:te,errorCallback:ne}){const se=new URL(r),ye=F==="/"?"":F,ge=`${window.location.origin}${ye}${f}`,Ae=(0,Gn.p8)({date:new Date().toString()});se.searchParams.set("client_id",o),se.searchParams.set("redirect_uri",G||ge),se.searchParams.set("response_type","code"),se.searchParams.set("state",Ae),Array.isArray(A)&&se.searchParams.set("scope",A.join(" ")),y&&(se.searchParams.set("code_challenge",y),se.searchParams.set("code_challenge_method","S256"));for(const me in w)se.searchParams.set(me,w[me]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:A},state:Ae,successCallback:me=>l(this,[me],function*({auth_code:Te}){try{const He=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},E),body:sf.stringify(n(u(n({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:Te,grant_type:"authorization_code",redirect_uri:G||ge}),w))});yield U(He,te,ne)}catch(He){ne(He)}m.clearRedirectData("authorizationCode")}),errorCallback:me=>{ne(me),m.clearRedirectData("authorizationCode")}},window.open(se.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:y={},extraHeaders:A={},successCallback:w,errorCallback:E}){try{const F=JSON.parse(JSON.stringify(n({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)&&p.length?p.join(" "):void 0},y))),G=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:sf.stringify(F)});yield U(G,w,E)}catch(F){E(F)}})}}const k=new m;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,Gn.rS)(yield(0,Gn.JQ)(t))})}var Z=a(68929),be;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(be||(be={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var Ne=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function ot(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function yt(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||(ct(i)?"binary":"");return r.type===be.STRING&&ke.includes(o)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const i=t.format||t.contentEncoding||"";return t.type===be.STRING&&ke.includes(i)}function bt(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(Ce.BASE64)}function It(t,r){return Ne(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===be.STRING&&Ft(r)?o=yield bt(i[0]):r.type===be.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(i.map(p=>Ne(this,null,function*(){return yield bt(p)}))):o=i),o})}var it=a(39713),Tt=a(58804),Sr=a(8418),vr=a(32335),wn=Object.defineProperty,fn=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Ar=(t,r,i)=>r in t?wn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dr=(t,r)=>{for(var i in r||(r={}))Vr.call(r,i)&&Ar(t,i,r[i]);if(Yr)for(var i of Yr(r))Fr.call(r,i)&&Ar(t,i,r[i]);return t},cn=(t,r)=>fn(t,Ir(r)),Ca=(t,r)=>{var i={};for(var o in t)Vr.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Yr)for(var o of Yr(t))r.indexOf(o)<0&&Fr.call(t,o)&&(i[o]=t[o]);return i};const gi=t=>Tt.css`
93
93
  border: var(--input-border);
94
94
  outline: none;
95
95
  padding: var(--input-padding);
@@ -137,7 +137,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137
137
  cursor: pointer;
138
138
  text-align: center;
139
139
  color: var(--panel-samples-text-color);
140
- `;function yi(t,r){var i=t,{fullWidth:o,errorMessage:s,type:p,inputActionButton:y,panel:A="samples"}=i,w=Ca(i,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[E,F]=d.useState(p==="password"),G=d.useCallback(()=>{F(!E)},[E]);return d.createElement(Jr,{fullWidth:o,type:p},d.createElement(ri,null,d.createElement(Wr,dr({fullWidth:o,inputActionButton:y,type:E?"password":"text",inputType:p,ref:r,panel:A},w)),y?d.createElement(is,{onClick:y.onClick},y.label):p==="password"?d.createElement(is,{onClick:G},E?"show":"hide"):null),s?d.createElement(it.Xq,null,s):null)}const $n=d.forwardRef(yi);function Lr(t){const r=Tn(dr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement($n,cn(dr(dr({},i),p),{errorMessage:s.error})))}const ni=$r(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((E,F)=>({value:E.title||E.value,idx:F,origValue:E.value})),p=s.find(E=>E.origValue===t),[y,A]=d.useState(p==null?void 0:p.value);(0,Sr.b6)(()=>{t&&i.setValue(t)});const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),A(s[E.idx].value)},[s,i]);return d.createElement(Jr,{fullWidth:!0},d.createElement(vr.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),o.error?d.createElement(it.Xq,null,o.error):null)});var an=a(25973);const Fh=$r(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=d.useState(),p=r.map((w,E)=>({idx:E,value:w})),y=w=>{i.setValue(w.value),s(w.value)};(0,Sr.b6)(()=>{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(an.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:p,handleClear:A,onChange:y})}),kh=({name:t,param:r,place:i,renderParameter:o})=>{var s,p,y,A,w;const[E,F]=d.useState([]),G=()=>{F([...E,E.length?E[E.length-1]+1:0])},te=oe=>{F(E.filter(ye=>ye!==oe))},ne=((s=r.schema.items)==null?void 0:s.fields)?(p=r.schema.items)==null?void 0:p.fields:[{schema:((y=r.schema.items)==null?void 0:y.schema)||r.schema.items,name:"",required:r.required,description:(A=r.schema.items)==null?void 0:A.description,externalDocs:(w=r.schema.items)==null?void 0:w.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return d.createElement(d.Fragment,null,d.createElement(Fd,null,d.createElement(it.lX,{required:r.required},t,"(",E.length," items)"),d.createElement("span",{onClick:G},"Add item +")),E==null?void 0:E.map((oe,ye)=>d.createElement(Fd,{key:oe},d.createElement(Mh,{onClick:()=>te(oe)},"delete"),ne.map(ge=>o(ge,i,`${t}.[${oe}]`,`[${ye}]${ge.name&&"."+ge.name}`)))))},Fd=Tt.default.div`
140
+ `;function yi(t,r){var i=t,{fullWidth:o,errorMessage:s,type:p,inputActionButton:y,panel:A="samples"}=i,w=Ca(i,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[E,F]=d.useState(p==="password"),G=d.useCallback(()=>{F(!E)},[E]);return d.createElement(Jr,{fullWidth:o,type:p},d.createElement(ri,null,d.createElement(Wr,dr({fullWidth:o,inputActionButton:y,type:E?"password":"text",inputType:p,ref:r,panel:A},w)),y?d.createElement(is,{onClick:y.onClick},y.label):p==="password"?d.createElement(is,{onClick:G},E?"show":"hide"):null),s?d.createElement(it.Xq,null,s):null)}const $n=d.forwardRef(yi);function Lr(t){const r=Tn(dr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement($n,cn(dr(dr({},i),p),{errorMessage:s.error})))}const ni=$r(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((E,F)=>({value:E.title||E.value,idx:F,origValue:E.value})),p=s.find(E=>E.origValue===t),[y,A]=d.useState(p==null?void 0:p.value);(0,Sr.b6)(()=>{t&&i.setValue(t)});const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),A(s[E.idx].value)},[s,i]);return d.createElement(Jr,{fullWidth:!0},d.createElement(vr.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),o.error?d.createElement(it.Xq,null,o.error):null)});var an=a(25973);const Fh=$r(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=d.useState(),p=r.map((w,E)=>({idx:E,value:w})),y=w=>{i.setValue(w.value),s(w.value)};(0,Sr.b6)(()=>{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(an.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:p,handleClear:A,onChange:y})}),kh=({name:t,param:r,place:i,renderParameter:o})=>{var s,p,y,A,w;const[E,F]=d.useState([]),G=()=>{F([...E,E.length?E[E.length-1]+1:0])},te=se=>{F(E.filter(ye=>ye!==se))},ne=((s=r.schema.items)==null?void 0:s.fields)?(p=r.schema.items)==null?void 0:p.fields:[{schema:((y=r.schema.items)==null?void 0:y.schema)||r.schema.items,name:"",required:r.required,description:(A=r.schema.items)==null?void 0:A.description,externalDocs:(w=r.schema.items)==null?void 0:w.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return d.createElement(d.Fragment,null,d.createElement(Fd,null,d.createElement(it.lX,{required:r.required},t,"(",E.length," items)"),d.createElement("span",{onClick:G},"Add item +")),E==null?void 0:E.map((se,ye)=>d.createElement(Fd,{key:se},d.createElement(Mh,{onClick:()=>te(se)},"delete"),ne.map(ge=>o(ge,i,`${t}.[${se}]`,`[${ye}]${ge.name&&"."+ge.name}`)))))},Fd=Tt.default.div`
141
141
  display: flex;
142
142
  width: 100%;
143
143
  align-items: center;
@@ -163,7 +163,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
163
163
  border: none;
164
164
  cursor: pointer;
165
165
  position: relative;
166
- `;var as;(function(t){t.ARRAY="array",t.OBJECT="object"})(as||(as={}));function Rh({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function Lh(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function Dh({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===as.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const o=t.rawSchema.minItems;return`You should select at least ${o===1?`${o} item`:`${o} items`}`}}}}function Nh(t){if(t.type===as.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,zt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function Bh({oneOfType:t}){return t}const Uh=["path","query","cookie","header"];function jh({id:t,param:r,values:i}){const o=(0,d.useMemo)(()=>Dh(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,p=Nh(r.schema),y=t.split(".").map(A=>(0,Wt.dw)(A));return s?d.createElement(it.NI,null,d.createElement(Fh,{initValue:p,paramEnum:s,field:t})):d.createElement(Lr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:Rh(r),validate:o,initialValue:p||(0,Wt.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function Vh({values:t,operation:r}){const i=(0,d.useMemo)(()=>Lh(r.parameters||[]),[r]),o=(p,y,A,w)=>{var E;const F=A?(0,Wt.s1)(A,p.name):p.name,G=Bh(p.schema),te=A?[y,A]:[p.in],ne=(0,Wt.s1)(...te,(0,Wt.A8)(p.name));return G&&console.warn(`Unsupported parameter definition: "${G}"`),p.schema.type===as.ARRAY?d.createElement(kh,{key:ne,name:F,param:p,place:y,renderParameter:o}):p.schema.type===as.OBJECT?(E=p.schema.fields)==null?void 0:E.map(oe=>o(oe,y,F)):d.createElement(it.NI,{key:ne},d.createElement(it.lX,{required:p.required},w||F,":"),G?d.createElement(it.GE,null,"Unsupported field schema definition"):d.createElement(jh,{id:ne,param:p,values:t}))},s=p=>{const y=i[p];return!y||!y.length?null:d.createElement(d.Fragment,{key:p},d.createElement(it.NI,null,d.createElement(it.iG,null," # ",p," parameters "),d.createElement("span",null,"\xA0")),y.map(A=>o(A,p)))};return d.createElement(it.iA,null,Uh.map(s))}var nr=a(7241),Wh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function Hh(t){return Wh(this,null,function*(){return(yield fetch(t)).json()})}const zh=Tt.default.div`
166
+ `;var as;(function(t){t.ARRAY="array",t.OBJECT="object"})(as||(as={}));function Rh({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function Lh(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function Dh({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===as.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const o=t.rawSchema.minItems;return`You should select at least ${o===1?`${o} item`:`${o} items`}`}}}}function Nh(t){if(t.type===as.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Wt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function Bh({oneOfType:t}){return t}const Uh=["path","query","cookie","header"];function jh({id:t,param:r,values:i}){const o=(0,d.useMemo)(()=>Dh(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,p=Nh(r.schema),y=t.split(".").map(A=>(0,Gt.dw)(A));return s?d.createElement(it.NI,null,d.createElement(Fh,{initValue:p,paramEnum:s,field:t})):d.createElement(Lr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:Rh(r),validate:o,initialValue:p||(0,Gt.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function Vh({values:t,operation:r}){const i=(0,d.useMemo)(()=>Lh(r.parameters||[]),[r]),o=(p,y,A,w)=>{var E;const F=A?(0,Gt.s1)(A,p.name):p.name,G=Bh(p.schema),te=A?[y,A]:[p.in],ne=(0,Gt.s1)(...te,(0,Gt.A8)(p.name));return G&&console.warn(`Unsupported parameter definition: "${G}"`),p.schema.type===as.ARRAY?d.createElement(kh,{key:ne,name:F,param:p,place:y,renderParameter:o}):p.schema.type===as.OBJECT?(E=p.schema.fields)==null?void 0:E.map(se=>o(se,y,F)):d.createElement(it.NI,{key:ne},d.createElement(it.lX,{required:p.required},w||F,":"),G?d.createElement(it.GE,null,"Unsupported field schema definition"):d.createElement(jh,{id:ne,param:p,values:t}))},s=p=>{const y=i[p];return!y||!y.length?null:d.createElement(d.Fragment,{key:p},d.createElement(it.NI,null,d.createElement(it.iG,null," # ",p," parameters "),d.createElement("span",null,"\xA0")),y.map(A=>o(A,p)))};return d.createElement(it.iA,null,Uh.map(s))}var tr=a(7241),Wh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function Hh(t){return Wh(this,null,function*(){return(yield fetch(t)).json()})}const zh=Tt.default.div`
167
167
  position: relative;
168
168
  height: 4px;
169
169
  display: block;
@@ -303,7 +303,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
303
303
  text-align: left;
304
304
  `,lv=(0,Tt.default)(ff.SamplesControlButton)`
305
305
  float: right;
306
- `;function Dd(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,Wt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(it.NI,null,d.createElement(it.lX,null," Scopes: "),d.createElement(ov,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var uv=Object.defineProperty,fv=Object.defineProperties,cv=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,dv=Object.prototype.hasOwnProperty,pv=Object.prototype.propertyIsEnumerable,jc=(t,r,i)=>r in t?uv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cf=(t,r)=>{for(var i in r||(r={}))dv.call(r,i)&&jc(t,i,r[i]);if(Nd)for(var i of Nd(r))pv.call(r,i)&&jc(t,i,r[i]);return t},Vc=(t,r)=>fv(t,cv(r)),wl=(t,r,i)=>(jc(t,typeof r!="symbol"?r+"":r,i),i),hv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function vv(t){if(!t)return"Field is required"}class Sl extends d.Component{constructor(){super(...arguments);wl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),wl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),wl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),wl(this,"handleCodeVerifierChange",r=>hv(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,Gn.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:y,tokenEndpointAuthMethod:A}=this.props;if(!(0,Gn.Qr)(this.errors))return;this.setState({loading:!0,error:null});const w=y?y+(0,nr.jg)(r):r,E=y&&p?y+(0,nr.jg)(p):p,F=this.props.formApi.getValue(`auth.${s}.scopes`),G={authorizationUrl:w.startsWith("http")?w:this.props.server+w,clientId:this.values.client_id,scopes:F,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:te=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,te),this.setState({loading:!1,error:null})},errorCallback:te=>{this.setState({loading:!1,error:(te==null?void 0:te.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&m.authorizeImplicit(G),!(0,nr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}i==="authorizationCode"&&m.authorizeAuthorizationCode(cf(Vc(cf({},G),{tokenUrl:(E==null?void 0:E.startsWith("http"))?E:this.props.server+E,clientSecret:this.values.client_secret,extraHeaders:(0,nr.Or)({authMethod:A,clientId:this.values.client_id,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}),m.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:y,usePkce:A,defaultValues:w}=this.props;if(!p)return d.createElement(it.Xq,null,"No flow info");let E=(0,Wt.YQ)(`auth.${o}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const F=(0,Wt.Al)(o,"client_id"),G={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Wt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,Wt.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:vv,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null," Client ID: "),F?d.createElement(ni,Vc(cf({},G),{options:F})):d.createElement(Lr,Vc(cf({},G),{"data-cy":"client-id-input",panel:"try-it"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Wt.YQ)(`auth.${o}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&d.createElement(mv,null,d.createElement(Ld,{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(xv,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Verifier"),d.createElement($n,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Challenge"),d.createElement($n,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:te}})=>{this.setState({codeChallenge:te})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),d.createElement(Lr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:E,panel:"try-it"}),d.createElement(Dd,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement($n,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),d.createElement(yv,null,this.values.token&&this.values.token.access_token?d.createElement(uf.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(uf.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(kd,null)):d.createElement(uf.Button,{fullWidth:!0,disabled:!(0,Gn.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(it.n5,null,d.createElement(it.NI,null,i?d.createElement(it.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(gv,null,d.createElement(it.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(it.GE,null," No Access Token. Please, Authorize. "):null)))}}wl(Sl,"contextType",zt.OptionsContext);const gv=Tt.default.div`
306
+ `;function Dd(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(it.NI,null,d.createElement(it.lX,null," Scopes: "),d.createElement(ov,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var uv=Object.defineProperty,fv=Object.defineProperties,cv=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,dv=Object.prototype.hasOwnProperty,pv=Object.prototype.propertyIsEnumerable,jc=(t,r,i)=>r in t?uv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cf=(t,r)=>{for(var i in r||(r={}))dv.call(r,i)&&jc(t,i,r[i]);if(Nd)for(var i of Nd(r))pv.call(r,i)&&jc(t,i,r[i]);return t},Vc=(t,r)=>fv(t,cv(r)),wl=(t,r,i)=>(jc(t,typeof r!="symbol"?r+"":r,i),i),hv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function vv(t){if(!t)return"Field is required"}class Sl extends d.Component{constructor(){super(...arguments);wl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),wl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),wl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),wl(this,"handleCodeVerifierChange",r=>hv(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,Gn.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:y,tokenEndpointAuthMethod:A}=this.props;if(!(0,Gn.Qr)(this.errors))return;this.setState({loading:!0,error:null});const w=y?y+(0,tr.jg)(r):r,E=y&&p?y+(0,tr.jg)(p):p,F=this.props.formApi.getValue(`auth.${s}.scopes`),G={authorizationUrl:w.startsWith("http")?w:this.props.server+w,clientId:this.values.client_id,scopes:F,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:te=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,te),this.setState({loading:!1,error:null})},errorCallback:te=>{this.setState({loading:!1,error:(te==null?void 0:te.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&m.authorizeImplicit(G),!(0,tr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}i==="authorizationCode"&&m.authorizeAuthorizationCode(cf(Vc(cf({},G),{tokenUrl:(E==null?void 0:E.startsWith("http"))?E:this.props.server+E,clientSecret:this.values.client_secret,extraHeaders:(0,tr.Or)({authMethod:A,clientId:this.values.client_id,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}),m.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:y,usePkce:A,defaultValues:w}=this.props;if(!p)return d.createElement(it.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 F=(0,Gt.Al)(o,"client_id"),G={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:vv,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null," Client ID: "),F?d.createElement(ni,Vc(cf({},G),{options:F})):d.createElement(Lr,Vc(cf({},G),{"data-cy":"client-id-input",panel:"try-it"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&d.createElement(it.NI,null,d.createElement(it.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,panel:"try-it","data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&d.createElement(mv,null,d.createElement(Ld,{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(xv,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Verifier"),d.createElement($n,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Challenge"),d.createElement($n,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:te}})=>{this.setState({codeChallenge:te})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),d.createElement(Lr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:E,panel:"try-it"}),d.createElement(Dd,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement($n,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),d.createElement(yv,null,this.values.token&&this.values.token.access_token?d.createElement(uf.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(uf.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(kd,null)):d.createElement(uf.Button,{fullWidth:!0,disabled:!(0,Gn.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(it.n5,null,d.createElement(it.NI,null,i?d.createElement(it.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(gv,null,d.createElement(it.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(it.GE,null," No Access Token. Please, Authorize. "):null)))}}wl(Sl,"contextType",Wt.OptionsContext);const gv=Tt.default.div`
307
307
  font-family: var(--font-family-monospaced);
308
308
  margin-top: 10px;
309
309
  line-height: 1;
@@ -315,7 +315,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
315
315
  padding: 8px 0 20px;
316
316
  `,xv=Tt.default.div`
317
317
  padding: 4px 0;
318
- `;var bv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function wv(t){var r,i;const{scheme:o,defaultValues:s}=t,[p,y]=(0,d.useState)({}),[A,w]=(0,d.useState)(),[E,F]=(0,d.useState)(!1);(0,d.useEffect)(()=>{G(o.openIdConnectUrl)},[o.openIdConnectUrl]);const G=te=>bv(this,null,function*(){F(!0),w("");try{const ne=yield Hh(te);y(ne)}catch(ne){w(ne.message)}F(!1)});return E?d.createElement(Sv,null):A?d.createElement(Bd,{message:A}):d.createElement("div",null,d.createElement("div",null,((r=p==null?void 0:p.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(an.S6,null,"OAuth2 Implicit Flow"),d.createElement(Sl,{key:t.id,authorizationUrl:p.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=p==null?void 0:p.response_types_supported)==null?void 0:i.includes("code"))?d.createElement(d.Fragment,null,d.createElement(an.S6,null,"OAuth2 Authorization Flow"),d.createElement(Sl,{key:t.id,authorizationUrl:p.authorization_endpoint,tokenUrl:p.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:p==null?void 0:p.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):d.createElement("div",null,"Unsupported flow")))}function Sv(){return d.createElement("div",null,d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(kd,null)))}function Bd({message:t}){return d.createElement("div",null,d.createElement("div",null,d.createElement(it.Xq,null,t)))}var oa=a(45756),Av=Object.defineProperty,Ev=Object.defineProperties,Cv=Object.getOwnPropertyDescriptors,Ud=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,jd=(t,r)=>{for(var i in r||(r={}))Ov.call(r,i)&&Wc(t,i,r[i]);if(Ud)for(var i of Ud(r))Tv.call(r,i)&&Wc(t,i,r[i]);return t},Vd=(t,r)=>Ev(t,Cv(r)),df=(t,r,i)=>(Wc(t,typeof r!="symbol"?r+"":r,i),i),Pv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function Iv(t){if(!t)return"Token is required"}class Fv extends d.Component{constructor(){super(...arguments);df(this,"state",{error:"",loading:!1,tokenMasked:!0}),df(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Wt.WW)(`auth.${this.props.id}.token`,"")}),df(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),df(this,"requestToken",()=>Pv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,nr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,nr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield m.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,nr.Or)({authMethod:A,clientId:p,clientSecret:y}),successCallback:w=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,w),this.setState({loading:!1})},errorCallback:w=>{this.clearToken(),this.setState({error:w.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,y=Object.keys(this.props.flow.scopes);let A=(0,Wt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);A=A?JSON.parse(A):"";const w=(0,Wt.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,Wt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,Wt.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(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Client ID:"),w?d.createElement(ni,Vd(jd({},E),{options:w})):d.createElement(Lr,Vd(jd({},E),{type:"password",panel:"try-it"}))),d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,Wt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),d.createElement(Lr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:Iv}),d.createElement(Dd,{id:s,scopes:y})),d.createElement(oa.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(it.ph,null," Access Token "),i?d.createElement(it.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(it.TR,null,d.createElement(it.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(it.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(it.h,{onClick:this.clearToken}," Clear ")):d.createElement(it.Xq,{style:{marginBottom:"1em"}},"No token"))}}const kv=Fv;var Mv=Object.defineProperty,Rv=Object.defineProperties,Lv=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Dv=Object.prototype.hasOwnProperty,Nv=Object.prototype.propertyIsEnumerable,Hc=(t,r,i)=>r in t?Mv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,os=(t,r)=>{for(var i in r||(r={}))Dv.call(r,i)&&Hc(t,i,r[i]);if(Wd)for(var i of Wd(r))Nv.call(r,i)&&Hc(t,i,r[i]);return t},ss=(t,r)=>Rv(t,Lv(r)),Hd=(t,r,i)=>(Hc(t,typeof r!="symbol"?r+"":r,i),i);class Bv extends d.Component{constructor(){super(...arguments);Hd(this,"state",{activeScheme:0}),Hd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Wt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(A=>A.id).join(" and ")),s=(0,Wt.YQ)("securityRequirementName"),p=o.findIndex(y=>y===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(y=>y.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((y,A)=>({value:y,idx:A}));return p.length===0?d.createElement(Bd,{message:"Cannot find security schema in the definition"}):d.createElement(d.Fragment,null,d.createElement(it.n5,null,p.length>1&&d.createElement(it.NI,null,d.createElement(it.lX,null," Security scheme: "),d.createElement(an.VD,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(y=>{var A,w,E,F,G,te,ne;const oe=(0,Wt.A8)(y.id);if(y.type==="apiKey"){const ye=(0,Wt.Al)(oe,""),ge={field:`auth.${oe}`,fullWidth:!0,initialValue:(0,nr.NG)(y)||(0,Wt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),initValue:(0,nr.NG)(y)||(0,Wt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),validate:nr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(it.NI,{key:oe},d.createElement(it.lX,null," ",y.name,": "),ye?d.createElement(ni,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ye=(0,Wt.Al)(oe,"username"),ge={field:`auth.${oe}.username`,fullWidth:!0,initialValue:(0,Wt.YQ)(`auth.${oe}.username`)||((A=r==null?void 0:r[oe])==null?void 0:A.username),initValue:(0,Wt.YQ)(`auth.${oe}.username`)||((w=r==null?void 0:r[oe])==null?void 0:w.username),validate:nr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:oe},d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,uo.l)("tryItAuthBasicUsername"),": "),ye?d.createElement(ni,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{panel:"try-it"}))),d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,uo.l)("tryItAuthBasicPassword"),": "),d.createElement(Lr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${oe}.password`,initialValue:(0,Wt.YQ)(`auth.${oe}.password`)||((E=r==null?void 0:r[oe])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.scheme==="bearer"){const ye=(0,Wt.Al)(oe,""),ge={field:`auth.${oe}`,fullWidth:!0,initialValue:(0,Wt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),initValue:(0,Wt.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),validate:nr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:oe},d.createElement(it.NI,null,d.createElement(it.lX,null," Bearer Token: "),ye?d.createElement(ni,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(kv,{key:oe,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(Sl,{key:oe,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(F=y==null?void 0:y.flows)==null?void 0:F.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(Sl,{key:oe,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((te=y.flows.authorizationCode)==null?void 0:te.scopes)||{}),server:this.props.activeServer,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"){let ye=(0,Wt.YQ)(`auth.${oe}.token`)||JSON.stringify((ne=r==null?void 0:r[oe])==null?void 0:ne.token);return ye=ye?JSON.parse(ye):{},d.createElement(d.Fragment,{key:oe},d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token Type: "),d.createElement(Lr,{fullWidth:!0,field:`auth.${oe}.token.token_type`,initialValue:ye.token_type||"Bearer",panel:"try-it"})),d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${oe}.token.access_token`,validate:nr.np,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.type==="openIdConnect")return d.createElement(wv,{key:oe,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:oe,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[oe]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Uv=a(9996),jv=a.n(Uv),zc=a(67897),pf=a(49376),Vv=Object.defineProperty,hf=Object.getOwnPropertySymbols,zd=Object.prototype.hasOwnProperty,Gd=Object.prototype.propertyIsEnumerable,$d=(t,r,i)=>r in t?Vv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wv=(t,r)=>{for(var i in r||(r={}))zd.call(r,i)&&$d(t,i,r[i]);if(hf)for(var i of hf(r))Gd.call(r,i)&&$d(t,i,r[i]);return t},Kd=(t,r)=>{var i={};for(var o in t)zd.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&hf)for(var o of hf(t))r.indexOf(o)<0&&Gd.call(t,o)&&(i[o]=t[o]);return i},Hv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const Yd=d.forwardRef((t,r)=>{var i=Kd(t,[]);const o=i,{schema:s,contentName:p,onChange:y,name:A}=o,w=Kd(o,["schema","contentName","onChange","name"]),{render:E}=Tn(Wv({field:A},w)),F=G=>Hv(void 0,null,function*(){const te=yield It(G.target.files,s);y(p,te)});return E(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:F,multiple:i.multiple,accept:i.accept,ref:r}))});Yd.displayName="FileUpload";const zv=(0,Fa.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,p=i.examples||{},{exampleKey:y}=(0,zc.C6)(i.operation,p),A=(r=p[y])==null?void 0:r.rawValue,w=Gv(i);(0,d.useEffect)(()=>s&&w.forEach(F=>{var G,te;const ne=A==null?void 0:A[F.name],oe=(te=(G=F.example)!=null?G:ne==null?void 0:ne.example)!=null?te:ne,ye=typeof oe=="object"?JSON.stringify(oe):oe;oe!==void 0&&s.setValue("body."+F.name,`${ye}`)}),[y]);const E=i.schema||{};return dt(E,i.name)?d.createElement(Jd,null,d.createElement(it.NI,null,d.createElement(Xd,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:ot(i.name),schema:E,contentName:i.name,onChange:o}))):E.type!==be.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(Jd,null,w.map(F=>{const G=F.schema||{},te=i.name===pf.T.MULTIPART&&yt(G),ne=G.contentMediaType||"",oe=te?d.createElement(Xd,{fullWidth:!0,id:"body."+F.name,name:"body."+F.name,accept:ot(ne),multiple:G.type==="array",schema:G,contentName:F.name,onChange:o}):d.createElement(Lr,{fullWidth:!0,id:"body."+F.name,field:"body."+F.name,placeholder:G.description||F.name,panel:"try-it"});return d.createElement(it.NI,{key:F.name},d.createElement(it.lX,null,F.name,":"),oe)}))});function Gv(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(y=>!y.schema.readOnly)}const Jd=Tt.default.div`
318
+ `;var bv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function wv(t){var r,i;const{scheme:o,defaultValues:s}=t,[p,y]=(0,d.useState)({}),[A,w]=(0,d.useState)(),[E,F]=(0,d.useState)(!1);(0,d.useEffect)(()=>{G(o.openIdConnectUrl)},[o.openIdConnectUrl]);const G=te=>bv(this,null,function*(){F(!0),w("");try{const ne=yield Hh(te);y(ne)}catch(ne){w(ne.message)}F(!1)});return E?d.createElement(Sv,null):A?d.createElement(Bd,{message:A}):d.createElement("div",null,d.createElement("div",null,((r=p==null?void 0:p.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(an.S6,null,"OAuth2 Implicit Flow"),d.createElement(Sl,{key:t.id,authorizationUrl:p.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=p==null?void 0:p.response_types_supported)==null?void 0:i.includes("code"))?d.createElement(d.Fragment,null,d.createElement(an.S6,null,"OAuth2 Authorization Flow"),d.createElement(Sl,{key:t.id,authorizationUrl:p.authorization_endpoint,tokenUrl:p.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:p==null?void 0:p.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):d.createElement("div",null,"Unsupported flow")))}function Sv(){return d.createElement("div",null,d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(kd,null)))}function Bd({message:t}){return d.createElement("div",null,d.createElement("div",null,d.createElement(it.Xq,null,t)))}var oa=a(45756),Av=Object.defineProperty,Ev=Object.defineProperties,Cv=Object.getOwnPropertyDescriptors,Ud=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,jd=(t,r)=>{for(var i in r||(r={}))Ov.call(r,i)&&Wc(t,i,r[i]);if(Ud)for(var i of Ud(r))Tv.call(r,i)&&Wc(t,i,r[i]);return t},Vd=(t,r)=>Ev(t,Cv(r)),df=(t,r,i)=>(Wc(t,typeof r!="symbol"?r+"":r,i),i),Pv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function Iv(t){if(!t)return"Token is required"}class Fv extends d.Component{constructor(){super(...arguments);df(this,"state",{error:"",loading:!1,tokenMasked:!0}),df(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Gt.WW)(`auth.${this.props.id}.token`,"")}),df(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),df(this,"requestToken",()=>Pv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,tr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,tr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield m.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,tr.Or)({authMethod:A,clientId:p,clientSecret:y}),successCallback:w=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,w),this.setState({loading:!1})},errorCallback:w=>{this.clearToken(),this.setState({error:w.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,y=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(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Client ID:"),w?d.createElement(ni,Vd(jd({},E),{options:w})):d.createElement(Lr,Vd(jd({},E),{type:"password",panel:"try-it"}))),d.createElement(it.NI,null,d.createElement(it.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),panel:"try-it"})),d.createElement(Lr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:Iv}),d.createElement(Dd,{id:s,scopes:y})),d.createElement(oa.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(it.ph,null," Access Token "),i?d.createElement(it.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(it.TR,null,d.createElement(it.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(it.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(it.h,{onClick:this.clearToken}," Clear ")):d.createElement(it.Xq,{style:{marginBottom:"1em"}},"No token"))}}const kv=Fv;var Mv=Object.defineProperty,Rv=Object.defineProperties,Lv=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Dv=Object.prototype.hasOwnProperty,Nv=Object.prototype.propertyIsEnumerable,Hc=(t,r,i)=>r in t?Mv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,os=(t,r)=>{for(var i in r||(r={}))Dv.call(r,i)&&Hc(t,i,r[i]);if(Wd)for(var i of Wd(r))Nv.call(r,i)&&Hc(t,i,r[i]);return t},ss=(t,r)=>Rv(t,Lv(r)),Hd=(t,r,i)=>(Hc(t,typeof r!="symbol"?r+"":r,i),i);class Bv extends d.Component{constructor(){super(...arguments);Hd(this,"state",{activeScheme:0}),Hd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Gt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(A=>A.id).join(" and ")),s=(0,Gt.YQ)("securityRequirementName"),p=o.findIndex(y=>y===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(y=>y.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((y,A)=>({value:y,idx:A}));return p.length===0?d.createElement(Bd,{message:"Cannot find security schema in the definition"}):d.createElement(d.Fragment,null,d.createElement(it.n5,null,p.length>1&&d.createElement(it.NI,null,d.createElement(it.lX,null," Security scheme: "),d.createElement(an.VD,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(y=>{var A,w,E,F,G,te,ne;const se=(0,Gt.A8)(y.id);if(y.type==="apiKey"){const ye=(0,Gt.Al)(se,""),ge={field:`auth.${se}`,fullWidth:!0,initialValue:(0,tr.NG)(y)||(0,Gt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),initValue:(0,tr.NG)(y)||(0,Gt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),validate:tr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(it.NI,{key:se},d.createElement(it.lX,null," ",y.name,": "),ye?d.createElement(ni,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ye=(0,Gt.Al)(se,"username"),ge={field:`auth.${se}.username`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${se}.username`)||((A=r==null?void 0:r[se])==null?void 0:A.username),initValue:(0,Gt.YQ)(`auth.${se}.username`)||((w=r==null?void 0:r[se])==null?void 0:w.username),validate:tr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:se},d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,uo.l)("tryItAuthBasicUsername"),": "),ye?d.createElement(ni,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{panel:"try-it"}))),d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,uo.l)("tryItAuthBasicPassword"),": "),d.createElement(Lr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${se}.password`,initialValue:(0,Gt.YQ)(`auth.${se}.password`)||((E=r==null?void 0:r[se])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.scheme==="bearer"){const ye=(0,Gt.Al)(se,""),ge={field:`auth.${se}`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),initValue:(0,Gt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),validate:tr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:se},d.createElement(it.NI,null,d.createElement(it.lX,null," Bearer Token: "),ye?d.createElement(ni,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(kv,{key:se,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:se,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[se]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(Sl,{key:se,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(F=y==null?void 0:y.flows)==null?void 0:F.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:se,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[se]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(Sl,{key:se,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((te=y.flows.authorizationCode)==null?void 0:te.scopes)||{}),server:this.props.activeServer,id:se,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[se]});if(y.type==="oauth2"){let ye=(0,Gt.YQ)(`auth.${se}.token`)||JSON.stringify((ne=r==null?void 0:r[se])==null?void 0:ne.token);return ye=ye?JSON.parse(ye):{},d.createElement(d.Fragment,{key:se},d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token Type: "),d.createElement(Lr,{fullWidth:!0,field:`auth.${se}.token.token_type`,initialValue:ye.token_type||"Bearer",panel:"try-it"})),d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${se}.token.access_token`,validate:tr.np,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.type==="openIdConnect")return d.createElement(wv,{key:se,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:se,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[se]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Uv=a(9996),jv=a.n(Uv),zc=a(67897),pf=a(49376),Vv=Object.defineProperty,hf=Object.getOwnPropertySymbols,zd=Object.prototype.hasOwnProperty,Gd=Object.prototype.propertyIsEnumerable,$d=(t,r,i)=>r in t?Vv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Wv=(t,r)=>{for(var i in r||(r={}))zd.call(r,i)&&$d(t,i,r[i]);if(hf)for(var i of hf(r))Gd.call(r,i)&&$d(t,i,r[i]);return t},Kd=(t,r)=>{var i={};for(var o in t)zd.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&hf)for(var o of hf(t))r.indexOf(o)<0&&Gd.call(t,o)&&(i[o]=t[o]);return i},Hv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const Yd=d.forwardRef((t,r)=>{var i=Kd(t,[]);const o=i,{schema:s,contentName:p,onChange:y,name:A}=o,w=Kd(o,["schema","contentName","onChange","name"]),{render:E}=Tn(Wv({field:A},w)),F=G=>Hv(void 0,null,function*(){const te=yield It(G.target.files,s);y(p,te)});return E(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:F,multiple:i.multiple,accept:i.accept,ref:r}))});Yd.displayName="FileUpload";const zv=(0,Fa.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,p=i.examples||{},{exampleKey:y}=(0,zc.C6)(i.operation,p),A=(r=p[y])==null?void 0:r.rawValue,w=Gv(i);(0,d.useEffect)(()=>s&&w.forEach(F=>{var G,te;const ne=A==null?void 0:A[F.name],se=(te=(G=F.example)!=null?G:ne==null?void 0:ne.example)!=null?te:ne,ye=typeof se=="object"?JSON.stringify(se):se;se!==void 0&&s.setValue("body."+F.name,`${ye}`)}),[y]);const E=i.schema||{};return dt(E,i.name)?d.createElement(Jd,null,d.createElement(it.NI,null,d.createElement(Xd,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:ot(i.name),schema:E,contentName:i.name,onChange:o}))):E.type!==be.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(Jd,null,w.map(F=>{const G=F.schema||{},te=i.name===pf.T.MULTIPART&&yt(G),ne=G.contentMediaType||"",se=te?d.createElement(Xd,{fullWidth:!0,id:"body."+F.name,name:"body."+F.name,accept:ot(ne),multiple:G.type==="array",schema:G,contentName:F.name,onChange:o}):d.createElement(Lr,{fullWidth:!0,id:"body."+F.name,field:"body."+F.name,placeholder:G.description||F.name,panel:"try-it"});return d.createElement(it.NI,{key:F.name},d.createElement(it.lX,null,F.name,":"),se)}))});function Gv(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(y=>!y.schema.readOnly)}const Jd=Tt.default.div`
319
319
  > div {
320
320
  margin-top: 10px;
321
321
  }
@@ -326,36 +326,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
326
326
  `;var Qd=a(72409);const $v=(0,Tt.default)(Qd.A3)`
327
327
  border-radius: var(--panel-border-radius);
328
328
  margin-bottom: 10px;
329
- `;var Kv=a(35310),ls=a(4631);function vf(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",p=0,y=16,A=0,w=0,E=0,F=0,G=0;function te(Te,He){for(var Ve=0,ze=0;Ve<Te||!He;){var De=t.charCodeAt(o);if(De>=48&&De<=57)ze=ze*16+De-48;else if(De>=65&&De<=70)ze=ze*16+De-65+10;else if(De>=97&&De<=102)ze=ze*16+De-97+10;else break;o++,Ve++}return Ve<Te&&(ze=-1),ze}function ne(Te){o=Te,s="",p=0,y=16,G=0}function oe(){var Te=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&us(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&us(t.charCodeAt(o)))for(o++;o<t.length&&us(t.charCodeAt(o));)o++;else return G=3,t.substring(Te,o);var He=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&&us(t.charCodeAt(o))){for(o++;o<t.length&&us(t.charCodeAt(o));)o++;He=o}else G=3;return t.substring(Te,He)}function ye(){for(var Te="",He=o;;){if(o>=i){Te+=t.substring(He,o),G=2;break}var Ve=t.charCodeAt(o);if(Ve===34){Te+=t.substring(He,o),o++;break}if(Ve===92){if(Te+=t.substring(He,o),o++,o>=i){G=2;break}var ze=t.charCodeAt(o++);switch(ze){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+=`
330
- `;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var De=te(4,!0);De>=0?Te+=String.fromCharCode(De):G=4;break;default:G=5}He=o;continue}if(Ve>=0&&Ve<=31)if(Al(Ve)){Te+=t.substring(He,o),G=2;break}else G=6;o++}return Te}function ge(){if(s="",G=0,p=o,w=A,F=E,o>=i)return p=i,y=17;var Te=t.charCodeAt(o);if(Gc(Te)){do o++,s+=String.fromCharCode(Te),Te=t.charCodeAt(o);while(Gc(Te));return y=15}if(Al(Te))return o++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(o)===10&&(o++,s+=`
331
- `),A++,E=o,y=14;switch(Te){case 123:return o++,y=1;case 125:return o++,y=2;case 91:return o++,y=3;case 93:return o++,y=4;case 58:return o++,y=6;case 44:return o++,y=5;case 34:return o++,s=ye(),y=10;case 47:var He=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Al(t.charCodeAt(o));)o++;return s=t.substring(He,o),y=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Ve=i-1,ze=!1;o<Ve;){var De=t.charCodeAt(o);if(De===42&&t.charCodeAt(o+1)===47){o+=2,ze=!0;break}o++,Al(De)&&(De===13&&t.charCodeAt(o)===10&&o++,A++,E=o)}return ze||(o++,G=1),s=t.substring(He,o),y=13}return s+=String.fromCharCode(Te),o++,y=16;case 45:if(s+=String.fromCharCode(Te),o++,o===i||!us(t.charCodeAt(o)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=oe(),y=11;default:for(;o<i&&Ae(Te);)o++,Te=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Te),o++,y=16}}function Ae(Te){if(Gc(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 me(){var Te;do Te=ge();while(Te>=12&&Te<=15);return Te}return{setPosition:ne,getPosition:function(){return o},scan:r?me:ge,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-F},getTokenError:function(){return G}}}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 Al(t){return t===10||t===13||t===8232||t===8233}function us(t){return t>=48&&t<=57}function Yv(t,r,i){var o,s,p,y,A;if(r){for(y=r.offset,A=y+r.length,p=y;p>0&&!Zd(t,p-1);)p--;for(var w=A;w<t.length&&!Zd(t,w);)w++;s=t.substring(p,w),o=Jv(s,i)}else s=t,o=0,p=0,y=0,A=t.length;var E=Xv(i,t),F=!1,G=0,te;i.insertSpaces?te=$c(" ",i.tabSize||4):te=" ";var ne=vf(s,!1),oe=!1;function ye(){return E+$c(te,o+G)}function ge(){var et=ne.scan();for(F=!1;et===15||et===14;)F=F||et===14,et=ne.scan();return oe=et===16||ne.getTokenError()!==0,et}var Ae=[];function me(et,$e,gt){!oe&&$e<A&&gt>y&&t.substring($e,gt)!==et&&Ae.push({offset:$e,length:gt-$e,content:et})}var Te=ge();if(Te!==17){var He=ne.getTokenOffset()+p,Ve=$c(te,o);me(Ve,p,He)}for(;Te!==17;){for(var ze=ne.getTokenOffset()+ne.getTokenLength()+p,De=ge(),Be="";!F&&(De===12||De===13);){var We=ne.getTokenOffset()+p;me(" ",ze,We),ze=ne.getTokenOffset()+ne.getTokenLength()+p,Be=De===12?ye():"",De=ge()}if(De===2)Te!==1&&(G--,Be=ye());else if(De===4)Te!==3&&(G--,Be=ye());else{switch(Te){case 3:case 1:G++,Be=ye();break;case 5:case 12:Be=ye();break;case 13:F?Be=ye():Be=" ";break;case 6:Be=" ";break;case 10:if(De===6){Be="";break}case 7:case 8:case 9:case 11:case 2:case 4:De===12||De===13?Be=" ":De!==5&&De!==17&&(oe=!0);break;case 16:oe=!0;break}F&&(De===12||De===13)&&(Be=ye())}var Je=ne.getTokenOffset()+p;me(Be,ze,Je),Te=De}return Ae}function $c(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Jv(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 Xv(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)===`
329
+ `;var Kv=a(35310),ls=a(4631);function vf(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",p=0,y=16,A=0,w=0,E=0,F=0,G=0;function te(Te,He){for(var Be=0,ze=0;Be<Te||!He;){var De=t.charCodeAt(o);if(De>=48&&De<=57)ze=ze*16+De-48;else if(De>=65&&De<=70)ze=ze*16+De-65+10;else if(De>=97&&De<=102)ze=ze*16+De-97+10;else break;o++,Be++}return Be<Te&&(ze=-1),ze}function ne(Te){o=Te,s="",p=0,y=16,G=0}function se(){var Te=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&us(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&us(t.charCodeAt(o)))for(o++;o<t.length&&us(t.charCodeAt(o));)o++;else return G=3,t.substring(Te,o);var He=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&&us(t.charCodeAt(o))){for(o++;o<t.length&&us(t.charCodeAt(o));)o++;He=o}else G=3;return t.substring(Te,He)}function ye(){for(var Te="",He=o;;){if(o>=i){Te+=t.substring(He,o),G=2;break}var Be=t.charCodeAt(o);if(Be===34){Te+=t.substring(He,o),o++;break}if(Be===92){if(Te+=t.substring(He,o),o++,o>=i){G=2;break}var ze=t.charCodeAt(o++);switch(ze){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+=`
330
+ `;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var De=te(4,!0);De>=0?Te+=String.fromCharCode(De):G=4;break;default:G=5}He=o;continue}if(Be>=0&&Be<=31)if(Al(Be)){Te+=t.substring(He,o),G=2;break}else G=6;o++}return Te}function ge(){if(s="",G=0,p=o,w=A,F=E,o>=i)return p=i,y=17;var Te=t.charCodeAt(o);if(Gc(Te)){do o++,s+=String.fromCharCode(Te),Te=t.charCodeAt(o);while(Gc(Te));return y=15}if(Al(Te))return o++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(o)===10&&(o++,s+=`
331
+ `),A++,E=o,y=14;switch(Te){case 123:return o++,y=1;case 125:return o++,y=2;case 91:return o++,y=3;case 93:return o++,y=4;case 58:return o++,y=6;case 44:return o++,y=5;case 34:return o++,s=ye(),y=10;case 47:var He=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Al(t.charCodeAt(o));)o++;return s=t.substring(He,o),y=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Be=i-1,ze=!1;o<Be;){var De=t.charCodeAt(o);if(De===42&&t.charCodeAt(o+1)===47){o+=2,ze=!0;break}o++,Al(De)&&(De===13&&t.charCodeAt(o)===10&&o++,A++,E=o)}return ze||(o++,G=1),s=t.substring(He,o),y=13}return s+=String.fromCharCode(Te),o++,y=16;case 45:if(s+=String.fromCharCode(Te),o++,o===i||!us(t.charCodeAt(o)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=se(),y=11;default:for(;o<i&&Ae(Te);)o++,Te=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Te),o++,y=16}}function Ae(Te){if(Gc(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 me(){var Te;do Te=ge();while(Te>=12&&Te<=15);return Te}return{setPosition:ne,getPosition:function(){return o},scan:r?me:ge,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-F},getTokenError:function(){return G}}}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 Al(t){return t===10||t===13||t===8232||t===8233}function us(t){return t>=48&&t<=57}function Yv(t,r,i){var o,s,p,y,A;if(r){for(y=r.offset,A=y+r.length,p=y;p>0&&!Zd(t,p-1);)p--;for(var w=A;w<t.length&&!Zd(t,w);)w++;s=t.substring(p,w),o=Jv(s,i)}else s=t,o=0,p=0,y=0,A=t.length;var E=Xv(i,t),F=!1,G=0,te;i.insertSpaces?te=$c(" ",i.tabSize||4):te=" ";var ne=vf(s,!1),se=!1;function ye(){return E+$c(te,o+G)}function ge(){var et=ne.scan();for(F=!1;et===15||et===14;)F=F||et===14,et=ne.scan();return se=et===16||ne.getTokenError()!==0,et}var Ae=[];function me(et,$e,gt){!se&&$e<A&&gt>y&&t.substring($e,gt)!==et&&Ae.push({offset:$e,length:gt-$e,content:et})}var Te=ge();if(Te!==17){var He=ne.getTokenOffset()+p,Be=$c(te,o);me(Be,p,He)}for(;Te!==17;){for(var ze=ne.getTokenOffset()+ne.getTokenLength()+p,De=ge(),Ue="";!F&&(De===12||De===13);){var We=ne.getTokenOffset()+p;me(" ",ze,We),ze=ne.getTokenOffset()+ne.getTokenLength()+p,Ue=De===12?ye():"",De=ge()}if(De===2)Te!==1&&(G--,Ue=ye());else if(De===4)Te!==3&&(G--,Ue=ye());else{switch(Te){case 3:case 1:G++,Ue=ye();break;case 5:case 12:Ue=ye();break;case 13:F?Ue=ye():Ue=" ";break;case 6:Ue=" ";break;case 10:if(De===6){Ue="";break}case 7:case 8:case 9:case 11:case 2:case 4:De===12||De===13?Ue=" ":De!==5&&De!==17&&(se=!0);break;case 16:se=!0;break}F&&(De===12||De===13)&&(Ue=ye())}var Je=ne.getTokenOffset()+p;me(Ue,ze,Je),Te=De}return Ae}function $c(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Jv(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 Xv(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)===`
332
332
  `?`\r
333
333
  `:"\r";if(o===`
334
334
  `)return`
335
335
  `}return t&&t.eol||`
336
336
  `}function Zd(t,r){return`\r
337
- `.indexOf(t.charAt(r))!==-1}var El;(function(t){t.DEFAULT={allowTrailingComma:!1}})(El||(El={}));function Qv(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function A(w,E,F,G){p.value=w,p.offset=E,p.length=F,p.type=G,p.colonOffset=void 0,s=p}try{gf(t,{onObjectBegin:function(w,E){if(r<=w)throw o;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,F){if(r<E||(A(w,E,F,"property"),i[i.length-1]=w,r<=E+F))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,F){if(r<E||(A(w,E,F,ep(w)),r<=E+F))throw o},onSeparator:function(w,E,F){if(r<=E)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=E,y=!1,s=void 0;else if(w===","){var G=i[i.length-1];typeof G=="number"?i[i.length-1]=G+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var E=0,F=0;E<w.length&&F<i.length;F++)if(w[E]===i[F]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function Zv(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=El.DEFAULT);var o=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var A={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,E,F){r.push({error:w,offset:E,length:F})}};return gf(t,A,i),s[0]}function _v(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 y={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,E,F){o=p({type:"property",offset:E,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:E,length:F,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,F){p({type:ep(w),offset:E,length:F,parent:o,value:w}),s(E+F)},onSeparator:function(w,E,F){o.type==="property"&&(w===":"?o.colonOffset=E:w===","&&s(E))},onError:function(w,E,F){r.push({error:w,offset:E,length:F})}};gf(t,y,i);var A=o.children[0];return A&&delete A.parent,A}function qv(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 y=!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],y=!0;break}}if(!y)return}else{var F=p;if(i.type!=="array"||F<0||!Array.isArray(i.children)||F>=i.children.length)return;i=i.children[F]}}return i}}function _d(t){if(!t.parent||!t.parent.children)return[];var r=_d(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 eg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function qd(t,r,i){if(i===void 0&&(i=!1),eg(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=qd(o[s],r,i);if(p)return p}return t}}function gf(t,r,i){i===void 0&&(i=El.DEFAULT);var o=vf(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(Je){return We(Je,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),A=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),F=s(r.onArrayEnd),G=p(r.onLiteralValue),te=p(r.onSeparator),ne=s(r.onComment),oe=p(r.onError),ye=i&&i.disallowComments,ge=i&&i.allowTrailingComma;function Ae(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ye||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ye?me(10):ne();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Je,et){if(Je===void 0&&(Je=[]),et===void 0&&(et=[]),oe(We),Je.length+et.length>0)for(var $e=o.getToken();$e!==17;){if(Je.indexOf($e)!==-1){Ae();break}else if(et.indexOf($e)!==-1)break;$e=Ae()}}function Te(We){var Je=o.getTokenValue();return We?G(Je):A(Je),Ae(),!0}function He(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Je=Number(We);isNaN(Je)&&(me(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ae(),!0}function Ve(){return o.getToken()!==10?(me(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(te(":"),Ae(),Be()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){y(),Ae();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),te(","),Ae(),o.getToken()===2&&ge)break}else We&&me(6,[],[]);Ve()||me(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?me(7,[2],[]):Ae(),!0}function De(){E(),Ae();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),te(","),Ae(),o.getToken()===4&&ge)break}else We&&me(6,[],[]);Be()||me(4,[],[4,5]),We=!0}return F(),o.getToken()!==4?me(8,[4],[]):Ae(),!0}function Be(){switch(o.getToken()){case 3:return De();case 1:return ze();case 10:return Te(!0);default:return He()}}return Ae(),o.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):Be()?(o.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function tg(t,r){var i=vf(t),o=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&o.push(t.substring(p,y)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function ep(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 Sm(t,r,i){return rg(t,r,void 0,i)}function rg(t,r,i,o){for(var s,p=r.slice(),y=[],A=parseTree(t,y),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 F=findNodeAtLocation(w,[E]);if(F!==void 0)if(i===void 0){if(!F.parent)throw new Error("Malformed AST");var G=w.children.indexOf(F.parent),te=void 0,ne=F.parent.offset+F.parent.length;if(G>0){var oe=w.children[G-1];te=oe.offset+oe.length}else if(te=w.offset+1,w.children.length>1){var ye=w.children[1];ne=ye.offset}return fo(t,{offset:te,length:ne-te,content:""},o)}else return fo(t,{offset:F.offset,length:F.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var ge=JSON.stringify(E)+": "+JSON.stringify(i),Ae=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Ae>0){var oe=w.children[Ae-1];me={offset:oe.offset+oe.length,length:0,content:","+ge}}else w.children.length===0?me={offset:w.offset+1,length:0,content:ge}:me={offset:w.offset+1,length:0,content:ge+","};return fo(t,me,o)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-1){var ge=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:ge};else{var oe=w.children[w.children.length-1];me={offset:oe.offset+oe.length,length:0,content:","+ge}}return fo(t,me,o)}else if(i===void 0&&w.children.length>=0){var He=E,Ve=w.children[He],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===He){var oe=w.children[He-1],ze=oe.offset+oe.length,De=w.offset+w.length;me={offset:ze,length:De-2-ze,content:""}}else me={offset:Ve.offset,length:w.children[He+1].offset-Ve.offset,content:""};return fo(t,me,o)}else if(i!==void 0){var me=void 0,ge=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>E){var Be=w.children[E];me={offset:Be.offset,length:Be.length,content:ge}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ae=E>w.children.length?w.children.length:E,oe=w.children[Ae-1];me={offset:oe.offset+oe.length,length:0,content:","+ge}}return fo(t,me,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 fo(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},o)}}function fo(t,r,i){if(!i.formattingOptions)return[r];var o=tp(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 y=format(o,{offset:s,length:p-s},i.formattingOptions),A=y.length-1;A>=0;A--){var w=y[A];o=tp(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 tp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Am(t,r){return`\r
338
- `.indexOf(t.charAt(r))!==-1}var fs=vf,Em=Qv,ng=Zv,Cm=_v,Om=qv,ig=qd,ag=_d,og=Kc,Tm=gf,Pm=tg;function Im(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 sg(t,r,i){return Yv(t,r,i)}function Fm(t,r,i,o){return edit.setProperty(t,r,i,o)}function km(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 sa(t){return typeof t!="undefined"}function Ni(t){return typeof t=="boolean"}function lg(t){return typeof t=="string"}var rp;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(rp||(rp={}));var yf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(yf||(yf={}));var mi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=yf.MAX_VALUE),s===Number.MAX_VALUE&&(s=yf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=i})(mi||(mi={}));var ur;(function(t){function r(o,s,p,y){if(_e.uinteger(o)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(y))return{start:mi.create(o,s),end:mi.create(p,y)};if(mi.is(o)&&mi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+y+"]")}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&mi.is(s.start)&&mi.is(s.end)}t.is=i})(ur||(ur={}));var Ol;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=i})(Ol||(Ol={}));var np;(function(t){function r(o,s,p,y){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.targetRange)&&_e.string(s.targetUri)&&(ur.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(ur.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=i})(np||(np={}));var Yc;(function(t){function r(o,s,p,y){return{red:o,green:s,blue:p,alpha:y}}t.create=r;function i(o){var s=o;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=i})(Yc||(Yc={}));var ip;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return ur.is(s.range)&&Yc.is(s.color)}t.is=i})(ip||(ip={}));var ap;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return _e.string(s.label)&&(_e.undefined(s.textEdit)||xi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,xi.is))}t.is=i})(ap||(ap={}));var Tl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Tl||(Tl={}));var op;(function(t){function r(o,s,p,y,A){var w={startLine:o,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(y)&&(w.endCharacter=y),_e.defined(A)&&(w.kind=A),w}t.create=r;function i(o){var s=o;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=i})(op||(op={}));var Jc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&Ol.is(s.location)&&_e.string(s.message)}t.is=i})(Jc||(Jc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var sp;(function(t){t.Unnecessary=1,t.Deprecated=2})(sp||(sp={}));var lp;(function(t){function r(i){var o=i;return o!=null&&_e.string(o.href)}t.is=r})(lp||(lp={}));var la;(function(t){function r(o,s,p,y,A,w){var E={range:o,message:s};return _e.defined(p)&&(E.severity=p),_e.defined(y)&&(E.code=y),_e.defined(A)&&(E.source=A),_e.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(o){var s,p=o;return _e.defined(p)&&ur.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Jc.is))}t.is=i})(la||(la={}));var Pl;(function(t){function r(o,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var A={title:o,command:s};return _e.defined(p)&&p.length>0&&(A.arguments=p),A}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=i})(Pl||(Pl={}));var xi;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var y=p;return _e.objectLiteral(y)&&_e.string(y.newText)&&ur.is(y.range)}t.is=s})(xi||(xi={}));var cs;(function(t){function r(o,s,p){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(o){var s=o;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=i})(cs||(cs={}));var Sn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(Sn||(Sn={}));var Oa;(function(t){function r(p,y,A){return{range:p,newText:y,annotationId:A}}t.replace=r;function i(p,y,A){return{range:{start:p,end:p},newText:y,annotationId:A}}t.insert=i;function o(p,y){return{range:p,newText:"",annotationId:y}}t.del=o;function s(p){var y=p;return xi.is(y)&&(cs.is(y.annotationId)||Sn.is(y.annotationId))}t.is=s})(Oa||(Oa={}));var mf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&bf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(mf||(mf={}));var Il;(function(t){function r(o,s,p){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(Il||(Il={}));var Fl;(function(t){function r(o,s,p,y){var A={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(A.options=p),y!==void 0&&(A.annotationId=y),A}t.create=r;function i(o){var s=o;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(kl||(kl={}));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 _e.string(s.kind)?Il.is(s)||Fl.is(s)||kl.is(s):mf.is(s)}))}t.is=r})(Xc||(Xc={}));var xf=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):Sn.is(o)?(p=o,s=Oa.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.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):Sn.is(o)?(p=o,s=Oa.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.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):Sn.is(i)?(s=i,o=Oa.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Oa.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}(),up=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(Sn.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}(),Mm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new up(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(mf.is(o)){var s=new xf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new xf(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(bf.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 xf(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 xf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new up,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;cs.is(i)||Sn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=Il.create(r,o):(y=Sn.is(s)?s:this._changeAnnotations.manage(s),p=Il.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},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;cs.is(o)||Sn.is(o)?p=o:s=o;var y,A;if(p===void 0?y=Fl.create(r,i,s):(A=Sn.is(p)?p:this._changeAnnotations.manage(p),y=Fl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(y),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;cs.is(i)||Sn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=kl.create(r,o):(y=Sn.is(s)?s:this._changeAnnotations.manage(s),p=kl.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),fp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)}t.is=i})(fp||(fp={}));var cp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=i})(cp||(cp={}));var bf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=i})(bf||(bf={}));var dp;(function(t){function r(o,s,p,y){return{uri:o,languageId:s,version:p,text:y}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=i})(dp||(dp={}));var ua;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(ua||(ua={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(ua||(ua={}));var Qc;(function(t){function r(i){var o=i;return _e.objectLiteral(i)&&ua.is(o.kind)&&_e.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 _r;(function(t){t.PlainText=1,t.Snippet=2})(_r||(_r={}));var pp;(function(t){t.Deprecated=1})(pp||(pp={}));var hp;(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&&_e.string(s.newText)&&ur.is(s.insert)&&ur.is(s.replace)}t.is=i})(hp||(hp={}));var vp;(function(t){t.asIs=1,t.adjustIndentation=2})(vp||(vp={}));var Zc;(function(t){function r(i){return{label:i}}t.create=r})(Zc||(Zc={}));var gp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(gp||(gp={}));var wf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=i})(wf||(wf={}));var yp;(function(t){function r(i){var o=i;return!!o&&_e.objectLiteral(o)&&(Qc.is(o.contents)||wf.is(o.contents)||_e.typedArray(o.contents,wf.is))&&(i.range===void 0||ur.is(i.range))}t.is=r})(yp||(yp={}));var mp;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(mp||(mp={}));var xp;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return _e.defined(o)&&(y.documentation=o),_e.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(xp||(xp={}));var bp;(function(t){t.Text=1,t.Read=2,t.Write=3})(bp||(bp={}));var wp;(function(t){function r(i,o){var s={range:i};return _e.number(o)&&(s.kind=o),s}t.create=r})(wp||(wp={}));var Bi;(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})(Bi||(Bi={}));var Sp;(function(t){t.Deprecated=1})(Sp||(Sp={}));var Ap;(function(t){function r(i,o,s,p,y){var A={name:i,kind:o,location:{uri:p,range:s}};return y&&(A.containerName=y),A}t.create=r})(Ap||(Ap={}));var Ep;(function(t){function r(o,s,p,y,A,w){var E={name:o,detail:s,kind:p,range:y,selectionRange:A};return w!==void 0&&(E.children=w),E}t.create=r;function i(o){var s=o;return s&&_e.string(s.name)&&_e.number(s.kind)&&ur.is(s.range)&&ur.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Ep||(Ep={}));var Cp;(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"})(Cp||(Cp={}));var Op;(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 _e.defined(s)&&_e.typedArray(s.diagnostics,la.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=i})(Op||(Op={}));var Tp;(function(t){function r(o,s,p){var y={title:o},A=!0;return typeof s=="string"?(A=!1,y.kind=s):Pl.is(s)?y.command=s:y.edit=s,A&&p!==void 0&&(y.kind=p),y}t.create=r;function i(o){var s=o;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,la.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Pl.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Xc.is(s.edit))}t.is=i})(Tp||(Tp={}));var Pp;(function(t){function r(o,s){var p={range:o};return _e.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.command)||Pl.is(s.command))}t.is=i})(Pp||(Pp={}));var Ip;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=i})(Ip||(Ip={}));var Fp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=i})(Fp||(Fp={}));var Sf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&ur.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Sf||(Sf={}));var Rm=null,kp;(function(t){function r(p,y,A,w){return new ug(p,y,A,w)}t.create=r;function i(p){var y=p;return!!(_e.defined(y)&&_e.string(y.uri)&&(_e.undefined(y.languageId)||_e.string(y.languageId))&&_e.uinteger(y.lineCount)&&_e.func(y.getText)&&_e.func(y.positionAt)&&_e.func(y.offsetAt))}t.is=i;function o(p,y){for(var A=p.getText(),w=s(y,function(oe,ye){var ge=oe.range.start.line-ye.range.start.line;return ge===0?oe.range.start.character-ye.range.start.character:ge}),E=A.length,F=w.length-1;F>=0;F--){var G=w[F],te=p.offsetAt(G.range.start),ne=p.offsetAt(G.range.end);if(ne<=E)A=A.substring(0,te)+G.newText+A.substring(ne,A.length);else throw new Error("Overlapping edit");E=te}return A}t.applyEdits=o;function s(p,y){if(p.length<=1)return p;var A=p.length/2|0,w=p.slice(0,A),E=p.slice(A);s(w,y),s(E,y);for(var F=0,G=0,te=0;F<w.length&&G<E.length;){var ne=y(w[F],E[G]);ne<=0?p[te++]=w[F++]:p[te++]=E[G++]}for(;F<w.length;)p[te++]=w[F++];for(;G<E.length;)p[te++]=E[G++];return p}})(kp||(kp={}));var ug=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===`
337
+ `.indexOf(t.charAt(r))!==-1}var El;(function(t){t.DEFAULT={allowTrailingComma:!1}})(El||(El={}));function Qv(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function A(w,E,F,G){p.value=w,p.offset=E,p.length=F,p.type=G,p.colonOffset=void 0,s=p}try{gf(t,{onObjectBegin:function(w,E){if(r<=w)throw o;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,F){if(r<E||(A(w,E,F,"property"),i[i.length-1]=w,r<=E+F))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,F){if(r<E||(A(w,E,F,ep(w)),r<=E+F))throw o},onSeparator:function(w,E,F){if(r<=E)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=E,y=!1,s=void 0;else if(w===","){var G=i[i.length-1];typeof G=="number"?i[i.length-1]=G+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var E=0,F=0;E<w.length&&F<i.length;F++)if(w[E]===i[F]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function Zv(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=El.DEFAULT);var o=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var A={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,E,F){r.push({error:w,offset:E,length:F})}};return gf(t,A,i),s[0]}function _v(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 y={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,E,F){o=p({type:"property",offset:E,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:E,length:F,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,F){p({type:ep(w),offset:E,length:F,parent:o,value:w}),s(E+F)},onSeparator:function(w,E,F){o.type==="property"&&(w===":"?o.colonOffset=E:w===","&&s(E))},onError:function(w,E,F){r.push({error:w,offset:E,length:F})}};gf(t,y,i);var A=o.children[0];return A&&delete A.parent,A}function qv(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 y=!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],y=!0;break}}if(!y)return}else{var F=p;if(i.type!=="array"||F<0||!Array.isArray(i.children)||F>=i.children.length)return;i=i.children[F]}}return i}}function _d(t){if(!t.parent||!t.parent.children)return[];var r=_d(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 eg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function qd(t,r,i){if(i===void 0&&(i=!1),eg(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=qd(o[s],r,i);if(p)return p}return t}}function gf(t,r,i){i===void 0&&(i=El.DEFAULT);var o=vf(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(Je){return We(Je,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),A=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),F=s(r.onArrayEnd),G=p(r.onLiteralValue),te=p(r.onSeparator),ne=s(r.onComment),se=p(r.onError),ye=i&&i.disallowComments,ge=i&&i.allowTrailingComma;function Ae(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ye||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ye?me(10):ne();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Je,et){if(Je===void 0&&(Je=[]),et===void 0&&(et=[]),se(We),Je.length+et.length>0)for(var $e=o.getToken();$e!==17;){if(Je.indexOf($e)!==-1){Ae();break}else if(et.indexOf($e)!==-1)break;$e=Ae()}}function Te(We){var Je=o.getTokenValue();return We?G(Je):A(Je),Ae(),!0}function He(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Je=Number(We);isNaN(Je)&&(me(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ae(),!0}function Be(){return o.getToken()!==10?(me(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(te(":"),Ae(),Ue()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){y(),Ae();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),te(","),Ae(),o.getToken()===2&&ge)break}else We&&me(6,[],[]);Be()||me(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?me(7,[2],[]):Ae(),!0}function De(){E(),Ae();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),te(","),Ae(),o.getToken()===4&&ge)break}else We&&me(6,[],[]);Ue()||me(4,[],[4,5]),We=!0}return F(),o.getToken()!==4?me(8,[4],[]):Ae(),!0}function Ue(){switch(o.getToken()){case 3:return De();case 1:return ze();case 10:return Te(!0);default:return He()}}return Ae(),o.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):Ue()?(o.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function tg(t,r){var i=vf(t),o=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&o.push(t.substring(p,y)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function ep(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 Sm(t,r,i){return rg(t,r,void 0,i)}function rg(t,r,i,o){for(var s,p=r.slice(),y=[],A=parseTree(t,y),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 F=findNodeAtLocation(w,[E]);if(F!==void 0)if(i===void 0){if(!F.parent)throw new Error("Malformed AST");var G=w.children.indexOf(F.parent),te=void 0,ne=F.parent.offset+F.parent.length;if(G>0){var se=w.children[G-1];te=se.offset+se.length}else if(te=w.offset+1,w.children.length>1){var ye=w.children[1];ne=ye.offset}return fo(t,{offset:te,length:ne-te,content:""},o)}else return fo(t,{offset:F.offset,length:F.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var ge=JSON.stringify(E)+": "+JSON.stringify(i),Ae=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Ae>0){var se=w.children[Ae-1];me={offset:se.offset+se.length,length:0,content:","+ge}}else w.children.length===0?me={offset:w.offset+1,length:0,content:ge}:me={offset:w.offset+1,length:0,content:ge+","};return fo(t,me,o)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-1){var ge=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:ge};else{var se=w.children[w.children.length-1];me={offset:se.offset+se.length,length:0,content:","+ge}}return fo(t,me,o)}else if(i===void 0&&w.children.length>=0){var He=E,Be=w.children[He],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===He){var se=w.children[He-1],ze=se.offset+se.length,De=w.offset+w.length;me={offset:ze,length:De-2-ze,content:""}}else me={offset:Be.offset,length:w.children[He+1].offset-Be.offset,content:""};return fo(t,me,o)}else if(i!==void 0){var me=void 0,ge=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>E){var Ue=w.children[E];me={offset:Ue.offset,length:Ue.length,content:ge}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ae=E>w.children.length?w.children.length:E,se=w.children[Ae-1];me={offset:se.offset+se.length,length:0,content:","+ge}}return fo(t,me,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 fo(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},o)}}function fo(t,r,i){if(!i.formattingOptions)return[r];var o=tp(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 y=format(o,{offset:s,length:p-s},i.formattingOptions),A=y.length-1;A>=0;A--){var w=y[A];o=tp(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 tp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Am(t,r){return`\r
338
+ `.indexOf(t.charAt(r))!==-1}var fs=vf,Em=Qv,ng=Zv,Cm=_v,Om=qv,ig=qd,ag=_d,og=Kc,Tm=gf,Pm=tg;function Im(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 sg(t,r,i){return Yv(t,r,i)}function Fm(t,r,i,o){return edit.setProperty(t,r,i,o)}function km(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 sa(t){return typeof t!="undefined"}function Ni(t){return typeof t=="boolean"}function lg(t){return typeof t=="string"}var rp;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(rp||(rp={}));var yf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(yf||(yf={}));var mi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=yf.MAX_VALUE),s===Number.MAX_VALUE&&(s=yf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=i})(mi||(mi={}));var ur;(function(t){function r(o,s,p,y){if(_e.uinteger(o)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(y))return{start:mi.create(o,s),end:mi.create(p,y)};if(mi.is(o)&&mi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+y+"]")}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&mi.is(s.start)&&mi.is(s.end)}t.is=i})(ur||(ur={}));var Ol;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=i})(Ol||(Ol={}));var np;(function(t){function r(o,s,p,y){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.targetRange)&&_e.string(s.targetUri)&&(ur.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(ur.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=i})(np||(np={}));var Yc;(function(t){function r(o,s,p,y){return{red:o,green:s,blue:p,alpha:y}}t.create=r;function i(o){var s=o;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=i})(Yc||(Yc={}));var ip;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return ur.is(s.range)&&Yc.is(s.color)}t.is=i})(ip||(ip={}));var ap;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return _e.string(s.label)&&(_e.undefined(s.textEdit)||xi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,xi.is))}t.is=i})(ap||(ap={}));var Tl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Tl||(Tl={}));var op;(function(t){function r(o,s,p,y,A){var w={startLine:o,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(y)&&(w.endCharacter=y),_e.defined(A)&&(w.kind=A),w}t.create=r;function i(o){var s=o;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=i})(op||(op={}));var Jc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&Ol.is(s.location)&&_e.string(s.message)}t.is=i})(Jc||(Jc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var sp;(function(t){t.Unnecessary=1,t.Deprecated=2})(sp||(sp={}));var lp;(function(t){function r(i){var o=i;return o!=null&&_e.string(o.href)}t.is=r})(lp||(lp={}));var la;(function(t){function r(o,s,p,y,A,w){var E={range:o,message:s};return _e.defined(p)&&(E.severity=p),_e.defined(y)&&(E.code=y),_e.defined(A)&&(E.source=A),_e.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(o){var s,p=o;return _e.defined(p)&&ur.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Jc.is))}t.is=i})(la||(la={}));var Pl;(function(t){function r(o,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var A={title:o,command:s};return _e.defined(p)&&p.length>0&&(A.arguments=p),A}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=i})(Pl||(Pl={}));var xi;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var y=p;return _e.objectLiteral(y)&&_e.string(y.newText)&&ur.is(y.range)}t.is=s})(xi||(xi={}));var cs;(function(t){function r(o,s,p){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(o){var s=o;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=i})(cs||(cs={}));var Sn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(Sn||(Sn={}));var Oa;(function(t){function r(p,y,A){return{range:p,newText:y,annotationId:A}}t.replace=r;function i(p,y,A){return{range:{start:p,end:p},newText:y,annotationId:A}}t.insert=i;function o(p,y){return{range:p,newText:"",annotationId:y}}t.del=o;function s(p){var y=p;return xi.is(y)&&(cs.is(y.annotationId)||Sn.is(y.annotationId))}t.is=s})(Oa||(Oa={}));var mf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&bf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(mf||(mf={}));var Il;(function(t){function r(o,s,p){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(Il||(Il={}));var Fl;(function(t){function r(o,s,p,y){var A={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(A.options=p),y!==void 0&&(A.annotationId=y),A}t.create=r;function i(o){var s=o;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(kl||(kl={}));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 _e.string(s.kind)?Il.is(s)||Fl.is(s)||kl.is(s):mf.is(s)}))}t.is=r})(Xc||(Xc={}));var xf=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):Sn.is(o)?(p=o,s=Oa.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.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):Sn.is(o)?(p=o,s=Oa.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.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):Sn.is(i)?(s=i,o=Oa.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Oa.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}(),up=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(Sn.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}(),Mm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new up(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(mf.is(o)){var s=new xf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new xf(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(bf.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 xf(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 xf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new up,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;cs.is(i)||Sn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=Il.create(r,o):(y=Sn.is(s)?s:this._changeAnnotations.manage(s),p=Il.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},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;cs.is(o)||Sn.is(o)?p=o:s=o;var y,A;if(p===void 0?y=Fl.create(r,i,s):(A=Sn.is(p)?p:this._changeAnnotations.manage(p),y=Fl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(y),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;cs.is(i)||Sn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=kl.create(r,o):(y=Sn.is(s)?s:this._changeAnnotations.manage(s),p=kl.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),fp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)}t.is=i})(fp||(fp={}));var cp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=i})(cp||(cp={}));var bf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=i})(bf||(bf={}));var dp;(function(t){function r(o,s,p,y){return{uri:o,languageId:s,version:p,text:y}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=i})(dp||(dp={}));var ua;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(ua||(ua={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(ua||(ua={}));var Qc;(function(t){function r(i){var o=i;return _e.objectLiteral(i)&&ua.is(o.kind)&&_e.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 _r;(function(t){t.PlainText=1,t.Snippet=2})(_r||(_r={}));var pp;(function(t){t.Deprecated=1})(pp||(pp={}));var hp;(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&&_e.string(s.newText)&&ur.is(s.insert)&&ur.is(s.replace)}t.is=i})(hp||(hp={}));var vp;(function(t){t.asIs=1,t.adjustIndentation=2})(vp||(vp={}));var Zc;(function(t){function r(i){return{label:i}}t.create=r})(Zc||(Zc={}));var gp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(gp||(gp={}));var wf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=i})(wf||(wf={}));var yp;(function(t){function r(i){var o=i;return!!o&&_e.objectLiteral(o)&&(Qc.is(o.contents)||wf.is(o.contents)||_e.typedArray(o.contents,wf.is))&&(i.range===void 0||ur.is(i.range))}t.is=r})(yp||(yp={}));var mp;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(mp||(mp={}));var xp;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return _e.defined(o)&&(y.documentation=o),_e.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(xp||(xp={}));var bp;(function(t){t.Text=1,t.Read=2,t.Write=3})(bp||(bp={}));var wp;(function(t){function r(i,o){var s={range:i};return _e.number(o)&&(s.kind=o),s}t.create=r})(wp||(wp={}));var Bi;(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})(Bi||(Bi={}));var Sp;(function(t){t.Deprecated=1})(Sp||(Sp={}));var Ap;(function(t){function r(i,o,s,p,y){var A={name:i,kind:o,location:{uri:p,range:s}};return y&&(A.containerName=y),A}t.create=r})(Ap||(Ap={}));var Ep;(function(t){function r(o,s,p,y,A,w){var E={name:o,detail:s,kind:p,range:y,selectionRange:A};return w!==void 0&&(E.children=w),E}t.create=r;function i(o){var s=o;return s&&_e.string(s.name)&&_e.number(s.kind)&&ur.is(s.range)&&ur.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Ep||(Ep={}));var Cp;(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"})(Cp||(Cp={}));var Op;(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 _e.defined(s)&&_e.typedArray(s.diagnostics,la.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=i})(Op||(Op={}));var Tp;(function(t){function r(o,s,p){var y={title:o},A=!0;return typeof s=="string"?(A=!1,y.kind=s):Pl.is(s)?y.command=s:y.edit=s,A&&p!==void 0&&(y.kind=p),y}t.create=r;function i(o){var s=o;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,la.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Pl.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Xc.is(s.edit))}t.is=i})(Tp||(Tp={}));var Pp;(function(t){function r(o,s){var p={range:o};return _e.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.command)||Pl.is(s.command))}t.is=i})(Pp||(Pp={}));var Ip;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=i})(Ip||(Ip={}));var Fp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=i})(Fp||(Fp={}));var Sf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&ur.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(Sf||(Sf={}));var Rm=null,kp;(function(t){function r(p,y,A,w){return new ug(p,y,A,w)}t.create=r;function i(p){var y=p;return!!(_e.defined(y)&&_e.string(y.uri)&&(_e.undefined(y.languageId)||_e.string(y.languageId))&&_e.uinteger(y.lineCount)&&_e.func(y.getText)&&_e.func(y.positionAt)&&_e.func(y.offsetAt))}t.is=i;function o(p,y){for(var A=p.getText(),w=s(y,function(se,ye){var ge=se.range.start.line-ye.range.start.line;return ge===0?se.range.start.character-ye.range.start.character:ge}),E=A.length,F=w.length-1;F>=0;F--){var G=w[F],te=p.offsetAt(G.range.start),ne=p.offsetAt(G.range.end);if(ne<=E)A=A.substring(0,te)+G.newText+A.substring(ne,A.length);else throw new Error("Overlapping edit");E=te}return A}t.applyEdits=o;function s(p,y){if(p.length<=1)return p;var A=p.length/2|0,w=p.slice(0,A),E=p.slice(A);s(w,y),s(E,y);for(var F=0,G=0,te=0;F<w.length&&G<E.length;){var ne=y(w[F],E[G]);ne<=0?p[te++]=w[F++]:p[te++]=E[G++]}for(;F<w.length;)p[te++]=w[F++];for(;G<E.length;)p[te++]=E[G++];return p}})(kp||(kp={}));var ug=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===`
339
339
  `,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
340
- `&&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 y=o-1;return mi.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var 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}(),_e;(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 y(ne){return r.call(ne)==="[object Number]"}t.number=y;function A(ne,oe,ye){return r.call(ne)==="[object Number]"&&oe<=ne&&ne<=ye}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 F(ne){return r.call(ne)==="[object Function]"}t.func=F;function G(ne){return ne!==null&&typeof ne=="object"}t.objectLiteral=G;function te(ne,oe){return Array.isArray(ne)&&ne.every(oe)}t.typedArray=te})(_e||(_e={}));var Mp=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 y=Lp(p.range),A=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,A)+p.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),F=Math.max(y.end.line,0),G=this._lineOffsets,te=Rp(p.text,!1,A);if(F-E===te.length)for(var ne=0,oe=te.length;ne<oe;ne++)G[ne+E+1]=te[ne];else te.length<1e4?G.splice.apply(G,[E+1,F-E].concat(te)):this._lineOffsets=G=G.slice(0,E+1).concat(te,G.slice(F+1));var ye=p.text.length-(w-A);if(ye!==0)for(var ne=E+1+te.length,oe=G.length;ne<oe;ne++)G[ne]=G[ne]+ye}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=Rp(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 y=o-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var 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}(),Af;(function(t){function r(s,p,y,A){return new Mp(s,p,y,A)}t.create=r;function i(s,p,y){if(s instanceof Mp)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var y=s.getText(),A=_c(p.map(fg),function(oe,ye){var ge=oe.range.start.line-ye.range.start.line;return ge===0?oe.range.start.character-ye.range.start.character:ge}),w=0,E=[],F=0,G=A;F<G.length;F++){var te=G[F],ne=s.offsetAt(te.range.start);if(ne<w)throw new Error("Overlapping edit");ne>w&&E.push(y.substring(w,ne)),te.newText.length&&E.push(te.newText),w=s.offsetAt(te.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=o})(Af||(Af={}));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,y=0,A=0;p<o.length&&y<s.length;){var w=r(o[p],s[y]);w<=0?t[A++]=o[p++]:t[A++]=s[y++]}for(;p<o.length;)t[A++]=o[p++];for(;y<s.length;)t[A++]=s[y++];return t}function Rp(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 Lp(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 fg(t){var r=Lp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var tr;(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"})(tr||(tr={}));var Dp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ua.Markdown,ua.PlainText],commitCharactersSupport:!0}}}}})(Dp||(Dp={}));var co=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)}}(),cg={"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,}))$/}},po=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}(),dg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(po),Np=function(t){co(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}(po),pg=function(t){co(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}(po),hg=function(t){co(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}(po),Bp=function(t){co(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}(po),vg=function(t){co(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}(po),gg=function(t){co(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}(po);function kn(t){return Ni(t)?t?{}:{not:{}}:t}var Up;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Up||(Up={}));var yg=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||jp(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}(),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===tr.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 mg(t,r){return r===void 0&&(r=[]),new Vp(t,r,[])}function Ta(t){return og(t)}function ed(t){return ag(t)}function jp(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Vp=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 ig(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 y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Mn;return pn(this.root,i,o,qc.instance),o.problems.map(function(s){var p=ur.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return la.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 yg(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":A(t,r,i,o);break;case"string":y(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($e){return t.type===$e||$e==="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:$t.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:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var F=0,G=r.allOf;F<G.length;F++){var te=G[F];pn(t,kn(te),i,o)}var ne=kn(r.not);if(ne){var oe=new Mn,ye=o.newSub();pn(t,ne,oe,ye),oe.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ae=ye.schemas;ge<Ae.length;ge++){var me=Ae[ge];me.inverted=!me.inverted,o.add(me)}}var Te=function($e,gt){for(var Nt=[],Gt=null,or=0,kr=$e;or<kr.length;or++){var Er=kr[or],Qr=kn(Er),br=new Mn,Dr=o.newSub();if(pn(t,Qr,br,Dr),br.hasProblems()||Nt.push(Qr),!Gt)Gt={schema:Qr,validationResult:br,matchingSchemas:Dr};else if(!gt&&!br.hasProblems()&&!Gt.validationResult.hasProblems())Gt.matchingSchemas.merge(Dr),Gt.validationResult.propertiesMatches+=br.propertiesMatches,Gt.validationResult.propertiesValueMatches+=br.propertiesValueMatches;else{var An=br.compare(Gt.validationResult);An>0?Gt={schema:Qr,validationResult:br,matchingSchemas:Dr}:An===0&&(Gt.matchingSchemas.merge(Dr),Gt.validationResult.mergeEnumValues(br))}}return Nt.length>1&&gt&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),Gt!==null&&(i.merge(Gt.validationResult),i.propertiesMatches+=Gt.validationResult.propertiesMatches,i.propertiesValueMatches+=Gt.validationResult.propertiesValueMatches,o.merge(Gt.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var He=function($e){var gt=new Mn,Nt=o.newSub();pn(t,kn($e),gt,Nt),i.merge(gt),i.propertiesMatches+=gt.propertiesMatches,i.propertiesValueMatches+=gt.propertiesValueMatches,o.merge(Nt)},Ve=function($e,gt,Nt){var Gt=kn($e),or=new Mn,kr=o.newSub();pn(t,Gt,or,kr),o.merge(kr),or.hasProblems()?Nt&&He(Nt):gt&&He(gt)},ze=kn(r.if);if(ze&&Ve(ze,kn(r.then),kn(r.else)),Array.isArray(r.enum)){for(var De=Ta(t),Be=!1,We=0,Je=r.enum;We<Je.length;We++){var et=Je[We];if(Cl(De,et)){Be=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Be,Be||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function($e){return JSON.stringify($e)}).join(", ")+"."})}if(sa(r.const)){var De=Ta(t);Cl(De,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.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:$t.Warning,message:r.deprecationMessage})}function p(E,F,G,te){var ne=E.value;Kn(F.multipleOf)&&ne%F.multipleOf!=0&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is not divisible by "+F.multipleOf+"."});function oe(He,Ve){if(Kn(Ve))return Ve;if(Ni(Ve)&&Ve)return He}function ye(He,Ve){if(!Ni(Ve)||!Ve)return He}var ge=oe(F.minimum,F.exclusiveMinimum);Kn(ge)&&ne<=ge&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ae=oe(F.maximum,F.exclusiveMaximum);Kn(Ae)&&ne>=Ae&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ae+"."});var me=ye(F.minimum,F.exclusiveMinimum);Kn(me)&&ne<me&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the minimum of "+me+"."});var Te=ye(F.maximum,F.exclusiveMaximum);Kn(Te)&&ne>Te&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(E,F,G,te){if(Kn(F.minLength)&&E.value.length<F.minLength&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+F.minLength+"."}),Kn(F.maxLength)&&E.value.length>F.maxLength&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is longer than the maximum length of "+F.maxLength+"."}),lg(F.pattern)){var ne=new RegExp(F.pattern);ne.test(E.value)||G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||'String does not match the pattern of "'+F.pattern+'".'})}if(F.format)switch(F.format){case"uri":case"uri-reference":{var oe=void 0;if(!E.value)oe="URI expected.";else{var ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ye?!ye[2]&&F.format==="uri"&&(oe="URI with a scheme is expected."):oe="URI is expected."}oe&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||"String is not a URI: "+oe})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=cg[F.format];(!E.value||!ge.pattern.exec(E.value))&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||ge.errorMessage});break;default:}}function A(E,F,G,te){if(Array.isArray(F.items)){for(var ne=F.items,oe=0;oe<ne.length;oe++){var ye=ne[oe],ge=kn(ye),Ae=new Mn,me=E.items[oe];me?(pn(me,ge,Ae,te),G.mergePropertyMatch(Ae)):E.items.length>=ne.length&&G.propertiesValueMatches++}if(E.items.length>ne.length)if(typeof F.additionalItems=="object")for(var Te=ne.length;Te<E.items.length;Te++){var Ae=new Mn;pn(E.items[Te],F.additionalItems,Ae,te),G.mergePropertyMatch(Ae)}else F.additionalItems===!1&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+ne.length+" or fewer."})}else{var He=kn(F.items);if(He)for(var Ve=0,ze=E.items;Ve<ze.length;Ve++){var me=ze[Ve],Ae=new Mn;pn(me,He,Ae,te),G.mergePropertyMatch(Ae)}}var De=kn(F.contains);if(De){var Be=E.items.some(function(et){var $e=new Mn;return pn(et,De,$e,qc.instance),!$e.hasProblems()});Be||G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.errorMessage||"Array does not contain required item."})}if(Kn(F.minItems)&&E.items.length<F.minItems&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too few items. Expected "+F.minItems+" or more."}),Kn(F.maxItems)&&E.items.length>F.maxItems&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items. Expected "+F.maxItems+" or fewer."}),F.uniqueItems===!0){var We=Ta(E),Je=We.some(function(et,$e){return $e!==We.lastIndexOf(et)});Je&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(E,F,G,te){for(var ne=Object.create(null),oe=[],ye=0,ge=E.properties;ye<ge.length;ye++){var Ae=ge[ye],me=Ae.keyNode.value;ne[me]=Ae.valueNode,oe.push(me)}if(Array.isArray(F.required))for(var Te=0,He=F.required;Te<He.length;Te++){var Ve=He[Te];if(!ne[Ve]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,De=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};G.problems.push({location:De,severity:$t.Warning,message:'Missing property "'+Ve+'".'})}}var Be=function(wi){for(var Nl=oe.indexOf(wi);Nl>=0;)oe.splice(Nl,1),Nl=oe.indexOf(wi)};if(F.properties)for(var We=0,Je=Object.keys(F.properties);We<Je.length;We++){var Ve=Je[We];Be(Ve);var et=F.properties[Ve],$e=ne[Ve];if($e)if(Ni(et))if(et)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Ve+" is not allowed."})}else{var gt=new Mn;pn($e,et,gt,te),G.mergePropertyMatch(gt)}}if(F.patternProperties)for(var Nt=0,Gt=Object.keys(F.patternProperties);Nt<Gt.length;Nt++)for(var or=Gt[Nt],kr=new RegExp(or),Er=0,Qr=oe.slice(0);Er<Qr.length;Er++){var Ve=Qr[Er];if(kr.test(Ve)){Be(Ve);var $e=ne[Ve];if($e){var et=F.patternProperties[or];if(Ni(et))if(et)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Ve+" is not allowed."})}else{var gt=new Mn;pn($e,et,gt,te),G.mergePropertyMatch(gt)}}}}if(typeof F.additionalProperties=="object")for(var br=0,Dr=oe;br<Dr.length;br++){var Ve=Dr[br],$e=ne[Ve];if($e){var gt=new Mn;pn($e,F.additionalProperties,gt,te),G.mergePropertyMatch(gt)}}else if(F.additionalProperties===!1&&oe.length>0)for(var An=0,Yt=oe;An<Yt.length;An++){var Ve=Yt[An],$e=ne[Ve];if($e){var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Ve+" is not allowed."})}}if(Kn(F.maxProperties)&&E.properties.length>F.maxProperties&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has more properties than limit of "+F.maxProperties+"."}),Kn(F.minProperties)&&E.properties.length<F.minProperties&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+F.minProperties}),F.dependencies)for(var Rt=0,Ut=Object.keys(F.dependencies);Rt<Ut.length;Rt++){var me=Ut[Rt],sr=ne[me];if(sr){var on=F.dependencies[me];if(Array.isArray(on))for(var yr=0,gs=on;yr<gs.length;yr++){var Ll=gs[yr];ne[Ll]?G.propertiesValueMatches++:G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var et=kn(on);if(et){var gt=new Mn;pn(E,et,gt,te),G.mergePropertyMatch(gt)}}}}var ho=kn(F.propertyNames);if(ho)for(var Ui=0,Dl=E.properties;Ui<Dl.length;Ui++){var If=Dl[Ui],me=If.keyNode;me&&pn(me,ho,G,qc.instance)}}}function xg(t,r){var i=[],o=-1,s=t.getText(),p=fs(s,!1),y=r&&r.collectComments?[]:void 0;function A(){for(;;){var ze=p.scan();switch(G(),ze){case 12:case 13:Array.isArray(y)&&y.push(ur.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return p.getToken()===ze?(A(),!0):!1}function E(ze,De,Be,We,Je){if(Je===void 0&&(Je=$t.Error),i.length===0||Be!==o){var et=ur.create(t.positionAt(Be),t.positionAt(We));i.push(la.create(et,ze,Je,De,t.languageId)),o=Be}}function F(ze,De,Be,We,Je){Be===void 0&&(Be=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var et=p.getTokenOffset(),$e=p.getTokenOffset()+p.getTokenLength();if(et===$e&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;$e=et+1}if(E(ze,De,et,$e),Be&&te(Be,!1),We.length+Je.length>0)for(var gt=p.getToken();gt!==17;){if(We.indexOf(gt)!==-1){A();break}else if(Je.indexOf(gt)!==-1)break;gt=A()}return Be}function G(){switch(p.getTokenError()){case 4:return F("Invalid unicode sequence in string.",tr.InvalidUnicode),!0;case 5:return F("Invalid escape character in string.",tr.InvalidEscapeCharacter),!0;case 3:return F("Unexpected end of number.",tr.UnexpectedEndOfNumber),!0;case 1:return F("Unexpected end of comment.",tr.UnexpectedEndOfComment),!0;case 2:return F("Unexpected end of string.",tr.UnexpectedEndOfString),!0;case 6:return F("Invalid characters in string. Control characters must be escaped.",tr.InvalidCharacter),!0}return!1}function te(ze,De){return ze.length=p.getTokenOffset()+p.getTokenLength()-ze.offset,De&&A(),ze}function ne(ze){if(p.getToken()!==3)return null;var De=new pg(ze,p.getTokenOffset());A();for(var Be=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||F("Value expected",tr.ValueExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===4){We&&E("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&F("Expected comma",tr.CommaExpected);var et=Te(De,Be++);et?De.items.push(et):F("Value expected",tr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?F("Expected comma or closing bracket",tr.CommaOrCloseBacketExpected,De):te(De,!0)}function oe(ze,De){var Be=new vg(ze,p.getTokenOffset()),We=ge(Be);if(!We)if(p.getToken()===16){F("Property keys must be doublequoted",tr.Undefined);var Je=new Bp(Be,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,A()}else return null;Be.keyNode=We;var et=De[We.value];if(et?(E("Duplicate object key",tr.DuplicateKey,Be.keyNode.offset,Be.keyNode.offset+Be.keyNode.length,$t.Warning),typeof et=="object"&&E("DuplicateKeyWarning",tr.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,$t.Warning),De[We.value]=!0):De[We.value]=Be,p.getToken()===6)Be.colonOffset=p.getTokenOffset(),A();else if(F("Colon expected",tr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Be.length=We.length,Be;var $e=Te(Be,We.value);return $e?(Be.valueNode=$e,Be.length=$e.offset+$e.length-Be.offset,Be):F("Value expected",tr.ValueExpected,Be,[],[2,5])}function ye(ze){if(p.getToken()!==1)return null;var De=new gg(ze,p.getTokenOffset()),Be=Object.create(null);A();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||F("Property expected",tr.PropertyExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===2){We&&E("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&F("Expected comma",tr.CommaExpected);var et=oe(De,Be);et?De.properties.push(et):F("Property expected",tr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?F("Expected comma or closing brace",tr.CommaOrCloseBraceExpected,De):te(De,!0)}function ge(ze){if(p.getToken()!==10)return null;var De=new Bp(ze,p.getTokenOffset());return De.value=p.getTokenValue(),te(De,!0)}function Ae(ze){if(p.getToken()!==11)return null;var De=new hg(ze,p.getTokenOffset());if(p.getTokenError()===0){var Be=p.getTokenValue();try{var We=JSON.parse(Be);if(!Kn(We))return F("Invalid number format.",tr.Undefined,De);De.value=We}catch(Je){return F("Invalid number format.",tr.Undefined,De)}De.isInteger=Be.indexOf(".")===-1}return te(De,!0)}function me(ze){var De;switch(p.getToken()){case 7:return te(new dg(ze,p.getTokenOffset()),!0);case 8:return te(new Np(ze,!0,p.getTokenOffset()),!0);case 9:return te(new Np(ze,!1,p.getTokenOffset()),!0);default:return null}}function Te(ze,De){return ne(ze)||ye(ze)||ge(ze)||Ae(ze)||me(ze)}var He=null,Ve=A();return Ve!==17&&(He=Te(null,null),He?p.getToken()!==17&&F("End of file expected.",tr.Undefined):F("Expected a JSON object, array or literal.",tr.Undefined)),new Vp(He,i,y)}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=`[
340
+ `&&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 y=o-1;return mi.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var 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}(),_e;(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 y(ne){return r.call(ne)==="[object Number]"}t.number=y;function A(ne,se,ye){return r.call(ne)==="[object Number]"&&se<=ne&&ne<=ye}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 F(ne){return r.call(ne)==="[object Function]"}t.func=F;function G(ne){return ne!==null&&typeof ne=="object"}t.objectLiteral=G;function te(ne,se){return Array.isArray(ne)&&ne.every(se)}t.typedArray=te})(_e||(_e={}));var Mp=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 y=Lp(p.range),A=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,A)+p.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),F=Math.max(y.end.line,0),G=this._lineOffsets,te=Rp(p.text,!1,A);if(F-E===te.length)for(var ne=0,se=te.length;ne<se;ne++)G[ne+E+1]=te[ne];else te.length<1e4?G.splice.apply(G,[E+1,F-E].concat(te)):this._lineOffsets=G=G.slice(0,E+1).concat(te,G.slice(F+1));var ye=p.text.length-(w-A);if(ye!==0)for(var ne=E+1+te.length,se=G.length;ne<se;ne++)G[ne]=G[ne]+ye}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=Rp(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 y=o-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var 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}(),Af;(function(t){function r(s,p,y,A){return new Mp(s,p,y,A)}t.create=r;function i(s,p,y){if(s instanceof Mp)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var y=s.getText(),A=_c(p.map(fg),function(se,ye){var ge=se.range.start.line-ye.range.start.line;return ge===0?se.range.start.character-ye.range.start.character:ge}),w=0,E=[],F=0,G=A;F<G.length;F++){var te=G[F],ne=s.offsetAt(te.range.start);if(ne<w)throw new Error("Overlapping edit");ne>w&&E.push(y.substring(w,ne)),te.newText.length&&E.push(te.newText),w=s.offsetAt(te.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=o})(Af||(Af={}));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,y=0,A=0;p<o.length&&y<s.length;){var w=r(o[p],s[y]);w<=0?t[A++]=o[p++]:t[A++]=s[y++]}for(;p<o.length;)t[A++]=o[p++];for(;y<s.length;)t[A++]=s[y++];return t}function Rp(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 Lp(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 fg(t){var r=Lp(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 Dp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ua.Markdown,ua.PlainText],commitCharactersSupport:!0}}}}})(Dp||(Dp={}));var co=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)}}(),cg={"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,}))$/}},po=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}(),dg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(po),Np=function(t){co(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}(po),pg=function(t){co(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}(po),hg=function(t){co(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}(po),Bp=function(t){co(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}(po),vg=function(t){co(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}(po),gg=function(t){co(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}(po);function kn(t){return Ni(t)?t?{}:{not:{}}:t}var Up;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Up||(Up={}));var yg=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||jp(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}(),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 mg(t,r){return r===void 0&&(r=[]),new Vp(t,r,[])}function Ta(t){return og(t)}function ed(t){return ag(t)}function jp(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Vp=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 ig(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 y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Mn;return pn(this.root,i,o,qc.instance),o.problems.map(function(s){var p=ur.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return la.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 yg(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":A(t,r,i,o);break;case"string":y(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($e){return t.type===$e||$e==="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:$t.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:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var F=0,G=r.allOf;F<G.length;F++){var te=G[F];pn(t,kn(te),i,o)}var ne=kn(r.not);if(ne){var se=new Mn,ye=o.newSub();pn(t,ne,se,ye),se.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ae=ye.schemas;ge<Ae.length;ge++){var me=Ae[ge];me.inverted=!me.inverted,o.add(me)}}var Te=function($e,gt){for(var Nt=[],zt=null,or=0,kr=$e;or<kr.length;or++){var Er=kr[or],Qr=kn(Er),br=new Mn,Dr=o.newSub();if(pn(t,Qr,br,Dr),br.hasProblems()||Nt.push(Qr),!zt)zt={schema:Qr,validationResult:br,matchingSchemas:Dr};else if(!gt&&!br.hasProblems()&&!zt.validationResult.hasProblems())zt.matchingSchemas.merge(Dr),zt.validationResult.propertiesMatches+=br.propertiesMatches,zt.validationResult.propertiesValueMatches+=br.propertiesValueMatches;else{var An=br.compare(zt.validationResult);An>0?zt={schema:Qr,validationResult:br,matchingSchemas:Dr}:An===0&&(zt.matchingSchemas.merge(Dr),zt.validationResult.mergeEnumValues(br))}}return Nt.length>1&&gt&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.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)),Nt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var He=function($e){var gt=new Mn,Nt=o.newSub();pn(t,kn($e),gt,Nt),i.merge(gt),i.propertiesMatches+=gt.propertiesMatches,i.propertiesValueMatches+=gt.propertiesValueMatches,o.merge(Nt)},Be=function($e,gt,Nt){var zt=kn($e),or=new Mn,kr=o.newSub();pn(t,zt,or,kr),o.merge(kr),or.hasProblems()?Nt&&He(Nt):gt&&He(gt)},ze=kn(r.if);if(ze&&Be(ze,kn(r.then),kn(r.else)),Array.isArray(r.enum)){for(var De=Ta(t),Ue=!1,We=0,Je=r.enum;We<Je.length;We++){var et=Je[We];if(Cl(De,et)){Ue=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Ue,Ue||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function($e){return JSON.stringify($e)}).join(", ")+"."})}if(sa(r.const)){var De=Ta(t);Cl(De,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.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:$t.Warning,message:r.deprecationMessage})}function p(E,F,G,te){var ne=E.value;Kn(F.multipleOf)&&ne%F.multipleOf!=0&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is not divisible by "+F.multipleOf+"."});function se(He,Be){if(Kn(Be))return Be;if(Ni(Be)&&Be)return He}function ye(He,Be){if(!Ni(Be)||!Be)return He}var ge=se(F.minimum,F.exclusiveMinimum);Kn(ge)&&ne<=ge&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ae=se(F.maximum,F.exclusiveMaximum);Kn(Ae)&&ne>=Ae&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ae+"."});var me=ye(F.minimum,F.exclusiveMinimum);Kn(me)&&ne<me&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the minimum of "+me+"."});var Te=ye(F.maximum,F.exclusiveMaximum);Kn(Te)&&ne>Te&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(E,F,G,te){if(Kn(F.minLength)&&E.value.length<F.minLength&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+F.minLength+"."}),Kn(F.maxLength)&&E.value.length>F.maxLength&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is longer than the maximum length of "+F.maxLength+"."}),lg(F.pattern)){var ne=new RegExp(F.pattern);ne.test(E.value)||G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||'String does not match the pattern of "'+F.pattern+'".'})}if(F.format)switch(F.format){case"uri":case"uri-reference":{var se=void 0;if(!E.value)se="URI expected.";else{var ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ye?!ye[2]&&F.format==="uri"&&(se="URI with a scheme is expected."):se="URI is expected."}se&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||"String is not a URI: "+se})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=cg[F.format];(!E.value||!ge.pattern.exec(E.value))&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||ge.errorMessage});break;default:}}function A(E,F,G,te){if(Array.isArray(F.items)){for(var ne=F.items,se=0;se<ne.length;se++){var ye=ne[se],ge=kn(ye),Ae=new Mn,me=E.items[se];me?(pn(me,ge,Ae,te),G.mergePropertyMatch(Ae)):E.items.length>=ne.length&&G.propertiesValueMatches++}if(E.items.length>ne.length)if(typeof F.additionalItems=="object")for(var Te=ne.length;Te<E.items.length;Te++){var Ae=new Mn;pn(E.items[Te],F.additionalItems,Ae,te),G.mergePropertyMatch(Ae)}else F.additionalItems===!1&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+ne.length+" or fewer."})}else{var He=kn(F.items);if(He)for(var Be=0,ze=E.items;Be<ze.length;Be++){var me=ze[Be],Ae=new Mn;pn(me,He,Ae,te),G.mergePropertyMatch(Ae)}}var De=kn(F.contains);if(De){var Ue=E.items.some(function(et){var $e=new Mn;return pn(et,De,$e,qc.instance),!$e.hasProblems()});Ue||G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.errorMessage||"Array does not contain required item."})}if(Kn(F.minItems)&&E.items.length<F.minItems&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too few items. Expected "+F.minItems+" or more."}),Kn(F.maxItems)&&E.items.length>F.maxItems&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items. Expected "+F.maxItems+" or fewer."}),F.uniqueItems===!0){var We=Ta(E),Je=We.some(function(et,$e){return $e!==We.lastIndexOf(et)});Je&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(E,F,G,te){for(var ne=Object.create(null),se=[],ye=0,ge=E.properties;ye<ge.length;ye++){var Ae=ge[ye],me=Ae.keyNode.value;ne[me]=Ae.valueNode,se.push(me)}if(Array.isArray(F.required))for(var Te=0,He=F.required;Te<He.length;Te++){var Be=He[Te];if(!ne[Be]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,De=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};G.problems.push({location:De,severity:$t.Warning,message:'Missing property "'+Be+'".'})}}var Ue=function(wi){for(var Nl=se.indexOf(wi);Nl>=0;)se.splice(Nl,1),Nl=se.indexOf(wi)};if(F.properties)for(var We=0,Je=Object.keys(F.properties);We<Je.length;We++){var Be=Je[We];Ue(Be);var et=F.properties[Be],$e=ne[Be];if($e)if(Ni(et))if(et)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Be+" is not allowed."})}else{var gt=new Mn;pn($e,et,gt,te),G.mergePropertyMatch(gt)}}if(F.patternProperties)for(var Nt=0,zt=Object.keys(F.patternProperties);Nt<zt.length;Nt++)for(var or=zt[Nt],kr=new RegExp(or),Er=0,Qr=se.slice(0);Er<Qr.length;Er++){var Be=Qr[Er];if(kr.test(Be)){Ue(Be);var $e=ne[Be];if($e){var et=F.patternProperties[or];if(Ni(et))if(et)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Be+" is not allowed."})}else{var gt=new Mn;pn($e,et,gt,te),G.mergePropertyMatch(gt)}}}}if(typeof F.additionalProperties=="object")for(var br=0,Dr=se;br<Dr.length;br++){var Be=Dr[br],$e=ne[Be];if($e){var gt=new Mn;pn($e,F.additionalProperties,gt,te),G.mergePropertyMatch(gt)}}else if(F.additionalProperties===!1&&se.length>0)for(var An=0,Yt=se;An<Yt.length;An++){var Be=Yt[An],$e=ne[Be];if($e){var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Be+" is not allowed."})}}if(Kn(F.maxProperties)&&E.properties.length>F.maxProperties&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has more properties than limit of "+F.maxProperties+"."}),Kn(F.minProperties)&&E.properties.length<F.minProperties&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+F.minProperties}),F.dependencies)for(var Rt=0,Ut=Object.keys(F.dependencies);Rt<Ut.length;Rt++){var me=Ut[Rt],sr=ne[me];if(sr){var on=F.dependencies[me];if(Array.isArray(on))for(var yr=0,gs=on;yr<gs.length;yr++){var Ll=gs[yr];ne[Ll]?G.propertiesValueMatches++:G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var et=kn(on);if(et){var gt=new Mn;pn(E,et,gt,te),G.mergePropertyMatch(gt)}}}}var ho=kn(F.propertyNames);if(ho)for(var Ui=0,Dl=E.properties;Ui<Dl.length;Ui++){var If=Dl[Ui],me=If.keyNode;me&&pn(me,ho,G,qc.instance)}}}function xg(t,r){var i=[],o=-1,s=t.getText(),p=fs(s,!1),y=r&&r.collectComments?[]:void 0;function A(){for(;;){var ze=p.scan();switch(G(),ze){case 12:case 13:Array.isArray(y)&&y.push(ur.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return p.getToken()===ze?(A(),!0):!1}function E(ze,De,Ue,We,Je){if(Je===void 0&&(Je=$t.Error),i.length===0||Ue!==o){var et=ur.create(t.positionAt(Ue),t.positionAt(We));i.push(la.create(et,ze,Je,De,t.languageId)),o=Ue}}function F(ze,De,Ue,We,Je){Ue===void 0&&(Ue=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var et=p.getTokenOffset(),$e=p.getTokenOffset()+p.getTokenLength();if(et===$e&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;$e=et+1}if(E(ze,De,et,$e),Ue&&te(Ue,!1),We.length+Je.length>0)for(var gt=p.getToken();gt!==17;){if(We.indexOf(gt)!==-1){A();break}else if(Je.indexOf(gt)!==-1)break;gt=A()}return Ue}function G(){switch(p.getTokenError()){case 4:return F("Invalid unicode sequence in string.",rr.InvalidUnicode),!0;case 5:return F("Invalid escape character in string.",rr.InvalidEscapeCharacter),!0;case 3:return F("Unexpected end of number.",rr.UnexpectedEndOfNumber),!0;case 1:return F("Unexpected end of comment.",rr.UnexpectedEndOfComment),!0;case 2:return F("Unexpected end of string.",rr.UnexpectedEndOfString),!0;case 6:return F("Invalid characters in string. Control characters must be escaped.",rr.InvalidCharacter),!0}return!1}function te(ze,De){return ze.length=p.getTokenOffset()+p.getTokenLength()-ze.offset,De&&A(),ze}function ne(ze){if(p.getToken()!==3)return null;var De=new pg(ze,p.getTokenOffset());A();for(var Ue=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||F("Value expected",rr.ValueExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===4){We&&E("Trailing comma",rr.TrailingComma,Je,Je+1);continue}}else We&&F("Expected comma",rr.CommaExpected);var et=Te(De,Ue++);et?De.items.push(et):F("Value expected",rr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?F("Expected comma or closing bracket",rr.CommaOrCloseBacketExpected,De):te(De,!0)}function se(ze,De){var Ue=new vg(ze,p.getTokenOffset()),We=ge(Ue);if(!We)if(p.getToken()===16){F("Property keys must be doublequoted",rr.Undefined);var Je=new Bp(Ue,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,A()}else return null;Ue.keyNode=We;var et=De[We.value];if(et?(E("Duplicate object key",rr.DuplicateKey,Ue.keyNode.offset,Ue.keyNode.offset+Ue.keyNode.length,$t.Warning),typeof et=="object"&&E("DuplicateKeyWarning",rr.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,$t.Warning),De[We.value]=!0):De[We.value]=Ue,p.getToken()===6)Ue.colonOffset=p.getTokenOffset(),A();else if(F("Colon expected",rr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Ue.length=We.length,Ue;var $e=Te(Ue,We.value);return $e?(Ue.valueNode=$e,Ue.length=$e.offset+$e.length-Ue.offset,Ue):F("Value expected",rr.ValueExpected,Ue,[],[2,5])}function ye(ze){if(p.getToken()!==1)return null;var De=new gg(ze,p.getTokenOffset()),Ue=Object.create(null);A();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||F("Property expected",rr.PropertyExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===2){We&&E("Trailing comma",rr.TrailingComma,Je,Je+1);continue}}else We&&F("Expected comma",rr.CommaExpected);var et=se(De,Ue);et?De.properties.push(et):F("Property expected",rr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?F("Expected comma or closing brace",rr.CommaOrCloseBraceExpected,De):te(De,!0)}function ge(ze){if(p.getToken()!==10)return null;var De=new Bp(ze,p.getTokenOffset());return De.value=p.getTokenValue(),te(De,!0)}function Ae(ze){if(p.getToken()!==11)return null;var De=new hg(ze,p.getTokenOffset());if(p.getTokenError()===0){var Ue=p.getTokenValue();try{var We=JSON.parse(Ue);if(!Kn(We))return F("Invalid number format.",rr.Undefined,De);De.value=We}catch(Je){return F("Invalid number format.",rr.Undefined,De)}De.isInteger=Ue.indexOf(".")===-1}return te(De,!0)}function me(ze){var De;switch(p.getToken()){case 7:return te(new dg(ze,p.getTokenOffset()),!0);case 8:return te(new Np(ze,!0,p.getTokenOffset()),!0);case 9:return te(new Np(ze,!1,p.getTokenOffset()),!0);default:return null}}function Te(ze,De){return ne(ze)||ye(ze)||ge(ze)||Ae(ze)||me(ze)}var He=null,Be=A();return Be!==17&&(He=Te(null,null),He?p.getToken()!==17&&F("End of file expected.",rr.Undefined):F("Expected a JSON object, array or literal.",rr.Undefined)),new Vp(He,i,y)}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=`[
341
341
  `,p=0;p<t.length;p++)s+=o+td(t[p],o,i),p<t.length-1&&(s+=","),s+=`
342
342
  `;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
343
343
  `,p=0;p<y.length;p++){var A=y[p];s+=o+JSON.stringify(A)+": "+td(t[A],o,i),p<y.length-1&&(s+=","),s+=`
344
- `}return s+=r+"}",s}}return i(t)}function bg(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 wg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Lm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var Sg=[",","}","]"],Ag=[":"],Eg=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},y=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=y[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var F=this.getCurrentWord(r,A),G=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))G=ur.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var te=A-F.length;te>0&&y[te-1]==='"'&&te--,G=ur.create(r.positionAt(te),i)}var ne=this.doesSupportsCommitCharacters(),oe={},ye={add:function(ge){var Ae=oe[ge.label];Ae?Ae.documentation||(Ae.documentation=ge.documentation):(oe[ge.label]=ge,G&&(ge.textEdit=xi.replace(G,ge.insertText)),ne&&(ge.commitCharacters=ge.kind===Yn.Property?Ag:Sg),p.items.push(ge))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ge){console.error(ge)},log:function(ge){console.log(ge)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(ge){var Ae=[],me=!0,Te="",He=null;if(w&&w.type==="string"){var Ve=w.parent;Ve&&Ve.type==="property"&&Ve.keyNode===w&&(me=!Ve.valueNode,He=Ve,Te=y.substr(w.offset+1,w.length-2),Ve&&(w=Ve.parent))}if(w&&w.type==="object"){if(w.offset===A)return p;var ze=w.properties;ze.forEach(function(Je){(!He||He!==Je)&&(oe[Je.keyNode.value]=Zc.create("__"))});var De="";me&&(De=s.evaluateSeparatorAfter(r,r.offsetAt(G.end))),ge?s.getPropertyCompletions(ge,o,w,me,De,ye):s.getSchemaLessPropertyCompletions(o,w,Te,ye);var Be=ed(w);s.contributions.forEach(function(Je){var et=Je.collectPropertyCompletions(r.uri,Be,F,me,De==="",ye);et&&Ae.push(et)}),!ge&&F.length>0&&y.charAt(A-F.length-1)!=='"'&&(ye.add({kind:Yn.Property,label:s.getLabelForValue(F),insertText:s.getInsertTextForProperty(F,null,!1,De),insertTextFormat:_r.Snippet,documentation:""}),ye.setAsIncomplete())}var We={};return ge?s.getValueCompletions(ge,o,w,A,r,ye,We):s.getSchemaLessValueCompletions(o,w,A,r,ye),s.contributions.length>0&&s.getContributedValueCompletions(o,w,A,r,ye,Ae),s.promiseConstructor.all(Ae).then(function(){if(ye.getNumberOfProposals()===0){var Je=A;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var et=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,et,ye)}return p})})},t.prototype.getPropertyCompletions=function(r,i,o,s,p,y){var A=this,w=i.getMatchingSchemas(r.schema,o.offset);w.forEach(function(E){if(E.node===o&&!E.inverted){var F=E.schema.properties;F&&Object.keys(F).forEach(function(G){var te=F[G],ne=!1;if(typeof te=="object"&&te.allOf)for(var oe=0,ye=te.allOf;oe<ye.length;oe++){var ge=ye[oe];if(ge.readOnly){ne=!0;break}}if(typeof te=="object"&&!te.deprecationMessage&&!te.doNotSuggest&&!ne){var Ae={kind:Yn.Property,label:A.sanitizeLabel(G),insertText:A.getInsertTextForProperty(G,te,s,p),insertTextFormat:_r.Snippet,filterText:A.getFilterTextForValue(G),documentation:A.fromMarkup(te.markdownDescription)||te.description||""};rd(Ae.insertText,"$1"+p)&&(Ae.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Ae)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var p=this,y=function(w){w.properties.forEach(function(E){var F=E.keyNode.value;s.add({kind:Yn.Property,label:p.sanitizeLabel(F),insertText:p.getInsertTextForValue(F,""),insertTextFormat:_r.Snippet,filterText:p.getFilterTextForValue(F),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"&&y(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&y(w)});else i.type==="object"&&s.add({kind: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 y=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:_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,A),E=function(ne){jp(ne.parent,o,!0)||p.add({kind:y.getSuggestionKind(ne.type),label:y.getLabelTextForMatchingNode(ne,s),insertText:y.getInsertTextForMatchingNode(ne,s,w),insertTextFormat:_r.Snippet,documentation:""}),ne.type==="boolean"&&y.addBooleanValueCompletion(!ne.value,w,p)};if(i.type==="property"&&o>i.colonOffset){var F=i.valueNode;if(F&&(o>F.offset+F.length||F.type==="object"||F.type==="array"))return;var G=i.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===G&&ne.valueNode&&E(ne.valueNode),!0}),G==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var te=i.parent.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===te&&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,y,A){var w=this,E=s,F=null,G=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(E=o.offset+o.length,G=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",y,A);return}if(o.type==="property"&&s>o.colonOffset){var te=o.valueNode;if(te&&s>te.offset+te.length)return;F=o.keyNode.value,o=o.parent}if(o&&(F!==null||o.type==="array")){var ne=this.evaluateSeparatorAfter(p,E),oe=i.getMatchingSchemas(r.schema,o.offset,G);oe.forEach(function(ye){if(ye.node===o&&!ye.inverted&&ye.schema){if(o.type==="array"&&ye.schema.items)if(Array.isArray(ye.schema.items)){var ge=w.findItemAtOffset(o,p,s);ge<ye.schema.items.length&&w.addSchemaValueCompletions(ye.schema.items[ge],ne,y,A)}else w.addSchemaValueCompletions(ye.schema.items,ne,y,A);if(ye.schema.properties){var Ae=ye.schema.properties[F];Ae&&w.addSchemaValueCompletions(Ae,ne,y,A)}}}),F==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(ne,y),A.boolean&&(this.addBooleanValueCompletion(!0,ne,y),this.addBooleanValueCompletion(!1,ne,y)),A.null&&this.addNullValueCompletion(ne,y)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,p,y){if(!i)this.contributions.forEach(function(F){var G=F.collectDefaultCompletions(s.uri,p);G&&y.push(G)});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(F){var G=F.collectValueCompletions(s.uri,E,A,p);G&&y.push(G)})}}},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(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var p=this;s===void 0&&(s=0);var y=!1;if(sa(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:_r.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(F){for(var G=r.type,te=F,ne=s;ne>0;ne--)te=[te],G="array";o.add({kind:p.getSuggestionKind(G),label:p.getLabelForValue(te),insertText:p.getInsertTextForValue(te,i),insertTextFormat:_r.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(F){var G=r.type,te=F.body,ne=F.label,oe,ye;if(sa(te)){for(var ge=r.type,Ae=s;Ae>0;Ae--)te=[te],ge="array";oe=p.getInsertTextForSnippetValue(te,i),ye=p.getFilterTextForSnippetValue(te),ne=ne||p.getLabelForSnippetValue(te)}else if(typeof F.bodyText=="string"){for(var me="",Te="",He="",Ae=s;Ae>0;Ae--)me=me+He+`[
344
+ `}return s+=r+"}",s}}return i(t)}function bg(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 wg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Lm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var Sg=[",","}","]"],Ag=[":"],Eg=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},y=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=y[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var F=this.getCurrentWord(r,A),G=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))G=ur.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var te=A-F.length;te>0&&y[te-1]==='"'&&te--,G=ur.create(r.positionAt(te),i)}var ne=this.doesSupportsCommitCharacters(),se={},ye={add:function(ge){var Ae=se[ge.label];Ae?Ae.documentation||(Ae.documentation=ge.documentation):(se[ge.label]=ge,G&&(ge.textEdit=xi.replace(G,ge.insertText)),ne&&(ge.commitCharacters=ge.kind===Yn.Property?Ag:Sg),p.items.push(ge))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ge){console.error(ge)},log:function(ge){console.log(ge)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(ge){var Ae=[],me=!0,Te="",He=null;if(w&&w.type==="string"){var Be=w.parent;Be&&Be.type==="property"&&Be.keyNode===w&&(me=!Be.valueNode,He=Be,Te=y.substr(w.offset+1,w.length-2),Be&&(w=Be.parent))}if(w&&w.type==="object"){if(w.offset===A)return p;var ze=w.properties;ze.forEach(function(Je){(!He||He!==Je)&&(se[Je.keyNode.value]=Zc.create("__"))});var De="";me&&(De=s.evaluateSeparatorAfter(r,r.offsetAt(G.end))),ge?s.getPropertyCompletions(ge,o,w,me,De,ye):s.getSchemaLessPropertyCompletions(o,w,Te,ye);var Ue=ed(w);s.contributions.forEach(function(Je){var et=Je.collectPropertyCompletions(r.uri,Ue,F,me,De==="",ye);et&&Ae.push(et)}),!ge&&F.length>0&&y.charAt(A-F.length-1)!=='"'&&(ye.add({kind:Yn.Property,label:s.getLabelForValue(F),insertText:s.getInsertTextForProperty(F,null,!1,De),insertTextFormat:_r.Snippet,documentation:""}),ye.setAsIncomplete())}var We={};return ge?s.getValueCompletions(ge,o,w,A,r,ye,We):s.getSchemaLessValueCompletions(o,w,A,r,ye),s.contributions.length>0&&s.getContributedValueCompletions(o,w,A,r,ye,Ae),s.promiseConstructor.all(Ae).then(function(){if(ye.getNumberOfProposals()===0){var Je=A;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var et=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,et,ye)}return p})})},t.prototype.getPropertyCompletions=function(r,i,o,s,p,y){var A=this,w=i.getMatchingSchemas(r.schema,o.offset);w.forEach(function(E){if(E.node===o&&!E.inverted){var F=E.schema.properties;F&&Object.keys(F).forEach(function(G){var te=F[G],ne=!1;if(typeof te=="object"&&te.allOf)for(var se=0,ye=te.allOf;se<ye.length;se++){var ge=ye[se];if(ge.readOnly){ne=!0;break}}if(typeof te=="object"&&!te.deprecationMessage&&!te.doNotSuggest&&!ne){var Ae={kind:Yn.Property,label:A.sanitizeLabel(G),insertText:A.getInsertTextForProperty(G,te,s,p),insertTextFormat:_r.Snippet,filterText:A.getFilterTextForValue(G),documentation:A.fromMarkup(te.markdownDescription)||te.description||""};rd(Ae.insertText,"$1"+p)&&(Ae.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Ae)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var p=this,y=function(w){w.properties.forEach(function(E){var F=E.keyNode.value;s.add({kind:Yn.Property,label:p.sanitizeLabel(F),insertText:p.getInsertTextForValue(F,""),insertTextFormat:_r.Snippet,filterText:p.getFilterTextForValue(F),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"&&y(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&y(w)});else i.type==="object"&&s.add({kind: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 y=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:_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,A),E=function(ne){jp(ne.parent,o,!0)||p.add({kind:y.getSuggestionKind(ne.type),label:y.getLabelTextForMatchingNode(ne,s),insertText:y.getInsertTextForMatchingNode(ne,s,w),insertTextFormat:_r.Snippet,documentation:""}),ne.type==="boolean"&&y.addBooleanValueCompletion(!ne.value,w,p)};if(i.type==="property"&&o>i.colonOffset){var F=i.valueNode;if(F&&(o>F.offset+F.length||F.type==="object"||F.type==="array"))return;var G=i.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===G&&ne.valueNode&&E(ne.valueNode),!0}),G==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var te=i.parent.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===te&&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,y,A){var w=this,E=s,F=null,G=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(E=o.offset+o.length,G=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",y,A);return}if(o.type==="property"&&s>o.colonOffset){var te=o.valueNode;if(te&&s>te.offset+te.length)return;F=o.keyNode.value,o=o.parent}if(o&&(F!==null||o.type==="array")){var ne=this.evaluateSeparatorAfter(p,E),se=i.getMatchingSchemas(r.schema,o.offset,G);se.forEach(function(ye){if(ye.node===o&&!ye.inverted&&ye.schema){if(o.type==="array"&&ye.schema.items)if(Array.isArray(ye.schema.items)){var ge=w.findItemAtOffset(o,p,s);ge<ye.schema.items.length&&w.addSchemaValueCompletions(ye.schema.items[ge],ne,y,A)}else w.addSchemaValueCompletions(ye.schema.items,ne,y,A);if(ye.schema.properties){var Ae=ye.schema.properties[F];Ae&&w.addSchemaValueCompletions(Ae,ne,y,A)}}}),F==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(ne,y),A.boolean&&(this.addBooleanValueCompletion(!0,ne,y),this.addBooleanValueCompletion(!1,ne,y)),A.null&&this.addNullValueCompletion(ne,y)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,p,y){if(!i)this.contributions.forEach(function(F){var G=F.collectDefaultCompletions(s.uri,p);G&&y.push(G)});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(F){var G=F.collectValueCompletions(s.uri,E,A,p);G&&y.push(G)})}}},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(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var p=this;s===void 0&&(s=0);var y=!1;if(sa(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:_r.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(F){for(var G=r.type,te=F,ne=s;ne>0;ne--)te=[te],G="array";o.add({kind:p.getSuggestionKind(G),label:p.getLabelForValue(te),insertText:p.getInsertTextForValue(te,i),insertTextFormat:_r.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(F){var G=r.type,te=F.body,ne=F.label,se,ye;if(sa(te)){for(var ge=r.type,Ae=s;Ae>0;Ae--)te=[te],ge="array";se=p.getInsertTextForSnippetValue(te,i),ye=p.getFilterTextForSnippetValue(te),ne=ne||p.getLabelForSnippetValue(te)}else if(typeof F.bodyText=="string"){for(var me="",Te="",He="",Ae=s;Ae>0;Ae--)me=me+He+`[
345
345
  `,Te=Te+`
346
- `+He+"]",He+=" ",G="array";oe=me+He+F.bodyText.split(`
346
+ `+He+"]",He+=" ",G="array";se=me+He+F.bodyText.split(`
347
347
  `).join(`
348
- `+He)+Te+i,ne=ne||p.sanitizeLabel(oe),ye=oe.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind(G),label:ne,documentation:p.fromMarkup(F.markdownDescription)||F.description,insertText:oe,insertTextFormat:_r.Snippet,filterText:ye}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(sa(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 y=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(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:_r.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||sa(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 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 y=p+": ",A,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;sa(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),sa(i.default)&&(A||(A=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var F=Array.isArray(i.type)?i.type[0]:i.type;switch(F||(i.properties?F="object":i.items&&(F="array")),F){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"),y+A+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
349
- \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=fs(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=fs(i.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var A=p[y];if(o>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(o>=A.offset)return y}return 0},t.prototype.isInComment=function(r,i,o){var s=fs(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:ua.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!sa(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(ua.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!sa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),Cg=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 y=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=ur.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(oe){var ye={contents:oe,range:w};return ye},F=ed(p),G=this.contributions.length-1;G>=0;G--){var te=this.contributions[G],ne=te.getInfoContribution(r.uri,F);if(ne)return ne.then(function(oe){return E(oe)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(oe){if(oe){var ye=o.getMatchingSchemas(oe.schema,p.offset),ge=null,Ae=null,me=null,Te=null;ye.every(function(Ve){if(Ve.node===p&&!Ve.inverted&&Ve.schema&&(ge=ge||Ve.schema.title,Ae=Ae||Ve.schema.markdownDescription||nd(Ve.schema.description),Ve.schema.enum)){var ze=Ve.schema.enum.indexOf(Ta(p));Ve.schema.markdownEnumDescriptions?me=Ve.schema.markdownEnumDescriptions[ze]:Ve.schema.enumDescriptions&&(me=nd(Ve.schema.enumDescriptions[ze])),me&&(Te=Ve.schema.enum[ze],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var He="";return ge&&(He=nd(ge)),Ae&&(He.length>0&&(He+=`
348
+ `+He)+Te+i,ne=ne||p.sanitizeLabel(se),ye=se.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind(G),label:ne,documentation:p.fromMarkup(F.markdownDescription)||F.description,insertText:se,insertTextFormat:_r.Snippet,filterText:ye}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(sa(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 y=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(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:_r.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||sa(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 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 y=p+": ",A,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;sa(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),sa(i.default)&&(A||(A=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var F=Array.isArray(i.type)?i.type[0]:i.type;switch(F||(i.properties?F="object":i.items&&(F="array")),F){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"),y+A+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
349
+ \r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=fs(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=fs(i.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var A=p[y];if(o>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(o>=A.offset)return y}return 0},t.prototype.isInComment=function(r,i,o){var s=fs(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:ua.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!sa(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(ua.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!sa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),Cg=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 y=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=ur.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(se){var ye={contents:se,range:w};return ye},F=ed(p),G=this.contributions.length-1;G>=0;G--){var te=this.contributions[G],ne=te.getInfoContribution(r.uri,F);if(ne)return ne.then(function(se){return E(se)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(se){if(se){var ye=o.getMatchingSchemas(se.schema,p.offset),ge=null,Ae=null,me=null,Te=null;ye.every(function(Be){if(Be.node===p&&!Be.inverted&&Be.schema&&(ge=ge||Be.schema.title,Ae=Ae||Be.schema.markdownDescription||nd(Be.schema.description),Be.schema.enum)){var ze=Be.schema.enum.indexOf(Ta(p));Be.schema.markdownEnumDescriptions?me=Be.schema.markdownEnumDescriptions[ze]:Be.schema.enumDescriptions&&(me=nd(Be.schema.enumDescriptions[ze])),me&&(Te=Be.schema.enum[ze],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var He="";return ge&&(He=nd(ge)),Ae&&(He.length>0&&(He+=`
350
350
 
351
351
  `),He+=Ae),me&&(He.length>0&&(He+=`
352
352
 
353
353
  `),He+="`"+Og(Te)+"`: "+me),E([He])}return null})},t}();function nd(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
354
354
 
355
- $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Og(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Tg=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)}}(),Hr,Ml;if(typeof process=="object")Ml=!1;else if(typeof navigator=="object"){var Pg=navigator.userAgent;Ml=Pg.indexOf("Windows")>=0}function Dm(t){return 55296<=t&&t<=56319}function Nm(t){return 56320<=t&&t<=57343}function Bm(t){return t>=97&&t<=102}function Ig(t){return t>=97&&t<=122}function Fg(t){return t>=65&&t<=90}function Um(t){return Ig(t)||Fg(t)}var kg=/^\w[\w\d+.-]*$/,Mg=/^\//,Rg=/^\/\//;function Lg(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&&!kg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Mg.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(Rg.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 Dg(t,r){return!t&&!r?"file":t}function Ng(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==bi&&(r=bi+r):r=bi;break}return r}var gr="",bi="/",Bg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,id=function(){function t(r,i,o,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||gr,this.authority=r.authority||gr,this.path=r.path||gr,this.query=r.query||gr,this.fragment=r.fragment||gr):(this.scheme=Dg(r,y),this.authority=i||gr,this.path=Ng(this.scheme,o||gr),this.query=s||gr,this.fragment=p||gr,Lg(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Gp(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,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=gr),o===void 0?o=this.authority:o===null&&(o=gr),s===void 0?s=this.path:s===null&&(s=gr),p===void 0?p=this.query:p===null&&(p=gr),y===void 0?y=this.fragment:y===null&&(y=gr),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new ds(i,o,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var o=Bg.exec(r);return o?new ds(o[2]||gr,Ef(o[4]||gr),Ef(o[5]||gr),Ef(o[7]||gr),Ef(o[9]||gr),i):new ds(gr,gr,gr,gr,gr)},t.file=function(r){var i=gr;if(Ml&&(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 ds("file",i,r,gr,gr)},t.from=function(r){return new ds(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 ds(r);return i._formatted=r.external,i._fsPath=r._sep===Wp?r.fsPath:null,i}else return r},t}(),Wp=Ml?1:void 0,ds=function(t){Tg(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=Gp(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=Wp),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),Hp=(Hr={},Hr[58]="%3A",Hr[47]="%2F",Hr[63]="%3F",Hr[35]="%23",Hr[91]="%5B",Hr[93]="%5D",Hr[64]="%40",Hr[33]="%21",Hr[36]="%24",Hr[38]="%26",Hr[39]="%27",Hr[40]="%28",Hr[41]="%29",Hr[42]="%2A",Hr[43]="%2B",Hr[44]="%2C",Hr[59]="%3B",Hr[61]="%3D",Hr[32]="%20",Hr);function zp(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 y=Hp[p];y!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=y):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Ug(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+=Hp[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Gp(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?Ug:zp,o="",s=t.scheme,p=t.authority,y=t.path,A=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 F=p.substr(0,E);p=p.substr(E+1),E=F.indexOf(":"),E===-1?o+=i(F,!1):(o+=i(F.substr(0,E),!1),o+=":",o+=i(F.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(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var G=y.charCodeAt(1);G>=65&&G<=90&&(y="/"+String.fromCharCode(G+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var G=y.charCodeAt(0);G>=65&&G<=90&&(y=String.fromCharCode(G+32)+":"+y.substr(2))}o+=i(y,!0)}return A&&(o+="?",o+=i(A,!1)),w&&(o+="#",o+=r?w:zp(w,!1)),o}function $p(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+$p(t.substr(3)):t}}var Kp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ef(t){return t.match(Kp)?t.replace(Kp,function(r){return $p(r)}):t}var jg=function(){function t(r){try{this.patternRegExp=new RegExp(wg(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}(),Vg=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new ps(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}(),ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Yp=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return kn(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 y=p[s],A=new RegExp(y);if(A.test(o))return this.getSectionRecursive(r,i.patternProperties[y])}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}(),Wg=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 y=s.pop(),A=0;A<p.length;A++){var w=p[A];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&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 y in p){var A=p[y];this.contributionAssociations[y]=A;for(var w=this.getOrAddFilePatternAssociation(y),E=0,F=A;E<F.length;E++){var G=F[E],o=this.normalizeId(G);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Vg(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 jg(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,y=i;p<y.length;p++){var A=y[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 y=p[s],r=this.normalizeId(y);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 '"+Cf(r)+"'. No schema request service available";return this.promise.resolve(new ps({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Cf(r)+"': No content.";return new ps({},[s])}var p={},y=[];p=ng(o,y);var A=y.length?["Unable to parse content from '"+Cf(r)+"': Parse error at offset "+y[0].offset]:[];return new ps(p,A)},function(o){var s="Unable to load schema from '"+Cf(r)+"': "+o.toString();return new ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var A=this.normalizeId(y.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Yp({},["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,oe){if(!oe)return ne;var ye=ne;return oe[0]==="/"&&(oe=oe.substr(1)),oe.split("/").some(function(ge){return ye=ye[ge],!ye}),ye},F=function(ne,oe,ye,ge){var Ae=E(oe,ge);if(Ae)for(var me in Ae)Ae.hasOwnProperty(me)&&!ne.hasOwnProperty(me)&&(ne[me]=Ae[me]);else p.push("$ref '"+ge+"' in '"+ye+"' can not be resolved.")},G=function(ne,oe,ye,ge,Ae){w&&!/^\w+:\/\/.*/.test(oe)&&(oe=w.resolveRelativePath(oe,ge)),oe=s.normalizeId(oe);var me=s.getOrAddSchemaHandle(oe);return me.getUnresolvedSchema().then(function(Te){if(Ae[oe]=!0,Te.errors.length){var He=ye?oe+"#"+ye:oe;p.push("Problems loading reference '"+He+"': "+Te.errors[0]+".")}return F(ne,Te.schema,oe,ye),te(ne,Te.schema,oe,me.dependencies)})},te=function(ne,oe,ye,ge){if(!ne||typeof ne!="object")return Promise.resolve(null);for(var Ae=[ne],me=[],Te=[],He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];typeof gt=="object"&&Ae.push(gt)}},Ve=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];if(typeof gt=="object")for(var Nt in gt){var Gt=gt[Nt];typeof Gt=="object"&&Ae.push(Gt)}}},ze=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];if(Array.isArray(gt))for(var Nt=0,Gt=gt;Nt<Gt.length;Nt++){var or=Gt[Nt];typeof or=="object"&&Ae.push(or)}}},De=function(We){for(var Je=[];We.$ref;){var et=We.$ref,$e=et.split("#",2);if(delete We.$ref,$e[0].length>0){Te.push(G(We,$e[0],$e[1],ye,ge));return}else Je.indexOf(et)===-1&&(F(We,oe,ye,$e[1]),Je.push(et))}He(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ve(We.definitions,We.properties,We.patternProperties,We.dependencies),ze(We.anyOf,We.allOf,We.oneOf,We.items)};Ae.length;){var Be=Ae.pop();me.indexOf(Be)>=0||(me.push(Be),De(Be))}return s.promise.all(Te)};return te(y,y,i,o).then(function(ne){return new Yp(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(oe){return oe.keyNode.value==="$schema"&&oe.valueNode&&oe.valueNode.type==="string"});if(o.length>0){var s=Ta(o[0].valueNode);if(s&&bg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var F=E[w];if(F.matchesPattern(r))for(var G=0,te=F.getSchemas();G<te.length;G++){var ne=te[G];y[ne]||(A.push(ne),y[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 Cf(t){try{}catch(r){}return t}var Hg=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:$t.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],A={},w=function(G){var te=G.range.start.line+" "+G.range.start.character+" "+G.message;A[te]||(A[te]=!0,y.push(G))},E=function(G){var te=o?Qp(o.trailingCommas):$t.Error,ne=o?Qp(o.comments):p.commentSeverity;if(G){if(G.errors.length&&i.root){var oe=i.root,ye=oe.type==="object"?oe.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var ge=ye.valueNode||ye,Ae=ur.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(la.create(Ae,G.errors[0],$t.Warning,tr.SchemaResolveError))}else{var Ae=ur.create(r.positionAt(oe.offset),r.positionAt(oe.offset+1));w(la.create(Ae,G.errors[0],$t.Warning,tr.SchemaResolveError))}}else{var me=i.validate(r,G.schema);me&&me.forEach(w)}Jp(G.schema)&&(ne=void 0),Xp(G.schema)&&(te=void 0)}for(var Te=0,He=i.syntaxErrors;Te<He.length;Te++){var Ve=He[Te];if(Ve.code===tr.TrailingComma){if(typeof te!="number")continue;Ve.severity=te}w(Ve)}if(typeof ne=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(De){w(la.create(De,ze,ne,tr.CommentNotPermitted))})}return y};if(s){var F=s.id||"schemaservice://untitled/"+zg++;return this.jsonSchemaService.resolveSchemaContent(new ps(s),F,{}).then(function(G){return E(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(G){return E(G)})},t}(),zg=0;function Jp(t){if(t&&typeof t=="object"){if(Ni(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Jp(o);if(Ni(s))return s}}}function Xp(t){if(t&&typeof t=="object"){if(Ni(t.allowTrailingCommas))return t.allowTrailingCommas;if(Ni(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Xp(o);if(Ni(s))return s}}}function Qp(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Zp=48,Gg=57,$g=65,Of=97,Kg=102;function zr(t){return t<Zp?0:t<=Gg?t-Zp:(t<Of&&(t+=Of-$g),t>=Of&&t<=Kg?t-Of+10:0)}function Yg(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:zr(t.charCodeAt(4))*17/255};case 7:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:(zr(t.charCodeAt(7))*16+zr(t.charCodeAt(8)))/255}}return null}function jm(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Jg=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 y=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,F=p.items;E<F.length;E++){var G=F[E];if(G.type==="object")for(var te=0,ne=G.properties;te<ne.length;te++){var oe=ne[te];if(oe.keyNode.value==="key"&&oe.valueNode){var ye=Ol.create(r.uri,Pa(r,G));if(w.push({name:Ta(oe.valueNode),kind:Bi.Function,location:ye}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var ge=function(me,Te,He){return y>=0&&(Te.type==="array"?Te.items.forEach(function(Ve){return ge(me,Ve,He)}):Te.type==="object"&&Te.properties.forEach(function(Ve){if(y>=0){var ze=Ve.valueNode;if(ze){y--;var De=Ol.create(r.uri,Pa(r,Ve)),Be=He?He+"."+Ve.keyNode.value:Ve.keyNode.value;me.push({name:s.getKeyLabel(Ve),kind:s.getSymbolKind(ze.type),location:De,containerName:He}),ge(me,ze,Be)}}})),me},Ae=ge([],p,void 0);return y<0&&(Ae.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),Ae},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 y=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,F=p.items;E<F.length;E++){var G=F[E];if(G.type==="object")for(var te=0,ne=G.properties;te<ne.length;te++){var oe=ne[te];if(oe.keyNode.value==="key"&&oe.valueNode){var ye=Pa(r,G),ge=Pa(r,oe.keyNode);if(w.push({name:Ta(oe.valueNode),kind:Bi.Function,range:ye,selectionRange:ge}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var Ae=function(Te,He){return y>=0&&(He.type==="array"?He.items.forEach(function(Ve,ze){if(Ve&&y>=0){y--;var De=Pa(r,Ve),Be=De,We=String(ze),Je=Ae([],Ve);Te.push({name:We,kind:s.getSymbolKind(Ve.type),range:De,selectionRange:Be,children:Je})}}):He.type==="object"&&He.properties.forEach(function(Ve){var ze=Ve.valueNode;if(ze&&y>=0){y--;var De=Pa(r,Ve),Be=Pa(r,Ve.keyNode),We=Ae([],ze);Te.push({name:s.getKeyLabel(Ve),kind:s.getSymbolKind(ze.type),range:De,selectionRange:Be,children:We})}})),Te},me=Ae([],p);return y<0&&(me.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Bi.Module;case"string":return Bi.String;case"number":return Bi.Number;case"array":return Bi.Array;case"boolean":return Bi.Boolean;default:return Bi.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 y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,F=A;E<F.length;E++){var G=F[E];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var te=String(G.node.offset);if(!w[te]){var ne=Yg(Ta(G.node));if(ne){var oe=Pa(r,G.node);p.push({color:ne,range:oe})}if(w[te]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],y=Math.round(o.red*255),A=Math.round(o.green*255),w=Math.round(o.blue*255);function E(G){var te=G.toString(16);return te.length!==2?"0"+te:te}var F;return o.alpha===1?F="#"+E(y)+E(A)+E(w):F="#"+E(y)+E(A)+E(w)+E(Math.round(o.alpha*255)),p.push({label:F,textEdit:xi.replace(s,JSON.stringify(F))}),p},t}();function Pa(t,r){return ur.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Xg={schemaAssociations:{},schemas:{}};function Qg(t,r){var i=[],o=[],s=[],p=-1,y=fs(t.getText(),!1),A=y.scan();function w(Je){i.push(Je),o.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,F={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(F);break}case 2:case 4:{var G=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var F=s.pop(),te=t.positionAt(y.getTokenOffset()).line;F&&te>F.startLine+1&&p!==F.startLine&&(F.endLine=te-1,w(F),p=F.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,ne=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(mi.create(E+1,0))):E<ne&&(w({startLine:E,endLine:ne,kind:Tl.Comment}),p=E);break}case 12:{var oe=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ye=oe.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var te=t.positionAt(y.getTokenOffset()).line;if(ye[1]){var F={startLine:te,endLine:te,kind:Tl.Region};s.push(F)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Tl.Region;)ge--;if(ge>=0){var F=s[ge];s.length=ge,te>F.startLine&&p!==F.startLine&&(F.endLine=te,w(F),p=F.startLine)}}}break}}A=y.scan()}var Ae=r&&r.rangeLimit;if(typeof Ae!="number"||i.length<=Ae)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Te=0,He=o;Te<He.length;Te++){var Ve=He[Te];Ve<30&&(me[Ve]=(me[Ve]||0)+1)}for(var ze=0,De=0,ge=0;ge<me.length;ge++){var Be=me[ge];if(Be){if(Be+ze>Ae){De=ge;break}ze+=Be}}for(var We=[],ge=0;ge<i.length;ge++){var Ve=o[ge];typeof Ve=="number"&&(Ve<De||Ve===De&&ze++<Ae)&&We.push(i[ge])}return We}function Zg(t,r,i){function o(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),F=[];E;){switch(E.type){case"string":case"object":case"array":var G=E.offset+1,te=E.offset+E.length-1;G<te&&w>=G&&w<=te&&F.push(s(G,te)),F.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":F.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var ne=y(E.offset+E.length,5);ne!==-1&&F.push(s(E.offset,ne))}E=E.parent}for(var oe=void 0,ye=F.length-1;ye>=0;ye--)oe=Sf.create(F[ye],oe);return oe||(oe=Sf.create(ur.create(A,A))),oe}function s(A,w){return ur.create(t.positionAt(A),t.positionAt(w))}var p=fs(t.getText(),!0);function y(A,w){p.setPosition(A);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function _g(t){var r=t.promiseConstructor||Promise,i=new Wg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Xg);var o=new Eg(i,t.contributions,r,t.clientCapabilities),s=new Cg(i,t.contributions,r),p=new Jg(i),y=new Hg(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(A){return xg(A,{collectComments:!0})},newJSONDocument:function(A,w){return mg(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(F){return F.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Qg,getSelectionRanges:Zg,format:function(A,w,E){var F=void 0;if(w){var G=A.offsetAt(w.start),te=A.offsetAt(w.end)-G;F={offset:G,length:te}}var ne={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
356
- `};return sg(A.getText(),F,ne).map(function(oe){return xi.replace(ur.create(A.positionAt(oe.offset),A.positionAt(oe.offset+oe.length)),oe.content)})}}}var Vm=a(96876),Wm=a(4328),Hm=a(3256),zm=a(71707),Gm=a(82801),$m=a(32095),Km=a(86081),Ym=a(44254),Jm=a(75019),Xm=a(13837),_p=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const hs=_g({});ls.registerHelper("lint","json",function(t,r){return _p(this,null,function*(){const{schema:i,setError:o}=r;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Af.create(r.id+".json","json",0,t),p=hs.parseJSONDocument(s),y=yield hs.doValidation(s,p);return y.length?o&&o(y[0].message):o&&o(void 0),y.map(A=>({from:ls.Pos(A.range.start.line,A.range.start.character),to:ls.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),ls.registerHelper("hint","json",(t,r)=>_p(void 0,null,function*(){const i=r.schema;if(!i)return;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=Af.create(r.id+".json","json",0,t.getValue()),y=hs.parseJSONDocument(p),A=yield hs.doComplete(p,{line:o.line,character:o.ch},y),w=F=>{let G="";for(;F--;)G+=" ";return G};let E=A?A.items.map(F=>({text:F.insertText,displayText:F.label,filter:F.filterText||F.label,from:{line:F.textEdit.range.start.line,ch:F.textEdit.range.start.character},to:{line:F.textEdit.range.end.line,ch:F.textEdit.range.end.character},hint:(G,te,ne)=>{const oe="_$__REDOC_CURSOR_HERE";let ye=ne.text.replace(/(\$1|\${1:[^}]+})/,oe)||"";if(ye=ye.replace(/(\$\d+|\${[^}]+})/g,"")||"",G.setSelection(ne.from,ne.to),ye.indexOf(`
355
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Og(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Tg=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)}}(),Hr,Ml;if(typeof process=="object")Ml=!1;else if(typeof navigator=="object"){var Pg=navigator.userAgent;Ml=Pg.indexOf("Windows")>=0}function Dm(t){return 55296<=t&&t<=56319}function Nm(t){return 56320<=t&&t<=57343}function Bm(t){return t>=97&&t<=102}function Ig(t){return t>=97&&t<=122}function Fg(t){return t>=65&&t<=90}function Um(t){return Ig(t)||Fg(t)}var kg=/^\w[\w\d+.-]*$/,Mg=/^\//,Rg=/^\/\//;function Lg(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&&!kg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Mg.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(Rg.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 Dg(t,r){return!t&&!r?"file":t}function Ng(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==bi&&(r=bi+r):r=bi;break}return r}var gr="",bi="/",Bg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,id=function(){function t(r,i,o,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||gr,this.authority=r.authority||gr,this.path=r.path||gr,this.query=r.query||gr,this.fragment=r.fragment||gr):(this.scheme=Dg(r,y),this.authority=i||gr,this.path=Ng(this.scheme,o||gr),this.query=s||gr,this.fragment=p||gr,Lg(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Gp(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,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=gr),o===void 0?o=this.authority:o===null&&(o=gr),s===void 0?s=this.path:s===null&&(s=gr),p===void 0?p=this.query:p===null&&(p=gr),y===void 0?y=this.fragment:y===null&&(y=gr),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new ds(i,o,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var o=Bg.exec(r);return o?new ds(o[2]||gr,Ef(o[4]||gr),Ef(o[5]||gr),Ef(o[7]||gr),Ef(o[9]||gr),i):new ds(gr,gr,gr,gr,gr)},t.file=function(r){var i=gr;if(Ml&&(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 ds("file",i,r,gr,gr)},t.from=function(r){return new ds(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 ds(r);return i._formatted=r.external,i._fsPath=r._sep===Wp?r.fsPath:null,i}else return r},t}(),Wp=Ml?1:void 0,ds=function(t){Tg(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=Gp(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=Wp),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),Hp=(Hr={},Hr[58]="%3A",Hr[47]="%2F",Hr[63]="%3F",Hr[35]="%23",Hr[91]="%5B",Hr[93]="%5D",Hr[64]="%40",Hr[33]="%21",Hr[36]="%24",Hr[38]="%26",Hr[39]="%27",Hr[40]="%28",Hr[41]="%29",Hr[42]="%2A",Hr[43]="%2B",Hr[44]="%2C",Hr[59]="%3B",Hr[61]="%3D",Hr[32]="%20",Hr);function zp(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 y=Hp[p];y!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=y):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Ug(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+=Hp[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Gp(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?Ug:zp,o="",s=t.scheme,p=t.authority,y=t.path,A=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 F=p.substr(0,E);p=p.substr(E+1),E=F.indexOf(":"),E===-1?o+=i(F,!1):(o+=i(F.substr(0,E),!1),o+=":",o+=i(F.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(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var G=y.charCodeAt(1);G>=65&&G<=90&&(y="/"+String.fromCharCode(G+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var G=y.charCodeAt(0);G>=65&&G<=90&&(y=String.fromCharCode(G+32)+":"+y.substr(2))}o+=i(y,!0)}return A&&(o+="?",o+=i(A,!1)),w&&(o+="#",o+=r?w:zp(w,!1)),o}function $p(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+$p(t.substr(3)):t}}var Kp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ef(t){return t.match(Kp)?t.replace(Kp,function(r){return $p(r)}):t}var jg=function(){function t(r){try{this.patternRegExp=new RegExp(wg(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}(),Vg=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new ps(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}(),ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),Yp=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return kn(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 y=p[s],A=new RegExp(y);if(A.test(o))return this.getSectionRecursive(r,i.patternProperties[y])}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}(),Wg=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 y=s.pop(),A=0;A<p.length;A++){var w=p[A];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&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 y in p){var A=p[y];this.contributionAssociations[y]=A;for(var w=this.getOrAddFilePatternAssociation(y),E=0,F=A;E<F.length;E++){var G=F[E],o=this.normalizeId(G);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Vg(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 jg(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,y=i;p<y.length;p++){var A=y[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 y=p[s],r=this.normalizeId(y);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 '"+Cf(r)+"'. No schema request service available";return this.promise.resolve(new ps({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Cf(r)+"': No content.";return new ps({},[s])}var p={},y=[];p=ng(o,y);var A=y.length?["Unable to parse content from '"+Cf(r)+"': Parse error at offset "+y[0].offset]:[];return new ps(p,A)},function(o){var s="Unable to load schema from '"+Cf(r)+"': "+o.toString();return new ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var A=this.normalizeId(y.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Yp({},["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,se){if(!se)return ne;var ye=ne;return se[0]==="/"&&(se=se.substr(1)),se.split("/").some(function(ge){return ye=ye[ge],!ye}),ye},F=function(ne,se,ye,ge){var Ae=E(se,ge);if(Ae)for(var me in Ae)Ae.hasOwnProperty(me)&&!ne.hasOwnProperty(me)&&(ne[me]=Ae[me]);else p.push("$ref '"+ge+"' in '"+ye+"' can not be resolved.")},G=function(ne,se,ye,ge,Ae){w&&!/^\w+:\/\/.*/.test(se)&&(se=w.resolveRelativePath(se,ge)),se=s.normalizeId(se);var me=s.getOrAddSchemaHandle(se);return me.getUnresolvedSchema().then(function(Te){if(Ae[se]=!0,Te.errors.length){var He=ye?se+"#"+ye:se;p.push("Problems loading reference '"+He+"': "+Te.errors[0]+".")}return F(ne,Te.schema,se,ye),te(ne,Te.schema,se,me.dependencies)})},te=function(ne,se,ye,ge){if(!ne||typeof ne!="object")return Promise.resolve(null);for(var Ae=[ne],me=[],Te=[],He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];typeof gt=="object"&&Ae.push(gt)}},Be=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];if(typeof gt=="object")for(var Nt in gt){var zt=gt[Nt];typeof zt=="object"&&Ae.push(zt)}}},ze=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];if(Array.isArray(gt))for(var Nt=0,zt=gt;Nt<zt.length;Nt++){var or=zt[Nt];typeof or=="object"&&Ae.push(or)}}},De=function(We){for(var Je=[];We.$ref;){var et=We.$ref,$e=et.split("#",2);if(delete We.$ref,$e[0].length>0){Te.push(G(We,$e[0],$e[1],ye,ge));return}else Je.indexOf(et)===-1&&(F(We,se,ye,$e[1]),Je.push(et))}He(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Be(We.definitions,We.properties,We.patternProperties,We.dependencies),ze(We.anyOf,We.allOf,We.oneOf,We.items)};Ae.length;){var Ue=Ae.pop();me.indexOf(Ue)>=0||(me.push(Ue),De(Ue))}return s.promise.all(Te)};return te(y,y,i,o).then(function(ne){return new Yp(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(se){return se.keyNode.value==="$schema"&&se.valueNode&&se.valueNode.type==="string"});if(o.length>0){var s=Ta(o[0].valueNode);if(s&&bg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var F=E[w];if(F.matchesPattern(r))for(var G=0,te=F.getSchemas();G<te.length;G++){var ne=te[G];y[ne]||(A.push(ne),y[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 Cf(t){try{}catch(r){}return t}var Hg=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:$t.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],A={},w=function(G){var te=G.range.start.line+" "+G.range.start.character+" "+G.message;A[te]||(A[te]=!0,y.push(G))},E=function(G){var te=o?Qp(o.trailingCommas):$t.Error,ne=o?Qp(o.comments):p.commentSeverity;if(G){if(G.errors.length&&i.root){var se=i.root,ye=se.type==="object"?se.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var ge=ye.valueNode||ye,Ae=ur.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(la.create(Ae,G.errors[0],$t.Warning,rr.SchemaResolveError))}else{var Ae=ur.create(r.positionAt(se.offset),r.positionAt(se.offset+1));w(la.create(Ae,G.errors[0],$t.Warning,rr.SchemaResolveError))}}else{var me=i.validate(r,G.schema);me&&me.forEach(w)}Jp(G.schema)&&(ne=void 0),Xp(G.schema)&&(te=void 0)}for(var Te=0,He=i.syntaxErrors;Te<He.length;Te++){var Be=He[Te];if(Be.code===rr.TrailingComma){if(typeof te!="number")continue;Be.severity=te}w(Be)}if(typeof ne=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(De){w(la.create(De,ze,ne,rr.CommentNotPermitted))})}return y};if(s){var F=s.id||"schemaservice://untitled/"+zg++;return this.jsonSchemaService.resolveSchemaContent(new ps(s),F,{}).then(function(G){return E(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(G){return E(G)})},t}(),zg=0;function Jp(t){if(t&&typeof t=="object"){if(Ni(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Jp(o);if(Ni(s))return s}}}function Xp(t){if(t&&typeof t=="object"){if(Ni(t.allowTrailingCommas))return t.allowTrailingCommas;if(Ni(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Xp(o);if(Ni(s))return s}}}function Qp(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Zp=48,Gg=57,$g=65,Of=97,Kg=102;function zr(t){return t<Zp?0:t<=Gg?t-Zp:(t<Of&&(t+=Of-$g),t>=Of&&t<=Kg?t-Of+10:0)}function Yg(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:zr(t.charCodeAt(4))*17/255};case 7:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:(zr(t.charCodeAt(7))*16+zr(t.charCodeAt(8)))/255}}return null}function jm(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Jg=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 y=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,F=p.items;E<F.length;E++){var G=F[E];if(G.type==="object")for(var te=0,ne=G.properties;te<ne.length;te++){var se=ne[te];if(se.keyNode.value==="key"&&se.valueNode){var ye=Ol.create(r.uri,Pa(r,G));if(w.push({name:Ta(se.valueNode),kind:Bi.Function,location:ye}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var ge=function(me,Te,He){return y>=0&&(Te.type==="array"?Te.items.forEach(function(Be){return ge(me,Be,He)}):Te.type==="object"&&Te.properties.forEach(function(Be){if(y>=0){var ze=Be.valueNode;if(ze){y--;var De=Ol.create(r.uri,Pa(r,Be)),Ue=He?He+"."+Be.keyNode.value:Be.keyNode.value;me.push({name:s.getKeyLabel(Be),kind:s.getSymbolKind(ze.type),location:De,containerName:He}),ge(me,ze,Ue)}}})),me},Ae=ge([],p,void 0);return y<0&&(Ae.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),Ae},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 y=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,F=p.items;E<F.length;E++){var G=F[E];if(G.type==="object")for(var te=0,ne=G.properties;te<ne.length;te++){var se=ne[te];if(se.keyNode.value==="key"&&se.valueNode){var ye=Pa(r,G),ge=Pa(r,se.keyNode);if(w.push({name:Ta(se.valueNode),kind:Bi.Function,range:ye,selectionRange:ge}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var Ae=function(Te,He){return y>=0&&(He.type==="array"?He.items.forEach(function(Be,ze){if(Be&&y>=0){y--;var De=Pa(r,Be),Ue=De,We=String(ze),Je=Ae([],Be);Te.push({name:We,kind:s.getSymbolKind(Be.type),range:De,selectionRange:Ue,children:Je})}}):He.type==="object"&&He.properties.forEach(function(Be){var ze=Be.valueNode;if(ze&&y>=0){y--;var De=Pa(r,Be),Ue=Pa(r,Be.keyNode),We=Ae([],ze);Te.push({name:s.getKeyLabel(Be),kind:s.getSymbolKind(ze.type),range:De,selectionRange:Ue,children:We})}})),Te},me=Ae([],p);return y<0&&(me.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Bi.Module;case"string":return Bi.String;case"number":return Bi.Number;case"array":return Bi.Array;case"boolean":return Bi.Boolean;default:return Bi.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 y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,F=A;E<F.length;E++){var G=F[E];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var te=String(G.node.offset);if(!w[te]){var ne=Yg(Ta(G.node));if(ne){var se=Pa(r,G.node);p.push({color:ne,range:se})}if(w[te]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],y=Math.round(o.red*255),A=Math.round(o.green*255),w=Math.round(o.blue*255);function E(G){var te=G.toString(16);return te.length!==2?"0"+te:te}var F;return o.alpha===1?F="#"+E(y)+E(A)+E(w):F="#"+E(y)+E(A)+E(w)+E(Math.round(o.alpha*255)),p.push({label:F,textEdit:xi.replace(s,JSON.stringify(F))}),p},t}();function Pa(t,r){return ur.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Xg={schemaAssociations:{},schemas:{}};function Qg(t,r){var i=[],o=[],s=[],p=-1,y=fs(t.getText(),!1),A=y.scan();function w(Je){i.push(Je),o.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,F={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(F);break}case 2:case 4:{var G=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var F=s.pop(),te=t.positionAt(y.getTokenOffset()).line;F&&te>F.startLine+1&&p!==F.startLine&&(F.endLine=te-1,w(F),p=F.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,ne=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(mi.create(E+1,0))):E<ne&&(w({startLine:E,endLine:ne,kind:Tl.Comment}),p=E);break}case 12:{var se=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ye=se.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var te=t.positionAt(y.getTokenOffset()).line;if(ye[1]){var F={startLine:te,endLine:te,kind:Tl.Region};s.push(F)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Tl.Region;)ge--;if(ge>=0){var F=s[ge];s.length=ge,te>F.startLine&&p!==F.startLine&&(F.endLine=te,w(F),p=F.startLine)}}}break}}A=y.scan()}var Ae=r&&r.rangeLimit;if(typeof Ae!="number"||i.length<=Ae)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Te=0,He=o;Te<He.length;Te++){var Be=He[Te];Be<30&&(me[Be]=(me[Be]||0)+1)}for(var ze=0,De=0,ge=0;ge<me.length;ge++){var Ue=me[ge];if(Ue){if(Ue+ze>Ae){De=ge;break}ze+=Ue}}for(var We=[],ge=0;ge<i.length;ge++){var Be=o[ge];typeof Be=="number"&&(Be<De||Be===De&&ze++<Ae)&&We.push(i[ge])}return We}function Zg(t,r,i){function o(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),F=[];E;){switch(E.type){case"string":case"object":case"array":var G=E.offset+1,te=E.offset+E.length-1;G<te&&w>=G&&w<=te&&F.push(s(G,te)),F.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":F.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var ne=y(E.offset+E.length,5);ne!==-1&&F.push(s(E.offset,ne))}E=E.parent}for(var se=void 0,ye=F.length-1;ye>=0;ye--)se=Sf.create(F[ye],se);return se||(se=Sf.create(ur.create(A,A))),se}function s(A,w){return ur.create(t.positionAt(A),t.positionAt(w))}var p=fs(t.getText(),!0);function y(A,w){p.setPosition(A);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function _g(t){var r=t.promiseConstructor||Promise,i=new Wg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Xg);var o=new Eg(i,t.contributions,r,t.clientCapabilities),s=new Cg(i,t.contributions,r),p=new Jg(i),y=new Hg(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(A){return xg(A,{collectComments:!0})},newJSONDocument:function(A,w){return mg(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(F){return F.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Qg,getSelectionRanges:Zg,format:function(A,w,E){var F=void 0;if(w){var G=A.offsetAt(w.start),te=A.offsetAt(w.end)-G;F={offset:G,length:te}}var ne={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
356
+ `};return sg(A.getText(),F,ne).map(function(se){return xi.replace(ur.create(A.positionAt(se.offset),A.positionAt(se.offset+se.length)),se.content)})}}}var Vm=a(96876),Wm=a(4328),Hm=a(3256),zm=a(71707),Gm=a(82801),$m=a(32095),Km=a(86081),Ym=a(44254),Jm=a(75019),Xm=a(13837),_p=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const hs=_g({});ls.registerHelper("lint","json",function(t,r){return _p(this,null,function*(){const{schema:i,setError:o}=r;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Af.create(r.id+".json","json",0,t),p=hs.parseJSONDocument(s),y=yield hs.doValidation(s,p);return y.length?o&&o(y[0].message):o&&o(void 0),y.map(A=>({from:ls.Pos(A.range.start.line,A.range.start.character),to:ls.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),ls.registerHelper("hint","json",(t,r)=>_p(void 0,null,function*(){const i=r.schema;if(!i)return;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=Af.create(r.id+".json","json",0,t.getValue()),y=hs.parseJSONDocument(p),A=yield hs.doComplete(p,{line:o.line,character:o.ch},y),w=F=>{let G="";for(;F--;)G+=" ";return G};let E=A?A.items.map(F=>({text:F.insertText,displayText:F.label,filter:F.filterText||F.label,from:{line:F.textEdit.range.start.line,ch:F.textEdit.range.start.character},to:{line:F.textEdit.range.end.line,ch:F.textEdit.range.end.character},hint:(G,te,ne)=>{const se="_$__REDOC_CURSOR_HERE";let ye=ne.text.replace(/(\$1|\${1:[^}]+})/,se)||"";if(ye=ye.replace(/(\$\d+|\${[^}]+})/g,"")||"",G.setSelection(ne.from,ne.to),ye.indexOf(`
357
357
  `)>-1){const Ae=G.getLine(G.getCursor().line).search(/(\S|$)/);ye=ye.replace(/\n/g,`
358
- `+w(Ae))}G.replaceSelection(ye);const ge=G.getSearchCursor(oe,ne.from);ge.findNext()&&(G.setCursor(ge.from()),ge.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(F=>F.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:ls.Pos(o.line,s.start),to:ls.Pos(o.line,o.ch),list:E}}));var qg=Object.defineProperty,ey=(t,r,i)=>r in t?qg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Rl=(t,r,i)=>(ey(t,typeof r!="symbol"?r+"":r,i),i);const ty=Tt.createGlobalStyle`
358
+ `+w(Ae))}G.replaceSelection(ye);const ge=G.getSearchCursor(se,ne.from);ge.findNext()&&(G.setCursor(ge.from()),ge.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(F=>F.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:ls.Pos(o.line,s.start),to:ls.Pos(o.line,o.ch),list:E}}));var qg=Object.defineProperty,ey=(t,r,i)=>r in t?qg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Rl=(t,r,i)=>(ey(t,typeof r!="symbol"?r+"":r,i),i);const ty=Tt.createGlobalStyle`
359
359
  .cm-s-material.CodeMirror {
360
360
  background-color: var(--samples-panel-controls-background-color)!important;
361
361
  color: var(--text-color-inverse)!important;
@@ -403,7 +403,7 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Og(t){return t.i
403
403
  flex: 1;
404
404
  border-radius: var(--panel-border-radius);
405
405
  }
406
- `;class ry extends d.PureComponent{constructor(){super(...arguments);Rl(this,"editor"),Rl(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Rl(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Rl(this,"refreshEditor",()=>{this.editor.refresh()}),Rl(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}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:y,forwardedRef:A}=this.props;return d.createElement(d.Fragment,null,d.createElement(ty,null),d.createElement(Kv.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(w,E,F)=>{i(F),p&&p(F)},onBlur:w=>{o(!1),y&&y(w)},options:{mode:this.props.mode||pf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const ny=$r(ry);var iy=Object.defineProperty,ay=Object.defineProperties,oy=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,sy=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,eh=(t,r,i)=>r in t?iy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,uy=(t,r)=>{for(var i in r||(r={}))sy.call(r,i)&&eh(t,i,r[i]);if(qp)for(var i of qp(r))ly.call(r,i)&&eh(t,i,r[i]);return t},fy=(t,r)=>ay(t,oy(r));const cy=(0,Fa.Pi)(({body:t,formApi:r,resolvedBody:i,properties:o,id:s,validate:p})=>{var y;const A=t.content,w=oe=>{var ye;if(!A||!A.hasSample)return"";const ge=(ye=A.active)==null?void 0:ye.examples;if(!(ge==null?void 0:ge[oe]))return"";const Ae=ge==null?void 0:ge[oe].value,me=o?jv()(Ae,o,{arrayMerge:Gn.lN}):Ae;return JSON.stringify(me,null,2)},E=(y=A==null?void 0:A.operation)==null?void 0:y.activeExampleName,F=oe=>{var ye;(ye=A==null?void 0:A.operation)==null||ye.activateExampleName(oe),r.setValue("body",w(oe))},G=(oe,ye)=>{const{setValue:ge}=r;ge(`body.${oe}`,ye)};(0,d.useEffect)(()=>{E!==!1?r.setValue("body",(0,Wt.YQ)(`${s}_${E||""}`)||w(E||"")):r.setValue("body",JSON.stringify(o||{},null,2))},[E]);const te=oe=>d.createElement(zt.DropdownOrLabel,fy(uy({},oe),{variant:"dark",fullWidth:!0,Label:$v,Dropdown:vr.Dropdown})),ne=(0,d.useCallback)(oe=>ye=>{(0,Wt.WW)(`${s}_${oe}`,ye)},[s]);return d.createElement(d.Fragment,null,d.createElement(zt.MediaTypesSwitch,{content:t.content,renderDropdown:te},oe=>{const ye=oe.examples||{},ge=Object.keys(ye),Ae=oe.schema,me=dt(Ae||{},oe.name)||oe.name===pf.T.MULTIPART||oe.name===pf.T.URL_ENCODED,{exampleKey:Te}=(0,zc.C6)(oe.operation,ye),He=(0,Wt.YQ)(`${s}_${Te}`)||(0,nr.oY)(ye[Te],o);return d.createElement(d.Fragment,null,ge.length&&ge.length!==1&&d.createElement(zc.b_,{examples:ye,onChange:F,exampleKey:Te,panel:"try-it"})||null,me?d.createElement(zv,{mediaType:oe,formApi:r,onChange:G}):d.createElement(ny,{id:"body"+s,field:"body",initialValue:He,schema:((i==null?void 0:i.content[oe.name])||{}).schema,mode:oe.name,validate:p,onChange:ne(Te)}))}))}),dy=(0,d.memo)(cy);function py({response:t}){return d.createElement(d.Fragment,null,d.createElement(an.EE,null," Body: "),hy(t))}function hy(t){return t.body?d.createElement(oa.JsonViewer,{data:t.body,jsonSampleExpandLevel:1}):t.fileInfo?d.createElement(zt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(oa.SourceCode,{lang:(0,zt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data,withCopyButton:!0}):d.createElement(an.w3,null,d.createElement("i",null,"(no content)")):null}function vy({headers:t}){const r=d.useContext(zt.OptionsContext),[i,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),y=!!s&&p.length>s,A=y&&i?[...p].splice(0,s):[...p],w=()=>{o(!i)};return d.createElement(d.Fragment,null,d.createElement(an.EE,null," Headers: "),d.createElement(an.w3,null,A.map(E=>d.createElement("div",{key:E},d.createElement(th,null,E,":"),d.createElement("code",null,t[E]))),y&&d.createElement(rh,{onClick:w},i?"Show more...":"Hide headers")))}const th=Tt.default.strong`
406
+ `;class ry extends d.PureComponent{constructor(){super(...arguments);Rl(this,"editor"),Rl(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Rl(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Rl(this,"refreshEditor",()=>{this.editor.refresh()}),Rl(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}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:y,forwardedRef:A}=this.props;return d.createElement(d.Fragment,null,d.createElement(ty,null),d.createElement(Kv.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(w,E,F)=>{i(F),p&&p(F)},onBlur:w=>{o(!1),y&&y(w)},options:{mode:this.props.mode||pf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const ny=$r(ry);var iy=Object.defineProperty,ay=Object.defineProperties,oy=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,sy=Object.prototype.hasOwnProperty,ly=Object.prototype.propertyIsEnumerable,eh=(t,r,i)=>r in t?iy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,uy=(t,r)=>{for(var i in r||(r={}))sy.call(r,i)&&eh(t,i,r[i]);if(qp)for(var i of qp(r))ly.call(r,i)&&eh(t,i,r[i]);return t},fy=(t,r)=>ay(t,oy(r));const cy=(0,Fa.Pi)(({body:t,formApi:r,resolvedBody:i,properties:o,id:s,validate:p})=>{var y,A;const w=t.content,E=ye=>{var ge;if(!w||!w.hasSample)return"";const Ae=(ge=w.active)==null?void 0:ge.examples;if(!(Ae==null?void 0:Ae[ye]))return"";const me=Ae==null?void 0:Ae[ye].value,Te=o?jv()(me,o,{arrayMerge:Gn.lN}):me;return JSON.stringify(Te,null,2)},F=(y=w==null?void 0:w.operation)==null?void 0:y.activeExampleName,G=ye=>{w==null||w.activateExampleName(ye),r.setValue("body",E(ye))},te=(ye,ge)=>{r.setValue(`body.${ye}`,ge)};(0,d.useEffect)(()=>{var ye,ge;if((ye=w==null?void 0:w.operation)==null?void 0:ye.activeMimeName){const Ae=(0,tr.P6)(s,w.operation.activeMimeName,F,(ge=w==null?void 0:w.active)==null?void 0:ge.examples);r.setValue("body",(0,Gt.YQ)(Ae)||E(F||""))}else r.setValue("body",JSON.stringify(o||{},null,2))},[F,(A=w==null?void 0:w.operation)==null?void 0:A.activeMimeName,w==null?void 0:w.active]);const ne=ye=>d.createElement(Wt.DropdownOrLabel,fy(uy({},ye),{variant:"dark",fullWidth:!0,Label:$v,Dropdown:vr.Dropdown})),se=(0,d.useCallback)((ye="",ge="",Ae=[])=>me=>{(0,Gt.WW)((0,tr.P6)(s,ye,ge,Ae),me)},[s]);return d.createElement(d.Fragment,null,d.createElement(Wt.MediaTypesSwitch,{content:t.content,renderDropdown:ne},ye=>{const ge=ye.examples||{},Ae=Object.keys(ge),me=ye.schema,Te=dt(me||{},ye.name)||ye.name===pf.T.MULTIPART||ye.name===pf.T.URL_ENCODED,{exampleKey:He}=(0,zc.C6)(ye.operation,ge),Be=(0,Gt.YQ)((0,tr.P6)(s,ye.name,He,ge))||(0,tr.oY)(ge[He],o);return d.createElement(d.Fragment,null,Ae.length&&Ae.length!==1&&d.createElement(zc.b_,{examples:ge,onChange:G,exampleKey:He,panel:"try-it"})||null,Te?d.createElement(zv,{mediaType:ye,formApi:r,onChange:te}):d.createElement(ny,{id:"body"+s,field:"body",initialValue:Be,schema:((i==null?void 0:i.content[ye.name])||{}).schema,mode:ye.name,validate:p,onChange:se(ye.name,He,ge)}))}))}),dy=(0,d.memo)(cy);function py({response:t}){return d.createElement(d.Fragment,null,d.createElement(an.EE,null," Body: "),hy(t))}function hy(t){return t.body?d.createElement(oa.JsonViewer,{data:t.body,jsonSampleExpandLevel:1}):t.fileInfo?d.createElement(Wt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(oa.SourceCode,{lang:(0,Wt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data,withCopyButton:!0}):d.createElement(an.w3,null,d.createElement("i",null,"(no content)")):null}function vy({headers:t}){const r=d.useContext(Wt.OptionsContext),[i,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),y=!!s&&p.length>s,A=y&&i?[...p].splice(0,s):[...p],w=()=>{o(!i)};return d.createElement(d.Fragment,null,d.createElement(an.EE,null," Headers: "),d.createElement(an.w3,null,A.map(E=>d.createElement("div",{key:E},d.createElement(th,null,E,":"),d.createElement("code",null,t[E]))),y&&d.createElement(rh,{onClick:w},i?"Show more...":"Hide headers")))}const th=Tt.default.strong`
407
407
  text-transform: capitalize;
408
408
  display: inline-block;
409
409
  padding-right: 5px;
@@ -427,18 +427,17 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Og(t){return t.i
427
427
  `,my=Tt.default.code`
428
428
  border-left: 3px solid #ff4040;
429
429
  padding-left: 5px;
430
- `;class xy 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 y;return p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(nh,null," Could not get any response "),d.createElement(my,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(nh,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(gy,null,d.createElement(yy,{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: "),y)),d.createElement("div",null,d.createElement(vy,{headers:s.headers}),d.createElement(py,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var ih=a(46538);function by(t,r,i){const o=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,nr.v5)(t,o);const A=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const E=A(w);return E?(0,zt.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const wy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>d.createElement(vi.k1,null,d.createElement(ih.__,null,d.createElement(Qd.FH,{type:r.httpVerb},r.httpVerb),d.createElement(ih.y$,{wrap:"true"},by(r.path,s,r.parameters))),d.createElement(Sy,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),Sy=(0,Tt.default)(uf.Button)`
430
+ `;class xy 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 y;return p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(nh,null," Could not get any response "),d.createElement(my,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(nh,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - The server couldn't send 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(gy,null,d.createElement(yy,{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: "),y)),d.createElement("div",null,d.createElement(vy,{headers:s.headers}),d.createElement(py,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var ih=a(46538);function by(t,r,i){const o=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,tr.v5)(t,o);const A=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const E=A(w);return E?(0,Wt.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const wy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>d.createElement(vi.k1,null,d.createElement(ih.__,null,d.createElement(Qd.FH,{type:r.httpVerb},r.httpVerb),d.createElement(ih.y$,{wrap:"true"},by(r.path,s,r.parameters))),d.createElement(Sy,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),Sy=(0,Tt.default)(uf.Button)`
431
431
  width: var(--panel-try-it-action-button-width);
432
- `,Ay=d.memo(wy);function Ey(t){const{name:r,value:i,description:o,variableEnum:s,onChange:p,defaultValue:y}=t,A=F=>p(F.target.value),w=F=>p(F.value),E=s?s.map((F,G)=>({value:F,idx:G})):[];return d.createElement(it.NI,null,d.createElement(it.lX,null,r,":"),E&&E.length?d.createElement(an.VD,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement($n,{fullWidth:!0,value:i,onChange:A,placeholder:y,panel:"try-it"}),o&&d.createElement(Cy,null,o))}const Cy=Tt.default.small`
433
- display: inline-block;
432
+ `,Ay=d.memo(wy);function Ey({name:t,value:r,description:i,variableEnum:o,onChange:s,defaultValue:p}){const y=(0,d.useCallback)(E=>s(E.target.value),[s]),A=(0,d.useCallback)(E=>s(E.value),[s]),w=o?o.map((E,F)=>({value:E,idx:F})):[];return d.createElement(it.NI,null,d.createElement(it.lX,null,t,":"),w&&w.length?d.createElement(an.VD,{fullWidth:!0,variant:"dark",value:r,options:w,onChange:A}):d.createElement($n,{fullWidth:!0,value:r,onChange:y,placeholder:p,panel:"try-it"}),i&&d.createElement(Cy,{compact:!0,source:i}))}const Cy=(0,Tt.default)(Wt.Markdown)`
434
433
  margin-top: 5px;
435
434
  color: #d0d0d0;
436
- `;var Oy=Object.defineProperty,Ty=Object.defineProperties,Py=Object.getOwnPropertyDescriptors,ah=Object.getOwnPropertySymbols,Iy=Object.prototype.hasOwnProperty,Fy=Object.prototype.propertyIsEnumerable,oh=(t,r,i)=>r in t?Oy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,sh=(t,r)=>{for(var i in r||(r={}))Iy.call(r,i)&&oh(t,i,r[i]);if(ah)for(var i of ah(r))Fy.call(r,i)&&oh(t,i,r[i]);return t},lh=(t,r)=>Ty(t,Py(r));const ky=(0,Fa.Pi)(({operation:t,onChange:r})=>{const i=(0,Wt.YQ)("serverUrl"),o=t.servers.findIndex(te=>te.url===i),[s,p]=(0,d.useState)(o<0?0:o),[y,A]=(0,d.useState)({});(0,Sr.b6)(()=>{const te=(0,nr.fz)(t.servers,s);r(te),A(te.variables)});const w=te=>{const ne=t.servers.find(ge=>ge.url===te.serverUrl),oe=t.servers.findIndex(ge=>ge.url===te.serverUrl),ye=(0,nr.mj)(ne);r({url:te.serverUrl||"",variables:ye}),(0,Wt.WW)("serverUrl",te.serverUrl||""),p(oe),A(ye)},E=(te,ne)=>{const oe=t.servers[s],ye=ne||ne===""?ne:(0,nr.mj)(oe)[te],ge=lh(sh({},y),{[te]:ye});A(ge),(0,nr.UY)(te,ye),r(lh(sh({},oe),{variables:ge}))},F=t.servers.map((te,ne)=>({idx:ne,serverUrl:te.url,value:`
437
- ${(0,nr.nq)((0,nr.v5)(te.url,y),te.variables)}
435
+ `;var Oy=Object.defineProperty,Ty=Object.defineProperties,Py=Object.getOwnPropertyDescriptors,ah=Object.getOwnPropertySymbols,Iy=Object.prototype.hasOwnProperty,Fy=Object.prototype.propertyIsEnumerable,oh=(t,r,i)=>r in t?Oy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,sh=(t,r)=>{for(var i in r||(r={}))Iy.call(r,i)&&oh(t,i,r[i]);if(ah)for(var i of ah(r))Fy.call(r,i)&&oh(t,i,r[i]);return t},lh=(t,r)=>Ty(t,Py(r));const ky=(0,Fa.Pi)(({operation:t,onChange:r})=>{const i=(0,Gt.YQ)("serverUrl"),o=t.servers.findIndex(te=>te.url===i),[s,p]=(0,d.useState)(o<0?0:o),[y,A]=(0,d.useState)({});(0,Sr.b6)(()=>{const te=(0,tr.fz)(t.servers,s);r(te),A(te.variables)});const w=te=>{const ne=t.servers.find(ge=>ge.url===te.serverUrl),se=t.servers.findIndex(ge=>ge.url===te.serverUrl),ye=(0,tr.mj)(ne);r({url:te.serverUrl||"",variables:ye}),(0,Gt.WW)("serverUrl",te.serverUrl||""),p(se),A(ye)},E=(te,ne)=>{const se=t.servers[s],ye=ne||ne===""?ne:(0,tr.mj)(se)[te],ge=lh(sh({},y),{[te]:ye});A(ge),(0,tr.UY)(te,ye),r(lh(sh({},se),{variables:ge}))},F=t.servers.map((te,ne)=>({idx:ne,serverUrl:te.url,value:`
436
+ ${(0,tr.nq)((0,tr.v5)(te.url,y),te.variables)}
438
437
  - ${te.description||"Default"}
439
- `})),G=Object.keys(y);return d.createElement(My,{"data-cy":"console-target-server"},d.createElement(it.lX,{htmlFor:"server"},"Target server: "),d.createElement(it.NI,null,d.createElement(an.VD,{variant:"dark",value:F[s].value,options:F,fullWidth:!0,onChange:w})),G==null?void 0:G.map(te=>{var ne;const oe=(ne=t.servers[s].variables)==null?void 0:ne[te];if(oe)return d.createElement(Ey,{key:te,name:te,value:y[te],defaultValue:oe.default,onChange:ye=>E(te,ye),variableEnum:oe.enum,description:oe.description})}))}),My=Tt.default.div`
438
+ `})),G=Object.keys(y);return d.createElement(My,{"data-cy":"console-target-server"},d.createElement(it.lX,{htmlFor:"server"},"Target server: "),d.createElement(it.NI,null,d.createElement(an.VD,{variant:"dark",value:F[s].value,options:F,fullWidth:!0,onChange:w})),G==null?void 0:G.map(te=>{var ne;const se=(ne=t.servers[s].variables)==null?void 0:ne[te];if(se)return d.createElement(Ey,{key:te,name:te,value:y[te],defaultValue:se.default,onChange:ye=>E(te,ye),variableEnum:se.enum,description:se.description})}))}),My=Tt.default.div`
440
439
  margin-bottom: 20px;
441
- `;var Ry=Object.defineProperty,Ly=Object.defineProperties,Dy=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertySymbols,uh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,ch=(t,r,i)=>r in t?Ry(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ny=(t,r)=>{for(var i in r||(r={}))uh.call(r,i)&&ch(t,i,r[i]);if(Tf)for(var i of Tf(r))fh.call(r,i)&&ch(t,i,r[i]);return t},By=(t,r)=>Ly(t,Dy(r)),Uy=(t,r)=>{var i={};for(var o in t)uh.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&&fh.call(t,o)&&(i[o]=t[o]);return i};function sd(t){var r=t,{header:i,error:o,success:s}=r,p=Uy(r,["header","error","success"]);const y=({toggle:A,expanded:w=!1})=>d.createElement(oa.PanelHeader,{onClick:A,expanded:w,"data-cy":p["data-cy"]},d.createElement(vi.xz,null,d.createElement(oa.PanelHeaderTitle,null,i),d.createElement(oa.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(zt.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&d.createElement(zt.LockIcon,{size:"14px",color:"--color-success-500"})||null);return d.createElement(jy,By(Ny({className:"panel-try-it-nested"},p),{header:y}))}const jy=(0,Tt.default)(oa.Panel)`
440
+ `;var Ry=Object.defineProperty,Ly=Object.defineProperties,Dy=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertySymbols,uh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,ch=(t,r,i)=>r in t?Ry(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ny=(t,r)=>{for(var i in r||(r={}))uh.call(r,i)&&ch(t,i,r[i]);if(Tf)for(var i of Tf(r))fh.call(r,i)&&ch(t,i,r[i]);return t},By=(t,r)=>Ly(t,Dy(r)),Uy=(t,r)=>{var i={};for(var o in t)uh.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&&fh.call(t,o)&&(i[o]=t[o]);return i};function sd(t){var r=t,{header:i,error:o,success:s}=r,p=Uy(r,["header","error","success"]);const y=({toggle:A,expanded:w=!1})=>d.createElement(oa.PanelHeader,{onClick:A,expanded:w,"data-cy":p["data-cy"]},d.createElement(vi.xz,null,d.createElement(oa.PanelHeaderTitle,null,i),d.createElement(oa.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(Wt.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&d.createElement(Wt.LockIcon,{size:"14px",color:"--color-success-500"})||null);return d.createElement(jy,By(Ny({className:"panel-try-it-nested"},p),{header:y}))}const jy=(0,Tt.default)(oa.Panel)`
442
441
  ${oa.PanelHeader} {
443
442
  border: 1px solid
444
443
  ${({error:t})=>t?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
@@ -496,41 +495,41 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Og(t){return t.i
496
495
  background-color: var(--panel-try-it-tabs-disabled-background-color);
497
496
  color: var(--panel-try-it-tabs-disabled-text-color);
498
497
  `||""}
499
- `;function Wy({onChange:t,active:r,hasResponse:i}){return d.createElement(Vy,null,d.createElement(dh,{onClick:()=>t(0),active:r===0},i?"Edit Request":"Request"),d.createElement(dh,{onClick:()=>i&&t(1),active:r===1,disabled:!i}," ","Response"," "))}var ph=Object.defineProperty,Hy=Object.defineProperties,zy=Object.getOwnPropertyDescriptor,Gy=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,ld=(t,r,i)=>r in t?ph(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Xr=(t,r)=>{for(var i in r||(r={}))hh.call(r,i)&&ld(t,i,r[i]);if(Pf)for(var i of Pf(r))vh.call(r,i)&&ld(t,i,r[i]);return t},Rn=(t,r)=>Hy(t,Gy(r)),gh=(t,r)=>{var i={};for(var o in t)hh.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&&vh.call(t,o)&&(i[o]=t[o]);return i},$y=(t,r,i,o)=>{for(var s=o>1?void 0:o?zy(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,i,s):y(s))||s);return o&&s&&ph(r,i,s),s},vs=(t,r,i)=>(ld(t,typeof r!="symbol"?r+"":r,i),i),yh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function mh(t){return t.startsWith("//")?"https:"+t:t}const Ky={flex:1,display:"flex",flexDirection:"column"};let ud=class extends d.Component{constructor(t){super(t);vs(this,"formApi"),vs(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=gh(o,["values"]);this.formApi=r,setTimeout(()=>{const y=Rn(Xr({},p),{values:Rn(Xr({},s),{query:(0,nr.FU)(s.query||{})})});this.setState({form:y})},0)}),vs(this,"handleChange",r=>{var i=r,{values:o}=i,s=gh(i,["values"]);const p=Rn(Xr({},s),{values:Rn(Xr({},o),{query:(0,nr.FU)(o.query||{})})});this.setState({form:p}),(0,nr.Hc)(p),this.props.operation.setRequestValues(o)}),vs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),vs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),vs(this,"handleExecute",()=>yh(this,null,function*(){var r,i,o,s,p,y,A,w;const{store:E,operation:F,onResponse:G}=this.props,{values:te,invalid:ne}=this.state.form;if((r=this.formApi)==null||r.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(o=(i=E==null?void 0:E.options.events)==null?void 0:i.tryItSent)==null||o.call(i,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:F.operationId,operationPath:F.path,operationHttpVerb:F.httpVerb,operationSummary:F.description});return}const oe=this.props.operation.requestBody,ye=oe&&oe.content&&oe.content.active&&oe.content.active.name||"";let ge=te.body;if(/json/.test(ye))try{ge=JSON.parse(ge)}catch($e){console.error($e)}this.setState({loading:!0});const Ae=this.state.resolvedRawSpec,me=(F.httpVerb||"").toLowerCase(),Te=(0,Wt.U2)(Ae,["paths",F.path,me,"servers"])||(0,Wt.U2)(Ae,["paths",F.path,"servers"])||(0,Wt.U2)(Ae,["servers"]);if(!Te)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 He=Te.find($e=>this.state.server.url.endsWith($e.url.endsWith("/")?$e.url.substring(0,$e.url.length-1):$e.url)),Ve=Date.now(),ze=!!window.document.documentMode;let De,Be=te.auth;if(te.auth){const $e=Object.keys(te.auth)[0],gt=(0,Wt.dw)($e);De=Rn(Xr({},Ae),{components:Rn(Xr({},Ae==null?void 0:Ae.components),{securitySchemes:Rn(Xr({},Ae==null?void 0:Ae.components.securitySchemes),{[gt]:Rn(Xr({},Ae==null?void 0:Ae.components.securitySchemes[gt]),{type:(Ae==null?void 0:Ae.components.securitySchemes[gt].type)==="openIdConnect"?"oauth2":Ae==null?void 0:Ae.components.securitySchemes[gt].type})})})}),Be=Rn(Xr({},Be),{[gt]:Be[$e]})}else De=Xr({},Ae);const We=E.options.corsProxyUrl;We&&Te.length&&(De.servers=Te.map($e=>Rn(Xr({},$e),{url:We+mh($e.url)})),De.paths=Rn(Xr({},De.paths),{[F.path]:Rn(Xr({},De.paths[F.path]),{[me]:Rn(Xr({},De.paths[F.path][me]),{servers:void 0}),servers:void 0})}));const Je=((p=(s=oe==null?void 0:oe.content)==null?void 0:s.active)==null?void 0:p.name)||null;if(Je&&ge&&ct(Je)){const $e=Object.values(ge);ge=$e.length>1?$e:$e[0]}const et={userFetch:ze&&a(54098).fetch,server:We?We+mh(He.url):He.url,serverVariables:this.state.server.variables,spec:De,pathName:F.path,method:F.httpVerb,parameters:Xr(Xr(Xr(Xr({},te.path),te.query),te.header),te.cookie),securities:{authorized:Be},requestBody:ge,requestContentType:Je,responseContentType:((y=te.header)==null?void 0:y.Accept)||null,requestInterceptor:(0,nr.Tz)(E.options,F,Be==null?void 0:Be.Authorization)};try{const $e=yield Dc.execute(et),gt=$e==null?void 0:$e.data;gt instanceof Blob&&(ct(gt.type)&&($e.fileInfo={rawData:gt,fileName:(0,nr.AM)($e.headers)}),$e.data=yield gt.text()),G==null||G({request:et,response:$e}),this.setState({response:$e,error:void 0})}catch($e){$e&&$e.response&&$e.response.data instanceof Blob&&($e.response.data=yield $e.response.data.text(),G==null||G({request:et,response:$e.response})),this.setState({response:void 0,error:$e})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Ve}),(w=(A=E==null?void 0:E.options.events)==null?void 0:A.tryItSent)==null||w.call(A,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:F.operationId,operationPath:F.path,operationHttpVerb:F.httpVerb,operationSummary:F.description})}})),this.state={form:{values:{path:(0,nr.ZS)(t.operation.parameters,"path"),cookie:(0,nr.ZS)(t.operation.parameters,"cookie"),header:(0,nr.ZS)(t.operation.parameters,"header"),query:(0,nr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return yh(this,null,function*(){var t;const{store:r,operation:i}=this.props,o=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:o}),(t=this.formApi)==null||t.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:y,loading:A,error:w}=this.state,E=!!(y||w);return d.createElement(Jy,{shaking:o,className:r,rootElement:i},d.createElement(vi.Hc,null,d.createElement(Wy,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(an.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(an.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),d.createElement(an.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),d.createElement(Ay,{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:y,server:A}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,F=y&&zt.JsonPointer.get(y,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const te=r.parameters||[],ne=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Rn(Xr({},Ky),{margin:0})},d.createElement(ky,{operation:r,onChange:this.handleServerChange}),d.createElement(vi.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&this.formApi&&d.createElement(sd,{header:(0,uo.l)("tryItAuth"),"data-cy":"security-trigger",error:!G&&!!w.auth,success:!!G},ne?d.createElement(Xy,{field:"auth",validate:nr.np},oe=>d.createElement(of.Q,{Hook:ne,props:{server:A,operation:r,onChange:oe,OAuth2:m}})):d.createElement(Bv,{formApi:this.formApi,form:p,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&d.createElement(sd,{header:(0,uo.l)("tryItBody"),"data-cy":"body-trigger",error:!!w.body},d.createElement(dy,{validate:Yy,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:F==null?void 0:F.requestBody,properties:o}))||null,te.length&&d.createElement(sd,{header:(0,uo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E},d.createElement(Vh,{operation:r,values:p.values,errors:p.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(xy,{response:t,error:r,time:i})}};ud=$y([Fa.Pi],ud);function Yy(){}function Jy(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,Sr.Bs)(s),y=d.useContext(zt.StoreContext);return d.createElement(an.q2,{scrollYOffset:y==null?void 0:y.options.scrollYOffset,shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function Xy(t){const{fieldApi:r,render:i,userProps:o}=Tn(Xr({},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 q=function(){};q.prototype=b.prototype,g.prototype=new q,q.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(xe){try{return x('"use strict"; return ('+xe+").constructor;")()}catch(we){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(xe){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(xe){try{return S(arguments,"callee").get}catch(we){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(xe){return xe.__proto__},j={},q=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%":q,"%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},M=function xe(we){var he;if(we==="%AsyncFunction%")he=b("async function () {}");else if(we==="%GeneratorFunction%")he=b("function* () {}");else if(we==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(we==="%AsyncGenerator%"){var fe=xe("%AsyncGeneratorFunction%");fe&&(he=fe.prototype)}else if(we==="%AsyncIteratorPrototype%"){var se=xe("%AsyncGenerator%");se&&(he=B(se.prototype))}return W[we]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=a(58612),C=a(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(we){var he=Q(we,0,1),fe=Q(we,-1);if(he==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var se=[];return _(we,Y,function(Fe,Le,Me,Pe){se[se.length]=Me?_(Pe,ce,"$1"):Le||Fe}),se},ie=function(we,he){var fe=we,se;if(C(X,fe)&&(se=X[fe],fe="%"+se[0]+"%"),C(W,fe)){var Fe=W[fe];if(Fe===j&&(Fe=M(fe)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:se,name:fe,value:Fe}}throw new v("intrinsic "+we+" does not exist!")};h.exports=function(we,he){if(typeof we!="string"||we.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var fe=ee(we),se=fe.length>0?fe[0]:"",Fe=ie("%"+se+"%",he),Le=Fe.name,Me=Fe.value,Pe=!1,rt=Fe.alias;rt&&(se=rt[0],J(fe,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<fe.length;Ze+=1){var ft=fe[Ze],ht=Q(ft,0,1),wt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||wt==='"'||wt==="'"||wt==="`")&&ht!==wt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Pe=!0),se+="."+ft,Le="%"+se+"%",C(W,Le))Me=W[Le];else if(Me!=null){if(!(ft in Me)){if(!he)throw new d("base intrinsic for "+we+" exists, but the property is not available.");return}if(S&&Ze+1>=fe.length){var nt=S(Me,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Me=nt.get:Me=Me[ft]}else Xe=C(Me,ft),Me=Me[ft];Xe&&!Pe&&(W[Le]=Me)}}return Me}},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,q=v?-1:1,W=a[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=q,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,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,M=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*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+=M,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=M,S/=256,D-=8);a[v+W-M]|=X*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,q=34,W=35,M=37,X=38,R=39,C=42,V=44,J=45,_=58,Q=61,Y=62,ce=63,ee=64,ie=91,xe=93,we=96,he=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 Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Me(N,re){var de,ae,pe,Ee,Ue,je,Qe;if(re===null)return{};for(de={},ae=Object.keys(re),pe=0,Ee=ae.length;pe<Ee;pe+=1)Ue=ae[pe],je=String(re[Ue]),Ue.slice(0,2)==="!!"&&(Ue="tag:yaml.org,2002:"+Ue.slice(2)),Qe=N.compiledTypeMap.fallback[Ue],Qe&&S.call(Qe.styleAliases,je)&&(je=Qe.styleAliases[je]),de[Ue]=je;return de}function Pe(N){var re,de,ae;if(re=N.toString(16).toUpperCase(),N<=255)de="x",ae=2;else if(N<=65535)de="u",ae=4;else if(N<=4294967295)de="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ae-re.length)+re}function rt(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=Me(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 Ze(N,re){for(var de=c.repeat(" ",re),ae=0,pe=-1,Ee="",Ue,je=N.length;ae<je;)pe=N.indexOf(`
500
- `,ae),pe===-1?(Ue=N.slice(ae),ae=je):(Ue=N.slice(ae,pe+1),ae=pe+1),Ue.length&&Ue!==`
501
- `&&(Ee+=de),Ee+=Ue;return Ee}function Xe(N,re){return`
502
- `+c.repeat(" ",N.indent*re)}function ft(N,re){var de,ae,pe;for(de=0,ae=N.implicitTypes.length;de<ae;de+=1)if(pe=N.implicitTypes[de],pe.resolve(re))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 nt(N){return wt(N)&&!ht(N)&&N!==65279&&N!==D&&N!==L}function ut(N,re){return wt(N)&&N!==65279&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==se&&N!==_&&(N!==W||re&&nt(re))}function mt(N){return wt(N)&&N!==65279&&!ht(N)&&N!==J&&N!==ce&&N!==_&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==se&&N!==W&&N!==X&&N!==C&&N!==j&&N!==fe&&N!==Q&&N!==Y&&N!==R&&N!==q&&N!==M&&N!==ee&&N!==we}function xt(N){var re=/^\n* /;return re.test(N)}var pt=1,Mt=2,kt=3,Et=4,Ht=5;function jt(N,re,de,ae,pe){var Ee,Ue,je,Qe=!1,vt=!1,At=ae!==-1,Bt=-1,Pt=mt(N.charCodeAt(0))&&!ht(N.charCodeAt(N.length-1));if(re)for(Ee=0;Ee<N.length;Ee++){if(Ue=N.charCodeAt(Ee),!wt(Ue))return Ht;je=Ee>0?N.charCodeAt(Ee-1):null,Pt=Pt&&ut(Ue,je)}else{for(Ee=0;Ee<N.length;Ee++){if(Ue=N.charCodeAt(Ee),Ue===L)Qe=!0,At&&(vt=vt||Ee-Bt-1>ae&&N[Bt+1]!==" ",Bt=Ee);else if(!wt(Ue))return Ht;je=Ee>0?N.charCodeAt(Ee-1):null,Pt=Pt&&ut(Ue,je)}vt=vt||At&&Ee-Bt-1>ae&&N[Bt+1]!==" "}return!Qe&&!vt?Pt&&!pe(N)?pt:Mt:de>9&&xt(N)?Ht:vt?Et:kt}function Vt(N,re,de,ae){N.dump=function(){if(re.length===0)return"''";if(!N.noCompatMode&&Le.indexOf(re)!==-1)return"'"+re+"'";var pe=N.indent*Math.max(1,de),Ee=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-pe),Ue=ae||N.flowLevel>-1&&de>=N.flowLevel;function je(Qe){return ft(N,Qe)}switch(jt(re,Ue,N.indent,Ee,je)){case pt:return re;case Mt:return"'"+re.replace(/'/g,"''")+"'";case kt:return"|"+St(re,N.indent)+Dt(Ze(re,pe));case Et:return">"+St(re,N.indent)+Dt(Ze(ve(re,Ee),pe));case Ht:return'"'+$(re,Ee)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(N,re){var de=xt(N)?String(re):"",ae=N[N.length-1]===`
498
+ `;function Wy({onChange:t,active:r,hasResponse:i}){return d.createElement(Vy,null,d.createElement(dh,{onClick:()=>t(0),active:r===0},i?"Edit Request":"Request"),d.createElement(dh,{onClick:()=>i&&t(1),active:r===1,disabled:!i}," ","Response"," "))}var ph=Object.defineProperty,Hy=Object.defineProperties,zy=Object.getOwnPropertyDescriptor,Gy=Object.getOwnPropertyDescriptors,Pf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,ld=(t,r,i)=>r in t?ph(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Xr=(t,r)=>{for(var i in r||(r={}))hh.call(r,i)&&ld(t,i,r[i]);if(Pf)for(var i of Pf(r))vh.call(r,i)&&ld(t,i,r[i]);return t},Rn=(t,r)=>Hy(t,Gy(r)),gh=(t,r)=>{var i={};for(var o in t)hh.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&&vh.call(t,o)&&(i[o]=t[o]);return i},$y=(t,r,i,o)=>{for(var s=o>1?void 0:o?zy(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,i,s):y(s))||s);return o&&s&&ph(r,i,s),s},vs=(t,r,i)=>(ld(t,typeof r!="symbol"?r+"":r,i),i),yh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function mh(t){return t.startsWith("//")?"https:"+t:t}const Ky={flex:1,display:"flex",flexDirection:"column"};let ud=class extends d.Component{constructor(t){super(t);vs(this,"formApi"),vs(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=gh(o,["values"]);this.formApi=r,setTimeout(()=>{const y=Rn(Xr({},p),{values:Rn(Xr({},s),{query:(0,tr.FU)(s.query||{})})});this.setState({form:y})},0)}),vs(this,"handleChange",r=>{var i=r,{values:o}=i,s=gh(i,["values"]);const p=Rn(Xr({},s),{values:Rn(Xr({},o),{query:(0,tr.FU)(o.query||{})})});this.setState({form:p}),(0,tr.Hc)(p),this.props.operation.setRequestValues(o)}),vs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),vs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),vs(this,"handleExecute",()=>yh(this,null,function*(){var r,i,o,s,p,y,A,w;const{store:E,operation:F,onResponse:G}=this.props,{values:te,invalid:ne}=this.state.form;if((r=this.formApi)==null||r.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(o=(i=E==null?void 0:E.options.events)==null?void 0:i.tryItSent)==null||o.call(i,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:F.operationId,operationPath:F.path,operationHttpVerb:F.httpVerb,operationSummary:F.description});return}const{servers:se,requestBody:ye}=this.props.operation,ge=ye&&ye.content&&ye.content.active&&ye.content.active.name||"";let Ae=te.body;if(/json/.test(ge))try{Ae=JSON.parse(Ae)}catch($e){console.error($e)}this.setState({loading:!0});const me=this.state.resolvedRawSpec,Te=(F.httpVerb||"").toLowerCase();if(!se)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const He=se.find($e=>this.state.server.url.endsWith($e.url.endsWith("/")?$e.url.substring(0,$e.url.length-1):$e.url)),Be=Date.now(),ze=!!window.document.documentMode;let De,Ue=te.auth;if(te.auth){const $e=Object.keys(te.auth)[0],gt=(0,Gt.dw)($e);De=Rn(Xr({},me),{components:Rn(Xr({},me==null?void 0:me.components),{securitySchemes:Rn(Xr({},me==null?void 0:me.components.securitySchemes),{[gt]:Rn(Xr({},me==null?void 0:me.components.securitySchemes[gt]),{type:(me==null?void 0:me.components.securitySchemes[gt].type)==="openIdConnect"?"oauth2":me==null?void 0:me.components.securitySchemes[gt].type})})})}),Ue=Rn(Xr({},Ue),{[gt]:Ue[$e]})}else De=Xr({},me);De.servers=se;const We=E.options.corsProxyUrl;We&&se.length&&(De.servers=se.map($e=>Rn(Xr({},$e),{url:We+mh($e.url)})),De.paths=Rn(Xr({},De.paths),{[F.path]:Rn(Xr({},De.paths[F.path]),{[Te]:Rn(Xr({},De.paths[F.path][Te]),{servers:void 0}),servers:void 0})}));const Je=((p=(s=ye==null?void 0:ye.content)==null?void 0:s.active)==null?void 0:p.name)||null;if(Je&&Ae&&ct(Je)){const $e=Object.values(Ae);Ae=$e.length>1?$e:$e[0]}const et={userFetch:ze&&a(54098).fetch,server:We?We+mh(He.url):He.url,serverVariables:this.state.server.variables,spec:De,pathName:F.path,method:F.httpVerb,parameters:Xr(Xr(Xr(Xr({},te.path),te.query),te.header),te.cookie),securities:{authorized:Ue},requestBody:Ae,requestContentType:Je,responseContentType:((y=te.header)==null?void 0:y.Accept)||null,requestInterceptor:(0,tr.Tz)(E.options,F,Ue==null?void 0:Ue.Authorization)};try{const $e=yield Dc.execute(et),gt=$e==null?void 0:$e.data;gt instanceof Blob&&(ct(gt.type)&&($e.fileInfo={rawData:gt,fileName:(0,tr.AM)($e.headers)}),$e.data=yield gt.text()),G==null||G({request:et,response:$e}),this.setState({response:$e,error:void 0})}catch($e){$e&&$e.response&&$e.response.data instanceof Blob&&($e.response.data=yield $e.response.data.text(),G==null||G({request:et,response:$e.response})),this.setState({response:void 0,error:$e})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Be}),(w=(A=E==null?void 0:E.options.events)==null?void 0:A.tryItSent)==null||w.call(A,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:F.operationId,operationPath:F.path,operationHttpVerb:F.httpVerb,operationSummary:F.description})}})),this.state={form:{values:{path:(0,tr.ZS)(t.operation.parameters,"path"),cookie:(0,tr.ZS)(t.operation.parameters,"cookie"),header:(0,tr.ZS)(t.operation.parameters,"header"),query:(0,tr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return yh(this,null,function*(){var t;const{store:r,operation:i}=this.props,o=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:o}),(t=this.formApi)==null||t.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:y,loading:A,error:w}=this.state,E=!!(y||w);return d.createElement(Jy,{shaking:o,className:r,rootElement:i},d.createElement(vi.Hc,null,d.createElement(Wy,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(an.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(an.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),d.createElement(an.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),d.createElement(Ay,{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:y,server:A}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,F=y&&Wt.JsonPointer.get(y,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const te=r.parameters||[],ne=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Rn(Xr({},Ky),{margin:0})},d.createElement(ky,{operation:r,onChange:this.handleServerChange}),d.createElement(vi.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&this.formApi&&d.createElement(sd,{header:(0,uo.l)("tryItAuth"),"data-cy":"security-trigger",error:!G&&!!w.auth,success:!!G,renderChildrenHidden:!0},ne?d.createElement(Xy,{field:"auth",validate:tr.np},se=>d.createElement(of.Q,{Hook:ne,props:{server:A,operation:r,onChange:se,OAuth2:m}})):d.createElement(Bv,{formApi:this.formApi,form:p,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&d.createElement(sd,{header:(0,uo.l)("tryItBody"),"data-cy":"body-trigger",error:!!w.body,renderChildrenHidden:!0},d.createElement(dy,{validate:Yy,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:F==null?void 0:F.requestBody,properties:o}))||null,te.length&&d.createElement(sd,{header:(0,uo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Vh,{operation:r,values:p.values,errors:p.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(xy,{response:t,error:r,time:i})}};ud=$y([Fa.Pi],ud);function Yy(){}function Jy(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,Sr.Bs)(s),y=d.useContext(Wt.StoreContext);return d.createElement(an.q2,{scrollYOffset:y==null?void 0:y.options.scrollYOffset,shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function Xy(t){const{fieldApi:r,render:i,userProps:o}=Tn(Xr({},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 q=function(){};q.prototype=b.prototype,g.prototype=new q,q.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(xe){try{return x('"use strict"; return ('+xe+").constructor;")()}catch(we){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(xe){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(xe){try{return S(arguments,"callee").get}catch(we){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(xe){return xe.__proto__},j={},q=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%":q,"%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},M=function xe(we){var he;if(we==="%AsyncFunction%")he=b("async function () {}");else if(we==="%GeneratorFunction%")he=b("function* () {}");else if(we==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(we==="%AsyncGenerator%"){var fe=xe("%AsyncGeneratorFunction%");fe&&(he=fe.prototype)}else if(we==="%AsyncIteratorPrototype%"){var oe=xe("%AsyncGenerator%");oe&&(he=B(oe.prototype))}return W[we]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=a(58612),C=a(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(we){var he=Q(we,0,1),fe=Q(we,-1);if(he==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return _(we,Y,function(Fe,Le,Me,Pe){oe[oe.length]=Me?_(Pe,ce,"$1"):Le||Fe}),oe},ie=function(we,he){var fe=we,oe;if(C(X,fe)&&(oe=X[fe],fe="%"+oe[0]+"%"),C(W,fe)){var Fe=W[fe];if(Fe===j&&(Fe=M(fe)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:oe,name:fe,value:Fe}}throw new v("intrinsic "+we+" does not exist!")};h.exports=function(we,he){if(typeof we!="string"||we.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var fe=ee(we),oe=fe.length>0?fe[0]:"",Fe=ie("%"+oe+"%",he),Le=Fe.name,Me=Fe.value,Pe=!1,rt=Fe.alias;rt&&(oe=rt[0],J(fe,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<fe.length;Ze+=1){var ft=fe[Ze],ht=Q(ft,0,1),wt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||wt==='"'||wt==="'"||wt==="`")&&ht!==wt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Pe=!0),oe+="."+ft,Le="%"+oe+"%",C(W,Le))Me=W[Le];else if(Me!=null){if(!(ft in Me)){if(!he)throw new d("base intrinsic for "+we+" exists, but the property is not available.");return}if(S&&Ze+1>=fe.length){var nt=S(Me,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Me=nt.get:Me=Me[ft]}else Xe=C(Me,ft),Me=Me[ft];Xe&&!Pe&&(W[Le]=Me)}}return Me}},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,q=v?-1:1,W=a[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=q,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,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,M=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*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+=M,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=M,S/=256,D-=8);a[v+W-M]|=X*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,q=34,W=35,M=37,X=38,R=39,C=42,V=44,J=45,_=58,Q=61,Y=62,ce=63,ee=64,ie=91,xe=93,we=96,he=123,fe=124,oe=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 Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Me(N,re){var de,ae,pe,Ee,je,Ve,Qe;if(re===null)return{};for(de={},ae=Object.keys(re),pe=0,Ee=ae.length;pe<Ee;pe+=1)je=ae[pe],Ve=String(re[je]),je.slice(0,2)==="!!"&&(je="tag:yaml.org,2002:"+je.slice(2)),Qe=N.compiledTypeMap.fallback[je],Qe&&S.call(Qe.styleAliases,Ve)&&(Ve=Qe.styleAliases[Ve]),de[je]=Ve;return de}function Pe(N){var re,de,ae;if(re=N.toString(16).toUpperCase(),N<=255)de="x",ae=2;else if(N<=65535)de="u",ae=4;else if(N<=4294967295)de="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ae-re.length)+re}function rt(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=Me(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 Ze(N,re){for(var de=c.repeat(" ",re),ae=0,pe=-1,Ee="",je,Ve=N.length;ae<Ve;)pe=N.indexOf(`
499
+ `,ae),pe===-1?(je=N.slice(ae),ae=Ve):(je=N.slice(ae,pe+1),ae=pe+1),je.length&&je!==`
500
+ `&&(Ee+=de),Ee+=je;return Ee}function Xe(N,re){return`
501
+ `+c.repeat(" ",N.indent*re)}function ft(N,re){var de,ae,pe;for(de=0,ae=N.implicitTypes.length;de<ae;de+=1)if(pe=N.implicitTypes[de],pe.resolve(re))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 nt(N){return wt(N)&&!ht(N)&&N!==65279&&N!==D&&N!==L}function ut(N,re){return wt(N)&&N!==65279&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==oe&&N!==_&&(N!==W||re&&nt(re))}function mt(N){return wt(N)&&N!==65279&&!ht(N)&&N!==J&&N!==ce&&N!==_&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==oe&&N!==W&&N!==X&&N!==C&&N!==j&&N!==fe&&N!==Q&&N!==Y&&N!==R&&N!==q&&N!==M&&N!==ee&&N!==we}function xt(N){var re=/^\n* /;return re.test(N)}var pt=1,Mt=2,kt=3,Et=4,Ht=5;function jt(N,re,de,ae,pe){var Ee,je,Ve,Qe=!1,vt=!1,At=ae!==-1,Bt=-1,Pt=mt(N.charCodeAt(0))&&!ht(N.charCodeAt(N.length-1));if(re)for(Ee=0;Ee<N.length;Ee++){if(je=N.charCodeAt(Ee),!wt(je))return Ht;Ve=Ee>0?N.charCodeAt(Ee-1):null,Pt=Pt&&ut(je,Ve)}else{for(Ee=0;Ee<N.length;Ee++){if(je=N.charCodeAt(Ee),je===L)Qe=!0,At&&(vt=vt||Ee-Bt-1>ae&&N[Bt+1]!==" ",Bt=Ee);else if(!wt(je))return Ht;Ve=Ee>0?N.charCodeAt(Ee-1):null,Pt=Pt&&ut(je,Ve)}vt=vt||At&&Ee-Bt-1>ae&&N[Bt+1]!==" "}return!Qe&&!vt?Pt&&!pe(N)?pt:Mt:de>9&&xt(N)?Ht:vt?Et:kt}function Vt(N,re,de,ae){N.dump=function(){if(re.length===0)return"''";if(!N.noCompatMode&&Le.indexOf(re)!==-1)return"'"+re+"'";var pe=N.indent*Math.max(1,de),Ee=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-pe),je=ae||N.flowLevel>-1&&de>=N.flowLevel;function Ve(Qe){return ft(N,Qe)}switch(jt(re,je,N.indent,Ee,Ve)){case pt:return re;case Mt:return"'"+re.replace(/'/g,"''")+"'";case kt:return"|"+St(re,N.indent)+Dt(Ze(re,pe));case Et:return">"+St(re,N.indent)+Dt(Ze(ve(re,Ee),pe));case Ht:return'"'+$(re,Ee)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(N,re){var de=xt(N)?String(re):"",ae=N[N.length-1]===`
503
502
  `,pe=ae&&(N[N.length-2]===`
504
503
  `||N===`
505
504
  `),Ee=pe?"+":ae?"":"-";return de+Ee+`
506
505
  `}function Dt(N){return N[N.length-1]===`
507
506
  `?N.slice(0,-1):N}function ve(N,re){for(var de=/(\n+)([^\n]*)/g,ae=function(){var vt=N.indexOf(`
508
507
  `);return vt=vt!==-1?vt:N.length,de.lastIndex=vt,z(N.slice(0,vt),re)}(),pe=N[0]===`
509
- `||N[0]===" ",Ee,Ue;Ue=de.exec(N);){var je=Ue[1],Qe=Ue[2];Ee=Qe[0]===" ",ae+=je+(!pe&&!Ee&&Qe!==""?`
510
- `:"")+z(Qe,re),pe=Ee}return ae}function z(N,re){if(N===""||N[0]===" ")return N;for(var de=/ [^ ]/g,ae,pe=0,Ee,Ue=0,je=0,Qe="";ae=de.exec(N);)je=ae.index,je-pe>re&&(Ee=Ue>pe?Ue:je,Qe+=`
511
- `+N.slice(pe,Ee),pe=Ee+1),Ue=je;return Qe+=`
512
- `,N.length-pe>re&&Ue>pe?Qe+=N.slice(pe,Ue)+`
513
- `+N.slice(Ue+1):Qe+=N.slice(pe),Qe.slice(1)}function $(N){for(var re="",de,ae,pe,Ee=0;Ee<N.length;Ee++){if(de=N.charCodeAt(Ee),de>=55296&&de<=56319&&(ae=N.charCodeAt(Ee+1),ae>=56320&&ae<=57343)){re+=Pe((de-55296)*1024+ae-56320+65536),Ee++;continue}pe=Fe[de],re+=!pe&&wt(de)?N[Ee]:pe||Pe(de)}return re}function Se(N,re,de){var ae="",pe=N.tag,Ee,Ue;for(Ee=0,Ue=de.length;Ee<Ue;Ee+=1)Re(N,re,de[Ee],!1,!1)&&(Ee!==0&&(ae+=","+(N.condenseFlow?"":" ")),ae+=N.dump);N.tag=pe,N.dump="["+ae+"]"}function Ie(N,re,de,ae){var pe="",Ee=N.tag,Ue,je;for(Ue=0,je=de.length;Ue<je;Ue+=1)Re(N,re+1,de[Ue],!0,!0)&&((!ae||Ue!==0)&&(pe+=Xe(N,re)),N.dump&&L===N.dump.charCodeAt(0)?pe+="-":pe+="- ",pe+=N.dump);N.tag=Ee,N.dump=pe||"[]"}function Ge(N,re,de){var ae="",pe=N.tag,Ee=Object.keys(de),Ue,je,Qe,vt,At;for(Ue=0,je=Ee.length;Ue<je;Ue+=1)At="",Ue!==0&&(At+=", "),N.condenseFlow&&(At+='"'),Qe=Ee[Ue],vt=de[Qe],!!Re(N,re,Qe,!1,!1)&&(N.dump.length>1024&&(At+="? "),At+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Re(N,re,vt,!1,!1)&&(At+=N.dump,ae+=At));N.tag=pe,N.dump="{"+ae+"}"}function Ke(N,re,de,ae){var pe="",Ee=N.tag,Ue=Object.keys(de),je,Qe,vt,At,Bt,Pt;if(N.sortKeys===!0)Ue.sort();else if(typeof N.sortKeys=="function")Ue.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(je=0,Qe=Ue.length;je<Qe;je+=1)Pt="",(!ae||je!==0)&&(Pt+=Xe(N,re)),vt=Ue[je],At=de[vt],!!Re(N,re+1,vt,!0,!0,!0)&&(Bt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Bt&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+="?":Pt+="? "),Pt+=N.dump,Bt&&(Pt+=Xe(N,re)),!!Re(N,re+1,At,!0,Bt)&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+=":":Pt+=": ",Pt+=N.dump,pe+=Pt));N.tag=Ee,N.dump=pe||"{}"}function P(N,re,de){var ae,pe,Ee,Ue,je,Qe;for(pe=de?N.explicitTypes:N.implicitTypes,Ee=0,Ue=pe.length;Ee<Ue;Ee+=1)if(je=pe[Ee],(je.instanceOf||je.predicate)&&(!je.instanceOf||typeof re=="object"&&re instanceof je.instanceOf)&&(!je.predicate||je.predicate(re))){if(N.tag=de?je.tag:"?",je.represent){if(Qe=N.styleMap[je.tag]||je.defaultStyle,b.call(je.represent)==="[object Function]")ae=je.represent(re,Qe);else if(S.call(je.represent,Qe))ae=je.represent[Qe](re,Qe);else throw new v("!<"+je.tag+'> tag resolver accepts not "'+Qe+'" style');N.dump=ae}return!0}return!1}function Re(N,re,de,ae,pe,Ee){N.tag=null,N.dump=de,P(N,de,!1)||P(N,de,!0);var Ue=b.call(N.dump);ae&&(ae=N.flowLevel<0||N.flowLevel>re);var je=Ue==="[object Object]"||Ue==="[object Array]",Qe,vt;if(je&&(Qe=N.duplicates.indexOf(de),vt=Qe!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&re>0)&&(pe=!1),vt&&N.usedDuplicates[Qe])N.dump="*ref_"+Qe;else{if(je&&vt&&!N.usedDuplicates[Qe]&&(N.usedDuplicates[Qe]=!0),Ue==="[object Object]")ae&&Object.keys(N.dump).length!==0?(Ke(N,re,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Ge(N,re,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump));else if(Ue==="[object Array]"){var At=N.noArrayIndent&&re>0?re-1:re;ae&&N.dump.length!==0?(Ie(N,At,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Se(N,At,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump))}else if(Ue==="[object String]")N.tag!=="?"&&Vt(N,N.dump,re,Ee);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ue)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function K(N,re){var de=[],ae=[],pe,Ee;for(T(N,de,ae),pe=0,Ee=ae.length;pe<Ee;pe+=1)re.duplicates.push(de[ae[pe]]);re.usedDuplicates=new Array(Ee)}function T(N,re,de){var ae,pe,Ee;if(N!==null&&typeof N=="object")if(pe=re.indexOf(N),pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(re.push(N),Array.isArray(N))for(pe=0,Ee=N.length;pe<Ee;pe+=1)T(N[pe],re,de);else for(ae=Object.keys(N),pe=0,Ee=ae.length;pe<Ee;pe+=1)T(N[ae[pe]],re,de)}function O(N,re){re=re||{};var de=new rt(re);return de.noRefs||K(N,de),Re(de,0,N,!0,!0)?de.dump+`
508
+ `||N[0]===" ",Ee,je;je=de.exec(N);){var Ve=je[1],Qe=je[2];Ee=Qe[0]===" ",ae+=Ve+(!pe&&!Ee&&Qe!==""?`
509
+ `:"")+z(Qe,re),pe=Ee}return ae}function z(N,re){if(N===""||N[0]===" ")return N;for(var de=/ [^ ]/g,ae,pe=0,Ee,je=0,Ve=0,Qe="";ae=de.exec(N);)Ve=ae.index,Ve-pe>re&&(Ee=je>pe?je:Ve,Qe+=`
510
+ `+N.slice(pe,Ee),pe=Ee+1),je=Ve;return Qe+=`
511
+ `,N.length-pe>re&&je>pe?Qe+=N.slice(pe,je)+`
512
+ `+N.slice(je+1):Qe+=N.slice(pe),Qe.slice(1)}function $(N){for(var re="",de,ae,pe,Ee=0;Ee<N.length;Ee++){if(de=N.charCodeAt(Ee),de>=55296&&de<=56319&&(ae=N.charCodeAt(Ee+1),ae>=56320&&ae<=57343)){re+=Pe((de-55296)*1024+ae-56320+65536),Ee++;continue}pe=Fe[de],re+=!pe&&wt(de)?N[Ee]:pe||Pe(de)}return re}function Se(N,re,de){var ae="",pe=N.tag,Ee,je;for(Ee=0,je=de.length;Ee<je;Ee+=1)Re(N,re,de[Ee],!1,!1)&&(Ee!==0&&(ae+=","+(N.condenseFlow?"":" ")),ae+=N.dump);N.tag=pe,N.dump="["+ae+"]"}function Ie(N,re,de,ae){var pe="",Ee=N.tag,je,Ve;for(je=0,Ve=de.length;je<Ve;je+=1)Re(N,re+1,de[je],!0,!0)&&((!ae||je!==0)&&(pe+=Xe(N,re)),N.dump&&L===N.dump.charCodeAt(0)?pe+="-":pe+="- ",pe+=N.dump);N.tag=Ee,N.dump=pe||"[]"}function Ge(N,re,de){var ae="",pe=N.tag,Ee=Object.keys(de),je,Ve,Qe,vt,At;for(je=0,Ve=Ee.length;je<Ve;je+=1)At="",je!==0&&(At+=", "),N.condenseFlow&&(At+='"'),Qe=Ee[je],vt=de[Qe],!!Re(N,re,Qe,!1,!1)&&(N.dump.length>1024&&(At+="? "),At+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Re(N,re,vt,!1,!1)&&(At+=N.dump,ae+=At));N.tag=pe,N.dump="{"+ae+"}"}function Ke(N,re,de,ae){var pe="",Ee=N.tag,je=Object.keys(de),Ve,Qe,vt,At,Bt,Pt;if(N.sortKeys===!0)je.sort();else if(typeof N.sortKeys=="function")je.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Ve=0,Qe=je.length;Ve<Qe;Ve+=1)Pt="",(!ae||Ve!==0)&&(Pt+=Xe(N,re)),vt=je[Ve],At=de[vt],!!Re(N,re+1,vt,!0,!0,!0)&&(Bt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Bt&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+="?":Pt+="? "),Pt+=N.dump,Bt&&(Pt+=Xe(N,re)),!!Re(N,re+1,At,!0,Bt)&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+=":":Pt+=": ",Pt+=N.dump,pe+=Pt));N.tag=Ee,N.dump=pe||"{}"}function P(N,re,de){var ae,pe,Ee,je,Ve,Qe;for(pe=de?N.explicitTypes:N.implicitTypes,Ee=0,je=pe.length;Ee<je;Ee+=1)if(Ve=pe[Ee],(Ve.instanceOf||Ve.predicate)&&(!Ve.instanceOf||typeof re=="object"&&re instanceof Ve.instanceOf)&&(!Ve.predicate||Ve.predicate(re))){if(N.tag=de?Ve.tag:"?",Ve.represent){if(Qe=N.styleMap[Ve.tag]||Ve.defaultStyle,b.call(Ve.represent)==="[object Function]")ae=Ve.represent(re,Qe);else if(S.call(Ve.represent,Qe))ae=Ve.represent[Qe](re,Qe);else throw new v("!<"+Ve.tag+'> tag resolver accepts not "'+Qe+'" style');N.dump=ae}return!0}return!1}function Re(N,re,de,ae,pe,Ee){N.tag=null,N.dump=de,P(N,de,!1)||P(N,de,!0);var je=b.call(N.dump);ae&&(ae=N.flowLevel<0||N.flowLevel>re);var Ve=je==="[object Object]"||je==="[object Array]",Qe,vt;if(Ve&&(Qe=N.duplicates.indexOf(de),vt=Qe!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&re>0)&&(pe=!1),vt&&N.usedDuplicates[Qe])N.dump="*ref_"+Qe;else{if(Ve&&vt&&!N.usedDuplicates[Qe]&&(N.usedDuplicates[Qe]=!0),je==="[object Object]")ae&&Object.keys(N.dump).length!==0?(Ke(N,re,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Ge(N,re,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump));else if(je==="[object Array]"){var At=N.noArrayIndent&&re>0?re-1:re;ae&&N.dump.length!==0?(Ie(N,At,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Se(N,At,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump))}else if(je==="[object String]")N.tag!=="?"&&Vt(N,N.dump,re,Ee);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+je)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function K(N,re){var de=[],ae=[],pe,Ee;for(T(N,de,ae),pe=0,Ee=ae.length;pe<Ee;pe+=1)re.duplicates.push(de[ae[pe]]);re.usedDuplicates=new Array(Ee)}function T(N,re,de){var ae,pe,Ee;if(N!==null&&typeof N=="object")if(pe=re.indexOf(N),pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(re.push(N),Array.isArray(N))for(pe=0,Ee=N.length;pe<Ee;pe+=1)T(N[pe],re,de);else for(ae=Object.keys(N),pe=0,Ee=ae.length;pe<Ee;pe+=1)T(N[ae[pe]],re,de)}function O(N,re){re=re||{};var de=new rt(re);return de.noRefs||K(N,de),Re(de,0,N,!0,!0)?de.dump+`
514
513
  `:""}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,q=2,W=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,R=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(P){return Object.prototype.toString.call(P)}function _(P){return P===10||P===13}function Q(P){return P===9||P===32}function Y(P){return P===9||P===32||P===10||P===13}function ce(P){return P===44||P===91||P===93||P===123||P===125}function ee(P){var Re;return 48<=P&&P<=57?P-48:(Re=P|32,97<=Re&&Re<=102?Re-97+10:-1)}function ie(P){return P===120?2:P===117?4:P===85?8:0}function xe(P){return 48<=P&&P<=57?P-48:-1}function we(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
515
- `: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 he(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]=we(Fe)?1:0,se[Fe]=we(Fe);function Le(P,Re){this.input=P,this.filename=Re.filename||null,this.schema=Re.schema||b,this.onWarning=Re.onWarning||null,this.legacy=Re.legacy||!1,this.json=Re.json||!1,this.listener=Re.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 Me(P,Re){return new v(Re,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Re){throw Me(P,Re)}function rt(P,Re){P.onWarning&&P.onWarning.call(null,Me(P,Re))}var Ze={YAML:function(Re,K,T){var O,le,N;Re.version!==null&&Pe(Re,"duplication of %YAML directive"),T.length!==1&&Pe(Re,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Re,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Pe(Re,"unacceptable YAML version of the document"),Re.version=T[0],Re.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Re,"unsupported YAML version of the document")},TAG:function(Re,K,T){var O,le;T.length!==2&&Pe(Re,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Pe(Re,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Re.tagMap,O)&&Pe(Re,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Pe(Re,"ill-formed tag prefix (second argument) of the TAG directive"),Re.tagMap[O]=le}};function Xe(P,Re,K,T){var O,le,N,re;if(Re<K){if(re=P.input.slice(Re,K),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 M.test(re)&&Pe(P,"the stream contains non-printable characters");P.result+=re}}function ft(P,Re,K,T){var O,le,N,re;for(c.isObject(K)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(K),N=0,re=O.length;N<re;N+=1)le=O[N],S.call(Re,le)||(Re[le]=K[le],T[le]=!0)}function ht(P,Re,K,T,O,le,N,re){var de,ae;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),de=0,ae=O.length;de<ae;de+=1)Array.isArray(O[de])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&J(O[de])==="[object Object]"&&(O[de]="[object Object]");if(typeof O=="object"&&J(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Re===null&&(Re={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(de=0,ae=le.length;de<ae;de+=1)ft(P,Re,le[de],K);else ft(P,Re,le,K);else!P.json&&!S.call(K,O)&&S.call(Re,O)&&(P.line=N||P.line,P.position=re||P.position,Pe(P,"duplicated mapping key")),Re[O]=le,delete K[O];return Re}function wt(P){var Re;Re=P.input.charCodeAt(P.position),Re===10?P.position++:Re===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 nt(P,Re,K){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Q(O);)O=P.input.charCodeAt(++P.position);if(Re&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(_(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 K!==-1&&T!==0&&P.lineIndent<K&&rt(P,"deficient indentation"),T}function ut(P){var Re=P.position,K;return K=P.input.charCodeAt(Re),!!((K===45||K===46)&&K===P.input.charCodeAt(Re+1)&&K===P.input.charCodeAt(Re+2)&&(Re+=3,K=P.input.charCodeAt(Re),K===0||Y(K)))}function mt(P,Re){Re===1?P.result+=" ":Re>1&&(P.result+=c.repeat(`
516
- `,Re-1))}function xt(P,Re,K){var T,O,le,N,re,de,ae,pe,Ee=P.kind,Ue=P.result,je;if(je=P.input.charCodeAt(P.position),Y(je)||ce(je)||je===35||je===38||je===42||je===33||je===124||je===62||je===39||je===34||je===37||je===64||je===96||(je===63||je===45)&&(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,re=!1;je!==0;){if(je===58){if(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O))break}else if(je===35){if(T=P.input.charCodeAt(P.position-1),Y(T))break}else{if(P.position===P.lineStart&&ut(P)||K&&ce(je))break;if(_(je))if(de=P.line,ae=P.lineStart,pe=P.lineIndent,nt(P,!1,-1),P.lineIndent>=Re){re=!0,je=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=de,P.lineStart=ae,P.lineIndent=pe;break}}re&&(Xe(P,le,N,!1),mt(P,P.line-de),le=N=P.position,re=!1),Q(je)||(N=P.position+1),je=P.input.charCodeAt(++P.position)}return Xe(P,le,N,!1),P.result?!0:(P.kind=Ee,P.result=Ue,!1)}function pt(P,Re){var K,T,O;if(K=P.input.charCodeAt(P.position),K!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(K=P.input.charCodeAt(P.position))!==0;)if(K===39)if(Xe(P,T,P.position,!0),K=P.input.charCodeAt(++P.position),K===39)T=P.position,P.position++,O=P.position;else return!0;else _(K)?(Xe(P,T,O,!0),mt(P,nt(P,!1,Re)),T=O=P.position):P.position===P.lineStart&&ut(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 Mt(P,Re){var K,T,O,le,N,re;if(re=P.input.charCodeAt(P.position),re!==34)return!1;for(P.kind="scalar",P.result="",P.position++,K=T=P.position;(re=P.input.charCodeAt(P.position))!==0;){if(re===34)return Xe(P,K,P.position,!0),P.position++,!0;if(re===92){if(Xe(P,K,P.position,!0),re=P.input.charCodeAt(++P.position),_(re))nt(P,!1,Re);else if(re<256&&fe[re])P.result+=se[re],P.position++;else if((N=ie(re))>0){for(O=N,le=0;O>0;O--)re=P.input.charCodeAt(++P.position),(N=ee(re))>=0?le=(le<<4)+N:Pe(P,"expected hexadecimal character");P.result+=he(le),P.position++}else Pe(P,"unknown escape sequence");K=T=P.position}else _(re)?(Xe(P,K,T,!0),mt(P,nt(P,!1,Re)),K=T=P.position):P.position===P.lineStart&&ut(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,Re){var K=!0,T,O=P.tag,le,N=P.anchor,re,de,ae,pe,Ee,Ue={},je,Qe,vt,At;if(At=P.input.charCodeAt(P.position),At===91)de=93,Ee=!1,le=[];else if(At===123)de=125,Ee=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),At=P.input.charCodeAt(++P.position);At!==0;){if(nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===de)return P.position++,P.tag=O,P.anchor=N,P.kind=Ee?"mapping":"sequence",P.result=le,!0;K||Pe(P,"missed comma between flow collection entries"),Qe=je=vt=null,ae=pe=!1,At===63&&(re=P.input.charCodeAt(P.position+1),Y(re)&&(ae=pe=!0,P.position++,nt(P,!0,Re))),T=P.line,ve(P,Re,g,!1,!0),Qe=P.tag,je=P.result,nt(P,!0,Re),At=P.input.charCodeAt(P.position),(pe||P.line===T)&&At===58&&(ae=!0,At=P.input.charCodeAt(++P.position),nt(P,!0,Re),ve(P,Re,g,!1,!0),vt=P.result),Ee?ht(P,le,Ue,Qe,je,vt):ae?le.push(ht(P,null,Ue,Qe,je,vt)):le.push(je),nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===44?(K=!0,At=P.input.charCodeAt(++P.position)):K=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Et(P,Re){var K,T,O=j,le=!1,N=!1,re=Re,de=0,ae=!1,pe,Ee;if(Ee=P.input.charCodeAt(P.position),Ee===124)T=!1;else if(Ee===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ee!==0;)if(Ee=P.input.charCodeAt(++P.position),Ee===43||Ee===45)j===O?O=Ee===43?W:q:Pe(P,"repeat of a chomping mode identifier");else if((pe=xe(Ee))>=0)pe===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=Re+pe-1,N=!0);else break;if(Q(Ee)){do Ee=P.input.charCodeAt(++P.position);while(Q(Ee));if(Ee===35)do Ee=P.input.charCodeAt(++P.position);while(!_(Ee)&&Ee!==0)}for(;Ee!==0;){for(wt(P),P.lineIndent=0,Ee=P.input.charCodeAt(P.position);(!N||P.lineIndent<re)&&Ee===32;)P.lineIndent++,Ee=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>re&&(re=P.lineIndent),_(Ee)){de++;continue}if(P.lineIndent<re){O===W?P.result+=c.repeat(`
514
+ `: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 he(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var fe=new Array(256),oe=new Array(256),Fe=0;Fe<256;Fe++)fe[Fe]=we(Fe)?1:0,oe[Fe]=we(Fe);function Le(P,Re){this.input=P,this.filename=Re.filename||null,this.schema=Re.schema||b,this.onWarning=Re.onWarning||null,this.legacy=Re.legacy||!1,this.json=Re.json||!1,this.listener=Re.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 Me(P,Re){return new v(Re,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Re){throw Me(P,Re)}function rt(P,Re){P.onWarning&&P.onWarning.call(null,Me(P,Re))}var Ze={YAML:function(Re,K,T){var O,le,N;Re.version!==null&&Pe(Re,"duplication of %YAML directive"),T.length!==1&&Pe(Re,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Re,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Pe(Re,"unacceptable YAML version of the document"),Re.version=T[0],Re.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Re,"unsupported YAML version of the document")},TAG:function(Re,K,T){var O,le;T.length!==2&&Pe(Re,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Pe(Re,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Re.tagMap,O)&&Pe(Re,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Pe(Re,"ill-formed tag prefix (second argument) of the TAG directive"),Re.tagMap[O]=le}};function Xe(P,Re,K,T){var O,le,N,re;if(Re<K){if(re=P.input.slice(Re,K),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 M.test(re)&&Pe(P,"the stream contains non-printable characters");P.result+=re}}function ft(P,Re,K,T){var O,le,N,re;for(c.isObject(K)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(K),N=0,re=O.length;N<re;N+=1)le=O[N],S.call(Re,le)||(Re[le]=K[le],T[le]=!0)}function ht(P,Re,K,T,O,le,N,re){var de,ae;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),de=0,ae=O.length;de<ae;de+=1)Array.isArray(O[de])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&J(O[de])==="[object Object]"&&(O[de]="[object Object]");if(typeof O=="object"&&J(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Re===null&&(Re={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(de=0,ae=le.length;de<ae;de+=1)ft(P,Re,le[de],K);else ft(P,Re,le,K);else!P.json&&!S.call(K,O)&&S.call(Re,O)&&(P.line=N||P.line,P.position=re||P.position,Pe(P,"duplicated mapping key")),Re[O]=le,delete K[O];return Re}function wt(P){var Re;Re=P.input.charCodeAt(P.position),Re===10?P.position++:Re===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 nt(P,Re,K){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Q(O);)O=P.input.charCodeAt(++P.position);if(Re&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(_(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 K!==-1&&T!==0&&P.lineIndent<K&&rt(P,"deficient indentation"),T}function ut(P){var Re=P.position,K;return K=P.input.charCodeAt(Re),!!((K===45||K===46)&&K===P.input.charCodeAt(Re+1)&&K===P.input.charCodeAt(Re+2)&&(Re+=3,K=P.input.charCodeAt(Re),K===0||Y(K)))}function mt(P,Re){Re===1?P.result+=" ":Re>1&&(P.result+=c.repeat(`
515
+ `,Re-1))}function xt(P,Re,K){var T,O,le,N,re,de,ae,pe,Ee=P.kind,je=P.result,Ve;if(Ve=P.input.charCodeAt(P.position),Y(Ve)||ce(Ve)||Ve===35||Ve===38||Ve===42||Ve===33||Ve===124||Ve===62||Ve===39||Ve===34||Ve===37||Ve===64||Ve===96||(Ve===63||Ve===45)&&(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,re=!1;Ve!==0;){if(Ve===58){if(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O))break}else if(Ve===35){if(T=P.input.charCodeAt(P.position-1),Y(T))break}else{if(P.position===P.lineStart&&ut(P)||K&&ce(Ve))break;if(_(Ve))if(de=P.line,ae=P.lineStart,pe=P.lineIndent,nt(P,!1,-1),P.lineIndent>=Re){re=!0,Ve=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=de,P.lineStart=ae,P.lineIndent=pe;break}}re&&(Xe(P,le,N,!1),mt(P,P.line-de),le=N=P.position,re=!1),Q(Ve)||(N=P.position+1),Ve=P.input.charCodeAt(++P.position)}return Xe(P,le,N,!1),P.result?!0:(P.kind=Ee,P.result=je,!1)}function pt(P,Re){var K,T,O;if(K=P.input.charCodeAt(P.position),K!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(K=P.input.charCodeAt(P.position))!==0;)if(K===39)if(Xe(P,T,P.position,!0),K=P.input.charCodeAt(++P.position),K===39)T=P.position,P.position++,O=P.position;else return!0;else _(K)?(Xe(P,T,O,!0),mt(P,nt(P,!1,Re)),T=O=P.position):P.position===P.lineStart&&ut(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 Mt(P,Re){var K,T,O,le,N,re;if(re=P.input.charCodeAt(P.position),re!==34)return!1;for(P.kind="scalar",P.result="",P.position++,K=T=P.position;(re=P.input.charCodeAt(P.position))!==0;){if(re===34)return Xe(P,K,P.position,!0),P.position++,!0;if(re===92){if(Xe(P,K,P.position,!0),re=P.input.charCodeAt(++P.position),_(re))nt(P,!1,Re);else if(re<256&&fe[re])P.result+=oe[re],P.position++;else if((N=ie(re))>0){for(O=N,le=0;O>0;O--)re=P.input.charCodeAt(++P.position),(N=ee(re))>=0?le=(le<<4)+N:Pe(P,"expected hexadecimal character");P.result+=he(le),P.position++}else Pe(P,"unknown escape sequence");K=T=P.position}else _(re)?(Xe(P,K,T,!0),mt(P,nt(P,!1,Re)),K=T=P.position):P.position===P.lineStart&&ut(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,Re){var K=!0,T,O=P.tag,le,N=P.anchor,re,de,ae,pe,Ee,je={},Ve,Qe,vt,At;if(At=P.input.charCodeAt(P.position),At===91)de=93,Ee=!1,le=[];else if(At===123)de=125,Ee=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),At=P.input.charCodeAt(++P.position);At!==0;){if(nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===de)return P.position++,P.tag=O,P.anchor=N,P.kind=Ee?"mapping":"sequence",P.result=le,!0;K||Pe(P,"missed comma between flow collection entries"),Qe=Ve=vt=null,ae=pe=!1,At===63&&(re=P.input.charCodeAt(P.position+1),Y(re)&&(ae=pe=!0,P.position++,nt(P,!0,Re))),T=P.line,ve(P,Re,g,!1,!0),Qe=P.tag,Ve=P.result,nt(P,!0,Re),At=P.input.charCodeAt(P.position),(pe||P.line===T)&&At===58&&(ae=!0,At=P.input.charCodeAt(++P.position),nt(P,!0,Re),ve(P,Re,g,!1,!0),vt=P.result),Ee?ht(P,le,je,Qe,Ve,vt):ae?le.push(ht(P,null,je,Qe,Ve,vt)):le.push(Ve),nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===44?(K=!0,At=P.input.charCodeAt(++P.position)):K=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Et(P,Re){var K,T,O=j,le=!1,N=!1,re=Re,de=0,ae=!1,pe,Ee;if(Ee=P.input.charCodeAt(P.position),Ee===124)T=!1;else if(Ee===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ee!==0;)if(Ee=P.input.charCodeAt(++P.position),Ee===43||Ee===45)j===O?O=Ee===43?W:q:Pe(P,"repeat of a chomping mode identifier");else if((pe=xe(Ee))>=0)pe===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=Re+pe-1,N=!0);else break;if(Q(Ee)){do Ee=P.input.charCodeAt(++P.position);while(Q(Ee));if(Ee===35)do Ee=P.input.charCodeAt(++P.position);while(!_(Ee)&&Ee!==0)}for(;Ee!==0;){for(wt(P),P.lineIndent=0,Ee=P.input.charCodeAt(P.position);(!N||P.lineIndent<re)&&Ee===32;)P.lineIndent++,Ee=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>re&&(re=P.lineIndent),_(Ee)){de++;continue}if(P.lineIndent<re){O===W?P.result+=c.repeat(`
517
516
  `,le?1+de:de):O===j&&le&&(P.result+=`
518
517
  `);break}for(T?Q(Ee)?(ae=!0,P.result+=c.repeat(`
519
518
  `,le?1+de:de)):ae?(ae=!1,P.result+=c.repeat(`
520
519
  `,de+1)):de===0?le&&(P.result+=" "):P.result+=c.repeat(`
521
520
  `,de):P.result+=c.repeat(`
522
- `,le?1+de:de),le=!0,N=!0,de=0,K=P.position;!_(Ee)&&Ee!==0;)Ee=P.input.charCodeAt(++P.position);Xe(P,K,P.position,!1)}return!0}function Ht(P,Re){var K,T=P.tag,O=P.anchor,le=[],N,re=!1,de;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),de=P.input.charCodeAt(P.position);de!==0&&!(de!==45||(N=P.input.charCodeAt(P.position+1),!Y(N)));){if(re=!0,P.position++,nt(P,!0,-1)&&P.lineIndent<=Re){le.push(null),de=P.input.charCodeAt(P.position);continue}if(K=P.line,ve(P,Re,D,!1,!0),le.push(P.result),nt(P,!0,-1),de=P.input.charCodeAt(P.position),(P.line===K||P.lineIndent>Re)&&de!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Re)break}return re?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function jt(P,Re,K){var T,O,le,N,re=P.tag,de=P.anchor,ae={},pe={},Ee=null,Ue=null,je=null,Qe=!1,vt=!1,At;for(P.anchor!==null&&(P.anchorMap[P.anchor]=ae),At=P.input.charCodeAt(P.position);At!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(At===63||At===58)&&Y(T))At===63?(Qe&&(ht(P,ae,pe,Ee,Ue,null),Ee=Ue=je=null),vt=!0,Qe=!0,O=!0):Qe?(Qe=!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,At=T;else if(ve(P,K,L,!1,!0))if(P.line===le){for(At=P.input.charCodeAt(P.position);Q(At);)At=P.input.charCodeAt(++P.position);if(At===58)At=P.input.charCodeAt(++P.position),Y(At)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),Qe&&(ht(P,ae,pe,Ee,Ue,null),Ee=Ue=je=null),vt=!0,Qe=!1,O=!1,Ee=P.tag,Ue=P.result;else if(vt)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=re,P.anchor=de,!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=re,P.anchor=de,!0;else break;if((P.line===le||P.lineIndent>Re)&&(ve(P,Re,B,!0,O)&&(Qe?Ue=P.result:je=P.result),Qe||(ht(P,ae,pe,Ee,Ue,je,le,N),Ee=Ue=je=null),nt(P,!0,-1),At=P.input.charCodeAt(P.position)),P.lineIndent>Re&&At!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Re)break}return Qe&&ht(P,ae,pe,Ee,Ue,null),vt&&(P.tag=re,P.anchor=de,P.kind="mapping",P.result=ae),vt}function Vt(P){var Re,K=!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?(K=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Re=P.position,K){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Re,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Y(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Re-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Re=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Re,P.position),R.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),K?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 St(P){var Re,K;if(K=P.input.charCodeAt(P.position),K!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),K=P.input.charCodeAt(++P.position),Re=P.position;K!==0&&!Y(K)&&!ce(K);)K=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Re,P.position),!0}function Dt(P){var Re,K,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Re=P.position;T!==0&&!Y(T)&&!ce(T);)T=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an alias node must contain at least one character"),K=P.input.slice(Re,P.position),S.call(P.anchorMap,K)||Pe(P,'unidentified alias "'+K+'"'),P.result=P.anchorMap[K],nt(P,!0,-1),!0}function ve(P,Re,K,T,O){var le,N,re,de=1,ae=!1,pe=!1,Ee,Ue,je,Qe,vt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=re=B===K||D===K,T&&nt(P,!0,-1)&&(ae=!0,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)),de===1)for(;Vt(P)||St(P);)nt(P,!0,-1)?(ae=!0,re=le,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)):re=!1;if(re&&(re=ae||O),(de===1||B===K)&&(g===K||L===K?Qe=Re:Qe=Re+1,vt=P.position-P.lineStart,de===1?re&&(Ht(P,vt)||jt(P,vt,Qe))||kt(P,Qe)?pe=!0:(N&&Et(P,Qe)||pt(P,Qe)||Mt(P,Qe)?pe=!0:Dt(P)?(pe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):xt(P,Qe,g===K)&&(pe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):de===0&&(pe=re&&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+'"'),Ee=0,Ue=P.implicitTypes.length;Ee<Ue;Ee+=1)if(je=P.implicitTypes[Ee],je.resolve(P.result)){P.result=je.construct(P.result),P.tag=je.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(je=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&je.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+je.kind+'", not "'+P.kind+'"'),je.resolve(P.result)?(P.result=je.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||pe}function z(P){var Re=P.position,K,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(nt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(K,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Q(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!_(N));break}if(_(N))break;for(K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(K,P.position))}N!==0&&wt(P),S.call(Ze,T)?Ze[T](P,T,O):rt(P,'unknown document directive "'+T+'"')}if(nt(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,nt(P,!0,-1)):le&&Pe(P,"directives end mark is expected"),ve(P,P.lineIndent-1,B,!1,!0),nt(P,!0,-1),P.checkLineBreaks&&X.test(P.input.slice(Re,P.position))&&rt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&ut(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,nt(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 $(P,Re){P=String(P),Re=Re||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
521
+ `,le?1+de:de),le=!0,N=!0,de=0,K=P.position;!_(Ee)&&Ee!==0;)Ee=P.input.charCodeAt(++P.position);Xe(P,K,P.position,!1)}return!0}function Ht(P,Re){var K,T=P.tag,O=P.anchor,le=[],N,re=!1,de;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),de=P.input.charCodeAt(P.position);de!==0&&!(de!==45||(N=P.input.charCodeAt(P.position+1),!Y(N)));){if(re=!0,P.position++,nt(P,!0,-1)&&P.lineIndent<=Re){le.push(null),de=P.input.charCodeAt(P.position);continue}if(K=P.line,ve(P,Re,D,!1,!0),le.push(P.result),nt(P,!0,-1),de=P.input.charCodeAt(P.position),(P.line===K||P.lineIndent>Re)&&de!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Re)break}return re?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function jt(P,Re,K){var T,O,le,N,re=P.tag,de=P.anchor,ae={},pe={},Ee=null,je=null,Ve=null,Qe=!1,vt=!1,At;for(P.anchor!==null&&(P.anchorMap[P.anchor]=ae),At=P.input.charCodeAt(P.position);At!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(At===63||At===58)&&Y(T))At===63?(Qe&&(ht(P,ae,pe,Ee,je,null),Ee=je=Ve=null),vt=!0,Qe=!0,O=!0):Qe?(Qe=!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,At=T;else if(ve(P,K,L,!1,!0))if(P.line===le){for(At=P.input.charCodeAt(P.position);Q(At);)At=P.input.charCodeAt(++P.position);if(At===58)At=P.input.charCodeAt(++P.position),Y(At)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),Qe&&(ht(P,ae,pe,Ee,je,null),Ee=je=Ve=null),vt=!0,Qe=!1,O=!1,Ee=P.tag,je=P.result;else if(vt)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=re,P.anchor=de,!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=re,P.anchor=de,!0;else break;if((P.line===le||P.lineIndent>Re)&&(ve(P,Re,B,!0,O)&&(Qe?je=P.result:Ve=P.result),Qe||(ht(P,ae,pe,Ee,je,Ve,le,N),Ee=je=Ve=null),nt(P,!0,-1),At=P.input.charCodeAt(P.position)),P.lineIndent>Re&&At!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Re)break}return Qe&&ht(P,ae,pe,Ee,je,null),vt&&(P.tag=re,P.anchor=de,P.kind="mapping",P.result=ae),vt}function Vt(P){var Re,K=!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?(K=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Re=P.position,K){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Re,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Y(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Re-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Re=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Re,P.position),R.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),K?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 St(P){var Re,K;if(K=P.input.charCodeAt(P.position),K!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),K=P.input.charCodeAt(++P.position),Re=P.position;K!==0&&!Y(K)&&!ce(K);)K=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Re,P.position),!0}function Dt(P){var Re,K,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Re=P.position;T!==0&&!Y(T)&&!ce(T);)T=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an alias node must contain at least one character"),K=P.input.slice(Re,P.position),S.call(P.anchorMap,K)||Pe(P,'unidentified alias "'+K+'"'),P.result=P.anchorMap[K],nt(P,!0,-1),!0}function ve(P,Re,K,T,O){var le,N,re,de=1,ae=!1,pe=!1,Ee,je,Ve,Qe,vt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=re=B===K||D===K,T&&nt(P,!0,-1)&&(ae=!0,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)),de===1)for(;Vt(P)||St(P);)nt(P,!0,-1)?(ae=!0,re=le,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)):re=!1;if(re&&(re=ae||O),(de===1||B===K)&&(g===K||L===K?Qe=Re:Qe=Re+1,vt=P.position-P.lineStart,de===1?re&&(Ht(P,vt)||jt(P,vt,Qe))||kt(P,Qe)?pe=!0:(N&&Et(P,Qe)||pt(P,Qe)||Mt(P,Qe)?pe=!0:Dt(P)?(pe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):xt(P,Qe,g===K)&&(pe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):de===0&&(pe=re&&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+'"'),Ee=0,je=P.implicitTypes.length;Ee<je;Ee+=1)if(Ve=P.implicitTypes[Ee],Ve.resolve(P.result)){P.result=Ve.construct(P.result),P.tag=Ve.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(Ve=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&Ve.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Ve.kind+'", not "'+P.kind+'"'),Ve.resolve(P.result)?(P.result=Ve.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||pe}function z(P){var Re=P.position,K,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(nt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(K,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Q(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!_(N));break}if(_(N))break;for(K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(K,P.position))}N!==0&&wt(P),S.call(Ze,T)?Ze[T](P,T,O):rt(P,'unknown document directive "'+T+'"')}if(nt(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,nt(P,!0,-1)):le&&Pe(P,"directives end mark is expected"),ve(P,P.lineIndent-1,B,!1,!0),nt(P,!0,-1),P.checkLineBreaks&&X.test(P.input.slice(Re,P.position))&&rt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&ut(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,nt(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 $(P,Re){P=String(P),Re=Re||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
523
522
  `),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Re),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Pe(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)z(K);return K.documents}function Se(P,Re,K){Re!==null&&typeof Re=="object"&&typeof K=="undefined"&&(K=Re,Re=null);var T=$(P,K);if(typeof Re!="function")return T;for(var O=0,le=T.length;O<le;O+=1)Re(T[O])}function Ie(P,Re){var K=$(P,Re);if(K.length!==0){if(K.length===1)return K[0];throw new v("expected a single document in the stream, but found more")}}function Ge(P,Re,K){return typeof Re=="object"&&Re!==null&&typeof K=="undefined"&&(K=Re,Re=null),Se(P,Re,c.extend({schema:d},K))}function Ke(P,Re){return Ie(P,c.extend({schema:d},Re))}h.exports.loadAll=Se,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
524
523
  \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
525
524
  \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+`
526
525
  `+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+=`:
527
526
  `+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(q,W){q.tag===j.tag&&q.kind===j.kind&&B.push(W)}),D.push(j)}),D.filter(function(j,q){return B.indexOf(q)===-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+/=
528
- \r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,M=d;for(j=0;j<W;j++)if(B=M.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,M=d,X=0,R=[];for(B=0;B<W;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|M.indexOf(q.charAt(B));return j=W%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(D){var B="",j=0,q,W,M=D.length,X=d;for(q=0;q<M;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=M%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[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,q,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(M){W.unshift(parseFloat(M,10))}),B=0,q=1,W.forEach(function(M){B+=M*q,q*=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,q=!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;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,M=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),B=0,W=1,M.forEach(function(X){B+=X*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=[],q;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)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[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,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)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,q,W,M,X=0,R=null,C,V,J;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(q=+L[4],W=+L[5],M=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(D,B,j,q,W,M,X)),R&&J.setTime(J.getTime()-R),J}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 q=x(B),W=!q&&v(B),M=!q&&!W&&d(B),X=!q&&!W&&!M&&S(B),R=q||W||M||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);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),q=a(98882),W=a(43824),M=a(29148),X=a(38517),R=a(1469),C=a(44144),V=a(56688),J=a(13218),_=a(72928),Q=a(3674),Y=a(81704),ce=1,ee=2,ie=4,xe="[object Arguments]",we="[object Array]",he="[object Boolean]",fe="[object Date]",se="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Me="[object Map]",Pe="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",wt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",mt="[object Float32Array]",xt="[object Float64Array]",pt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",Et="[object Uint8Array]",Ht="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",St={};St[xe]=St[we]=St[nt]=St[ut]=St[he]=St[fe]=St[mt]=St[xt]=St[pt]=St[Mt]=St[kt]=St[Me]=St[Pe]=St[rt]=St[Ze]=St[Xe]=St[ft]=St[ht]=St[Et]=St[Ht]=St[jt]=St[Vt]=!0,St[se]=St[Fe]=St[wt]=!1;function Dt(ve,z,$,Se,Ie,Ge){var Ke,P=z&ce,Re=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,Ge):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=R(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),le=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==xe||le&&!Ie){if(Ke=Re||le?{}:X(ve),!P)return Re?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!St[O])return Ie?ve:{};Ke=M(ve,O,P)}}Ge||(Ge=new c);var N=Ge.get(ve);if(N)return N;Ge.set(ve,Ke),_(ve)?ve.forEach(function(ae){Ke.add(Dt(ae,z,$,ae,ve,Ge))}):V(ve)&&ve.forEach(function(ae,pe){Ke.set(pe,Dt(ae,z,$,pe,ve,Ge))});var re=K?Re?j:B:Re?Y:Q,de=T?void 0:re(ve);return v(de||ve,function(ae,pe){de&&(pe=ae,ae=ve[pe]),x(Ke,pe,Dt(ae,z,$,pe,ve,Ge))}),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 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]",q="[object Object]",W=Object.prototype,M=W.hasOwnProperty;function X(R,C,V,J,_,Q){var Y=S(R),ce=S(C),ee=Y?j:b(R),ie=ce?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var xe=ee==q,we=ie==q,he=ee==ie;if(he&&g(R)){if(!g(C))return!1;Y=!0,xe=!1}if(he&&!xe)return Q||(Q=new c),Y||L(R)?v(R,C,V,J,_,Q):x(R,C,ee,V,J,_,Q);if(!(V&D)){var fe=xe&&M.call(R,"__wrapped__"),se=we&&M.call(C,"__wrapped__");if(fe||se){var Fe=fe?R.value():R,Le=se?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(R,C,V,J,_,Q)):!1}h.exports=X},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,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var M=W[0],X=S[M],R=W[1];if(q&&W[2]){if(X===void 0&&!(M in S))return!1}else{var C=new c;if(D)var V=D(X,R,M,S,g,C);if(!(V===void 0?v(R,X,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 q(W){if(!x(W)||v(W))return!1;var M=c(W)?j:S;return M.test(d(W))}h.exports=q},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]",q="[object Object]",W="[object RegExp]",M="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",xe="[object Uint16Array]",we="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[ce]=he[ee]=he[ie]=he[xe]=he[we]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[M]=he[X]=he[R]=!1;function fe(se){return x(se)&&v(se.length)&&!!he[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,q){return d(j)&&b(q)?S(g(j),q):function(W){var M=v(W,j);return M===void 0&&M===q?x(W,j):c(q,M,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],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}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,q=L.length,W=q-1,M=g;M!=null&&++j<q;){var X=b(L[j]),R=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=M[X];R=B?B(C,X,M):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(M,X,R),M=M[X]}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],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}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(q){return B(D[q],q,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,q){var W=D&d,M=g.length,X=L.length;if(M!=X&&!(W&&X>M))return!1;var R=q.get(g),C=q.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<M;){var Q=g[V],Y=L[V];if(B)var ce=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(ce!==void 0){if(ce)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}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]",q="[object Map]",W="[object Number]",M="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(ce,ee,ie,xe,we,he,fe){switch(ie){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!he(new v(ce),new v(ee)));case D:case B:case W:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case M:case R:return ce==ee+"";case q:var se=b;case X:var Fe=xe&g;if(se||(se=S),ce.size!=ee.size&&!Fe)return!1;var Le=fe.get(ce);if(Le)return Le==ee;xe|=L,fe.set(ce,ee);var Me=d(se(ce),se(ee),xe,we,he,fe);return fe.delete(ce),Me;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}h.exports=Y},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 q=L&v,W=c(S),M=W.length,X=c(g),R=X.length;if(M!=R&&!q)return!1;for(var C=M;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<M;){V=W[C];var ce=S[V],ee=g[V];if(D)var ie=q?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ie===void 0?ce===ee||B(ce,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var xe=S.constructor,we=g.constructor;xe!=we&&"constructor"in S&&"constructor"in g&&!(typeof xe=="function"&&xe instanceof xe&&typeof we=="function"&&we instanceof we)&&(Q=!1)}return j.delete(S),j.delete(g),Q}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(q){}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]",q="[object WeakMap]",W="[object DataView]",M=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case M:return W;case X:return L;case R:return B;case C:return j;case V:return q}return Q}),h.exports=J},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,q=D.length,W=!1;++j<q;){var M=S(D[j]);if(!(W=L!=null&&B(L,M)))break;L=L[M]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(M,q)&&(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]",q="[object String]",W="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ie(xe,we,he){var fe=xe.constructor;switch(we){case M:return c(xe);case S:case g:return new fe(+xe);case X:return v(xe,he);case R:case C:case V:case J:case _:case Q:case Y:case ce:case ee:return b(xe,he);case L:return new fe;case D:case q:return new fe(xe);case B:return x(xe);case j:return new fe;case W:return d(xe)}}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(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 q in j)L.call(j,q)&&c(B,q,j[q])});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,q=j.hasOwnProperty;function W(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||S(M)||L(M)||x(M)))return!M.length;var X=v(M);if(X==D||X==B)return!M.size;if(g(M))return!c(M).length;for(var R in M)if(q.call(M,R))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 q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.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 q=S.test(B);return q||g.test(B)?L(B.slice(2),q?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,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,M=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,xe=Array.prototype.slice,we=Math.floor,he=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",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Me=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function rt(ae,pe){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||ce.call(/e/,pe))return pe;var Ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Ue=ae<0?-we(-ae):we(ae);if(Ue!==ae){var je=String(Ue),Qe=J.call(pe,je.length+1);return _.call(je,Ee,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ee,"$&_")}var Ze=a(24654),Xe=Ze.custom,ft=Et(Xe)?Xe:null;h.exports=function ae(pe,Ee,Ue,je){var Qe=Ee||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return At?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return At?rt(pe,Pt):Pt}var hn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof Ue=="undefined"&&(Ue=0),Ue>=hn&&hn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Nr=N(Qe,Ue);if(typeof je=="undefined")je=[];else if(ve(je,pe)>=0)return"[Circular]";function Cr(Br,Kr,Xn){if(Kr&&(je=xe.call(je),je.push(Kr)),Xn){var fr={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(fr.quoteStyle=Qe.quoteStyle),ae(Br,fr,Ue+1,je)}return ae(Br,Qe,Ue+1,je)}if(typeof pe=="function"&&!mt(pe)){var Si=Dt(pe),Gr=de(pe,Cr);return"[Function"+(Si?": "+Si:" (anonymous)")+"]"+(Gr.length>0?" { "+ie.call(Gr,", ")+" }":"")}if(Et(pe)){var Vi=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(pe);return typeof pe=="object"&&!Fe?K(Vi):Vi}if(Ke(pe)){for(var Nn="<"+Y.call(String(pe.nodeName)),vn=pe.attributes||[],Tn=0;Tn<vn.length;Tn++)Nn+=" "+vn[Tn].name+"="+ht(wt(vn[Tn].value),"double",Qe);return Nn+=">",pe.childNodes&&pe.childNodes.length&&(Nn+="..."),Nn+="</"+Y.call(String(pe.nodeName))+">",Nn}if(nt(pe)){if(pe.length===0)return"[]";var $r=de(pe,Cr);return Nr&&!le($r)?"["+re($r,Nr)+"]":"[ "+ie.call($r,", ")+" ]"}if(xt(pe)){var Ai=de(pe,Cr);return!("cause"in Error.prototype)&&"cause"in pe&&!Me.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Cr(pe.cause),Ai),", ")+" }":Ai.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(Ai,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:hn-Ue});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var Ei=[];return d.call(pe,function(Br,Kr){Ei.push(Cr(Kr,pe,!0)+" => "+Cr(Br,pe))}),O("Map",x.call(pe),Ei,Nr)}if(Ie(pe)){var en=[];return L.call(pe,function(Br){en.push(Cr(Br,pe))}),O("Set",g.call(pe),en,Nr)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Mt(pe))return K(Cr(Number(pe)));if(Ht(pe))return K(Cr(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Cr(String(pe)));if(!ut(pe)&&!mt(pe)){var gn=de(pe,Cr),Bn=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,Un=pe instanceof Object?"":"null prototype",yn=!Bn&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):Un?"Object":"",Jn=Bn||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Ci=Jn+(yn||Un?"["+ie.call(ee.call([],yn||[],Un||[]),": ")+"] ":"");return gn.length===0?Ci+"{}":Nr?Ci+"{"+re(gn,Nr)+"}":Ci+"{ "+ie.call(gn,", ")+" }"}return String(pe)};function ht(ae,pe,Ee){var Ue=(Ee.quoteStyle||pe)==="double"?'"':"'";return Ue+ae+Ue}function wt(ae){return _.call(String(ae),/"/g,"&quot;")}function nt(ae){return St(ae)==="[object Array]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function ut(ae){return St(ae)==="[object Date]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function mt(ae){return St(ae)==="[object RegExp]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function xt(ae){return St(ae)==="[object Error]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function pt(ae){return St(ae)==="[object String]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Mt(ae){return St(ae)==="[object Number]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function kt(ae){return St(ae)==="[object Boolean]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Et(ae){if(Fe)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!se)return!1;try{return se.call(ae),!0}catch(pe){}return!1}function Ht(ae){if(!ae||typeof ae!="object"||!he)return!1;try{return he.call(ae),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Vt(ae,pe){return jt.call(ae,pe)}function St(ae){return R.call(ae)}function Dt(ae){if(ae.name)return ae.name;var pe=V.call(C.call(ae),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(ae,pe){if(ae.indexOf)return ae.indexOf(pe);for(var Ee=0,Ue=ae.length;Ee<Ue;Ee++)if(ae[Ee]===pe)return Ee;return-1}function z(ae){if(!x||!ae||typeof ae!="object")return!1;try{x.call(ae);try{g.call(ae)}catch(pe){return!0}return ae instanceof Map}catch(pe){}return!1}function $(ae){if(!B||!ae||typeof ae!="object")return!1;try{B.call(ae,B);try{q.call(ae,q)}catch(pe){return!0}return ae instanceof WeakMap}catch(pe){}return!1}function Se(ae){if(!M||!ae||typeof ae!="object")return!1;try{return M.call(ae),!0}catch(pe){}return!1}function Ie(ae){if(!g||!ae||typeof ae!="object")return!1;try{g.call(ae);try{x.call(ae)}catch(pe){return!0}return ae instanceof Set}catch(pe){}return!1}function Ge(ae){if(!q||!ae||typeof ae!="object")return!1;try{q.call(ae,q);try{B.call(ae,B)}catch(pe){return!0}return ae instanceof WeakSet}catch(pe){}return!1}function Ke(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement!="undefined"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function P(ae,pe){if(ae.length>pe.maxStringLength){var Ee=ae.length-pe.maxStringLength,Ue="... "+Ee+" more character"+(Ee>1?"s":"");return P(J.call(ae,0,pe.maxStringLength),pe)+Ue}var je=_.call(_.call(ae,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Re);return ht(je,"single",pe)}function Re(ae){var pe=ae.charCodeAt(0),Ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ee?"\\"+Ee:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ae){return"Object("+ae+")"}function T(ae){return ae+" { ? }"}function O(ae,pe,Ee,Ue){var je=Ue?re(Ee,Ue):ie.call(Ee,", ");return ae+" ("+pe+") {"+je+"}"}function le(ae){for(var pe=0;pe<ae.length;pe++)if(ve(ae[pe],`
527
+ \r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,M=d;for(j=0;j<W;j++)if(B=M.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,M=d,X=0,R=[];for(B=0;B<W;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|M.indexOf(q.charAt(B));return j=W%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(D){var B="",j=0,q,W,M=D.length,X=d;for(q=0;q<M;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=M%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[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,q,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(M){W.unshift(parseFloat(M,10))}),B=0,q=1,W.forEach(function(M){B+=M*q,q*=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,q=!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;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,M=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),B=0,W=1,M.forEach(function(X){B+=X*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=[],q;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)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[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,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)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,q,W,M,X=0,R=null,C,V,J;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(q=+L[4],W=+L[5],M=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(D,B,j,q,W,M,X)),R&&J.setTime(J.getTime()-R),J}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 q=x(B),W=!q&&v(B),M=!q&&!W&&d(B),X=!q&&!W&&!M&&S(B),R=q||W||M||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);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),q=a(98882),W=a(43824),M=a(29148),X=a(38517),R=a(1469),C=a(44144),V=a(56688),J=a(13218),_=a(72928),Q=a(3674),Y=a(81704),ce=1,ee=2,ie=4,xe="[object Arguments]",we="[object Array]",he="[object Boolean]",fe="[object Date]",oe="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Me="[object Map]",Pe="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",wt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",mt="[object Float32Array]",xt="[object Float64Array]",pt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",Et="[object Uint8Array]",Ht="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",St={};St[xe]=St[we]=St[nt]=St[ut]=St[he]=St[fe]=St[mt]=St[xt]=St[pt]=St[Mt]=St[kt]=St[Me]=St[Pe]=St[rt]=St[Ze]=St[Xe]=St[ft]=St[ht]=St[Et]=St[Ht]=St[jt]=St[Vt]=!0,St[oe]=St[Fe]=St[wt]=!1;function Dt(ve,z,$,Se,Ie,Ge){var Ke,P=z&ce,Re=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,Ge):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=R(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),le=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==xe||le&&!Ie){if(Ke=Re||le?{}:X(ve),!P)return Re?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!St[O])return Ie?ve:{};Ke=M(ve,O,P)}}Ge||(Ge=new c);var N=Ge.get(ve);if(N)return N;Ge.set(ve,Ke),_(ve)?ve.forEach(function(ae){Ke.add(Dt(ae,z,$,ae,ve,Ge))}):V(ve)&&ve.forEach(function(ae,pe){Ke.set(pe,Dt(ae,z,$,pe,ve,Ge))});var re=K?Re?j:B:Re?Y:Q,de=T?void 0:re(ve);return v(de||ve,function(ae,pe){de&&(pe=ae,ae=ve[pe]),x(Ke,pe,Dt(ae,z,$,pe,ve,Ge))}),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 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]",q="[object Object]",W=Object.prototype,M=W.hasOwnProperty;function X(R,C,V,J,_,Q){var Y=S(R),ce=S(C),ee=Y?j:b(R),ie=ce?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var xe=ee==q,we=ie==q,he=ee==ie;if(he&&g(R)){if(!g(C))return!1;Y=!0,xe=!1}if(he&&!xe)return Q||(Q=new c),Y||L(R)?v(R,C,V,J,_,Q):x(R,C,ee,V,J,_,Q);if(!(V&D)){var fe=xe&&M.call(R,"__wrapped__"),oe=we&&M.call(C,"__wrapped__");if(fe||oe){var Fe=fe?R.value():R,Le=oe?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(R,C,V,J,_,Q)):!1}h.exports=X},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,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var M=W[0],X=S[M],R=W[1];if(q&&W[2]){if(X===void 0&&!(M in S))return!1}else{var C=new c;if(D)var V=D(X,R,M,S,g,C);if(!(V===void 0?v(R,X,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 q(W){if(!x(W)||v(W))return!1;var M=c(W)?j:S;return M.test(d(W))}h.exports=q},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]",q="[object Object]",W="[object RegExp]",M="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",xe="[object Uint16Array]",we="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[ce]=he[ee]=he[ie]=he[xe]=he[we]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[M]=he[X]=he[R]=!1;function fe(oe){return x(oe)&&v(oe.length)&&!!he[c(oe)]}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,q){return d(j)&&b(q)?S(g(j),q):function(W){var M=v(W,j);return M===void 0&&M===q?x(W,j):c(q,M,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],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}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,q=L.length,W=q-1,M=g;M!=null&&++j<q;){var X=b(L[j]),R=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=M[X];R=B?B(C,X,M):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(M,X,R),M=M[X]}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],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}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(q){return B(D[q],q,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,q){var W=D&d,M=g.length,X=L.length;if(M!=X&&!(W&&X>M))return!1;var R=q.get(g),C=q.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<M;){var Q=g[V],Y=L[V];if(B)var ce=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(ce!==void 0){if(ce)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}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]",q="[object Map]",W="[object Number]",M="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(ce,ee,ie,xe,we,he,fe){switch(ie){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!he(new v(ce),new v(ee)));case D:case B:case W:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case M:case R:return ce==ee+"";case q:var oe=b;case X:var Fe=xe&g;if(oe||(oe=S),ce.size!=ee.size&&!Fe)return!1;var Le=fe.get(ce);if(Le)return Le==ee;xe|=L,fe.set(ce,ee);var Me=d(oe(ce),oe(ee),xe,we,he,fe);return fe.delete(ce),Me;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}h.exports=Y},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 q=L&v,W=c(S),M=W.length,X=c(g),R=X.length;if(M!=R&&!q)return!1;for(var C=M;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<M;){V=W[C];var ce=S[V],ee=g[V];if(D)var ie=q?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ie===void 0?ce===ee||B(ce,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var xe=S.constructor,we=g.constructor;xe!=we&&"constructor"in S&&"constructor"in g&&!(typeof xe=="function"&&xe instanceof xe&&typeof we=="function"&&we instanceof we)&&(Q=!1)}return j.delete(S),j.delete(g),Q}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(q){}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]",q="[object WeakMap]",W="[object DataView]",M=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case M:return W;case X:return L;case R:return B;case C:return j;case V:return q}return Q}),h.exports=J},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,q=D.length,W=!1;++j<q;){var M=S(D[j]);if(!(W=L!=null&&B(L,M)))break;L=L[M]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(M,q)&&(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]",q="[object String]",W="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ie(xe,we,he){var fe=xe.constructor;switch(we){case M:return c(xe);case S:case g:return new fe(+xe);case X:return v(xe,he);case R:case C:case V:case J:case _:case Q:case Y:case ce:case ee:return b(xe,he);case L:return new fe;case D:case q:return new fe(xe);case B:return x(xe);case j:return new fe;case W:return d(xe)}}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(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 q in j)L.call(j,q)&&c(B,q,j[q])});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,q=j.hasOwnProperty;function W(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||S(M)||L(M)||x(M)))return!M.length;var X=v(M);if(X==D||X==B)return!M.size;if(g(M))return!c(M).length;for(var R in M)if(q.call(M,R))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 q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.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 q=S.test(B);return q||g.test(B)?L(B.slice(2),q?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,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,M=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,xe=Array.prototype.slice,we=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Me=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function rt(ae,pe){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||ce.call(/e/,pe))return pe;var Ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var je=ae<0?-we(-ae):we(ae);if(je!==ae){var Ve=String(je),Qe=J.call(pe,Ve.length+1);return _.call(Ve,Ee,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ee,"$&_")}var Ze=a(24654),Xe=Ze.custom,ft=Et(Xe)?Xe:null;h.exports=function ae(pe,Ee,je,Ve){var Qe=Ee||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return At?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return At?rt(pe,Pt):Pt}var hn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof je=="undefined"&&(je=0),je>=hn&&hn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Nr=N(Qe,je);if(typeof Ve=="undefined")Ve=[];else if(ve(Ve,pe)>=0)return"[Circular]";function Cr(Br,Kr,Xn){if(Kr&&(Ve=xe.call(Ve),Ve.push(Kr)),Xn){var fr={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(fr.quoteStyle=Qe.quoteStyle),ae(Br,fr,je+1,Ve)}return ae(Br,Qe,je+1,Ve)}if(typeof pe=="function"&&!mt(pe)){var Si=Dt(pe),Gr=de(pe,Cr);return"[Function"+(Si?": "+Si:" (anonymous)")+"]"+(Gr.length>0?" { "+ie.call(Gr,", ")+" }":"")}if(Et(pe)){var Vi=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):oe.call(pe);return typeof pe=="object"&&!Fe?K(Vi):Vi}if(Ke(pe)){for(var Nn="<"+Y.call(String(pe.nodeName)),vn=pe.attributes||[],Tn=0;Tn<vn.length;Tn++)Nn+=" "+vn[Tn].name+"="+ht(wt(vn[Tn].value),"double",Qe);return Nn+=">",pe.childNodes&&pe.childNodes.length&&(Nn+="..."),Nn+="</"+Y.call(String(pe.nodeName))+">",Nn}if(nt(pe)){if(pe.length===0)return"[]";var $r=de(pe,Cr);return Nr&&!le($r)?"["+re($r,Nr)+"]":"[ "+ie.call($r,", ")+" ]"}if(xt(pe)){var Ai=de(pe,Cr);return!("cause"in Error.prototype)&&"cause"in pe&&!Me.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Cr(pe.cause),Ai),", ")+" }":Ai.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(Ai,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:hn-je});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var Ei=[];return d.call(pe,function(Br,Kr){Ei.push(Cr(Kr,pe,!0)+" => "+Cr(Br,pe))}),O("Map",x.call(pe),Ei,Nr)}if(Ie(pe)){var en=[];return L.call(pe,function(Br){en.push(Cr(Br,pe))}),O("Set",g.call(pe),en,Nr)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Mt(pe))return K(Cr(Number(pe)));if(Ht(pe))return K(Cr(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Cr(String(pe)));if(!ut(pe)&&!mt(pe)){var gn=de(pe,Cr),Bn=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,Un=pe instanceof Object?"":"null prototype",yn=!Bn&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):Un?"Object":"",Jn=Bn||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Ci=Jn+(yn||Un?"["+ie.call(ee.call([],yn||[],Un||[]),": ")+"] ":"");return gn.length===0?Ci+"{}":Nr?Ci+"{"+re(gn,Nr)+"}":Ci+"{ "+ie.call(gn,", ")+" }"}return String(pe)};function ht(ae,pe,Ee){var je=(Ee.quoteStyle||pe)==="double"?'"':"'";return je+ae+je}function wt(ae){return _.call(String(ae),/"/g,"&quot;")}function nt(ae){return St(ae)==="[object Array]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function ut(ae){return St(ae)==="[object Date]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function mt(ae){return St(ae)==="[object RegExp]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function xt(ae){return St(ae)==="[object Error]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function pt(ae){return St(ae)==="[object String]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Mt(ae){return St(ae)==="[object Number]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function kt(ae){return St(ae)==="[object Boolean]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Et(ae){if(Fe)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!oe)return!1;try{return oe.call(ae),!0}catch(pe){}return!1}function Ht(ae){if(!ae||typeof ae!="object"||!he)return!1;try{return he.call(ae),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Vt(ae,pe){return jt.call(ae,pe)}function St(ae){return R.call(ae)}function Dt(ae){if(ae.name)return ae.name;var pe=V.call(C.call(ae),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(ae,pe){if(ae.indexOf)return ae.indexOf(pe);for(var Ee=0,je=ae.length;Ee<je;Ee++)if(ae[Ee]===pe)return Ee;return-1}function z(ae){if(!x||!ae||typeof ae!="object")return!1;try{x.call(ae);try{g.call(ae)}catch(pe){return!0}return ae instanceof Map}catch(pe){}return!1}function $(ae){if(!B||!ae||typeof ae!="object")return!1;try{B.call(ae,B);try{q.call(ae,q)}catch(pe){return!0}return ae instanceof WeakMap}catch(pe){}return!1}function Se(ae){if(!M||!ae||typeof ae!="object")return!1;try{return M.call(ae),!0}catch(pe){}return!1}function Ie(ae){if(!g||!ae||typeof ae!="object")return!1;try{g.call(ae);try{x.call(ae)}catch(pe){return!0}return ae instanceof Set}catch(pe){}return!1}function Ge(ae){if(!q||!ae||typeof ae!="object")return!1;try{q.call(ae,q);try{B.call(ae,B)}catch(pe){return!0}return ae instanceof WeakSet}catch(pe){}return!1}function Ke(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement!="undefined"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function P(ae,pe){if(ae.length>pe.maxStringLength){var Ee=ae.length-pe.maxStringLength,je="... "+Ee+" more character"+(Ee>1?"s":"");return P(J.call(ae,0,pe.maxStringLength),pe)+je}var Ve=_.call(_.call(ae,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Re);return ht(Ve,"single",pe)}function Re(ae){var pe=ae.charCodeAt(0),Ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ee?"\\"+Ee:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ae){return"Object("+ae+")"}function T(ae){return ae+" { ? }"}function O(ae,pe,Ee,je){var Ve=je?re(Ee,je):ie.call(Ee,", ");return ae+" ("+pe+") {"+Ve+"}"}function le(ae){for(var pe=0;pe<ae.length;pe++)if(ve(ae[pe],`
529
528
  `)>=0)return!1;return!0}function N(ae,pe){var Ee;if(ae.indent===" ")Ee=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Ee=ie.call(Array(ae.indent+1)," ");else return null;return{base:Ee,prev:ie.call(Array(pe+1),Ee)}}function re(ae,pe){if(ae.length===0)return"";var Ee=`
530
529
  `+pe.prev+pe.base;return Ee+ie.call(ae,","+Ee)+`
531
- `+pe.prev}function de(ae,pe){var Ee=nt(ae),Ue=[];if(Ee){Ue.length=ae.length;for(var je=0;je<ae.length;je++)Ue[je]=Vt(ae,je)?pe(ae[je],ae):""}var Qe=typeof fe=="function"?fe(ae):[],vt;if(Fe){vt={};for(var At=0;At<Qe.length;At++)vt["$"+Qe[At]]=Qe[At]}for(var Bt in ae)!Vt(ae,Bt)||Ee&&String(Number(Bt))===Bt&&Bt<ae.length||Fe&&vt["$"+Bt]instanceof Symbol||(ce.call(/[^\w$]/,Bt)?Ue.push(pe(Bt,ae)+": "+pe(ae[Bt],ae)):Ue.push(Bt+": "+pe(ae[Bt],ae)));if(typeof fe=="function")for(var Pt=0;Pt<Qe.length;Pt++)Me.call(ae,Qe[Pt])&&Ue.push("["+pe(Qe[Pt])+"]: "+pe(ae[Qe[Pt]],ae));return Ue}},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,q,W,M,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[R++]=C;break}break;case 1:if(M=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[R++]=37,B[R++]=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[R++]=37,B[R++]=M,B[R++]=C;break}B[R++]=16*q+W;break}}return B.slice(0,R-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 q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&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 q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),M=W.length,X=M-1,R="",C=0;C<M;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,ce=0;ce<Q;++ce)R+=_+q(S(J[ce])),ce<Y&&(R+=D);Q&&C<X&&(R+=D)}else R+=_+q(S(J)),C<X&&(R+=D)}return R}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,M=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,ce="",ee="",ie=V,xe=V,we=0,he=0;he<L.length;++he){var fe=L.charCodeAt(he);if(fe===D.charCodeAt(Q)){if(++Q===M){var se=he-Q+1;if(Y<W?_<se&&(ce+=L.slice(_,se)):_<se&&(ee+=L.slice(_,se)),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}if(--R==0)break;ie=xe=V,we=0,ce=ee="",_=he+1,Q=Y=0}continue}else Q=0,xe||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(xe=!0):we=0);if(Y<W)if(fe===B.charCodeAt(Y)){if(++Y===W){var se=he-Y+1;_<se&&(ce+=L.slice(_,se)),we=0,_=he+1}continue}else Y=0,ie||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(ie=!0):we=0);fe===43&&(Y<W?(he-_>0&&(ce+=L.slice(_,he)),ce+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",xe=!0),_=he+1)}if(R>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?ce+=L.slice(_):Q<M&&(ee+=L.slice(_))),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}return q};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(q){for(var W=1;W<arguments.length;W++){var M=arguments[W];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(q[X]=M[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(q)}var d=function(){var q=function(M,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},q(M,X)};return function(W,M){q(W,M);function X(){this.constructor=W}W.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();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 q(){}return q.equals=function(W,M){var X=this,R=Object.keys,C=x(W),V=x(M);return W&&M&&C==="object"&&C===V?R(W).length===R(M).length&&R(W).every(function(J){return X.equals(W[J],M[J])}):W===M},q}(),D=function(){function q(W,M){this.editor=W,this.props=M}return q.prototype.delegateCursor=function(W,M,X){var R=this.editor.getDoc();X&&this.editor.focus(),M?R.setCursor(W):R.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,M){var X=this.editor.getDoc();X.setSelections(W),M&&this.editor.focus()},q.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)},q.prototype.applyNext=function(W,M,X){W&&W.selection&&W.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(W.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),W&&W.cursor&&M&&M.cursor&&!L.equals(W.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),W&&W.scroll&&M&&M.scroll&&!L.equals(W.scroll,M.scroll)&&this.delegateScroll(M.scroll)},q.prototype.applyUserDefined=function(W,M){M&&M.cursor&&this.delegateCursor(M.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var M=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(R,C){M.props.onBlur(M.editor,C)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,C){M.props.onContextMenu(M.editor,C)});break}case"onCopy":{M.editor.on("copy",function(R,C){M.props.onCopy(M.editor,C)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,C){M.props.onCut(M.editor,C)});break}case"onDblClick":{M.editor.on("dblclick",function(R,C){M.props.onDblClick(M.editor,C)});break}case"onDragEnter":M.editor.on("dragenter",function(R,C){M.props.onDragEnter(M.editor,C)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,C){M.props.onDragLeave(M.editor,C)});break}case"onDragOver":M.editor.on("dragover",function(R,C){M.props.onDragOver(M.editor,C)});break;case"onDragStart":{M.editor.on("dragstart",function(R,C){M.props.onDragStart(M.editor,C)});break}case"onDrop":M.editor.on("drop",function(R,C){M.props.onDrop(M.editor,C)});break;case"onFocus":M.editor.on("focus",function(R,C){M.props.onFocus(M.editor,C)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,C,V,J){M.props.onGutterClick(M.editor,C,V,J)});break;case"onInputRead":M.editor.on("inputRead",function(R,C){M.props.onInputRead(M.editor,C)});break;case"onKeyDown":M.editor.on("keydown",function(R,C){M.props.onKeyDown(M.editor,C)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,C,V){M.props.onKeyHandled(M.editor,C,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,C){M.props.onKeyPress(M.editor,C)});break;case"onKeyUp":M.editor.on("keyup",function(R,C){M.props.onKeyUp(M.editor,C)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,C){M.props.onMouseDown(M.editor,C)});break}case"onPaste":{M.editor.on("paste",function(R,C){M.props.onPaste(M.editor,C)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,C,V){M.props.onRenderLine(M.editor,C,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,C){M.props.onSelection(M.editor,C)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,C){M.props.onTouchStart(M.editor,C)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,C,V){M.props.onViewportChange(M.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},W.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(M){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==X.getValue()){var R=X.getCursor();X.setValue(M),X.setCursor(R)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var M=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(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!M.emulating){R.cancel(),M.deferred=R;var C=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,C)}}),this.editor.on("change",function(X,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.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(M){if(!S){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){return!S},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){R.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var M=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(X,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.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(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){var R=!0;return S&&(R=!1),this.detached&&M.detach&&(R=!1),R},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.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(Le,Me,Pe){return Object.defineProperty(Le,Me,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Me]}try{L({},"")}catch(Le){L=function(Me,Pe,rt){return Me[Pe]=rt}}function D(Le,Me,Pe,rt){var Ze=Me&&Me.prototype instanceof R?Me:R,Xe=Object.create(Ze.prototype),ft=new fe(rt||[]);return Xe._invoke=ie(Le,Pe,ft),Xe}a.wrap=D;function B(Le,Me,Pe){try{return{type:"normal",arg:Le.call(Me,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",M="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(se([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=R.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Me){L(Le,Me,function(Pe){return this._invoke(Me,Pe)})})}a.isGeneratorFunction=function(Le){var Me=typeof Le=="function"&&Le.constructor;return Me?Me===C||(Me.displayName||Me.name)==="GeneratorFunction":!1},a.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},a.awrap=function(Le){return{__await:Le}};function ee(Le,Me){function Pe(Xe,ft,ht,wt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")wt(nt.arg);else{var ut=nt.arg,mt=ut.value;return mt&&typeof mt=="object"&&v.call(mt,"__await")?Me.resolve(mt.__await).then(function(xt){Pe("next",xt,ht,wt)},function(xt){Pe("throw",xt,ht,wt)}):Me.resolve(mt).then(function(xt){ut.value=xt,ht(ut)},function(xt){return Pe("throw",xt,ht,wt)})}}var rt;function Ze(Xe,ft){function ht(){return new Me(function(wt,nt){Pe(Xe,ft,wt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}ce(ee.prototype),ee.prototype[S]=function(){return this},a.AsyncIterator=ee,a.async=function(Le,Me,Pe,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Me,Pe,rt),Ze);return a.isGeneratorFunction(Me)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Me,Pe){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===M){if(Xe==="throw")throw ft;return Fe()}for(Pe.method=Xe,Pe.arg=ft;;){var ht=Pe.delegate;if(ht){var wt=xe(ht,Pe);if(wt){if(wt===X)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=M,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=W;var nt=B(Le,Me,Pe);if(nt.type==="normal"){if(rt=Pe.done?M:q,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=M,Pe.method="throw",Pe.arg=nt.arg)}}}function xe(Le,Me){var Pe=Le.iterator[Me.method];if(Pe===x){if(Me.delegate=null,Me.method==="throw"){if(Le.iterator.return&&(Me.method="return",Me.arg=x,xe(Le,Me),Me.method==="throw"))return X;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Me.arg);if(rt.type==="throw")return Me.method="throw",Me.arg=rt.arg,Me.delegate=null,X;var Ze=rt.arg;if(!Ze)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,X;if(Ze.done)Me[Le.resultName]=Ze.value,Me.next=Le.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=x);else return Ze;return Me.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function we(Le){var Me={tryLoc:Le[0]};1 in Le&&(Me.catchLoc=Le[1]),2 in Le&&(Me.finallyLoc=Le[2],Me.afterLoc=Le[3]),this.tryEntries.push(Me)}function he(Le){var Me=Le.completion||{};Me.type="normal",delete Me.arg,Le.completion=Me}function fe(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(we,this),this.reset(!0)}a.keys=function(Le){var Me=[];for(var Pe in Le)Me.push(Pe);return Me.reverse(),function rt(){for(;Me.length;){var Ze=Me.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function se(Le){if(Le){var Me=Le[b];if(Me)return Me.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Ze(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Ze.value=Le[Pe],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}a.values=se;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(Le){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(he),!Le)for(var Me in this)Me.charAt(0)==="t"&&v.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Me=Le.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Me=this;function Pe(wt,nt){return Xe.type="throw",Xe.arg=Le,Me.next=wt,nt&&(Me.method="next",Me.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Pe("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Me){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Me){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Me&&(this.next=Me),X},finish:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Pe)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Me,Pe){return this.delegate={iterator:se(Le),resultName:Me,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},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),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},M=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return M(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return R(_,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(_||(_={key:{},next:null}),X(_,Y,ce))}};return Q}},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";/*!
530
+ `+pe.prev}function de(ae,pe){var Ee=nt(ae),je=[];if(Ee){je.length=ae.length;for(var Ve=0;Ve<ae.length;Ve++)je[Ve]=Vt(ae,Ve)?pe(ae[Ve],ae):""}var Qe=typeof fe=="function"?fe(ae):[],vt;if(Fe){vt={};for(var At=0;At<Qe.length;At++)vt["$"+Qe[At]]=Qe[At]}for(var Bt in ae)!Vt(ae,Bt)||Ee&&String(Number(Bt))===Bt&&Bt<ae.length||Fe&&vt["$"+Bt]instanceof Symbol||(ce.call(/[^\w$]/,Bt)?je.push(pe(Bt,ae)+": "+pe(ae[Bt],ae)):je.push(Bt+": "+pe(ae[Bt],ae)));if(typeof fe=="function")for(var Pt=0;Pt<Qe.length;Pt++)Me.call(ae,Qe[Pt])&&je.push("["+pe(Qe[Pt])+"]: "+pe(ae[Qe[Pt]],ae));return je}},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,q,W,M,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[R++]=C;break}break;case 1:if(M=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[R++]=37,B[R++]=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[R++]=37,B[R++]=M,B[R++]=C;break}B[R++]=16*q+W;break}}return B.slice(0,R-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 q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&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 q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),M=W.length,X=M-1,R="",C=0;C<M;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,ce=0;ce<Q;++ce)R+=_+q(S(J[ce])),ce<Y&&(R+=D);Q&&C<X&&(R+=D)}else R+=_+q(S(J)),C<X&&(R+=D)}return R}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,M=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,ce="",ee="",ie=V,xe=V,we=0,he=0;he<L.length;++he){var fe=L.charCodeAt(he);if(fe===D.charCodeAt(Q)){if(++Q===M){var oe=he-Q+1;if(Y<W?_<oe&&(ce+=L.slice(_,oe)):_<oe&&(ee+=L.slice(_,oe)),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}if(--R==0)break;ie=xe=V,we=0,ce=ee="",_=he+1,Q=Y=0}continue}else Q=0,xe||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(xe=!0):we=0);if(Y<W)if(fe===B.charCodeAt(Y)){if(++Y===W){var oe=he-Y+1;_<oe&&(ce+=L.slice(_,oe)),we=0,_=he+1}continue}else Y=0,ie||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(ie=!0):we=0);fe===43&&(Y<W?(he-_>0&&(ce+=L.slice(_,he)),ce+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",xe=!0),_=he+1)}if(R>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?ce+=L.slice(_):Q<M&&(ee+=L.slice(_))),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}return q};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(q){for(var W=1;W<arguments.length;W++){var M=arguments[W];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(q[X]=M[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(q)}var d=function(){var q=function(M,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},q(M,X)};return function(W,M){q(W,M);function X(){this.constructor=W}W.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();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 q(){}return q.equals=function(W,M){var X=this,R=Object.keys,C=x(W),V=x(M);return W&&M&&C==="object"&&C===V?R(W).length===R(M).length&&R(W).every(function(J){return X.equals(W[J],M[J])}):W===M},q}(),D=function(){function q(W,M){this.editor=W,this.props=M}return q.prototype.delegateCursor=function(W,M,X){var R=this.editor.getDoc();X&&this.editor.focus(),M?R.setCursor(W):R.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,M){var X=this.editor.getDoc();X.setSelections(W),M&&this.editor.focus()},q.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)},q.prototype.applyNext=function(W,M,X){W&&W.selection&&W.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(W.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),W&&W.cursor&&M&&M.cursor&&!L.equals(W.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),W&&W.scroll&&M&&M.scroll&&!L.equals(W.scroll,M.scroll)&&this.delegateScroll(M.scroll)},q.prototype.applyUserDefined=function(W,M){M&&M.cursor&&this.delegateCursor(M.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var M=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(R,C){M.props.onBlur(M.editor,C)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,C){M.props.onContextMenu(M.editor,C)});break}case"onCopy":{M.editor.on("copy",function(R,C){M.props.onCopy(M.editor,C)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,C){M.props.onCut(M.editor,C)});break}case"onDblClick":{M.editor.on("dblclick",function(R,C){M.props.onDblClick(M.editor,C)});break}case"onDragEnter":M.editor.on("dragenter",function(R,C){M.props.onDragEnter(M.editor,C)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,C){M.props.onDragLeave(M.editor,C)});break}case"onDragOver":M.editor.on("dragover",function(R,C){M.props.onDragOver(M.editor,C)});break;case"onDragStart":{M.editor.on("dragstart",function(R,C){M.props.onDragStart(M.editor,C)});break}case"onDrop":M.editor.on("drop",function(R,C){M.props.onDrop(M.editor,C)});break;case"onFocus":M.editor.on("focus",function(R,C){M.props.onFocus(M.editor,C)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,C,V,J){M.props.onGutterClick(M.editor,C,V,J)});break;case"onInputRead":M.editor.on("inputRead",function(R,C){M.props.onInputRead(M.editor,C)});break;case"onKeyDown":M.editor.on("keydown",function(R,C){M.props.onKeyDown(M.editor,C)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,C,V){M.props.onKeyHandled(M.editor,C,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,C){M.props.onKeyPress(M.editor,C)});break;case"onKeyUp":M.editor.on("keyup",function(R,C){M.props.onKeyUp(M.editor,C)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,C){M.props.onMouseDown(M.editor,C)});break}case"onPaste":{M.editor.on("paste",function(R,C){M.props.onPaste(M.editor,C)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,C,V){M.props.onRenderLine(M.editor,C,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,C){M.props.onSelection(M.editor,C)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,C){M.props.onTouchStart(M.editor,C)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,C,V){M.props.onViewportChange(M.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},W.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(M){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==X.getValue()){var R=X.getCursor();X.setValue(M),X.setCursor(R)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var M=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(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!M.emulating){R.cancel(),M.deferred=R;var C=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,C)}}),this.editor.on("change",function(X,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.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(M){if(!S){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){return!S},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){R.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var M=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(X,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.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(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){var R=!0;return S&&(R=!1),this.detached&&M.detach&&(R=!1),R},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.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(Le,Me,Pe){return Object.defineProperty(Le,Me,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Me]}try{L({},"")}catch(Le){L=function(Me,Pe,rt){return Me[Pe]=rt}}function D(Le,Me,Pe,rt){var Ze=Me&&Me.prototype instanceof R?Me:R,Xe=Object.create(Ze.prototype),ft=new fe(rt||[]);return Xe._invoke=ie(Le,Pe,ft),Xe}a.wrap=D;function B(Le,Me,Pe){try{return{type:"normal",arg:Le.call(Me,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",M="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=R.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Me){L(Le,Me,function(Pe){return this._invoke(Me,Pe)})})}a.isGeneratorFunction=function(Le){var Me=typeof Le=="function"&&Le.constructor;return Me?Me===C||(Me.displayName||Me.name)==="GeneratorFunction":!1},a.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},a.awrap=function(Le){return{__await:Le}};function ee(Le,Me){function Pe(Xe,ft,ht,wt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")wt(nt.arg);else{var ut=nt.arg,mt=ut.value;return mt&&typeof mt=="object"&&v.call(mt,"__await")?Me.resolve(mt.__await).then(function(xt){Pe("next",xt,ht,wt)},function(xt){Pe("throw",xt,ht,wt)}):Me.resolve(mt).then(function(xt){ut.value=xt,ht(ut)},function(xt){return Pe("throw",xt,ht,wt)})}}var rt;function Ze(Xe,ft){function ht(){return new Me(function(wt,nt){Pe(Xe,ft,wt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}ce(ee.prototype),ee.prototype[S]=function(){return this},a.AsyncIterator=ee,a.async=function(Le,Me,Pe,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Me,Pe,rt),Ze);return a.isGeneratorFunction(Me)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Me,Pe){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===M){if(Xe==="throw")throw ft;return Fe()}for(Pe.method=Xe,Pe.arg=ft;;){var ht=Pe.delegate;if(ht){var wt=xe(ht,Pe);if(wt){if(wt===X)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=M,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=W;var nt=B(Le,Me,Pe);if(nt.type==="normal"){if(rt=Pe.done?M:q,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=M,Pe.method="throw",Pe.arg=nt.arg)}}}function xe(Le,Me){var Pe=Le.iterator[Me.method];if(Pe===x){if(Me.delegate=null,Me.method==="throw"){if(Le.iterator.return&&(Me.method="return",Me.arg=x,xe(Le,Me),Me.method==="throw"))return X;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Me.arg);if(rt.type==="throw")return Me.method="throw",Me.arg=rt.arg,Me.delegate=null,X;var Ze=rt.arg;if(!Ze)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,X;if(Ze.done)Me[Le.resultName]=Ze.value,Me.next=Le.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=x);else return Ze;return Me.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function we(Le){var Me={tryLoc:Le[0]};1 in Le&&(Me.catchLoc=Le[1]),2 in Le&&(Me.finallyLoc=Le[2],Me.afterLoc=Le[3]),this.tryEntries.push(Me)}function he(Le){var Me=Le.completion||{};Me.type="normal",delete Me.arg,Le.completion=Me}function fe(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(we,this),this.reset(!0)}a.keys=function(Le){var Me=[];for(var Pe in Le)Me.push(Pe);return Me.reverse(),function rt(){for(;Me.length;){var Ze=Me.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function oe(Le){if(Le){var Me=Le[b];if(Me)return Me.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Ze(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Ze.value=Le[Pe],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}a.values=oe;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(Le){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(he),!Le)for(var Me in this)Me.charAt(0)==="t"&&v.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Me=Le.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Me=this;function Pe(wt,nt){return Xe.type="throw",Xe.arg=Le,Me.next=wt,nt&&(Me.method="next",Me.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Pe("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Me){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Me){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Me&&(this.next=Me),X},finish:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Pe)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Me,Pe){return this.delegate={iterator:oe(Le),resultName:Me,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},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),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},M=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return M(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return R(_,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(_||(_={key:{},next:null}),X(_,Y,ce))}};return Q}},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";/*!
532
531
  * The buffer module from node.js, for the browser.
533
532
  *
534
533
  * @author Feross Aboukhadijeh <https://feross.org>
535
534
  * @license MIT
536
- */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 K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){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(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return M(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=K.valueOf&&K.valueOf();if(le!=null&&le!==K)return g.from(le,T,O);const N=R(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[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 K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let le=S(O);const N=le.write(K,T);return N!==O&&(le=le.slice(0,N)),le}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let le=0;le<T;le+=1)O[le]=K[le]&255;return O}function M(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.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(K):O===void 0?le=new Uint8Array(K,T):le=new Uint8Array(K,T,O),Object.setPrototypeOf(le,g.prototype),le}function R(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}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,de=Math.min(le,N);re<de;++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 de=T[le];if(Ie(de,Uint8Array))re+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,re)):Uint8Array.prototype.set.call(N,de,re);else if(g.isBuffer(de))de.copy(N,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.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(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return le?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,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(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return se(this,T,O);case"ascii":return Me(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 Ze(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const le=K[T];K[T]=K[O],K[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)Q(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)Q(this,O,O+3),Q(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)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(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):_.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 de=re-N,ae=le-O;const pe=Math.min(de,ae),Ee=this.slice(N,re),Ue=T.slice(O,le);for(let je=0;je<pe;++je)if(Ee[je]!==Ue[je]){de=Ee[je],ae=Ue[je];break}return de<ae?-1:ae<de?1:0};function Y(K,T,O,le,N){if(K.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:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.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:ce(K,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,le,N){let re=1,de=K.length,ae=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(K.length<2||T.length<2)return-1;re=2,de/=2,ae/=2,O/=2}function pe(Ue,je){return re===1?Ue[je]:Ue.readUInt16BE(je*re)}let Ee;if(N){let Ue=-1;for(Ee=O;Ee<de;Ee++)if(pe(K,Ee)===pe(T,Ue===-1?0:Ee-Ue)){if(Ue===-1&&(Ue=Ee),Ee-Ue+1===ae)return Ue*re}else Ue!==-1&&(Ee-=Ee-Ue),Ue=-1}else for(O+ae>de&&(O=de-ae),Ee=O;Ee>=0;Ee--){let Ue=!0;for(let je=0;je<ae;je++)if(pe(K,Ee+je)!==pe(T,je)){Ue=!1;break}if(Ue)return Ee}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return Y(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return Y(this,T,O,le,!1)};function ee(K,T,O,le){O=Number(O)||0;const N=K.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const re=T.length;le>re/2&&(le=re/2);let de;for(de=0;de<le;++de){const ae=parseInt(T.substr(de*2,2),16);if(Ge(ae))return de;K[O+de]=ae}return de}function ie(K,T,O,le){return Se(Dt(T,K.length-O),K,O,le)}function xe(K,T,O,le){return Se(ve(T),K,O,le)}function we(K,T,O,le){return Se($(T),K,O,le)}function he(K,T,O,le){return Se(z(T,K.length-O),K,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 de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,le);case"utf8":case"utf-8":return ie(this,T,O,le);case"ascii":case"latin1":case"binary":return xe(this,T,O,le);case"base64":return we(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,le);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function se(K,T,O){O=Math.min(K.length,O);const le=[];let N=T;for(;N<O;){const re=K[N];let de=null,ae=re>239?4:re>223?3:re>191?2:1;if(N+ae<=O){let pe,Ee,Ue,je;switch(ae){case 1:re<128&&(de=re);break;case 2:pe=K[N+1],(pe&192)==128&&(je=(re&31)<<6|pe&63,je>127&&(de=je));break;case 3:pe=K[N+1],Ee=K[N+2],(pe&192)==128&&(Ee&192)==128&&(je=(re&15)<<12|(pe&63)<<6|Ee&63,je>2047&&(je<55296||je>57343)&&(de=je));break;case 4:pe=K[N+1],Ee=K[N+2],Ue=K[N+3],(pe&192)==128&&(Ee&192)==128&&(Ue&192)==128&&(je=(re&15)<<18|(pe&63)<<12|(Ee&63)<<6|Ue&63,je>65535&&je<1114112&&(de=je))}}de===null?(de=65533,ae=1):de>65535&&(de-=65536,le.push(de>>>10&1023|55296),de=56320|de&1023),le.push(de),N+=ae}return Le(le)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,K.slice(le,le+=Fe));return O}function Me(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]&127);return le}function Pe(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]);return le}function rt(K,T,O){const le=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let re=T;re<O;++re)N+=Ke[K[re]];return N}function Ze(K,T,O){const le=K.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 Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+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||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(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||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(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||Xe(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)&&jt(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,Ht(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(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||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*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||Xe(T,O,this.length);let N=O,re=1,de=this[T+--N];for(;N>0&&(re*=256);)de+=this[T+--N]*re;return re*=128,de>=re&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(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||Xe(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||Xe(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||Xe(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)&&jt(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)&&jt(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||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,le,N,re){if(!g.isBuffer(K))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>K.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;ft(this,T,O,le,ae,0)}let re=1,de=0;for(this[O]=T&255;++de<le&&(re*=256);)this[O+de]=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 ae=Math.pow(2,8*le)-1;ft(this,T,O,le,ae,0)}let re=le-1,de=1;for(this[O+re]=T&255;--re>=0&&(de*=256);)this[O+re]=T/de&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(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||ft(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||ft(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||ft(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||ft(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(K,T,O,le,N){Et(T,le,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function wt(K,T,O,le,N){Et(T,le,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O+7]=re,re=re>>8,K[O+6]=re,re=re>>8,K[O+5]=re,re=re>>8,K[O+4]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,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 pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let re=0,de=1,ae=0;for(this[O]=T&255;++re<le&&(de*=256);)T<0&&ae===0&&this[O+re-1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let re=le-1,de=1,ae=0;for(this[O+re]=T&255;--re>=0&&(de*=256);)T<0&&ae===0&&this[O+re+1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(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||ft(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||ft(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||ft(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||ft(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 nt(K,T,O,le,N,re){if(O+le>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return ut(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return ut(this,T,O,!1,le)};function mt(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return mt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return mt(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 de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}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 de=g.isBuffer(T)?T:g.from(T,N),ae=de.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(re=0;re<le-O;++re)this[re+O]=de[re%ae]}return this};const xt={};function pt(K,T,O){xt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let le=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=Mt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=Mt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function Mt(K){let T="",O=K.length;const le=K[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){Ht(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Et(K,T,O,le,N,re){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ae;throw re>3?T===0||T===BigInt(0)?ae=`>= 0${de} and < 2${de} ** ${(re+1)*8}${de}`:ae=`>= -(2${de} ** ${(re+1)*8-1}${de}) and < 2 ** ${(re+1)*8-1}${de}`:ae=`>= ${T}${de} and <= ${O}${de}`,new xt.ERR_OUT_OF_RANGE("value",ae,K)}kt(le,N,re)}function Ht(K,T){if(typeof K!="number")throw new xt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(Ht(K,O),new xt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new xt.ERR_BUFFER_OUT_OF_BOUNDS:new xt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const le=K.length;let N=null;const re=[];for(let de=0;de<le;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&re.push(239,191,189);continue}else if(de+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 ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,le,N;const re=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),le=O>>8,N=O%256,re.push(N),re.push(le);return re}function $(K){return c.toByteArray(St(K))}function Se(K,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="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]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Re:K}function Re(){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(M,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,M){return W&&typeof W=="string"&&M.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(M,X){var R={},C=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var ce=J[Q],ee=ce.indexOf("]="),ie=ee===-1?ce.indexOf("="):ee+1,xe,we;ie===-1?(xe=X.decoder(ce,d.decoder,Y,"key"),we=X.strictNullHandling?null:""):(xe=X.decoder(ce.slice(0,ie),d.decoder,Y,"key"),we=c.maybeMap(S(ce.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),we&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(we=b(we)),ce.indexOf("[]=")>-1&&(we=x(we)?[we]:we),v.call(R,xe)?R[xe]=c.combine(R[xe],we):R[xe]=we}return R},B=function(W,M,X,R){for(var C=R?M:S(M,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(M,X,R,C){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!R.plainObjects&&v.call(Object.prototype,Y)&&!R.allowPrototypes)return;ce.push(Y)}for(var ee=0;R.depth>0&&(Q=_.exec(V))!==null&&ee<R.depth;){if(ee+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,R,C)}},q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");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 X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(W,M){var X=q(M);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var _=V[J],Q=j(_,R[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.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(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},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(R){return D.call(R)},skipNulls:!1,strictNullHandling:!1},q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},W=function X(R,C,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,se){var Fe=R;if(se.has(R))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,fe,"key",xe):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,fe,"key",xe);return[we(Le)+"="+we(Q(Fe,j.encoder,fe,"value",xe))]}return[we(C)+"="+we(String(Fe))]}var Me=[];if(typeof Fe=="undefined")return Me;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=ce?rt.sort(ce):rt}for(var Ze=0;Ze<Pe.length;++Ze){var Xe=Pe[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");se.set(R,!0);var wt=c();L(Me,X(ft,ht,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,wt))}}return Me},M=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;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 V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],_=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(_=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=M(R),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;R&&R.arrayFormat in b?Y=R.arrayFormat:R&&"indices"in R?Y=R.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var xe=J[ie];V.skipNulls&&C[xe]===null||L(Q,W(C[xe],xe,ce,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,ee))}var we=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),we.length>0?he+we:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=R(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=R(Q[Y],ce,J):Q[Y]=ce,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){ce+=Y.charAt(ee);continue}if(ie<128){ce=ce+d[ie];continue}if(ie<2048){ce=ce+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){ce=ce+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),ce+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ie=ce[ee],xe=Y[ie];typeof xe=="object"&&xe!==null&&J.indexOf(xe)===-1&&(V.push({obj:Y,prop:ie}),J.push(xe))}return b(V),C},q=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))},M=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:M,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},a.prototype.has=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},a.prototype.set=function(M,X){for(var R=this.value,C=0;C<M.length-1;C++){var V=M[C];W.call(R,V)||(R[V]={}),R=R[V]}return R[M[C]]=X,X},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=M.call(this,C,V))}),C},a.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],X=[];return function R(C){for(var V=0;V<M.length;V++)if(M[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return M.push(C),X.push(J),q(x(C),function(_){J[_]=R(C[_])}),M.pop(),X.pop(),J}else return C}(this.value)};function c(M,X,R){var C=[],V=[],J=!0;return function _(Q){var Y=R?v(Q):Q,ce={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,fe){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,fe&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){ce.before=he},after:function(he){ce.after=he},pre:function(he){ce.pre=he},post:function(he){ce.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function xe(){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 he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}xe();var we=X.call(ie,ie.node);return we!==void 0&&ie.update&&ie.update(we),ce.before&&ce.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),xe(),q(ie.keys,function(he,fe){C.push(he),ce.pre&&ce.pre.call(ie,ie.node[he],he);var se=_(ie.node[he]);R&&W.call(ie.node,he)&&(ie.node[he]=se.node),se.isLast=fe==ie.keys.length-1,se.isFirst=fe==0,ce.post&&ce.post.call(ie,se),C.pop()}),V.pop()),ce.after&&ce.after.call(ie,ie.node)),ie}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(j(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(S(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(L(M))X=new Boolean(M);else if(D(M))X=new Number(M);else if(B(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},C=function(){};C.prototype=R,X=new C}return q(x(M),function(V){X[V]=M[V]}),X}else return M}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function S(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function L(M){return d(M)==="[object Boolean]"}function D(M){return d(M)==="[object Number]"}function B(M){return d(M)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(M,X){if(M.forEach)return M.forEach(X);for(var R=0;R<M.length;R++)X(M[R],R,M)};q(x(a.prototype),function(M){I[M]=function(X){var R=[].slice.call(arguments,1),C=new a(X);return C[M].apply(C,R)}});var W=Object.hasOwnProperty||function(M,X){return X in M}},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:()=>{}}]);
535
+ */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 K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){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(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return M(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=K.valueOf&&K.valueOf();if(le!=null&&le!==K)return g.from(le,T,O);const N=R(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[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 K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let le=S(O);const N=le.write(K,T);return N!==O&&(le=le.slice(0,N)),le}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let le=0;le<T;le+=1)O[le]=K[le]&255;return O}function M(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.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(K):O===void 0?le=new Uint8Array(K,T):le=new Uint8Array(K,T,O),Object.setPrototypeOf(le,g.prototype),le}function R(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}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,de=Math.min(le,N);re<de;++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 de=T[le];if(Ie(de,Uint8Array))re+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,re)):Uint8Array.prototype.set.call(N,de,re);else if(g.isBuffer(de))de.copy(N,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.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(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return le?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,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(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return oe(this,T,O);case"ascii":return Me(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 Ze(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const le=K[T];K[T]=K[O],K[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)Q(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)Q(this,O,O+3),Q(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)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?oe(this,0,T):_.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 de=re-N,ae=le-O;const pe=Math.min(de,ae),Ee=this.slice(N,re),je=T.slice(O,le);for(let Ve=0;Ve<pe;++Ve)if(Ee[Ve]!==je[Ve]){de=Ee[Ve],ae=je[Ve];break}return de<ae?-1:ae<de?1:0};function Y(K,T,O,le,N){if(K.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:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.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:ce(K,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,le,N){let re=1,de=K.length,ae=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(K.length<2||T.length<2)return-1;re=2,de/=2,ae/=2,O/=2}function pe(je,Ve){return re===1?je[Ve]:je.readUInt16BE(Ve*re)}let Ee;if(N){let je=-1;for(Ee=O;Ee<de;Ee++)if(pe(K,Ee)===pe(T,je===-1?0:Ee-je)){if(je===-1&&(je=Ee),Ee-je+1===ae)return je*re}else je!==-1&&(Ee-=Ee-je),je=-1}else for(O+ae>de&&(O=de-ae),Ee=O;Ee>=0;Ee--){let je=!0;for(let Ve=0;Ve<ae;Ve++)if(pe(K,Ee+Ve)!==pe(T,Ve)){je=!1;break}if(je)return Ee}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return Y(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return Y(this,T,O,le,!1)};function ee(K,T,O,le){O=Number(O)||0;const N=K.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const re=T.length;le>re/2&&(le=re/2);let de;for(de=0;de<le;++de){const ae=parseInt(T.substr(de*2,2),16);if(Ge(ae))return de;K[O+de]=ae}return de}function ie(K,T,O,le){return Se(Dt(T,K.length-O),K,O,le)}function xe(K,T,O,le){return Se(ve(T),K,O,le)}function we(K,T,O,le){return Se($(T),K,O,le)}function he(K,T,O,le){return Se(z(T,K.length-O),K,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 de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,le);case"utf8":case"utf-8":return ie(this,T,O,le);case"ascii":case"latin1":case"binary":return xe(this,T,O,le);case"base64":return we(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,le);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function oe(K,T,O){O=Math.min(K.length,O);const le=[];let N=T;for(;N<O;){const re=K[N];let de=null,ae=re>239?4:re>223?3:re>191?2:1;if(N+ae<=O){let pe,Ee,je,Ve;switch(ae){case 1:re<128&&(de=re);break;case 2:pe=K[N+1],(pe&192)==128&&(Ve=(re&31)<<6|pe&63,Ve>127&&(de=Ve));break;case 3:pe=K[N+1],Ee=K[N+2],(pe&192)==128&&(Ee&192)==128&&(Ve=(re&15)<<12|(pe&63)<<6|Ee&63,Ve>2047&&(Ve<55296||Ve>57343)&&(de=Ve));break;case 4:pe=K[N+1],Ee=K[N+2],je=K[N+3],(pe&192)==128&&(Ee&192)==128&&(je&192)==128&&(Ve=(re&15)<<18|(pe&63)<<12|(Ee&63)<<6|je&63,Ve>65535&&Ve<1114112&&(de=Ve))}}de===null?(de=65533,ae=1):de>65535&&(de-=65536,le.push(de>>>10&1023|55296),de=56320|de&1023),le.push(de),N+=ae}return Le(le)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,K.slice(le,le+=Fe));return O}function Me(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]&127);return le}function Pe(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]);return le}function rt(K,T,O){const le=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let re=T;re<O;++re)N+=Ke[K[re]];return N}function Ze(K,T,O){const le=K.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 Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+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||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(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||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(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||Xe(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)&&jt(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,Ht(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(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||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*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||Xe(T,O,this.length);let N=O,re=1,de=this[T+--N];for(;N>0&&(re*=256);)de+=this[T+--N]*re;return re*=128,de>=re&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(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||Xe(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||Xe(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||Xe(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)&&jt(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)&&jt(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||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,le,N,re){if(!g.isBuffer(K))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>K.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;ft(this,T,O,le,ae,0)}let re=1,de=0;for(this[O]=T&255;++de<le&&(re*=256);)this[O+de]=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 ae=Math.pow(2,8*le)-1;ft(this,T,O,le,ae,0)}let re=le-1,de=1;for(this[O+re]=T&255;--re>=0&&(de*=256);)this[O+re]=T/de&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(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||ft(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||ft(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||ft(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||ft(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(K,T,O,le,N){Et(T,le,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function wt(K,T,O,le,N){Et(T,le,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O+7]=re,re=re>>8,K[O+6]=re,re=re>>8,K[O+5]=re,re=re>>8,K[O+4]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,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 pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let re=0,de=1,ae=0;for(this[O]=T&255;++re<le&&(de*=256);)T<0&&ae===0&&this[O+re-1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let re=le-1,de=1,ae=0;for(this[O+re]=T&255;--re>=0&&(de*=256);)T<0&&ae===0&&this[O+re+1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(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||ft(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||ft(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||ft(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||ft(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 nt(K,T,O,le,N,re){if(O+le>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return ut(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return ut(this,T,O,!1,le)};function mt(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return mt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return mt(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 de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}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 de=g.isBuffer(T)?T:g.from(T,N),ae=de.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(re=0;re<le-O;++re)this[re+O]=de[re%ae]}return this};const xt={};function pt(K,T,O){xt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let le=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=Mt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=Mt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function Mt(K){let T="",O=K.length;const le=K[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){Ht(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Et(K,T,O,le,N,re){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ae;throw re>3?T===0||T===BigInt(0)?ae=`>= 0${de} and < 2${de} ** ${(re+1)*8}${de}`:ae=`>= -(2${de} ** ${(re+1)*8-1}${de}) and < 2 ** ${(re+1)*8-1}${de}`:ae=`>= ${T}${de} and <= ${O}${de}`,new xt.ERR_OUT_OF_RANGE("value",ae,K)}kt(le,N,re)}function Ht(K,T){if(typeof K!="number")throw new xt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(Ht(K,O),new xt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new xt.ERR_BUFFER_OUT_OF_BOUNDS:new xt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const le=K.length;let N=null;const re=[];for(let de=0;de<le;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&re.push(239,191,189);continue}else if(de+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 ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,le,N;const re=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),le=O>>8,N=O%256,re.push(N),re.push(le);return re}function $(K){return c.toByteArray(St(K))}function Se(K,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="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]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Re:K}function Re(){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(M,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,M){return W&&typeof W=="string"&&M.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(M,X){var R={},C=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var ce=J[Q],ee=ce.indexOf("]="),ie=ee===-1?ce.indexOf("="):ee+1,xe,we;ie===-1?(xe=X.decoder(ce,d.decoder,Y,"key"),we=X.strictNullHandling?null:""):(xe=X.decoder(ce.slice(0,ie),d.decoder,Y,"key"),we=c.maybeMap(S(ce.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),we&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(we=b(we)),ce.indexOf("[]=")>-1&&(we=x(we)?[we]:we),v.call(R,xe)?R[xe]=c.combine(R[xe],we):R[xe]=we}return R},B=function(W,M,X,R){for(var C=R?M:S(M,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(M,X,R,C){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!R.plainObjects&&v.call(Object.prototype,Y)&&!R.allowPrototypes)return;ce.push(Y)}for(var ee=0;R.depth>0&&(Q=_.exec(V))!==null&&ee<R.depth;){if(ee+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,R,C)}},q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");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 X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(W,M){var X=q(M);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var _=V[J],Q=j(_,R[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.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(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},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(R){return D.call(R)},skipNulls:!1,strictNullHandling:!1},q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},W=function X(R,C,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,oe){var Fe=R;if(oe.has(R))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,fe,"key",xe):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,fe,"key",xe);return[we(Le)+"="+we(Q(Fe,j.encoder,fe,"value",xe))]}return[we(C)+"="+we(String(Fe))]}var Me=[];if(typeof Fe=="undefined")return Me;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=ce?rt.sort(ce):rt}for(var Ze=0;Ze<Pe.length;++Ze){var Xe=Pe[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");oe.set(R,!0);var wt=c();L(Me,X(ft,ht,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,wt))}}return Me},M=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;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 V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],_=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(_=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=M(R),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;R&&R.arrayFormat in b?Y=R.arrayFormat:R&&"indices"in R?Y=R.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var xe=J[ie];V.skipNulls&&C[xe]===null||L(Q,W(C[xe],xe,ce,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,ee))}var we=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),we.length>0?he+we:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=R(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=R(Q[Y],ce,J):Q[Y]=ce,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){ce+=Y.charAt(ee);continue}if(ie<128){ce=ce+d[ie];continue}if(ie<2048){ce=ce+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){ce=ce+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),ce+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ie=ce[ee],xe=Y[ie];typeof xe=="object"&&xe!==null&&J.indexOf(xe)===-1&&(V.push({obj:Y,prop:ie}),J.push(xe))}return b(V),C},q=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))},M=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:M,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},a.prototype.has=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},a.prototype.set=function(M,X){for(var R=this.value,C=0;C<M.length-1;C++){var V=M[C];W.call(R,V)||(R[V]={}),R=R[V]}return R[M[C]]=X,X},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=M.call(this,C,V))}),C},a.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],X=[];return function R(C){for(var V=0;V<M.length;V++)if(M[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return M.push(C),X.push(J),q(x(C),function(_){J[_]=R(C[_])}),M.pop(),X.pop(),J}else return C}(this.value)};function c(M,X,R){var C=[],V=[],J=!0;return function _(Q){var Y=R?v(Q):Q,ce={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,fe){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,fe&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){ce.before=he},after:function(he){ce.after=he},pre:function(he){ce.pre=he},post:function(he){ce.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function xe(){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 he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}xe();var we=X.call(ie,ie.node);return we!==void 0&&ie.update&&ie.update(we),ce.before&&ce.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),xe(),q(ie.keys,function(he,fe){C.push(he),ce.pre&&ce.pre.call(ie,ie.node[he],he);var oe=_(ie.node[he]);R&&W.call(ie.node,he)&&(ie.node[he]=oe.node),oe.isLast=fe==ie.keys.length-1,oe.isFirst=fe==0,ce.post&&ce.post.call(ie,oe),C.pop()}),V.pop()),ce.after&&ce.after.call(ie,ie.node)),ie}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(j(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(S(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(L(M))X=new Boolean(M);else if(D(M))X=new Number(M);else if(B(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},C=function(){};C.prototype=R,X=new C}return q(x(M),function(V){X[V]=M[V]}),X}else return M}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function S(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function L(M){return d(M)==="[object Boolean]"}function D(M){return d(M)==="[object Number]"}function B(M){return d(M)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(M,X){if(M.forEach)return M.forEach(X);for(var R=0;R<M.length;R++)X(M[R],R,M)};q(x(a.prototype),function(M){I[M]=function(X){var R=[].slice.call(arguments,1),C=new a(X);return C[M].apply(C,R)}});var W=Object.hasOwnProperty||function(M,X){return X in M}},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:()=>{}}]);