@camera.ui/server 0.0.39 → 0.0.41

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 (165) hide show
  1. package/dist/interface/@intlify.Do1-T-x0.0.0.41.js +15 -0
  2. package/dist/interface/{@tanstack.BoiFrtzX.0.0.39.js → @tanstack.BMdKtFKV.0.0.41.js} +1 -1
  3. package/dist/interface/{@vee-validate.DOPySfe9.0.0.39.js → @vee-validate.BN6pp7gT.0.0.41.js} +1 -1
  4. package/dist/interface/{@vue.BSUQIjRR.0.0.39.js → @vue.HgptpWSe.0.0.41.js} +1 -1
  5. package/dist/interface/{@vueform.DURVfBZu.0.0.39.js → @vueform.o-ddyf2r.0.0.41.js} +1 -1
  6. package/dist/interface/@vueuse.0AqyrsW4.0.0.41.js +1 -0
  7. package/dist/interface/{@xterm.CD6WS-S3.0.0.39.js → @xterm.ChIdrMXz.0.0.41.js} +4 -4
  8. package/dist/interface/{Account.D_eFRBoi.0.0.39.js → Account.rWnoeynZ.0.0.41.js} +1 -1
  9. package/dist/interface/{Adminpanel.BW13-FSk.0.0.39.js → Adminpanel.DmVBZO7B.0.0.41.js} +2 -2
  10. package/dist/interface/{Appearance.BAartkPK.0.0.39.js → Appearance.CWq9SdBF.0.0.41.js} +1 -1
  11. package/dist/interface/{Backup.B8qRu2Lk.0.0.39.js → Backup.gg2dY5Kw.0.0.41.js} +1 -1
  12. package/dist/interface/{Camera.WCQluB3X.0.0.39.js → Camera.DC8dTFKj.0.0.41.js} +1 -1
  13. package/dist/interface/{Cameras.BimRRXnv.0.0.39.js → Cameras.BTbXKjiK.0.0.41.js} +1 -1
  14. package/dist/interface/{Camview.jUT1KeFE.0.0.39.js → Camview.9qmsYNcJ.0.0.41.js} +1 -1
  15. package/dist/interface/{Config.D7fPANlt.0.0.39.js → Config.B6iyCBiG.0.0.41.js} +1 -1
  16. package/dist/interface/{Console.DtTYQDtc.0.0.39.js → Console.D8_i4IrL.0.0.41.js} +1 -1
  17. package/dist/interface/{FirstSteps.DvFz9Ipp.0.0.39.js → FirstSteps.CNdfoio6.0.0.41.js} +1 -1
  18. package/dist/interface/{NewCamera.C2Tj9HIr.0.0.39.js → NewCamera.DboRF8X5.0.0.41.js} +2 -2
  19. package/dist/interface/Plugin.CtbpXA8-.0.0.41.js +1 -0
  20. package/dist/interface/{Plugins.0GLzbC2l.0.0.39.js → Plugins.C-h6Ohpb.0.0.41.js} +1 -1
  21. package/dist/interface/Recordings.DDez2bDG.0.0.41.js +1 -0
  22. package/dist/interface/Recordings.nAMAxDb-.0.0.41.js +1 -0
  23. package/dist/interface/{Settings.CHyfykI9.0.0.39.js → Settings.BLIeDAua.0.0.41.js} +1 -1
  24. package/dist/interface/{System.CcBINQYZ.0.0.39.js → System.ttFMkejl.0.0.41.js} +1 -1
  25. package/dist/interface/{User.CMafVfud.0.0.39.js → User.ByejsWGp.0.0.41.js} +1 -1
  26. package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.DxUPvg7f.0.0.39.js → VConfigEditor.vue_vue_type_script_setup_true_lang.Cl2zDL7n.0.0.41.js} +2 -2
  27. package/dist/interface/{VConsole.DDRPOT5i.0.0.39.js → VConsole.C_RAZERN.0.0.41.js} +1 -1
  28. package/dist/interface/VPlayer.C-i6REq9.0.0.41.js +4 -0
  29. package/dist/interface/{VPluginCard.a7_GwM_6.0.0.39.js → VPluginCard.DuHfeDOo.0.0.41.js} +1 -1
  30. package/dist/interface/{ace-builds.DKOJbQcN.0.0.39.js → ace-builds.CJ5_HA6k.0.0.41.js} +4 -4
  31. package/dist/interface/apexcharts.BvzAjsR8.0.0.41.js +838 -0
  32. package/dist/interface/assets/NewCamera.0.0.41.C7CL-ujd.css +1 -0
  33. package/dist/interface/assets/Plugin.0.0.41.YIpAU1_n.css +1 -0
  34. package/dist/interface/assets/{VPlayer.0.0.39.yTIux4rl.css → VPlayer.0.0.41.C4lm2rVR.css} +1 -1
  35. package/dist/interface/assets/{vuetify.0.0.39.BMU5FWcv.css → vuetify.0.0.41.Dua9WSqa.css} +1 -1
  36. package/dist/interface/axios.CG9kBweI.0.0.41.js +6 -0
  37. package/dist/interface/{backup.zxQT-QUB.0.0.39.js → backup.Eqa_gnBJ.0.0.41.js} +1 -1
  38. package/dist/interface/dijkstrajs.C00ieaqj.0.0.41.js +1 -0
  39. package/dist/interface/{dnd-core.DzbP3L03.0.0.39.js → dnd-core.DlR0vdws.0.0.41.js} +1 -1
  40. package/dist/interface/draggabilly.MGblyd4O.0.0.41.js +6 -0
  41. package/dist/interface/{engine.io-client.CF43lzPG.0.0.39.js → engine.io-client.Bmv4tt9j.0.0.41.js} +1 -1
  42. package/dist/interface/ev-emitter.X5f1qa-c.0.0.41.js +1 -0
  43. package/dist/interface/fast-deep-equal.CltXOu8w.0.0.41.js +1 -0
  44. package/dist/interface/highlight.js.BI1DQKiW.0.0.41.js +2 -0
  45. package/dist/interface/index.html +32 -32
  46. package/dist/interface/{linkify-it.CEUGOmX8.0.0.39.js → linkify-it.DIqOOItF.0.0.41.js} +1 -1
  47. package/dist/interface/main.DGoYNhZz.0.0.41.js +5 -0
  48. package/dist/interface/{markdown-it.BoMkMmpx.0.0.39.js → markdown-it.BoSfr4I_.0.0.41.js} +1 -1
  49. package/dist/interface/nprogress.B4qekFjh.0.0.41.js +2 -0
  50. package/dist/interface/pinia.CzEXGLAe.0.0.41.js +5 -0
  51. package/dist/interface/{plugins.BX6fkkXi.0.0.39.js → plugins.5zIS5blM.0.0.41.js} +1 -1
  52. package/dist/interface/qrcode.BIXps75H.0.0.41.js +8 -0
  53. package/dist/interface/{react-dnd-touch-backend.BZ7RUPLh.0.0.39.js → react-dnd-touch-backend.BP3qju5g.0.0.41.js} +1 -1
  54. package/dist/interface/{rxjs.DSklvEf_.0.0.39.js → rxjs.Dq5nE0it.0.0.41.js} +1 -1
  55. package/dist/interface/{socket.io-client.B1p1jCy1.0.0.39.js → socket.io-client.Dd2M9OF7.0.0.41.js} +1 -1
  56. package/dist/interface/{socket.io-parser.D--34e4A.0.0.39.js → socket.io-parser.BP9NTxl9.0.0.41.js} +1 -1
  57. package/dist/interface/sw.js +1 -1
  58. package/dist/interface/{system.urUBVKEs.0.0.39.js → system.CX3eZanU.0.0.41.js} +1 -1
  59. package/dist/interface/unidragger.Coz7gnad.0.0.41.js +5 -0
  60. package/dist/interface/{vee-validate.DTyH9YVQ.0.0.39.js → vee-validate.rx6EoM-V.0.0.41.js} +1 -1
  61. package/dist/interface/vue-i18n.CLbC5t4S.0.0.41.js +5 -0
  62. package/dist/interface/{vue-inline-svg.DlaAtqUH.0.0.39.js → vue-inline-svg.BHDMo3hs.0.0.41.js} +1 -1
  63. package/dist/interface/vue-router.BlIBZAV8.0.0.41.js +5 -0
  64. package/dist/interface/vue3-apexcharts.CJu6sQGy.0.0.41.js +1 -0
  65. package/dist/interface/{vue3-dnd.DI0vFvcT.0.0.39.js → vue3-dnd.CKocKVAc.0.0.41.js} +1 -1
  66. package/dist/interface/vue3-toastify.B344fBI7.0.0.41.js +1 -0
  67. package/dist/interface/vuetify.cl53-mu0.0.0.41.js +5 -0
  68. package/dist/server/package.json +16 -16
  69. package/dist/server/requirements.txt +5 -5
  70. package/dist/server/src/api/controllers/cameras.controller.js +10 -4
  71. package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
  72. package/dist/server/src/api/database/index.d.ts +1 -1
  73. package/dist/server/src/api/database/index.js +1 -1
  74. package/dist/server/src/api/database/index.js.map +1 -1
  75. package/dist/server/src/api/database/migration.js +49 -0
  76. package/dist/server/src/api/database/migration.js.map +1 -1
  77. package/dist/server/src/api/routes/cameras.routes.js +3 -3
  78. package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
  79. package/dist/server/src/api/schemas/backup.schema.d.ts +2 -2
  80. package/dist/server/src/api/schemas/cameras.schema.d.ts +14 -14
  81. package/dist/server/src/api/schemas/cameras.schema.js +28 -6
  82. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  83. package/dist/server/src/api/schemas/plugins.schema.d.ts +16 -16
  84. package/dist/server/src/api/services/cameras.service.d.ts +0 -1
  85. package/dist/server/src/api/services/cameras.service.js +17 -60
  86. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  87. package/dist/server/src/api/websocket/go2rtc.js +1 -1
  88. package/dist/server/src/api/websocket/go2rtc.js.map +1 -1
  89. package/dist/server/src/camera/controller.js +2 -1
  90. package/dist/server/src/camera/controller.js.map +1 -1
  91. package/package.json +16 -16
  92. package/dist/interface/@intlify.DA2Uxele.0.0.39.js +0 -15
  93. package/dist/interface/@vueuse.BbKS6Mm_.0.0.39.js +0 -1
  94. package/dist/interface/Plugin.DJZOCVcC.0.0.39.js +0 -1
  95. package/dist/interface/Recordings.BmGJwKCj.0.0.39.js +0 -1
  96. package/dist/interface/Recordings.CGm8tQJ2.0.0.39.js +0 -1
  97. package/dist/interface/VPlayer.B6FnraDr.0.0.39.js +0 -4
  98. package/dist/interface/apexcharts.BNnNkoic.0.0.39.js +0 -795
  99. package/dist/interface/assets/NewCamera.0.0.39.C5BFv264.css +0 -1
  100. package/dist/interface/assets/Plugin.0.0.39.Dr_p_vTx.css +0 -1
  101. package/dist/interface/axios.A8B9OaBI.0.0.39.js +0 -6
  102. package/dist/interface/dijkstrajs.D_NXgYpA.0.0.39.js +0 -1
  103. package/dist/interface/draggabilly.CZQEJIZA.0.0.39.js +0 -6
  104. package/dist/interface/ev-emitter.MaUUfWbo.0.0.39.js +0 -1
  105. package/dist/interface/fast-deep-equal.MattxcKw.0.0.39.js +0 -1
  106. package/dist/interface/highlight.js.CTUlL8NK.0.0.39.js +0 -2
  107. package/dist/interface/main.Cn0OSGo3.0.0.39.js +0 -5
  108. package/dist/interface/nprogress.IoWBc-2H.0.0.39.js +0 -2
  109. package/dist/interface/pinia.C6nkSx2n.0.0.39.js +0 -5
  110. package/dist/interface/qrcode.DcxA8kpR.0.0.39.js +0 -8
  111. package/dist/interface/unidragger.Cau04amP.0.0.39.js +0 -5
  112. package/dist/interface/vue-i18n.DMLEf9uA.0.0.39.js +0 -5
  113. package/dist/interface/vue-router.Dg3VWoln.0.0.39.js +0 -5
  114. package/dist/interface/vue3-apexcharts.CZjjRQ6m.0.0.39.js +0 -1
  115. package/dist/interface/vue3-toastify.BuRDCgSx.0.0.39.js +0 -1
  116. package/dist/interface/vuetify.BVIToxfp.0.0.39.js +0 -5
  117. /package/dist/interface/{@babel.l0sNRNKZ.0.0.39.js → @babel.l0sNRNKZ.0.0.41.js} +0 -0
  118. /package/dist/interface/{@mdi.CbjpODVZ.0.0.39.js → @mdi.CbjpODVZ.0.0.41.js} +0 -0
  119. /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.39.js → @react-dnd.CcwRs9xb.0.0.41.js} +0 -0
  120. /package/dist/interface/{@socket.io.Dkula2eQ.0.0.39.js → @socket.io.Dkula2eQ.0.0.41.js} +0 -0
  121. /package/dist/interface/{@turf.l0sNRNKZ.0.0.39.js → @turf.l0sNRNKZ.0.0.41.js} +0 -0
  122. /package/dist/interface/assets/{@vueform.0.0.39.CroAHJs8.css → @vueform.0.0.41.CroAHJs8.css} +0 -0
  123. /package/dist/interface/assets/{@xterm.0.0.39.CFbL2ovg.css → @xterm.0.0.41.CFbL2ovg.css} +0 -0
  124. /package/dist/interface/assets/{Account.0.0.39.Bnw6Lbtd.css → Account.0.0.41.Bnw6Lbtd.css} +0 -0
  125. /package/dist/interface/assets/{Adminpanel.0.0.39.a3t1v3MB.css → Adminpanel.0.0.41.a3t1v3MB.css} +0 -0
  126. /package/dist/interface/assets/{Backup.0.0.39.CX0rT0QJ.css → Backup.0.0.41.CX0rT0QJ.css} +0 -0
  127. /package/dist/interface/assets/{Camera.0.0.39.Br9s6-lM.css → Camera.0.0.41.Br9s6-lM.css} +0 -0
  128. /package/dist/interface/assets/{Cameras.0.0.39.Buf1Dgce.css → Cameras.0.0.41.Buf1Dgce.css} +0 -0
  129. /package/dist/interface/assets/{Camview.0.0.39.B7Cja2ry.css → Camview.0.0.41.B7Cja2ry.css} +0 -0
  130. /package/dist/interface/assets/{Config.0.0.39.DNGo2krN.css → Config.0.0.41.DNGo2krN.css} +0 -0
  131. /package/dist/interface/assets/{Console.0.0.39.Bh8l9QnM.css → Console.0.0.41.Bh8l9QnM.css} +0 -0
  132. /package/dist/interface/assets/{FirstSteps.0.0.39.Mu8VPl13.css → FirstSteps.0.0.41.Mu8VPl13.css} +0 -0
  133. /package/dist/interface/assets/{Plugins.0.0.39.DXSoO9M1.css → Plugins.0.0.41.DXSoO9M1.css} +0 -0
  134. /package/dist/interface/assets/{Settings.0.0.39.CVmui2kE.css → Settings.0.0.41.CVmui2kE.css} +0 -0
  135. /package/dist/interface/assets/{User.0.0.39.BiGtIFqt.css → User.0.0.41.BiGtIFqt.css} +0 -0
  136. /package/dist/interface/assets/{VConsole.0.0.39.BCqKHpmJ.css → VConsole.0.0.41.BCqKHpmJ.css} +0 -0
  137. /package/dist/interface/assets/{VPluginCard.0.0.39.C8Lj6X-J.css → VPluginCard.0.0.41.C8Lj6X-J.css} +0 -0
  138. /package/dist/interface/assets/{highlight.0.0.39.Ch2EwETz.css → highlight.0.0.41.Ch2EwETz.css} +0 -0
  139. /package/dist/interface/assets/{logo-256.0.0.39.BCQk9H1-.png → logo-256.0.0.41.BCQk9H1-.png} +0 -0
  140. /package/dist/interface/assets/{logo-512.0.0.39.DLKVOU2S.png → logo-512.0.0.41.DLKVOU2S.png} +0 -0
  141. /package/dist/interface/assets/{logo.0.0.39.DmEiRk0z.png → logo.0.0.41.DmEiRk0z.png} +0 -0
  142. /package/dist/interface/assets/{main.0.0.39.OJngntGT.css → main.0.0.41.OJngntGT.css} +0 -0
  143. /package/dist/interface/assets/{mode-json.0.0.39.Br7xisR1.js → mode-json.0.0.41.Br7xisR1.js} +0 -0
  144. /package/dist/interface/assets/{mode-yaml.0.0.39.CIYL8U3d.js → mode-yaml.0.0.41.CIYL8U3d.js} +0 -0
  145. /package/dist/interface/assets/{vue3-toastify.0.0.39.DHXAGmwn.css → vue3-toastify.0.0.41.DHXAGmwn.css} +0 -0
  146. /package/dist/interface/{birpc.l0sNRNKZ.0.0.39.js → birpc.l0sNRNKZ.0.0.41.js} +0 -0
  147. /package/dist/interface/{compare-versions.DqEOhma6.0.0.39.js → compare-versions.DqEOhma6.0.0.41.js} +0 -0
  148. /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.39.js → engine.io-parser.BiEtp6m2.0.0.41.js} +0 -0
  149. /package/dist/interface/{entities.C20TfXL6.0.0.39.js → entities.C20TfXL6.0.0.41.js} +0 -0
  150. /package/dist/interface/{get-size.D1dS-IaP.0.0.39.js → get-size.D1dS-IaP.0.0.41.js} +0 -0
  151. /package/dist/interface/{hookable.B8xFkYCm.0.0.39.js → hookable.B8xFkYCm.0.0.41.js} +0 -0
  152. /package/dist/interface/{mdurl.k9Sl0PQj.0.0.39.js → mdurl.k9Sl0PQj.0.0.41.js} +0 -0
  153. /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.39.js → perfect-debounce.Cp2ysxOb.0.0.41.js} +0 -0
  154. /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.39.js → point-in-polygon-hao.l0sNRNKZ.0.0.41.js} +0 -0
  155. /package/dist/interface/{punycode.js.Dj65hjkv.0.0.39.js → punycode.js.Dj65hjkv.0.0.41.js} +0 -0
  156. /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.39.js → react-dnd-html5-backend.1HQjlkwI.0.0.41.js} +0 -0
  157. /package/dist/interface/{redux.BFxtlG_c.0.0.39.js → redux.BFxtlG_c.0.0.41.js} +0 -0
  158. /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.39.js → sweepline-intersections.l0sNRNKZ.0.0.41.js} +0 -0
  159. /package/dist/interface/{tslib.9k7AwCpt.0.0.39.js → tslib.9k7AwCpt.0.0.41.js} +0 -0
  160. /package/dist/interface/{types.Cz9TaZAP.0.0.39.js → types.Cz9TaZAP.0.0.41.js} +0 -0
  161. /package/dist/interface/{uc.micro.kMc2yuuw.0.0.39.js → uc.micro.kMc2yuuw.0.0.41.js} +0 -0
  162. /package/dist/interface/{utils.mAKpSMLY.0.0.39.js → utils.mAKpSMLY.0.0.41.js} +0 -0
  163. /package/dist/interface/{uuid.Ch9TGLTe.0.0.39.js → uuid.Ch9TGLTe.0.0.41.js} +0 -0
  164. /package/dist/interface/{vue.l0sNRNKZ.0.0.39.js → vue.l0sNRNKZ.0.0.41.js} +0 -0
  165. /package/dist/interface/{zod.Bn-rxnIN.0.0.39.js → zod.Bn-rxnIN.0.0.41.js} +0 -0
@@ -0,0 +1,6 @@
1
+ function Ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ze}=Object.prototype,{getPrototypeOf:ue}=Object,K=(e=>t=>{const n=Ze.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>K(t)===e),v=e=>t=>typeof t===e,{isArray:U}=Array,q=v("undefined");function Ye(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ne=C("ArrayBuffer");function et(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ne(e.buffer),t}const tt=v("string"),x=v("function"),Pe=v("number"),X=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,z=e=>{if(K(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},rt=C("Date"),st=C("File"),ot=C("Blob"),it=C("FileList"),at=e=>X(e)&&x(e.pipe),ct=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||x(e.append)&&((t=K(e))==="formdata"||t==="object"&&x(e.toString)&&e.toString()==="[object FormData]"))},ut=C("URLSearchParams"),[lt,ft,dt,pt]=["ReadableStream","Request","Response","Headers"].map(C),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function H(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function _e(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fe=e=>!q(e)&&e!==L;function re(){const{caseless:e}=Fe(this)&&this||{},t={},n=(r,s)=>{const o=e&&_e(t,s)||s;z(t[o])&&z(r)?t[o]=re(t[o],r):z(r)?t[o]=re({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&H(arguments[r],n);return t}const mt=(e,t,n,{allOwnKeys:r}={})=>(H(t,(s,o)=>{n&&x(s)?e[o]=Ce(s,n):e[o]=s},{allOwnKeys:r}),e),yt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Et=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!Pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},St=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ue(Uint8Array)),gt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tt=C("HTMLFormElement"),At=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=C("RegExp"),Le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};H(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ct=e=>{Le(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(x(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},Pt=()=>{},_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Y="abcdefghijklmnopqrstuvwxyz",he="0123456789",Be={DIGIT:he,ALPHA:Y,ALPHA_DIGIT:Y+Y.toUpperCase()+he},Ft=(e=16,t=Be.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Lt(e){return!!(e&&x(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return H(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=C("AsyncFunction"),Ut=e=>e&&(X(e)||x(e))&&x(e.then)&&x(e.catch),De=((e,t)=>e?setImmediate:t?((n,r)=>(L.addEventListener("message",({source:s,data:o})=>{s===L&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),L.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(L.postMessage)),kt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||De,a={isArray:U,isArrayBuffer:Ne,isBuffer:Ye,isFormData:ct,isArrayBufferView:et,isString:tt,isNumber:Pe,isBoolean:nt,isObject:X,isPlainObject:z,isReadableStream:lt,isRequest:ft,isResponse:dt,isHeaders:pt,isUndefined:q,isDate:rt,isFile:st,isBlob:ot,isRegExp:xt,isFunction:x,isStream:at,isURLSearchParams:ut,isTypedArray:St,isFileList:it,forEach:H,merge:re,extend:mt,trim:ht,stripBOM:yt,inherits:bt,toFlatObject:wt,kindOf:K,kindOfTest:C,endsWith:Et,toArray:Rt,forEachEntry:gt,matchAll:Ot,isHTMLForm:Tt,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:Le,freezeMethods:Ct,toObjectSet:Nt,toCamelCase:At,noop:Pt,toFiniteNumber:_t,findKey:_e,global:L,isContextDefined:Fe,ALPHABET:Be,generateString:Ft,isSpecCompliantForm:Lt,toJSONObject:Bt,isAsyncFn:Dt,isThenable:Ut,setImmediate:De,asap:kt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Ue=m.prototype,ke={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ke[e]={value:e}});Object.defineProperties(m,ke);Object.defineProperty(Ue,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Ue);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const jt=null;function se(e){return a.isPlainObject(e)||a.isArray(e)}function je(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,n){return e?e.concat(t).map(function(s,o){return s=je(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function qt(e){return a.isArray(e)&&!e.some(se)}const Ht=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,y,h){let w=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&qt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(w=a.toArray(p)))return y=je(y),w.forEach(function(g,P){!(a.isUndefined(g)||g===null)&&t.append(i===!0?me([y],P,o):i===null?y:y+"[]",u(g))}),!1}return se(p)?!0:(t.append(me(h,y,o),u(p)),!1)}const d=[],b=Object.assign(Ht,{defaultVisitor:l,convertValue:u,isVisitable:se});function R(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(w,S){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(S)?S.trim():S,y,b))===!0&&R(w,y?y.concat(S):[S])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function le(e,t){this._pairs=[],e&&G(e,this,t)}const qe=le.prototype;qe.append=function(t,n){this._pairs.push([t,n])};qe.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function It(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||It;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new le(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class be{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mt=typeof URLSearchParams<"u"?URLSearchParams:le,zt=typeof FormData<"u"?FormData:null,$t=typeof Blob<"u"?Blob:null,Jt={isBrowser:!0,classes:{URLSearchParams:Mt,FormData:zt,Blob:$t},protocols:["http","https","file","blob","url","data"]},fe=typeof window<"u"&&typeof document<"u",oe=typeof navigator=="object"&&navigator||void 0,Vt=fe&&(!oe||["ReactNative","NativeScript","NS"].indexOf(oe.product)<0),Wt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=fe&&window.location.href||"http://localhost",vt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fe,hasStandardBrowserEnv:Vt,hasStandardBrowserWebWorkerEnv:Wt,navigator:oe,origin:Kt},Symbol.toStringTag,{value:"Module"})),O={...vt,...Jt};function Xt(e,t){return G(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Gt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Me(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Qt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Gt(r),s,n,0)}),n}return null}function Zt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const I={transitional:Ie,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Me(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Zt(t)):t}],transformResponse:[function(t){const n=this.transitional||I.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{I.headers[e]={}});const Yt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Yt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},we=Symbol("internals");function j(e){return e&&String(e).trim().toLowerCase()}function $(e){return e===!1||e==null?e:a.isArray(e)?e.map($):String(e)}function tn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let A=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=j(f);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(s,l);(!d||s[d]===void 0||u===!0||u===void 0&&s[d]!==!1)&&(s[d||f]=$(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nn(t))i(en(t),n);else if(a.isHeaders(t))for(const[c,f]of t.entries())o(f,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=j(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return tn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=j(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=j(i),i){const c=a.findKey(r,i);c&&(!n||ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ee(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=$(s),delete n[o];return}const c=t?rn(o):String(o).trim();c!==o&&delete n[o],n[c]=$(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[we]=this[we]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=j(i);r[c]||(sn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function te(e,t){const n=this||I,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ze(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function on(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function an(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const R=l&&u-l;return R?Math.round(b*1e3/R):void 0}}function cn(e,t){let n=0,r=1e3/t,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const l=Date.now(),d=l-n;d>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const V=(e,t,n=3)=>{let r=0;const s=an(50,250);return cn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,u=s(f),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},Ee=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>a.asap(()=>e(...t)),un=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,ln=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Je(e,t){return e&&!fn(t)?dn(e,t):t}const Se=e=>e instanceof A?{...e}:e;function D(e,t){t=t||{};const n={};function r(u,l,d,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,d,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,d,b)}else return r(u,l,d,b)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,d){if(d in t)return r(u,l);if(d in e)return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(u,l,d)=>s(Se(u),Se(l),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=f[l]||s,b=d(e[l],t[l],l);a.isUndefined(b)&&d!==c||(n[l]=b)}),n}const Ve=e=>{const t=D({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=A.from(i),t.url=He(Je(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){const u=s&&o&&ln.read(o);u&&i.set(s,u)}return t},pn=typeof XMLHttpRequest<"u",hn=pn&&function(e){return new Promise(function(n,r){const s=Ve(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,d,b,R,p;function y(){R&&R(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function w(){if(!h)return;const g=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};$e(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=w:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(w)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Ie;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,p]=V(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,R]=V(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=g=>{h&&(r(!g||g.type?new k(null,e,h):g),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const S=on(s.url);if(S&&O.protocols.indexOf(S)===-1){r(new m("Unsupported protocol "+S+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},mn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof m?l:new k(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},bn=async function*(e,t){for await(const n of wn(e))yield*yn(n,t)},wn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ge=(e,t,n,r)=>{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let d=l.byteLength;if(n){let b=o+=d;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",We=Q&&typeof ReadableStream=="function",En=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ke=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=We&&Ke(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oe=64*1024,ie=We&&Ke(()=>a.isReadableStream(new Response("").body)),W={stream:ie&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!W[t]&&(W[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await En(e)).byteLength},gn=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},On=Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:d="same-origin",fetchOptions:b}=Ve(e);u=u?(u+"").toLowerCase():"text";let R=mn([s,o&&o.toAbortSignal()],i),p;const y=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await gn(l,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&l.setContentType(_),T.body){const[F,M]=Ee(h,V(Re(f)));r=ge(T.body,Oe,F,M)}}a.isString(d)||(d=d?"include":"omit");const w="credentials"in Request.prototype;p=new Request(t,{...b,signal:R,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:w?d:void 0});let S=await fetch(p);const g=ie&&(u==="stream"||u==="response");if(ie&&(c||g&&y)){const T={};["status","statusText","headers"].forEach(de=>{T[de]=S[de]});const _=a.toFiniteNumber(S.headers.get("content-length")),[F,M]=c&&Ee(_,V(Re(c),!0))||[];S=new Response(ge(S.body,Oe,F,()=>{M&&M(),y&&y()}),T)}u=u||"text";let P=await W[a.findKey(W,u)||"text"](S,e);return!g&&y&&y(),await new Promise((T,_)=>{$e(T,_,{data:P,headers:A.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:p})})}catch(w){throw y&&y(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:w.cause||w}):m.from(w,w&&w.code,e,p)}}),ae={http:jt,xhr:hn,fetch:On};a.forEach(ae,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Te=e=>`- ${e}`,Tn=e=>a.isFunction(e)||e===null||e===!1,ve={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Tn(n)&&(r=ae[(i=String(n)).toLowerCase()],r===void 0))throw new m(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
4
+ `+o.map(Te).join(`
5
+ `):" "+Te(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ae};function ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Ae(e){return ne(e),e.headers=A.from(e.headers),e.data=te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ve.getAdapter(e.adapter||I.adapter)(e).then(function(r){return ne(e),r.data=te.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return ze(r)||(ne(e),r&&r.response&&(r.response.data=te.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Xe="1.7.8",Z={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Z[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xe={};Z.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Xe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!xe[i]&&(xe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};Z.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function An(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const J={assertOptions:An,validators:Z},N=J.validators;let B=class{constructor(t){this.defaults=t,this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=D(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&J.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:J.assertOptions(s,{encode:N.function,serialize:N.function},!0)),J.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=A.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let l,d=0,b;if(!f){const p=[Ae.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),b=p.length,l=Promise.resolve(n);d<b;)l=l.then(p[d++],p[d++]);return l}b=c.length;let R=n;for(d=0;d<b;){const p=c[d++],y=c[d++];try{R=p(R)}catch(h){y.call(this,h);break}}try{l=Ae.call(this,R)}catch(p){return Promise.reject(p)}for(d=0,b=u.length;d<b;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=D(this.defaults,t);const n=Je(t.baseURL,t.url);return He(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){B.prototype[t]=function(n,r){return this.request(D(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(D(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}B.prototype[t]=n(),B.prototype[t+"Form"]=n(!0)});let xn=class Ge{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new k(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ge(function(s){t=s}),cancel:t}}};function Cn(e){return function(n){return e.apply(null,n)}}function Nn(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ce).forEach(([e,t])=>{ce[t]=e});function Qe(e){const t=new B(e),n=Ce(B.prototype.request,t);return a.extend(n,B.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(D(e,s))},n}const E=Qe(I);E.Axios=B;E.CanceledError=k;E.CancelToken=xn;E.isCancel=ze;E.VERSION=Xe;E.toFormData=G;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Cn;E.isAxiosError=Nn;E.mergeConfig=D;E.AxiosHeaders=A;E.formToJSON=e=>Me(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=ve.getAdapter;E.HttpStatusCode=ce;E.default=E;const{Axios:Fn,AxiosError:Ln,CanceledError:Bn,isCancel:Dn,CancelToken:Un,VERSION:kn,all:jn,Cancel:qn,isAxiosError:Hn,spread:In,toFormData:Mn,AxiosHeaders:zn,HttpStatusCode:$n,formToJSON:Jn,getAdapter:Vn,mergeConfig:Wn}=E;export{Ln as A,E as a};
@@ -1 +1 @@
1
- import"./vue3-toastify.BuRDCgSx.0.0.39.js";import{x as a}from"./main.Cn0OSGo3.0.0.39.js";const n=async s=>(await a.post("/backup/download",{localStorage:s},{responseType:"arraybuffer"})).data,t=async s=>(await a.post("/backup/restore",s)).data;export{n as d,t as r};
1
+ import"./vue3-toastify.B344fBI7.0.0.41.js";import{x as a}from"./main.DGoYNhZz.0.0.41.js";const n=async s=>(await a.post("/backup/download",{localStorage:s},{responseType:"arraybuffer"})).data,t=async s=>(await a.post("/backup/restore",s)).data;export{n as d,t as r};
@@ -0,0 +1 @@
1
+ var c={exports:{}},y;function q(){return y||(y=1,function(m){var u={single_source_shortest_paths:function(o,t,e){var r={},i={};i[t]=0;var n=u.PriorityQueue.make();n.push(t,0);for(var f,p,s,h,_,v,a,d,l;!n.empty();){f=n.pop(),p=f.value,h=f.cost,_=o[p]||{};for(s in _)_.hasOwnProperty(s)&&(v=_[s],a=h+v,d=i[s],l=typeof i[s]>"u",(l||d>a)&&(i[s]=a,n.push(s,a),r[s]=p))}if(typeof e<"u"&&typeof i[e]>"u"){var k=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(k)}return r},extract_shortest_path_from_predecessor_list:function(o,t){for(var e=[],r=t;r;)e.push(r),o[r],r=o[r];return e.reverse(),e},find_path:function(o,t,e){var r=u.single_source_shortest_paths(o,t,e);return u.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(o){var t=u.PriorityQueue,e={},r;o=o||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=o.sorter||t.default_sorter,e},default_sorter:function(o,t){return o.cost-t.cost},push:function(o,t){var e={value:o,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};m.exports=u}(c)),c.exports}export{q as r};
@@ -1 +1 @@
1
- import{c as j}from"./redux.BFxtlG_c.0.0.39.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.39.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
1
+ import{c as j}from"./redux.BFxtlG_c.0.0.41.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.41.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
@@ -0,0 +1,6 @@
1
+ import{g as $}from"./@xterm.ChIdrMXz.0.0.41.js";import{r as q}from"./get-size.D1dS-IaP.0.0.41.js";import{r as M}from"./unidragger.Coz7gnad.0.0.41.js";var f={exports:{}};/*!
2
+ * Draggabilly v3.0.0
3
+ * Make that shiz draggable
4
+ * https://draggabilly.desandro.com
5
+ * MIT license
6
+ */var T=f.exports,b;function j(){return b||(b=1,function(m){(function(h,d){m.exports?m.exports=d(h,q(),M()):h.Draggabilly=d(h,h.getSize,h.Unidragger)})(typeof window<"u"?window:T,function(d,u,E){function P(){}let p=d.jQuery;function c(t,e){this.element=typeof t=="string"?document.querySelector(t):t,p&&(this.$element=p(this.element)),this.options={},this.option(e),this._create()}let i=c.prototype=Object.create(E.prototype);i.option=function(t){this.options={...this.options,...t}};const D=["relative","absolute","fixed"];i._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition={...this.position};let t=getComputedStyle(this.element);D.includes(t.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},i.setHandles=function(){let{handle:t}=this.options;typeof t=="string"?this.handles=this.element.querySelectorAll(t):typeof t=="object"&&t.length?this.handles=t:t instanceof HTMLElement?this.handles=[t]:this.handles=[this.element]};const v=["dragStart","dragMove","dragEnd"];let S=i.emitEvent;i.emitEvent=function(t,e){if(!this.isEnabled&&v.includes(t))return;S.call(this,t,e);let s=d.jQuery;if(!s||!this.$element)return;let o,r=e;e&&e[0]instanceof Event&&([o,...r]=e);let l=s.Event(o);l.type=t,this.$element.trigger(l,r)},i._getPosition=function(){let t=getComputedStyle(this.element),e=this._getPositionCoord(t.left,"width"),n=this._getPositionCoord(t.top,"height");this.position.x=isNaN(e)?0:e,this.position.y=isNaN(n)?0:n,this._addTransformPosition(t)},i._getPositionCoord=function(t,e){if(t.includes("%")){let n=u(this.element.parentNode);return n?parseFloat(t)/100*n[e]:0}return parseInt(t,10)},i._addTransformPosition=function(t){let e=t.transform;if(!e.startsWith("matrix"))return;let n=e.split(","),s=e.startsWith("matrix3d")?12:4,o=parseInt(n[s],10),r=parseInt(n[s+1],10);this.position.x+=o,this.position.y+=r},i.handlePointerDown=function(t,e){this.isEnabled&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(t),this.element.classList.add("is-pointer-down"))},i.handleDragStart=function(){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},i.measureContainment=function(){let t=this.getContainer();if(!t)return;let e=u(this.element),n=u(t),{borderLeftWidth:s,borderRightWidth:o,borderTopWidth:r,borderBottomWidth:a}=n,l=this.element.getBoundingClientRect(),y=t.getBoundingClientRect(),L=s+o,_=r+a,x=this.relativeStartPosition={x:l.left-(y.left+s),y:l.top-(y.top+r)};this.containSize={width:n.width-L-x.x-e.width,height:n.height-_-x.y-e.height}},i.getContainer=function(){let t=this.options.containment;return t?t instanceof HTMLElement?t:typeof t=="string"?document.querySelector(t):this.element.parentNode:void 0},i.handleDragMove=function(t,e,n){if(!this.isEnabled)return;let s=n.x,o=n.y,r=this.options.grid,a=r&&r[0],l=r&&r[1];s=g(s,a),o=g(o,l),s=this.containDrag("x",s,a),o=this.containDrag("y",o,l),s=this.options.axis=="y"?0:s,o=this.options.axis=="x"?0:o,this.position.x=this.startPosition.x+s,this.position.y=this.startPosition.y+o,this.dragPoint.x=s,this.dragPoint.y=o};function g(t,e,n){return e?(n=n||"round",Math[n](t/e)*e):t}i.containDrag=function(t,e,n){if(!this.options.containment)return e;let s=t=="x"?"width":"height",o=this.relativeStartPosition[t],r=g(-o,n,"ceil"),a=this.containSize[s];return a=g(a,n,"floor"),Math.max(r,Math.min(a,e))},i.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},i.handleDragEnd=function(){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},i.animate=function(){this.isDragging&&(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},i.setLeftTop=function(){let{x:t,y:e}=this.position;this.element.style.left=`${t}px`,this.element.style.top=`${e}px`},i.positionDrag=function(){let{x:t,y:e}=this.dragPoint;this.element.style.transform=`translate3d(${t}px, ${e}px, 0)`},i.setPosition=function(t,e){this.position.x=t,this.position.y=e,this.setLeftTop()},i.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},i.disable=function(){this.isEnabled&&(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const C=["transform","left","top","position"];return i.destroy=function(){this.disable(),C.forEach(t=>{this.element.style[t]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},i._init=P,p&&p.bridget&&p.bridget("draggabilly",c),c})}(f)),f.exports}var z=j();const W=$(z);export{W as D};
@@ -1 +1 @@
1
- import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.39.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.39.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
1
+ import{d as L,a as O,e as B,b as H,c as U,f as F,p as x}from"./engine.io-parser.BiEtp6m2.0.0.41.js";import{E as y}from"./@socket.io.Dkula2eQ.0.0.41.js";const _=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),I="arraybuffer";function E(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const N=a.setTimeout,A=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=N.bind(a),r.clearTimeoutFn=A.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const W=1.33;function D(r){return typeof r=="string"?M(r):Math.ceil((r.byteLength||r.size)*W)}function M(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function R(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function X(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function z(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class J extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends y{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new J(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=L(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=X(e);return t.length?"?"+t:""}}class V extends b{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};O(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,B(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=R()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let P=!1;try{P=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const j=P;function $(){}class G extends V{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends y{constructor(e,t,s){super(),this.createRequest=e,w(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=E(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=h.requestsCount++,h.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const K=function(){const r=q({xdomain:!1});return r&&r.responseType!==null}();class Q extends G{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=K&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new h(q,this.uri(),e)}}function q(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||j))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Y extends b{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=C?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;H(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=R()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const m=a.WebSocket||a.MozWebSocket;class Z extends Y{createSocket(e,t,s){return C?new m(e,t,s):t?new m(e,t):new m(e)}doWrite(e,t){this.ws.send(t)}}class ee extends b{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=U(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=F();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this._writer.write(n).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&_(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const te={websocket:Z,webtransport:ee,polling:Q},se=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function S(r){if(r.length>8e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},n=14;for(;n--;)o[re[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const g=typeof addEventListener=="function"&&typeof removeEventListener=="function",f=[];g&&addEventListener("offline",()=>{f.forEach(r=>r())},!1);class c extends y{constructor(e,t){if(super(),this.binaryType=I,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=S(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=S(t.host).host);w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=z(this.opts.query)),g&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},f.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=x,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=D(i)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,_(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(c.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),g&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=f.indexOf(this._offlineEventListener);s!==-1&&f.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}c.protocol=x;class ne extends c{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class ce extends ne{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(i=>te[i]).filter(i=>!!i)),super(e,s)}}export{ce as S,w as i,_ as n,S as p};
@@ -0,0 +1 @@
1
+ var f={exports:{}},c=f.exports,u;function v(){return u||(u=1,function(h){(function(r,s){h.exports?h.exports=s():r.EvEmitter=s()})(typeof window<"u"?window:c,function(){function r(){}let s=r.prototype;return s.on=function(e,i){if(!e||!i)return this;let t=this._events=this._events||{},n=t[e]=t[e]||[];return n.includes(i)||n.push(i),this},s.once=function(e,i){if(!e||!i)return this;this.on(e,i);let t=this._onceEvents=this._onceEvents||{},n=t[e]=t[e]||{};return n[i]=!0,this},s.off=function(e,i){let t=this._events&&this._events[e];if(!t||!t.length)return this;let n=t.indexOf(i);return n!=-1&&t.splice(n,1),this},s.emitEvent=function(e,i){let t=this._events&&this._events[e];if(!t||!t.length)return this;t=t.slice(0),i=i||[];let n=this._onceEvents&&this._onceEvents[e];for(let o of t)n&&n[o]&&(this.off(e,o),delete n[o]),o.apply(this,i);return this},s.allOff=function(){return delete this._events,delete this._onceEvents,this},r})}(f)),f.exports}export{v as r};
@@ -0,0 +1 @@
1
+ import{g as l}from"./@xterm.ChIdrMXz.0.0.41.js";var o,c;function a(){return c||(c=1,o=function n(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var u,e,f;if(Array.isArray(r)){if(u=r.length,u!=t.length)return!1;for(e=u;e--!==0;)if(!n(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(f=Object.keys(r),u=f.length,u!==Object.keys(t).length)return!1;for(e=u;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,f[e]))return!1;for(e=u;e--!==0;){var s=f[e];if(!n(r[s],t[s]))return!1}return!0}return r!==r&&t!==t}),o}var p=a();const O=l(p);export{O as e};
@@ -0,0 +1,2 @@
1
+ import{g as Qn}from"./@xterm.ChIdrMXz.0.0.41.js";var Pe,en;function et(){if(en)return Pe;en=1;function l(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const s=e[n],g=typeof s;(g==="object"||g==="function")&&!Object.isFrozen(s)&&l(s)}),e}class E{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function O(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function h(e,...n){const s=Object.create(null);for(const g in e)s[g]=e[g];return n.forEach(function(g){for(const R in g)s[R]=g[R]}),s}const F="</span>",K=e=>!!e.scope,H=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const s=e.split(".");return[`${n}${s.shift()}`,...s.map((g,R)=>`${g}${"_".repeat(R+1)}`)].join(" ")}return`${n}${e}`};class v{constructor(n,s){this.buffer="",this.classPrefix=s.classPrefix,n.walk(this)}addText(n){this.buffer+=O(n)}openNode(n){if(!K(n))return;const s=H(n.scope,{prefix:this.classPrefix});this.span(s)}closeNode(n){K(n)&&(this.buffer+=F)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const L=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class w{constructor(){this.rootNode=L(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const s=L({scope:n});this.add(s),this.stack.push(s)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,s){return typeof s=="string"?n.addText(s):s.children&&(n.openNode(s),s.children.forEach(g=>this._walk(n,g)),n.closeNode(s)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(s=>typeof s=="string")?n.children=[n.children.join("")]:n.children.forEach(s=>{w._collapse(s)}))}}class P extends w{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,s){const g=n.root;s&&(g.scope=`language:${s}`),this.add(g)}toHTML(){return new v(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function I(e){return e?typeof e=="string"?e:e.source:null}function N(e){return y("(?=",e,")")}function B(e){return y("(?:",e,")*")}function D(e){return y("(?:",e,")?")}function y(...e){return e.map(s=>I(s)).join("")}function U(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function Z(...e){return"("+(U(e).capture?"":"?:")+e.map(g=>I(g)).join("|")+")"}function se(e){return new RegExp(e.toString()+"|").exec("").length-1}function ue(e,n){const s=e&&e.exec(n);return s&&s.index===0}const ge=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function V(e,{joinWith:n}){let s=0;return e.map(g=>{s+=1;const R=s;let A=I(g),a="";for(;A.length>0;){const r=ge.exec(A);if(!r){a+=A;break}a+=A.substring(0,r.index),A=A.substring(r.index+r[0].length),r[0][0]==="\\"&&r[1]?a+="\\"+String(Number(r[1])+R):(a+=r[0],r[0]==="("&&s++)}return a}).map(g=>`(${g})`).join(n)}const q=/\b\B/,fe="[a-zA-Z]\\w*",ie="[a-zA-Z_]\\w*",de="\\b\\d+(\\.\\d+)?",Ee="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",be="\\b(0b[01]+)",Oe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=y(n,/.*\b/,e.binary,/\b.*/)),h({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(s,g)=>{s.index!==0&&g.ignoreMatch()}},e)},Q={begin:"\\\\[\\s\\S]",relevance:0},xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Q]},he={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Q]},Ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},C=function(e,n,s={}){const g=h({scope:"comment",begin:e,end:n,contains:[]},s);g.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const R=Z("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return g.contains.push({begin:y(/[ ]+/,"(",R,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),g},Y=C("//","$"),ee=C("/\\*","\\*/"),re=C("#","$"),oe={scope:"number",begin:de,relevance:0},pe={scope:"number",begin:Ee,relevance:0},ln={scope:"number",begin:be,relevance:0},un={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Q,{begin:/\[/,end:/\]/,relevance:0,contains:[Q]}]},gn={scope:"title",begin:fe,relevance:0},fn={scope:"title",begin:ie,relevance:0},dn={begin:"\\.\\s*"+ie,relevance:0};var _e=Object.freeze({__proto__:null,APOS_STRING_MODE:xe,BACKSLASH_ESCAPE:Q,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:be,COMMENT:C,C_BLOCK_COMMENT_MODE:ee,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:pe,C_NUMBER_RE:Ee,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(n,s)=>{s.data._beginMatch=n[1]},"on:end":(n,s)=>{s.data._beginMatch!==n[1]&&s.ignoreMatch()}})},HASH_COMMENT_MODE:re,IDENT_RE:fe,MATCH_NOTHING_RE:q,METHOD_GUARD:dn,NUMBER_MODE:oe,NUMBER_RE:de,PHRASAL_WORDS_MODE:Ie,QUOTE_STRING_MODE:he,REGEXP_MODE:un,RE_STARTERS_RE:Oe,SHEBANG:we,TITLE_MODE:gn,UNDERSCORE_IDENT_RE:ie,UNDERSCORE_TITLE_MODE:fn});function En(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function bn(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function hn(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=En,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function pn(e,n){Array.isArray(e.illegal)&&(e.illegal=Z(...e.illegal))}function _n(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Sn(e,n){e.relevance===void 0&&(e.relevance=1)}const Nn=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const s=Object.assign({},e);Object.keys(e).forEach(g=>{delete e[g]}),e.keywords=s.keywords,e.begin=y(s.beforeMatch,N(s.begin)),e.starts={relevance:0,contains:[Object.assign(s,{endsParent:!0})]},e.relevance=0,delete s.beforeMatch},Rn=["of","and","for","in","not","or","if","then","parent","list","value"],An="keyword";function Ue(e,n,s=An){const g=Object.create(null);return typeof e=="string"?R(s,e.split(" ")):Array.isArray(e)?R(s,e):Object.keys(e).forEach(function(A){Object.assign(g,Ue(e[A],n,A))}),g;function R(A,a){n&&(a=a.map(r=>r.toLowerCase())),a.forEach(function(r){const u=r.split("|");g[u[0]]=[A,yn(u[0],u[1])]})}}function yn(e,n){return n?Number(n):Tn(e)?0:1}function Tn(e){return Rn.includes(e.toLowerCase())}const $e={},ne=e=>{console.error(e)},He=(e,...n)=>{console.log(`WARN: ${e}`,...n)},ae=(e,n)=>{$e[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),$e[`${e}/${n}`]=!0)},Se=new Error;function Fe(e,n,{key:s}){let g=0;const R=e[s],A={},a={};for(let r=1;r<=n.length;r++)a[r+g]=R[r],A[r+g]=!0,g+=se(n[r-1]);e[s]=a,e[s]._emit=A,e[s]._multi=!0}function Mn(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ne("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Se;if(typeof e.beginScope!="object"||e.beginScope===null)throw ne("beginScope must be object"),Se;Fe(e,e.begin,{key:"beginScope"}),e.begin=V(e.begin,{joinWith:""})}}function On(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ne("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Se;if(typeof e.endScope!="object"||e.endScope===null)throw ne("endScope must be object"),Se;Fe(e,e.end,{key:"endScope"}),e.end=V(e.end,{joinWith:""})}}function wn(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function xn(e){wn(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),Mn(e),On(e)}function In(e){function n(a,r){return new RegExp(I(a),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(r?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(r,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,r]),this.matchAt+=se(r)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const r=this.regexes.map(u=>u[1]);this.matcherRe=n(V(r,{joinWith:"|"}),!0),this.lastIndex=0}exec(r){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(r);if(!u)return null;const x=u.findIndex((le,me)=>me>0&&le!==void 0),T=this.matchIndexes[x];return u.splice(0,x),Object.assign(u,T)}}class g{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(r){if(this.multiRegexes[r])return this.multiRegexes[r];const u=new s;return this.rules.slice(r).forEach(([x,T])=>u.addRule(x,T)),u.compile(),this.multiRegexes[r]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(r,u){this.rules.push([r,u]),u.type==="begin"&&this.count++}exec(r){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let x=u.exec(r);if(this.resumingScanAtSamePosition()&&!(x&&x.index===this.lastIndex)){const T=this.getMatcher(0);T.lastIndex=this.lastIndex+1,x=T.exec(r)}return x&&(this.regexIndex+=x.position+1,this.regexIndex===this.count&&this.considerAll()),x}}function R(a){const r=new g;return a.contains.forEach(u=>r.addRule(u.begin,{rule:u,type:"begin"})),a.terminatorEnd&&r.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&r.addRule(a.illegal,{type:"illegal"}),r}function A(a,r){const u=a;if(a.isCompiled)return u;[bn,_n,xn,Nn].forEach(T=>T(a,r)),e.compilerExtensions.forEach(T=>T(a,r)),a.__beforeBegin=null,[hn,pn,Sn].forEach(T=>T(a,r)),a.isCompiled=!0;let x=null;return typeof a.keywords=="object"&&a.keywords.$pattern&&(a.keywords=Object.assign({},a.keywords),x=a.keywords.$pattern,delete a.keywords.$pattern),x=x||/\w+/,a.keywords&&(a.keywords=Ue(a.keywords,e.case_insensitive)),u.keywordPatternRe=n(x,!0),r&&(a.begin||(a.begin=/\B|\b/),u.beginRe=n(u.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(u.endRe=n(u.end)),u.terminatorEnd=I(u.end)||"",a.endsWithParent&&r.terminatorEnd&&(u.terminatorEnd+=(a.end?"|":"")+r.terminatorEnd)),a.illegal&&(u.illegalRe=n(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(T){return Cn(T==="self"?a:T)})),a.contains.forEach(function(T){A(T,u)}),a.starts&&A(a.starts,r),u.matcher=R(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=h(e.classNameAliases||{}),A(e)}function Ge(e){return e?e.endsWithParent||Ge(e.starts):!1}function Cn(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return h(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Ge(e)?h(e,{starts:e.starts?h(e.starts):null}):Object.isFrozen(e)?h(e):e}var mn="11.10.0";class vn extends Error{constructor(n,s){super(n),this.name="HTMLInjectionError",this.html=s}}const Ce=O,Ke=h,ze=Symbol("nomatch"),Ln=7,We=function(e){const n=Object.create(null),s=Object.create(null),g=[];let R=!0;const A="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:P};function u(t){return r.noHighlightRe.test(t)}function x(t){let o=t.className+" ";o+=t.parentNode?t.parentNode.className:"";const b=r.languageDetectRe.exec(o);if(b){const _=X(b[1]);return _||(He(A.replace("{}",b[1])),He("Falling back to no-highlight mode for this block.",t)),_?b[1]:"no-highlight"}return o.split(/\s+/).find(_=>u(_)||X(_))}function T(t,o,b){let _="",M="";typeof o=="object"?(_=t,b=o.ignoreIllegals,M=o.language):(ae("10.7.0","highlight(lang, code, ...args) has been deprecated."),ae("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),M=t,_=o),b===void 0&&(b=!0);const G={code:_,language:M};Re("before:highlight",G);const J=G.result?G.result:le(G.language,G.code,b);return J.code=G.code,Re("after:highlight",J),J}function le(t,o,b,_){const M=Object.create(null);function G(i,c){return i.keywords[c]}function J(){if(!f.keywords){m.addText(S);return}let i=0;f.keywordPatternRe.lastIndex=0;let c=f.keywordPatternRe.exec(S),d="";for(;c;){d+=S.substring(i,c.index);const p=W.case_insensitive?c[0].toLowerCase():c[0],k=G(f,p);if(k){const[j,Vn]=k;if(m.addText(d),d="",M[p]=(M[p]||0)+1,M[p]<=Ln&&(Te+=Vn),j.startsWith("_"))d+=c[0];else{const qn=W.classNameAliases[j]||j;z(c[0],qn)}}else d+=c[0];i=f.keywordPatternRe.lastIndex,c=f.keywordPatternRe.exec(S)}d+=S.substring(i),m.addText(d)}function Ae(){if(S==="")return;let i=null;if(typeof f.subLanguage=="string"){if(!n[f.subLanguage]){m.addText(S);return}i=le(f.subLanguage,S,!0,Qe[f.subLanguage]),Qe[f.subLanguage]=i._top}else i=ve(S,f.subLanguage.length?f.subLanguage:null);f.relevance>0&&(Te+=i.relevance),m.__addSublanguage(i._emitter,i.language)}function $(){f.subLanguage!=null?Ae():J(),S=""}function z(i,c){i!==""&&(m.startScope(c),m.addText(i),m.endScope())}function Xe(i,c){let d=1;const p=c.length-1;for(;d<=p;){if(!i._emit[d]){d++;continue}const k=W.classNameAliases[i[d]]||i[d],j=c[d];k?z(j,k):(S=j,J(),S=""),d++}}function Je(i,c){return i.scope&&typeof i.scope=="string"&&m.openNode(W.classNameAliases[i.scope]||i.scope),i.beginScope&&(i.beginScope._wrap?(z(S,W.classNameAliases[i.beginScope._wrap]||i.beginScope._wrap),S=""):i.beginScope._multi&&(Xe(i.beginScope,c),S="")),f=Object.create(i,{parent:{value:f}}),f}function Ve(i,c,d){let p=ue(i.endRe,d);if(p){if(i["on:end"]){const k=new E(i);i["on:end"](c,k),k.isMatchIgnored&&(p=!1)}if(p){for(;i.endsParent&&i.parent;)i=i.parent;return i}}if(i.endsWithParent)return Ve(i.parent,c,d)}function Zn(i){return f.matcher.regexIndex===0?(S+=i[0],1):(De=!0,0)}function jn(i){const c=i[0],d=i.rule,p=new E(d),k=[d.__beforeBegin,d["on:begin"]];for(const j of k)if(j&&(j(i,p),p.isMatchIgnored))return Zn(c);return d.skip?S+=c:(d.excludeBegin&&(S+=c),$(),!d.returnBegin&&!d.excludeBegin&&(S=c)),Je(d,i),d.returnBegin?0:c.length}function Yn(i){const c=i[0],d=o.substring(i.index),p=Ve(f,i,d);if(!p)return ze;const k=f;f.endScope&&f.endScope._wrap?($(),z(c,f.endScope._wrap)):f.endScope&&f.endScope._multi?($(),Xe(f.endScope,i)):k.skip?S+=c:(k.returnEnd||k.excludeEnd||(S+=c),$(),k.excludeEnd&&(S=c));do f.scope&&m.closeNode(),!f.skip&&!f.subLanguage&&(Te+=f.relevance),f=f.parent;while(f!==p.parent);return p.starts&&Je(p.starts,i),k.returnEnd?0:c.length}function Xn(){const i=[];for(let c=f;c!==W;c=c.parent)c.scope&&i.unshift(c.scope);i.forEach(c=>m.openNode(c))}let ye={};function qe(i,c){const d=c&&c[0];if(S+=i,d==null)return $(),0;if(ye.type==="begin"&&c.type==="end"&&ye.index===c.index&&d===""){if(S+=o.slice(c.index,c.index+1),!R){const p=new Error(`0 width match regex (${t})`);throw p.languageName=t,p.badRule=ye.rule,p}return 1}if(ye=c,c.type==="begin")return jn(c);if(c.type==="illegal"&&!b){const p=new Error('Illegal lexeme "'+d+'" for mode "'+(f.scope||"<unnamed>")+'"');throw p.mode=f,p}else if(c.type==="end"){const p=Yn(c);if(p!==ze)return p}if(c.type==="illegal"&&d==="")return 1;if(ke>1e5&&ke>c.index*3)throw new Error("potential infinite loop, way more iterations than matches");return S+=d,d.length}const W=X(t);if(!W)throw ne(A.replace("{}",t)),new Error('Unknown language: "'+t+'"');const Jn=In(W);let Be="",f=_||Jn;const Qe={},m=new r.__emitter(r);Xn();let S="",Te=0,te=0,ke=0,De=!1;try{if(W.__emitTokens)W.__emitTokens(o,m);else{for(f.matcher.considerAll();;){ke++,De?De=!1:f.matcher.considerAll(),f.matcher.lastIndex=te;const i=f.matcher.exec(o);if(!i)break;const c=o.substring(te,i.index),d=qe(c,i);te=i.index+d}qe(o.substring(te))}return m.finalize(),Be=m.toHTML(),{language:t,value:Be,relevance:Te,illegal:!1,_emitter:m,_top:f}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:t,value:Ce(o),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:te,context:o.slice(te-100,te+100),mode:i.mode,resultSoFar:Be},_emitter:m};if(R)return{language:t,value:Ce(o),illegal:!1,relevance:0,errorRaised:i,_emitter:m,_top:f};throw i}}function me(t){const o={value:Ce(t),illegal:!1,relevance:0,_top:a,_emitter:new r.__emitter(r)};return o._emitter.addText(t),o}function ve(t,o){o=o||r.languages||Object.keys(n);const b=me(t),_=o.filter(X).filter(Ye).map($=>le($,t,!1));_.unshift(b);const M=_.sort(($,z)=>{if($.relevance!==z.relevance)return z.relevance-$.relevance;if($.language&&z.language){if(X($.language).supersetOf===z.language)return 1;if(X(z.language).supersetOf===$.language)return-1}return 0}),[G,J]=M,Ae=G;return Ae.secondBest=J,Ae}function Bn(t,o,b){const _=o&&s[o]||b;t.classList.add("hljs"),t.classList.add(`language-${_}`)}function Le(t){let o=null;const b=x(t);if(u(b))return;if(Re("before:highlightElement",{el:t,language:b}),t.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",t);return}if(t.children.length>0&&(r.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(t)),r.throwUnescapedHTML))throw new vn("One of your code blocks includes unescaped HTML.",t.innerHTML);o=t;const _=o.textContent,M=b?T(_,{language:b,ignoreIllegals:!0}):ve(_);t.innerHTML=M.value,t.dataset.highlighted="yes",Bn(t,b,M.language),t.result={language:M.language,re:M.relevance,relevance:M.relevance},M.secondBest&&(t.secondBest={language:M.secondBest.language,relevance:M.secondBest.relevance}),Re("after:highlightElement",{el:t,result:M,text:_})}function kn(t){r=Ke(r,t)}const Dn=()=>{Ne(),ae("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Pn(){Ne(),ae("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ze=!1;function Ne(){if(document.readyState==="loading"){Ze=!0;return}document.querySelectorAll(r.cssSelector).forEach(Le)}function Un(){Ze&&Ne()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Un,!1);function $n(t,o){let b=null;try{b=o(e)}catch(_){if(ne("Language definition for '{}' could not be registered.".replace("{}",t)),R)ne(_);else throw _;b=a}b.name||(b.name=t),n[t]=b,b.rawDefinition=o.bind(null,e),b.aliases&&je(b.aliases,{languageName:t})}function Hn(t){delete n[t];for(const o of Object.keys(s))s[o]===t&&delete s[o]}function Fn(){return Object.keys(n)}function X(t){return t=(t||"").toLowerCase(),n[t]||n[s[t]]}function je(t,{languageName:o}){typeof t=="string"&&(t=[t]),t.forEach(b=>{s[b.toLowerCase()]=o})}function Ye(t){const o=X(t);return o&&!o.disableAutodetect}function Gn(t){t["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=o=>{t["before:highlightBlock"](Object.assign({block:o.el},o))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=o=>{t["after:highlightBlock"](Object.assign({block:o.el},o))})}function Kn(t){Gn(t),g.push(t)}function zn(t){const o=g.indexOf(t);o!==-1&&g.splice(o,1)}function Re(t,o){const b=t;g.forEach(function(_){_[b]&&_[b](o)})}function Wn(t){return ae("10.7.0","highlightBlock will be removed entirely in v12.0"),ae("10.7.0","Please use highlightElement now."),Le(t)}Object.assign(e,{highlight:T,highlightAuto:ve,highlightAll:Ne,highlightElement:Le,highlightBlock:Wn,configure:kn,initHighlighting:Dn,initHighlightingOnLoad:Pn,registerLanguage:$n,unregisterLanguage:Hn,listLanguages:Fn,getLanguage:X,registerAliases:je,autoDetection:Ye,inherit:Ke,addPlugin:Kn,removePlugin:zn}),e.debugMode=function(){R=!1},e.safeMode=function(){R=!0},e.versionString=mn,e.regex={concat:y,lookahead:N,either:Z,optional:D,anyNumberOfTimes:B};for(const t in _e)typeof _e[t]=="object"&&l(_e[t]);return Object.assign(e,_e),e},ce=We({});return ce.newInstance=()=>We({}),Pe=ce,ce.HighlightJS=ce,ce.default=ce,Pe}var nt=et();const rt=Qn(nt);function at(l){const E={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},O={match:/[{}[\],:]/,className:"punctuation",relevance:0},h=["true","false","null"],F={scope:"literal",beginKeywords:h.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:h},contains:[E,O,l.QUOTE_STRING_MODE,F,l.C_NUMBER_MODE,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function ct(l){const E=l.regex,O=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),h=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],v={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:h,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},L={className:"meta",begin:/^(>>>|\.\.\.) /},w={className:"subst",begin:/\{/,end:/\}/,keywords:v,illegal:/#/},P={begin:/\{\{/,relevance:0},I={className:"string",contains:[l.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE,L],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,L],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[l.BACKSLASH_ESCAPE,L,P,w]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[l.BACKSLASH_ESCAPE,L,P,w]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[l.BACKSLASH_ESCAPE,P,w]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[l.BACKSLASH_ESCAPE,P,w]},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},N="[0-9](_?[0-9])*",B=`(\\b(${N}))?\\.(${N})|\\b(${N})\\.`,D=`\\b|${h.join("|")}`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${N})|(${B}))[eE][+-]?(${N})[jJ]?(?=${D})`},{begin:`(${B})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${D})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${D})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${D})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${D})`},{begin:`\\b(${N})[jJ](?=${D})`}]},U={className:"comment",begin:E.lookahead(/# type:/),end:/$/,keywords:v,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},Z={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",L,y,I,l.HASH_COMMENT_MODE]}]};return w.contains=[I,y,L],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:v,illegal:/(<\/|\?)|=>/,contains:[L,y,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},I,U,l.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,O],scope:{1:"keyword",3:"title.function"},contains:[Z]},{variants:[{match:[/\bclass/,/\s+/,O,/\s*/,/\(\s*/,O,/\s*\)/]},{match:[/\bclass/,/\s+/,O]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,Z,I]}]}}const Me="[A-Za-z$_][0-9A-Za-z$_]*",nn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],tn=["true","false","null","undefined","NaN","Infinity"],sn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],rn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],an=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],cn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],on=[].concat(an,sn,rn);function tt(l){const E=l.regex,O=(C,{after:Y})=>{const ee="</"+C[0].slice(1);return C.input.indexOf(ee,Y)!==-1},h=Me,F={begin:"<>",end:"</>"},K=/<[A-Za-z0-9\\._:-]+\s*\/>/,H={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(C,Y)=>{const ee=C[0].length+C.index,re=C.input[ee];if(re==="<"||re===","){Y.ignoreMatch();return}re===">"&&(O(C,{after:ee})||Y.ignoreMatch());let oe;const pe=C.input.substring(ee);if(oe=pe.match(/^\s*=/)){Y.ignoreMatch();return}if((oe=pe.match(/^\s+extends\s+/))&&oe.index===0){Y.ignoreMatch();return}}},v={$pattern:Me,keyword:nn,literal:tn,built_in:on,"variable.language":cn},L="[0-9](_?[0-9])*",w=`\\.(${L})`,P="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",I={className:"number",variants:[{begin:`(\\b(${P})((${w})|\\.)?|(${w}))[eE][+-]?(${L})\\b`},{begin:`\\b(${P})\\b((${w})\\b|\\.)?|(${w})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},N={className:"subst",begin:"\\$\\{",end:"\\}",keywords:v,contains:[]},B={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,N],subLanguage:"xml"}},D={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,N],subLanguage:"css"}},y={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,N],subLanguage:"graphql"}},U={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,N]},se={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:h+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},ue=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,B,D,y,U,{match:/\$\d+/},I];N.contains=ue.concat({begin:/\{/,end:/\}/,keywords:v,contains:["self"].concat(ue)});const ge=[].concat(se,N.contains),V=ge.concat([{begin:/(\s*)\(/,end:/\)/,keywords:v,contains:["self"].concat(ge)}]),q={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:V},fe={variants:[{match:[/class/,/\s+/,h,/\s+/,/extends/,/\s+/,E.concat(h,"(",E.concat(/\./,h),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,h],scope:{1:"keyword",3:"title.class"}}]},ie={relevance:0,match:E.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...sn,...rn]}},de={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Ee={variants:[{match:[/function/,/\s+/,h,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[q],illegal:/%/},be={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Oe(C){return E.concat("(?!",C.join("|"),")")}const we={match:E.concat(/\b/,Oe([...an,"super","import"].map(C=>`${C}\\s*\\(`)),h,E.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:E.concat(/\./,E.lookahead(E.concat(h,/(?![0-9A-Za-z$_(])/))),end:h,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,h,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},q]},he="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",Ie={match:[/const|var|let/,/\s+/,h,/\s*/,/=\s*/,/(async\s*)?/,E.lookahead(he)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[q]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:v,exports:{PARAMS_CONTAINS:V,CLASS_REFERENCE:ie},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),de,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,B,D,y,U,se,{match:/\$\d+/},I,ie,{className:"attr",begin:h+E.lookahead(":"),relevance:0},Ie,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[se,l.REGEXP_MODE,{className:"function",begin:he,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:v,contains:V}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:F.begin,end:F.end},{match:K},{begin:H.begin,"on:begin":H.isTrulyOpeningTag,end:H.end}],subLanguage:"xml",contains:[{begin:H.begin,end:H.end,skip:!0,contains:["self"]}]}]},Ee,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[q,l.inherit(l.TITLE_MODE,{begin:h,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+h,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[q]},we,be,fe,xe,{match:/\$[(.]/}]}}function ot(l){const E=tt(l),O=Me,h=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],F={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},K={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:h},contains:[E.exports.CLASS_REFERENCE]},H={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},v=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],L={$pattern:Me,keyword:nn.concat(v),literal:tn,built_in:on.concat(h),"variable.language":cn},w={className:"meta",begin:"@"+O},P=(B,D,y)=>{const U=B.contains.findIndex(Z=>Z.label===D);if(U===-1)throw new Error("can not find mode to replace");B.contains.splice(U,1,y)};Object.assign(E.keywords,L),E.exports.PARAMS_CONTAINS.push(w);const I=E.contains.find(B=>B.className==="attr");E.exports.PARAMS_CONTAINS.push([E.exports.CLASS_REFERENCE,I]),E.contains=E.contains.concat([w,F,K]),P(E,"shebang",l.SHEBANG()),P(E,"use_strict",H);const N=E.contains.find(B=>B.label==="func.def");return N.relevance=0,Object.assign(E,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),E}function lt(l){const E="true false yes no null",O="[\\w#;/?:@&=+$,.~*'()[\\]]+",h={className:"attr",variants:[{begin:/\w[\w :()\./-]*:(?=[ \t]|$)/},{begin:/"\w[\w :()\./-]*":(?=[ \t]|$)/},{begin:/'\w[\w :()\./-]*':(?=[ \t]|$)/}]},F={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},K={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[l.BACKSLASH_ESCAPE,F]},H=l.inherit(K,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),I={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},N={end:",",endsWithParent:!0,excludeEnd:!0,keywords:E,relevance:0},B={begin:/\{/,end:/\}/,contains:[N],illegal:"\\n",relevance:0},D={begin:"\\[",end:"\\]",contains:[N],illegal:"\\n",relevance:0},y=[h,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+O},{className:"type",begin:"!<"+O+">"},{className:"type",begin:"!"+O},{className:"type",begin:"!!"+O},{className:"meta",begin:"&"+l.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+l.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},l.HASH_COMMENT_MODE,{beginKeywords:E,keywords:{literal:E}},I,{className:"number",begin:l.C_NUMBER_RE+"\\b",relevance:0},B,D,K],U=[...y];return U.pop(),U.push(H),N.contains=U,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}export{rt as H,at as j,ct as p,ot as t,lt as y};
@@ -335,38 +335,38 @@
335
335
  media="screen and (prefers-color-scheme: dark) and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
336
336
  href="/pwa/apple-splash-portrait-dark-640x1136.png"
337
337
  />
338
- <script type="module" crossorigin src="/main.Cn0OSGo3.0.0.39.js"></script>
339
- <link rel="modulepreload" crossorigin href="/perfect-debounce.Cp2ysxOb.0.0.39.js">
340
- <link rel="modulepreload" crossorigin href="/hookable.B8xFkYCm.0.0.39.js">
341
- <link rel="modulepreload" crossorigin href="/@vue.BSUQIjRR.0.0.39.js">
342
- <link rel="modulepreload" crossorigin href="/vue3-toastify.BuRDCgSx.0.0.39.js">
343
- <link rel="modulepreload" crossorigin href="/@intlify.DA2Uxele.0.0.39.js">
344
- <link rel="modulepreload" crossorigin href="/vue-i18n.DMLEf9uA.0.0.39.js">
345
- <link rel="modulepreload" crossorigin href="/axios.A8B9OaBI.0.0.39.js">
346
- <link rel="modulepreload" crossorigin href="/@tanstack.BoiFrtzX.0.0.39.js">
347
- <link rel="modulepreload" crossorigin href="/pinia.C6nkSx2n.0.0.39.js">
348
- <link rel="modulepreload" crossorigin href="/vue-router.Dg3VWoln.0.0.39.js">
349
- <link rel="modulepreload" crossorigin href="/@xterm.CD6WS-S3.0.0.39.js">
350
- <link rel="modulepreload" crossorigin href="/nprogress.IoWBc-2H.0.0.39.js">
351
- <link rel="modulepreload" crossorigin href="/@vueuse.BbKS6Mm_.0.0.39.js">
352
- <link rel="modulepreload" crossorigin href="/vuetify.BVIToxfp.0.0.39.js">
353
- <link rel="modulepreload" crossorigin href="/@mdi.CbjpODVZ.0.0.39.js">
354
- <link rel="modulepreload" crossorigin href="/vee-validate.DTyH9YVQ.0.0.39.js">
355
- <link rel="modulepreload" crossorigin href="/zod.Bn-rxnIN.0.0.39.js">
356
- <link rel="modulepreload" crossorigin href="/@vee-validate.DOPySfe9.0.0.39.js">
357
- <link rel="modulepreload" crossorigin href="/uuid.Ch9TGLTe.0.0.39.js">
358
- <link rel="modulepreload" crossorigin href="/engine.io-parser.BiEtp6m2.0.0.39.js">
359
- <link rel="modulepreload" crossorigin href="/@socket.io.Dkula2eQ.0.0.39.js">
360
- <link rel="modulepreload" crossorigin href="/engine.io-client.CF43lzPG.0.0.39.js">
361
- <link rel="modulepreload" crossorigin href="/socket.io-parser.D--34e4A.0.0.39.js">
362
- <link rel="modulepreload" crossorigin href="/socket.io-client.B1p1jCy1.0.0.39.js">
363
- <link rel="modulepreload" crossorigin href="/tslib.9k7AwCpt.0.0.39.js">
364
- <link rel="modulepreload" crossorigin href="/rxjs.DSklvEf_.0.0.39.js">
365
- <link rel="modulepreload" crossorigin href="/vue-inline-svg.DlaAtqUH.0.0.39.js">
366
- <link rel="stylesheet" crossorigin href="/assets/vue3-toastify.0.0.39.DHXAGmwn.css">
367
- <link rel="stylesheet" crossorigin href="/assets/@xterm.0.0.39.CFbL2ovg.css">
368
- <link rel="stylesheet" crossorigin href="/assets/vuetify.0.0.39.BMU5FWcv.css">
369
- <link rel="stylesheet" crossorigin href="/assets/main.0.0.39.OJngntGT.css">
338
+ <script type="module" crossorigin src="/main.DGoYNhZz.0.0.41.js"></script>
339
+ <link rel="modulepreload" crossorigin href="/perfect-debounce.Cp2ysxOb.0.0.41.js">
340
+ <link rel="modulepreload" crossorigin href="/hookable.B8xFkYCm.0.0.41.js">
341
+ <link rel="modulepreload" crossorigin href="/@vue.HgptpWSe.0.0.41.js">
342
+ <link rel="modulepreload" crossorigin href="/vue3-toastify.B344fBI7.0.0.41.js">
343
+ <link rel="modulepreload" crossorigin href="/@intlify.Do1-T-x0.0.0.41.js">
344
+ <link rel="modulepreload" crossorigin href="/vue-i18n.CLbC5t4S.0.0.41.js">
345
+ <link rel="modulepreload" crossorigin href="/axios.CG9kBweI.0.0.41.js">
346
+ <link rel="modulepreload" crossorigin href="/@tanstack.BMdKtFKV.0.0.41.js">
347
+ <link rel="modulepreload" crossorigin href="/pinia.CzEXGLAe.0.0.41.js">
348
+ <link rel="modulepreload" crossorigin href="/vue-router.BlIBZAV8.0.0.41.js">
349
+ <link rel="modulepreload" crossorigin href="/@xterm.ChIdrMXz.0.0.41.js">
350
+ <link rel="modulepreload" crossorigin href="/nprogress.B4qekFjh.0.0.41.js">
351
+ <link rel="modulepreload" crossorigin href="/@vueuse.0AqyrsW4.0.0.41.js">
352
+ <link rel="modulepreload" crossorigin href="/vuetify.cl53-mu0.0.0.41.js">
353
+ <link rel="modulepreload" crossorigin href="/@mdi.CbjpODVZ.0.0.41.js">
354
+ <link rel="modulepreload" crossorigin href="/vee-validate.rx6EoM-V.0.0.41.js">
355
+ <link rel="modulepreload" crossorigin href="/zod.Bn-rxnIN.0.0.41.js">
356
+ <link rel="modulepreload" crossorigin href="/@vee-validate.BN6pp7gT.0.0.41.js">
357
+ <link rel="modulepreload" crossorigin href="/uuid.Ch9TGLTe.0.0.41.js">
358
+ <link rel="modulepreload" crossorigin href="/engine.io-parser.BiEtp6m2.0.0.41.js">
359
+ <link rel="modulepreload" crossorigin href="/@socket.io.Dkula2eQ.0.0.41.js">
360
+ <link rel="modulepreload" crossorigin href="/engine.io-client.Bmv4tt9j.0.0.41.js">
361
+ <link rel="modulepreload" crossorigin href="/socket.io-parser.BP9NTxl9.0.0.41.js">
362
+ <link rel="modulepreload" crossorigin href="/socket.io-client.Dd2M9OF7.0.0.41.js">
363
+ <link rel="modulepreload" crossorigin href="/tslib.9k7AwCpt.0.0.41.js">
364
+ <link rel="modulepreload" crossorigin href="/rxjs.Dq5nE0it.0.0.41.js">
365
+ <link rel="modulepreload" crossorigin href="/vue-inline-svg.BHDMo3hs.0.0.41.js">
366
+ <link rel="stylesheet" crossorigin href="/assets/vue3-toastify.0.0.41.DHXAGmwn.css">
367
+ <link rel="stylesheet" crossorigin href="/assets/@xterm.0.0.41.CFbL2ovg.css">
368
+ <link rel="stylesheet" crossorigin href="/assets/vuetify.0.0.41.Dua9WSqa.css">
369
+ <link rel="stylesheet" crossorigin href="/assets/main.0.0.41.OJngntGT.css">
370
370
  <link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
371
371
  <body>
372
372
  <div id="app" class="app"></div>
@@ -1 +1 @@
1
- import{A as x,C as g,Z as C,P as Z}from"./uc.micro.kMc2yuuw.0.0.39.js";function w(_){const t={};_=_||{},t.src_Any=x.source,t.src_Cc=g.source,t.src_Z=C.source,t.src_P=Z.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const e="[><|]";return t.src_pseudo_letter="(?:(?!"+e+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+e+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function p(_){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(r){_[r]=e[r]})}),_}function l(_){return Object.prototype.toString.call(_)}function k(_){return l(_)==="[object String]"}function v(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function b(_){return Object.keys(_||{}).reduce(function(t,e){return t||y.hasOwnProperty(e)},!1)}const $={"http:":{validate:function(_,t,e){const r=_.slice(t);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(r)?r.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,e){const r=_.slice(t);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(r)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:r.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,e){const r=_.slice(t);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(r)?r.match(e.re.mailto)[0].length:0}}},A="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",P="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function S(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,e){const r=t.slice(e);return _.test(r)?r.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){const t=_.re=w(_.__opts__),e=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||e.push(A),e.push(t.src_xn),t.src_tlds=e.join("|");function r(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const c=[];_.__compiled__={};function h(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){const s=_.__schemas__[i];if(s===null)return;const a={validate:null,link:null};if(_.__compiled__[i]=a,v(s)){E(s.validate)?a.validate=R(s.validate):f(s.validate)?a.validate=s.validate:h(i,s),f(s.normalize)?a.normalize=s.normalize:s.normalize?h(i,s):a.normalize=z();return}if(k(s)){c.push(i);return}h(i,s)}),c.forEach(function(i){_.__compiled__[_.__schemas__[i]]&&(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};const o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),S(_)}function L(_,t){const e=_.__index__,r=_.__last_index__,c=_.__text_cache__.slice(e,r);this.schema=_.__schema__.toLowerCase(),this.index=e+t,this.lastIndex=r+t,this.raw=c,this.text=c,this.url=c}function d(_,t){const e=new L(_,t);return _.__compiled__[e.schema].normalize(e,_),e}function n(_,t){if(!(this instanceof n))return new n(_,t);t||b(_)&&(t=_,_={}),this.__opts__=p({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},$,_),this.__compiled__={},this.__tlds__=P,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,e){return this.__schemas__[t]=e,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,r,c,h,o,i,s,a,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(e=s.exec(t))!==null;)if(h=this.testSchemaAt(t,e[2],s.lastIndex),h){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+h;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,e,r){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,r,this):0};n.prototype.match=function(t){const e=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);let c=r?t.slice(r):t;for(;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const r=this.testSchemaAt(t,e[2],e[0].length);return r?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r,d(this,0)):null};n.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,c,h){return r!==h[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};export{n as L};
1
+ import{A as x,C as g,Z as C,P as Z}from"./uc.micro.kMc2yuuw.0.0.41.js";function w(_){const t={};_=_||{},t.src_Any=x.source,t.src_Cc=g.source,t.src_Z=C.source,t.src_P=Z.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const e="[><|]";return t.src_pseudo_letter="(?:(?!"+e+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+e+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function p(_){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(r){_[r]=e[r]})}),_}function l(_){return Object.prototype.toString.call(_)}function k(_){return l(_)==="[object String]"}function v(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function b(_){return Object.keys(_||{}).reduce(function(t,e){return t||y.hasOwnProperty(e)},!1)}const $={"http:":{validate:function(_,t,e){const r=_.slice(t);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(r)?r.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,e){const r=_.slice(t);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(r)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:r.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,e){const r=_.slice(t);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(r)?r.match(e.re.mailto)[0].length:0}}},A="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",P="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function S(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,e){const r=t.slice(e);return _.test(r)?r.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){const t=_.re=w(_.__opts__),e=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||e.push(A),e.push(t.src_xn),t.src_tlds=e.join("|");function r(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const c=[];_.__compiled__={};function h(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){const s=_.__schemas__[i];if(s===null)return;const a={validate:null,link:null};if(_.__compiled__[i]=a,v(s)){E(s.validate)?a.validate=R(s.validate):f(s.validate)?a.validate=s.validate:h(i,s),f(s.normalize)?a.normalize=s.normalize:s.normalize?h(i,s):a.normalize=z();return}if(k(s)){c.push(i);return}h(i,s)}),c.forEach(function(i){_.__compiled__[_.__schemas__[i]]&&(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};const o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),S(_)}function L(_,t){const e=_.__index__,r=_.__last_index__,c=_.__text_cache__.slice(e,r);this.schema=_.__schema__.toLowerCase(),this.index=e+t,this.lastIndex=r+t,this.raw=c,this.text=c,this.url=c}function d(_,t){const e=new L(_,t);return _.__compiled__[e.schema].normalize(e,_),e}function n(_,t){if(!(this instanceof n))return new n(_,t);t||b(_)&&(t=_,_={}),this.__opts__=p({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},$,_),this.__compiled__={},this.__tlds__=P,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,e){return this.__schemas__[t]=e,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,r,c,h,o,i,s,a,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(e=s.exec(t))!==null;)if(h=this.testSchemaAt(t,e[2],s.lastIndex),h){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+h;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,e,r){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,r,this):0};n.prototype.match=function(t){const e=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);let c=r?t.slice(r):t;for(;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const r=this.testSchemaAt(t,e[2],e[0].length);return r?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r,d(this,0)):null};n.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,c,h){return r!==h[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};export{n as L};