@sheetxl/studio-vanilla 0.4.9 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +1 -1
  2. package/browser/cjs/B0rdyyttE2Aibsag.cjs +7 -0
  3. package/browser/cjs/B2e7dDI-zKoqXpIW.cjs +107 -0
  4. package/browser/cjs/BAyEOOtO-9sHQQRW.cjs +7 -0
  5. package/browser/cjs/BPTHTRDvNOVkUJGa.cjs +7 -0
  6. package/browser/cjs/BlSFY6zLlebuejdV.cjs +7 -0
  7. package/browser/cjs/BplA5pDzOJpfTZuA.cjs +7 -0
  8. package/browser/cjs/BshvMtUxTJHj3JQN.cjs +7 -0
  9. package/browser/cjs/BuWtGFX0HiBezGjw.cjs +7 -0
  10. package/browser/cjs/C5FXOMLhAu_KTjVe.cjs +7 -0
  11. package/browser/cjs/C7EZCTczsC-gkRcq.cjs +7 -0
  12. package/browser/cjs/CFcjX5-nVsgzdZ4F.cjs +7 -0
  13. package/browser/cjs/CjZbhk41S1qO_74G.cjs +7 -0
  14. package/browser/cjs/CuTW2Pt-L5n-hNxV.cjs +7 -0
  15. package/browser/cjs/D3iOk-Q2tRdUeTcn.cjs +7 -0
  16. package/browser/cjs/DFspSkki779xN-Ey.cjs +7 -0
  17. package/browser/cjs/DFtyXc7YFh9dIp74.cjs +7 -0
  18. package/browser/cjs/Db_Ew1r6yOMYylvA.cjs +7 -0
  19. package/browser/cjs/DgBn3aW39yjgm0X_.cjs +7 -0
  20. package/browser/cjs/DiBy6-IxLscyMW2y.cjs +7 -0
  21. package/browser/cjs/DrlS1oz9Nea8Pm3j.cjs +7 -0
  22. package/browser/cjs/Dx-jp_LJxWbAScyA.cjs +7 -0
  23. package/browser/cjs/SzxJv7OUs5ojl8gx.cjs +7 -0
  24. package/browser/cjs/T4SHYo66xDT3l9JN.cjs +7 -0
  25. package/browser/cjs/index.cjs +4 -3
  26. package/browser/cjs/vfUix5Di0Ro8tEID.cjs +7 -0
  27. package/browser/esm/B5kkStdEkTczERyM.mjs +7 -0
  28. package/browser/esm/B905wKzTtod-jbsD.mjs +7 -0
  29. package/browser/esm/BALnKy2Fp7fyk-lc.mjs +7 -0
  30. package/browser/esm/BDVJ7eOPpW5FnEAP.mjs +7 -0
  31. package/browser/esm/BGpv6Kq7eBlJy43T.mjs +7 -0
  32. package/browser/esm/BUSR_OK5Qi6hRPfw.mjs +7 -0
  33. package/browser/esm/BXUGsC1Mo3FP8vnW.mjs +7 -0
  34. package/browser/esm/BlGoi1_x9rUMpWMd.mjs +7 -0
  35. package/browser/esm/Bo_ZPRrOQrqOVHAF.mjs +7 -0
  36. package/browser/esm/BuURCm92KsyGHG9e.mjs +7 -0
  37. package/browser/esm/CFFC0SNc24a0Dxnh.mjs +7 -0
  38. package/browser/esm/CGZ5MX7afzMxDkCe.mjs +7 -0
  39. package/browser/esm/Cc_VWd0wF5-39LsI.mjs +7 -0
  40. package/browser/esm/Cq8D_M0jeHLcnRjg.mjs +7 -0
  41. package/browser/esm/CzmNwV9tfFYUp_gS.mjs +7 -0
  42. package/browser/esm/De6RPxc4p_jXLlT5.mjs +7 -0
  43. package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +7 -0
  44. package/browser/esm/DqXxZP6yKF4U1YfY.mjs +7 -0
  45. package/browser/esm/DtmE60AvstK9u0Ta.mjs +107 -0
  46. package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +7 -0
  47. package/browser/esm/PS0cqYnlMVEGOQpI.mjs +7 -0
  48. package/browser/esm/QBGUD1XS5_pysBLL.mjs +7 -0
  49. package/browser/esm/index.mjs +2 -8
  50. package/browser/esm/tFhROdVSw9KLQfUN.mjs +7 -0
  51. package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +7 -0
  52. package/cdn/index.js +40 -44
  53. package/cdn/loader.js +1 -1
  54. package/package.json +5 -5
  55. package/types/index.d.ts +9 -9
  56. package/browser/cjs/3GhIDU8JK1oBJrCA.cjs +0 -6
  57. package/browser/cjs/5hPVyVAXmITQCRAG.cjs +0 -6
  58. package/browser/cjs/7PlrLPQx1lct0mdN.cjs +0 -6
  59. package/browser/cjs/B4K6KuggSdXj-V8g.cjs +0 -6
  60. package/browser/cjs/B5Qc3gXLEhscRsFm.cjs +0 -12
  61. package/browser/cjs/B7eW1GQgFvphlLGY.cjs +0 -6
  62. package/browser/cjs/BQPFxJ77OaD_sBIX.cjs +0 -6
  63. package/browser/cjs/Ba3O1f0NYbzEwNAd.cjs +0 -6
  64. package/browser/cjs/BoojmbbjqixMVu2H.cjs +0 -6
  65. package/browser/cjs/CSGVl8EBCRhxcFm1.cjs +0 -15
  66. package/browser/cjs/CalnqtYH48_x2rcI.cjs +0 -301
  67. package/browser/cjs/CjDsO4sQWUHbIX1N.cjs +0 -6
  68. package/browser/cjs/CsCaFaiySArzEfdH.cjs +0 -7
  69. package/browser/cjs/D6AUUY9awlTRjjqd.cjs +0 -11
  70. package/browser/cjs/D8lN5Mv3J4SwSpLP.cjs +0 -161
  71. package/browser/cjs/D9RQ5oYv7U38wSI7.cjs +0 -11
  72. package/browser/cjs/DCd2rPNFkSHDaRcM.cjs +0 -7
  73. package/browser/cjs/DGQrcBvjSGwwoZEv.cjs +0 -6
  74. package/browser/cjs/DIXyMJKaeCGuWxjZ.cjs +0 -12
  75. package/browser/cjs/Dmw7xaaV85s72QZe.cjs +0 -145
  76. package/browser/cjs/DzCXPcqV1oKbCcLO.cjs +0 -16
  77. package/browser/cjs/EoaX6dPoS-Mb-ITO.cjs +0 -42
  78. package/browser/cjs/Y6OgkWqbIB761o5q.cjs +0 -6
  79. package/browser/cjs/gbABnN2zW1kHo3_I.cjs +0 -19
  80. package/browser/cjs/kfV5Cli9oE9IsCtx.cjs +0 -6
  81. package/browser/cjs/nURb18uhj9rScsHa.cjs +0 -6
  82. package/browser/esm/2NQDbhor1Nuzndgq.mjs +0 -3756
  83. package/browser/esm/4aC35Q2XPOwifBRR.mjs +0 -1365
  84. package/browser/esm/5zFDFBAgT-aPgQQ0.mjs +0 -1665
  85. package/browser/esm/B3I_TrFN_pAK5Mdh.mjs +0 -2346
  86. package/browser/esm/BD9GKsR-k4aEK2tx.mjs +0 -421
  87. package/browser/esm/BQpsMTJvguy6LMIq.mjs +0 -43
  88. package/browser/esm/BfCWogOnq8R-c3dD.mjs +0 -21
  89. package/browser/esm/BkGQPKMRPIVUVTLO.mjs +0 -944
  90. package/browser/esm/C81J50HcankGTOIj.mjs +0 -390
  91. package/browser/esm/CO_s27056nua6qzN.mjs +0 -1346
  92. package/browser/esm/CPEjlDUTxckVS1rp.mjs +0 -50
  93. package/browser/esm/CY7astxzrfb7uZqy.mjs +0 -2178
  94. package/browser/esm/CZVzRhflTpwAAl1o.mjs +0 -22
  95. package/browser/esm/CaWZXQsmKl4hTNq5.mjs +0 -46
  96. package/browser/esm/CxcLNXXaxyFyUzyb.mjs +0 -633
  97. package/browser/esm/D0icxW0WVNoeVRLH.mjs +0 -58
  98. package/browser/esm/DFQvqk5r1uf_z0h_.mjs +0 -24994
  99. package/browser/esm/DRL5s4S0fIXi1aU7.mjs +0 -84
  100. package/browser/esm/DRmeb1VC4YCzKKWd.mjs +0 -13208
  101. package/browser/esm/DTwhl4v5YnZrUSgI.mjs +0 -24
  102. package/browser/esm/DmpPAs6w-XNWGTIN.mjs +0 -1703
  103. package/browser/esm/Dx-GS3XDBkRaMNG-.mjs +0 -151
  104. package/browser/esm/V5CA7xqGOB7-Qx4Y.mjs +0 -1467
  105. package/browser/esm/gsfI5CGYr7LCQxRx.mjs +0 -41
  106. package/browser/esm/tOBqasyBAnd7O4qE.mjs +0 -46
  107. package/browser/esm/tPrnEcHW_czJDZOT.mjs +0 -50
  108. package/cdn/assets/2NQDbhor1Nuzndgq.js +0 -3756
  109. package/cdn/assets/4aC35Q2XPOwifBRR.js +0 -1365
  110. package/cdn/assets/5zFDFBAgT-aPgQQ0.js +0 -1665
  111. package/cdn/assets/B0w_moB3pDJd-a6V.js +0 -24
  112. package/cdn/assets/BD9GKsR-k4aEK2tx.js +0 -421
  113. package/cdn/assets/BJVOhUH_XL03H6ZD.js +0 -22
  114. package/cdn/assets/BWJOkXXB6Tr-jYUS.js +0 -46
  115. package/cdn/assets/BapFqJyAb3cblvJM.js +0 -50
  116. package/cdn/assets/Bg88bG-JM9EHeyYX.js +0 -41
  117. package/cdn/assets/C81J50HcankGTOIj.js +0 -390
  118. package/cdn/assets/CO_s27056nua6qzN.js +0 -1346
  119. package/cdn/assets/CXa9u-7w14dyPYxk.js +0 -1703
  120. package/cdn/assets/CkcETdiKdTsZAzma.js +0 -1467
  121. package/cdn/assets/CxcLNXXaxyFyUzyb.js +0 -633
  122. package/cdn/assets/D0PaU6F-TNaTWj-a.js +0 -43
  123. package/cdn/assets/D4hoypx6_sZbvrC_.js +0 -2346
  124. package/cdn/assets/D5exf1RvCqvUoJ3X.js +0 -2178
  125. package/cdn/assets/DKLitAhDj5Ibh2cc.js +0 -24841
  126. package/cdn/assets/DRL5s4S0fIXi1aU7.js +0 -84
  127. package/cdn/assets/DRmeb1VC4YCzKKWd.js +0 -13208
  128. package/cdn/assets/DYkBvlMlZjOASUJs.js +0 -58
  129. package/cdn/assets/ON5--a75QdEU99y_.js +0 -151
  130. package/cdn/assets/PIZDjyqIbvmHXs1T.js +0 -46
  131. package/cdn/assets/TOkIJFYhNg78FdJa.js +0 -21
  132. package/cdn/assets/b9dlFmoFz8tJhV0Z.js +0 -50
  133. package/cdn/assets/d1PG-QPA1GcQ_RuH.js +0 -944
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,t={exports:{}};const i=function(e,t){for(var i=0;i<t.length;i++){const r=t[i];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[(e||(e=1,t.exports=function e(){var t,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},r=!i.document&&!!i.postMessage,n=i.IS_PAPA_WORKER||!1,s={},a=0,o={};function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)i.postMessage({results:s,workerId:o.WORKER_ID,finished:r});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!r||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):n&&this._config.error&&i.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),h.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,i=this._config.downloadRequestHeaders;for(e in i)t.setRequestHeader(e,i[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function l(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),a=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,f=0,l=0,c=!1,_=!1,m=[],y={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){if(y&&r&&(R("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!b(e)})),E()){if(y)if(Array.isArray(y.data[0])){for(var t=0;E()&&t<y.data.length;t++)y.data[t].forEach(d);y.data.splice(0,1)}else y.data.forEach(d);function d(t,i){v(e.transformHeader)&&(t=e.transformHeader(t,i)),m.push(t)}}function i(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var o=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),a<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(o=e.header?n>=m.length?"__parsed_extra":m[n]:o,d=e.transform?e.transform(d,o):d),"__parsed_extra"===o?(r[o]=r[o]||[],r[o].push(d)):r[o]=d}return e.header&&(n>m.length?R("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,l+i):n<m.length&&R("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,l+i)),r}var n;y&&(e.header||e.dynamicTyping||e.transform)&&(n=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),n=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),l+=n)}function E(){return e.header&&0===m.length}function R(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}v(e.step)&&(n=e.step,e.step=function(t){y=t,E()?w():(w(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,a){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var a,h,u,d;s=s||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<s.length;f++){for(var l,c=s[f],p=0,_=0,m=0,y=(u=void 0,new g({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&b(y.data[k])?m++:(_+=l=y.data[k].length,void 0===u?u=l:0<l&&(p+=Math.abs(l-u),u=l));0<y.data.length&&(_/=y.data.length-m),(void 0===h||p<=h)&&(void 0===d||d<_)&&1.99<_&&(h=p,a=c,d=_)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),y.meta.delimiter=e.delimiter),h=k(e),e.preview&&e.header&&h.preview++,t=n,i=new g(h),y=i.parse(t,s,a),w(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=v(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,i.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,a=e.fastMode,h=null,u=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var l=0,c=!1;this.parse=function(o,g,_){if("string"!=typeof o)throw new Error("Input must be a string");var m=o.length,y=t.length,k=i.length,b=r.length,w=v(n),E=[],R=[],C=[],S=l=0;if(!o)return P();if(a||!1!==a&&-1===o.indexOf(d)){for(var O=o.split(i),x=0;x<O.length;x++){if(C=O[x],l+=C.length,x!==O.length-1)l+=i.length;else if(_)return P();if(!r||C.substring(0,b)!==r){if(w){if(E=[],F(C.split(t)),U(),c)return P()}else F(C.split(t));if(s&&s<=x)return E=E.slice(0,s),P(!0)}}return P()}for(var A=o.indexOf(t,l),I=o.indexOf(i,l),T=new RegExp(p(f)+p(d),"g"),D=o.indexOf(d,l);;)if(o[l]===d)for(D=l,l++;;){if(-1===(D=o.indexOf(d,D+1)))return _||R.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:l}),M();if(D===m-1)return M(o.substring(l,D).replace(T,d));if(d===f&&o[D+1]===f)D++;else if(d===f||0===D||o[D-1]!==f){-1!==A&&A<D+1&&(A=o.indexOf(t,D+1));var L=j(-1===(I=-1!==I&&I<D+1?o.indexOf(i,D+1):I)?A:Math.min(A,I));if(o.substr(D+1+L,y)===t){C.push(o.substring(l,D).replace(T,d)),o[l=D+1+L+y]!==d&&(D=o.indexOf(d,l)),A=o.indexOf(t,l),I=o.indexOf(i,l);break}if(L=j(I),o.substring(D+1+L,D+1+L+k)===i){if(C.push(o.substring(l,D).replace(T,d)),z(D+1+L+k),A=o.indexOf(t,l),D=o.indexOf(d,l),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0);break}R.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:l}),D++}}else if(r&&0===C.length&&o.substring(l,l+b)===r){if(-1===I)return P();l=I+k,I=o.indexOf(i,l),A=o.indexOf(t,l)}else if(-1!==A&&(A<I||-1===I))C.push(o.substring(l,A)),l=A+y,A=o.indexOf(t,l);else{if(-1===I)break;if(C.push(o.substring(l,I)),z(I+k),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0)}return M();function F(e){E.push(e),S=l}function j(e){return-1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:0}function M(e){return _||(void 0===e&&(e=o.substring(l)),C.push(e),l=m,F(C),w&&U()),P()}function z(e){l=e,F(C),C=[],I=o.indexOf(i,l)}function P(r){if(e.header&&!g&&E.length&&!u){var n=E[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=n[i];if(s[r=v(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(h=null===h?{}:h)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:E,errors:R,meta:{delimiter:t,linebreak:i,aborted:c,truncated:!!r,cursor:S+(g||0),renamedHeaders:h}}}function U(){n(P()),E=[],R=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return l}}function _(e){var t=e.data,i=s[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(v(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!r);a++);delete t.results}else v(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=s[e];v(i.userComplete)&&i.userComplete(t),i.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return o.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(v(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!v(r.transform)&&r.transform,!r.worker||!o.WORKERS_SUPPORTED)return n=null,o.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(r.download?u:f)(r)):!0===t.readable&&v(t.read)&&v(t.on)?n=new l(r):(i.File&&t instanceof File||t instanceof Object)&&(n=new d(r)),n.stream(t);(n=(()=>{var t;return!!o.WORKERS_SUPPORTED&&(t=(()=>{var t=i.URL||i.webkitURL||null,r=e.toString();return o.BLOB_URL||(o.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new i.Worker(t)).onmessage=_,t.id=a++,s[t.id]=t)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=v(r.step),r.chunk=v(r.chunk),r.complete=v(r.complete),r.error=v(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},o.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",a='"',h=a+a,u=!1,d=null,f=!1,l=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=g(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var f=(o?e:t[d]).length,l=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(l="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],_=0;_<f;_++){var m=h?e[_]:_;p.push(t[d][m])}l=""===p.join("").trim()}if(!l){for(var y=0;y<f;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=g(t[d][k],y)}d<t.length-1&&(!i||0<f&&!c)&&(a+=s)}}return a}function g(e,t){var r,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,s=!0),r=e.toString().replace(l,h),(s=s||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(r,o.BAD_DELIMITERS)||-1<r.indexOf(n)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},o.RECORD_SEP=String.fromCharCode(30),o.UNIT_SEP=String.fromCharCode(31),o.BYTE_ORDER_MARK="\ufeff",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!i.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=g,o.ParserHandle=c,o.NetworkStreamer=u,o.FileStreamer=d,o.StringStreamer=f,o.ReadableStreamStreamer=l,i.jQuery&&((t=i.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},r)})}),s(),this;function s(){if(0===n.length)v(e.complete)&&e.complete();else{var i,r,s,h=n[0];if(v(e.before)){var u=e.before(h.file,h.inputElem);if("object"==typeof u){if("abort"===u.action)return i=h.file,r=h.inputElem,s=u.reason,void(v(e.error)&&e.error({name:"AbortError"},i,r,s));if("skip"===u.action)return void a();"object"==typeof u.config&&(h.instanceConfig=t.extend(h.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=h.instanceConfig.complete;h.instanceConfig.complete=function(e){v(d)&&d(e,h.file,h.inputElem),a()},o.parse(h.file,h.instanceConfig)}}function a(){n.splice(0,1),s()}}),n&&(i.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&i.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(f.prototype=Object.create(f.prototype)).constructor=f,(l.prototype=Object.create(h.prototype)).constructor=l,o}()),t.exports)]);exports.p=i;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,t,r={},n={},o={},i={},a={};function s(){if(t)return a;t=1;var e=a&&a.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},r=a&&a.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(a,"__esModule",{value:!0}),a.JsDelivrSourceResolver=void 0;var n=function(){function t(){}return t.prototype.resolvePackageJson=function(t,n,o){return e(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(n?"@".concat(n):"").concat(o?"/".concat(o):"","/package.json"))];case 1:return[2,e.sent()]}})})},t.prototype.resolveSourceFile=function(t,n,o){return e(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(n?"@".concat(n):"","/").concat(o))];case 1:return[2,e.sent()]}})})},t.prototype.resolveFile=function(t){return e(this,void 0,void 0,function(){var e;return r(this,function(r){switch(r.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(e=r.sent()).ok?[4,e.text()]:[3,3];case 2:return[2,r.sent()];case 3:if(404===e.status)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},t}();return a.JsDelivrSourceResolver=n,a}var c,u,l,p={},h={};function f(){if(u)return c;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var r,n="",o=0,i=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",o=0):o=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}u=1;var r={resolve:function(){for(var r,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===r&&(r=process.cwd()),a=r),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0))}return n=t(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(r){if(e(r),0===r.length)return".";var n=47===r.charCodeAt(0),o=47===r.charCodeAt(r.length-1);return 0!==(r=t(r,!n)).length||n||(r="."),r.length>0&&o&&(r+="/"),n?"/"+r:r},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var o=arguments[n];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var c=n.length-s,u=a<c?a:c,l=-1,p=0;p<=u;++p){if(p===u){if(c>u){if(47===n.charCodeAt(s+p))return n.slice(s+p+1);if(0===p)return n.slice(s+p)}else a>u&&(47===t.charCodeAt(o+p)?l=p:0===p&&(l=0));break}var h=t.charCodeAt(o+p);if(h!==n.charCodeAt(s+p))break;47===h&&(l=p)}var f="";for(p=o+l+1;p<=i;++p)p!==i&&47!==t.charCodeAt(p)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+l):(s+=l,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,c=-1;for(n=t.length-1;n>=0;--n){var u=t.charCodeAt(n);if(47===u){if(!a){o=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===r.charCodeAt(s)?-1===--s&&(i=n):(s=-1,i=c))}return o===i?i=c:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===o&&(i=!1,o=s+1),46===c?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,l=t.length-1,p=0;l>=n;--l)if(47!==(o=t.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===o?-1===a?a=l:1!==p&&(p=1):-1!==a&&(p=-1);else if(!u){s=l+1;break}return-1===a||-1===c||0===p||1===p&&a===c-1&&a===s+1?-1!==c&&(r.base=r.name=0===s&&i?t.slice(1,c):t.slice(s,c)):(0===s&&i?(r.name=t.slice(1,a),r.base=t.slice(1,c)):(r.name=t.slice(s,a),r.base=t.slice(s,c)),r.ext=t.slice(a,c)),s>0?r.dir=t.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,c=r}var d,v={};function y(){if(d)return v;d=1;var e=v&&v.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(v,"__esModule",{value:!0}),v.importResourcePathToString=void 0;var t=e(f());return v.importResourcePathToString=function(e){var r;switch(e.kind){case"package":return t.default.join(e.packageName,null!==(r=e.importPath)&&void 0!==r?r:"","package.json");case"relative":return t.default.join(e.sourcePath,e.importPath);case"relative-in-package":return t.default.join(e.packageName,e.sourcePath,e.importPath)}},v}var g,m={};function b(){return g||(g=1,Object.defineProperty(m,"__esModule",{value:!0}),m.invokeUpdate=void 0,m.invokeUpdate=function(e,t){var r,n="".concat(e.type,": ");switch(e.type){case"CodeChanged":case"ResolveNewImports":n+="";break;case"LookedUpTypeFile":n+='"'.concat(e.path,'" was ').concat(e.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":n+='"'.concat(e.path,'" was ').concat(e.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":n+='package.json for package "'.concat(e.package,'" was ').concat(e.success?"sucessfully":"not sucessfully"," looked up").concat(e.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":n+='"'.concat(e.importPath,'" was loaded from cache');break;case"StoredToCache":n+='"'.concat(e.importPath,'" was stored to cache')}n.endsWith(": ")&&(n=n.slice(void 0,-2)),null===(r=t.onUpdate)||void 0===r||r.call(t,e,n)}),m}var k,w,_,P,O={};function j(){if(k)return O;k=1,Object.defineProperty(O,"__esModule",{value:!0}),O.RecursionDepth=void 0;var e=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),this.options=e,this.fileRecursionDepth=t,this.packageRecursionDepth=r}return e.prototype.nextPackage=function(){return new e(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},e.prototype.nextFile=function(){return new e(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},e.prototype.same=function(){return new e(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},e.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},e}();return O.RecursionDepth=e,O}function R(){if(w)return p;w=1;var e=p&&p.__assign||function(){return e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e.apply(this,arguments)},t=p&&p.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=p&&p.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},i=p&&p.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=p&&p.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=p&&p.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(p,"__esModule",{value:!0}),p.ImportResolver=void 0;var c=function(){if(l)return h;l=1;var e=h&&h.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=h&&h.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=h&&h.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=h&&h.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(h,"__esModule",{value:!0}),h.DependencyParser=void 0;var i=r(f()),a=function(){function e(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return e.prototype.parseDependencies=function(e,t){var r=this;return o([],n(e.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(e){var t,r;return null!==(r=null!==(t=e[1])&&void 0!==t?t:e[2])&&void 0!==r?r:e[3]}).filter(function(e){return!!e}).map(function(e){return r.resolvePath(e,t)})},e.prototype.resolvePath=function(e,t){var r=e.match(this.REGEX_NODE_MODULE);if(r)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(r[1],".d.ts"),sourcePath:""};if("string"==typeof t){if(e.startsWith("."))return{kind:"relative",importPath:e,sourcePath:t};if(e.startsWith("@")){var n=e.split("/");return{kind:"package",packageName:"".concat(n[0],"/").concat(n[1]),importPath:n.slice(2).join("/")}}return{kind:"package",packageName:(n=e.split("/"))[0],importPath:n.slice(1).join("/")}}switch(t.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return e.startsWith(".")?{kind:"relative-in-package",packageName:t.packageName,sourcePath:i.join(t.sourcePath,t.importPath),importPath:e}:e.startsWith("@")?(n=e.split("/"),{kind:"package",packageName:"".concat(n[0],"/").concat(n[1]),importPath:n.slice(2).join("/")}):{kind:"package",packageName:(n=e.split("/"))[0],importPath:n.slice(1).join("/")}}},e}();return h.DependencyParser=a,h}(),u=y(),d=n(f()),v=b(),g=j(),m=function(){function t(e){var t,r;if(this.options=e,this.loadedFiles=[],this.dependencyParser=new c.DependencyParser,this.cache=e.sourceCache,this.sourceResolver=e.sourceResolver,this.newImportsResolved=!1,this.monaco=e.monaco,e.preloadPackages&&e.versions){this.versions=e.versions;try{for(var n=a(Object.entries(e.versions)),o=n.next();!o.done;o=n.next()){var i=s(o.value,2),u=i[0];i[1],this.resolveImport({kind:"package",packageName:u,importPath:""},new g.RecursionDepth(this.options)).catch(function(e){console.error(e)})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}}return t.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},t.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},t.prototype.resolveImportsInFile=function(e,t,r){var n,s,c;return o(this,void 0,void 0,function(){var o,u,l,p,h,f,d,v;return i(this,function(i){switch(i.label){case 0:if(r.shouldStop())return[2];o=this.dependencyParser.parseDependencies(e,t),i.label=1;case 1:i.trys.push([1,8,9,10]),u=a(o),l=u.next(),i.label=2;case 2:if(l.done)return[3,7];p=l.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,this.resolveImport(p,r)];case 4:return i.sent(),[3,6];case 5:return h=i.sent(),this.options.onError?null===(s=(n=this.options).onError)||void 0===s||s.call(n,null!==(c=h.message)&&void 0!==c?c:h):console.error(h),[3,6];case 6:return l=u.next(),[3,2];case 7:return[3,10];case 8:return f=i.sent(),d={error:f},[3,10];case 9:try{l&&!l.done&&(v=u.return)&&v.call(u)}finally{if(d)throw d.error}return[7];case 10:return[2]}})})},t.prototype.resolveImport=function(e,t){return o(this,void 0,void 0,function(){var r,n;return i(this,function(o){switch(o.label){case 0:if(r=this.hashImportResourcePath(e),this.loadedFiles.includes(r))return[2];switch(this.loadedFiles.push(r),e.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(e)];case 2:return(n=o.sent())?[4,this.resolveImportInPackage(n,t.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,o.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(e,t.nextFile())];case 8:return[2]}})})},t.prototype.resolveImportInPackage=function(e,t){return o(this,void 0,void 0,function(){var r,n,o;return i(this,function(i){switch(i.label){case 0:return[4,this.loadSourceFileContents(e)];case 1:return(r=i.sent())?(n=r.source,o=r.at,this.createModel(n,this.monaco.Uri.parse(this.options.fileRootPath+d.join("node_modules/".concat(e.packageName),o))),[4,this.resolveImportsInFile(n,{kind:"relative-in-package",packageName:e.packageName,sourcePath:d.dirname(o),importPath:""},t)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.resolveImportFromPackageRoot=function(e){var t,r,n,a,s,c,u,l,p;return o(this,void 0,void 0,function(){var o,h,f,y,g,m,b,k,w;return i(this,function(i){switch(i.label){case 0:return o={type:"LookedUpPackage",package:e.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(null===(t=this.versions)||void 0===t?void 0:t[e.packageName])||(null===(r=this.versions)||void 0===r?void 0:r["@types/"+e.packageName])?(h=null!==(a=null===(n=e.importPath)||void 0===n?void 0:n.length)&&void 0!==a&&a,f=h?"/".concat(e.importPath):"",[4,this.resolvePackageJson(e.packageName,null===(s=this.versions)||void 0===s?void 0:s[e.packageName],h?e.importPath:void 0)]):((0,v.invokeUpdate)(o,this.options),[2]);case 1:return(y=i.sent())||!h?[3,3]:[4,this.resolvePackageJson(e.packageName,null===(c=this.versions)||void 0===c?void 0:c[e.packageName])];case 2:y=i.sent(),f="",i.label=3;case 3:return y?(g=JSON.parse(y)).typings||g.types?(w=g.typings||g.types,this.createModel(y,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(e.packageName).concat(f,"/package.json"))),(0,v.invokeUpdate)({type:"LookedUpPackage",package:e.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(e.packageName,g.version),[2,{kind:"relative-in-package",packageName:e.packageName,sourcePath:"",importPath:d.join(null!==(u=e.importPath)&&void 0!==u?u:"",w.startsWith("./")?w.slice(2):w)}]):[3,4]:[3,7];case 4:return m="@types/".concat(e.packageName.startsWith("@")?e.packageName.slice(1).replace(/\//,"__"):e.packageName),[4,this.resolvePackageJson(m,null===(l=this.versions)||void 0===l?void 0:l[m])];case 5:if(b=i.sent()){if((k=JSON.parse(b)).typings||k.types)return w=k.typings||k.types,this.createModel(b,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(m,"/package.json"))),(0,v.invokeUpdate)({type:"LookedUpPackage",package:m,definitelyTyped:!0,success:!0},this.options),this.setVersion(m,k.version),[2,{kind:"relative-in-package",packageName:m,sourcePath:"",importPath:d.join(null!==(p=e.importPath)&&void 0!==p?p:"",w.startsWith("./")?w.slice(2):w)}];(0,v.invokeUpdate)(o,this.options)}else(0,v.invokeUpdate)(o,this.options);i.label=6;case 6:return[3,8];case 7:(0,v.invokeUpdate)(o,this.options),i.label=8;case 8:return[2]}})})},t.prototype.loadSourceFileContents=function(e){return o(this,void 0,void 0,function(){var t,r,n,o,s,c,u,l,p,h,f,y,g,m,b,k;return i(this,function(i){switch(i.label){case 0:return t=d.join(e.packageName,e.sourcePath,e.importPath),r={type:"LookedUpTypeFile",path:t,definitelyTyped:!1,success:!1},n=e.packageName,o=this.getVersion(e.packageName),(s=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(t){return e.importPath.endsWith(t)}).reduce(function(e,t){return e||t},!1)?[4,this.resolveSourceFile(n,o,d.join(e.sourcePath,e.importPath))]:[3,2];case 1:return(m=i.sent())?[2,{source:m,at:d.join(e.sourcePath,e.importPath)}]:[3,9];case 2:i.trys.push([2,7,8,9]),c=a(s),u=c.next(),i.label=3;case 3:return u.done?[3,6]:(l=u.value,p=d.join(e.sourcePath,e.importPath),g=(".d.ts"===l&&p.endsWith(".js")?p.slice(0,-3):p)+l,[4,this.resolveSourceFile(n,o,g)]);case 4:if(m=i.sent(),(0,v.invokeUpdate)({type:"AttemptedLookUpFile",path:d.join(n,g),success:!!m},this.options),m)return(0,v.invokeUpdate)({type:"LookedUpTypeFile",path:d.join(n,g),success:!0},this.options),[2,{source:m,at:g}];i.label=5;case 5:return u=c.next(),[3,3];case 6:return[3,9];case 7:return h=i.sent(),b={error:h},[3,9];case 8:try{u&&!u.done&&(k=c.return)&&k.call(c)}finally{if(b)throw b.error}return[7];case 9:return[4,this.resolvePackageJson(n,o,d.join(e.sourcePath,e.importPath))];case 10:return(f=i.sent())&&(y=JSON.parse(f).types)?(g=d.join(e.sourcePath,e.importPath,y),[4,this.resolveSourceFile(n,o,g)]):[3,12];case 11:if(m=i.sent())return(0,v.invokeUpdate)({type:"LookedUpTypeFile",path:d.join(n,g),success:!0},this.options),[2,{source:m,at:g}];i.label=12;case 12:return(0,v.invokeUpdate)(r,this.options),[2,null]}})})},t.prototype.getVersion=function(e){var t;return null===(t=this.versions)||void 0===t?void 0:t[e]},t.prototype.setVersions=function(e){var t,r;this.versions=e,null===(r=(t=this.options).onUpdateVersions)||void 0===r||r.call(t,e)},t.prototype.setVersion=function(t,r){var n;this.setVersions(e(e({},this.versions),((n={})[t]=r,n)))},t.prototype.createModel=function(e,t){t=t.with({path:t.path.replace("@types/","")}),this.monaco.editor.getModel(t)||(this.monaco.editor.createModel(e,"typescript",t),this.newImportsResolved=!0)},t.prototype.hashImportResourcePath=function(e){return(0,u.importResourcePathToString)(e)},t.prototype.resolvePackageJson=function(e,t,r){return o(this,void 0,void 0,function(){var n,o,a,s;return i(this,function(i){switch(i.label){case 0:return n=d.join(e+(t?"@".concat(t):""),null!=r?r:"","package.json"),o=!1,a=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(n)]:[3,2];case 1:return o=i.sent(),[3,4];case 2:return[4,this.cache.getFile(n)];case 3:a=i.sent(),o=void 0!==a,i.label=4;case 4:return o?null==a?[3,5]:(s=a,[3,7]):[3,8];case 5:return[4,this.cache.getFile(n)];case 6:s=i.sent(),i.label=7;case 7:return[2,s];case 8:return[4,this.sourceResolver.resolvePackageJson(e,t,r)];case 9:return(a=i.sent())&&this.cache.storeFile(n,a),[2,a]}})})},t.prototype.resolveSourceFile=function(e,t,r){return o(this,void 0,void 0,function(){var n,o,a,s;return i(this,function(i){switch(i.label){case 0:return n=d.join(e+(t?"@".concat(t):""),r),o=!1,a=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(n)]:[3,2];case 1:return o=i.sent(),[3,4];case 2:return[4,this.cache.getFile(n)];case 3:a=i.sent(),o=void 0!==a,i.label=4;case 4:return o?((0,v.invokeUpdate)({type:"LoadedFromCache",importPath:n},this.options),null==a?[3,5]:(s=a,[3,7])):[3,8];case 5:return[4,this.cache.getFile(n)];case 6:s=i.sent(),i.label=7;case 7:return[2,s];case 8:return[4,this.sourceResolver.resolveSourceFile(e,t,r)];case 9:return(a=i.sent())&&((0,v.invokeUpdate)({type:"StoredToCache",importPath:n},this.options),this.cache.storeFile(n,a)),[2,a]}})})},t}();return p.ImportResolver=m,p}function C(){if(_)return o;_=1;var t=o&&o.__assign||function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)},r=o&&o.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=o&&o.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=o&&o.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t},c=o&&o.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},u=o&&o.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=o&&o.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.AutoTypingsCore=void 0;var p=function(){if(e)return i;e=1,Object.defineProperty(i,"__esModule",{value:!0}),i.DummySourceCache=void 0;var t=function(){function e(){}return e.prototype.getFile=function(e){return Promise.resolve(void 0)},e.prototype.isFileAvailable=function(e){return Promise.resolve(!1)},e.prototype.storeFile=function(e,t){return Promise.resolve(void 0)},e.prototype.clear=function(){return Promise.resolve(void 0)},e}();return i.DummySourceCache=t,i}(),h=s(),d=R(),v=a(f()),y=b(),g=j(),m=function(){function e(e,r){var n=this;this.editor=e,this.options=r,this.disposables=[],this.importResolver=new d.ImportResolver(r);var o=e.onDidChangeModelContent(function(e){n.debouncedResolveContents()});this.disposables.push(o),this.resolveContents(),r.dontAdaptEditorOptions||r.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(t(t({},r.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:r.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:r.fileRootPath}))}return e.create=function(r,n){var o,i;return c(this,void 0,void 0,function(){var a;return u(this,function(s){if((null==n?void 0:n.shareCache)&&n.sourceCache&&!e.sharedCache&&(e.sharedCache=n.sourceCache),!(a=null==n?void 0:n.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new e(r,t(t({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:null!==(o=e.sharedCache)&&void 0!==o?o:new p.DummySourceCache,sourceResolver:null!==(i=null==n?void 0:n.sourceResolver)&&void 0!==i?i:new h.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},n),{monaco:a}))]})})},e.prototype.dispose=function(){var e,t;try{for(var r=l(this.disposables),n=r.next();!n.done;n=r.next())n.value.dispose()}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.setVersions=function(e){this.importResolver.setVersions(e),this.options.versions=e},e.prototype.clearCache=function(){return c(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return e.sent(),[2]}})})},e.prototype.debouncedResolveContents=function(){var e=this;this.isResolving||((0,y.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(void 0!==this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return c(e,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.resolveContents()];case 1:return e.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},e.prototype.resolveContents=function(){var e;return c(this,void 0,void 0,function(){var t,r,n,o;return u(this,function(i){switch(i.label){case 0:if(this.isResolving=!0,(0,y.invokeUpdate)({type:"ResolveNewImports"},this.options),!(t=this.editor.getModel()))throw Error("No model");r=t.getLinesContent(),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(r.join("\n"),v.dirname(t.uri.toString()),new g.RecursionDepth(this.options))];case 2:return i.sent(),[3,4];case 3:if(n=i.sent(),!this.options.onError)throw n;return this.options.onError(null!==(e=n.message)&&void 0!==e?e:n),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(o=this.editor.getPosition(),t.setValue(t.getValue()),o&&this.editor.setPosition(o)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},e}();return o.AutoTypingsCore=m,o}var S,x,A,D,E,T,F,N,I,M={},U={},L={},G={},J={},V={};const W=function(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[I?N:(I=1,N=function(){return F||(F=1,e=r,t=r&&r.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=r&&r.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)},Object.defineProperty(e,"__esModule",{value:!0}),o(function(){if(P)return n;P=1;var e,t=n&&n.__extends||(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});Object.defineProperty(n,"__esModule",{value:!0}),n.AutoTypings=void 0;var r=function(e){function r(t,r){return e.call(this,t,r)||this}return t(r,e),r}(C().AutoTypingsCore);return n.AutoTypings=r,n}(),e),o(y(),e),o(function(){if(S)return M;S=1;var e=M&&M.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},t=M&&M.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},r=M&&M.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(M,"__esModule",{value:!0}),M.LocalStorageCache=void 0;var n=function(){function n(){this.localCache={}}return n.prototype.getFile=function(r){var o;return e(this,void 0,void 0,function(){return t(this,function(e){try{return[2,null!==(o=localStorage.getItem(n.LOCALSTORAGE_PREFIX+r))&&void 0!==o?o:void 0]}catch(e){return[2,this.localCache[r]]}return[2]})})},n.prototype.storeFile=function(r,o){return e(this,void 0,void 0,function(){return t(this,function(e){this.localCache[r]=o;try{localStorage.setItem(n.LOCALSTORAGE_PREFIX+r,o)}catch(e){}return[2]})})},n.prototype.clear=function(){return e(this,void 0,void 0,function(){var e,o,i,a,s,c,u;return t(this,function(t){for(this.localCache={},e=[],o=0;o<localStorage.length;o++)(null==(s=localStorage.key(o))?void 0:s.startsWith(n.LOCALSTORAGE_PREFIX))&&e.push(s);try{for(i=r(e),a=i.next();!a.done;a=i.next())s=a.value,localStorage.removeItem(s)}catch(e){c={error:e}}finally{try{a&&!a.done&&(u=i.return)&&u.call(i)}finally{if(c)throw c.error}}return[2]})})},n.LOCALSTORAGE_PREFIX="__autotyper_cache_",n}();return M.LocalStorageCache=n,M}(),e),o((x||(x=1,Object.defineProperty(U,"__esModule",{value:!0})),U),e),o((A||(A=1,Object.defineProperty(L,"__esModule",{value:!0})),L),e),o((D||(D=1,Object.defineProperty(G,"__esModule",{value:!0})),G),e),o((E||(E=1,Object.defineProperty(J,"__esModule",{value:!0})),J),e),o(function(){if(T)return V;T=1;var e=V&&V.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},t=V&&V.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(V,"__esModule",{value:!0}),V.UnpkgSourceResolver=void 0;var r=function(){function r(){}return r.prototype.resolvePackageJson=function(r,n,o){return e(this,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(r).concat(n?"@".concat(n):"").concat(o?"/".concat(o):"","/package.json"))];case 1:return[2,e.sent()]}})})},r.prototype.resolveSourceFile=function(r,n,o){return e(this,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(r).concat(n?"@".concat(n):"","/").concat(o))];case 1:return[2,e.sent()]}})})},r.prototype.resolveFile=function(r){return e(this,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return[4,fetch(r,{method:"GET"})];case 1:return(e=t.sent()).ok?[4,e.text()]:[3,3];case 2:return[2,t.sent()];case 3:if(404===e.status)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(r));case 4:return[2]}})})},r}();return V.UnpkgSourceResolver=r,V}(),e),o(s(),e)),r;var e,t,o}())]);exports.c=W;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=["Ok","Cancel"],a=e.reactExports.memo(a=>{const{value:s=null,context:o,onOption:n,onValidateOption:l,onDone:r,onUpdate:i,options:p=t,defaultOption:u=p?.[0],cancelOption:c="Cancel",sx:d,...x}=a,g=e.reactExports.useMemo(()=>o?.getNames().findValidName("Range1"),[]),m=e.reactExports.useMemo(()=>{if(!s)return!0},[]),[f,y]=e.reactExports.useState({displayText:s?.getName()??g,errorText:null}),[N,T]=e.reactExports.useState({displayValue:s?.getRanges()??o?.selection()??null,errorText:null}),[E,R]=e.reactExports.useState(!1),j=e.reactExports.useCallback(async e=>!f.errorText&&!N.errorText,[o]),O=e.go((e,t,a)=>{if(!t){let e=null;m?e=o?.getNames().addReference(f?.displayText,N?.displayValue,!1):("reference"===s.getType()&&s.doBatch(()=>{s.setName(f?.displayText),s.setReference(N?.displayValue)},`Edit Named '${f?.displayText}'`),e=s),e&&(e.select(),i(e,m))}n?.(e,t,a),r?.()},[o,f,N,r,n,u,c,i]),V=e.go(e=>{let t=null;try{o?.getNames().validateName(e)}catch(e){t=e.message}y({displayText:e,errorText:t})},[]),C=e.go(e=>{s&&s.getName().toLowerCase()===e.toLowerCase()||o?.getNames().validateName(e)},[o,s]),b=e.reactExports.useCallback(e=>{T({displayValue:e??null,errorText:null})},[]);return e.jsxRuntimeExports.jsx(e.sb,{title:(m?"Define":"Edit")+" Range",options:p,onOption:O,onValidateOption:j,defaultOption:u,cancelOption:c,autoFocusSel:".autoFocus",sx:{width:"460px",...d},...x,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.gL,{formName:"name",defaultInput:g,value:f.displayText,onChangeInput:V,onValidate:C,onFocus:e=>{E||e.target?.select(),R(!0)}}),e.jsxRuntimeExports.jsx(e.bL,{formName:"range",value:N.displayValue,onChangeInput:b,resolvedAddress:o.getNames().getRanges.bind(o.getNames()),onFocus:e=>{E||e.target?.select(),R(!0)}})]})})});exports.NamedReferenceDialog=a,exports.default=a;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,r={},t={};function n(){if(e)return t;function r(e,r){return void 0===r&&(r=Object),r&&"function"==typeof r.getOwnPropertyDescriptors&&(e=r.create(null,r.getOwnPropertyDescriptors(e))),r&&"function"==typeof r.freeze?r.freeze(e):e}function n(e,r){return Object.prototype.hasOwnProperty.call(e,r)}e=1;var o=r({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0}),a=r({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),i=r({script:!1,style:!1,textarea:!0,title:!0});function s(e){return e===l.HTML}var l=r({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),c=Object.keys(l).map(function(e){return l[e]}),u=r({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return t.assign=function(e,r){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var t in r)n(r,t)&&(e[t]=r[t]);return e},t.find=function(e,r,t){if(void 0===t&&(t=Array.prototype),e&&"function"==typeof t.find)return t.find.call(e,r);for(var o=0;o<e.length;o++)if(n(e,o)){var a=e[o];if(r.call(void 0,a,o,e))return a}},t.freeze=r,t.HTML_BOOLEAN_ATTRIBUTES=o,t.HTML_RAW_TEXT_ELEMENTS=i,t.HTML_VOID_ELEMENTS=a,t.hasDefaultHTMLNamespace=function(e){return s(e)||e===l.XML_XHTML_APPLICATION},t.hasOwn=n,t.isHTMLBooleanAttribute=function(e){return n(o,e.toLowerCase())},t.isHTMLRawTextElement=function(e){var r=e.toLowerCase();return n(i,r)&&!i[r]},t.isHTMLEscapableRawTextElement=function(e){var r=e.toLowerCase();return n(i,r)&&i[r]},t.isHTMLMimeType=s,t.isHTMLVoidElement=function(e){return n(a,e.toLowerCase())},t.isValidMimeType=function(e){return c.indexOf(e)>-1},t.MIME_TYPE=l,t.NAMESPACE=u,t}var o,a={};function i(){if(o)return a;function e(e,r){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:r}})}o=1;var r=n().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),t=Object.keys(r);function i(e){return"number"==typeof e&&e>=1&&e<=25}function s(e,n){var o;i(e)?(this.name=t[e],this.message=n||""):(this.message=e,this.name="string"==typeof(o=n)&&o.substring(o.length-r.Error.length)===r.Error?n:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,s)}e(s,!0),Object.defineProperties(s.prototype,{code:{enumerable:!0,get:function(){var e=t.indexOf(this.name);return i(e)?e:0}}});for(var l={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},c=Object.entries(l),u=0;u<c.length;u++)s[c[u][0]]=c[u][1];function p(e,r){this.message=e,this.locator=r,Error.captureStackTrace&&Error.captureStackTrace(this,p)}return e(p),a.DOMException=s,a.DOMExceptionName=r,a.ExceptionCode=l,a.ParseError=p,a}var s,l,c={},u={};function p(){if(s)return u;function e(e){try{"function"!=typeof e&&(e=RegExp);var r=new e("𝌆","u").exec("𝌆");return!!r&&2===r[0].length}catch(e){}return!1}s=1;var r=e();function t(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function n(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),r?"u":"")}function o(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source}).join(""),r?"mu":"m")}function a(e){if(0===arguments.length)throw new Error("no parameters provided");return o.apply(a,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var i=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;r&&(i=o("[",t(i),"\\u{10000}-\\u{10FFFF}","]"));var l=/[\x20\x09\x0D\x0A]/,c=t(l),p=o(l,"+"),d=o(l,"*"),f=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;r&&(f=o("[",t(f),"\\u{10000}-\\u{10FFFF}","]"));var h=o("[",t(f),t(/[-.0-9\xB7]/),t(/[\u0300-\u036F\u203F-\u2040]/),"]"),m=o(f,h,"*"),E=o(h,"+"),g=o("&",m,";"),N=a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),T=a(g,"|",N),b=o("%",m,";"),w=a(o('"',a(/[^%&"]/,"|",b,"|",T),"*",'"'),"|",o("'",a(/[^%&']/,"|",b,"|",T),"*","'")),v=a('"',a(/[^<&"]/,"|",T),"*",'"',"|","'",a(/[^<&']/,"|",T),"*","'"),y=o(n(f,":"),n(h,":"),"*"),D=o(y,a(":",y),"?"),S=o("^",D,"$"),A=o("(",D,")"),I=a(/"[^"]*"|'[^']*'/),O=o(/^<\?/,"(",m,")",a(p,"(",i,"*?)"),"?",/\?>/),C=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,x=a('"',C,'*"',"|","'",n(C,"'"),"*'"),_="\x3c!--",R=o(_,a(n(i,"-"),"|",o("-",n(i,"-"))),"*","--\x3e"),L="#PCDATA",M=a(o(/\(/,d,L,a(d,/\|/,d,D),"*",d,/\)\*/),"|",o(/\(/,d,L,d,/\)/)),q=a("EMPTY","|","ANY","|",M,"|",o(/\([^>]+\)/,/[?*+]?/)),P=o("<!ELEMENT",p,a(D,"|",b),p,a(q,"|",b),d,">"),U=o("NOTATION",p,/\(/,d,m,a(d,/\|/,d,m),"*",d,/\)/),k=o(/\(/,d,E,a(d,/\|/,d,E),"*",d,/\)/),H=a(U,"|",k),V=a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",H),B=a(/#REQUIRED|#IMPLIED/,"|",a(a("#FIXED",p),"?",v)),F=o("<!ATTLIST",p,m,a(p,m,p,V,p,B),"*",d,">"),G="about:legacy-compat",Y=a('"'+G+'"',"|","'"+G+"'"),X="SYSTEM",j="PUBLIC",z=a(a(X,p,I),"|",a(j,p,x,p,I)),Q=o("^",a(a(X,p,"(?<SystemLiteralOnly>",I,")"),"|",a(j,p,"(?<PubidLiteral>",x,")",p,"(?<SystemLiteral>",I,")"))),W=a(p,"NDATA",p,m),Z="<!ENTITY",$=o(Z,p,m,p,a(w,"|",a(z,W,"?")),d,">"),J=a(w,"|",z),K=a($,"|",o(Z,p,"%",p,m,p,J,d,">")),ee=o(j,p,x),re=o("<!NOTATION",p,m,p,a(z,"|",ee),d,">"),te=o(d,"=",d),ne=/1[.]\d+/,oe=o(p,"version",te,a("'",ne,"'","|",'"',ne,'"')),ae=/[A-Za-z][-A-Za-z0-9._]*/,ie=o(/^<\?xml/,oe,a(p,"encoding",te,a('"',ae,'"',"|","'",ae,"'")),"?",a(p,"standalone",te,a("'",a("yes","|","no"),"'","|",'"',a("yes","|","no"),'"')),"?",d,/\?>/),se=o(i,"*?",/\]\]>/),le=o(/<!\[CDATA\[/,se);return u.chars=t,u.chars_without=n,u.detectUnicodeSupport=e,u.reg=o,u.regg=a,u.ABOUT_LEGACY_COMPAT=G,u.ABOUT_LEGACY_COMPAT_SystemLiteral=Y,u.AttlistDecl=F,u.CDATA_START="<![CDATA[",u.CDATA_END="]]>",u.CDSect=le,u.Char=i,u.Comment=R,u.COMMENT_START=_,u.COMMENT_END="--\x3e",u.DOCTYPE_DECL_START="<!DOCTYPE",u.elementdecl=P,u.EntityDecl=K,u.EntityValue=w,u.ExternalID=z,u.ExternalID_match=Q,u.Name=m,u.NotationDecl=re,u.Reference=T,u.PEReference=b,u.PI=O,u.PUBLIC=j,u.PubidLiteral=x,u.QName=D,u.QName_exact=S,u.QName_group=A,u.S=p,u.SChar_s=c,u.S_OPT=d,u.SYSTEM=X,u.SystemLiteral=I,u.UNICODE_REPLACEMENT_CHARACTER="�",u.UNICODE_SUPPORT=r,u.XMLDecl=ie,u}function d(){if(l)return c;l=1;var e=n(),r=e.find,t=e.hasDefaultHTMLNamespace,o=e.hasOwn,a=e.isHTMLMimeType,s=e.isHTMLRawTextElement,u=e.isHTMLVoidElement,d=e.MIME_TYPE,f=e.NAMESPACE,h=Symbol(),m=i(),E=m.DOMException,g=m.DOMExceptionName,N=p();function T(e){if(e!==h)throw new TypeError("Illegal constructor")}function b(e){return""!==e}function w(e,r){return o(e,r)||(e[r]=!0),e}function v(e){if(!e)return[];var r=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(b):[]}(e);return Object.keys(r.reduce(w,{}))}function y(e){if(!N.QName_exact.test(e))throw new E(E.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function D(r,t){y(t),r=r||null;var n=null,o=t;if(t.indexOf(":")>=0){var a=t.split(":");n=a[0],o=a[1]}if(null!==n&&null===r)throw new E(E.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&r!==e.NAMESPACE.XML)throw new E(E.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===t)&&r!==e.NAMESPACE.XMLNS)throw new E(E.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(r===e.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==t)throw new E(E.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[r,n,o]}function S(e,r){for(var t in e)o(e,t)&&(r[t]=e[t])}function A(e,r){var t=e.prototype;if(!(t instanceof r)){function n(){}n.prototype=r.prototype,S(t,n=new n),e.prototype=t=n}t.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),t.constructor=e)}var I={},O=I.ELEMENT_NODE=1,C=I.ATTRIBUTE_NODE=2,x=I.TEXT_NODE=3,_=I.CDATA_SECTION_NODE=4,R=I.ENTITY_REFERENCE_NODE=5,L=I.ENTITY_NODE=6,M=I.PROCESSING_INSTRUCTION_NODE=7,q=I.COMMENT_NODE=8,P=I.DOCUMENT_NODE=9,U=I.DOCUMENT_TYPE_NODE=10,k=I.DOCUMENT_FRAGMENT_NODE=11,H=I.NOTATION_NODE=12,V=e.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function B(e,r){if(r.length<e.length)return B(r,e);var t=null;for(var n in e){if(e[n]!==r[n])return t;t=e[n]}return t}function F(e){return e.guid||(e.guid=Math.random()),e.guid}function G(){}function Y(e,r){this._node=e,this._refresh=r,X(this)}function X(e){var r=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==r){var t=e._refresh(e._node);if(xe(e,"length",t.length),!e.$$length||t.length<e.$$length)for(var n=t.length;n in e;n++)o(e,n)&&delete e[n];S(t,e),e._inc=r}}function j(){}function z(e,r){for(var t=0;t<e.length;){if(e[t]===r)return t;t++}}function Q(e,r,t){var n=z(r,t);if(n>=0){for(var o=r.length-1;n<=o;)r[n]=r[++n];if(r.length=o,e){var a=e.ownerDocument;a&&ee(a,e,t),t.ownerElement=null}}}function W(){}function Z(e){T(e)}function $(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function J(e,r){if(r(e))return!0;if(e=e.firstChild)do{if(J(e,r))return!0}while(e=e.nextSibling)}function K(e,r){T(e);var t=r||{};this.ownerDocument=this,this.contentType=t.contentType||d.XML_APPLICATION,this.type=a(this.contentType)?"html":"xml"}function ee(e,r,t,n){e&&e._inc++,t.namespaceURI===f.XMLNS&&delete r._nsMap[t.prefix?t.localName:""]}function re(e,r,t){if(e&&e._inc){e._inc++;var n=r.childNodes;if(t&&!t.nextSibling)n[n.length++]=t;else{for(var o=r.firstChild,a=0;o;)n[a++]=o,o=o.nextSibling;n.length=a,delete n[n.length]}}}function te(e,r){if(e!==r.parentNode)throw new E(E.NOT_FOUND_ERR,"child's parent is not parent");var t=r.previousSibling,n=r.nextSibling;return t?t.nextSibling=n:e.firstChild=n,n?n.previousSibling=t:e.lastChild=t,re(e.ownerDocument,e),r.parentNode=null,r.previousSibling=null,r.nextSibling=null,r}function ne(e){return e&&e.nodeType===Z.DOCUMENT_TYPE_NODE}function oe(e){return e&&e.nodeType===Z.ELEMENT_NODE}function ae(e){return e&&e.nodeType===Z.TEXT_NODE}function ie(e,t){var n=e.childNodes||[];if(r(n,oe)||ne(t))return!1;var o=r(n,ne);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function se(e,t){var n=e.childNodes||[];if(r(n,function(e){return oe(e)&&e!==t}))return!1;var o=r(n,ne);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function le(e,t,n){var o=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var i=a.filter(oe);if(i.length>1||r(a,ae))throw new E(E.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!ie(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(oe(t)&&!ie(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ne(t)){if(r(o,ne))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=r(o,oe);if(n&&o.indexOf(s)<o.indexOf(n))throw new E(E.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!n&&s)throw new E(E.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function ce(e,t,n){var o=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var i=a.filter(oe);if(i.length>1||r(a,ae))throw new E(E.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!se(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(oe(t)&&!se(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ne(t)){function l(e){return ne(e)&&e!==n}if(r(o,l))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=r(o,oe);if(n&&o.indexOf(s)<o.indexOf(n))throw new E(E.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function ue(e,r,t,n){(function(e,r,t){if(!function(e){return e&&(e.nodeType===Z.DOCUMENT_NODE||e.nodeType===Z.DOCUMENT_FRAGMENT_NODE||e.nodeType===Z.ELEMENT_NODE)}(e))throw new E(E.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(t&&t.parentNode!==e)throw new E(E.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Z.CDATA_SECTION_NODE||e.nodeType===Z.COMMENT_NODE||e.nodeType===Z.DOCUMENT_FRAGMENT_NODE||e.nodeType===Z.DOCUMENT_TYPE_NODE||e.nodeType===Z.ELEMENT_NODE||e.nodeType===Z.PROCESSING_INSTRUCTION_NODE||e.nodeType===Z.TEXT_NODE)}(r)||ne(r)&&e.nodeType!==Z.DOCUMENT_NODE)throw new E(E.HIERARCHY_REQUEST_ERR,"Unexpected node type "+r.nodeType+" for parent node type "+e.nodeType)})(e,r,t),e.nodeType===Z.DOCUMENT_NODE&&(n||le)(e,r,t);var o=r.parentNode;if(o&&o.removeChild(r),r.nodeType===k){var a=r.firstChild;if(null==a)return r;var i=r.lastChild}else a=i=r;var s=t?t.previousSibling:e.lastChild;a.previousSibling=s,i.nextSibling=t,s?s.nextSibling=a:e.firstChild=a,null==t?e.lastChild=i:t.previousSibling=i;do{a.parentNode=e}while(a!==i&&(a=a.nextSibling));return re(e.ownerDocument||e,e,r),r.nodeType==k&&(r.firstChild=r.lastChild=null),r}function pe(e){T(e),this._nsMap=Object.create(null)}function de(e){T(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function fe(e){T(e)}function he(e){T(e)}function me(e){T(e)}function Ee(e){T(e)}function ge(e){T(e)}function Ne(e){T(e)}function Te(e){T(e)}function be(e){T(e)}function we(e){T(e)}function ve(e){T(e)}function ye(){}function De(e){var r=[],t=this.nodeType===P&&this.documentElement||this,n=t.prefix,o=t.namespaceURI;if(o&&null==n&&null==(n=t.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return Ie(this,r,e,a),r.join("")}function Se(e,r,t){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===f.XML||o===f.XMLNS)return!1;for(var a=t.length;a--;){var i=t[a];if(i.prefix===n)return i.namespace!==o}return!0}function Ae(e,r,t){e.push(" ",r,'="',t.replace(/[<>&"\t\n\r]/g,$),'"')}function Ie(e,r,t,n){n||(n=[]);var o="html"===(e.nodeType===P?e:e.ownerDocument).type;if(t){if(!(e=t(e)))return;if("string"==typeof e)return void r.push(e)}switch(e.nodeType){case O:var a=e.attributes,i=a.length,l=e.firstChild,c=e.tagName,p=c;if(!o&&!e.prefix&&e.namespaceURI){for(var d,h=0;h<a.length;h++)if("xmlns"===a.item(h).name){d=a.item(h).value;break}if(!d)for(var m=n.length-1;m>=0;m--)if(""===(E=n[m]).prefix&&E.namespace===e.namespaceURI){d=E.namespace;break}if(d!==e.namespaceURI)for(m=n.length-1;m>=0;m--){var E;if((E=n[m]).namespace===e.namespaceURI){E.prefix&&(p=E.prefix+":"+c);break}}}r.push("<",p);for(var g=0;g<i;g++)"xmlns"==(T=a.item(g)).prefix?n.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&n.push({prefix:"",namespace:T.value});for(g=0;g<i;g++){var T,b,w;Se(T=a.item(g),0,n)&&(Ae(r,(b=T.prefix||"")?"xmlns:"+b:"xmlns",w=T.namespaceURI),n.push({prefix:b,namespace:w})),Ie(T,r,t,n)}c===p&&Se(e,0,n)&&(Ae(r,(b=e.prefix||"")?"xmlns:"+b:"xmlns",w=e.namespaceURI),n.push({prefix:b,namespace:w}));var v=!l;if(v&&(o||e.namespaceURI===f.HTML)&&(v=u(c)),v)r.push("/>");else{if(r.push(">"),o&&s(c))for(;l;)l.data?r.push(l.data):Ie(l,r,t,n.slice()),l=l.nextSibling;else for(;l;)Ie(l,r,t,n.slice()),l=l.nextSibling;r.push("</",p,">")}return;case P:case k:for(l=e.firstChild;l;)Ie(l,r,t,n.slice()),l=l.nextSibling;return;case C:return Ae(r,e.name,e.value);case x:return r.push(e.data.replace(/[<&>]/g,$));case _:return r.push(N.CDATA_START,e.data,N.CDATA_END);case q:return r.push(N.COMMENT_START,e.data,N.COMMENT_END);case U:var y=e.publicId,D=e.systemId;return r.push(N.DOCTYPE_DECL_START," ",e.name),y?(r.push(" ",N.PUBLIC," ",y),D&&"."!==D&&r.push(" ",D)):D&&"."!==D&&r.push(" ",N.SYSTEM," ",D),e.internalSubset&&r.push(" [",e.internalSubset,"]"),void r.push(">");case M:return r.push("<?",e.target," ",e.data,"?>");case R:return r.push("&",e.nodeName,";");default:r.push("??",e.nodeName)}}function Oe(e,r,t){var n;switch(r.nodeType){case O:(n=r.cloneNode(!1)).ownerDocument=e;case k:break;case C:t=!0}if(n||(n=r.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,t)for(var o=r.firstChild;o;)n.appendChild(Oe(e,o,t)),o=o.nextSibling;return n}function Ce(e,r,t){var n=new r.constructor(h);for(var a in r)if(o(r,a)){var i=r[a];"object"!=typeof i&&i!=n[a]&&(n[a]=i)}switch(r.childNodes&&(n.childNodes=new G),n.ownerDocument=e,n.nodeType){case O:var s=r.attributes,l=n.attributes=new j,c=s.length;l._ownerElement=n;for(var u=0;u<c;u++)n.setAttributeNode(Ce(e,s.item(u),!0));break;case C:t=!0}if(t)for(var p=r.firstChild;p;)n.appendChild(Ce(e,p,t)),p=p.nextSibling;return n}function xe(e,r,t){e[r]=t}G.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var r=[],t=0;t<this.length;t++)Ie(this[t],r,e);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},G.prototype[Symbol.iterator]=function(){var e=this,r=0;return{next:function(){return r<e.length?{value:e[r++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Y.prototype.item=function(e){return X(this),this[e]||null},A(Y,G),j.prototype={length:0,item:G.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var r=0;r<this.length;){var t=this[r];if(t.nodeName===e)return t;r++}return null},setNamedItem:function(e){var r=e.ownerElement;if(r&&r!==this._ownerElement)throw new E(E.INUSE_ATTRIBUTE_ERR);var t=this.getNamedItemNS(e.namespaceURI,e.localName);return t===e?e:(function(e,r,t,n){if(n?r[z(r,n)]=t:(r[r.length]=t,r.length++),e){t.ownerElement=e;var o=e.ownerDocument;o&&(n&&ee(o,e,n),function(e,r,t){e&&e._inc++,t.namespaceURI===f.XMLNS&&(r._nsMap[t.prefix?t.localName:""]=t.value)}(o,e,t))}}(this._ownerElement,this,e,t),t)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var r=this.getNamedItem(e);if(!r)throw new E(E.NOT_FOUND_ERR,e);return Q(this._ownerElement,this,r),r},removeNamedItemNS:function(e,r){var t=this.getNamedItemNS(e,r);if(!t)throw new E(E.NOT_FOUND_ERR,e?e+" : "+r:r);return Q(this._ownerElement,this,t),t},getNamedItemNS:function(e,r){e||(e=null);for(var t=0;t<this.length;){var n=this[t];if(n.localName===r&&n.namespaceURI===e)return n;t++}return null}},j.prototype[Symbol.iterator]=function(){var e=this,r=0;return{next:function(){return r<e.length?{value:e[r++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},W.prototype={hasFeature:function(e,r){return!0},createDocument:function(e,r,t){var n=d.XML_APPLICATION;e===f.HTML?n=d.XML_XHTML_APPLICATION:e===f.SVG&&(n=d.XML_SVG_IMAGE);var o=new K(h,{contentType:n});if(o.implementation=this,o.childNodes=new G,o.doctype=t||null,t&&o.appendChild(t),r){var a=o.createElementNS(e,r);o.appendChild(a)}return o},createDocumentType:function(e,r,t,n){y(e);var o=new ge(h);return o.name=e,o.nodeName=e,o.publicId=r||"",o.systemId=t||"",o.internalSubset=n||"",o.childNodes=new G,o},createHTMLDocument:function(e){var r=new K(h,{contentType:d.HTML});if(r.implementation=this,r.childNodes=new G,!1!==e){r.doctype=this.createDocumentType("html"),r.doctype.ownerDocument=r,r.appendChild(r.doctype);var t=r.createElement("html");r.appendChild(t);var n=r.createElement("head");if(t.appendChild(n),"string"==typeof e){var o=r.createElement("title");o.appendChild(r.createTextNode(e)),n.appendChild(o)}t.appendChild(r.createElement("body"))}return r}},Z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var r=e;do{if(this===r)return!0;r=e.parentNode}while(r);return!1},getRootNode:function(e){var r=this;do{if(!r.parentNode)return r;r=r.parentNode}while(r)},isEqualNode:function(e){if(!e)return!1;if(this.nodeType!==e.nodeType)return!1;switch(this.nodeType){case this.DOCUMENT_TYPE_NODE:if(this.name!==e.name)return!1;if(this.publicId!==e.publicId)return!1;if(this.systemId!==e.systemId)return!1;break;case this.ELEMENT_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.prefix!==e.prefix)return!1;if(this.localName!==e.localName)return!1;if(this.attributes.length!==e.attributes.length)return!1;for(var r=0;r<this.attributes.length;r++){var t=this.attributes.item(r);if(!t.isEqualNode(e.getAttributeNodeNS(t.namespaceURI,t.localName)))return!1}break;case this.ATTRIBUTE_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.localName!==e.localName)return!1;if(this.value!==e.value)return!1;break;case this.PROCESSING_INSTRUCTION_NODE:if(this.target!==e.target||this.data!==e.data)return!1;break;case this.TEXT_NODE:case this.COMMENT_NODE:if(this.data!==e.data)return!1}if(this.childNodes.length!==e.childNodes.length)return!1;for(r=0;r<this.childNodes.length;r++)if(!this.childNodes[r].isEqualNode(e.childNodes[r]))return!1;return!0},isSameNode:function(e){return this===e},insertBefore:function(e,r){return ue(this,e,r)},replaceChild:function(e,r){ue(this,e,r,ce),r&&this.removeChild(r)},removeChild:function(e){return te(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ce(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var r=e.nextSibling;r&&r.nodeType==x&&e.nodeType==x?(this.removeChild(r),e.appendData(r.data)):(e.normalize(),e=r)}},isSupported:function(e,r){return this.ownerDocument.implementation.hasFeature(e,r)},lookupPrefix:function(e){for(var r=this;r;){var t=r._nsMap;if(t)for(var n in t)if(o(t,n)&&t[n]===e)return n;r=r.nodeType==C?r.ownerDocument:r.parentNode}return null},lookupNamespaceURI:function(e){for(var r=this;r;){var t=r._nsMap;if(t&&o(t,e))return t[e];r=r.nodeType==C?r.ownerDocument:r.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var r=e,t=this,n=null,o=null;if(r instanceof de&&(r=(n=r).ownerElement),t instanceof de&&(t=(o=t).ownerElement,n&&r&&t===r))for(var a,i=0;a=t.attributes[i];i++){if(a===n)return V.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+V.DOCUMENT_POSITION_PRECEDING;if(a===o)return V.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+V.DOCUMENT_POSITION_FOLLOWING}if(!r||!t||t.ownerDocument!==r.ownerDocument)return V.DOCUMENT_POSITION_DISCONNECTED+V.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(F(t.ownerDocument)>F(r.ownerDocument)?V.DOCUMENT_POSITION_FOLLOWING:V.DOCUMENT_POSITION_PRECEDING);if(o&&r===t)return V.DOCUMENT_POSITION_CONTAINS+V.DOCUMENT_POSITION_PRECEDING;if(n&&r===t)return V.DOCUMENT_POSITION_CONTAINED_BY+V.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=r.parentNode;l;){if(!o&&l===t)return V.DOCUMENT_POSITION_CONTAINED_BY+V.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=t.parentNode;u;){if(!n&&u===r)return V.DOCUMENT_POSITION_CONTAINS+V.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var p=B(s,c);for(var d in p.childNodes){var f=p.childNodes[d];if(f===t)return V.DOCUMENT_POSITION_FOLLOWING;if(f===r)return V.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(f)>=0)return V.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(f)>=0)return V.DOCUMENT_POSITION_PRECEDING}return 0}},S(I,Z),S(I,Z.prototype),S(V,Z),S(V,Z.prototype),K.prototype={implementation:null,nodeName:"#document",nodeType:P,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,r){if(e.nodeType===k){for(var t=e.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,r),t=n}return e}return ue(this,e,r),e.ownerDocument=this,null===this.documentElement&&e.nodeType===O&&(this.documentElement=e),e},removeChild:function(e){var r=te(this,e);return r===this.documentElement&&(this.documentElement=null),r},replaceChild:function(e,r){ue(this,e,r,ce),e.ownerDocument=this,r&&this.removeChild(r),oe(e)&&(this.documentElement=e)},importNode:function(e,r){return Oe(this,e,r)},getElementById:function(e){var r=null;return J(this.documentElement,function(t){if(t.nodeType==O&&t.getAttribute("id")==e)return r=t,!0}),r},createElement:function(e){var r=new pe(h);return r.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),t(this.contentType)&&(r.namespaceURI=f.HTML),r.nodeName=e,r.tagName=e,r.localName=e,r.childNodes=new G,(r.attributes=new j)._ownerElement=r,r},createDocumentFragment:function(){var e=new we(h);return e.ownerDocument=this,e.childNodes=new G,e},createTextNode:function(e){var r=new he(h);return r.ownerDocument=this,r.childNodes=new G,r.appendData(e),r},createComment:function(e){var r=new me(h);return r.ownerDocument=this,r.childNodes=new G,r.appendData(e),r},createCDATASection:function(e){var r=new Ee(h);return r.ownerDocument=this,r.childNodes=new G,r.appendData(e),r},createProcessingInstruction:function(e,r){var t=new ve(h);return t.ownerDocument=this,t.childNodes=new G,t.nodeName=t.target=e,t.nodeValue=t.data=r,t},createAttribute:function(e){if(!N.QName_exact.test(e))throw new E(E.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var r=new de(h);return r.ownerDocument=this,r.childNodes=new G,r.name=e,r.nodeName=e,r.localName=e,r.specified=!0,r},createEntityReference:function(e){if(!N.Name.test(e))throw new E(E.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new E("document is an html document",g.NotSupportedError);var r=new be(h);return r.ownerDocument=this,r.childNodes=new G,r.nodeName=e,r},createElementNS:function(e,r){var t=D(e,r),n=new pe(h),o=n.attributes=new j;return n.childNodes=new G,n.ownerDocument=this,n.nodeName=r,n.tagName=r,n.namespaceURI=t[0],n.prefix=t[1],n.localName=t[2],o._ownerElement=n,n},createAttributeNS:function(e,r){var t=D(e,r),n=new de(h);return n.ownerDocument=this,n.childNodes=new G,n.nodeName=r,n.name=r,n.specified=!0,n.namespaceURI=t[0],n.prefix=t[1],n.localName=t[2],n}},A(K,Z),pe.prototype={nodeType:O,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===f.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var r=this.getAttributeNode(e);return r?r.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,r){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var t=this.getAttributeNode(e);t?t.value=t.nodeValue=""+r:((t=this.ownerDocument._createAttribute(e)).value=t.nodeValue=""+r,this.setAttributeNode(t))},removeAttribute:function(e){var r=this.getAttributeNode(e);r&&this.removeAttributeNode(r)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);t&&this.removeAttributeNode(t)},hasAttributeNS:function(e,r){return null!=this.getAttributeNodeNS(e,r)},getAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);return t?t.value:null},setAttributeNS:function(e,r,t){var n=D(e,r)[2],o=this.getAttributeNodeNS(e,n);o?o.value=o.nodeValue=""+t:((o=this.ownerDocument.createAttributeNS(e,r)).value=o.nodeValue=""+t,this.setAttributeNode(o))},getAttributeNodeNS:function(e,r){return this.attributes.getNamedItemNS(e,r)},getElementsByClassName:function(e){var r=v(e);return new Y(this,function(t){var n=[];return r.length>0&&J(t,function(o){if(o!==t&&o.nodeType===O){var a=o.getAttribute("class");if(a){var i=e===a;if(!i){var s=v(a);i=r.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}i&&n.push(o)}}var l}),n})},getElementsByTagName:function(e){var r="html"===(this.nodeType===P?this:this.ownerDocument).type,t=e.toLowerCase();return new Y(this,function(n){var o=[];return J(n,function(a){a!==n&&a.nodeType===O&&("*"===e||a.getQualifiedName()===(r&&a.namespaceURI===f.HTML?t:e))&&o.push(a)}),o})},getElementsByTagNameNS:function(e,r){return new Y(this,function(t){var n=[];return J(t,function(o){o===t||o.nodeType!==O||"*"!==e&&o.namespaceURI!==e||"*"!==r&&o.localName!=r||n.push(o)}),n})}},K.prototype.getElementsByClassName=pe.prototype.getElementsByClassName,K.prototype.getElementsByTagName=pe.prototype.getElementsByTagName,K.prototype.getElementsByTagNameNS=pe.prototype.getElementsByTagNameNS,A(pe,Z),de.prototype.nodeType=C,A(de,Z),fe.prototype={data:"",substringData:function(e,r){return this.data.substring(e,e+r)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,r){this.replaceData(e,0,r)},deleteData:function(e,r){this.replaceData(e,r,"")},replaceData:function(e,r,t){t=this.data.substring(0,e)+t+this.data.substring(e+r),this.nodeValue=this.data=t,this.length=t.length}},A(fe,Z),he.prototype={nodeName:"#text",nodeType:x,splitText:function(e){var r=this.data,t=r.substring(e);r=r.substring(0,e),this.data=this.nodeValue=r,this.length=r.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},A(he,fe),me.prototype={nodeName:"#comment",nodeType:q},A(me,fe),Ee.prototype={nodeName:"#cdata-section",nodeType:_},A(Ee,he),ge.prototype.nodeType=U,A(ge,Z),Ne.prototype.nodeType=H,A(Ne,Z),Te.prototype.nodeType=L,A(Te,Z),be.prototype.nodeType=R,A(be,Z),we.prototype.nodeName="#document-fragment",we.prototype.nodeType=k,A(we,Z),ve.prototype.nodeType=M,A(ve,fe),ye.prototype.serializeToString=function(e,r){return De.call(e,r)},Z.prototype.toString=De;try{if(Object.defineProperty){function _e(e){switch(e.nodeType){case O:case k:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(_e(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}}Object.defineProperty(Y.prototype,"length",{get:function(){return X(this),this.$$length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return _e(this)},set:function(e){switch(this.nodeType){case O:case k:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),xe=function(e,r,t){e["$$"+r]=t}}}catch(Re){}return c._updateLiveList=X,c.Attr=de,c.CDATASection=Ee,c.CharacterData=fe,c.Comment=me,c.Document=K,c.DocumentFragment=we,c.DocumentType=ge,c.DOMImplementation=W,c.Element=pe,c.Entity=Te,c.EntityReference=be,c.LiveNodeList=Y,c.NamedNodeMap=j,c.Node=Z,c.NodeList=G,c.Notation=Ne,c.Text=he,c.ProcessingInstruction=ve,c.XMLSerializer=ye,c}var f,h={},m={};function E(){return f||(f=1,e=m,r=n().freeze,e.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=r({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),e.entityMap=e.HTML_ENTITIES),m;var e,r}var g,N,T,b={};function w(){if(g)return b;g=1;var e=n(),r=p(),t=i(),o=e.isHTMLEscapableRawTextElement,a=e.isHTMLMimeType,s=e.isHTMLRawTextElement,l=e.hasOwn,c=e.NAMESPACE,u=t.ParseError,d=t.DOMException;function f(){}f.prototype={parse:function(t,n,o){var i=this.domBuilder;i.startDocument(),w(n,n=Object.create(null)),function(t,n,o,i,s){var c=a(i.mimeType);function p(e){var t=";"===e[e.length-1]?e:e+";";if(!c&&t!==e)return s.error("EntityRef: expecting ;"),e;var n=r.Reference.exec(t);if(!n||n[0].length!==t.length)return s.error("entity not matching Reference production: "+e),e;var a=t.slice(1,-1);return l(o,a)?o[a]:"#"===a.charAt(0)?function(e){if(e>65535){var r=55296+((e-=65536)>>10),t=56320+(1023&e);return String.fromCharCode(r,t)}return String.fromCharCode(e)}(parseInt(a.substr(1).replace("x","0x"))):(s.error("entity not found:"+e),e)}function f(e){if(e>C){var r=t.substring(C,e).replace(h,p);A&&g(C),i.characters(r,0,e-C),C=e}}function g(e,r){for(;e>=w&&(r=v.exec(t));)b=r.index,w=b+r[0].length,A.lineNumber++;A.columnNumber=e-b+1}t.indexOf(r.UNICODE_REPLACEMENT_CHARACTER)>=0&&s.warning("Unicode replacement character detected, source encoding issues?");for(var b=0,w=0,v=/.*(?:\r\n?|\n)|.*$/g,A=i.locator,I=[{currentNSMap:n}],O=[],C=0;;){try{var x=t.indexOf("<",C);if(x<0){if(!c&&O.length>0)return s.fatalError("unclosed xml tag(s): "+O.join(", "));if(!t.substring(C).match(/^\s*$/)){var _=i.doc,R=_.createTextNode(t.substr(C));if(_.documentElement)return s.error("Extra content at the end of the document");_.appendChild(R),i.currentElement=R}return}if(x>C){var L=t.substring(C,x);c||0!==O.length||(L=L.replace(new RegExp(r.S_OPT.source,"g"),""))&&s.error("Unexpected content outside root element: '"+L+"'"),f(x)}switch(t.charAt(x+1)){case"/":var M=t.indexOf(">",x+2),q=t.substring(x+2,M>0?M:void 0);if(!q)return s.fatalError("end tag name missing");var P=M>0&&r.reg("^",r.QName_group,r.S_OPT,"$").exec(q);if(!P)return s.fatalError('end tag name contains invalid characters: "'+q+'"');if(!i.currentElement&&!i.doc.documentElement)return;var U=O[O.length-1]||i.currentElement.tagName||i.doc.documentElement.tagName||"";if(U!==P[1]){var k=P[1].toLowerCase();if(!c||U.toLowerCase()!==k)return s.fatalError('Opening and ending tag mismatch: "'+U+'" != "'+q+'"')}var H=I.pop();O.pop();var V=H.localNSMap;if(i.endElement(H.uri,H.localName,U),V)for(var B in V)l(V,B)&&i.endPrefixMapping(B);M++;break;case"?":A&&g(x),M=D(t,x,i,s);break;case"!":A&&g(x),M=y(t,x,i,s,c);break;default:A&&g(x);var F=new S,G=I[I.length-1].currentNSMap,Y=(M=E(t,x,F,G,p,s,c),F.length);if(F.closed||(c&&e.isHTMLVoidElement(F.tagName)?F.closed=!0:O.push(F.tagName)),A&&Y){for(var X=m(A,{}),j=0;j<Y;j++){var z=F[j];g(z.offset),z.locator=m(A,{})}i.locator=X,N(F,i,G)&&I.push(F),i.locator=A}else N(F,i,G)&&I.push(F);c&&!F.closed?M=T(t,M,F.tagName,p,i):M++}}catch(e){if(e instanceof u)throw e;if(e instanceof d)throw new u(e.name+": "+e.message,i.locator,e);s.error("element parse error: "+e),M=-1}M>C?C=M:f(Math.max(x,C)+1)}}(t,n,o,i,this.errorHandler),i.endDocument()}};var h=/&#?\w+;?/g;function m(e,r){return r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber,r}function E(e,r,t,n,o,a,i){function s(e,r,n){return l(t.attributeNames,e)?a.fatalError("Attribute "+e+" redefined"):!i&&r.indexOf("<")>=0?a.fatalError("Unescaped '<' not allowed in attributes values"):void t.addValue(e,r.replace(/[\t\n\r]/g," ").replace(h,o),n)}for(var c,u=++r,p=0;;){var d=e.charAt(u);switch(d){case"=":if(1===p)c=e.slice(r,u),p=3;else{if(2!==p)throw new Error("attribute equal must after attrName");p=3}break;case"'":case'"':if(3===p||1===p){if(1===p&&(a.warning('attribute value must after "="'),c=e.slice(r,u)),r=u+1,!((u=e.indexOf(d,r))>0))throw new Error("attribute value no end '"+d+"' match");s(c,f=e.slice(r,u),r-1),p=5}else{if(4!=p)throw new Error('attribute value must after "="');s(c,f=e.slice(r,u),r),a.warning('attribute "'+c+'" missed start quot('+d+")!!"),r=u+1,p=5}break;case"/":switch(p){case 0:t.setTagName(e.slice(r,u));case 5:case 6:case 7:p=7,t.closed=!0;case 4:case 1:break;case 2:t.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==p&&t.setTagName(e.slice(r,u)),u;case">":switch(p){case 0:t.setTagName(e.slice(r,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(r,u)).slice(-1)&&(t.closed=!0,f=f.slice(0,-1));case 2:2===p&&(f=c),4==p?(a.warning('attribute "'+f+'" missed quot(")!'),s(c,f,r)):(i||a.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,r));break;case 3:if(!i)return a.fatalError("AttValue: ' or \" expected")}return u;case"€":d=" ";default:if(d<=" ")switch(p){case 0:t.setTagName(e.slice(r,u)),p=6;break;case 1:c=e.slice(r,u),p=2;break;case 4:var f=e.slice(r,u);a.warning('attribute "'+f+'" missed quot(")!!'),s(c,f,r);case 5:p=6}else switch(p){case 2:i||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),s(c,c,r),r=u,p=1;break;case 5:a.warning('attribute space is required"'+c+'"!!');case 6:p=1,r=u;break;case 3:p=4,r=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function N(e,r,t){for(var n=e.tagName,o=null,a=e.length;a--;){var i=e[a],s=i.qName,u=i.value;if((h=s.indexOf(":"))>0)var p=i.prefix=s.slice(0,h),d=s.slice(h+1),f="xmlns"===p&&d;else d=s,p=null,f="xmlns"===s&&"";i.localName=d,!1!==f&&(null==o&&(o=Object.create(null),w(t,t=Object.create(null))),t[f]=o[f]=u,i.uri=c.XMLNS,r.startPrefixMapping(f,u))}for(a=e.length;a--;)(i=e[a]).prefix&&("xml"===i.prefix&&(i.uri=c.XML),"xmlns"!==i.prefix&&(i.uri=t[i.prefix]));var h;(h=n.indexOf(":"))>0?(p=e.prefix=n.slice(0,h),d=e.localName=n.slice(h+1)):(p=null,d=e.localName=n);var m=e.uri=t[p||""];if(r.startElement(m,d,n,e),!e.closed)return e.currentNSMap=t,e.localNSMap=o,!0;if(r.endElement(m,d,n),o)for(p in o)l(o,p)&&r.endPrefixMapping(p)}function T(e,r,t,n,a){var i=o(t);if(i||s(t)){var l=e.indexOf("</"+t+">",r),c=e.substring(r+1,l);return i&&(c=c.replace(h,n)),a.characters(c,0,c.length),l}return r+1}function w(e,r){for(var t in e)l(e,t)&&(r[t]=e[t])}function v(e,t){var n=t;function o(r){return r=r||0,e.charAt(n+r)}function a(e){n+=e=e||1}function i(){return e.substring(n)}return{char:o,getIndex:function(){return n},getMatch:function(e){var t=r.reg("^",e).exec(i());return t?(a(t[0].length),t[0]):null},getSource:function(){return e},skip:a,skipBlanks:function(){for(var r=0;n<e.length;){var t=o();if(" "!==t&&"\n"!==t&&"\t"!==t&&"\r"!==t)return r;r++,a()}return-1},substringFromIndex:i,substringStartsWith:function(r){return e.substring(n,n+r.length)===r},substringStartsWithCaseInsensitive:function(r){return e.substring(n,n+r.length).toUpperCase()===r.toUpperCase()}}}function y(e,t,n,o,a){var i=v(e,t);switch(a?i.char(2).toUpperCase():i.char(2)){case"-":var s=i.getMatch(r.Comment);return s?(n.comment(s,r.COMMENT_START.length,s.length-r.COMMENT_START.length-r.COMMENT_END.length),i.getIndex()):o.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var l=i.getMatch(r.CDSect);return l?a||n.currentElement?(n.startCDATA(),n.characters(l,r.CDATA_START.length,l.length-r.CDATA_START.length-r.CDATA_END.length),n.endCDATA(),i.getIndex()):o.fatalError("CDATA outside of element"):o.fatalError("Invalid CDATA starting at position "+t);case"D":if(n.doc&&n.doc.documentElement)return o.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(a?!i.substringStartsWithCaseInsensitive(r.DOCTYPE_DECL_START):!i.substringStartsWith(r.DOCTYPE_DECL_START))return o.fatalError("Expected "+r.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(r.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return o.fatalError("Expected whitespace after "+r.DOCTYPE_DECL_START+" at position "+i.getIndex());var c={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(c.name=i.getMatch(r.Name),!c.name)return o.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(a&&"html"!==c.name.toLowerCase()&&o.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(r.PUBLIC)||i.substringStartsWith(r.SYSTEM)){var u=r.ExternalID_match.exec(i.substringFromIndex());if(!u)return o.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==u.groups.SystemLiteralOnly?c.systemId=u.groups.SystemLiteralOnly:(c.systemId=u.groups.SystemLiteral,c.publicId=u.groups.PubidLiteral),i.skip(u[0].length)}else if(a&&i.substringStartsWithCaseInsensitive(r.SYSTEM)){if(i.skip(r.SYSTEM.length),i.skipBlanks()<1)return o.fatalError("Expected whitespace after "+r.SYSTEM+" at position "+i.getIndex());if(c.systemId=i.getMatch(r.ABOUT_LEGACY_COMPAT_SystemLiteral),!c.systemId)return o.fatalError("Expected "+r.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+r.SYSTEM+" at position "+i.getIndex())}return a&&c.systemId&&!r.ABOUT_LEGACY_COMPAT_SystemLiteral.test(c.systemId)&&o.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),a||(i.skipBlanks(),c.internalSubset=function(e,t){function n(e,t){var n=r.PI.exec(e.substringFromIndex());return n?"xml"===n[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(n[0].length),n[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var o=e.getSource();if("["===e.char()){e.skip(1);for(var a=e.getIndex();e.getIndex()<o.length;){if(e.skipBlanks(),"]"===e.char()){var i=o.substring(a,e.getIndex());return e.skip(1),i}var s=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?s=e.getMatch(r.elementdecl):"N"===e.char(3)&&(s=e.getMatch(r.EntityDecl));break;case"A":s=e.getMatch(r.AttlistDecl);break;case"N":s=e.getMatch(r.NotationDecl);break;case"-":s=e.getMatch(r.Comment)}else if("<"===e.char()&&"?"===e.char(1))s=n(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");s=e.getMatch(r.PEReference)}if(!s)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(i,o)),i.skipBlanks(),">"!==i.char()?o.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),n.startDTD(c.name,c.publicId,c.systemId,c.internalSubset),n.endDTD(),i.getIndex());default:return o.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function D(e,t,n,o){var a=e.substring(t).match(r.PI);if(!a)return o.fatalError("Invalid processing instruction starting at position "+t);if("xml"===a[1].toLowerCase()){if(t>0)return o.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!r.XMLDecl.test(e.substring(t)))return o.fatalError("xml declaration is not well-formed")}return n.processingInstruction(a[1],a[2]),t+a[0].length}function S(){this.attributeNames=Object.create(null)}return S.prototype={setTagName:function(e){if(!r.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!r.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},b.XMLReader=f,b.parseUtils=v,b.parseDoctypeCommentOrCData=y,b}var v=function(){if(T)return r;T=1;var e=n();r.assign=e.assign,r.hasDefaultHTMLNamespace=e.hasDefaultHTMLNamespace,r.isHTMLMimeType=e.isHTMLMimeType,r.isValidMimeType=e.isValidMimeType,r.MIME_TYPE=e.MIME_TYPE,r.NAMESPACE=e.NAMESPACE;var t=i();r.DOMException=t.DOMException,r.DOMExceptionName=t.DOMExceptionName,r.ExceptionCode=t.ExceptionCode,r.ParseError=t.ParseError;var o=d();r.Attr=o.Attr,r.CDATASection=o.CDATASection,r.CharacterData=o.CharacterData,r.Comment=o.Comment,r.Document=o.Document,r.DocumentFragment=o.DocumentFragment,r.DocumentType=o.DocumentType,r.DOMImplementation=o.DOMImplementation,r.Element=o.Element,r.Entity=o.Entity,r.EntityReference=o.EntityReference,r.LiveNodeList=o.LiveNodeList,r.NamedNodeMap=o.NamedNodeMap,r.Node=o.Node,r.NodeList=o.NodeList,r.Notation=o.Notation,r.ProcessingInstruction=o.ProcessingInstruction,r.Text=o.Text,r.XMLSerializer=o.XMLSerializer;var a=function(){if(N)return h;N=1;var e=n(),r=d(),t=i(),o=E(),a=w(),s=r.DOMImplementation,l=e.hasDefaultHTMLNamespace,c=e.isHTMLMimeType,u=e.isValidMimeType,p=e.MIME_TYPE,f=e.NAMESPACE,m=t.ParseError,g=a.XMLReader;function T(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function b(r){if(void 0===(r=r||{}).locator&&(r.locator=!0),this.assign=r.assign||e.assign,this.domHandler=r.domHandler||v,this.onError=r.onError||r.errorHandler,r.errorHandler&&"function"!=typeof r.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");r.errorHandler&&r.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=r.normalizeLineEndings||T,this.locator=!!r.locator,this.xmlns=this.assign(Object.create(null),r.xmlns)}function v(e){var r=e||{};this.mimeType=r.mimeType||p.XML_APPLICATION,this.defaultNamespace=r.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=r.onError}function y(e,r){r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber}function D(e,r,t){return"string"==typeof e?e.substr(r,t):e.length>=r+t||r?new java.lang.String(e,r,t)+"":e}function S(e,r){e.currentElement?e.currentElement.appendChild(r):e.doc.appendChild(r)}return b.prototype.parseFromString=function(r,t){if(!u(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),a=o.XML_ENTITIES,i=n[""]||null;l(t)?(a=o.HTML_ENTITIES,i=f.HTML):t===p.XML_SVG_IMAGE&&(i=f.SVG),n[""]=i,n.xml=n.xml||f.XML;var s=new this.domHandler({mimeType:t,defaultNamespace:i,onError:this.onError}),c=this.locator?{}:void 0;this.locator&&s.setDocumentLocator(c);var d=new g;return d.errorHandler=s,d.domBuilder=s,!e.isHTMLMimeType(t)&&"string"!=typeof r&&d.errorHandler.fatalError("source is not a string"),d.parse(this.normalizeLineEndings(String(r)),n,a),s.doc.documentElement||d.errorHandler.fatalError("missing root element"),s.doc},v.prototype={startDocument:function(){var e=new s;this.doc=c(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,r,t,n){var o=this.doc,a=o.createElementNS(e,t||r),i=n.length;S(this,a),this.currentElement=a,this.locator&&y(this.locator,a);for(var s=0;s<i;s++){e=n.getURI(s);var l=n.getValue(s),c=(t=n.getQName(s),o.createAttributeNS(e,t));this.locator&&y(n.getLocator(s),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,r,t){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,r){},endPrefixMapping:function(e){},processingInstruction:function(e,r){var t=this.doc.createProcessingInstruction(e,r);this.locator&&y(this.locator,t),S(this,t)},ignorableWhitespace:function(e,r,t){},characters:function(e,r,t){if(e=D.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&y(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,r,t){e=D.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&y(this.locator,n),S(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,r,t,n){var o=this.doc.implementation;if(o&&o.createDocumentType){var a=o.createDocumentType(e,r,t,n);this.locator&&y(this.locator,a),S(this,a),this.doc.doctype=a}},reportError:function(e,r){if("function"==typeof this.onError)try{this.onError(e,r,this)}catch(t){throw new m("Reporting "+e+' "'+r+'" caused '+t,this.locator)}else console.error("[xmldom "+e+"]\t"+r,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new m(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){v.prototype[e]=function(){return null}}),h.__DOMHandler=v,h.DOMParser=b,h.normalizeLineEndings=T,h.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},h.onWarningStopParsing=function(){throw"onWarningStopParsing"},h}();return r.DOMParser=a.DOMParser,r.onErrorStopParsing=a.onErrorStopParsing,r.onWarningStopParsing=a.onWarningStopParsing,r}();const y=function(e,r){for(var t=0;t<r.length;t++){const n=r[t];if("string"!=typeof n&&!Array.isArray(n))for(const r in n)if("default"!==r&&!(r in e)){const t=Object.getOwnPropertyDescriptor(n,r);t&&Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(v)},[v]);exports.i=y;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=require("@sheetxl/sdk"),n=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),s=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),o=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),i=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),r=e.reactExports.memo(t=>{const{label:n,value:s,options:o,onSelect:i,tabIndex:r=0,...l}=t,[a,c]=e.reactExports.useState(()=>u(s,o));e.reactExports.useEffect(()=>{c(u(s,o))},[s,o]);const p=e.go(e=>{c(e.target.value),i?.(o[e.target.value])},[i,o]),x=e.reactExports.useMemo(()=>Object.keys(o).map(t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t)),[o]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:n}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:r},value:a,label:n,onChange:p,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},...l,children:x})]})}),l={Workbook:"workbook",Sheet:"sheet"},a={enter:140,exit:140},c={Formulas:t.ICell.Content.Formulas,Values:t.ICell.Content.Values,Notes:t.ICell.Content.Notes,Comments:t.ICell.Content.Comments},p={...c};delete p.Values;const x={"By Rows":!0,"By Columns":!1},u=(e,t)=>{const n=Object.keys(t);for(let s=0;s<n.length;s++){const o=n[s];if(t[o]===e)return o}},d=e.reactExports.memo(u=>{const{replace:d=!1,findText:f,replaceText:m,findOptions:g,replaceOptions:j,title:h,onHide:E,onFindOrReplace:R,...C}=u,O=e.reactExports.useRef(null),y=e.reactExports.useRef(null),I=e.reactExports.useRef(null),b=e.reactExports.useRef(null),v=e.reactExports.useRef(null),k=e.reactExports.useRef(null),T=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[S,w]=e.reactExports.useState(!1),[F,B]=e.reactExports.useState(!1),[L,D]=e.reactExports.useState(d),[P,A]=e.reactExports.useState(!1),[M,K]=e.reactExports.useState(!1),[V,z]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:t.IRange.Orientation.Row,fields:[t.ICell.Content.Formulas]},scope:l.Sheet}),H=e.go(async(e,n,s,o)=>{if(!R)return;const i={...V};i.replaceOptions={...i.replaceOptions},i.findOptions={...i.findOptions},i.replaceOptions.maxCount=s?void 0:1,i.replace=n,n&&V.findOptions.fields?.[0]===t.ICell.Content.Values&&(i.findOptions.fields=[t.ICell.Content.Formulas]),i.findOptions.reverse=!e;const r=await R({autoFocus:o,...i});A(0===r)},[V,R]);e.reactExports.useEffect(()=>{A(!1)},[V,F,L]);const $=e.go((t,n)=>{if(t.keyCode===e.io.Enter){if(!V.findText)return;let e=!0,s=!1;t.shiftKey&&(e=!1),n?(t.ctrlKey&&t.altKey&&(s=!0),T(t,s?k.current:v.current)):T(t,e?b.current:I.current),H(e,n,s,!1)}},[V]),N=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{z(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",w(!0),void 0!==m&&(n.replaceText=m),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),j&&(n.replaceOptions={...n.replaceOptions,...j}),V.findOptions.fields?.[0]||(V.findOptions.fields=[t.ICell.Content.Formulas]);const s=!(!j&&void 0===m);return s&&D(s),n}),M||N.current?.focus()},[f,m,g,j]),e.reactExports.useEffect(()=>{L?(V.findOptions.fields[0],t.ICell.Content.Values):w(!0)},[L]),e.reactExports.useEffect(()=>{if(S&&O.current&&V.findText===O.current.value)return O.current===document.activeElement||O.current.contains(document.activeElement)?(O.current?.select(),void w(!1)):void O.current.addEventListener("focus",()=>{O.current?.select(),w(!1)},{once:!0})},[S,V]);const[W,{width:q}]=e._I();return e.jsxRuntimeExports.jsx(e.Vg,{ref:N,title:h??(L?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:E,onFocus:()=>K(!0),onBlur:()=>{K(!1),A(!1)},PaperProps:{elevation:M?3:1},...C,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:W,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)D(!0),O.current?.contains(document.activeElement)&&y.current?.focus();else if("f"===e.key&&e.ctrlKey)O.current?.focus();else if("c"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;z(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:F,onSelectToggle:e=>{B(e)},preventFocus:!0,label:"Toggle Additional Options",icon:e.kc(e.jsxRuntimeExports.jsx(e.zh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:L,onSelectToggle:e=>{D(e)},preventFocus:!0,label:"Toggle Replace",icon:e.kc(e.jsxRuntimeExports.jsx(e.Ph,{})),shortcut:{key:L?"F":"H",modifiers:[e.ro.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:q>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{draggable:!1,ref:O,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchCase,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Fh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchEntireCell,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Nh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.useRegex,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Bh,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>P?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>P?`${e.palette.error.main} !important`:void 0}},value:V.findText??"",onChange:e=>{z(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>$(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.reverse,onSelectToggle:e=>{H(!1,!1)},touchRippleRef:I,label:"",shortcut:{key:"Enter",modifiers:[e.ro.Shift]},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(n,{}):e.jsxRuntimeExports.jsx(i,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{selected:!V.findOptions.reverse,onSelectToggle:e=>{H(!0,!1)},touchRippleRef:b,label:"Next Match",shortcut:{key:"Enter"},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(o,{}):e.jsxRuntimeExports.jsx(s,{})),disabled:!V.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:L,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{ref:y,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:V.replaceText??"",onChange:e=>{z(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>$(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0)},touchRippleRef:v,label:"Replace",shortcut:{key:"Enter"},icon:e.kc(e.jsxRuntimeExports.jsx(e.Vh,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0,!0)},touchRippleRef:k,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.ro.Ctrl,e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Hh,{})),disabled:!V.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:F,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:q>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(r,{label:"Within",value:V.scope,options:l,onSelect:e=>{z(t=>{const n={...t};return n.scope=e,n})}}),e.jsxRuntimeExports.jsx(r,{label:"Search",value:V.findOptions.orientation!==t.IRange.Orientation.Column,options:x,onSelect:e=>{z(n=>{const s={...n};return s.findOptions.orientation=e?t.IRange.Orientation.Row:t.IRange.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(r,{label:"Look in",value:L&&V.findOptions.fields?.[0]===t.ICell.Content.Values?t.ICell.Content.Formulas:V.findOptions.fields?.[0],options:L?p:c,onSelect:e=>{z(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=d,exports.ScopeOptions=l,exports.default=d;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=require("@sheetxl/sdk"),n=({range:n,options:o,cell:s,onDone:i,...r})=>{const[l,a]=e.reactExports.useState(o??t.Sort.DefaultRangeOptions),x=e.go(e=>{let t=null;"Sort"===e&&(t={...o,options:l}),i?.(t)},[l,i,o]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Sort",options:["Sort","Cancel"],onDone:x,...r,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:!l.reverse,onChange:()=>a(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.hasHeader,onChange:()=>a(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>a(e=>({...e,collatorOptions:l.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.orientation===t.IRange.Orientation.Row,onChange:()=>a(e=>{const o=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...n.getDefaultSortCriteria(o,s).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:o}})}),label:"Row Sort",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.includeHidden,onChange:()=>a(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=n,exports.default=n;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs"),t=["Ok","Cancel"],o=e.reactExports.memo(o=>{const{tableOptions:n,context:s,onOption:a,onValidateOption:r,onDone:l,options:i=t,defaultOption:p=i?.[0],cancelOption:c="Cancel",sx:x,...u}=o,[d,g]=e.reactExports.useState(!1),[m,b]=e.reactExports.useState(()=>n?.hasHeader??!1),[j,h]=e.reactExports.useState(()=>n?.ranges??null),O=e.go(e=>{const t={...n,hasHeader:m,ranges:j};a?.(e,e===c,e===p),l?.({option:e,tableOptions:t})},[l,a,p,c,m,j,n]),E=e.reactExports.useCallback(async(e,t)=>null,[]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Insert Table",options:i,onDone:O,onValidateOption:E,defaultOption:p,cancelOption:c,autoFocusSel:".range-input input",sx:{width:"360px",...x},...u,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.bL,{formName:"range",value:j,onChangeInput:e=>h(e),resolvedAddress:s.getNames().getRanges.bind(s.getNames()),onFocus:e=>{d||e.target?.select(),g(!0)}}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:m,onChange:()=>b(!m)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=o,exports.default=o;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs");function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){t(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),c=0;c<e;c++)n[c]=arguments[c];return t.apply(r,[].concat(o,n))}}}function l(e){return{}.toString.call(e).includes("Object")}function s(e){return"function"==typeof e}var f=a(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),d=function(e,t){return l(t)||f("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&f("changeField"),t};function p(e,t){return s(t)?t(e.current):t}function g(e,t){return e.current=u(u({},e.current),t),t}function h(e,t,r){return s(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var y,m={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},v=(y=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=y.length?y.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return e.apply(t,[].concat(n,o))}})(m);function b(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],b(e[r],t[r]))}),n(n({},e),t)}var E={type:"cancelation",msg:"operation is manually canceled"};function w(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(E):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var O,j=function(e){if(Array.isArray(e))return e}(O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e){var t;e||f("initialIsRequired"),l(e)||f("initialType"),t=e,Object.keys(t).length||f("initialContent")})(e),function(e){s(e)||l(e)||f("handlerType"),l(e)&&Object.values(e).some(function(e){return!s(e)})&&f("handlersType")}(t);var r={current:e},n=a(h)(r,t),o=a(g)(r),c=a(d)(e),i=a(p)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(e){s(e)||f("selectorType")}(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,c,i)(e)}]}({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(t.push(c.value),2!==t.length);r=!0);}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}return t}}(O)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),x=j[0],M=j[1];function P(e){return document.body.appendChild(e)}function S(e){var t,r,n=x(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function R(){var e=x(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){k(t),e.resolve(t)},function(t){e.reject(t)})}function k(e){x().monaco||M({monaco:e})}var T=new Promise(function(e,t){return M({resolve:e,reject:t})}),I={config:function(e){var t=function(e){var t;return e||v("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||v("configType"),e.urls?(console.warn(m.deprecation),{paths:{vs:e.urls.monacoBase}}):e}(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["monaco"]);M(function(e){return{config:b(e.config,n),monaco:r}})},init:function(){var e=x(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(M({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),w(T);if(window.monaco&&window.monaco.editor)return k(window.monaco),e.resolve(window.monaco),w(T);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(P,S)(R)}return w(T)},__getMonacoInstance:function(){return x(function(e){return e.monaco})}},C={display:"flex",position:"relative",textAlign:"initial"},z={width:"100%"},A={display:"none"},D={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},V=function({children:t}){return e.z.createElement("div",{style:D.container},t)},L=e.reactExports.memo(function({width:t,height:r,isEditorReady:n,loading:o,_ref:c,className:i,wrapperProps:u}){return e.z.createElement("section",{style:{...C,width:t,height:r},...u},!n&&e.z.createElement(V,null,o),e.z.createElement("div",{ref:c,style:{...z,...!n&&A},className:i}))}),q=function(t){e.reactExports.useEffect(t,[])},_=function(t,r,n=!0){let o=e.reactExports.useRef(!0);e.reactExports.useEffect(o.current||!n?()=>{o.current=!1}:t,r)};function N(){}function F(e,t,r,n){return function(e,t){return e.editor.getModel(U(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?U(e,n):void 0)}(e,t,r,n)}function U(e,t){return e.Uri.parse(t)}var B=e.reactExports.memo(function({original:t,modified:r,language:n,originalLanguage:o,modifiedLanguage:c,originalModelPath:i,modifiedModelPath:u,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:s="light",loading:f="Loading...",options:d={},height:p="100%",width:g="100%",className:h,wrapperProps:y={},beforeMount:m=N,onMount:v=N}){let[b,E]=e.reactExports.useState(!1),[w,O]=e.reactExports.useState(!0),j=e.reactExports.useRef(null),x=e.reactExports.useRef(null),M=e.reactExports.useRef(null),P=e.reactExports.useRef(v),S=e.reactExports.useRef(m),R=e.reactExports.useRef(!1);q(()=>{let e=I.init();return e.then(e=>(x.current=e)&&O(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>j.current?function(){let e=j.current?.getModel();a||e?.original?.dispose(),l||e?.modified?.dispose(),j.current?.dispose()}():e.cancel()}),_(()=>{if(j.current&&x.current){let e=j.current.getOriginalEditor(),r=F(x.current,t||"",o||n||"text",i||"");r!==e.getModel()&&e.setModel(r)}},[i],b),_(()=>{if(j.current&&x.current){let e=j.current.getModifiedEditor(),t=F(x.current,r||"",c||n||"text",u||"");t!==e.getModel()&&e.setModel(t)}},[u],b),_(()=>{let e=j.current.getModifiedEditor();e.getOption(x.current.editor.EditorOption.readOnly)?e.setValue(r||""):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[r],b),_(()=>{j.current?.getModel()?.original.setValue(t||"")},[t],b),_(()=>{let{original:e,modified:t}=j.current.getModel();x.current.editor.setModelLanguage(e,o||n||"text"),x.current.editor.setModelLanguage(t,c||n||"text")},[n,o,c],b),_(()=>{x.current?.editor.setTheme(s)},[s],b),_(()=>{j.current?.updateOptions(d)},[d],b);let k=e.reactExports.useCallback(()=>{if(!x.current)return;S.current(x.current);let e=F(x.current,t||"",o||n||"text",i||""),a=F(x.current,r||"",c||n||"text",u||"");j.current?.setModel({original:e,modified:a})},[n,r,c,t,o,i,u]),T=e.reactExports.useCallback(()=>{!R.current&&M.current&&(j.current=x.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...d}),k(),x.current?.editor.setTheme(s),E(!0),R.current=!0)},[d,s,k]);return e.reactExports.useEffect(()=>{b&&P.current(j.current,x.current)},[b]),e.reactExports.useEffect(()=>{!w&&!b&&T()},[w,b,T]),e.z.createElement(L,{width:g,height:p,isEditorReady:b,loading:f,_ref:M,className:h,wrapperProps:y})}),Y=new Map,$=e.reactExports.memo(function({defaultValue:t,defaultLanguage:r,defaultPath:n,value:o,language:c,path:i,theme:u="light",line:a,loading:l="Loading...",options:s={},overrideServices:f={},saveViewState:d=!0,keepCurrentModel:p=!1,width:g="100%",height:h="100%",className:y,wrapperProps:m={},beforeMount:v=N,onMount:b=N,onChange:E,onValidate:w=N}){let[O,j]=e.reactExports.useState(!1),[x,M]=e.reactExports.useState(!0),P=e.reactExports.useRef(null),S=e.reactExports.useRef(null),R=e.reactExports.useRef(null),k=e.reactExports.useRef(b),T=e.reactExports.useRef(v),C=e.reactExports.useRef(),z=e.reactExports.useRef(o),A=function(t){let r=e.reactExports.useRef();return e.reactExports.useEffect(()=>{r.current=t},[t]),r.current}(i),D=e.reactExports.useRef(!1),V=e.reactExports.useRef(!1);q(()=>{let e=I.init();return e.then(e=>(P.current=e)&&M(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>S.current?(C.current?.dispose(),p?d&&Y.set(i,S.current.saveViewState()):S.current.getModel()?.dispose(),void S.current.dispose()):e.cancel()}),_(()=>{let e=F(P.current,t||o||"",r||c||"",i||n||"");e!==S.current?.getModel()&&(d&&Y.set(A,S.current?.saveViewState()),S.current?.setModel(e),d&&S.current?.restoreViewState(Y.get(i)))},[i],O),_(()=>{S.current?.updateOptions(s)},[s],O),_(()=>{!S.current||void 0===o||(S.current.getOption(P.current.editor.EditorOption.readOnly)?S.current.setValue(o):o!==S.current.getValue()&&(V.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),S.current.pushUndoStop(),V.current=!1))},[o],O),_(()=>{let e=S.current?.getModel();e&&c&&P.current?.editor.setModelLanguage(e,c)},[c],O),_(()=>{void 0!==a&&S.current?.revealLine(a)},[a],O),_(()=>{P.current?.editor.setTheme(u)},[u],O);let U=e.reactExports.useCallback(()=>{if(R.current&&P.current&&!D.current){T.current(P.current);let e=i||n,l=F(P.current,o||t||"",r||c||"",e||"");S.current=P.current?.editor.create(R.current,{model:l,automaticLayout:!0,...s},f),d&&S.current.restoreViewState(Y.get(e)),P.current.editor.setTheme(u),void 0!==a&&S.current.revealLine(a),j(!0),D.current=!0}},[t,r,n,o,c,i,s,f,d,u,a]);return e.reactExports.useEffect(()=>{O&&k.current(S.current,P.current)},[O]),e.reactExports.useEffect(()=>{!x&&!O&&U()},[x,O,U]),z.current=o,e.reactExports.useEffect(()=>{O&&E&&(C.current?.dispose(),C.current=S.current?.onDidChangeModelContent(e=>{V.current||E(S.current.getValue(),e)}))},[O,E]),e.reactExports.useEffect(()=>{if(O){let e=P.current.editor.onDidChangeMarkers(e=>{let t=S.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=P.current.editor.getModelMarkers({resource:t});w?.(e)}});return()=>{e?.dispose()}}return()=>{}},[O,w]),e.z.createElement(L,{width:g,height:h,isEditorReady:O,loading:l,_ref:R,className:y,wrapperProps:m})}),G=$;exports.DiffEditor=B,exports.Editor=$,exports.default=G,exports.loader=I,exports.useMonaco=function(){let[t,r]=e.reactExports.useState(I.__getMonacoInstance());return q(()=>{let e;return t||(e=I.init(),e.then(e=>{r(e)})),()=>e?.cancel()}),t};