@ckeditor/ckeditor5-ai 44.2.1 → 44.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +2 -2
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +9 -9
  148. package/src/adapters/aiadapter.js +1 -1
  149. package/src/adapters/aitextadapter.js +1 -1
  150. package/src/adapters/awstextadapter.js +1 -1
  151. package/src/adapters/openaitextadapter.js +1 -1
  152. package/src/aiassistant.js +1 -1
  153. package/src/aiassistantediting.js +1 -1
  154. package/src/aiassistantui.js +1 -1
  155. package/src/index.js +1 -1
  156. package/src/legacyerrors.js +1 -1
  157. package/src/ui/aiassistantcontroller.js +2 -2
  158. package/src/ui/form/aiformcontentarea.js +1 -1
  159. package/src/ui/form/aiformerrorview.js +1 -1
  160. package/src/ui/form/aiformpromptview.js +1 -1
  161. package/src/ui/form/aiformtoolbarview.js +1 -1
  162. package/src/ui/form/aiformview.js +1 -1
  163. package/src/ui/form/aihistorylistitemview.js +1 -1
  164. package/src/ui/form/aihistorylistview.js +1 -1
  165. package/src/ui/form/prompthistory.js +1 -1
  166. package/src/ui/showaiassistantcommand.js +1 -1
  167. package/src/utils/common-translations.js +1 -1
  168. package/src/utils/normalizecommandsconfig.js +1 -1
package/build/ai.js CHANGED
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var e={142:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck.ck-aria-description{display:none}",""]);const a=s},163:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const a=s},168:e=>{"use strict";e.exports=function(e){return e[1]}},181:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const a=s},182:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath fill=%27%23FFF%27 d=%27M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z%27/%3E%3C/svg%3E"},220:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},237:e=>{"use strict";e.exports=CKEditor5.dll},258:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},262:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},311:(e,t,r)=>{e.exports=r(237)("./src/ui.js")},331:(e,t,r)=>{e.exports=r(237)("./src/clipboard.js")},332:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0 .ck-user__marker-dot::selection,.ck .ck-user__marker--0 .ck-user__marker-tooltip,.ck .ck-user__marker--0 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--0::selection{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1 .ck-user__marker-dot::selection,.ck .ck-user__marker--1 .ck-user__marker-tooltip,.ck .ck-user__marker--1 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--1::selection{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2 .ck-user__marker-dot::selection,.ck .ck-user__marker--2 .ck-user__marker-tooltip,.ck .ck-user__marker--2 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--2::selection{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3 .ck-user__marker-dot::selection,.ck .ck-user__marker--3 .ck-user__marker-tooltip,.ck .ck-user__marker--3 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--3::selection{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4 .ck-user__marker-dot::selection,.ck .ck-user__marker--4 .ck-user__marker-tooltip,.ck .ck-user__marker--4 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--4::selection{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5 .ck-user__marker-dot::selection,.ck .ck-user__marker--5 .ck-user__marker-tooltip,.ck .ck-user__marker--5 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--5::selection{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6 .ck-user__marker-dot::selection,.ck .ck-user__marker--6 .ck-user__marker-tooltip,.ck .ck-user__marker--6 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--6::selection{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7 .ck-user__marker-dot::selection,.ck .ck-user__marker--7 .ck-user__marker-tooltip,.ck .ck-user__marker--7 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--7::selection{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const a=s},357:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},369:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(o,i),a=0,c=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(o,i)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=e,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var a=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),s=c(r(95)),a=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=a.default.find(s,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(i>0){var g=Object.keys(o),h=a.default.find(g,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(o[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},379:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text);--ck-color-ai-selection:rgba(31,176,255,.3)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#f3ecff;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color);--ck-color-ai-selection:#e2d6f5}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-ai-selection)}.ck .ck-widget.ck-fake-ai-selection{outline-color:var(--ck-color-ai-selection)}.ck span.ck-fake-ai-selection-candidate{background:var(--ck-color-ai-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const a=s},433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);n&&s[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},507:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const a=s},533:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(168),o=r.n(n),i=r(433),s=r.n(i),a=r(220),c=r.n(a),u=new URL(r(182),r.b),l=s()(o()),d=c()(u);l.push([e.id,`:root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff;--ck-user-me-border-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;box-sizing:border-box;display:flex;height:var(--ck-user-avatar-size);justify-content:center;line-height:100%;margin:2px;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user.ck-user_me{border:2px solid var(--ck-user-me-border-color);outline:2px solid var(--ck-user-avatar-background)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;border-radius:50%;display:none;height:100%;width:100%}.ck.ck-user__img.ck-user__anonymous{background-image:url(${d});display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}`,""]);const g=l},545:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,s&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var a=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},584:(e,t,r)=>{e.exports=r(237)("./src/utils.js")},667:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}},673:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var c=e[a],u=n.base?c[0]+n.base:c[0],l=i[u]||0,d="".concat(u," ").concat(l);i[u]=l+1;var g=r(d),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==g)t[g].references++,t[g].updater(h);else{var f=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function o(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var c=n(e,o),u=0;u<i.length;u++){var l=r(i[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},676:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-view-width:600px;--ck-ai-form-content-height:175px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{max-width:100%;width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:100vw}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);font-size:var(--ck-font-size-tiny);min-height:unset;min-width:unset;padding:4px;position:absolute;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}@media screen and (max-width:600px){.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{--ck-input-width:auto}}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto;grid-column-gap:0;grid-row-gap:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const a=s},751:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},782:(e,t,r)=>{e.exports=r(237)("./src/core.js")},783:(e,t,r)=>{e.exports=r(237)("./src/engine.js")},901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const a=s},906:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-comment-marker.ck-widget.ck-merge-field,.ck-content .ck-suggestion-marker.ck-widget.ck-merge-field{border-width:2px;border-left:none;border-right:none;padding-bottom:0;padding-top:0}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom-color:var(--ck-color-suggestion-marker-deletion-border);border-top-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field :not(.ck-merge-field__affix),.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-value,.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-warning{text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field{background-color:var(--ck-color-suggestion-marker-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-insertion-background-active)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field{background:var(--ck-color-comment-marker)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field.ck-comment-marker--active{background:var(--ck-color-comment-marker-active)}.ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),.ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field){margin-right:-1px;padding-right:1px}",""]);const a=s},961:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-suggestion:focus{background:var(--ck-color-button-default-hover-background);outline:none}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{border-radius:0;overflow:hidden}.ck .ck-suggestion-wrapper.ck-rounded-corners,.ck-rounded-corners .ck .ck-suggestion-wrapper{border-radius:var(--ck-border-radius)}.ck .ck-suggestion-wrapper:focus{box-shadow:0 0 0 4px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring)}.ck-balloon-panel:has(.ck-suggestion-wrapper:focus){border:var(--ck-focus-ring);box-shadow:var(--ck-drop-shadow),var(--ck-focus-outer-shadow);outline:none}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const a=s},967:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href;var n={};(()=>{"use strict";r.r(n),r.d(n,{AIAdapter:()=>Be,AIAssistant:()=>_r,AIAssistantUI:()=>kr,AIRequestError:()=>Ue,AITextAdapter:()=>Ir,AWSTextAdapter:()=>Mu,OpenAITextAdapter:()=>Mr});var e=r(782),t=r(584),o=r(311);e.ContextPlugin;var i=r(673),s=r.n(i),a=r(545),c=r.n(a),u=r(262),l=r.n(u),d=r(667),g=r.n(d),h=r(357),f=r.n(h),p=r(332),m={attributes:{"data-cke":!0}};m.setAttributes=g(),m.insert=l().bind(null,"head"),m.domAPI=c(),m.insertStyleElement=f();s()(p.A,m);p.A&&p.A.locals&&p.A.locals;e.ContextPlugin;var k=r(533),b={attributes:{"data-cke":!0}};b.setAttributes=g(),b.insert=l().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=f();s()(k.A,b);k.A&&k.A.locals&&k.A.locals;o.View;o.View;class w extends Error{}class y extends w{constructor(){super("Zone is an abstract class")}}class v{get type(){throw new y}get name(){throw new y}get ianaName(){return this.name}get isUniversal(){throw new y}offsetName(e,t){throw new y}formatOffset(e,t){throw new y}offset(e){throw new y}equals(e){throw new y}get isValid(){throw new y}}let _={};const S={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let A={};class x extends v{static create(e){return A[e]||(A[e]=new x(e)),A[e]}static resetCache(){A={},_={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=x.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return $(e,t,r,this.name)}formatOffset(e,t){return L(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,_[n]||(_[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),_[n]);var n;let[o,i,s,a,c,u,l]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const{type:t,value:o}=r[e],i=S[t];"era"===t?n[i]=o:P(i)||(n[i]=parseInt(o,10))}return n}(r,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,i,s,a,c,u,l]=n;return[s,o,i,a,c,u,l]}(r,t);"BC"===a&&(o=1-Math.abs(o));let d=+t;const g=d%1e3;return d-=g>=0?g:1e3+g,(O({year:o,month:i,day:s,hour:24===c?0:c,minute:u,second:l,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let E=null;class I extends v{static get utcInstance(){return null===E&&(E=new I(0)),E}static instance(e){return 0===e?I.utcInstance:new I(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new I(N(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${L(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${L(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return L(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}const R={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};R.hanidec.replace(/[\[|\]]/g,"").split("");function P(e){return void 0===e}function C(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function M(e){return P(e)||null===e||""===e?void 0:parseInt(e,10)}function T(e){if(!P(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function O(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function $(e,t,r,n=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const s={timeZoneName:t,...i},a=new Intl.DateTimeFormat(r,s).formatToParts(o).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function N(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function L(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${C(r,2)}:${C(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${C(r,2)}${C(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}const B=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function U(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function D(...e){return t=>e.reduce((([e,r,n],o)=>{const[i,s,a]=o(t,n);return[{...e,...i},s||r,a]}),[{},null,1]).slice(0,2)}function F(...e){return(t,r)=>{const n={};let o;for(o=0;o<e.length;o++)n[e[o]]=M(t[r+o]);return[n,null,r+o]}}const j=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,H=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,V=RegExp(`${H.source}${`(?:${j.source}?(?:\\[(${B.source})\\])?)?`}`),z=RegExp(`(?:T${V.source})?`),q=F("weekYear","weekNumber","weekDay"),W=F("year","ordinal"),G=RegExp(`${H.source} ?(?:${j.source}|(${B.source}))?`),Z=RegExp(`(?: ${G.source})?`);function K(e,t,r){const n=e[t];return P(n)?r:M(n)}function J(e,t){return[{hours:K(e,t,0),minutes:K(e,t+1,0),seconds:K(e,t+2,0),milliseconds:T(e[t+3])},null,t+4]}function Q(e,t){const r=!e[t]&&!e[t+1],n=N(e[t+1],e[t+2]);return[{},r?null:I.instance(n),t+3]}function Y(e,t){return[{},e[t]?x.create(e[t]):null,t+1]}RegExp(`^T?${H.source}$`);U(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,z),U(/(\d{4})-?W(\d\d)(?:-?(\d))?/,z),U(/(\d{4})-?(\d{3})/,z),U(V),D((function(e,t){return[{year:K(e,t),month:K(e,t+1,1),day:K(e,t+2,1)},null,t+3]}),J,Q,Y),D(q,J,Q,Y),D(W,J,Q,Y),D(J,Q,Y);D(J);U(/(\d{4})-(\d\d)-(\d\d)/,Z),U(G),D(J,Q,Y);const X={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ee=365.2425,te=30.436875,re=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];re.slice(0).reverse();Symbol.for("nodejs.util.inspect.custom");Symbol.for("nodejs.util.inspect.custom");const ne=`[ ${String.fromCharCode(160)}]`;new RegExp(ne,"g");Symbol.for("nodejs.util.inspect.custom");o.View;var oe=r(961),ie={attributes:{"data-cke":!0}};ie.setAttributes=g(),ie.insert=l().bind(null,"head"),ie.domAPI=c(),ie.insertStyleElement=f();s()(oe.A,ie);oe.A&&oe.A.locals&&oe.A.locals;var se=r(163),ae={attributes:{"data-cke":!0}};ae.setAttributes=g(),ae.insert=l().bind(null,"head"),ae.domAPI=c(),ae.insertStyleElement=f();s()(se.A,ae);se.A&&se.A.locals&&se.A.locals;var ce=r(142),ue={attributes:{"data-cke":!0}};ue.setAttributes=g(),ue.insert=l().bind(null,"head"),ue.domAPI=c(),ue.insertStyleElement=f();s()(ce.A,ue);ce.A&&ce.A.locals&&ce.A.locals;var le=r(258),de={attributes:{"data-cke":!0}};de.setAttributes=g(),de.insert=l().bind(null,"head"),de.domAPI=c(),de.insertStyleElement=f();s()(le.A,de);le.A&&le.A.locals&&le.A.locals;var ge=r(967),he={attributes:{"data-cke":!0}};he.setAttributes=g(),he.insert=l().bind(null,"head"),he.domAPI=c(),he.insertStyleElement=f();s()(ge.A,he);ge.A&&ge.A.locals&&ge.A.locals;var fe=r(906),pe={attributes:{"data-cke":!0}};pe.setAttributes=g(),pe.insert=l().bind(null,"head"),pe.domAPI=c(),pe.insertStyleElement=f();s()(fe.A,pe);fe.A&&fe.A.locals&&fe.A.locals;var me=r(938),ke={attributes:{"data-cke":!0}};ke.setAttributes=g(),ke.insert=l().bind(null,"head"),ke.domAPI=c(),ke.insertStyleElement=f();s()(me.A,ke);me.A&&me.A.locals&&me.A.locals;var be=r(751),we={attributes:{"data-cke":!0}};we.setAttributes=g(),we.insert=l().bind(null,"head"),we.domAPI=c(),we.insertStyleElement=f();s()(be.A,we);be.A&&be.A.locals&&be.A.locals;var ye=r(901),ve={attributes:{"data-cke":!0}};ve.setAttributes=g(),ve.insert=l().bind(null,"head"),ve.domAPI=c(),ve.insertStyleElement=f();s()(ye.A,ve);ye.A&&ye.A.locals&&ye.A.locals;var _e=r(507),Se={attributes:{"data-cke":!0}};Se.setAttributes=g(),Se.insert=l().bind(null,"head"),Se.domAPI=c(),Se.insertStyleElement=f();s()(_e.A,Se);_e.A&&_e.A.locals&&_e.A.locals;const Ae={paintRoller:'<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',robotPencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',tableOfContents:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',template:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',caseChange:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949l2.778-6.715Z"/><path d="M15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397.71.826 2.014 1.149 3.409.85 1.395-.299 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5Zm2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632Z"/></svg>'};function xe(e,t){const r=(0,t.t)("Other");return e.length?"groupId"in e[0]?e:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:e}]:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:[]}]}var Ee=r(331),Ie=r(783);const Re=Ce;function Pe(){const e=["getChild","contentInsertion","markerToElement","afterInit","paste","off","1494HGDEIs","conversion","_pasteHTMLUsingClipboard","331004XtNCVA","pop","href","for","insertContentBelow","getSelectedBlocks","document","push","end","ai-ui","join","getMarkersGroup","table","getLastMatchingPosition","showFakeVisualSelection","fromCharCode","TableUtils","getSelectedTableCells","model","filter","findAncestor","AIAssistantEditing","map","getChildren","removeMarker","markerToHighlight","text/html","isContent","_prepareTableInsertBelowPosition","getRange","parse","1815198bpPtru","createPositionAfter","createUIElement","change","_resetContentOfSelectedTableCells","isAtEnd","createRange","_createEmptyTableRows","setSelection","insertRows","init","from","getLastPosition","addClass","markerRange","pluginName","ai.useTheme","markers","insertContent","addMarker","canEditAt","selection","DataTransfer","hideFakeVisualSelection","_getTableRowCountFromContent","element","getRowIndexes","createPositionAt","ck-fake-ai-selection_collapsed","data","2cFmNQC","once","9369654vzbybr","updateMarker","deleteContent","getRanges","298215XoRyQZ","editing","lowest","isPremiumPlugin","schema","isCollapsed","createSelection","start","getRows","config","has","getFirstRange","_getAISelection","editor","_getDefaultInsertBelowPosition","ck-fake-ai-selection","10568520RgsfTo","ck-ai-assistant-ui_theme","forEach","plugins","editingDowncast","fire","isOfficialPlugin","getColumnIndexes","setData","span","first","get","360699XdtnNu","last","5448owYJNi","length","resultRange"];return(Pe=function(){return e})()}function Ce(e,t){const r=Pe();return(Ce=function(e,t){return r[e-=163]})(e,t)}!function(e){const t=Ce,r=e();for(;;)try{if(909071===-parseInt(t(192))/1+-parseInt(t(222))/2*(parseInt(t(256))/3)+-parseInt(t(270))/4+-parseInt(t(228))/5+parseInt(t(244))/6+parseInt(t(224))/7+parseInt(t(258))/8*(-parseInt(t(267))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pe);const Me=globalThis[Re(214)],Te=Re(170);class Oe extends e.Plugin{static get[Re(207)](){return Re(182)}static get[Re(250)](){return!0}static get[Re(231)](){return!0}[Re(202)](){const e=Re,{editor:t}=this,r=[e(243)];t[e(237)][e(255)](e(208))&&r[e(168)](e(245)),t[e(268)][e(164)](e(248))[e(186)]({model:Te,view:{classes:r,priority:12}}),t[e(268)][e(164)](e(248))[e(263)]({model:Te,view:(t,{writer:r})=>{const n=e;if(!t[n(206)][n(233)])return null;const o=r[n(194)](n(253));return r[n(205)]([n(243),n(220)],o),o}})}[Re(264)](){!async function(e){const r=p([82,79,97,100,101,104,70,52,81,68,102,105,71,122,80,116,75,89,69,119,84,76,49,51,115,106,73,67,109,108,88,99,57,107,54,53,50,114,110,48,118,65,103,83,77,112,98,72,85,86,55,87,90,113,120,117,74,111,78,66,56,121]),n=window[p([68,97,116,101])][p([110,111,119])](),o=e[p([101,100,105,116,111,114])],i=new(window[p([80,114,111,109,105,115,101])])((e=>{o[p([111,110,99,101])](p([114,101,97,100,121]),e)})),s={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=o[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(e){const t=[new(window[p([80,114,111,109,105,115,101])])((e=>setTimeout(e,605900))),i[p([116,104,101,110])]((()=>new(window[p([80,114,111,109,105,115,101])])((e=>{let t=0;o[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((r,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504==t&&(e(),r[p([111,102,102])]())}))}))))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](t)[p([116,104,101,110])]((()=>e))}function u(e){return e[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(e)):null}function l(e){return window[p([97,116,111,98])](e[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function d(e){let t=5381;function r(e){for(let r=0;r<e[p([108,101,110,103,116,104])];r++){const n=e[p([99,104,97,114,67,111,100,101,65,116])](r);t=(t<<5)+t+n,t&=t}}return function e(t){Array[p([105,115,65,114,114,97,121])](t)?t[p([102,111,114,69,97,99,104])](e):t&&typeof t==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](t)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])]((([t,n])=>{r(t),e(n)})):r(window[p([83,116,114,105,110,103])](t))}(e),t>>>0}function g(e){return e[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function h(e){return e[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function f(){}function p(e){const t=Ce;return e[t(183)]((e=>String[t(176)](e)))[t(171)]("")}!function(e){const t=function(){const e=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let t=p([82]);for(let n=0;n<e[p([108,101,110,103,116,104])];n+=2){let o=window[p([112,97,114,115,101,73,110,116])](e[p([115,117,98,115,116,114,105,110,103])](n,n+2));o>=r[p([108,101,110,103,116,104])]&&(o-=r[p([108,101,110,103,116,104])]),t+=r[o]}return t}();o[t]=p([97,105,76,105,99,101,110,115,101,75,101,121])+e,e!=p([86,97,108,105,100])&&async function(){await i,o[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=f,o[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=f,o[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let e,r=null,f=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(e=function(){const e=a[p([115,112,108,105,116])](p([46]));return 3!=e[p([108,101,110,103,116,104])]?null:t(e[1]);function t(e){const t=u(e);return t&&r()?t:null;function r(){const e=t[p([106,116,105])],r=window[p([112,97,114,115,101,73,110,116])](e[p([115,117,98,115,116,114,105,110,103])](e[p([108,101,110,103,116,104])]-8),16),n={...t,[p([106,116,105])]:e[p([115,117,98,115,116,114,105,110,103])](0,e[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],d(n)==r}}}(),e?(e[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(f=function(e,r){return new(window[p([80,114,111,109,105,115,101])])((c=>{if(s())return c(p([86,97,108,105,100]));a(),o[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const l=(0,t.uid)();function f(e){return!!e&&(typeof e===p([111,98,106,101,99,116])||typeof e===p([102,117,110,99,116,105,111,110]))&&typeof e[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof e[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function m(t){a(t)[p([116,104,101,110])]((e=>e&&e[p([115,116,97,116,117,115])]==p([111,107])?g(d(l+r))!=e[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116])))[p([116,104,101,110])]((e=>(i(),e)),(()=>{const e=s();return null==e?(i(),p([86,97,108,105,100])):p(n-e>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])}))[p([116,104,101,110])](c)[p([99,97,116,99,104])]((()=>{c(p([85,115,97,103,101,76,105,109,105,116]))}));const o=36e5;function i(){const t=p([108,108,99,116,45])+g(d(e)),r=h(g(window[p([77,97,116,104])][p([99,101,105,108])](n/o)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](t,r)}function s(){const t=p([108,108,99,116,45])+g(d(e)),r=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](t);return r?window[p([112,97,114,115,101,73,110,116])](h(r),16)*o:null}function a(e){return new(window[p([80,114,111,109,105,115,101])])(((t,r)=>{e[p([116,104,101,110])](t,r),window[p([115,101,116,84,105,109,101,111,117,116])](r,12e4)}))}}o[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),((t,r)=>{if(r[0]!=e)return c(p([85,115,97,103,101,76,105,109,105,116]));r[1]={...r[1],[p([114,101,113,117,101,115,116,73,100])]:l}}),{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),o[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e=>{f(e[p([114,101,116,117,114,110])])&&(u=!0,m(e[p([114,101,116,117,114,110])]))}),{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),i[p([116,104,101,110])]((()=>{u||c(p([85,115,97,103,101,76,105,109,105,116]))}))}));function s(){return o[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){o[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(e[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],e[p([106,116,105])])),await async function(){let e=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[o,i,s]=n;return t(o),await r(o,i,s),e}catch(e){return!1}function t(t){const r=u(t);r&&r[p([97,108,103])]==p([69,83,50,53,54])||(e=!1)}async function r(t,r,n){const o=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),(e=>e[p([99,104,97,114,67,111,100,101,65,116])](0))),i=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](t+p([46])+r),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),s,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,o,i)||(e=!1)}}()?function(){const t=e[p([102,101,97,116,117,114,101,115])];return!(!t||!t[p([105,110,99,108,117,100,101,115])](p([42]))&&!t[p([105,110,99,108,117,100,101,115])](p([65,73])))}()?function(){const t=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](e[p([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1740009600;return e[p([101,120,112])]<t}()?p([69,120,112,105,114,101,100]):function(){const t=Ce,r=e[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!r||0==r[p([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[p([108,111,99,97,116,105,111,110])][t(163)]);if(r[p([105,110,99,108,117,100,101,115])](n))return!0;const o=n[p([115,112,108,105,116])](p([46]));return r[p([102,105,108,116,101,114])]((e=>e[p([105,110,99,108,117,100,101,115])](p([42]))))[p([109,97,112])]((e=>e[p([115,112,108,105,116])](p([46]))))[p([115,111,109,101])]((e=>o[p([101,118,101,114,121])](((t,r)=>e[r]===t||e[r]===p([42])))))}()?(e[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(r=c(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),e[p([108,105,99,101,110,115,101,84,121,112,101])]==p([116,114,105,97,108])&&(r=c(p([84,114,105,97,108,76,105,109,105,116]))),await(r&&f?new(window[p([80,114,111,109,105,115,101])])(((e,t)=>{r[p([116,104,101,110])](e,t),f[p([116,104,101,110])]((t=>{t!=p([86,97,108,105,100])&&e(t)}),t)})):r||f||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch(e){return p([73,110,118,97,108,105,100])}}())}(this)}[Re(175)](){const e=Re,t=this[e(241)][e(179)];t[e(195)]((r=>{const n=e,o=t[n(167)][n(213)][n(227)]();let i=0;for(const e of o){const o=Te+":"+i;if(t[n(209)][n(238)](o))r[n(225)](o,{range:e});else if(e[n(235)][n(197)]){const i=e[n(235)][n(174)]((({item:e})=>!t[n(232)][n(188)](e)),{boundaries:e});r[n(211)](o,{usingOperation:!1,affectsData:!1,range:r[n(198)](i,e[n(169)])})}else r[n(211)](o,{usingOperation:!1,affectsData:!1,range:e});i++}}))}[Re(215)](){const e=Re,t=this[e(241)][e(179)],r=Array[e(203)](this[e(241)][e(179)][e(209)][e(172)](Te));r[e(259)]&&t[e(195)]((t=>{const n=e;r[n(246)]((e=>{t[n(185)](e)}))}))}[Re(210)](e,t){const r=Re,n=this[r(240)](),o=t||n[r(239)]();this[r(241)][r(179)][r(212)](o)&&this[r(241)][r(179)][r(195)]((i=>{const s=r;this[s(215)](),t||this[s(196)](i,n),this[s(269)]({insertAt:o,writer:i,html:e})}))}[Re(165)](e){const t=Re,{model:r}=this[t(241)],n=this[t(240)]();r[t(195)]((()=>{const r=t,o=this[r(189)](e,n)||this[r(242)](n);this[r(210)](e,o)}))}[Re(240)](){const e=Re,t=this[e(241)][e(179)],r=Array[e(203)](t[e(209)][e(172)](Te))[e(183)]((t=>t[e(190)]()));return t[e(234)](r)}[Re(269)]({writer:e,html:t,insertAt:r}){const n=Re,{view:o}=this[n(241)][n(229)],i=this[n(241)][n(247)][n(255)](Ee.ClipboardPipeline),s=new Me;s[n(252)](n(187),t);const a=new ClipboardEvent(n(265),{clipboardData:s}),c=new Ie.DomEventData(o,a,{dataTransfer:new Ie.DataTransfer(s)});e[n(200)](r);const u=(t,r)=>{const o=n;r[o(260)]&&e[o(200)](r[o(260)])};i[n(223)](n(262),u,{priority:n(230)}),o[n(167)][n(249)](n(265),c),i[n(266)](n(262),u)}[Re(242)](e){const t=Re,{model:r}=this[t(241)],n=Array[t(203)](e[t(166)]());return n[t(259)]?r[t(193)](n[t(271)]()):e[t(204)]()}[Re(189)](e,t){const r=Re,{model:n,plugins:o}=this[r(241)];if(o[r(238)](r(177))){const i=o[r(255)](r(177))[r(178)](t);if(i[r(259)]){const t=this[r(216)](e),o=this[r(199)](i,t);return n[r(219)](o,0)}}return null}[Re(216)](e){const t=Re,r=this[t(241)][t(247)][t(255)](t(177)),n=this[t(241)][t(221)][t(191)](e),o=Array[t(203)](n[t(184)]())[t(180)]((e=>e.is(t(217),t(173))));let i=0;return o[t(246)]((e=>{i+=r[t(236)](e)})),i}[Re(199)](e,t){const r=Re,n=this[r(241)][r(247)][r(255)](r(177)),o=n[r(218)](e),i=n[r(251)](e),s=o[r(257)]+1,a=i[r(254)],c=e[0][r(181)](r(173));for(let e=0;e<t;e++)n[r(201)](c,{at:s});return c[r(261)](s)[r(261)](a)}[Re(196)](e,t){const r=Re,{plugins:n}=this[r(241)],{model:o}=e;n[r(238)](r(177))&&n[r(255)](r(177))[r(178)](t)[r(259)]&&o[r(226)](t)}}var $e=Le;function Ne(){var e=["aiadapter-text-adapter-not-set","6840WgnVnp","3411tbUrWp","AIRequestError","textAdapter","pluginName","afterInit","AIAdapter","11881221lDUobZ","268lIdiau","1602Fmhjwn","675672tTqNdu","2078870KoySJS","isPremiumPlugin","2890yjLowg","isOfficialPlugin","name","4039ivZIVS","17130YxAcpL","247NicFSY"];return(Ne=function(){return e})()}function Le(e,t){var r=Ne();return(Le=function(e,t){return r[e-=442]})(e,t)}!function(e){for(var t=Le,r=e();;)try{if(347550===parseInt(t(453))/1*(-parseInt(t(448))/2)+-parseInt(t(444))/3*(parseInt(t(443))/4)+-parseInt(t(446))/5+parseInt(t(455))/6*(-parseInt(t(451))/7)+parseInt(t(445))/8+parseInt(t(456))/9*(parseInt(t(452))/10)+parseInt(t(442))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ne);class Be extends e.Plugin{static get[$e(459)](){return $e(461)}static get[$e(449)](){return!0}static get[$e(447)](){return!0}[$e(460)](){var e=$e;if(!this[e(458)])throw new t.CKEditorError(e(454),null)}}class Ue extends Error{constructor(e){var t=$e;super(e),this[t(450)]=t(457)}}function De(e,t,r){const n=e.t;switch(t){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"AI is writing":return n("AI is writing");case"Generated content: %0":return n("Generated content: %0",r);case"Error during AI content generation: %0":return n("Error during AI content generation: %0",r);case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return n({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return n({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return n({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},r);case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return t}}const Fe=He;function je(){const e=["plugins","execute","2809647DzuTnu","196edevjD","hasContent","selection","showUI","6870462QtpLfE","244170fiOxxU","includes","model","getItems","getFirstRange","requiresContent","getRanges","1370zzVaLY","editor","56845UtiOca","_hasContext","change:_hasContext","getSelectedBlocks","from","name","element","get","length","refresh","30PpVJfq","1815644ZhUtoj","isEnabled","isEmpty","isCollapsed","document","43207332GRCCcj","7wwbToZ","24695StpdGq","ai.aiAssistant.disabledElements","values","set","32hQznSm","enabledCommandsIds","change:isEnabled","config","custom","add","_commandDefinitions"];return(je=function(){return e})()}function He(e,t){const r=je();return(He=function(e,t){return r[e-=470]})(e,t)}!function(e){const t=He,r=e();for(;;)try{if(965046===parseInt(t(480))/1+parseInt(t(506))/2*(parseInt(t(479))/3)+parseInt(t(501))/4*(-parseInt(t(515))/5)+-parseInt(t(505))/6*(-parseInt(t(486))/7)+parseInt(t(491))/8*(parseInt(t(500))/9)+-parseInt(t(513))/10*(parseInt(t(487))/11)+-parseInt(t(485))/12)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(je);class Ve extends e.Command{constructor(e,t){const r=He;super(e),this[r(497)]=t,this[r(490)](r(492),[]),this.on(r(471),((e,t,n)=>{const o=r;this[o(481)]&&(this[o(492)]=ze(this[o(497)],n))})),this[r(490)](r(470),!1),this.on(r(493),((e,t,n)=>{const o=r;this[o(492)]=n?ze(this[o(497)],this[o(470)]):[]}))}[Fe(478)](){const e=Fe,t=this[e(514)][e(508)];this[e(470)]=function(t){const r=e,n=t[r(484)][r(503)];return n[r(483)]?0!==[...n[r(472)]()][r(477)]&&![...n[r(472)]()][0][r(482)]:!!t[r(502)](n[r(510)]())}(t);const r=t[e(484)][e(503)],n=this[e(514)][e(494)][e(476)](e(488));for(const t of r[e(512)]())for(const r of t[e(509)]())if(r.is(e(475))&&n[e(507)](r[e(474)]))return void(this[e(481)]=!1);this[e(481)]=!0}[Fe(499)](e="",t="",r=Fe(495)){const n=Fe;this[n(514)][n(498)][n(476)](kr)[n(504)](e,t,r)}}function ze(e,t){const r=Fe,n=new Set;for(const o of e[r(489)]())(t||!1===o[r(511)])&&n[r(496)](o.id);return Array[r(473)](n)}const qe=We;function We(e,t){const r=Ze();return(We=function(e,t){return r[e-=304]})(e,t)}!function(e){const t=We,r=e();for(;;)try{if(697534===parseInt(t(386))/1*(parseInt(t(324))/2)+-parseInt(t(399))/3+-parseInt(t(309))/4+-parseInt(t(337))/5+-parseInt(t(338))/6+parseInt(t(359))/7+-parseInt(t(358))/8*(parseInt(t(357))/9))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ze);const Ge=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");function Ze(){const e=["startProcessing","_isH1TagSupportEnabled","ELEMENT_NODE","abort","message","set","_stripMarkdownSyntax","push","stringify","config","200352trVRRE","data","trim","previousLabel","name","currentResponse","catch","div","get","3268048wVxEml","_sanitizeHTML","htmlProcessor","mainAction","createElement","viewToDom","value","substring","previousContext","tryAgainEvent","finally","remove","endsWith","destroy","_domParser","3134huBoVo","_xmlSerializer","rename","from","ai.aiAssistant.preserveComments","_normalizeResponseHeadings","prompt","listenTo","handleError","element","setContentOf","finishProcessing","innerHTML","2510210NNliud","1191234tIRrjr","isProcessing","view","_sanitizationContainer","initialContext","render","currentContext","toModel","processor","clear","previousQuery","serializeToString","```html","childNodes","querySelector","textAdapter","then","reset","parseFromString","77985yBpKVQ","184rlNROa","8527428ibArij","makeRequest","stopListening","once","toView","updateView","nodeType","exec","set:currentContext","reverse","_handleQuery","isRendered","match","body","stopProcessing","length","editor","<h1></h1>","document","```","markers","domConverter","startsWith","_parseAndNormalizeContent","text/html","previousActionId","custom","806sANzZP","editing","submitPrompt"];return(Ze=function(){return e})()}class Ke extends((0,t.ObservableMixin)()){constructor(e,t,r){const n=We;super(),this[n(375)]=e,this[n(353)]=t,this[n(341)]=document[n(313)](n(307)),this[n(323)]=new DOMParser,this[n(325)]=new XMLSerializer,this[n(340)]=r,this[n(394)]({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this.on(n(367),((e,t,r)=>{const o=n;this[o(340)][o(315)]=this[o(310)](r)})),this[n(331)](this[n(340)],n(388),((e,t)=>{const r=n,o=this[r(344)]||this[r(342)];this[r(369)](t,o,r(385))})),this[n(331)](this[n(340)],n(318),(()=>{const e=n;this[e(340)][e(330)]=this[e(402)],this[e(369)](this[e(348)],this[e(317)],this[e(384)],this[e(402)])})),this[n(331)](this[n(340)],n(373),(()=>{this[n(373)]()}))}[qe(322)](){this[qe(361)]()}async[qe(364)]({actionId:e,query:t,htmlContent:r,label:n,mainActionLabel:o}){const i=qe;this[i(340)][i(330)]=n,this[i(340)][i(312)]=o,this[i(342)]=r,t&&(this[i(340)][i(370)]?this[i(369)](t,r,e,n):this[i(340)][i(362)](i(343),(()=>{this[i(369)](t,r,e,n)})))}[qe(373)](){const e=qe;this[e(339)]&&(this[e(339)]=!1,this[e(340)][e(335)](),this[e(353)][e(392)]())}[qe(355)](){const e=qe;this[e(342)]="",this[e(344)]="",this[e(305)]="",this[e(317)]="",this[e(348)]="",this[e(402)]="",this[e(384)]=void 0,this[e(340)][e(355)](),this[e(373)]()}async[qe(369)](e,t,r,n){const o=qe;return this[o(339)]=!0,this[o(340)][o(389)](),this[o(317)]=t,this[o(348)]=e,this[o(402)]=n||e,this[o(384)]=r,new Promise((n=>{const i=o;this[i(353)][i(360)]({query:e,context:t,onData:e=>{const t=i;this[t(305)]=e,this[t(344)]=this[t(382)](this[t(305)])},actionId:r})[i(354)]((()=>{const e=i;!this[e(344)]&&this[e(305)]&&(this[e(344)]=this[e(382)](this[e(305)],!0))}))[i(306)]((e=>{const t=i;e instanceof Ue?this[t(340)][t(332)](e[t(393)]):this[t(340)][t(332)](),n()}))[i(319)]((()=>{this[i(373)](),n()}))}))}[qe(382)](e,t=!1){const r=qe,n=Ge[r(366)](e);e=n?e[r(316)](n[1][r(374)]):e[r(374)]<100&&!t?"":this[r(395)](e);const o=this[r(323)][r(356)](e,r(383));if(n){const e=Array[r(327)](o[r(372)][r(351)]);e[r(368)]();for(const t of e){if(t[r(365)]==Node[r(391)])break;t[r(320)]()}}const i=this[r(375)][r(400)][r(346)][r(363)](this[r(325)][r(349)](o[r(372)]));this[r(390)]()||this[r(329)](i);const s=this[r(375)][r(398)][r(308)](r(328)),a=this[r(375)][r(400)][r(345)](i);return s||a[r(379)][r(347)](),this[r(375)][r(400)][r(397)](a)}[qe(329)](e){const t=qe,r=new Ie.UpcastWriter(this[t(375)][t(387)][t(340)][t(377)]),n=new Ie.Matcher({name:/^h[1-5]$/}),o=[];let i=!1;for(const r of e)r.is(t(333))&&n[t(371)](r)&&(o[t(396)](r),"h1"==r[t(304)]&&(i=!0));if(i)for(const e of o)r[t(326)]("h"+(parseInt(e[t(304)][1])+1),e)}[qe(390)](){const e=qe,{data:t,editing:r}=this[e(375)],n=t[e(311)][e(363)](e(376)),o=t[e(363)](t[e(345)](n));return!!r[e(340)][e(380)][e(314)](o)[e(352)]("h1")}[qe(310)](e){const t=qe;return this[t(375)][t(387)][t(340)][t(380)][t(334)](this[t(341)],e),this[t(341)][t(336)]}[qe(395)](e){const t=qe,r=e[t(401)]();return r[t(381)](t(350))?r[t(321)](t(378))?r[t(316)](7,r[t(374)]-3):r[t(316)](7):e}}const Je=Qe;function Qe(e,t){const r=Ye();return(Qe=function(e,t){return r[e-=255]})(e,t)}function Ye(){const e=["448MFiOVZ","96318wUpNyJ","647397gkeyQW","mainAction","extendTemplate","stopButton","ck-button-action","570288KtFvVL","items","replaceButton","AI_","replace","insert","ck-hidden","1216581zkwwhS","27141fGDsfI","locale","Try again","_CONTENT","label","set","_createButton","isVisible","bindTemplate","8IzCUhH","14BtTYrx","11017910BmEKZP","ck-ai-form__toolbar","toUpperCase","3915KdybsF","tryAgainButton","Stop","Insert below","REPLACE","insertButton","bind","addMany"];return(Ye=function(){return e})()}!function(e){const t=Qe,r=e();for(;;)try{if(400322===-parseInt(t(257))/1+-parseInt(t(286))/2+-parseInt(t(256))/3+parseInt(t(279))/4*(-parseInt(t(271))/5)+parseInt(t(280))/6*(parseInt(t(267))/7)+-parseInt(t(266))/8*(-parseInt(t(281))/9)+parseInt(t(268))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ye);const Xe={REPLACE:Je(290),INSERT:Je(291)};class et extends o.ToolbarView{constructor(e){const t=Je;super(e),this[t(262)](t(264),!1),this[t(262)](t(282),Xe[t(275)]),this[t(288)]=this[t(263)]("",t(285)),this[t(288)][t(277)](t(261)).to(this,t(282),(r=>De(e,t(289)+r[t(270)]()+t(260)))),this[t(276)]=this[t(263)](De(e,t(274))),this[t(272)]=this[t(263)](De(e,t(259))),this[t(284)]=this[t(263)](De(e,t(273)));const r=this[t(265)];this[t(283)]({attributes:{class:[t(269),r.if(t(264),t(255),(e=>!e))]}}),this[t(287)][t(278)]([this[t(288)],this[t(276)],this[t(272)],this[t(284)]])}[Je(263)](e,t){const r=Je,n=new o.ButtonView(this[r(258)]);return n[r(262)]({label:e,class:t||"",isVisible:!0,withText:!0}),n}}const tt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>';function rt(e,t){const r=nt();return(rt=function(e,t){return r[e-=398]})(e,t)}function nt(){const e=["write","focus","execCommand","querySelector","693rEBxAI","ck-ai-form__content-area-wrapper","style","isProcessing","locale","text/html","2272668HCEjuK","render","absolute","element","textContent","setStartAfter","remove","bind","setContent","scrollHeight","<span>]</span>","ck-content","7iqLmPk","ck-reset_all-excluded","wheel","5480XcrJkP","appendLoader","1921616anRmRL","copyButtonView","-9999px","execute","icon","Copy","10efyuBk","ck-ai-form__loader","115FRhQdG","_createLoader","body","set","class","copy","clipboard","position","scrollTo","change:value","lastElementChild","contentFieldView","ck-ai-form__copy-button","listenTo","660819oEmYSs","ck-hidden","1052718wYLwCt","createRange","ck-ai-form__content-area","_copyHTMLToClipboard","bindTemplate","62460bRyRwc","change:isProcessing","ck-ai-form__content-field","appendChild","_createCopyButton","setTemplate","removeAllRanges","mousedown","firstElementChild","innerHTML","AI is writing...","value","ck-ai-form__copy-button-wrapper"," ck-ai-form__copy-button--copied","smooth","loaderView","createElement","text/plain","setEndBefore","ck-ai-form__content-area--processing","getSelection","<span>[</span>","left","ClipboardItem","check","div","isVisible",".ck-ai-form__loader","isEnabled","addRange","1211768QzPxDE","22gBjyts"];return(nt=function(){return e})()}const ot=rt;!function(e){const t=rt,r=e();for(;;)try{if(559124===-parseInt(t(423))/1+parseInt(t(405))/2*(parseInt(t(421))/3)+parseInt(t(399))/4+-parseInt(t(407))/5*(parseInt(t(428))/6)+-parseInt(t(482))/7*(parseInt(t(458))/8)+parseInt(t(464))/9*(parseInt(t(485))/10)+-parseInt(t(459))/11*(-parseInt(t(470))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(nt);class it extends o.View{constructor(e,t=""){const r=rt;super(e),this[r(410)]({value:null,isVisible:!1,isProcessing:!1});const n=this[r(427)];this[r(418)]=new st(e,t),this[r(400)]=this[r(432)](),this[r(433)]({tag:r(453),attributes:{class:["ck",r(465),n.if(r(454),r(422),(e=>!e))],tabindex:"-1"},children:[{tag:r(453),attributes:{class:["ck",r(425),n.if(r(467),r(447))]},children:[this[r(418)],{tag:r(453),attributes:{class:["ck",r(440)]},children:[this[r(400)]]}]}]})}[ot(471)](){const e=ot;super[e(471)](),this[e(439)]&&this[e(418)][e(478)](this[e(439)]);let t=!1;this.on(e(416),((r,n,o)=>{const i=e,s=!this[i(418)][i(473)][i(463)](i(455));this[i(418)][i(478)](o),this[i(467)]&&s&&!t&&this[i(473)][i(415)]({top:this[i(473)][i(479)],behavior:i(442)})})),this.on(e(429),((r,n,o)=>{const i=e;t=!1,o?(this[i(439)]=null,this[i(418)][i(398)]()):this[i(439)]||this[i(418)][i(478)]("")})),this[e(420)](this[e(473)],e(484),(()=>{t=!0})),this[e(420)](this[e(473)],e(435),(()=>{t=!0}))}[ot(461)](){const e=ot;this[e(473)][e(461)]()}[ot(432)](){const t=ot,r=this[t(468)],n=new o.ButtonView(this[t(468)]),i=t(419);return n[t(410)]({label:De(r,t(404)),icon:tt,class:i,tooltip:!0}),n[t(477)](t(454)).to(this,t(439),(e=>!!e)),n[t(477)](t(456)).to(this,t(467),(e=>!e)),n.on(t(402),(()=>{const r=t;this[r(426)](this[r(418)][r(473)]),n[r(403)]=e.icons[r(452)],n[r(411)]=i+r(441),this[r(461)](),setTimeout((()=>{const e=r;n[e(403)]=tt,n[e(411)]=i}),1e3)})),n}[ot(426)](e){const r=ot,{window:n,document:o}=t.global;if(n[r(451)]){const{Blob:t,ClipboardItem:o}=n,i=[new o({"text/html":new t([e[r(437)]],{type:r(469)}),"text/plain":new t([e[r(474)]||""],{type:r(445)})})];navigator[r(413)][r(460)](i)}else{const t=o[r(444)](r(453));t[r(466)][r(414)]=r(472),t[r(466)][r(450)]=r(401),t[r(437)]=r(449)+e[r(437)]+r(480),o[r(409)][r(431)](t);const i=o[r(424)]();i[r(475)](t[r(436)]),i[r(446)](t[r(417)]);const s=n[r(448)]();s[r(434)](),s[r(457)](i),o[r(462)](r(412)),t[r(476)]()}}}class st extends o.View{constructor(e,t=""){const r=ot;super(e),this[r(443)]=this[r(408)](),this[r(433)]({tag:r(453),attributes:{class:["ck",r(481),t,r(483),r(430)]}})}[ot(478)](e){const t=ot;this[t(473)][t(437)]=e}[ot(398)](){const e=ot;this[e(473)][e(431)](this[e(443)][e(473)])}[ot(408)](){const e=ot,t=new o.View,r=this[e(468)],n=new o.SpinnerView;return n[e(454)]=!0,t[e(433)]({tag:e(453),attributes:{class:["ck",e(406)]},children:[n,{text:De(r,e(438))}]}),t[e(471)](),t}}function at(){const e=["72BsHOnp","setTemplate","8670376srUyZp","div","3090744TYkAur","639462SqQKHZ","7bKUQsV","ck-ai-form__error","1078270sNjnAg","text","1304574zsnKxs","content","1858740KyfhOR","2SlzkeY","876zwIJHA","25WHgjeI","bindTemplate","set","86493kjcyKC"];return(at=function(){return e})()}function ct(e,t){const r=at();return(ct=function(e,t){return r[e-=488]})(e,t)}!function(e){const t=ct,r=e();for(;;)try{if(640699===parseInt(t(506))/1*(-parseInt(t(495))/2)+parseInt(t(494))/3+-parseInt(t(505))/4+-parseInt(t(497))/5*(parseInt(t(492))/6)+-parseInt(t(488))/7*(-parseInt(t(503))/8)+parseInt(t(501))/9*(parseInt(t(490))/10)+parseInt(t(500))/11*(parseInt(t(496))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(at);class ut extends o.View{constructor(e,t=""){const r=ct;super(e);const n=new o.IconView,i=this[r(498)];this[r(499)](r(491),t),n[r(493)]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[r(502)]({tag:r(504),attributes:{class:["ck",r(489)]},children:[n,{text:i.to(r(491))}]})}}const lt=dt;function dt(e,t){const r=gt();return(dt=function(e,t){return r[e-=354]})(e,t)}function gt(){const e=["filteredView","element","_createSubmitButton","4uFVUlp","window","Submit","656789EQWhRg","56UcsGik","enter","focusableChildren","style","maxRows","value","target","9876nsLXXd","width","focusLast","minRows","44136AFxfZq","submit","add","fieldView","ck-ai-form__toggle-history","left","History","isEmpty","excludeScrollbarsAndBorders","fire","requestAnimationFrame","children","history","_createShowHistoryButton","16RzmTbe","locale","uiLanguageDirection","showHistoryButtonView","1376lJKgxt","5331159ZZNwXs","resultsView","update","isEnabled","bind","execute","submitButtonView","right","queryView","10iiRyQs","ck-ai-form__submit","focusFirst","2835460TwueNf","9251LbgAzk","fieldWrapperChildren","isVisible","rtl","focus","1540395pIYPDZ","isOn","render","set","keystrokes","focusCycler"];return(gt=function(){return e})()}!function(e){const t=dt,r=e();for(;;)try{if(386957===-parseInt(t(397))/1*(-parseInt(t(365))/2)+-parseInt(t(384))/3+-parseInt(t(393))/4*(-parseInt(t(378))/5)+parseInt(t(408))/6+parseInt(t(396))/7*(parseInt(t(361))/8)+-parseInt(t(366))/9*(parseInt(t(375))/10)+-parseInt(t(379))/11*(-parseInt(t(404))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(gt);class ht extends o.AutocompleteView{constructor(e,t){const r=dt;super(e,t),this[r(374)][r(411)][r(407)]=1,this[r(374)][r(411)][r(401)]=3,this[r(372)]=this[r(392)](),this[r(364)]=this[r(360)](),this[r(399)][r(410)](this[r(364)],1),this[r(399)][r(410)](this[r(372)])}[lt(386)](){const e=lt;super[e(386)](),this[e(374)][e(380)][e(410)](this[e(364)]),this[e(358)][e(410)](this[e(372)]),this[e(388)][e(387)](e(398),((t,r)=>{const n=e;t[n(403)]==this[n(374)][n(411)][n(391)]&&(this[n(409)](),r())}))}[lt(392)](){const e=lt,t=new o.ButtonView(this[e(362)]),r=this[e(362)];return t[e(387)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:De(r,e(395)),isVisible:!0,tooltip:!0,class:e(376)}),t.on(e(371),(()=>{this[e(409)]()})),t[e(370)](e(369)).to(this[e(374)][e(411)],e(354),this,e(369),((e,t)=>!e&&t)),t}[lt(360)](){const r=lt,n=new o.ButtonView(this[r(362)]),i=this[r(367)],s=this[r(362)];n[r(387)]({label:De(s,r(414)),withText:!1,icon:e.icons[r(359)],tooltip:!0,tooltipPosition:"sw",class:r(412)}),n[r(370)](r(385)).to(i,r(381)),n[r(370)](r(369)).to(this,r(369)),n.on(r(371),(()=>{const e=r;i[e(381)]=!i[e(381)],i[e(381)]?this[e(390)][e(383)]():this[e(383)]()}));const a=()=>{const e=r;t.global[e(394)][e(357)]((()=>{const r=e;if((0,t.isVisible)(this[r(391)])){const e=new t.Rect(this[r(374)][r(411)][r(391)]),o=e[r(405)],i=r(382)===s[r(363)]?r(413):r(373);e[r(355)](),n[r(391)][r(400)][i]=o-e[r(405)]+1+"px"}}))};return this[r(374)][r(411)].on(r(368),a),this.on(r(386),a),n}[lt(409)](){const e=lt,t=this[e(374)][e(411)][e(391)][e(402)];this[e(356)](e(409),t)}[lt(383)](e){const t=lt;-1===e?this[t(389)][t(406)]():this[t(389)][t(377)]()}}function ft(e,t){const r=pt();return(ft=function(e,t){return r[e-=218]})(e,t)}function pt(){const e=["add","clearHistory","310126amMsiR","387CMSCML","filter","Clear","children","delegate","length","41832VmXjoC","152450srHtdS","items","1096935qQRkPN","398015BxoDIu","716213jwWtoS","historyGroupView","clearHistoryButton","_createClearHistoryButton","locale","fire","set","execute","1401920mEfllz","312pmVNnD","Prompt history","12gOwEMq","label"];return(pt=function(){return e})()}const mt=ft;!function(e){const t=ft,r=e();for(;;)try{if(574242===-parseInt(t(241))/1+-parseInt(t(229))/2+parseInt(t(239))/3+parseInt(t(222))/4+parseInt(t(240))/5*(-parseInt(t(225))/6)+parseInt(t(236))/7*(parseInt(t(223))/8)+-parseInt(t(230))/9*(-parseInt(t(237))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(pt);class kt extends o.ListView{constructor(e){const t=ft;super(e),this[t(243)]=this[t(244)](),this[t(242)]=new o.ListItemGroupView,this[t(242)][t(233)][t(227)](this[t(243)],1),this[t(242)][t(226)]=De(e,t(224)),this[t(242)][t(238)][t(234)](t(221)).to(this),this[t(238)][t(227)](this[t(242)])}[mt(231)](){const e=mt;let t=0;for(const r of this[e(238)])t+=r[e(238)][e(235)];return{resultsCount:t,totalItemsCount:t}}[mt(244)](){const e=mt,t=this[e(218)],r=new o.ButtonView(this[e(218)]);return r[e(220)]({label:"("+De(t,e(232))+")",withText:!0}),r.on(e(221),(()=>this[e(219)](e(228)))),r}}const bt="object"==typeof global&&global&&global.Object===Object&&global;var wt="object"==typeof self&&self&&self.Object===Object&&self;const yt=(bt||wt||Function("return this")()).Symbol;const vt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const _t=Array.isArray;var St=Object.prototype,At=St.hasOwnProperty,xt=St.toString,Et=yt?yt.toStringTag:void 0;const It=function(e){var t=At.call(e,Et),r=e[Et];try{e[Et]=void 0;var n=!0}catch(e){}var o=xt.call(e);return n&&(t?e[Et]=r:delete e[Et]),o};var Rt=Object.prototype.toString;const Pt=function(e){return Rt.call(e)};var Ct=yt?yt.toStringTag:void 0;const Mt=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ct&&Ct in Object(e)?It(e):Pt(e)};const Tt=function(e){return null!=e&&"object"==typeof e};const Ot=function(e){return"symbol"==typeof e||Tt(e)&&"[object Symbol]"==Mt(e)};var $t=yt?yt.prototype:void 0,Nt=$t?$t.toString:void 0;const Lt=function e(t){if("string"==typeof t)return t;if(_t(t))return vt(t,e)+"";if(Ot(t))return Nt?Nt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const Bt=function(e){return null==e?"":Lt(e)};const Ut=function(e){return function(t){return null==e?void 0:e[t]}};const Dt=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ft=/&(?:amp|lt|gt|quot|#39);/g,jt=RegExp(Ft.source);const Ht=function(e){return(e=Bt(e))&&jt.test(e)?e.replace(Ft,Dt):e};function Vt(e,t){const r=qt();return(Vt=function(e,t){return r[e-=428]})(e,t)}!function(e){const t=Vt,r=e();for(;;)try{if(493386===-parseInt(t(443))/1*(-parseInt(t(434))/2)+parseInt(t(446))/3+-parseInt(t(430))/4*(-parseInt(t(428))/5)+-parseInt(t(437))/6*(-parseInt(t(441))/7)+parseInt(t(436))/8*(parseInt(t(433))/9)+parseInt(t(444))/10+-parseInt(t(432))/11*(parseInt(t(429))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(qt);class zt extends o.ListItemView{constructor(e){const t=Vt;super();const r=new o.ButtonLabelView,n=new o.ButtonView(this[t(440)],r);this[t(442)][t(439)](n),n[t(435)]({label:e[t(431)],withText:!0}),n.on(t(438),(()=>{const r=t;this[r(445)](r(438),{value:Ht(e[r(431)])})}))}}function qt(){const e=["5447yGHjsS","1979700PgxRBB","fire","1537872iYtxhR","1031915bVbwAV","384amedXj","4ANLkmB","prompt","408188qkyxYP","127026kCRkEo","70gtRBYp","set","8jyVEAt","3354636jkpsWX","execute","add","locale","7MJCClP","children"];return(qt=function(){return e})()}function Wt(){const e=["2054276oYXzpa","parse","12530gGDszy","6308901bfstHT","trim","map","349643pxVIde","length","add","2450010ndgefo","getItem","prompt","1136ZpgeHi","683208hoaUoB","404130DQUCmB","stringify","setItem","CKEditor/AIFormView/PromptHistory","addMany","_saveToSessionStorage","toLowerCase","5mmMkmu","remove","last","_loadFromSessionStorage"];return(Wt=function(){return e})()}const Gt=Jt;!function(e){const t=Jt,r=e();for(;;)try{if(261417===parseInt(t(486))/1+-parseInt(t(494))/2+-parseInt(t(493))/3+-parseInt(t(505))/4+parseInt(t(501))/5*(parseInt(t(489))/6)+parseInt(t(507))/7*(-parseInt(t(492))/8)+parseInt(t(508))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Wt);const Zt=Gt(497);class Kt extends t.Collection{constructor(){const e=Gt;super(),this[e(504)](),this.on(e(488),((t,r)=>{const n=e,o=Qt(r[n(491)]);for(const e of this)if(e!=r&&Qt(e[n(491)])===o){this[n(502)](e);break}this[n(487)]>20&&this[n(502)](this[n(503)]),this[n(499)]()})),this.on(e(502),(()=>{this[e(499)]()}))}[Gt(504)](){const e=Gt,t=sessionStorage[e(490)](Zt)||"[]";this[e(498)](JSON[e(506)](t))}[Gt(499)](){const e=Gt;sessionStorage[e(496)](Zt,JSON[e(495)](this[e(510)]((e=>e))))}}function Jt(e,t){const r=Wt();return(Jt=function(e,t){return r[e-=486]})(e,t)}function Qt(e){const t=Gt;return e[t(500)]()[t(509)]()}const Yt=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var Xt=/[&<>"']/g,er=RegExp(Xt.source);const tr=function(e){return(e=Bt(e))&&er.test(e)?e.replace(Xt,Yt):e},rr=or;function nr(){const e=["25MKBarM","errorView","queryView","ck-ai-form","55086QCAUbW","chain","promptView","submitPrompt","value","insertButton","tab","isProcessing","isVisible","set","startProcessing","770SEjFei","historyGroupView","clearHistory","text","copyButtonView","tryAgainButton","fire","1243smZdmb","fieldView","label","ck-hidden","add","shift + tab","items","toolbar","focusCycler","_focusables","delegate","Ask AI to edit or generate","contentArea","div","_createToolbar","focusTracker","finishProcessing","bindTemplate","focusLast","140160vTlTXD","replaceButton","focusFirst","Ask AI to improve generated text","element","stopButton","isEnabled","2026161MLEBoo","_createHistoryView","1728MdkCVj","trim","focus","mainAction","reset","execute","listenTo","525740GzEYMa","198916YBEMAM","keystrokes","replaceContent","submit","ck-ai-form-content","high","bind","REPLACE","search","1BzuUpx","tryAgainEvent","Empty history","render","insertContentBelow","createCollection","41707471WEAebu","stopProcessing","AI_ERROR_FAILED","setTemplate","66087rTVXSw","_promptHistory","Ask AI and your prompts will be listed here for you to use later.","bindTo","12nMrWJJ","locale","handleError","clear","prompt","isError","_createPromptView"];return(nr=function(){return e})()}function or(e,t){const r=nr();return(or=function(e,t){return r[e-=143]})(e,t)}!function(e){const t=or,r=e();for(;;)try{if(807667===parseInt(t(228))/1*(parseInt(t(218))/2)+-parseInt(t(209))/3+parseInt(t(219))/4*(parseInt(t(161))/5)+-parseInt(t(165))/6*(-parseInt(t(176))/7)+-parseInt(t(211))/8*(-parseInt(t(150))/9)+-parseInt(t(202))/10*(-parseInt(t(183))/11)+parseInt(t(154))/12*(-parseInt(t(146))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(nr);class ir extends o.View{constructor(e,r,n=""){const i=or;super(e),this[i(174)](i(208),!0),this[i(174)](i(172),!1),this[i(174)](i(158),""),this[i(174)](i(169),""),this[i(174)](i(159),!1),this[i(174)](i(214),Xe[i(226)]),this[i(151)]=new Kt,this[i(162)]=new ut(e),this[i(195)]=new it(e,n),this[i(195)][i(225)](i(172)).to(this),this[i(195)][i(225)](i(169)).to(this),this[i(190)]=this[i(197)](),this[i(190)][i(225)](i(214)).to(this),this[i(167)]=this[i(160)](),this[i(198)]=new t.FocusTracker,this[i(220)]=new t.KeystrokeHandler,this[i(192)]=this[i(145)]([this[i(195)],this[i(195)][i(180)],this[i(190)],this[i(167)]]),this[i(191)]=new o.FocusCycler({focusables:this[i(192)],focusTracker:this[i(198)],keystrokeHandler:this[i(220)],actions:{focusPrevious:i(188),focusNext:i(171)}}),this[i(191)][i(166)](this[i(167)][i(191)]),this[i(167)][i(163)][i(184)][i(225)](i(169)).to(this,i(158));const s=this[i(200)];this[i(149)]({tag:i(196),attributes:{class:["ck",i(164),r],tabindex:"-1"},children:[{tag:i(196),attributes:{class:["ck",i(223)]},children:[{tag:i(196),attributes:{class:[s.if(i(159),i(186),(e=>!e))]},children:[this[i(162)]]},this[i(195)],this[i(190)],this[i(167)]]}]})}[rr(143)](){const e=rr;super[e(143)](),this[e(198)][e(187)](this[e(195)][e(206)]),this[e(198)][e(187)](this[e(195)][e(180)][e(206)]),this[e(198)][e(187)](this[e(190)][e(206)]),this[e(198)][e(187)](this[e(167)][e(206)]),this[e(220)][e(217)](this[e(206)])}[rr(213)](e=1){const t=rr;-1===e?this[t(191)][t(201)]():this[t(191)][t(204)]()}[rr(215)](){const e=rr;this[e(158)]="",this[e(169)]="",this[e(159)]=!1,this[e(167)][e(215)](),this[e(195)][e(173)]=!1,this[e(190)][e(173)]=!1}[rr(160)](){const e=rr,t=this[e(155)],r=new ht(t,{queryView:{label:De(t,e(194)),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:De(t,e(230)),secondary:De(t,e(152))}}},filteredView:this[e(210)](),queryMinChars:1/0,resetOnBlur:!1});return r[e(225)](e(208)).to(this,e(208),this,e(172),((e,t)=>e&&!t)),this[e(217)](r,e(222),((t,r)=>{const n=e;this[n(158)]=r;const o=tr(r);this[n(182)](n(168),o),r[n(212)]()&&this[n(151)][n(187)]({prompt:o},0)}),{priority:e(224)}),r}[rr(210)](){const e=rr,t=new kt(this[e(155)]);return t[e(177)][e(189)][e(153)](this[e(151)]).as(zt),t.on(e(178),(()=>{const t=e;this[t(151)][t(157)](),this[t(167)][t(227)](""),this[t(167)][t(213)]()})),t}[rr(197)](){const e=rr,t=new et(this[e(155)]);return t[e(203)][e(225)](e(208)).to(this,e(208),this,e(172),this,e(169),((e,t,r)=>e&&!t&&!!r)),t[e(203)][e(193)](e(216)).to(this,e(221)),t[e(170)][e(225)](e(208)).to(this,e(208),this,e(172),this,e(169),((e,t,r)=>e&&!t&&!!r)),t[e(170)][e(193)](e(216)).to(this,e(144)),t[e(181)][e(225)](e(208)).to(this,e(208),this,e(172),((e,t)=>e&&!t)),t[e(181)][e(193)](e(216)).to(this,e(229)),t[e(207)][e(225)](e(208)).to(this,e(172)),t[e(207)][e(193)](e(216)).to(this,e(147)),t}[rr(175)](){const e=rr;this[e(169)]="",this[e(159)]=!1,this[e(172)]=!0,this[e(195)][e(173)]=!0,this[e(190)][e(173)]=!0,this[e(195)][e(213)]()}[rr(199)](){const e=rr,t=this[e(155)];this[e(172)]=!1,this[e(158)]="",this[e(167)][e(215)](),this[e(169)]&&(this[e(167)][e(163)][e(185)]=De(t,e(205)))}[rr(156)](e){const t=rr,r=this[t(155)];this[t(199)](),this[t(159)]=!0,this[t(162)][t(179)]=e||De(r,t(148)),this[t(169)]||(this[t(195)][t(173)]=!1)}}const sr='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>';var ar=r(379),cr={attributes:{"data-cke":!0}};cr.setAttributes=g(),cr.insert=l().bind(null,"head"),cr.domAPI=c(),cr.insertStyleElement=f();s()(ar.A,cr);ar.A&&ar.A.locals&&ar.A.locals;var ur=r(181),lr={attributes:{"data-cke":!0}};lr.setAttributes=g(),lr.insert=l().bind(null,"head"),lr.domAPI=c(),lr.insertStyleElement=f();s()(ur.A,lr);ur.A&&ur.A.locals&&ur.A.locals;var dr=r(676),gr={attributes:{"data-cke":!0}};gr.setAttributes=g(),gr.insert=l().bind(null,"head"),gr.domAPI=c(),gr.insertStyleElement=f();s()(dr.A,gr);dr.A&&dr.A.locals&&dr.A.locals;const hr=mr;function fr(){const e=["updatePosition","3625656SKKRKL","sort","body","aiLicenseKeyValid","tableOfContents","command:","menuPanelClass","updateView","hide","render","order","text/html","rawHtml","get","commands","DataTransfer","buttons","getSelectedBlocks","bind","domainLimit","invalid","20XqkibL","map","push","requires","6892240ZARmEd","AI Assistant","ai.aiAssistant.contentAreaCssClass","enabledCommandsIds","ai-commands-config-order-collision","getData","REPLACE","showFakeVisualSelection","update","currentContext","aiLicenseKeyUsageLimit","ai.aiAssistant.commands","children","3966522UUCRxC","isOfficialPlugin","listenTo","usageLimit","buttonView","aiAssistant","config","520330oyfQDO","show","_dialog","delegate","textAdapter","schema","ai.aiAssistant.disabledElements","ck-ai-commands-dropdown ","AIAssistantUI","trialLimit","2buQPni","hideUI","aiLicenseKeyEvaluationLimit","selection","_commandDefinitions","_forceMarkersCopy","source","ck-ai-assistant-button ","comment","_populateMenuBarMenu","addMany","promptView","aiLicenseKeyExpired","filter","isCollapsed","once","contentArea","_aiAdapter","execute","INSERT","367775XVfvJB","text","aiLicenseKeyNotAllowed","featureNotAllowed","evaluationLimit","change","_createAIAssistantUIButton","label","polite","Generated content: %0","copy","editing","model","getSelectedElement","panelView","1399311Ckaxjv","componentFactory","length","menuitemcheckbox","groupLabel","getLimitElement","fire","from","prompt","requiresContent","wasMoved","EDITOR_TOP_SIDE","_getMenuBarGroupButtons"," ck-ai-assistant-ui_theme","errorView","values","licenseKey","aiLicenseKeyDomainLimit","_initView","editor","groupId","<p>","replace","change:isError","insertContent","AI is writing","_formView","isFlat","setSelection","define","showAIAssistant","isOn","_initAriaAiStatusChangeAnnouncements","_uiCssClasses","focus","_onExecute","menuView","Error during AI content generation: %0","aiLicenseKeyTrialLimit","init","includes","isEnabled","</p>","showUI","3240879CWOAaS","getRanges","ai.useTheme","fieldView","pluginName","set","forEach","change:enabledCommandsIds","change:isProcessing","trim","_getResolvedCommandsDefinitions","menuBar:aiAssistant","locale","isPremiumPlugin","document","destroy","view","aiLicenseKeyInvalid","insertContentBelow","reset","hideFakeVisualSelection","aiCommands","_showLicenseError","menuBar:aiCommands","queryView","custom","expired","12wLXegl","ck-ai-assistant-ui","add","robotPencil","AIAssistant","items","splice","_licenseKeyCheckInterval","media","_aiAssistantController","change:value","announce","AI Commands","plugins","replaceContent"];return(fr=function(){return e})()}!function(e){const t=mr,r=e();for(;;)try{if(672550===parseInt(t(490))/1*(parseInt(t(470))/2)+-parseInt(t(549))/3+parseInt(t(415))/4+-parseInt(t(460))/5+-parseInt(t(576))/6*(-parseInt(t(453))/7)+-parseInt(t(440))/8+-parseInt(t(505))/9*(-parseInt(t(436))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(fr);const pr=globalThis[hr(430)];function mr(e,t){const r=fr();return(mr=function(e,t){return r[e-=403]})(e,t)}class kr extends e.Plugin{static get[hr(553)](){return hr(468)}static get[hr(454)](){return!0}static get[hr(562)](){return!0}static get[hr(439)](){return[Ee.ClipboardMarkersUtils,Oe,Be,o.Dialog]}constructor(e){const t=hr;super(e),this[t(538)]="",e[t(459)][t(534)](t(466),[t(407),t(427),t(419)]),e[t(459)][t(534)](t(442),""),e[t(459)][t(534)](t(551),!0),this[t(538)]=t(577)+(e[t(459)][t(428)](t(551))?t(518):"")}[hr(544)](){const e=hr,{editor:t}=this;this[e(487)]=t[e(412)][e(428)](Be),this[e(462)]=t[e(412)][e(428)](o.Dialog),this[e(531)]=null,this[e(474)]=this[e(559)]();const r=new Ve(t,Array[e(512)](this[e(474)][e(520)]()));t[e(429)][e(578)](e(535),r),t.ui[e(506)][e(578)](e(570),(n=>{const i=e,s=(0,o.createDropdown)(n);return s[i(554)]({class:i(467)+this[i(538)]}),s[i(457)][i(554)]({label:De(n,i(411)),icon:sr,tooltip:!0}),s.on(i(488),(e=>this[i(540)](e[i(476)].id))),(0,o.addMenuToDropdown)(s,t.ui[i(565)][i(417)],function(e){const t=i,r=xe(e[t(459)][t(428)](t(451)),e[t(561)]),n=wr(e,r)[t(483)]((e=>e[t(429)][t(507)]));return 1===n[t(507)]?wr(e,n[0][t(429)])[t(437)]((e=>({id:e.id,label:e[t(497)]}))):n[t(437)]((r=>{const n=t,{groupId:o,groupLabel:i,commands:s}=r;return{id:o,menu:i||o,children:wr(e,s)[n(437)]((e=>({id:e.id,label:e[n(497)]})))}}))}(t),{ariaLabel:De(n,i(411))}),s[i(541)][i(421)]=i(467)+this[i(538)],r.on(i(556),a),s[i(541)][i(485)](i(424),a),s;function a(){const e=i;s[e(546)]=r[e(443)][e(507)]>0;for(const t of s[e(541)][e(431)])t[e(546)]=r[e(443)][e(545)](t.id)}})),t.ui[e(506)][e(578)](e(572),(n=>{const i=e,s=new o.MenuBarMenuView(n);s[i(457)][i(554)]({label:De(n,i(411)),icon:sr}),s[i(433)](i(546)).to(r,i(443),(e=>e[i(507)]>0));const a=xe(t[i(459)][i(428)](i(451)),n);return this[i(479)](r,s,a,(e=>this[i(540)](e))),s})),t.ui[e(506)][e(578)](e(458),(()=>{const t=e,r=this[t(496)](o.ButtonView);return r[t(554)]({tooltip:!0,class:t(477)+this[t(538)]}),r})),t.ui[e(506)][e(578)](e(560),(()=>{const t=e,r=this[t(496)](o.MenuBarMenuListItemButtonView);return r[t(554)]({role:t(508)}),r})),this[e(521)]=this[e(524)][e(459)][e(428)](e(521));const n=this[e(524)];this[e(406)]=setInterval((()=>{const t=e;let r;for(const e in n){const o=e,i=n[o];if(t(418)==i||t(566)==i||t(482)==i||t(522)==i||t(492)==i||t(472)==i||t(543)==i||t(450)==i){delete n[o],r=i,clearInterval(this[t(406)]),this[t(406)]=void 0;break}}t(566)==r&&n[t(571)](t(435)),t(482)==r&&n[t(571)](t(575)),t(522)==r&&n[t(571)](t(434)),t(492)==r&&n[t(571)](t(493),t(403)),t(472)==r&&n[t(571)](t(494)),t(543)==r&&n[t(571)](t(469)),t(450)==r&&n[t(571)](t(456))}),1e3)}[hr(564)](){const e=hr;super[e(564)](),this[e(406)]&&clearInterval(this[e(406)])}[hr(548)](e="",t="",r=hr(574)){const n=hr,i=this[n(524)],s=i[n(501)][n(565)],a=i[n(412)][n(428)](Oe),c=i[n(412)][n(428)](Ee.ClipboardMarkersUtils);a[n(447)]();const u=new pr,l=new ClipboardEvent(n(500),{clipboardData:u}),d=new Ie.DataTransfer(u),g=new Ie.DomEventData(s,l,{dataTransfer:d});c[n(475)](n(478),(()=>{const e=n;s[e(563)][e(511)](e(500),g)})),this[n(531)]||(this[n(523)](),this[n(408)]=new Ke(i,this[n(487)][n(464)],this[n(531)]));let h=d[n(445)](n(426));const f=i[n(502)][n(563)][n(473)],p=Array[n(512)](f[n(550)]());1===p[n(507)]&&p[0][n(532)]&&!f[n(503)]()&&""!==h[n(527)](/&nbsp;/g,"")[n(558)]()&&(h=n(526)+h+n(547)),this[n(408)][n(422)]({actionId:r,query:e,htmlContent:h,label:t,mainActionLabel:Xe[i[n(502)][n(563)][n(473)][n(484)]?n(489):n(446)]}),n(458)!==this[n(462)].id?this[n(462)][n(461)]({id:n(458),icon:Ae[n(579)],title:De(this[n(524)][n(561)],n(441)),content:this[n(531)],position:o.DialogViewPosition[n(516)],onShow:()=>{const e=n;this[e(531)][e(539)]()},onHide:()=>{const e=n;this[e(408)][e(568)](),a[e(569)]()}}):this[n(462)][n(565)][n(515)]||this[n(462)][n(565)][n(414)]()}[hr(471)](){const e=hr;this[e(462)][e(423)]()}[hr(559)](){const e=hr,t=new Map,r=xe(this[e(524)][e(459)][e(428)](e(451)),this[e(524)][e(561)]);for(const n of r)for(const r of n[e(429)])t[e(554)](r.id,{...r,groupId:n[e(525)],groupLabel:n[e(509)]||n[e(525)]});return t}[hr(496)](e){const t=hr,r=this[t(524)],n=r[t(429)][t(428)](t(535)),o=new e(r[t(561)]);return o[t(554)]({label:De(r[t(561)],t(441)),icon:Ae[t(579)],isToggleable:!0}),o[t(433)](t(546)).to(n),o[t(433)](t(536)).to(this[t(462)],"id",(e=>t(458)===e)),this[t(455)](o,t(488),(()=>{const e=t;o[e(536)]?this[e(471)]():n[e(488)]()})),o}[hr(523)](){const e=hr,t=this[e(524)][e(412)][e(428)](Oe);this[e(531)]=new ir(this[e(524)][e(561)],this[e(538)],this[e(524)][e(459)][e(428)](e(442))),this[e(531)].on(e(409),(()=>{const t=e;this[t(462)][t(565)][t(515)]||this[t(462)][t(565)][t(414)]()})),this[e(531)][e(481)][e(573)][e(552)].on(e(448),(()=>{const t=e;this[t(462)][t(565)][t(515)]||this[t(462)][t(565)][t(414)]()})),this[e(455)](this[e(531)],e(413),(()=>{const r=e;t[r(529)](this[r(408)][r(449)]),this[r(471)]()})),this[e(455)](this[e(531)],e(567),(()=>{const r=e;t[r(567)](this[r(408)][r(449)]),this[r(471)]()})),this[e(537)]()}[hr(537)](){const e=hr,{locale:t,ui:{ariaLiveAnnouncer:r}}=this[e(524)];this[e(531)][e(486)].on(e(557),((n,o,i)=>{const s=e,a=this[s(408)][s(449)];i?r[s(410)](De(t,s(530))):a&&r[s(410)](De(t,s(499),a),{politeness:s(498),isUnsafeHTML:!0})})),this[e(531)].on(e(528),((n,o,i)=>{const s=e;if(i){const e=this[s(531)][s(519)][s(491)];r[s(410)](De(t,s(542),e))}}))}[hr(540)](e){const r=hr,n=this[r(474)][r(428)](e),o=this[r(524)],i=o[r(502)][r(563)][r(473)],s=o[r(429)][r(428)](r(535)),a=o[r(412)][r(428)](Oe),c=("_ungrouppedCommands"!==n[r(525)]?n[r(509)]+": ":"")+n[r(497)];if(!1!==n[r(514)]&&i[r(484)]){const e=(0,t.first)(i[r(432)]())||o[r(502)][r(465)][r(510)](i);o[r(502)][r(495)]((t=>{t[r(533)](e,"in")}))}a[r(447)](),s[r(488)](n[r(513)],c,r(420)+e)}[hr(479)](e,t,r,n){const i=hr,s=this[i(524)],a=s[i(561)],c=new o.MenuBarMenuListView(a),u=wr(s,r)[i(483)]((e=>e[i(429)][i(507)]));1===u[i(507)]?this[i(517)]({command:e,commands:u[0][i(429)],parentMenuView:t,onExecute:n})[i(555)]((e=>c[i(404)][i(578)](e))):u[i(555)]((({groupId:r,groupLabel:s,commands:u})=>{const l=i,d=new o.MenuBarMenuListItemView(a,t),g=new o.MenuBarMenuView(a),h=new o.MenuBarMenuListView(a),f=this[l(517)]({command:e,commands:u,parentMenuView:g,onExecute:n});g[l(457)][l(554)]({label:s||r}),g[l(463)](l(488)).to(t),h[l(404)][l(480)](f),g[l(504)][l(452)][l(578)](h),d[l(452)][l(578)](g),c[l(404)][l(578)](d)})),t[i(504)][i(452)][i(578)](c)}[hr(517)]({command:e,commands:t,parentMenuView:r,onExecute:n}){const i=hr,s=this[i(524)],a=s[i(561)];return wr(s,t)[i(437)]((t=>{const s=i,c=new o.MenuBarMenuListItemView(a,r),u=new o.MenuBarMenuListItemButtonView(a);return u[s(554)]({label:t[s(497)]}),u[s(463)](s(488)).to(r),u.on(s(488),(()=>n(t.id))),u[s(433)](s(546)).to(e,s(443),(e=>e[s(545)](t.id))),c[s(452)][s(578)](u),c}))}}function br(e,t){const r=hr;return void 0!==e[r(425)]&&void 0===t[r(425)]?1:void 0===e[r(425)]&&void 0!==t[r(425)]?-1:void 0!==e[r(425)]&&void 0!==t[r(425)]?e[r(425)]-t[r(425)]:0}function wr(e,r){const n=hr;r[n(416)](br);const o={},i=[];for(const s of r)if(void 0!==s[n(425)]){if(s[n(425)]in o)throw new t.CKEditorError(n(444),e,{conflictingDefinitions:[s,o[s[n(425)]]]});o[s[n(425)]]=s,i[n(405)](s[n(425)],0,s)}else i[n(438)](s);return i}const yr=vr;function vr(e,t){const r=Sr();return(vr=function(e,t){return r[e-=304]})(e,t)}!function(e){const t=vr,r=e();for(;;)try{if(679258===parseInt(t(337))/1+-parseInt(t(342))/2+-parseInt(t(332))/3+-parseInt(t(360))/4+parseInt(t(334))/5+parseInt(t(381))/6+parseInt(t(373))/7)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Sr);class _r extends e.Plugin{static get[yr(389)](){return[kr,Oe]}static get[yr(369)](){return yr(406)}static get[yr(399)](){return!0}static get[yr(358)](){return!0}constructor(e){const t=yr;super(e);const r=e[t(410)],n=e[t(346)];r[t(390)](t(323),!0),r[t(390)](t(397),function(e){const t=yr;return[{groupId:t(336),groupLabel:De(e,t(324)),commands:[{id:t(308),label:De(e,t(327)),prompt:t(407)},{id:t(304),label:De(e,t(357)),prompt:t(394)},{id:t(385),label:De(e,t(314)),prompt:t(388)},{id:t(335),label:De(e,t(401)),prompt:t(347)}]},{groupId:t(395),groupLabel:De(e,t(359)),commands:[{id:t(376),label:De(e,t(393)),prompt:t(333)},{id:t(315),label:De(e,t(364)),prompt:t(362)}]},{groupId:t(380),groupLabel:De(e,t(307)),commands:[{id:t(372),label:De(e,t(352)),prompt:t(379)},{id:t(392),label:De(e,t(411)),prompt:t(405)},{id:t(306),label:De(e,t(371)),prompt:t(318)},{id:t(408),label:De(e,t(305)),prompt:t(368)},{id:t(409),label:De(e,t(365)),prompt:t(354)}]},{groupId:t(326),groupLabel:De(e,t(391)),commands:[{id:t(331),label:De(e,t(317)),prompt:t(319)},{id:t(312),label:De(e,t(339)),prompt:t(328)},{id:t(402),label:De(e,t(396)),prompt:t(348)},{id:t(403),label:De(e,t(344)),prompt:t(384)}]},{groupId:t(309),groupLabel:De(e,t(356)),commands:[{id:t(366),label:De(e,t(310)),prompt:t(351)},{id:t(320),label:De(e,t(382)),prompt:t(311)},{id:t(361),label:De(e,t(353)),prompt:t(374)},{id:t(316),label:De(e,t(350)),prompt:t(383)},{id:t(349),label:De(e,t(343)),prompt:t(378)},{id:t(313),label:De(e,t(340)),prompt:t(367)},{id:t(329),label:De(e,t(377)),prompt:t(321)},{id:t(322),label:De(e,t(386)),prompt:t(387)}]}]}(n)),r[t(390)](t(325),[]),r[t(390)](t(398),[]);let o=xe(r[t(330)](t(397)),n);const i=r[t(330)](t(325)),s=r[t(330)](t(398));i[t(355)]((e=>{const r=t,n=o[r(400)]((t=>t[r(375)]===e[r(375)]));n?n[r(345)]=n[r(345)][r(341)](e[r(345)]):o[r(370)](e)})),o=o[t(338)]((e=>!s[t(363)](e[t(375)]))),o[t(355)]((e=>{const r=t;e[r(345)]=e[r(345)][r(338)]((e=>!s[r(363)](e.id)))})),r[t(404)](t(397),o)}}function Sr(){const e=["Simplified Chinese","concat","19668XnghOp","French","Poetic","commands","locale","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","Rewrite this content as a journalist using engaging language to convey the importance of the information.","translateFrench","German","Translate the content to English language.","Professional","Portuguese","Improve using friendly, comforting language, to convey understanding and empathy.","forEach","Translate","Make shorter","isPremiumPlugin","Generate from selection","4529920NndFhz","translatePortuguese","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","includes","Continue","Friendly","translateEnglish","Translate the content to Simplified Chinese language.","Improve using compelling, optimistic language to convey confidence in the writing.","pluginName","push","Direct","professional","7633325BgZbfP","Translate the content to Portuguese language.","groupId","summarize","Hindi","Translate the content to French language.","Improve using polished, formal, and respectful language to convey professional expertise and competence.","changeTone","7124766WbRznD","Spanish","Translate the content to German language.","Rewrite this content as a poem using poetic techniques without losing the original meaning.","makeLonger","Arabic","Translate the content to Arabic language.","Improve this content by using descriptive language and inserting more information and more detailed explanations.","requires","define","Change style","casual","Summarize","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","generate","Journalism","ai.aiAssistant.commands","ai.aiAssistant.removeCommands","isOfficialPlugin","find","Simplify language","journalism","poetic","set","Improve using casual, informal language to convey a casual conversation with a real person.","AIAssistant","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","confident","friendly","config","Casual","makeShorter","Confident","direct","Change tone","improveWriting","translate","English","Translate the content to Spanish language.","legal","translateChinese","Make longer","continue","translateGerman","Business","Improve using direct language, using only the essential information.","Rewrite this content as a business professional with formal language.","translateSpanish","Translate the content to Hindi language.","translateArabic","ai.aiAssistant.preserveComments","Edit or review","ai.aiAssistant.extraCommandGroups","changeStyle","Improve writing","Rewrite this content as a legal professional using valid legal terminology.","translateHindi","get","business","3843174Wxkiru","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","3162525bYhAvF","simplifyLanguage","editOrReview","192189DFsZrq","filter","Legal"];return(Sr=function(){return e})()}const Ar=Er;function xr(){const e=["5CGSFAv","sendRequest","26925888WLFbIo","aitextadapter-send-request-failed","112232ioJPYz","3luFxTO","reject","editor","AI_ERROR_GET_HEADERS","77iGwipx","AbortError","textAdapter","abortController","get","application/json","makeRequest","signal","catch","1070rLPxYm","name","assign","547260gMWcdx","error","aborted","resolve","object","AI_ERROR_GET_PARAMETERS","11VENEqF","abort","752134ofIHul","locale","150912DxxckH","_prepareRequestParameters","init","4580332uxeBWV","requires","plugins","10723908XQLAwQ","_prepareRequestHeaders"];return(xr=function(){return e})()}function Er(e,t){const r=xr();return(Er=function(e,t){return r[e-=225]})(e,t)}!function(e){const t=Er,r=e();for(;;)try{if(961595===parseInt(t(230))/1+parseInt(t(238))/2*(parseInt(t(253))/3)+parseInt(t(243))/4*(-parseInt(t(248))/5)+parseInt(t(246))/6+parseInt(t(257))/7*(-parseInt(t(252))/8)+-parseInt(t(240))/9*(-parseInt(t(227))/10)+parseInt(t(236))/11*(-parseInt(t(250))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(xr);class Ir extends e.Plugin{static get[Ar(244)](){return[Be]}constructor(e){const t=Ar;super(e),this[t(260)]=new AbortController}[Ar(242)](){const e=Ar;this[e(255)][e(245)][e(261)](Be)[e(259)]=this}[Ar(237)](){const e=Ar;this[e(260)][e(225)][e(232)]||(this[e(260)][e(237)](),this[e(260)]=new AbortController)}async[Ar(263)](e){const r=Ar;return this[r(249)](e)[r(226)]((e=>{const n=r;if(e instanceof Ue)return Promise[n(254)](e);if(n(258)==e[n(228)])return Promise[n(233)]();throw console[n(231)](e),new t.CKEditorError(n(251),null)}))}async[Ar(247)](e,t){const r=Ar,n=this[r(255)][r(239)],o={"Content-Type":r(262)};if(r(234)==typeof e)Object[r(229)](o,e);else if(e)try{const n=await e(t);Object[r(229)](o,n)}catch(e){return Promise[r(254)](new Ue(De(n,r(256))))}return o}async[Ar(241)](e,t){const r=Ar,n=this[r(255)][r(239)];if(r(234)==typeof e)return e;try{return await e(t)}catch(e){return Promise[r(254)](new Ue(De(n,r(235))))}}}const Rr=Cr;function Pr(){const e=["5396605wWOAqf","system","includes","map","_isBufferIncomplete","choices","261676tfSRry","_apiUrl","7458857NTMvZQ","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","[DONE]","_prepareRequestHeaders","context_length_exceeded","gpt-3.5-turbo","json","parse","locale","_requestHeaders","split","signal","Moderation","1729206lrFsMW","4305480AxoMmQ","decode","get","sendRequest","832631LamvCy","ai.openAI.requestParameters","POST","_prepareRequestParameters","filter","Instruction:\n","_readStaticResponse","join","body","_readStreamableResponse","editor","OpenAITextAdapter","length","getReader","data: ","user","_cleanUpData","pluginName","content","https://api.openai.com/v1/chat/completions","replace","message","2316568OHbEdz","AI_ERROR_MODERATION","resolve","config","6gTeJFm","define","prepareMessages","_requestParameters","\nYou must keep the text formatting.\n\nContent:\n","ai.openAI.apiUrl","reject","AI_ERROR_CONTEXT_LENGTH","stringify","ai.openAI.requestHeaders","delta","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","text","abortController","stream","read"];return(Pr=function(){return e})()}function Cr(e,t){const r=Pr();return(Cr=function(e,t){return r[e-=349]})(e,t)}!function(e){const t=Cr,r=e();for(;;)try{if(540645===parseInt(t(415))/1+-parseInt(t(410))/2+-parseInt(t(373))/3*(-parseInt(t(395))/4)+parseInt(t(389))/5+parseInt(t(411))/6+-parseInt(t(397))/7+-parseInt(t(369))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pr);class Mr extends Ir{static get[Rr(364)](){return Rr(358)}constructor(e){const t=Rr;super(e),e[t(372)][t(374)](t(378),t(366)),e[t(372)][t(413)](t(416))||e[t(372)][t(374)](t(416),{model:t(402),max_tokens:2e3,temperature:1,top_p:1,stream:!0}),this[t(396)]=e[t(372)][t(413)](t(378)),this[t(406)]=e[t(372)][t(413)](t(382))||{},this[t(376)]=e[t(372)][t(413)](t(416))}async[Rr(414)]({query:e,context:t,onData:r,actionId:n}){const o=Rr,i=this[o(357)][o(405)],s=await this[o(375)](e,t,n),a=await this[o(400)](this[o(406)],n),c=await this[o(350)](this[o(376)],n),u={messages:s,...c},l={method:o(349),headers:a,body:JSON[o(381)](u),signal:this[o(386)][o(408)]},d=await fetch(this[o(396)],l);if(d.ok)return c[o(387)]?await this[o(356)](d,r):await this[o(353)](d,r),Promise[o(371)]();{const e=await d[o(385)]();return e[o(391)](o(401))?Promise[o(379)](new Ue(De(i,o(380)))):e[o(391)](o(409))?Promise[o(379)](new Ue(De(i,o(370)))):Promise[o(379)](new Error(e))}}async[Rr(375)](e,t,r){const n=Rr;let o,i;return t?(o=n(384),i=n(352)+e+n(377)+t):(o=n(398),i=e),[{role:n(390),content:o},{role:n(362),content:i}]}async[Rr(356)](e,t){const r=Rr,n=e[r(355)][r(360)](),o=new TextDecoder;let i="",s="",a="",c=!1;for(;!c;){const{done:e,value:u}=await n[r(388)](),l=i+o[r(412)](u);let d="";c=e;try{d=this[r(363)](l),i=""}catch(e){i=l;continue}s+=d,!c&&this[r(393)](s)||s&&(a+=s,s="",t(a))}return Promise[r(371)]()}async[Rr(353)](e,t){const r=Rr;return t((await e[r(403)]())[r(394)][0][r(368)][r(365)]),Promise[r(371)]()}[Rr(393)](e){const t=Rr,r=e[t(407)]("<")[t(359)]!==e[t(407)](">")[t(359)],n=e[t(359)]<30;return r&&n}[Rr(363)](e){const t=Rr;return e[t(407)](/\n(?![^{]*\})/g)[t(392)]((e=>e[t(367)](t(361),"")))[t(351)]((e=>e&&e[t(359)]>0&&t(399)!==e))[t(392)]((e=>{const r=t,{choices:n}=JSON[r(404)](e);if(n[0]&&n[0][r(383)]&&n[0][r(383)][r(365)])return n[0][r(383)][r(365)]}))[t(351)]((e=>e))[t(354)]("")}}const Tr=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler:()=>t,updateHttpClientConfig(e,r){t.updateHttpClientConfig(e,r)},httpHandlerConfigs:()=>t.httpHandlerConfigs()}};var Or,$r,Nr,Lr;!function(e){e.HEADER="header",e.QUERY="query"}(Or||(Or={})),function(e){e.HEADER="header",e.QUERY="query"}($r||($r={})),function(e){e.HTTP="http",e.HTTPS="https"}(Nr||(Nr={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(Lr||(Lr={}));var Br;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(Br||(Br={}));const Ur="__smithy_context";var Dr,Fr;!function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(Dr||(Dr={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(Fr||(Fr={}));class jr{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new jr({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return jr.clone(this)}}class Hr{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const Vr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},zr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!jr.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),Vr)}}),qr={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Wr="X-Amzn-Trace-Id",Gr={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Zr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!jr.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(Wr))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[Wr]=i),t({...r,request:n})})(e),Gr)}});const Kr=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Jr=e=>Kr.test(e)||e.startsWith("[")&&e.endsWith("]"),Qr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Yr=(e,t=!1)=>{if(!t)return Qr.test(e);const r=e.split(".");for(const e of r)if(!Yr(e))return!1;return!0},Xr={},en="endpoints";function tn(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${tn(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(tn).join(", ")})`:JSON.stringify(e,null,2)}class rn extends Error{constructor(e){super(e),this.name="EndpointError"}}const nn=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new rn(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new rn(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new rn(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),on={[Nr.HTTP]:80,[Nr.HTTPS]:443},sn={booleanEquals:(e,t)=>e===t,getAttr:nn,isSet:e=>null!=e,isValidHostLabel:Yr,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(Nr).includes(c))return null;const u=Jr(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${on[c]}`)||"string"==typeof e&&e.includes(`${n}:${on[c]}`)?`:${on[c]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},an=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(nn(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},cn=(e,t,r)=>{if("string"==typeof e)return an(e,r);if(e.fn)return un(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new rn(`'${t}': ${String(e)} is not a string, function or reference.`)},un=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:cn(e,"arg",r))),o=e.split(".");return o[0]in Xr&&null!=o[1]?Xr[o[0]][o[1]](...n):sn[e](...n)},ln=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new rn(`'${e}' is already defined in Reference Record.`);const n=un(t,r);return r.logger?.debug?.(`${en} evaluateCondition: ${tn(t)} = ${tn(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},dn=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=ln(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(`${en} assign: ${o.name} := ${tn(o.value)}`))}return{result:!0,referenceRecord:r}},gn=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=cn(e,"Header value entry",t);if("string"!=typeof n)throw new rn(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),hn=(e,t)=>{if(Array.isArray(e))return e.map((e=>hn(e,t)));switch(typeof e){case"string":return an(e,t);case"object":if(null===e)throw new rn(`Unexpected endpoint property: ${e}`);return fn(e,t);case"boolean":return e;default:throw new rn("Unexpected endpoint property type: "+typeof e)}},fn=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:hn(n,t)})),{}),pn=(e,t)=>{const r=cn(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new rn("Endpoint URL must be a string, got "+typeof r)},mn=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=dn(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:u}=n;return t.logger?.debug?.(`${en} Resolving endpoint from template: ${tn(n)}`),{...null!=u&&{headers:gn(u,s)},...null!=c&&{properties:fn(c,s)},url:pn(a,s)}},kn=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=dn(r,t);if(o)throw new rn(cn(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},bn=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=dn(r,t);if(o)return wn(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},wn=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=mn(r,t);if(e)return e}else if("error"===r.type)kn(r,t);else{if("tree"!==r.type)throw new rn(`Unknown endpoint rule: ${r}`);{const e=bn(r,t);if(e)return e}}throw new rn("Rules evaluation failed")},yn=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!yn(t))return!1;return!0}return!!Yr(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!Jr(e)))};let vn=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),_n="";const Sn={isVirtualHostableS3Bucket:yn,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=vn;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};Xr.aws=Sn;const An="user-agent",xn="x-amz-user-agent",En=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,In=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Rn=e=>(t,r)=>async n=>{const{request:o}=n;if(!jr.isInstance(o))return t(n);const{headers:i}=o,s=r?.userAgent?.map(Pn)||[],a=(await e.defaultUserAgentProvider()).map(Pn),c=e?.customUserAgent?.map(Pn)||[],u=(_n?[_n]:[]).concat([...a,...s,...c]).join(" "),l=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==e.runtime?(l&&(i[xn]=i[xn]?`${i[An]} ${l}`:l),i[An]=u):i[xn]=u,t({...n,request:o})},Pn=e=>{const t=e[0].split("/").map((e=>e.replace(En,"-"))).join("/"),r=e[1]?.replace(In,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},Cn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var Mn;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(Mn||(Mn={}));const Tn=e=>e[Ur]||(e[Ur]={}),On=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},$n=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),Nn=e=>$n(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const Ln=(e,t)=>(r,n)=>async o=>{const i=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,n,o.input)),s=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),a=Tn(n),c=[];for(const r of i){const o=s.get(r.schemeId);if(!o){c.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=o.identityProvider(await t.identityProviderConfigProvider(e));if(!i){c.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:u={},signingProperties:l={}}=r.propertiesExtractor?.(e,n)||{};r.identityProperties=Object.assign(r.identityProperties||{},u),r.signingProperties=Object.assign(r.signingProperties||{},l),a.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:o.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(c.join("\n"));return r(o)},Bn={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Un={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Dn={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Fn(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>r=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t,void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText)}throw e}})(e,r),Un),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),Dn)}}}const jn=e=>e=>{throw e},Hn=(e,t)=>{},Vn={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},zn=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async r=>{if(!jr.isInstance(r.request))return e(r);const n=Tn(t).selectedHttpAuthScheme;if(!n)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:i,signer:s}=n,a=await e({...r,request:await s.sign(r.request,i,o)}).catch((s.errorHandler||jn)(o));return(s.successHandler||Hn)(a.response,o),a}),Vn)}}),qn=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},Wn={},Gn=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);Wn[r]=e,Gn[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;Wn[r]=n,Gn[n]=r}for(let e=0;e<10;e++){Wn[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;Wn[t]=r,Gn[r]=t}Wn["+"]=62,Gn[62]="+",Wn["/"]=63,Gn[63]="/";const Zn=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in Wn))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=Wn[e[n]]<<6*(i-n),o+=6}else r>>=6;const i=t/4*3;r>>=o%8;const s=Math.floor(o/8);for(let e=0;e<s;e++){const t=8*(s-e-1);n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)},Kn=e=>(new TextEncoder).encode(e);function Jn(e){let t;t="string"==typeof e?Kn(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let o=e,i=Math.min(e+3,t.length);o<i;o++)r|=t[o]<<8*(i-o-1),n+=8;const i=Math.ceil(n/6);r<<=6*i-n;for(let e=1;e<=i;e++){const t=6*(i-e);o+=Gn[(r&63<<t)>>t]}o+="==".slice(0,4-i)}return o}const Qn=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};class Yn extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?Yn.mutate(Zn(e)):Yn.mutate(Kn(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,Yn.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?Jn(e):Qn(e)}(this,e)}}const Xn={},eo={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),Xn[e]=t,eo[t]=e}function to(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in eo))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=eo[n]}return t}function ro(e){let t="";for(let r=0;r<e.byteLength;r++)t+=Xn[e[r]];return t}"function"==typeof ReadableStream&&ReadableStream;const no=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Yn.mutate(e);if(!e)return Yn.mutate(new Uint8Array);const r=t.streamCollector(e);return Yn.mutate(await r)};function oo(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function io(e,t){return new so(e,t)}class so{constructor(e,t){this.input=e,this.context=t,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:e,protocol:t="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(const e of this.resolvePathStack)e(this.path);return new jr({protocol:t,hostname:this.hostname||e,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e})),this}p(e,t,r,n){return this.resolvePathStack.push((o=>{this.path=((e,t,r,n,o,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(o,i?t.split("/").map((e=>oo(e))).join("/"):oo(t))}return e})(o,this.input,e,t,r,n)})),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}class ao{constructor(e){this.authSchemes=new Map;for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}const co=(uo=3e5,e=>lo(e)&&e.expiration.getTime()-Date.now()<uo);var uo;const lo=e=>void 0!==e.expiration,go="content-length";const ho={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},fo=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(jr.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(go))try{const t=r(e);n.headers={...n.headers,[go]:String(t)}}catch(e){}}return e({...t,request:n})}),ho)}}),po=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,mo=/(\d+\.){3}\d+/,ko=/\.\./,bo=e=>po.test(e)&&!mo.test(e)&&!ko.test(e),wo=e=>{const[t,r,n,,,o]=e.split(":"),i="arn"===t&&e.split(":").length>=6,s=Boolean(i&&r&&n&&o);if(i&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s},yo=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n},vo=async e=>{};const _o=e=>{if("string"==typeof e)return _o(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},So=e=>"object"==typeof e?"url"in e?_o(e.url):e:_o(e),Ao=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await yo(i.name,t,r)();break;case"operationContextParams":n[t]=i.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),wo(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!bo(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},xo=({config:e,instructions:t})=>(r,n)=>async o=>{e.endpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const i=await(async(e,t,r,n)=>{if(!r.endpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await vo(r.serviceId),e&&(r.endpoint=()=>Promise.resolve(So(e)))}const o=await Ao(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=Tn(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...o})},Eo={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Dn.name},Io=(e,t)=>({applyToStack:r=>{r.addRelativeTo(xo({config:e,instructions:t}),Eo)}});var Ro;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(Ro||(Ro={}));const Po=Ro.STANDARD,Co=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Mo=["TimeoutError","RequestTimeout","RequestTimeoutException"],To=[500,502,503,504],Oo=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],$o=e=>429===e.$metadata?.httpStatusCode||Co.includes(e.name)||1==e.$retryable?.throttling,No=(e,t=0)=>(e=>e.$metadata?.clockSkewCorrected)(e)||Mo.includes(e.name)||Oo.includes(e?.code||"")||To.includes(e.$metadata?.httpStatusCode||0)||void 0!==e.cause&&t<=10&&No(e.cause,t+1);class Lo{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>Lo.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),$o(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}Lo.setTimeoutFn=setTimeout;const Bo=100,Uo=2e4,Do="amz-sdk-invocation-id",Fo="amz-sdk-request",jo=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(Uo,e),getRetryCost:()=>r});class Ho{constructor(e){this.maxAttempts=e,this.mode=Ro.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=Bo;return{computeNextBackoffDelay:t=>Math.floor(Math.min(Uo,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return jo({retryDelay:Bo,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:Bo);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,jo({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class Vo{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Ro.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Lo,this.standardRetryStrategy=new Ho(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const zo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let qo;const Wo=new Uint8Array(16);function Go(){if(!qo&&(qo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qo(Wo)}const Zo=[];for(let e=0;e<256;++e)Zo.push((e+256).toString(16).slice(1));function Ko(e,t=0){return Zo[e[t+0]]+Zo[e[t+1]]+Zo[e[t+2]]+Zo[e[t+3]]+"-"+Zo[e[t+4]]+Zo[e[t+5]]+"-"+Zo[e[t+6]]+Zo[e[t+7]]+"-"+Zo[e[t+8]]+Zo[e[t+9]]+"-"+Zo[e[t+10]]+Zo[e[t+11]]+Zo[e[t+12]]+Zo[e[t+13]]+Zo[e[t+14]]+Zo[e[t+15]]}const Jo=function(e,t,r){if(zo.randomUUID&&!t&&!e)return zo.randomUUID();const n=(e=e||{}).random||(e.rng||Go)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return Ko(n)},Qo=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);const Yo=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},Xo=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,ei=()=>{let e=[],t=[],r=!1;const n=new Set,o=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},s=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of Yo(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of Yo(t.name,t.aliases))s[e]=t;o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${Xo(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(c=n,c.sort(((e,t)=>ti[t.step]-ti[e.step]||ri[t.priority||"normal"]-ri[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},a={add:(t,r={})=>{const{name:o,override:i,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},c=Yo(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${Xo(o,s)}'`);for(const t of c){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${Xo(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Xo(o,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of c)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:o,override:i,aliases:s}=r,a={middleware:e,...r},c=Yo(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${Xo(o,s)}'`);for(const e of c){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${Xo(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Xo(o,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of c)n.add(e)}t.push(a)},clone:()=>o(ei()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let o=!1;const i=e=>{const t=Yo(e.name,e.aliases);if(t.includes(r)){o=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r):(r=>{let o=!1;const i=e=>{if(e.middleware===r){o=!0;for(const t of Yo(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r),removeByTag:r=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=Yo(i,s);for(const t of e)n.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=o(ei());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:o,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return Xo(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},ti={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ri={high:3,normal:2,low:1};class ni{constructor(e){this.config=e,this.middlewareStack=ei()}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r;let i;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class oi{constructor(){this.middlewareStack=ei()}static classBuilder(){return new ii}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:l}){for(const o of n.bind(this)(l,e,t,r))this.middlewareStack.use(o);const d=e.concat(this.middlewareStack),{logger:g}=t,h={logger:g,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[Ur]:{commandInstance:this,...c},...u},{requestHandler:f}=t;return d.resolve((e=>f.handle(e.request,r||{})),h)}}class ii{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends oi{static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=t??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const si="***SensitiveInformation***",ai=(Math.ceil(2**127*(2-2**-23)),e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}}),ci=e=>ui(e,32),ui=(e,t)=>{const r=ai(e);if(void 0!==r&&li(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},li=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},di=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return hi.warn(gi(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},gi=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),hi={warn:console.warn};class fi extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,fi.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}}const pi=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},mi=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),ki=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},bi=e=>{const t=[];for(const r in Lr){const n=Lr[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},wi=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},yi=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy:()=>t}},vi=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},_i=e=>({...bi(e),...yi(e)}),Si=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};Si.from=e=>e&&"object"==typeof e&&(e instanceof Si||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?Si(String(e)):Si(JSON.stringify(e)),Si.fromObject=Si.from;class Ai{trace(){}debug(){}info(){}warn(){}error(){}}function xi(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,Ii(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?Ri(n,null,i,e):n[e]=i[e];return n}const Ei=(e,t)=>{const r={};for(const n in t)Ri(r,e,t,n);return r},Ii=(e,t,r)=>xi(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),Ri=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=Pi,s=Ci,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},Pi=e=>null!=e,Ci=e=>e,Mi=e=>e?.body instanceof ReadableStream,Ti=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,Oi=e=>{const t={error:e,errorType:$i(e)},r=Bi(e.$response);return r&&(t.retryAfterHint=r),t},$i=e=>$o(e)?"THROTTLING":No(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!No(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",Ni={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Li=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!Ti(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),s=new Error,a=0,c=0;const{request:u}=n,l=jr.isInstance(u);for(l&&(u.headers[Do]=Jo());;)try{l&&(u.headers[Fo]=`attempt=${a+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const n=Oi(t);if(s=Qo(t),l&&Mi(u))throw(r.logger instanceof Ai?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),s;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw s.$metadata||(s.$metadata={}),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,s}a=e.getRetryCount();const i=e.getRetryDelay();c+=i,await new Promise((e=>setTimeout(e,i)))}}})(e),Ni)}}),Bi=e=>{if(!Hr.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},Ui=e=>encodeURIComponent(e).replace(/[!'()*]/g,Di),Di=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,Fi=e=>"string"==typeof e?Kn(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),ji="X-Amz-Date",Hi="X-Amz-Signature",Vi="X-Amz-Security-Token",zi="authorization",qi=ji.toLowerCase(),Wi=[zi,qi,"date"],Gi=Hi.toLowerCase(),Zi="x-amz-content-sha256",Ki=Vi.toLowerCase(),Ji={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qi=/^proxy-/,Yi=/^sec-/,Xi="AWS4-HMAC-SHA256",es="AWS4-HMAC-SHA256-PAYLOAD",ts="aws4_request",rs={},ns=[],os=(e,t,r)=>`${e}/${t}/${r}/${ts}`,is=(e,t,r)=>{const n=new e(t);return n.update(Fi(r)),n.digest()},ss=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in Ji||t?.has(i)||Qi.test(i)||Yi.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},as=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===Zi)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(Fi(t)),ro(await e.digest())}var n;return"UNSIGNED-PAYLOAD"};class cs{format(e){const t=[];for(const r of Object.keys(e)){const n=Kn(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=Kn(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(ds.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!ls.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(to(e.value.replace(/\-/g,"")),1),l}}}var us;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(us||(us={}));const ls=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ds{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&gs(t),new ds(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&gs(e),parseInt(ro(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function gs(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}const hs=e=>{e=jr.clone(e);for(const t of Object.keys(e.headers))Wi.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},fs=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class ps{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerFormatter=new cs,this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=On(r),this.credentialProvider=On(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,hoistableHeaders:a,signingRegion:c,signingService:u}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);const d=c??await this.regionProvider(),{longDate:g,shortDate:h}=ms(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const f=os(h,d,u??this.service),p=((e,t={})=>{const{headers:r,query:n={}}=jr.clone(e);for(const e of Object.keys(r)){const o=e.toLowerCase();("x-amz-"===o.slice(0,6)&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))&&(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(hs(e),{unhoistableHeaders:i,hoistableHeaders:a});l.sessionToken&&(p.query[Vi]=l.sessionToken),p.query["X-Amz-Algorithm"]=Xi,p.query["X-Amz-Credential"]=`${l.accessKeyId}/${f}`,p.query[ji]=g,p.query["X-Amz-Expires"]=n.toString(10);const m=ss(p,o,s);return p.query["X-Amz-SignedHeaders"]=ks(m),p.query[Hi]=await this.getSignature(g,f,this.getSigningKey(l,d,h,u),this.createCanonicalRequest(p,m,await as(e,this.sha256))),p}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:c}=ms(r),u=os(a,s,i??this.service),l=await as({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const g=ro(await d.digest()),h=[es,c,u,n,g,l].join("\n");return this.signString(h,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=ms(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(Fi(e)),ro(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),c=hs(e),{longDate:u,shortDate:l}=ms(t),d=os(l,a,i??this.service);c.headers[qi]=u,s.sessionToken&&(c.headers[Ki]=s.sessionToken);const g=await as(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(Zi,c.headers)&&this.applyChecksum&&(c.headers[Zi]=g);const h=ss(c,n,r),f=await this.getSignature(u,d,this.getSigningKey(s,a,l,i),this.createCanonicalRequest(c,h,g));return c.headers[zi]=`${Xi} Credential=${s.accessKeyId}/${d}, SignedHeaders=${ks(h)}, Signature=${f}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e)){if(n.toLowerCase()===Gi)continue;const o=Ui(n);t.push(o);const i=e[n];"string"==typeof i?r[o]=`${o}=${Ui(i)}`:Array.isArray(i)&&(r[o]=i.slice(0).reduce(((e,t)=>e.concat([`${o}=${Ui(t)}`])),[]).sort().join("&"))}return t.sort().map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(Fi(r));const o=await n.digest();return`${Xi}\n${e}\n${t}\n${ro(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return Ui(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(Fi(o)),ro(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${ro(await is(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in rs)return rs[i];for(ns.push(i);ns.length>50;)delete rs[ns.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,ts])s=await is(e,s,t);return rs[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const ms=e=>{const t=(r=e,fs(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},ks=e=>Object.keys(e).sort().join(";"),bs=e=>{let t;e.credentials&&(t=((e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let o,i,s,a=!1;const c=async e=>{i||(i=n(e));try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return void 0===t?async e=>(s&&!e?.forceRefresh||(o=await c(e)),o):async e=>(s&&!e?.forceRefresh||(o=await c(e)),a?o:r(o)?t(o)?(await c(e),o):o:(a=!0,o))})(e.credentials,co,lo)),t||(t=e.credentialDefaultProvider?qn(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?qn(e.signer):e.regionInfoProvider?()=>qn(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||ps)(c)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await qn(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||ps)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}},ws=async(e,t,r)=>({operation:Tn(t).operation,region:await On(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const ys=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t},vs={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},_s="3.621.0";var Ss="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function As(e){return e instanceof Uint8Array?e:"string"==typeof e?Ss(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function xs(e){return"string"==typeof e?0===e.length:0===e.byteLength}var Es={name:"SHA-256"},Is={name:"HMAC",hash:Es},Rs=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const Ps={};function Cs(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ps}var Ms=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!xs(e)){var t=As(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return Cs().crypto.subtle.sign(Is,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):xs(this.toHash)?Promise.resolve(Rs):Promise.resolve().then((function(){return Cs().crypto.subtle.digest(Es,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){Cs().crypto.subtle.importKey("raw",As(e.secret),Is,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();function Ts(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function Os(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function $s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Ns=64,Ls=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Bs=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Us=Math.pow(2,53)-1,Ds=function(){function e(){this.state=Int32Array.from(Bs),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>Us)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===Ns&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%Ns>=56){for(var n=this.bufferLength;n<Ns;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(n=this.bufferLength;n<56;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(32);for(n=0;n<8;n++)o[4*n]=this.state[n]>>>24&255,o[4*n+1]=this.state[n]>>>16&255,o[4*n+2]=this.state[n]>>>8&255,o[4*n+3]=this.state[n]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],c=t[6],u=t[7],l=0;l<Ns;l++){if(l<16)this.temp[l]=(255&e[4*l])<<24|(255&e[4*l+1])<<16|(255&e[4*l+2])<<8|255&e[4*l+3];else{var d=this.temp[l-2],g=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[l-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(g+this.temp[l-7]|0)+(h+this.temp[l-16]|0)}var f=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&a^~s&c)|0)+(u+(Ls[l]+this.temp[l]|0)|0)|0,p=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;u=c,c=a,a=s,s=i+f|0,i=o,o=n,n=r,r=f+p|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=i,t[4]+=s,t[5]+=a,t[6]+=c,t[7]+=u},e}(),Fs=function(){function e(e){this.secret=e,this.hash=new Ds,this.reset()}return e.prototype.update=function(e){if(!xs(e)&&!this.error)try{this.hash.update(As(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Ts(this,void 0,void 0,(function(){return Os(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new Ds,this.secret){this.outer=new Ds;var e=function(e){var t=As(e);if(t.byteLength>Ns){var r=new Ds;r.update(t),t=r.digest()}var n=new Uint8Array(Ns);return n.set(t),n}(this.secret),t=new Uint8Array(Ns);t.set(e);for(var r=0;r<Ns;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();var js=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function Hs(e){return e&&js.every((function(t){return"function"==typeof e[t]}))}var Vs=function(){function e(e){!function(e){return!(!function(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}(e)||"object"!=typeof e.crypto.subtle)&&Hs(e.crypto.subtle)}(Cs())?this.hash=new Fs(e):this.hash=new Ms(e)}return e.prototype.update=function(e,t){this.hash.update(As(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),zs=r(369),qs=r.n(zs);const Ws=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?qs().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n};!function(){function e(){this.crc32=new Zs}e.prototype.update=function(e){xs(e)||this.crc32.update(As(e))},e.prototype.digest=function(){return Ts(this,void 0,void 0,(function(){return Os(this,(function(e){return[2,(t=this.crc32.digest(),new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))];var t}))}))},e.prototype.reset=function(){this.crc32=new Zs}}();var Gs,Zs=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=$s(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.checksum=this.checksum>>>8^Ks[255&(this.checksum^i)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),Ks=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);class Js{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Qs(t),new Js(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Qs(e),parseInt(ro(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Qs(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class Ys{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(Js.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!ca.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(to(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:Xs,value:!0};break;case 1:t[o]={type:Xs,value:!1};break;case 2:t[o]={type:ea,value:e.getInt8(r++)};break;case 3:t[o]={type:ta,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:ra,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:na,value:new Js(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:oa,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:ia,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:sa,value:new Date(new Js(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:aa,value:`${ro(s.subarray(0,4))}-${ro(s.subarray(4,6))}-${ro(s.subarray(6,8))}-${ro(s.subarray(8,10))}-${ro(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Gs||(Gs={}));const Xs="boolean",ea="byte",ta="short",ra="integer",na="long",oa="binary",ia="string",sa="timestamp",aa="uuid",ca=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ua{constructor(e,t){this.headerMarshaller=new Ys(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,o=new Uint8Array(n),i=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new Zs;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),i.setUint32(n-4,s.update(o.subarray(8,n-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),c=(new Zs).update(new Uint8Array(r,t,8));if(s!==c.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+8,e-12)),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,o-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class la{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class da{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class ga{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class ha{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}function fa(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,o={[n]:r},i=await e(o);if(i.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw i[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class pa{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new ua(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let u=0;for(;u<c;){if(!n){const t=c-u;o||(o=new Uint8Array(4));const n=Math.min(4-r,t);if(o.set(e.slice(u,u+n),r),r+=n,u+=n,r<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const s=Math.min(t-r,c-u);n.set(e.slice(u,u+s),r),r+=s,u+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new ga({messageStream:new la({inputStream:r,decoder:this.eventStreamCodec}),deserializer:fa(t,this.utfEncoder)})}serialize(e,t){return new da({messageStream:new ha({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class ma{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new pa({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=ka(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const ka=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,ba=e=>new ma(e);function wa(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}const ya={supported:void 0};class va{static create(e){return"function"==typeof e?.handle?e:new va(e)}constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===ya.supported&&(ya.supported=Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout,n=!0===this.config.keepAlive,o=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let i=e.path;const s=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Ui(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${Ui(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${Ui(n)}`),t.push(e)}}return t.join("&")}(e.query||{});s&&(i+=`?${s}`),e.fragment&&(i+=`#${e.fragment}`);let a="";if(null!=e.username||null!=e.password){a=`${e.username??""}:${e.password??""}@`}const{port:c,method:u}=e,l=`${e.protocol}//${a}${e.hostname}${c?`:${c}`:""}${i}`,d="GET"===u||"HEAD"===u?void 0:e.body,g={body:d,headers:new Headers(e.headers),method:u,credentials:o};this.config?.cache&&(g.cache=this.config.cache),d&&(g.duplex="half"),"undefined"!=typeof AbortController&&(g.signal=t),ya.supported&&(g.keepalive=n),"function"==typeof this.config.requestInit&&Object.assign(g,this.config.requestInit(e));let h=()=>{};const f=new Request(l,g),p=[fetch(f).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new Hr({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new Hr({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),wa(r)];return t&&p.push(new Promise(((e,r)=>{const n=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),h=()=>e.removeEventListener("abort",n)}else t.onabort=n}))),Promise.race(p).finally(h)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r=>(r[e]=t,r)))}httpHandlerConfigs(){return this.config??{}}}const _a=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=Zn(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:e,value:i}=await r.read();i&&(t.push(i),o+=i.length),n=e}const i=new Uint8Array(o);let s=0;for(const e of t)i.set(e,s),s+=e.length;return i}(e);const Sa="function"==typeof TextEncoder?new TextEncoder:null,Aa=e=>{if("string"==typeof e){if(Sa)return Sa.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},xa=e=>new Date(Date.now()+e),Ea=e=>Hr.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ia=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(xa(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},Ra=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class Pa{async sign(e,t,r){if(!jr.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:n,signer:o,signingRegion:i,signingName:s}=await(async e=>{const t=Ra("context",e.context),r=Ra("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],o=Ra("signer",r.signer),i=await o(n),s=e?.signingRegion,a=e?.signingName;return{config:r,signer:i,signingRegion:s,signingName:a}})(r);return await o.sign(e,{signingDate:xa(n.systemClockOffset),signingRegion:i,signingService:s})}errorHandler(e){return t=>{const r=t.ServerTime??Ea(t.$response);if(r){const n=Ra("config",e.config),o=n.systemClockOffset;n.systemClockOffset=Ia(r,n.systemClockOffset);n.systemClockOffset!==o&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=Ea(e);if(r){const e=Ra("config",t.config);e.systemClockOffset=Ia(r,e.systemClockOffset)}}}const Ca="required",Ma="fn",Ta="argv",Oa="ref",$a=!0,Na="isSet",La="booleanEquals",Ba="error",Ua="endpoint",Da="tree",Fa="PartitionResult",ja={[Ca]:!1,type:"String"},Ha={[Ca]:!0,default:!1,type:"Boolean"},Va={[Oa]:"Endpoint"},za={[Ma]:La,[Ta]:[{[Oa]:"UseFIPS"},!0]},qa={[Ma]:La,[Ta]:[{[Oa]:"UseDualStack"},!0]},Wa={},Ga={[Ma]:"getAttr",[Ta]:[{[Oa]:Fa},"supportsFIPS"]},Za={[Ma]:La,[Ta]:[!0,{[Ma]:"getAttr",[Ta]:[{[Oa]:Fa},"supportsDualStack"]}]},Ka=[za],Ja=[qa],Qa=[{[Oa]:"Region"}],Ya={version:"1.0",parameters:{Region:ja,UseDualStack:Ha,UseFIPS:Ha,Endpoint:ja},rules:[{conditions:[{[Ma]:Na,[Ta]:[Va]}],rules:[{conditions:Ka,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ba},{rules:[{conditions:Ja,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ba},{endpoint:{url:Va,properties:Wa,headers:Wa},type:Ua}],type:Da}],type:Da},{rules:[{conditions:[{[Ma]:Na,[Ta]:Qa}],rules:[{conditions:[{[Ma]:"aws.partition",[Ta]:Qa,assign:Fa}],rules:[{conditions:[za,qa],rules:[{conditions:[{[Ma]:La,[Ta]:[$a,Ga]},Za],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Wa,headers:Wa},type:Ua}],type:Da}],type:Da},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ba}],type:Da},{conditions:Ka,rules:[{conditions:[{[Ma]:La,[Ta]:[Ga,$a]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Wa,headers:Wa},type:Ua}],type:Da}],type:Da},{error:"FIPS is enabled but this partition does not support FIPS",type:Ba}],type:Da},{conditions:Ja,rules:[{conditions:[Za],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Wa,headers:Wa},type:Ua}],type:Da}],type:Da},{error:"DualStack is enabled but this partition does not support DualStack",type:Ba}],type:Da},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:Wa,headers:Wa},type:Ua}],type:Da}],type:Da}],type:Da},{error:"Invalid Configuration: Missing Region",type:Ba}],type:Da}]},Xa=(e,t={})=>((e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${en} Initial EndpointParams: ${tn(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new rn(`Missing required parameter: '${e}'`);const c=wn(i,{endpointParams:r,logger:n,referenceRecord:{}});return t.logger?.debug?.(`${en} Resolved endpoint: ${tn(c)}`),c})(Ya,{endpointParams:e,logger:t.logger});Xr.aws=Sn;Error;const ec=["in-region","cross-region","mobile","standard","legacy"],tc=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?qs().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},rc=e=>{const t=(({defaultsMode:e}={})=>((e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)})((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(tc()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${ec.join(", ")}, got ${t}`)}})))(e),r=()=>t().then(ki),n=(e=>({apiVersion:"2023-09-30",base64Decoder:e?.base64Decoder??Zn,base64Encoder:e?.base64Encoder??Jn,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Xa,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ys,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Pa}],logger:e?.logger??new Ai,serviceId:e?.serviceId??"Bedrock Runtime",urlParser:e?.urlParser??_o,utf8Decoder:e?.utf8Decoder??Kn,utf8Encoder:e?.utf8Encoder??Qn}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Aa,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Ws({serviceId:n.serviceId,clientVersion:_s}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??ba,maxAttempts:e?.maxAttempts??3,region:e?.region??(o="Region is missing",()=>Promise.reject(o)),requestHandler:va.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Po),sha256:e?.sha256??Vs,streamCollector:e?.streamCollector??_a,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(false)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(false))};var o},nc=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}},oc=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex((t=>t.schemeId===e.schemeId));-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}},ic=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});class sc extends ni{constructor(...[e]){const t=(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"bedrock"}))(rc(e||{})),r=(e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return Nn(t);const e=await t();return Nn(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!$n(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}})(t),n=(e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>So(await On(r)()):void 0,o=!!r,i={...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:On(e.useDualstackEndpoint??!1),useFipsEndpoint:On(e.useFipsEndpoint??!1)};let s;return i.serviceConfiguredEndpoint=async()=>(e.serviceId&&!s&&(s=vo(e.serviceId)),s),i})(r);var o;const i=(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((e=>{const{retryStrategy:t}=e,r=On(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await On(e.retryMode)()===Ro.ADAPTIVE?new Vo(r):new Ho(r))}})((o=n,{...o,customUserAgent:"string"==typeof o.customUserAgent?[[o.customUserAgent]]:o.customUserAgent})));const s=((e,t)=>{const r={...nc(e),..._i(e),...Tr(e),...oc(e)};return t.forEach((e=>e.configure(r))),{...e,...(i=r,{region:i.region()}),...(o=r,{...wi(o),...vi(o)}),...(n=r,{httpHandler:n.httpHandler()}),...ic(r)};var n,o,i})({...bs(i)},e?.extensions||[]);super(s),this.config=s,this.middlewareStack.use(zr(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:g,...h}=n.output;return s?.info?.({clientName:o,commandName:i,input:l(r.input),output:d(h),metadata:g}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:c(r.input),error:e,metadata:e.$metadata}),e}}),qr)}})),this.middlewareStack.use(Zr(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.add(Rn(e),Cn)}}))(this.config)),this.middlewareStack.use(Li(this.config)),this.middlewareStack.use(fo(this.config)),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Ln(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),Bn)}}))(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use(zn(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return ws}getIdentityProviderConfigProvider(){return async e=>new ao({"aws.auth#sigv4":e.credentials})}}class ac extends fi{constructor(e){super(e),Object.setPrototypeOf(this,ac.prototype)}}class cc extends ac{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,cc.prototype)}}var uc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(uc||(uc={}));class lc extends ac{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,lc.prototype)}}class dc extends ac{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,dc.prototype)}}class gc extends ac{constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),this.name="ServiceQuotaExceededException",this.$fault="client",Object.setPrototypeOf(this,gc.prototype)}}class hc extends ac{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,hc.prototype)}}class fc extends ac{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,fc.prototype)}}var pc;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(pc||(pc={}));var mc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(mc||(mc={}));var kc,bc;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(kc||(kc={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):t._(e.$unknown[0],e.$unknown[1])}(bc||(bc={}));var wc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):void 0!==e.toolUse?t.toolUse(e.toolUse):void 0!==e.toolResult?t.toolResult(e.toolResult):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(wc||(wc={}));var yc,vc,_c,Sc,Ac;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(yc||(yc={})),function(e){e.visit=(e,t)=>void 0!==e.auto?t.auto(e.auto):void 0!==e.any?t.any(e.any):void 0!==e.tool?t.tool(e.tool):t._(e.$unknown[0],e.$unknown[1])}(vc||(vc={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):t._(e.$unknown[0],e.$unknown[1])}(_c||(_c={})),function(e){e.visit=(e,t)=>void 0!==e.toolSpec?t.toolSpec(e.toolSpec):t._(e.$unknown[0],e.$unknown[1])}(Sc||(Sc={})),function(e){e.visit=(e,t)=>void 0!==e.message?t.message(e.message):t._(e.$unknown[0],e.$unknown[1])}(Ac||(Ac={}));class xc extends ac{constructor(e){super({name:"ModelErrorException",$fault:"client",...e}),this.name="ModelErrorException",this.$fault="client",Object.setPrototypeOf(this,xc.prototype),this.originalStatusCode=e.originalStatusCode,this.resourceName=e.resourceName}}class Ec extends ac{constructor(e){super({name:"ModelNotReadyException",$fault:"client",...e}),this.name="ModelNotReadyException",this.$fault="client",Object.setPrototypeOf(this,Ec.prototype)}}class Ic extends ac{constructor(e){super({name:"ModelTimeoutException",$fault:"client",...e}),this.name="ModelTimeoutException",this.$fault="client",Object.setPrototypeOf(this,Ic.prototype)}}class Rc extends ac{constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),this.name="ServiceUnavailableException",this.$fault="server",Object.setPrototypeOf(this,Rc.prototype)}}var Pc,Cc,Mc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(Pc||(Pc={})),function(e){e.visit=(e,t)=>void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(Cc||(Cc={}));class Tc extends ac{constructor(e){super({name:"ModelStreamErrorException",$fault:"client",...e}),this.name="ModelStreamErrorException",this.$fault="client",Object.setPrototypeOf(this,Tc.prototype),this.originalStatusCode=e.originalStatusCode,this.originalMessage=e.originalMessage}}!function(e){e.visit=(e,t)=>void 0!==e.messageStart?t.messageStart(e.messageStart):void 0!==e.contentBlockStart?t.contentBlockStart(e.contentBlockStart):void 0!==e.contentBlockDelta?t.contentBlockDelta(e.contentBlockDelta):void 0!==e.contentBlockStop?t.contentBlockStop(e.contentBlockStop):void 0!==e.messageStop?t.messageStop(e.messageStop):void 0!==e.metadata?t.metadata(e.metadata):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Mc||(Mc={}));var Oc;!function(e){e.visit=(e,t)=>void 0!==e.chunk?t.chunk(e.chunk):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.modelTimeoutException?t.modelTimeoutException(e.modelTimeoutException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Oc||(Oc={}));const $c=e=>({...e,...e.body&&{body:si}}),Nc=e=>({...e,...e.body&&{body:si}}),Lc=e=>({...e,...e.body&&{body:si}}),Bc=e=>({...e,...e.body&&{body:"STREAMING_CONTENT"}}),Uc=(e,t)=>((e,t)=>no(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),Dc=async(e,t)=>{const r=await Uc(e,t);return r.message=r.message??r.Message,r},Fc=async(e,t)=>{const r=io(e,t),n=xi({},fu,{[ku]:e[mu]||"application/octet-stream",[pu]:e[pu],[xu]:e[yu],[Su]:e[bu],[Au]:e[wu]});let o;return r.bp("/model/{modelId}/invoke"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},jc=async(e,t)=>{const r=io(e,t),n=xi({},fu,{[ku]:e[mu]||"application/octet-stream",[vu]:e[pu],[xu]:e[yu],[Su]:e[bu],[Au]:e[wu]});let o;return r.bp("/model/{modelId}/invoke-with-response-stream"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},Hc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return zc(e,t);const r=xi({$metadata:hu(e),[mu]:[,e.headers[ku]]}),n=await no(e.body,t);return r.body=n,r},Vc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return zc(e,t);const r=xi({$metadata:hu(e),[mu]:[,e.headers[_u]]}),n=e.body;return r.body=ou(n,t),r},zc=async(e,t)=>{const r={...e,body:await Dc(e.body,t)},n=((e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,i="x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()===i.toLowerCase())));var o,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0})(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await Gc(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await Zc(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await Xc(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await eu(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await ru(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await nu(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await Kc(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await Jc(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await Yc(r,t);case"ServiceUnavailableException":case"com.amazonaws.bedrockruntime#ServiceUnavailableException":throw await tu(r,t);case"ModelStreamErrorException":case"com.amazonaws.bedrockruntime#ModelStreamErrorException":throw await Qc(r,t);default:const o=r.body;return qc({output:e,parsedBody:o,errorCode:n})}},qc=(Wc=ac,({output:e,parsedBody:t,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=mi(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw pi(s,t)})({output:e,parsedBody:t,exceptionCtor:Wc,errorCode:r})});var Wc;const Gc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new cc({$metadata:hu(e),...r});return pi(i,e.body)},Zc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new lc({$metadata:hu(e),...r});return pi(i,e.body)},Kc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di,originalStatusCode:ci,resourceName:di});Object.assign(r,o);const i=new xc({$metadata:hu(e),...r});return pi(i,e.body)},Jc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new Ec({$metadata:hu(e),...r});return pi(i,e.body)},Qc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di,originalMessage:di,originalStatusCode:ci});Object.assign(r,o);const i=new Tc({$metadata:hu(e),...r});return pi(i,e.body)},Yc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new Ic({$metadata:hu(e),...r});return pi(i,e.body)},Xc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new dc({$metadata:hu(e),...r});return pi(i,e.body)},eu=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new gc({$metadata:hu(e),...r});return pi(i,e.body)},tu=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new Rc({$metadata:hu(e),...r});return pi(i,e.body)},ru=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new hc({$metadata:hu(e),...r});return pi(i,e.body)},nu=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new fc({$metadata:hu(e),...r});return pi(i,e.body)},ou=(e,t)=>t.eventStreamMarshaller.deserialize(e,(async r=>null!=r.chunk?{chunk:await cu(r.chunk,t)}:null!=r.internalServerException?{internalServerException:await iu(r.internalServerException,t)}:null!=r.modelStreamErrorException?{modelStreamErrorException:await su(r.modelStreamErrorException,t)}:null!=r.validationException?{validationException:await du(r.validationException,t)}:null!=r.throttlingException?{throttlingException:await lu(r.throttlingException,t)}:null!=r.modelTimeoutException?{modelTimeoutException:await au(r.modelTimeoutException,t)}:null!=r.serviceUnavailableException?{serviceUnavailableException:await uu(r.serviceUnavailableException,t)}:{$unknown:e})),iu=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return Zc(r,t)},su=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return Qc(r,t)},au=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return Yc(r,t)},cu=async(e,t)=>{const r={},n=await Uc(e.body,t);return Object.assign(r,gu(n,t)),r},uu=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return tu(r,t)},lu=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return ru(r,t)},du=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return nu(r,t)},gu=(e,t)=>Ei(e,{bytes:t.base64Decoder}),hu=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),fu=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),pu="accept",mu="contentType",ku="content-type",bu="guardrailIdentifier",wu="guardrailVersion",yu="trace",vu="x-amzn-bedrock-accept",_u="x-amzn-bedrock-content-type",Su="x-amzn-bedrock-guardrailidentifier",Au="x-amzn-bedrock-guardrailversion",xu="x-amzn-bedrock-trace";class Eu extends(oi.classBuilder().ep({...vs}).m((function(e,t,r,n){return[Fn(r,this.serialize,this.deserialize),Io(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModelWithResponseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","InvokeModelWithResponseStreamCommand").f(Lc,Bc).ser(jc).de(Vc).build()){}class Iu extends(oi.classBuilder().ep({...vs}).m((function(e,t,r,n){return[Fn(r,this.serialize,this.deserialize),Io(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModel",{}).n("BedrockRuntimeClient","InvokeModelCommand").f($c,Nc).ser(Fc).de(Hc).build()){}const Ru=Pu;function Pu(e,t){const r=Cu();return(Pu=function(e,t){return r[e-=102]})(e,t)}function Cu(){const e=["body","meta.llama","chunk","AI_ERROR_UNSUPPORTED_MODEL","_processAWSRequest","6kEJyRI","application/json","getModelFamily","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","\nYou must keep the text formatting.\n\nContent:\n","utf8","_readStreamableResponse","9695VDYjgP","pluginName","parse","POST","split","from","bytes","3529827cSBCYp","1749096nfKlDJ","read","define","map","Instruction:\n","187713qHffxM","_apiUrl","preparePrompt","resolve","generation","_bedrockClientConfig","_requestHeaders","length","abortController","generations","anthropic.claude-v2","6357005diivmi","utf-8","stringify","_prepareRequestParameters","<<SYS>>\n","signal","\n\nAssistant:","get","ai.aws.bedrockClientConfig","completions","_readStaticResponse","7685546ELHboX","config","anthropic.claude","31eXprSm","toString","\n<</SYS>>\n[INST]\n","310KCgfvH","ai.aws.apiUrl","ai.aws.requestHeaders","Human:\n","send","_requestParameters","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","bedrock-2023-05-31","_getGeneratedText","completion","text","5912itazZJ","test","getReader","decode","AWSTextAdapter","json","_readAsyncIterableResponse","\n[/INST]","join","13890UJkBib","sendRequest","ai21.j2","_prepareRequestHeaders","filter","ai.aws.requestParameters","locale","_processProxyRequest","editor","data","cohere.command"];return(Cu=function(){return e})()}!function(e){const t=Pu,r=e();for(;;)try{if(719807===-parseInt(t(130))/1*(parseInt(t(153))/2)+parseInt(t(183))/3+-parseInt(t(184))/4+-parseInt(t(116))/5*(-parseInt(t(169))/6)+parseInt(t(176))/7*(-parseInt(t(144))/8)+parseInt(t(105))/9*(parseInt(t(133))/10)+-parseInt(t(127))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Cu);class Mu extends Ir{static get[Ru(177)](){return Ru(148)}constructor(e){const t=Ru;super(e),e[t(128)][t(123)](t(158))||e[t(128)][t(102)](t(158),{model:t(115),max_tokens_to_sample:2e3,temperature:1,top_p:1,top_k:250,anthropic_version:t(140),stream:!0}),this[t(106)]=e[t(128)][t(123)](t(134)),this[t(110)]=e[t(128)][t(123)](t(124)),this[t(111)]=e[t(128)][t(123)](t(135)),this[t(138)]=e[t(128)][t(123)](t(158))}async[Ru(154)]({query:e,context:t,onData:r,actionId:n}){const o=Ru,{model:i,stream:s,...a}=await this[o(119)](this[o(138)],n),c={prompt:await this[o(107)](e,t,i,n),...a};this[o(106)]?await this[o(160)](c,i,s,r,n):await this[o(168)](c,i,s,r)}async[Ru(107)](e,t,r,n){const o=Ru;let i,s;return t?(i=o(139),s=o(104)+e+o(173)+t):(i=o(172),s=e),o(165)==this[o(171)](r)?o(120)+i+o(132)+s+o(151):o(136)+i+"\n"+s+o(122)}[Ru(171)](e){const t=Ru;if(/^anthropic\.claude/[t(145)](e))return t(129);if(/^ai21\.j2/[t(145)](e))return t(155);if(/^cohere\.command/[t(145)](e))return t(163);if(/^meta\.llama/[t(145)](e))return t(165);throw new Ue(De(this[t(161)][t(159)],t(167),e))}async[Ru(160)](e,t,r,n,o){const i=Ru,s={method:i(179),headers:await this[i(156)](this[i(111)],o),body:JSON[i(118)]({...e,model:t,stream:r}),signal:this[i(113)][i(121)]},a=await fetch(this[i(106)],s);r?await this[i(175)](a,t,n):await this[i(126)](a,t,n)}async[Ru(168)](e,t,r,n){const o=Ru,i=new sc(this[o(110)]),s={body:JSON[o(118)](e),contentType:o(170),accept:o(170),modelId:t};let a;if(r){const e=new Eu(s);a=await i[o(137)](e,{abortSignal:this[o(113)][o(121)]}),await this[o(150)](a,t,n)}else{const e=new Iu(s);a=await i[o(137)](e,{abortSignal:this[o(113)][o(121)]}),await this[o(126)](a,t,n)}}async[Ru(150)](e,t,r){const n=Ru,o=e[n(164)],i=new TextDecoder(n(117));let s="";for await(const e of o)if(e[n(166)]){const o=i[n(147)](e[n(166)][n(182)]),a=JSON[n(178)](o);s+=this[n(141)](a,t),r(s)}return Promise[n(108)]()}async[Ru(175)](e,t,r){const n=Ru,o=e[n(164)],i=new TextDecoder(n(117)),s=o[n(146)]();let a="",c="",u=!1;for(;!u;){const{done:e,value:o}=await s[n(185)]();if(u=e,u)break;const l=(a+i[n(147)](o))[n(180)]("\n")[n(103)]((e=>{const t=n;try{return a="",JSON[t(178)](e)}catch(t){return a=e,null}}))[n(157)]((e=>null!==e));l[n(112)]&&(c+=l[n(103)]((e=>this[n(141)](e,t)))[n(152)](""),r(c))}return Promise[n(108)]()}async[Ru(126)](e,t,r){const n=Ru;let o;return o=e instanceof Response?await e[n(149)]():JSON[n(178)](Buffer[n(181)](e[n(164)])[n(131)](n(174))),r(this[n(141)](o,t)),Promise[n(108)]()}[Ru(141)](e,t){const r=Ru;switch(this[r(171)](t)){case r(129):return e[r(142)];case r(155):return e[r(125)][0][r(162)][r(143)];case r(163):return e[r(114)][0][r(143)];case r(165):return e[r(109)]}}}function Tu(e,t){var r=Ou();return(Tu=function(e,t){return r[e-=273]})(e,t)}function Ou(){var e=["12hoPRsy","1067390TQgSfC","2344774HGHmiJ","48wsPNjH","7313sJnOYP","9HIZTCN","18gpiSfs","46864895kcnBPk","4AzTCIZ","215870wKWbQw","2723805WbUwyQ","1305829VitgwV"];return(Ou=function(){return e})()}!function(e){for(var t=Tu,r=e();;)try{if(817267===-parseInt(t(276))/1+-parseInt(t(274))/2+parseInt(t(282))/3*(-parseInt(t(280))/4)+parseInt(t(281))/5*(-parseInt(t(278))/6)+-parseInt(t(283))/7*(parseInt(t(275))/8)+parseInt(t(277))/9*(-parseInt(t(273))/10)+parseInt(t(279))/11*(parseInt(t(284))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ou)})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();
5
+ */(()=>{var e={142:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck.ck-aria-description{display:none}",""]);const a=s},163:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:#99d7e6;--ck-color-suggestion-marker-format-border-active:#5cc0d6;--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const a=s},168:e=>{"use strict";e.exports=function(e){return e[1]}},181:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-dropdown-view-width:250px;--ck-ai-dropdown-view-list-max-height:250px}.ck.ck-ai-commands-search{width:var(--ck-ai-dropdown-view-width)}.ck.ck-ai-commands-search>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-ai-commands-search>.ck-labeled-field-view .ck-input{min-width:unset}.ck.ck-ai-commands-search>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-ai-commands-search>.ck-search__results>.ck-list{max-height:var(--ck-ai-dropdown-view-list-max-height);overflow:auto}",""]);const a=s},182:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath fill=%27%23FFF%27 d=%27M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z%27/%3E%3C/svg%3E"},220:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},237:e=>{"use strict";e.exports=CKEditor5.dll},258:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},262:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},311:(e,t,r)=>{e.exports=r(237)("./src/ui.js")},331:(e,t,r)=>{e.exports=r(237)("./src/clipboard.js")},332:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0 .ck-user__marker-dot::selection,.ck .ck-user__marker--0 .ck-user__marker-tooltip,.ck .ck-user__marker--0 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--0::selection{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1 .ck-user__marker-dot::selection,.ck .ck-user__marker--1 .ck-user__marker-tooltip,.ck .ck-user__marker--1 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--1::selection{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2 .ck-user__marker-dot::selection,.ck .ck-user__marker--2 .ck-user__marker-tooltip,.ck .ck-user__marker--2 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--2::selection{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3 .ck-user__marker-dot::selection,.ck .ck-user__marker--3 .ck-user__marker-tooltip,.ck .ck-user__marker--3 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--3::selection{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4 .ck-user__marker-dot::selection,.ck .ck-user__marker--4 .ck-user__marker-tooltip,.ck .ck-user__marker--4 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--4::selection{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5 .ck-user__marker-dot::selection,.ck .ck-user__marker--5 .ck-user__marker-tooltip,.ck .ck-user__marker--5 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--5::selection{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6 .ck-user__marker-dot::selection,.ck .ck-user__marker--6 .ck-user__marker-tooltip,.ck .ck-user__marker--6 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--6::selection{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7 .ck-user__marker-dot::selection,.ck .ck-user__marker--7 .ck-user__marker-tooltip,.ck .ck-user__marker--7 .ck-user__marker-tooltip::selection,.ck .ck-user__marker--7::selection{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const a=s},357:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},369:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(o,i),a=0,c=e.map([t,r],(function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(a=s-Math.min(o,i)),s-=1;s>=a;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===a)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var o=e[r];if(t(o,r))return o}},e.assign=function(e){for(var t,r,n=e,o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var a=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=i.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(92)),o=c(r(93)),i=c(r(94)),s=c(r(95)),a=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,o={},i=0;if(Object.keys(e).forEach((function(t){var s=e[t];"string"==typeof s?(o[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)})),n>0){var s=Object.keys(r),c=a.default.find(s,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(r[c]);if(void 0!==u)return u}var l=a.default.find(s,(function(e){return t.isPlatform(e)}));if(l){var d=this.satisfies(r[l]);if(void 0!==d)return d}}if(i>0){var g=Object.keys(o),h=a.default.find(g,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(o[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),o=a.default.getBrowserTypeByAlias(n);return t&&o&&(n=o.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(o,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=o.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=o.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=o.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,o=(n=r(17))&&n.__esModule?n:{default:n},i=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})},379:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-submit-button-text-color:var(--ck-color-text);--ck-ai-form-submit-button-border-color:transparent;--ck-ai-form-submit-button-disabled-border-color:transparent;--ck-ai-toolbar-button-hover-color:var(--ck-color-text);--ck-color-ai-selection:rgba(31,176,255,.3)}.ck-ai-assistant-ui_theme{--ck-color-button-default-hover-background:#f3ecff;--ck-color-button-default-active-background:#f3ecff;--ck-color-button-on-background:#f3ecff;--ck-color-button-on-hover-background:#f3ecff;--ck-color-button-on-active-background:#f3ecff;--ck-color-button-on-disabled-background:#f3ecff;--ck-color-button-on-color:#743ccd;--ck-color-button-action-background:#743ccd;--ck-color-button-action-hover-background:#6c34c9;--ck-color-button-action-active-background:#6c34c9;--ck-color-button-action-disabled-background:#ba9de6;--ck-color-list-button-hover-background:#f3ecff;--ck-ai-form-content-background:#f9f9f9;--ck-ai-form-submit-button-text-color:var(--ck-color-button-on-color);--ck-ai-form-submit-button-border-color:var(--ck-color-button-action-background);--ck-ai-form-submit-button-disabled-border-color:var(--ck-color-button-action-disabled-background);--ck-ai-toolbar-button-hover-color:var(--ck-color-button-on-color);--ck-color-ai-selection:#e2d6f5}.ck-ai-assistant-button:hover,.ck-ai-commands-dropdown>.ck-button:hover{color:var(--ck-ai-toolbar-button-hover-color)}.ck span.ck-fake-ai-selection{background:var(--ck-color-ai-selection)}.ck .ck-widget.ck-fake-ai-selection{outline-color:var(--ck-color-ai-selection)}.ck span.ck-fake-ai-selection-candidate{background:var(--ck-color-ai-selection)}.ck .ck-fake-ai-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}.ck.ck-content.ck-ai-form__content-field h2{font-size:1.3em}.ck.ck-content.ck-ai-form__content-field h3{font-size:1.2em}.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6{font-size:1.1em}.ck.ck-content.ck-ai-form__content-field h2,.ck.ck-content.ck-ai-form__content-field h3,.ck.ck-content.ck-ai-form__content-field h4,.ck.ck-content.ck-ai-form__content-field h5,.ck.ck-content.ck-ai-form__content-field h6,.ck.ck-content.ck-ai-form__content-field ol,.ck.ck-content.ck-ai-form__content-field p,.ck.ck-content.ck-ai-form__content-field ul{line-height:1.7em;margin-block-end:.5em;margin-block-start:.5em}.ck.ck-content.ck-ai-form__content-field>:first-child{margin-top:0}.ck.ck-content.ck-ai-form__content-field>:last-child{margin-bottom:0}",""]);const a=s},433:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);n&&s[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},507:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const a=s},533:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(168),o=r.n(n),i=r(433),s=r.n(i),a=r(220),c=r.n(a),u=new URL(r(182),r.b),l=s()(o()),d=c()(u);l.push([e.id,`:root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff;--ck-user-me-border-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;box-sizing:border-box;display:flex;height:var(--ck-user-avatar-size);justify-content:center;line-height:100%;margin:2px;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user.ck-user_me{border:2px solid var(--ck-user-me-border-color);outline:2px solid var(--ck-user-avatar-background)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:none;border-radius:50%;display:none;height:100%;width:100%}.ck.ck-user__img.ck-user__anonymous{background-image:url(${d});display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:var(--ck-color-base-background);color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}`,""]);const g=l},545:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,s&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var a=document.createTextNode(i),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(a,c[t]):e.appendChild(a)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},584:(e,t,r)=>{e.exports=r(237)("./src/utils.js")},667:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}},673:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},s=[],a=0;a<e.length;a++){var c=e[a],u=n.base?c[0]+n.base:c[0],l=i[u]||0,d="".concat(u," ").concat(l);i[u]=l+1;var g=r(d),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==g)t[g].references++,t[g].updater(h);else{var p=o(h,n);n.byIndex=a,t.splice(a,0,{identifier:d,updater:p,references:1})}s.push(d)}return s}function o(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=r(i[s]);t[a].references--}for(var c=n(e,o),u=0;u<i.length;u++){var l=r(i[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=c}}},676:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-ai-form-view-width:600px;--ck-ai-form-content-height:175px;--ck-ai-form-content-background:#fafafa;--ck-ai-form-history-font-size:.9em;--ck-ai-form-error-background:var(--ck-color-light-red)}.ck .ck-ai-form{max-width:100%;width:var(--ck-ai-form-view-width)}@media screen and (max-width:600px){.ck .ck-ai-form{--ck-ai-form-view-width:100vw}}.ck .ck-ai-form .ck-ai-form-content{padding:var(--ck-spacing-large);width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-input{width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper{border:1px solid var(--ck-color-base-border);border-radius:2px;max-height:var(--ck-ai-form-content-height);overflow-y:auto;width:100%}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area-wrapper:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area{background-color:var(--ck-ai-form-content-background);display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area.ck-ai-form__content-area--processing{--ck-color-text:var(--ck-color-input-disabled-text);background-color:var(--ck-color-input-disabled-background)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{box-sizing:content-box;min-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base));padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);white-space:normal;width:100%}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-right:0}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field{padding-left:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__content-field>*{color:inherit;white-space:normal}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-spinner-container{margin-left:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button-wrapper{display:flex;flex-direction:column-reverse;padding-left:2px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button{bottom:1px;min-height:unset;min-width:unset;padding:4px;position:sticky;right:1px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button svg{--ck-icon-size:16px}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__content-area .ck-ai-form__copy-button.ck-ai-form__copy-button--copied{color:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__toolbar{border:none;margin-bottom:calc(var(--ck-spacing-medium)*2);margin-top:var(--ck-spacing-medium);padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader{align-items:center;display:flex}.ck .ck-ai-form .ck-ai-form-content .ck-ai-form__loader .ck-spinner{box-sizing:border-box}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete{display:flex;justify-content:space-between}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view{flex-grow:1}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{border-color:var(--ck-ai-form-submit-button-border-color);color:var(--ck-ai-form-submit-button-text-color)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-left:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit{margin-right:var(--ck-spacing-medium)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled{border-color:var(--ck-ai-form-submit-button-disabled-border-color)}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{bottom:var(--ck-spacing-small);font-size:var(--ck-font-size-tiny);min-height:unset;min-width:unset;padding:4px;position:absolute;top:var(--ck-spacing-small)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{right:var(--ck-spacing-medium)}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck-labeled-field-view .ck-ai-form__toggle-history{left:var(--ck-spacing-medium)}[dir=ltr] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-right:30px}[dir=rtl] .ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{padding-left:30px}@media screen and (max-width:600px){.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-textarea{--ck-input-width:auto}}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto;grid-column-gap:0;grid-row-gap:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>span{grid-area:1/1/2/2}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button{background:none;font-size:var(--ck-ai-form-history-font-size);grid-area:1/2/2/3;justify-self:start;margin:var(--ck-spacing-medium) 0 0;min-height:auto;padding:0}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label{line-height:inherit}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-button .ck-button__label:hover{text-decoration:underline}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list{grid-area:2/1/3/3}.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete .ck-search__results .ck-list .ck-list__group>.ck-list .ck-list__item .ck-button .ck-button__label{font-size:var(--ck-ai-form-history-font-size);line-height:var(--ck-line-height-base);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck .ck-ai-form .ck-ai-form__error{align-items:center;background-color:var(--ck-ai-form-error-background);border-radius:2px;color:var(--ck-color-base-text);display:flex;justify-content:center;margin-bottom:var(--ck-spacing-medium);padding:var(--ck-spacing-medium)}",""]);const a=s},751:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},782:(e,t,r)=>{e.exports=r(237)("./src/core.js")},783:(e,t,r)=>{e.exports=r(237)("./src/engine.js")},901:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const a=s},906:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s},938:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-comment-marker.ck-widget.ck-merge-field,.ck-content .ck-suggestion-marker.ck-widget.ck-merge-field{border-width:2px;border-left:none;border-right:none;padding-bottom:0;padding-top:0}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom-color:var(--ck-color-suggestion-marker-deletion-border);border-top-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field :not(.ck-merge-field__affix),.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-value,.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-merge-field_with-warning{text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field{background-color:var(--ck-color-suggestion-marker-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-merge-field.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-marker-insertion-background-active)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field{background:var(--ck-color-comment-marker)}.ck-content .ck-comment-marker.ck-widget.ck-merge-field.ck-comment-marker--active{background:var(--ck-color-comment-marker-active)}.ck-content span.ck-comment-marker:has(+.ck-comment-marker.ck-widget.ck-merge-field),.ck-content span.ck-suggestion-marker:has(+.ck-suggestion-marker.ck-widget.ck-merge-field){margin-right:-1px;padding-right:1px}",""]);const a=s},961:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-suggestion:focus{background:var(--ck-color-button-default-hover-background);outline:none}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count,.ck .ck-thread__header{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{border-radius:0;overflow:hidden}.ck .ck-suggestion-wrapper.ck-rounded-corners,.ck-rounded-corners .ck .ck-suggestion-wrapper{border-radius:var(--ck-border-radius)}.ck .ck-suggestion-wrapper:focus{box-shadow:0 0 0 4px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring)}.ck-balloon-panel:has(.ck-suggestion-wrapper:focus){border:var(--ck-focus-ring);box-shadow:var(--ck-drop-shadow),var(--ck-focus-outer-shadow);outline:none}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #454545;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const a=s},967:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(168),o=r.n(n),i=r(433),s=r.n(i)()(o());s.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const a=s}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href;var n={};(()=>{"use strict";r.r(n),r.d(n,{AIAdapter:()=>Be,AIAssistant:()=>_r,AIAssistantUI:()=>mr,AIRequestError:()=>Ue,AITextAdapter:()=>Ir,AWSTextAdapter:()=>Cu,OpenAITextAdapter:()=>Cr});var e=r(782),t=r(584),o=r(311);e.ContextPlugin;var i=r(673),s=r.n(i),a=r(545),c=r.n(a),u=r(262),l=r.n(u),d=r(667),g=r.n(d),h=r(357),p=r.n(h),f=r(332),m={attributes:{"data-cke":!0}};m.setAttributes=g(),m.insert=l().bind(null,"head"),m.domAPI=c(),m.insertStyleElement=p();s()(f.A,m);f.A&&f.A.locals&&f.A.locals;e.ContextPlugin;var k=r(533),b={attributes:{"data-cke":!0}};b.setAttributes=g(),b.insert=l().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=p();s()(k.A,b);k.A&&k.A.locals&&k.A.locals;o.View;o.View;class w extends Error{}class v extends w{constructor(){super("Zone is an abstract class")}}class y{get type(){throw new v}get name(){throw new v}get ianaName(){return this.name}get isUniversal(){throw new v}offsetName(e,t){throw new v}formatOffset(e,t){throw new v}offset(e){throw new v}equals(e){throw new v}get isValid(){throw new v}}let _={};const S={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let A={};class x extends y{static create(e){return A[e]||(A[e]=new x(e)),A[e]}static resetCache(){A={},_={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=x.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return $(e,t,r,this.name)}formatOffset(e,t){return L(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,_[n]||(_[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),_[n]);var n;let[o,i,s,a,c,u,l]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const{type:t,value:o}=r[e],i=S[t];"era"===t?n[i]=o:P(i)||(n[i]=parseInt(o,10))}return n}(r,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,i,s,a,c,u,l]=n;return[s,o,i,a,c,u,l]}(r,t);"BC"===a&&(o=1-Math.abs(o));let d=+t;const g=d%1e3;return d-=g>=0?g:1e3+g,(O({year:o,month:i,day:s,hour:24===c?0:c,minute:u,second:l,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let E=null;class I extends y{static get utcInstance(){return null===E&&(E=new I(0)),E}static instance(e){return 0===e?I.utcInstance:new I(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new I(N(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${L(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${L(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return L(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}const R={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};R.hanidec.replace(/[\[|\]]/g,"").split("");function P(e){return void 0===e}function M(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function C(e){return P(e)||null===e||""===e?void 0:parseInt(e,10)}function T(e){if(!P(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function O(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function $(e,t,r,n=null){const o=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const s={timeZoneName:t,...i},a=new Intl.DateTimeFormat(r,s).formatToParts(o).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function N(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function L(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),o=e>=0?"+":"-";switch(t){case"short":return`${o}${M(r,2)}:${M(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${M(r,2)}${M(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}const B=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function U(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function D(...e){return t=>e.reduce((([e,r,n],o)=>{const[i,s,a]=o(t,n);return[{...e,...i},s||r,a]}),[{},null,1]).slice(0,2)}function F(...e){return(t,r)=>{const n={};let o;for(o=0;o<e.length;o++)n[e[o]]=C(t[r+o]);return[n,null,r+o]}}const H=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,j=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,z=RegExp(`${j.source}${`(?:${H.source}?(?:\\[(${B.source})\\])?)?`}`),V=RegExp(`(?:T${z.source})?`),q=F("weekYear","weekNumber","weekDay"),G=F("year","ordinal"),W=RegExp(`${j.source} ?(?:${H.source}|(${B.source}))?`),Z=RegExp(`(?: ${W.source})?`);function K(e,t,r){const n=e[t];return P(n)?r:C(n)}function Q(e,t){return[{hours:K(e,t,0),minutes:K(e,t+1,0),seconds:K(e,t+2,0),milliseconds:T(e[t+3])},null,t+4]}function J(e,t){const r=!e[t]&&!e[t+1],n=N(e[t+1],e[t+2]);return[{},r?null:I.instance(n),t+3]}function Y(e,t){return[{},e[t]?x.create(e[t]):null,t+1]}RegExp(`^T?${j.source}$`);U(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,V),U(/(\d{4})-?W(\d\d)(?:-?(\d))?/,V),U(/(\d{4})-?(\d{3})/,V),U(z),D((function(e,t){return[{year:K(e,t),month:K(e,t+1,1),day:K(e,t+2,1)},null,t+3]}),Q,J,Y),D(q,Q,J,Y),D(G,Q,J,Y),D(Q,J,Y);D(Q);U(/(\d{4})-(\d\d)-(\d\d)/,Z),U(W),D(Q,J,Y);const X={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ee=365.2425,te=30.436875,re=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];re.slice(0).reverse();Symbol.for("nodejs.util.inspect.custom");Symbol.for("nodejs.util.inspect.custom");const ne=`[ ${String.fromCharCode(160)}]`;new RegExp(ne,"g");Symbol.for("nodejs.util.inspect.custom");o.View;var oe=r(961),ie={attributes:{"data-cke":!0}};ie.setAttributes=g(),ie.insert=l().bind(null,"head"),ie.domAPI=c(),ie.insertStyleElement=p();s()(oe.A,ie);oe.A&&oe.A.locals&&oe.A.locals;var se=r(163),ae={attributes:{"data-cke":!0}};ae.setAttributes=g(),ae.insert=l().bind(null,"head"),ae.domAPI=c(),ae.insertStyleElement=p();s()(se.A,ae);se.A&&se.A.locals&&se.A.locals;var ce=r(142),ue={attributes:{"data-cke":!0}};ue.setAttributes=g(),ue.insert=l().bind(null,"head"),ue.domAPI=c(),ue.insertStyleElement=p();s()(ce.A,ue);ce.A&&ce.A.locals&&ce.A.locals;var le=r(258),de={attributes:{"data-cke":!0}};de.setAttributes=g(),de.insert=l().bind(null,"head"),de.domAPI=c(),de.insertStyleElement=p();s()(le.A,de);le.A&&le.A.locals&&le.A.locals;var ge=r(967),he={attributes:{"data-cke":!0}};he.setAttributes=g(),he.insert=l().bind(null,"head"),he.domAPI=c(),he.insertStyleElement=p();s()(ge.A,he);ge.A&&ge.A.locals&&ge.A.locals;var pe=r(906),fe={attributes:{"data-cke":!0}};fe.setAttributes=g(),fe.insert=l().bind(null,"head"),fe.domAPI=c(),fe.insertStyleElement=p();s()(pe.A,fe);pe.A&&pe.A.locals&&pe.A.locals;var me=r(938),ke={attributes:{"data-cke":!0}};ke.setAttributes=g(),ke.insert=l().bind(null,"head"),ke.domAPI=c(),ke.insertStyleElement=p();s()(me.A,ke);me.A&&me.A.locals&&me.A.locals;var be=r(751),we={attributes:{"data-cke":!0}};we.setAttributes=g(),we.insert=l().bind(null,"head"),we.domAPI=c(),we.insertStyleElement=p();s()(be.A,we);be.A&&be.A.locals&&be.A.locals;var ve=r(901),ye={attributes:{"data-cke":!0}};ye.setAttributes=g(),ye.insert=l().bind(null,"head"),ye.domAPI=c(),ye.insertStyleElement=p();s()(ve.A,ye);ve.A&&ve.A.locals&&ve.A.locals;var _e=r(507),Se={attributes:{"data-cke":!0}};Se.setAttributes=g(),Se.insert=l().bind(null,"head"),Se.domAPI=c(),Se.insertStyleElement=p();s()(_e.A,Se);_e.A&&_e.A.locals&&_e.A.locals;const Ae={paintRoller:'<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M3 3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3Z"/><path d="M16 3.25a1.5 1.5 0 0 1 1.5 1.5v1.7a2.25 2.25 0 0 1-1.932 2.226l-4.424.632a.75.75 0 0 0-.644.743V11a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1v-.95a2.25 2.25 0 0 1 1.932-2.226l4.424-.632A.75.75 0 0 0 16 6.449V3.25Z"/></svg>\n',robotPencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.61 2.66a1.406 1.406 0 1 0-1.407 0v.891H3.28a2.11 2.11 0 0 0-2.11 2.11v10.312a2.11 2.11 0 0 0 2.11 2.109h5.684l-.054-1.157.18-.25H3.28a.703.703 0 0 1-.703-.702V5.66c0-.389.315-.704.703-.704h11.25c.388 0 .703.315.703.704v2.484l.358-.497a2.492 2.492 0 0 1 1.048-.84V5.66a2.11 2.11 0 0 0-2.11-2.11H9.61v-.89Z"/><path d="M5.625 10.817c.518 0 .937-.63.937-1.407 0-.776-.42-1.406-.937-1.406-.518 0-.938.63-.938 1.406 0 .777.42 1.407.938 1.407Z"/><path d="M13.125 9.41c0 .777-.42 1.407-.938 1.407s-.937-.63-.937-1.407c0-.776.42-1.406.937-1.406.518 0 .938.63.938 1.406Z"/><path d="M.937 8.004A.937.937 0 0 0 0 8.942v1.875c0 .517.42.937.937.937v-3.75Z"/><path d="M6.128 12.51a.782.782 0 0 1 1.085.216c.272.408.907.707 1.693.707s1.421-.3 1.693-.707a.782.782 0 0 1 1.302.868c-.666 1-1.906 1.403-2.995 1.403-1.089 0-2.329-.404-2.995-1.403a.782.782 0 0 1 .217-1.085Z"/><path d="m16.987 8.91-.622.864 2.879 2.074.622-.864a.71.71 0 0 0-.161-.99l-1.728-1.245a.71.71 0 0 0-.99.161Z"/><path d="M11.635 19.951a.355.355 0 0 1-.449-.31l-.214-2.38 4.978-6.911 2.88 2.074-4.978 6.91-2.217.617Z"/></svg>',tableOfContents:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 19a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v8.022a6.47 6.47 0 0 0-1.5-.709V2a.5.5 0 0 0-.5-.5H3a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h6.313c.173.534.412 1.037.709 1.5H3Z"/><path d="M9.174 14a6.489 6.489 0 0 0-.155 1H6v-1h3.174Z"/><path d="M10.022 12c-.202.316-.378.65-.524 1H4v-1h6.022Z"/><path d="M12.034 10c-.448.283-.86.62-1.224 1H6v-1h6.034Z"/><path d="M12 4v1H4V4h8Z"/><path d="M14 7V6H6v1h8Z"/><path d="M15 9V8H7v1h8Z"/><path clip-rule="evenodd" d="M20 15.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM15.5 13a.5.5 0 0 0-.5.5V15h-1.5a.5.5 0 0 0 0 1H15v1.5a.5.5 0 0 0 1 0V16h1.5a.5.5 0 0 0 0-1H16v-1.5a.5.5 0 0 0-.5-.5Z"/></svg>\n',template:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0H3a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2ZM2.5 2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v15a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V2Z"/><path clip-rule="evenodd" d="M13 0h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5h-5Z"/><path clip-rule="evenodd" d="M13 10h5a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2Zm0 1.5a.5.5 0 0 0-.5.5v5a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"/></svg>',caseChange:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.789 3 0 17h1.664l1.664-4.027h6.797l.227.548c.046-.172.112-.352.209-.545.217-.436.556-.609.898-.798L7.664 3H5.79Zm.938 1.758 2.777 6.715H3.949l2.778-6.715Z"/><path d="M15.956 7.5c-1.584-.02-3.226.824-3.843 2.882l1.495.106c.904-2.082 4.594-2.13 4.375.534-3.245 1.024-4.838.117-6.082 2.62-.208.418-.17 1.57.54 2.397.71.826 2.014 1.149 3.409.85 1.395-.299 2.24-1.386 2.24-1.386L18.205 17h1.493l-.059-1.72-.056-5.274C19.51 8.612 17.75 7.524 15.956 7.5Zm2.027 4.696s.641 2.453-1.528 3.27c-3.376 1.269-4.188-2.141-1.775-2.638 1.704-.352 1.873-.25 3.303-.632Z"/></svg>'};function xe(e,t){const r=(0,t.t)("Other");return e.length?"groupId"in e[0]?e:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:e}]:[{groupId:"_ungrouppedCommands",groupLabel:r,order:1/0,commands:[]}]}var Ee=r(331),Ie=r(783);const Re=Me;function Pe(){const e=["pluginName","2065444uagZhk","deleteContent","filter","_getAISelection","ai-ui","getColumnIndexes","getRowIndexes","getMarkersGroup","markers","3968034czplRy","markerToHighlight","change","model","get","forEach","has","hideFakeVisualSelection","getSelectedTableCells","editingDowncast","contentInsertion","createPositionAt","init","data","selection","_createEmptyTableRows","first","findAncestor","6BWxoPI","1078748hWXcDI","ck-fake-ai-selection","createPositionAfter","63YJNGKZ","end","fromCharCode","getSelectedBlocks","href","getLastPosition","from","_getDefaultInsertBelowPosition","off","insertContent","setData","schema","ck-fake-ai-selection_collapsed","last","isContent","addClass","element","removeMarker","getRanges","DataTransfer","getFirstRange","isAtEnd","10bMyvzi","conversion","updateMarker","table","document","TableUtils","_getTableRowCountFromContent","push","_resetContentOfSelectedTableCells","ai.useTheme","config","createSelection","markerRange","ck-ai-assistant-ui_theme","1323656YguuQj","join","editor","insertRows","length","insertContentBelow","addMarker","_prepareTableInsertBelowPosition","lowest","getChildren","canEditAt","resultRange","showFakeVisualSelection","for","AIAssistantEditing","createRange","span","markerToElement","getChild","8553150hsgItF","isCollapsed","435729gXTevf","getLastMatchingPosition","map","fire","pop","start","getRows","_pasteHTMLUsingClipboard","paste","isPremiumPlugin","getRange","setSelection","createUIElement","parse","isOfficialPlugin","afterInit","text/html","172318rpDpBe","plugins","once","editing"];return(Pe=function(){return e})()}function Me(e,t){const r=Pe();return(Me=function(e,t){return r[e-=322]})(e,t)}!function(e){const t=Me,r=e();for(;;)try{if(793216===-parseInt(t(370))/1+parseInt(t(337))/2+parseInt(t(369))/3*(parseInt(t(342))/4)+parseInt(t(395))/5*(-parseInt(t(351))/6)+parseInt(t(430))/7+parseInt(t(409))/8*(parseInt(t(373))/9)+parseInt(t(428))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pe);const Ce=globalThis[Re(392)],Te=Re(346);class Oe extends e.Plugin{static get[Re(341)](){return Re(423)}static get[Re(334)](){return!0}static get[Re(329)](){return!0}[Re(363)](){const e=Re,{editor:t}=this,r=[e(371)];t[e(405)][e(355)](e(404))&&r[e(402)](e(408)),t[e(396)][e(422)](e(360))[e(352)]({model:Te,view:{classes:r,priority:12}}),t[e(396)][e(422)](e(360))[e(426)]({model:Te,view:(t,{writer:r})=>{const n=e;if(!t[n(407)][n(429)])return null;const o=r[n(332)](n(425));return r[n(388)]([n(371),n(385)],o),o}})}[Re(335)](){!async function(e){const r=f([104,100,50,111,102,67,49,109,74,116,119,114,84,122,106,53,82,86,117,85,99,55,56,107,83,87,51,66,71,73,81,57,70,68,80,97,120,118,121,108,78,112,113,98,75,103,88,76,101,90,110,65,115,69,77,54,48,52,72,105,79,89]),n=window[f([68,97,116,101])][f([110,111,119])](),o=e[f([101,100,105,116,111,114])],i=new(window[f([80,114,111,109,105,115,101])])((e=>{o[f([111,110,99,101])](f([114,101,97,100,121]),e)})),s={[f([107,116,121])]:f([69,67]),[f([117,115,101])]:f([115,105,103]),[f([99,114,118])]:f([80,45,50,53,54]),[f([120])]:f([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[f([121])]:f([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[f([97,108,103])]:f([69,83,50,53,54])},a=o[f([99,111,110,102,105,103])][f([103,101,116])](f([108,105,99,101,110,115,101,75,101,121]));function c(e){const t=[new(window[f([80,114,111,109,105,115,101])])((e=>setTimeout(e,605900))),i[f([116,104,101,110])]((()=>new(window[f([80,114,111,109,105,115,101])])((e=>{let t=0;o[f([109,111,100,101,108])][f([111,110])](f([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((r,n)=>{n[0][f([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504==t&&(e(),r[f([111,102,102])]())}))}))))];return window[f([80,114,111,109,105,115,101])][f([114,97,99,101])](t)[f([116,104,101,110])]((()=>e))}function u(e){return e[f([115,116,97,114,116,115,87,105,116,104])](f([101,121]))?JSON[f([112,97,114,115,101])](l(e)):null}function l(e){return window[f([97,116,111,98])](e[f([114,101,112,108,97,99,101])](/-/g,f([43]))[f([114,101,112,108,97,99,101])](/_/g,f([47])))}function d(e){let t=5381;function r(e){for(let r=0;r<e[f([108,101,110,103,116,104])];r++){const n=e[f([99,104,97,114,67,111,100,101,65,116])](r);t=(t<<5)+t+n,t&=t}}return function e(t){Array[f([105,115,65,114,114,97,121])](t)?t[f([102,111,114,69,97,99,104])](e):t&&typeof t==f([111,98,106,101,99,116])?Object[f([101,110,116,114,105,101,115])](t)[f([115,111,114,116])]()[f([102,111,114,69,97,99,104])]((([t,n])=>{r(t),e(n)})):r(window[f([83,116,114,105,110,103])](t))}(e),t>>>0}function g(e){return e[f([116,111,83,116,114,105,110,103])](16)[f([112,97,100,83,116,97,114,116])](8,f([48]))}function h(e){return e[f([115,112,108,105,116])]("")[f([114,101,118,101,114,115,101])]()[f([106,111,105,110])]("")}function p(){}function f(e){const t=Me;return e[t(322)]((e=>String[t(375)](e)))[t(410)]("")}!function(e){const t=function(){const e=window[f([83,116,114,105,110,103])](window[f([112,101,114,102,111,114,109,97,110,99,101])][f([110,111,119])]())[f([114,101,112,108,97,99,101])](f([46]),"");let t=f([104]);for(let n=0;n<e[f([108,101,110,103,116,104])];n+=2){let o=window[f([112,97,114,115,101,73,110,116])](e[f([115,117,98,115,116,114,105,110,103])](n,n+2));o>=r[f([108,101,110,103,116,104])]&&(o-=r[f([108,101,110,103,116,104])]),t+=r[o]}return t}();o[t]=f([97,105,76,105,99,101,110,115,101,75,101,121])+e,e!=f([86,97,108,105,100])&&async function(){await i,o[f([109,111,100,101,108])][f([99,104,97,110,103,101])]=p,o[f([109,111,100,101,108])][f([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,o[f([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](f([109,111,100,101,108]))}()}(await async function(){let e,r=null,p=null;try{return a==f([71,80,76])?f([78,111,116,65,108,108,111,119,101,100]):(e=function(){const e=a[f([115,112,108,105,116])](f([46]));return 3!=e[f([108,101,110,103,116,104])]?null:t(e[1]);function t(e){const t=u(e);return t&&r()?t:null;function r(){const e=t[f([106,116,105])],r=window[f([112,97,114,115,101,73,110,116])](e[f([115,117,98,115,116,114,105,110,103])](e[f([108,101,110,103,116,104])]-8),16),n={...t,[f([106,116,105])]:e[f([115,117,98,115,116,114,105,110,103])](0,e[f([108,101,110,103,116,104])]-8)};return delete n[f([118,99])],d(n)==r}}}(),e?(e[f([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(e,r){return new(window[f([80,114,111,109,105,115,101])])((c=>{if(s())return c(f([86,97,108,105,100]));a(),o[f([100,101,99,111,114,97,116,101])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const l=(0,t.uid)();function p(e){return!!e&&(typeof e===f([111,98,106,101,99,116])||typeof e===f([102,117,110,99,116,105,111,110]))&&typeof e[f([116,104,101,110])]===f([102,117,110,99,116,105,111,110])&&typeof e[f([99,97,116,99,104])]===f([102,117,110,99,116,105,111,110])}function m(t){a(t)[f([116,104,101,110])]((e=>e&&e[f([115,116,97,116,117,115])]==f([111,107])?g(d(l+r))!=e[f([118,101,114,105,102,105,99,97,116,105,111,110])]?f([85,115,97,103,101,76,105,109,105,116]):f([86,97,108,105,100]):f([85,115,97,103,101,76,105,109,105,116])))[f([116,104,101,110])]((e=>(i(),e)),(()=>{const e=s();return null==e?(i(),f([86,97,108,105,100])):f(n-e>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])}))[f([116,104,101,110])](c)[f([99,97,116,99,104])]((()=>{c(f([85,115,97,103,101,76,105,109,105,116]))}));const o=36e5;function i(){const t=f([108,108,99,116,45])+g(d(e)),r=h(g(window[f([77,97,116,104])][f([99,101,105,108])](n/o)));window[f([108,111,99,97,108,83,116,111,114,97,103,101])][f([115,101,116,73,116,101,109])](t,r)}function s(){const t=f([108,108,99,116,45])+g(d(e)),r=window[f([108,111,99,97,108,83,116,111,114,97,103,101])][f([103,101,116,73,116,101,109])](t);return r?window[f([112,97,114,115,101,73,110,116])](h(r),16)*o:null}function a(e){return new(window[f([80,114,111,109,105,115,101])])(((t,r)=>{e[f([116,104,101,110])](t,r),window[f([115,101,116,84,105,109,101,111,117,116])](r,12e4)}))}}o[f([111,110])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),((t,r)=>{if(r[0]!=e)return c(f([85,115,97,103,101,76,105,109,105,116]));r[1]={...r[1],[f([114,101,113,117,101,115,116,73,100])]:l}}),{[f([112,114,105,111,114,105,116,121])]:f([104,105,103,104])}),o[f([111,110])](f([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e=>{p(e[f([114,101,116,117,114,110])])&&(u=!0,m(e[f([114,101,116,117,114,110])]))}),{[f([112,114,105,111,114,105,116,121])]:f([108,111,119])}),i[f([116,104,101,110])]((()=>{u||c(f([85,115,97,103,101,76,105,109,105,116]))}))}));function s(){return o[f([101,100,105,116,105,110,103])][f([118,105,101,119])][f([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==f([97,117,116,111])}function a(){o[f([101,100,105,116,105,110,103])][f([118,105,101,119])][f([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=f([97,117,116,111])}}(e[f([117,115,97,103,101,69,110,100,112,111,105,110,116])],e[f([106,116,105])])),await async function(){let e=!0;try{const n=a[f([115,112,108,105,116])](f([46])),[o,i,s]=n;return t(o),await r(o,i,s),e}catch(e){return!1}function t(t){const r=u(t);r&&r[f([97,108,103])]==f([69,83,50,53,54])||(e=!1)}async function r(t,r,n){const o=window[f([85,105,110,116,56,65,114,114,97,121])][f([102,114,111,109])](l(n),(e=>e[f([99,104,97,114,67,111,100,101,65,116])](0))),i=(new(window[f([84,101,120,116,69,110,99,111,100,101,114])]))[f([101,110,99,111,100,101])](t+f([46])+r),a=window[f([99,114,121,112,116,111])][f([115,117,98,116,108,101])];if(!a)return;const c=await a[f([105,109,112,111,114,116,75,101,121])](f([106,119,107]),s,{[f([110,97,109,101])]:f([69,67,68,83,65]),[f([110,97,109,101,100,67,117,114,118,101])]:f([80,45,50,53,54])},!1,[f([118,101,114,105,102,121])]);await a[f([118,101,114,105,102,121])]({[f([110,97,109,101])]:f([69,67,68,83,65]),[f([104,97,115,104])]:{[f([110,97,109,101])]:f([83,72,65,45,50,53,54])}},c,o,i)||(e=!1)}}()?function(){const t=e[f([102,101,97,116,117,114,101,115])];return!(!t||!t[f([105,110,99,108,117,100,101,115])](f([42]))&&!t[f([105,110,99,108,117,100,101,115])](f([65,73])))}()?function(){const t=[f([101,118,97,108,117,97,116,105,111,110]),f([116,114,105,97,108])][f([105,110,99,108,117,100,101,115])](e[f([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1740614400;return e[f([101,120,112])]<t}()?f([69,120,112,105,114,101,100]):function(){const t=Me,r=e[f([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!r||0==r[f([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[f([108,111,99,97,116,105,111,110])][t(377)]);if(r[f([105,110,99,108,117,100,101,115])](n))return!0;const o=n[f([115,112,108,105,116])](f([46]));return r[f([102,105,108,116,101,114])]((e=>e[f([105,110,99,108,117,100,101,115])](f([42]))))[f([109,97,112])]((e=>e[f([115,112,108,105,116])](f([46]))))[f([115,111,109,101])]((e=>o[f([101,118,101,114,121])](((t,r)=>e[r]===t||e[r]===f([42])))))}()?(e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([101,118,97,108,117,97,116,105,111,110])&&(r=c(f([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),e[f([108,105,99,101,110,115,101,84,121,112,101])]==f([116,114,105,97,108])&&(r=c(f([84,114,105,97,108,76,105,109,105,116]))),await(r&&p?new(window[f([80,114,111,109,105,115,101])])(((e,t)=>{r[f([116,104,101,110])](e,t),p[f([116,104,101,110])]((t=>{t!=f([86,97,108,105,100])&&e(t)}),t)})):r||p||f([86,97,108,105,100]))):f([68,111,109,97,105,110,76,105,109,105,116]):f([78,111,116,65,108,108,111,119,101,100]):f([73,110,118,97,108,105,100])):f([73,110,118,97,108,105,100]))}catch(e){return f([73,110,118,97,108,105,100])}}())}(this)}[Re(421)](){const e=Re,t=this[e(411)][e(354)];t[e(353)]((r=>{const n=e,o=t[n(399)][n(365)][n(391)]();let i=0;for(const e of o){const o=Te+":"+i;if(t[n(350)][n(357)](o))r[n(397)](o,{range:e});else if(e[n(325)][n(394)]){const i=e[n(325)][n(431)]((({item:e})=>!t[n(384)][n(387)](e)),{boundaries:e});r[n(415)](o,{usingOperation:!1,affectsData:!1,range:r[n(424)](i,e[n(374)])})}else r[n(415)](o,{usingOperation:!1,affectsData:!1,range:e});i++}}))}[Re(358)](){const e=Re,t=this[e(411)][e(354)],r=Array[e(379)](this[e(411)][e(354)][e(350)][e(349)](Te));r[e(413)]&&t[e(353)]((t=>{const n=e;r[n(356)]((e=>{t[n(390)](e)}))}))}[Re(382)](e,t){const r=Re,n=this[r(345)](),o=t||n[r(393)]();this[r(411)][r(354)][r(419)](o)&&this[r(411)][r(354)][r(353)]((i=>{const s=r;this[s(358)](),t||this[s(403)](i,n),this[s(327)]({insertAt:o,writer:i,html:e})}))}[Re(414)](e){const t=Re,{model:r}=this[t(411)],n=this[t(345)]();r[t(353)]((()=>{const r=t,o=this[r(416)](e,n)||this[r(380)](n);this[r(382)](e,o)}))}[Re(345)](){const e=Re,t=this[e(411)][e(354)],r=Array[e(379)](t[e(350)][e(349)](Te))[e(322)]((t=>t[e(330)]()));return t[e(406)](r)}[Re(327)]({writer:e,html:t,insertAt:r}){const n=Re,{view:o}=this[n(411)][n(340)],i=this[n(411)][n(338)][n(355)](Ee.ClipboardPipeline),s=new Ce;s[n(383)](n(336),t);const a=new ClipboardEvent(n(328),{clipboardData:s}),c=new Ie.DomEventData(o,a,{dataTransfer:new Ie.DataTransfer(s)});e[n(331)](r);const u=(t,r)=>{const o=n;r[o(420)]&&e[o(331)](r[o(420)])};i[n(339)](n(361),u,{priority:n(417)}),o[n(399)][n(323)](n(328),c),i[n(381)](n(361),u)}[Re(380)](e){const t=Re,{model:r}=this[t(411)],n=Array[t(379)](e[t(376)]());return n[t(413)]?r[t(372)](n[t(324)]()):e[t(378)]()}[Re(416)](e,t){const r=Re,{model:n,plugins:o}=this[r(411)];if(o[r(357)](r(400))){const i=o[r(355)](r(400))[r(359)](t);if(i[r(413)]){const t=this[r(401)](e),o=this[r(366)](i,t);return n[r(362)](o,0)}}return null}[Re(401)](e){const t=Re,r=this[t(411)][t(338)][t(355)](t(400)),n=this[t(411)][t(364)][t(333)](e),o=Array[t(379)](n[t(418)]())[t(344)]((e=>e.is(t(389),t(398))));let i=0;return o[t(356)]((e=>{i+=r[t(326)](e)})),i}[Re(366)](e,t){const r=Re,n=this[r(411)][r(338)][r(355)](r(400)),o=n[r(348)](e),i=n[r(347)](e),s=o[r(386)]+1,a=i[r(367)],c=e[0][r(368)](r(398));for(let e=0;e<t;e++)n[r(412)](c,{at:s});return c[r(427)](s)[r(427)](a)}[Re(403)](e,t){const r=Re,{plugins:n}=this[r(411)],{model:o}=e;n[r(357)](r(400))&&n[r(355)](r(400))[r(359)](t)[r(413)]&&o[r(343)](t)}}function $e(e,t){var r=Le();return($e=function(e,t){return r[e-=432]})(e,t)}var Ne=$e;function Le(){var e=["715749RJWXND","AIAdapter","aiadapter-text-adapter-not-set","AIRequestError","104zAQsqP","afterInit","3XjpJeg","1392124SdWKaO","isOfficialPlugin","10cLoptD","2514908bFApNU","1080464RlyDlH","71930RlzThJ","isPremiumPlugin","pluginName","5268738XOfTOw","textAdapter","name","351967vLkRNe","936WtNBqT"];return(Le=function(){return e})()}!function(e){for(var t=$e,r=e();;)try{if(727571===-parseInt(t(435))/1+-parseInt(t(445))/2*(-parseInt(t(441))/3)+parseInt(t(442))/4*(-parseInt(t(444))/5)+parseInt(t(450))/6+parseInt(t(433))/7*(parseInt(t(439))/8)+-parseInt(t(434))/9*(parseInt(t(447))/10)+parseInt(t(446))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Le);class Be extends e.Plugin{static get[Ne(449)](){return Ne(436)}static get[Ne(443)](){return!0}static get[Ne(448)](){return!0}[Ne(440)](){var e=Ne;if(!this[e(451)])throw new t.CKEditorError(e(437),null)}}class Ue extends Error{constructor(e){var t=Ne;super(e),this[t(432)]=t(438)}}function De(e,t,r){const n=e.t;switch(t){case"Edit or review":return n("Edit or review");case"Improve writing":return n("Improve writing");case"Make shorter":return n("Make shorter");case"Make longer":return n("Make longer");case"Simplify language":return n("Simplify language");case"Generate from selection":return n("Generate from selection");case"Summarize":return n("Summarize");case"Continue":return n("Continue");case"Change tone":return n("Change tone");case"Professional":return n("Professional");case"Casual":return n("Casual");case"Direct":return n("Direct");case"Confident":return n("Confident");case"Friendly":return n("Friendly");case"Change style":return n("Change style");case"Business":return n("Business");case"Legal":return n("Legal");case"Journalism":return n("Journalism");case"Poetic":return n("Poetic");case"Translate":return n("Translate");case"English":return n("English");case"Spanish":return n("Spanish");case"German":return n("German");case"Portuguese":return n("Portuguese");case"French":return n("French");case"Simplified Chinese":return n("Simplified Chinese");case"Hindi":return n("Hindi");case"Arabic":return n("Arabic");case"AI Assistant":return n("AI Assistant");case"AI Commands":return n("AI Commands");case"Ask AI to edit or generate":return n("Ask AI to edit or generate");case"Ask AI to improve generated text":return n("Ask AI to improve generated text");case"Copy":return n("Copy");case"Submit":return n("Submit");case"Insert below":return n("Insert below");case"Try again":return n("Try again");case"Stop":return n("Stop");case"AI is writing...":return n("AI is writing...");case"AI is writing":return n("AI is writing");case"Generated content: %0":return n("Generated content: %0",r);case"Error during AI content generation: %0":return n("Error during AI content generation: %0",r);case"History":return n("History");case"Empty history":return n("Empty history");case"Ask AI and your prompts will be listed here for you to use later.":return n("Ask AI and your prompts will be listed here for you to use later.");case"Prompt history":return n("Prompt history");case"Clear":return n("Clear");case"AI_REPLACE_CONTENT":return n({id:"AI_REPLACE_CONTENT",string:"Replace"});case"AI_INSERT_CONTENT":return n({id:"AI_INSERT_CONTENT",string:"Insert"});case"AI_ERROR_GET_HEADERS":return n({id:"AI_ERROR_GET_HEADERS",string:"Preparing request headers failed"});case"AI_ERROR_GET_PARAMETERS":return n({id:"AI_ERROR_GET_PARAMETERS",string:"Preparing request parameters failed"});case"AI_ERROR_UNSUPPORTED_MODEL":return n({id:"AI_ERROR_UNSUPPORTED_MODEL",string:'The requested AI model ("%0") is not supported'},r);case"AI_ERROR_CONTEXT_LENGTH":return n({id:"AI_ERROR_CONTEXT_LENGTH",string:"Selected content is too long"});case"AI_ERROR_MODERATION":return n({id:"AI_ERROR_MODERATION",string:"Requested query does not pass moderation rules"});case"AI_ERROR_FAILED":return n({id:"AI_ERROR_FAILED",string:"Failed to communicate with the AI service"});default:return t}}function Fe(e,t){const r=Ve();return(Fe=function(e,t){return r[e-=161]})(e,t)}const He=Fe;!function(e){const t=Fe,r=e();for(;;)try{if(348076===-parseInt(t(186))/1*(parseInt(t(169))/2)+-parseInt(t(173))/3*(parseInt(t(194))/4)+parseInt(t(191))/5+parseInt(t(179))/6*(parseInt(t(195))/7)+-parseInt(t(197))/8+-parseInt(t(171))/9*(parseInt(t(206))/10)+-parseInt(t(198))/11*(-parseInt(t(187))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ve);class je extends e.Command{constructor(e,t){const r=Fe;super(e),this[r(161)]=t,this[r(165)](r(166),[]),this.on(r(196),((e,t,n)=>{const o=r;this[o(190)]&&(this[o(166)]=ze(this[o(161)],n))})),this[r(165)](r(185),!1),this.on(r(204),((e,t,n)=>{const o=r;this[o(166)]=n?ze(this[o(161)],this[o(185)]):[]}))}[He(201)](){const e=He,t=this[e(162)][e(177)];this[e(185)]=function(t){const r=e,n=t[r(163)][r(176)];return n[r(184)]?0!==[...n[r(167)]()][r(172)]&&![...n[r(167)]()][0][r(203)]:!!t[r(180)](n[r(200)]())}(t);const r=t[e(163)][e(176)],n=this[e(162)][e(192)][e(188)](e(193));for(const t of r[e(183)]())for(const r of t[e(164)]())if(r.is(e(202))&&n[e(181)](r[e(178)]))return void(this[e(190)]=!1);this[e(190)]=!0}[He(168)](e="",t="",r=He(170)){const n=He;this[n(162)][n(175)][n(188)](mr)[n(182)](e,t,r)}}function ze(e,t){const r=He,n=new Set;for(const o of e[r(174)]())(t||!1===o[r(199)])&&n[r(205)](o.id);return Array[r(189)](n)}function Ve(){const e=["isEnabled","3465155tFIEVH","config","ai.aiAssistant.disabledElements","956VTTbQO","14469ZGXzMk","change:_hasContext","2590544BZaCcZ","11gQFboC","requiresContent","getFirstRange","refresh","element","isEmpty","change:isEnabled","add","10QzVpmc","_commandDefinitions","editor","document","getItems","set","enabledCommandsIds","getSelectedBlocks","execute","13782ZSQWAS","custom","1234665XfCNnl","length","3921cIZnrN","values","plugins","selection","model","name","1278ODqSQX","hasContent","includes","showUI","getRanges","isCollapsed","_hasContext","43sflVtG","3413556tWrEZR","get","from"];return(Ve=function(){return e})()}const qe=Ze;function Ge(){const e=["_parseAndNormalizeContent","734436XbWYSu","startsWith","message","```","17308vwUCjC","custom","config","handleError","set","currentContext","data","innerHTML","stringify","_stripMarkdownSyntax","_normalizeResponseHeadings","element","body","ELEMENT_NODE","2464791uldAGY","previousLabel","exec","document","textAdapter","18wZgXwv","56wQEwpn","abort","processor","remove","makeRequest","once","_sanitizeHTML","serializeToString","destroy","517GAvmxl","previousContext","430llcyfc","_xmlSerializer","mainAction","startProcessing","editing","trim","<h1></h1>","from","value","reset","parseFromString","finally","currentResponse","viewToDom","_isH1TagSupportEnabled","view","finishProcessing","reverse","markers","prompt","listenTo","stopProcessing","_handleQuery","submitPrompt","editor","catch","domConverter","clear","isProcessing","endsWith","previousQuery","rename","initialContext","createElement","397412EGDBCg","_sanitizationContainer","1622862QWyzpR","updateView","get","render","match","ai.aiAssistant.preserveComments","stopListening","145380nfKgdq","tryAgainEvent","```html","_domParser","then","previousActionId","name","toModel","setContentOf","2272753IUKRqm","childNodes","set:currentContext","text/html","querySelector","substring","htmlProcessor","toView","nodeType","length","isRendered","div","push"];return(Ge=function(){return e})()}!function(e){const t=Ze,r=e();for(;;)try{if(499223===parseInt(t(478))/1+-parseInt(t(480))/2+parseInt(t(528))/3+parseInt(t(514))/4*(parseInt(t(545))/5)+-parseInt(t(533))/6*(-parseInt(t(496))/7)+-parseInt(t(534))/8*(parseInt(t(510))/9)+parseInt(t(487))/10*(-parseInt(t(543))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ge);const We=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,"is");function Ze(e,t){const r=Ge();return(Ze=function(e,t){return r[e-=474]})(e,t)}class Ke extends((0,t.ObservableMixin)()){constructor(e,t,r){const n=Ze;super(),this[n(569)]=e,this[n(532)]=t,this[n(479)]=document[n(477)](n(507)),this[n(490)]=new DOMParser,this[n(546)]=new XMLSerializer,this[n(560)]=r,this[n(518)]({initialContext:"",currentContext:"",currentResponse:"",previousContext:void 0,previousQuery:void 0,previousLabel:void 0,isProcessing:!1}),this.on(n(498),((e,t,r)=>{const o=n;this[o(560)][o(553)]=this[o(540)](r)})),this[n(565)](this[n(560)],n(568),((e,t)=>{const r=n,o=this[r(519)]||this[r(476)];this[r(567)](t,o,r(515))})),this[n(565)](this[n(560)],n(488),(()=>{const e=n;this[e(560)][e(564)]=this[e(529)],this[e(567)](this[e(474)],this[e(544)],this[e(492)],this[e(529)])})),this[n(565)](this[n(560)],n(566),(()=>{this[n(566)]()}))}[qe(542)](){this[qe(486)]()}async[qe(481)]({actionId:e,query:t,htmlContent:r,label:n,mainActionLabel:o}){const i=qe;this[i(560)][i(564)]=n,this[i(560)][i(547)]=o,this[i(476)]=r,t&&(this[i(560)][i(506)]?this[i(567)](t,r,e,n):this[i(560)][i(539)](i(483),(()=>{this[i(567)](t,r,e,n)})))}[qe(566)](){const e=qe;this[e(573)]&&(this[e(573)]=!1,this[e(560)][e(561)](),this[e(532)][e(535)]())}[qe(554)](){const e=qe;this[e(476)]="",this[e(519)]="",this[e(557)]="",this[e(544)]="",this[e(474)]="",this[e(529)]="",this[e(492)]=void 0,this[e(560)][e(554)](),this[e(566)]()}async[qe(567)](e,t,r,n){const o=qe;return this[o(573)]=!0,this[o(560)][o(548)](),this[o(544)]=t,this[o(474)]=e,this[o(529)]=n||e,this[o(492)]=r,new Promise((n=>{const i=o;this[i(532)][i(538)]({query:e,context:t,onData:e=>{const t=i;this[t(557)]=e,this[t(519)]=this[t(509)](this[t(557)])},actionId:r})[i(491)]((()=>{const e=i;!this[e(519)]&&this[e(557)]&&(this[e(519)]=this[e(509)](this[e(557)],!0))}))[i(570)]((e=>{const t=i;e instanceof Ue?this[t(560)][t(517)](e[t(512)]):this[t(560)][t(517)](),n()}))[i(556)]((()=>{this[i(566)](),n()}))}))}[qe(509)](e,t=!1){const r=qe,n=We[r(530)](e);e=n?e[r(501)](n[1][r(505)]):e[r(505)]<100&&!t?"":this[r(523)](e);const o=this[r(490)][r(555)](e,r(499));if(n){const e=Array[r(552)](o[r(526)][r(497)]);e[r(562)]();for(const t of e){if(t[r(504)]==Node[r(527)])break;t[r(537)]()}}const i=this[r(569)][r(520)][r(536)][r(503)](this[r(546)][r(541)](o[r(526)]));this[r(559)]()||this[r(524)](i);const s=this[r(569)][r(516)][r(482)](r(485)),a=this[r(569)][r(520)][r(494)](i);return s||a[r(563)][r(572)](),this[r(569)][r(520)][r(522)](a)}[qe(524)](e){const t=qe,r=new Ie.UpcastWriter(this[t(569)][t(549)][t(560)][t(531)]),n=new Ie.Matcher({name:/^h[1-5]$/}),o=[];let i=!1;for(const r of e)r.is(t(525))&&n[t(484)](r)&&(o[t(508)](r),"h1"==r[t(493)]&&(i=!0));if(i)for(const e of o)r[t(475)]("h"+(parseInt(e[t(493)][1])+1),e)}[qe(559)](){const e=qe,{data:t,editing:r}=this[e(569)],n=t[e(502)][e(503)](e(551)),o=t[e(503)](t[e(494)](n));return!!r[e(560)][e(571)][e(558)](o)[e(500)]("h1")}[qe(540)](e){const t=qe;return this[t(569)][t(549)][t(560)][t(571)][t(495)](this[t(479)],e),this[t(479)][t(521)]}[qe(523)](e){const t=qe,r=e[t(550)]();return r[t(511)](t(489))?r[t(574)](t(513))?r[t(501)](7,r[t(505)]-3):r[t(501)](7):e}}const Qe=Ye;function Je(){const e=["REPLACE","40855DnJmCi","663056wIJIpy","3aHkSta","insertButton","294xQFBNG","mainAction","toUpperCase","label","672124BzvcjQ","stopButton","insert","ck-button-action","Insert below","_createButton","10gVoQXF","14FDJQHD","34752vzzRWx","ck-hidden","423577RlrUfg","addMany","1969389pihEAj","Stop","ck-ai-form__toolbar","AI_","replaceButton","set","locale","bind","24cDSrhp","items","1325596xoIUQk","replace","Try again","_CONTENT","tryAgainButton","extendTemplate","bindTemplate","isVisible"];return(Je=function(){return e})()}function Ye(e,t){const r=Je();return(Ye=function(e,t){return r[e-=212]})(e,t)}!function(e){const t=Ye,r=e();for(;;)try{if(229269===parseInt(t(226))/1+-parseInt(t(218))/2+-parseInt(t(212))/3*(parseInt(t(240))/4)+-parseInt(t(249))/5*(-parseInt(t(214))/6)+-parseInt(t(225))/7*(-parseInt(t(250))/8)+-parseInt(t(230))/9*(-parseInt(t(224))/10)+parseInt(t(228))/11*(parseInt(t(238))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Je);const Xe={REPLACE:Qe(241),INSERT:Qe(220)};class et extends o.ToolbarView{constructor(e){const t=Qe;super(e),this[t(235)](t(247),!1),this[t(235)](t(215),Xe[t(248)]),this[t(234)]=this[t(223)]("",t(221)),this[t(234)][t(237)](t(217)).to(this,t(215),(r=>De(e,t(233)+r[t(216)]()+t(243)))),this[t(213)]=this[t(223)](De(e,t(222))),this[t(244)]=this[t(223)](De(e,t(242))),this[t(219)]=this[t(223)](De(e,t(231)));const r=this[t(246)];this[t(245)]({attributes:{class:[t(232),r.if(t(247),t(227),(e=>!e))]}}),this[t(239)][t(229)]([this[t(234)],this[t(213)],this[t(244)],this[t(219)]])}[Qe(223)](e,t){const r=Qe,n=new o.ButtonView(this[r(236)]);return n[r(235)]({label:e,class:t||"",isVisible:!0,withText:!0}),n}}const tt='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.801a.7.7 0 0 0-.7.7v11.5a.8.8 0 0 1-1.6 0v-11.5a2.3 2.3 0 0 1 2.3-2.3h6.5a.8.8 0 0 1 0 1.6H5Zm.7 3.7a2.3 2.3 0 0 1 2.3-2.3h7a2.3 2.3 0 0 1 2.3 2.3v10a2.3 2.3 0 0 1-2.3 2.3H8a2.3 2.3 0 0 1-2.3-2.3v-10Zm2.3-.7a.7.7 0 0 0-.7.7v10a.7.7 0 0 0 .7.7h7a.7.7 0 0 0 .7-.7v-10a.7.7 0 0 0-.7-.7H8Z"/></svg>',rt=ot;function nt(){const e=["mousedown","ck-ai-form__copy-button","appendChild","focus","smooth","setEndBefore"," ck-ai-form__copy-button--copied","textContent","execute","2640996VYMEdq","lastElementChild","absolute","innerHTML","loaderView","listenTo","createRange","change:value","126TYmgjx","68307lpanrX","bind","Copy","change:isProcessing","ck-ai-form__copy-button-wrapper","left","scrollTo","clipboard","set","style","isProcessing","addRange","execCommand","isEnabled","<span>]</span>","146MhlTcV","appendLoader","ck-reset_all-excluded","ck-ai-form__loader","ck-ai-form__content-area--processing","createElement","getSelection","_createLoader","removeAllRanges","text/html","text/plain","wheel","1731975fuqNLs","1711752Qqmzlb","scrollHeight","locale","-9999px","div","ck-hidden","firstElementChild","value","<span>[</span>","copyButtonView","setTemplate","_createCopyButton","remove","body","AI is writing...","ck-ai-form__content-area-wrapper","copy","setContent","icon","write","bindTemplate","_copyHTMLToClipboard",".ck-ai-form__loader","querySelector","contentFieldView","setStartAfter","render","position","3064873bWfvxY","ck-ai-form__content-field","1822190ZnEmvH","6pHMKgf","4131345ndlkLE","element","isVisible","class","ck-content","ClipboardItem","ck-ai-form__content-area","check"];return(nt=function(){return e})()}function ot(e,t){const r=nt();return(ot=function(e,t){return r[e-=328]})(e,t)}!function(e){const t=ot,r=e();for(;;)try{if(867342===-parseInt(t(343))/1+parseInt(t(331))/2*(-parseInt(t(402))/3)+parseInt(t(393))/4+parseInt(t(376))/5+parseInt(t(375))/6*(parseInt(t(372))/7)+-parseInt(t(344))/8+-parseInt(t(401))/9*(-parseInt(t(374))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(nt);class it extends o.View{constructor(e,t=""){const r=ot;super(e),this[r(410)]({value:null,isVisible:!1,isProcessing:!1});const n=this[r(364)];this[r(368)]=new st(e,t),this[r(353)]=this[r(355)](),this[r(354)]({tag:r(348),attributes:{class:["ck",r(359),n.if(r(378),r(349),(e=>!e))],tabindex:"-1"},children:[{tag:r(348),attributes:{class:["ck",r(382),n.if(r(412),r(335))]},children:[this[r(368)],{tag:r(348),attributes:{class:["ck",r(406)]},children:[this[r(353)]]}]}]})}[rt(370)](){const e=rt;super[e(370)](),this[e(351)]&&this[e(368)][e(361)](this[e(351)]);let t=!1;this.on(e(400),((r,n,o)=>{const i=e,s=!this[i(368)][i(377)][i(367)](i(366));this[i(368)][i(361)](o),this[i(412)]&&s&&!t&&this[i(377)][i(408)]({top:this[i(377)][i(345)],behavior:i(388)})})),this.on(e(405),((r,n,o)=>{const i=e;t=!1,o?(this[i(351)]=null,this[i(368)][i(332)]()):this[i(351)]||this[i(368)][i(361)]("")})),this[e(398)](this[e(377)],e(342),(()=>{t=!0})),this[e(398)](this[e(377)],e(384),(()=>{t=!0}))}[rt(387)](){const e=rt;this[e(377)][e(387)]()}[rt(355)](){const t=rt,r=this[t(346)],n=new o.ButtonView(this[t(346)]),i=t(385);return n[t(410)]({label:De(r,t(404)),icon:tt,class:i,tooltip:!0}),n[t(403)](t(378)).to(this,t(351),(e=>!!e)),n[t(403)](t(329)).to(this,t(412),(e=>!e)),n.on(t(392),(()=>{const r=t;this[r(365)](this[r(368)][r(377)]),n[r(362)]=e.icons[r(383)],n[r(379)]=i+r(390),this[r(387)](),setTimeout((()=>{const e=r;n[e(362)]=tt,n[e(379)]=i}),1e3)})),n}[rt(365)](e){const r=rt,{window:n,document:o}=t.global;if(n[r(381)]){const{Blob:t,ClipboardItem:o}=n,i=[new o({"text/html":new t([e[r(396)]],{type:r(340)}),"text/plain":new t([e[r(391)]||""],{type:r(341)})})];navigator[r(409)][r(363)](i)}else{const t=o[r(336)](r(348));t[r(411)][r(371)]=r(395),t[r(411)][r(407)]=r(347),t[r(396)]=r(352)+e[r(396)]+r(330),o[r(357)][r(386)](t);const i=o[r(399)]();i[r(369)](t[r(350)]),i[r(389)](t[r(394)]);const s=n[r(337)]();s[r(339)](),s[r(413)](i),o[r(328)](r(360)),t[r(356)]()}}}class st extends o.View{constructor(e,t=""){const r=rt;super(e),this[r(397)]=this[r(338)](),this[r(354)]({tag:r(348),attributes:{class:["ck",r(380),t,r(333),r(373)]}})}[rt(361)](e){const t=rt;this[t(377)][t(396)]=e}[rt(332)](){const e=rt;this[e(377)][e(386)](this[e(397)][e(377)])}[rt(338)](){const e=rt,t=new o.View,r=this[e(346)],n=new o.SpinnerView;return n[e(378)]=!0,t[e(354)]({tag:e(348),attributes:{class:["ck",e(334)]},children:[n,{text:De(r,e(358))}]}),t[e(370)](),t}}function at(){const e=["202010MTFxUK","set","7338758FzofEf","ck-ai-form__error","67563AATPcY","2702oVFacG","3329964fInNPB","setTemplate","2433UtRRJT","7275072bMUpcS","div","text","7917174pPXdzv","bindTemplate","content","24bqzOhX"];return(at=function(){return e})()}function ct(e,t){const r=at();return(ct=function(e,t){return r[e-=465]})(e,t)}!function(e){const t=ct,r=e();for(;;)try{if(680141===-parseInt(t(470))/1+parseInt(t(471))/2*(-parseInt(t(474))/3)+-parseInt(t(472))/4+-parseInt(t(466))/5*(parseInt(t(465))/6)+parseInt(t(468))/7+parseInt(t(475))/8+parseInt(t(478))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(at);class ut extends o.View{constructor(e,t=""){const r=ct;super(e);const n=new o.IconView,i=this[r(479)];this[r(467)](r(477),t),n[r(480)]='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M9.9 4.385a1.2 1.2 0 0 0-.44.44h.002l-5.284 9.15a1.2 1.2 0 0 0 1.04 1.8h10.564a1.2 1.2 0 0 0 1.04-1.8l-5.282-9.15a1.2 1.2 0 0 0-1.64-.44Zm.05 8.363a.301.301 0 0 1 .115-.023h.9a.301.301 0 0 1 .3.3v.9a.3.3 0 0 1-.3.3h-.9a.3.3 0 0 1-.3-.3v-.9a.3.3 0 0 1 .185-.277Zm-.185-4.723a.3.3 0 0 1 .3-.3h.9a.3.3 0 0 1 .3.3v3.4a.3.3 0 0 1-.3.3h-.9a.301.301 0 0 1-.3-.3v-3.4Z"/></svg>\n',this[r(473)]({tag:r(476),attributes:{class:["ck",r(469)]},children:[n,{text:i.to(r(477))}]})}}const lt=dt;function dt(e,t){const r=gt();return(dt=function(e,t){return r[e-=492]})(e,t)}function gt(){const e=["excludeScrollbarsAndBorders","showHistoryButtonView","bind","submit","locale","maxRows","requestAnimationFrame","fieldWrapperChildren","focusFirst","minRows","execute","focus","106357KYLyCP","enter","left","render","rtl","element","isEmpty","focusableChildren","style","resultsView","243BAhVgH","3367488hgtWcI","History","target","Submit","uiLanguageDirection","ck-ai-form__submit","update","_createSubmitButton","isVisible","_createShowHistoryButton","children","ck-ai-form__toggle-history","history","right","fire","1728552LnQgGI","queryView","set","3579860JdrtRz","keystrokes","fieldView","value","add","focusCycler","1096IHrwtC","focusLast","isEnabled","width","submitButtonView","filteredView","2896960pbeRMx","6yOpbwB","170740byNuoi","window","417YIrEhG","isOn"];return(gt=function(){return e})()}!function(e){const t=dt,r=e();for(;;)try{if(363823===-parseInt(t(531))/1*(-parseInt(t(514))/2)+-parseInt(t(517))/3*(-parseInt(t(507))/4)+parseInt(t(501))/5+-parseInt(t(542))/6+-parseInt(t(498))/7+-parseInt(t(513))/8+-parseInt(t(541))/9*(-parseInt(t(515))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(gt);class ht extends o.AutocompleteView{constructor(e,t){const r=dt;super(e,t),this[r(499)][r(503)][r(528)]=1,this[r(499)][r(503)][r(524)]=3,this[r(511)]=this[r(549)](),this[r(520)]=this[r(492)](),this[r(538)][r(505)](this[r(520)],1),this[r(538)][r(505)](this[r(511)])}[lt(534)](){const e=lt;super[e(534)](),this[e(499)][e(526)][e(505)](this[e(520)]),this[e(493)][e(505)](this[e(511)]),this[e(502)][e(500)](e(532),((t,r)=>{const n=e;t[n(544)]==this[n(499)][n(503)][n(536)]&&(this[n(522)](),r())}))}[lt(549)](){const e=lt,t=new o.ButtonView(this[e(523)]),r=this[e(523)];return t[e(500)]({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.875 4.419a.75.75 0 0 0-1.5 0v7.25H6.818l2.33-1.955a.75.75 0 0 0-.963-1.15l-3.792 3.182a.75.75 0 0 0-.17.945c.046.11.118.208.21.284l3.788 3.18a.75.75 0 1 0 .965-1.149l-2.19-1.837h7.629c.69 0 1.25-.56 1.25-1.25v-7.5Z"/></svg>',label:De(r,e(545)),isVisible:!0,tooltip:!0,class:e(547)}),t.on(e(529),(()=>{this[e(522)]()})),t[e(521)](e(509)).to(this[e(499)][e(503)],e(537),this,e(509),((e,t)=>!e&&t)),t}[lt(492)](){const r=lt,n=new o.ButtonView(this[r(523)]),i=this[r(540)],s=this[r(523)];n[r(500)]({label:De(s,r(543)),withText:!1,icon:e.icons[r(495)],tooltip:!0,tooltipPosition:"sw",class:r(494)}),n[r(521)](r(518)).to(i,r(550)),n[r(521)](r(509)).to(this,r(509)),n.on(r(529),(()=>{const e=r;i[e(550)]=!i[e(550)],i[e(550)]?this[e(512)][e(530)]():this[e(530)]()}));const a=()=>{const e=r;t.global[e(516)][e(525)]((()=>{const r=e;if((0,t.isVisible)(this[r(536)])){const e=new t.Rect(this[r(499)][r(503)][r(536)]),o=e[r(510)],i=r(535)===s[r(546)]?r(533):r(496);e[r(519)](),n[r(536)][r(539)][i]=o-e[r(510)]+1+"px"}}))};return this[r(499)][r(503)].on(r(548),a),this.on(r(534),a),n}[lt(522)](){const e=lt,t=this[e(499)][e(503)][e(536)][e(504)];this[e(497)](e(522),t)}[lt(530)](e){const t=lt;-1===e?this[t(506)][t(508)]():this[t(506)][t(527)]()}}function pt(e,t){const r=mt();return(pt=function(e,t){return r[e-=365]})(e,t)}const ft=pt;function mt(){const e=["7Qgmxfw","clearHistoryButton","3182676rBUVBd","filter","historyGroupView","fire","Clear","delegate","_createClearHistoryButton","747144DLuZPP","locale","102TBGImP","length","10641790hYDRlP","execute","items","set","add","484606DQaDrr","children","23846oFQqWj","2907624lXuvZw","clearHistory","Prompt history","3340155UCrkLc","9UJDDdo","label"];return(mt=function(){return e})()}!function(e){const t=pt,r=e();for(;;)try{if(336717===-parseInt(t(380))/1+-parseInt(t(382))/2*(-parseInt(t(373))/3)+parseInt(t(371))/4+-parseInt(t(386))/5+parseInt(t(391))/6*(-parseInt(t(389))/7)+parseInt(t(383))/8*(parseInt(t(387))/9)+parseInt(t(375))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(mt);class kt extends o.ListView{constructor(e){const t=pt;super(e),this[t(390)]=this[t(370)](),this[t(366)]=new o.ListItemGroupView,this[t(366)][t(381)][t(379)](this[t(390)],1),this[t(366)][t(388)]=De(e,t(385)),this[t(366)][t(377)][t(369)](t(376)).to(this),this[t(377)][t(379)](this[t(366)])}[ft(365)](){const e=ft;let t=0;for(const r of this[e(377)])t+=r[e(377)][e(374)];return{resultsCount:t,totalItemsCount:t}}[ft(370)](){const e=ft,t=this[e(372)],r=new o.ButtonView(this[e(372)]);return r[e(378)]({label:"("+De(t,e(368))+")",withText:!0}),r.on(e(376),(()=>this[e(367)](e(384)))),r}}const bt="object"==typeof global&&global&&global.Object===Object&&global;var wt="object"==typeof self&&self&&self.Object===Object&&self;const vt=(bt||wt||Function("return this")()).Symbol;const yt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o};const _t=Array.isArray;var St=Object.prototype,At=St.hasOwnProperty,xt=St.toString,Et=vt?vt.toStringTag:void 0;const It=function(e){var t=At.call(e,Et),r=e[Et];try{e[Et]=void 0;var n=!0}catch(e){}var o=xt.call(e);return n&&(t?e[Et]=r:delete e[Et]),o};var Rt=Object.prototype.toString;const Pt=function(e){return Rt.call(e)};var Mt=vt?vt.toStringTag:void 0;const Ct=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Mt&&Mt in Object(e)?It(e):Pt(e)};const Tt=function(e){return null!=e&&"object"==typeof e};const Ot=function(e){return"symbol"==typeof e||Tt(e)&&"[object Symbol]"==Ct(e)};var $t=vt?vt.prototype:void 0,Nt=$t?$t.toString:void 0;const Lt=function e(t){if("string"==typeof t)return t;if(_t(t))return yt(t,e)+"";if(Ot(t))return Nt?Nt.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const Bt=function(e){return null==e?"":Lt(e)};const Ut=function(e){return function(t){return null==e?void 0:e[t]}};const Dt=Ut({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ft=/&(?:amp|lt|gt|quot|#39);/g,Ht=RegExp(Ft.source);const jt=function(e){return(e=Bt(e))&&Ht.test(e)?e.replace(Ft,Dt):e};function zt(e,t){const r=qt();return(zt=function(e,t){return r[e-=426]})(e,t)}!function(e){const t=zt,r=e();for(;;)try{if(341380===-parseInt(t(426))/1*(parseInt(t(440))/2)+-parseInt(t(442))/3*(-parseInt(t(439))/4)+parseInt(t(434))/5*(-parseInt(t(443))/6)+parseInt(t(435))/7*(-parseInt(t(429))/8)+parseInt(t(436))/9*(-parseInt(t(438))/10)+parseInt(t(437))/11+-parseInt(t(432))/12*(parseInt(t(430))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(qt);class Vt extends o.ListItemView{constructor(e){const t=zt;super();const r=new o.ButtonLabelView,n=new o.ButtonView(this[t(433)],r);this[t(444)][t(431)](n),n[t(428)]({label:e[t(445)],withText:!0}),n.on(t(441),(()=>{const r=t;this[r(427)](r(441),{value:jt(e[r(445)])})}))}}function qt(){const e=["756290vljbZd","3794bKOIxK","54AkZhZc","5261102FWhMWM","395340byFNCA","284rANTUP","39392bReXIW","execute","26355KbNJTC","6wDdenb","children","prompt","2SbjZLY","fire","set","3112iUoCeA","10933ErmRrL","add","1740gVJykd","locale"];return(qt=function(){return e})()}const Gt=Wt;function Wt(e,t){const r=Kt();return(Wt=function(e,t){return r[e-=241]})(e,t)}!function(e){const t=Wt,r=e();for(;;)try{if(318464===-parseInt(t(256))/1+parseInt(t(247))/2+-parseInt(t(260))/3+-parseInt(t(258))/4+-parseInt(t(252))/5*(-parseInt(t(251))/6)+parseInt(t(254))/7*(-parseInt(t(265))/8)+parseInt(t(266))/9*(-parseInt(t(243))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Kt);const Zt=Gt(264);function Kt(){const e=["CKEditor/AIFormView/PromptHistory","556744CcwuZO","288NePWGF","trim","_loadFromSessionStorage","45460kCxkHG","addMany","setItem","toLowerCase","1102072giLAjZ","map","parse","getItem","1482lMEsBC","11985hyPNhV","_saveToSessionStorage","28siGCBN","remove","167009QXyLya","length","565800FjgRCV","stringify","276984cQQwEz","prompt","add","last"];return(Kt=function(){return e})()}class Qt extends t.Collection{constructor(){const e=Gt;super(),this[e(242)](),this.on(e(262),((t,r)=>{const n=e,o=Jt(r[n(261)]);for(const e of this)if(e!=r&&Jt(e[n(261)])===o){this[n(255)](e);break}this[n(257)]>20&&this[n(255)](this[n(263)]),this[n(253)]()})),this.on(e(255),(()=>{this[e(253)]()}))}[Gt(242)](){const e=Gt,t=sessionStorage[e(250)](Zt)||"[]";this[e(244)](JSON[e(249)](t))}[Gt(253)](){const e=Gt;sessionStorage[e(245)](Zt,JSON[e(259)](this[e(248)]((e=>e))))}}function Jt(e){const t=Gt;return e[t(246)]()[t(241)]()}const Yt=Ut({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var Xt=/[&<>"']/g,er=RegExp(Xt.source);const tr=function(e){return(e=Bt(e))&&er.test(e)?e.replace(Xt,Yt):e},rr=or;function nr(){const e=["_focusables","setTemplate","ck-ai-form","bindTo","insertContentBelow","items","text","copyButtonView","contentArea","ck-ai-form-content","div","errorView","handleError","reset","prompt","value","toolbar","_promptHistory","historyGroupView","add","createCollection","high","focus","Empty history","render","Ask AI to edit or generate","replaceContent","fieldView","2662565wYrZUK","startProcessing","11RvGXFh","10792FdYHVi","Ask AI to improve generated text","bindTemplate","delegate","execute","set","shift + tab","tryAgainEvent","474KQBTFO","4501980cwzhSe","keystrokes","isError","focusLast","focusFirst","1MZiNuw","9hTVDzc","replaceButton","isEnabled","clearHistory","5403540SHavJm","_createHistoryView","submitPrompt","14ZIqVas","focusCycler","AI_ERROR_FAILED","finishProcessing","stopProcessing","_createToolbar","REPLACE","search","tab","promptView","ck-hidden","isProcessing","Ask AI and your prompts will be listed here for you to use later.","isVisible","listenTo","199860DFTwmd","label","fire","3022560nXnBHl","_createPromptView","bind","queryView","tryAgainButton","element","trim","locale","stopButton","571678KRkAXO","chain","focusTracker","mainAction","submit","insertButton","clear"];return(nr=function(){return e})()}function or(e,t){const r=nr();return(or=function(e,t){return r[e-=348]})(e,t)}!function(e){const t=or,r=e();for(;;)try{if(402703===-parseInt(t(352))/1*(-parseInt(t(387))/2)+-parseInt(t(433))/3*(parseInt(t(425))/4)+-parseInt(t(422))/5+parseInt(t(434))/6+-parseInt(t(360))/7*(-parseInt(t(378))/8)+parseInt(t(353))/9*(parseInt(t(375))/10)+parseInt(t(424))/11*(-parseInt(t(357))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(nr);class ir extends o.View{constructor(e,r,n=""){const i=or;super(e),this[i(430)](i(355),!0),this[i(430)](i(371),!1),this[i(430)](i(408),""),this[i(430)](i(409),""),this[i(430)](i(349),!1),this[i(430)](i(390),Xe[i(366)]),this[i(411)]=new Qt,this[i(405)]=new ut(e),this[i(402)]=new it(e,n),this[i(402)][i(380)](i(371)).to(this),this[i(402)][i(380)](i(409)).to(this),this[i(410)]=this[i(365)](),this[i(410)][i(380)](i(390)).to(this),this[i(369)]=this[i(379)](),this[i(389)]=new t.FocusTracker,this[i(348)]=new t.KeystrokeHandler,this[i(394)]=this[i(414)]([this[i(402)],this[i(402)][i(401)],this[i(410)],this[i(369)]]),this[i(361)]=new o.FocusCycler({focusables:this[i(394)],focusTracker:this[i(389)],keystrokeHandler:this[i(348)],actions:{focusPrevious:i(431),focusNext:i(368)}}),this[i(361)][i(388)](this[i(369)][i(361)]),this[i(369)][i(381)][i(421)][i(380)](i(409)).to(this,i(408));const s=this[i(427)];this[i(395)]({tag:i(404),attributes:{class:["ck",i(396),r],tabindex:"-1"},children:[{tag:i(404),attributes:{class:["ck",i(403)]},children:[{tag:i(404),attributes:{class:[s.if(i(349),i(370),(e=>!e))]},children:[this[i(405)]]},this[i(402)],this[i(410)],this[i(369)]]}]})}[rr(418)](){const e=rr;super[e(418)](),this[e(389)][e(413)](this[e(402)][e(383)]),this[e(389)][e(413)](this[e(402)][e(401)][e(383)]),this[e(389)][e(413)](this[e(410)][e(383)]),this[e(389)][e(413)](this[e(369)][e(383)]),this[e(348)][e(374)](this[e(383)])}[rr(416)](e=1){const t=rr;-1===e?this[t(361)][t(350)]():this[t(361)][t(351)]()}[rr(407)](){const e=rr;this[e(408)]="",this[e(409)]="",this[e(349)]=!1,this[e(369)][e(407)](),this[e(402)][e(373)]=!1,this[e(410)][e(373)]=!1}[rr(379)](){const e=rr,t=this[e(385)],r=new ht(t,{queryView:{label:De(t,e(419)),creator:o.createLabeledTextarea,showIcon:!1,showResetButton:!1},infoView:{text:{noSearchableItems:{primary:De(t,e(417)),secondary:De(t,e(372))}}},filteredView:this[e(358)](),queryMinChars:1/0,resetOnBlur:!1});return r[e(380)](e(355)).to(this,e(355),this,e(371),((e,t)=>e&&!t)),this[e(374)](r,e(391),((t,r)=>{const n=e;this[n(408)]=r;const o=tr(r);this[n(377)](n(359),o),r[n(384)]()&&this[n(411)][n(413)]({prompt:o},0)}),{priority:e(415)}),r}[rr(358)](){const e=rr,t=new kt(this[e(385)]);return t[e(412)][e(399)][e(397)](this[e(411)]).as(Vt),t.on(e(356),(()=>{const t=e;this[t(411)][t(393)](),this[t(369)][t(367)](""),this[t(369)][t(416)]()})),t}[rr(365)](){const e=rr,t=new et(this[e(385)]);return t[e(354)][e(380)](e(355)).to(this,e(355),this,e(371),this,e(409),((e,t,r)=>e&&!t&&!!r)),t[e(354)][e(428)](e(429)).to(this,e(420)),t[e(392)][e(380)](e(355)).to(this,e(355),this,e(371),this,e(409),((e,t,r)=>e&&!t&&!!r)),t[e(392)][e(428)](e(429)).to(this,e(398)),t[e(382)][e(380)](e(355)).to(this,e(355),this,e(371),((e,t)=>e&&!t)),t[e(382)][e(428)](e(429)).to(this,e(432)),t[e(386)][e(380)](e(355)).to(this,e(371)),t[e(386)][e(428)](e(429)).to(this,e(364)),t}[rr(423)](){const e=rr;this[e(409)]="",this[e(349)]=!1,this[e(371)]=!0,this[e(402)][e(373)]=!0,this[e(410)][e(373)]=!0,this[e(402)][e(416)]()}[rr(363)](){const e=rr,t=this[e(385)];this[e(371)]=!1,this[e(408)]="",this[e(369)][e(407)](),this[e(409)]&&(this[e(369)][e(381)][e(376)]=De(t,e(426)))}[rr(406)](e){const t=rr,r=this[t(385)];this[t(363)](),this[t(349)]=!0,this[t(405)][t(400)]=e||De(r,t(362)),this[t(409)]||(this[t(402)][t(373)]=!1)}}const sr='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.346 9.422a.151.151 0 0 1 .284 0l.548 1.484a.152.152 0 0 0 .09.089l1.483.549a.151.151 0 0 1 0 .284l-1.483.548a.151.151 0 0 0-.09.09l-.548 1.483a.152.152 0 0 1-.142.1.151.151 0 0 1-.142-.1l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.15.15 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .089-.09l.549-1.483Z"/><path d="M16.306 1.742a.151.151 0 0 1 .284 0l.549 1.483a.15.15 0 0 0 .089.09l1.483.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.15.15 0 0 0-.09.09l-.548 1.482a.151.151 0 0 1-.284 0l-.549-1.483a.15.15 0 0 0-.09-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.484-.549a.152.152 0 0 0 .09-.089l.548-1.483Z"/><path d="M7.665 1.742a.151.151 0 0 1 .284 0l.549 1.483a.151.151 0 0 0 .09.09l1.482.548a.151.151 0 0 1 .072.229.151.151 0 0 1-.072.055l-1.483.549a.151.151 0 0 0-.09.09L7.95 6.267a.151.151 0 0 1-.284 0l-.549-1.483a.151.151 0 0 0-.089-.09l-1.483-.548a.151.151 0 0 1 0-.284l1.483-.549a.151.151 0 0 0 .09-.089l.548-1.483-.001.001Z"/><path d="M14.72 7.946a.848.848 0 0 0 .25-.591.824.824 0 0 0-.241-.588l-1.943-1.938a.812.812 0 0 0-.588-.241.838.838 0 0 0-.591.25l-1.545 1.539 3.115 3.115 1.542-1.546h.001Z"/><path clip-rule="evenodd" d="M1.19 15.636a.96.96 0 0 1 .281-.679l7.835-7.834 3.121 3.12-7.834 7.835a.959.959 0 0 1-1.358 0l-1.764-1.764a.96.96 0 0 1-.28-.678Zm9.22-5.391-1.121-1.12-6.479 6.478 1.121 1.121 6.479-6.479Z"/></svg>';var ar=r(379),cr={attributes:{"data-cke":!0}};cr.setAttributes=g(),cr.insert=l().bind(null,"head"),cr.domAPI=c(),cr.insertStyleElement=p();s()(ar.A,cr);ar.A&&ar.A.locals&&ar.A.locals;var ur=r(181),lr={attributes:{"data-cke":!0}};lr.setAttributes=g(),lr.insert=l().bind(null,"head"),lr.domAPI=c(),lr.insertStyleElement=p();s()(ur.A,lr);ur.A&&ur.A.locals&&ur.A.locals;var dr=r(676),gr={attributes:{"data-cke":!0}};gr.setAttributes=g(),gr.insert=l().bind(null,"head"),gr.domAPI=c(),gr.insertStyleElement=p();s()(dr.A,gr);dr.A&&dr.A.locals&&dr.A.locals;const hr=br;function pr(){const e=["destroy","requires","isOn","textAdapter","label","replaceContent","listenTo","children","replace","hideUI","getSelectedElement","ai.useTheme","bind","polite","order","aiLicenseKeyEvaluationLimit","delegate","_licenseKeyCheckInterval","custom","6iLSfYU","contentArea","init","_showLicenseError","text/html","showFakeVisualSelection","1312niAllf","change:enabledCommandsIds","6LoZYpJ","AIAssistant","enabledCommandsIds","change:isProcessing","licenseKey","updateView","509744cHRfhi","isCollapsed","view","aiLicenseKeyTrialLimit","ck-ai-assistant-ui","_aiAssistantController","aiLicenseKeyValid","ai.aiAssistant.commands","push","fire","_initView","sort","copy","requiresContent","getRanges","fieldView","render","37971snMXlc","prompt","items","aiCommands","evaluationLimit","once","groupLabel","AI is writing","<p>","execute","Error during AI content generation: %0","trim","schema","body","map","get","promptView","comment","change:isError","menuPanelClass","values","expired","invalid","plugins","getData","_aiAdapter","change","from"," ck-ai-assistant-ui_theme","menuBar:aiAssistant","getLimitElement","wasMoved","isOfficialPlugin","INSERT","EDITOR_TOP_SIDE","menuitemcheckbox","insertContent","aiLicenseKeyExpired","tableOfContents","featureNotAllowed","434028WLQuTs","updatePosition","isPremiumPlugin","change:value","_formView","componentFactory","errorView","currentContext","queryView","panelView","add","AI Assistant","468nDwVze","_populateMenuBarMenu","ck-ai-commands-dropdown ","aiAssistant","set","isEnabled","_commandDefinitions","forEach","commands","insertContentBelow","update","aiLicenseKeyUsageLimit","buttons","define","showAIAssistant","setSelection","474565HypDNA","groupId","_uiCssClasses","AI Commands","Generated content: %0","_getResolvedCommandsDefinitions","media","pluginName","760TdhDPs","isFlat","ai-commands-config-order-collision","document","domainLimit","ai.aiAssistant.contentAreaCssClass","announce","95447VbHRZP","3758785wOylWB","rawHtml","editor","1IMMoVe","ai.aiAssistant.disabledElements","menuBar:aiCommands","filter","locale","1194548WMECIm","addMany","aiLicenseKeyDomainLimit","buttonView","editing","source","_dialog","model","REPLACE","reset","menuView","_forceMarkersCopy","_onExecute","_getMenuBarGroupButtons","getSelectedBlocks","</p>","command:","usageLimit","length","AIAssistantUI","_createAIAssistantUIButton","splice","aiLicenseKeyNotAllowed","show","selection","text","focus","includes","aiLicenseKeyInvalid","hideFakeVisualSelection","ck-ai-assistant-button ","DataTransfer","trialLimit","hide","robotPencil","config","showUI","_initAriaAiStatusChangeAnnouncements"];return(pr=function(){return e})()}!function(e){const t=br,r=e();for(;;)try{if(419678===-parseInt(t(351))/1*(parseInt(t(356))/2)+-parseInt(t(421))/3*(-parseInt(t(427))/4)+parseInt(t(348))/5*(parseInt(t(413))/6)+-parseInt(t(304))/7+parseInt(t(419))/8*(-parseInt(t(444))/9)+-parseInt(t(340))/10*(parseInt(t(347))/11)+-parseInt(t(316))/12*(-parseInt(t(332))/13))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(pr);const fr=globalThis[hr(387)];class mr extends e.Plugin{static get[hr(339)](){return hr(375)}static get[hr(296)](){return!0}static get[hr(306)](){return!0}static get[hr(395)](){return[Ee.ClipboardMarkersUtils,Oe,Be,o.Dialog]}constructor(e){const t=hr;super(e),this[t(334)]="",e[t(391)][t(329)](t(352),[t(338),t(349),t(302)]),e[t(391)][t(329)](t(345),""),e[t(391)][t(329)](t(405),!0),this[t(334)]=t(431)+(e[t(391)][t(279)](t(405))?t(292):"")}[hr(415)](){const e=hr,{editor:t}=this;this[e(289)]=t[e(287)][e(279)](Be),this[e(362)]=t[e(287)][e(279)](o.Dialog),this[e(308)]=null,this[e(322)]=this[e(337)]();const r=new je(t,Array[e(291)](this[e(322)][e(284)]()));t[e(324)][e(314)](e(330),r),t.ui[e(309)][e(314)](e(447),(n=>{const i=e,s=(0,o.createDropdown)(n);return s[i(320)]({class:i(318)+this[i(334)]}),s[i(359)][i(320)]({label:De(n,i(335)),icon:sr,tooltip:!0}),s.on(i(273),(e=>this[i(368)](e[i(361)].id))),(0,o.addMenuToDropdown)(s,t.ui[i(429)][i(277)],function(e){const t=i,r=xe(e[t(391)][t(279)](t(434)),e[t(355)]),n=wr(e,r)[t(354)]((e=>e[t(324)][t(374)]));return 1===n[t(374)]?wr(e,n[0][t(324)])[t(278)]((e=>({id:e.id,label:e[t(398)]}))):n[t(278)]((r=>{const n=t,{groupId:o,groupLabel:i,commands:s}=r;return{id:o,menu:i||o,children:wr(e,s)[n(278)]((e=>({id:e.id,label:e[n(398)]})))}}))}(t),{ariaLabel:De(n,i(335))}),s[i(366)][i(283)]=i(318)+this[i(334)],r.on(i(420),a),s[i(366)][i(269)](i(443),a),s;function a(){const e=i;s[e(321)]=r[e(423)][e(374)]>0;for(const t of s[e(366)][e(328)])t[e(321)]=r[e(423)][e(383)](t.id)}})),t.ui[e(309)][e(314)](e(353),(n=>{const i=e,s=new o.MenuBarMenuView(n);s[i(359)][i(320)]({label:De(n,i(335)),icon:sr}),s[i(406)](i(321)).to(r,i(423),(e=>e[i(374)]>0));const a=xe(t[i(391)][i(279)](i(434)),n);return this[i(317)](r,s,a,(e=>this[i(368)](e))),s})),t.ui[e(309)][e(314)](e(319),(()=>{const t=e,r=this[t(376)](o.ButtonView);return r[t(320)]({tooltip:!0,class:t(386)+this[t(334)]}),r})),t.ui[e(309)][e(314)](e(293),(()=>{const t=e,r=this[t(376)](o.MenuBarMenuListItemButtonView);return r[t(320)]({role:t(299)}),r})),this[e(425)]=this[e(350)][e(391)][e(279)](e(425));const n=this[e(350)];this[e(411)]=setInterval((()=>{const t=e;let r;for(const e in n){const o=e,i=n[o];if(t(433)==i||t(384)==i||t(301)==i||t(358)==i||t(378)==i||t(409)==i||t(430)==i||t(327)==i){delete n[o],r=i,clearInterval(this[t(411)]),this[t(411)]=void 0;break}}t(384)==r&&n[t(416)](t(286)),t(301)==r&&n[t(416)](t(285)),t(358)==r&&n[t(416)](t(344)),t(378)==r&&n[t(416)](t(303),t(422)),t(409)==r&&n[t(416)](t(448)),t(430)==r&&n[t(416)](t(388)),t(327)==r&&n[t(416)](t(373))}),1e3)}[hr(394)](){const e=hr;super[e(394)](),this[e(411)]&&clearInterval(this[e(411)])}[hr(392)](e="",t="",r=hr(412)){const n=hr,i=this[n(350)],s=i[n(360)][n(429)],a=i[n(287)][n(279)](Oe),c=i[n(287)][n(279)](Ee.ClipboardMarkersUtils);a[n(418)]();const u=new fr,l=new ClipboardEvent(n(439),{clipboardData:u}),d=new Ie.DataTransfer(u),g=new Ie.DomEventData(s,l,{dataTransfer:d});c[n(367)](n(281),(()=>{const e=n;s[e(343)][e(436)](e(439),g)})),this[n(308)]||(this[n(437)](),this[n(432)]=new Ke(i,this[n(289)][n(397)],this[n(308)]));let h=d[n(288)](n(417));const p=i[n(363)][n(343)][n(380)],f=Array[n(291)](p[n(441)]());1===f[n(374)]&&f[0][n(341)]&&!p[n(404)]()&&""!==h[n(402)](/&nbsp;/g,"")[n(275)]()&&(h=n(272)+h+n(371)),this[n(432)][n(426)]({actionId:r,query:e,htmlContent:h,label:t,mainActionLabel:Xe[i[n(363)][n(343)][n(380)][n(428)]?n(297):n(364)]}),n(319)!==this[n(362)].id?this[n(362)][n(379)]({id:n(319),icon:Ae[n(390)],title:De(this[n(350)][n(355)],n(315)),content:this[n(308)],position:o.DialogViewPosition[n(298)],onShow:()=>{const e=n;this[e(308)][e(382)]()},onHide:()=>{const e=n;this[e(432)][e(365)](),a[e(385)]()}}):this[n(362)][n(429)][n(295)]||this[n(362)][n(429)][n(305)]()}[hr(403)](){const e=hr;this[e(362)][e(389)]()}[hr(337)](){const e=hr,t=new Map,r=xe(this[e(350)][e(391)][e(279)](e(434)),this[e(350)][e(355)]);for(const n of r)for(const r of n[e(324)])t[e(320)](r.id,{...r,groupId:n[e(333)],groupLabel:n[e(270)]||n[e(333)]});return t}[hr(376)](e){const t=hr,r=this[t(350)],n=r[t(324)][t(279)](t(330)),o=new e(r[t(355)]);return o[t(320)]({label:De(r[t(355)],t(315)),icon:Ae[t(390)],isToggleable:!0}),o[t(406)](t(321)).to(n),o[t(406)](t(396)).to(this[t(362)],"id",(e=>t(319)===e)),this[t(400)](o,t(273),(()=>{const e=t;o[e(396)]?this[e(403)]():n[e(273)]()})),o}[hr(437)](){const e=hr,t=this[e(350)][e(287)][e(279)](Oe);this[e(308)]=new ir(this[e(350)][e(355)],this[e(334)],this[e(350)][e(391)][e(279)](e(345))),this[e(308)].on(e(307),(()=>{const t=e;this[t(362)][t(429)][t(295)]||this[t(362)][t(429)][t(305)]()})),this[e(308)][e(280)][e(312)][e(442)].on(e(326),(()=>{const t=e;this[t(362)][t(429)][t(295)]||this[t(362)][t(429)][t(305)]()})),this[e(400)](this[e(308)],e(399),(()=>{const r=e;t[r(300)](this[r(432)][r(311)]),this[r(403)]()})),this[e(400)](this[e(308)],e(325),(()=>{const r=e;t[r(325)](this[r(432)][r(311)]),this[r(403)]()})),this[e(393)]()}[hr(393)](){const e=hr,{locale:t,ui:{ariaLiveAnnouncer:r}}=this[e(350)];this[e(308)][e(414)].on(e(424),((n,o,i)=>{const s=e,a=this[s(432)][s(311)];i?r[s(346)](De(t,s(271))):a&&r[s(346)](De(t,s(336),a),{politeness:s(407),isUnsafeHTML:!0})})),this[e(308)].on(e(282),((n,o,i)=>{const s=e;if(i){const e=this[s(308)][s(310)][s(381)];r[s(346)](De(t,s(274),e))}}))}[hr(368)](e){const r=hr,n=this[r(322)][r(279)](e),o=this[r(350)],i=o[r(363)][r(343)][r(380)],s=o[r(324)][r(279)](r(330)),a=o[r(287)][r(279)](Oe),c=("_ungrouppedCommands"!==n[r(333)]?n[r(270)]+": ":"")+n[r(398)];if(!1!==n[r(440)]&&i[r(428)]){const e=(0,t.first)(i[r(370)]())||o[r(363)][r(276)][r(294)](i);o[r(363)][r(290)]((t=>{t[r(331)](e,"in")}))}a[r(418)](),s[r(273)](n[r(445)],c,r(372)+e)}[hr(317)](e,t,r,n){const i=hr,s=this[i(350)],a=s[i(355)],c=new o.MenuBarMenuListView(a),u=wr(s,r)[i(354)]((e=>e[i(324)][i(374)]));1===u[i(374)]?this[i(369)]({command:e,commands:u[0][i(324)],parentMenuView:t,onExecute:n})[i(323)]((e=>c[i(446)][i(314)](e))):u[i(323)]((({groupId:r,groupLabel:s,commands:u})=>{const l=i,d=new o.MenuBarMenuListItemView(a,t),g=new o.MenuBarMenuView(a),h=new o.MenuBarMenuListView(a),p=this[l(369)]({command:e,commands:u,parentMenuView:g,onExecute:n});g[l(359)][l(320)]({label:s||r}),g[l(410)](l(273)).to(t),h[l(446)][l(357)](p),g[l(313)][l(401)][l(314)](h),d[l(401)][l(314)](g),c[l(446)][l(314)](d)})),t[i(313)][i(401)][i(314)](c)}[hr(369)]({command:e,commands:t,parentMenuView:r,onExecute:n}){const i=hr,s=this[i(350)],a=s[i(355)];return wr(s,t)[i(278)]((t=>{const s=i,c=new o.MenuBarMenuListItemView(a,r),u=new o.MenuBarMenuListItemButtonView(a);return u[s(320)]({label:t[s(398)]}),u[s(410)](s(273)).to(r),u.on(s(273),(()=>n(t.id))),u[s(406)](s(321)).to(e,s(423),(e=>e[s(383)](t.id))),c[s(401)][s(314)](u),c}))}}function kr(e,t){const r=hr;return void 0!==e[r(408)]&&void 0===t[r(408)]?1:void 0===e[r(408)]&&void 0!==t[r(408)]?-1:void 0!==e[r(408)]&&void 0!==t[r(408)]?e[r(408)]-t[r(408)]:0}function br(e,t){const r=pr();return(br=function(e,t){return r[e-=269]})(e,t)}function wr(e,r){const n=hr;r[n(438)](kr);const o={},i=[];for(const s of r)if(void 0!==s[n(408)]){if(s[n(408)]in o)throw new t.CKEditorError(n(342),e,{conflictingDefinitions:[s,o[s[n(408)]]]});o[s[n(408)]]=s,i[n(377)](s[n(408)],0,s)}else i[n(435)](s);return i}const vr=yr;function yr(e,t){const r=Sr();return(yr=function(e,t){return r[e-=281]})(e,t)}!function(e){const t=yr,r=e();for(;;)try{if(840713===-parseInt(t(345))/1*(-parseInt(t(303))/2)+-parseInt(t(354))/3+parseInt(t(350))/4*(-parseInt(t(391))/5)+-parseInt(t(310))/6+parseInt(t(360))/7*(-parseInt(t(342))/8)+-parseInt(t(355))/9+parseInt(t(336))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Sr);class _r extends e.Plugin{static get[vr(341)](){return[mr,Oe]}static get[vr(302)](){return vr(375)}static get[vr(371)](){return!0}static get[vr(329)](){return!0}constructor(e){const t=vr;super(e);const r=e[t(377)],n=e[t(323)];r[t(283)](t(356),!0),r[t(283)](t(373),function(e){const t=vr;return[{groupId:t(296),groupLabel:De(e,t(327)),commands:[{id:t(387),label:De(e,t(365)),prompt:t(318)},{id:t(362),label:De(e,t(379)),prompt:t(378)},{id:t(353),label:De(e,t(306)),prompt:t(286)},{id:t(340),label:De(e,t(363)),prompt:t(309)}]},{groupId:t(304),groupLabel:De(e,t(390)),commands:[{id:t(307),label:De(e,t(315)),prompt:t(291)},{id:t(298),label:De(e,t(368)),prompt:t(319)}]},{groupId:t(338),groupLabel:De(e,t(366)),commands:[{id:t(337),label:De(e,t(301)),prompt:t(326)},{id:t(370),label:De(e,t(382)),prompt:t(348)},{id:t(388),label:De(e,t(322)),prompt:t(308)},{id:t(297),label:De(e,t(284)),prompt:t(364)},{id:t(320),label:De(e,t(328)),prompt:t(293)}]},{groupId:t(352),groupLabel:De(e,t(346)),commands:[{id:t(314),label:De(e,t(359)),prompt:t(361)},{id:t(321),label:De(e,t(332)),prompt:t(372)},{id:t(300),label:De(e,t(380)),prompt:t(334)},{id:t(313),label:De(e,t(384)),prompt:t(281)}]},{groupId:t(311),groupLabel:De(e,t(343)),commands:[{id:t(349),label:De(e,t(357)),prompt:t(351)},{id:t(333),label:De(e,t(299)),prompt:t(339)},{id:t(385),label:De(e,t(292)),prompt:t(374)},{id:t(287),label:De(e,t(288)),prompt:t(295)},{id:t(331),label:De(e,t(383)),prompt:t(347)},{id:t(282),label:De(e,t(285)),prompt:t(344)},{id:t(290),label:De(e,t(294)),prompt:t(325)},{id:t(305),label:De(e,t(358)),prompt:t(389)}]}]}(n)),r[t(283)](t(317),[]),r[t(283)](t(367),[]);let o=xe(r[t(312)](t(373)),n);const i=r[t(312)](t(317)),s=r[t(312)](t(367));i[t(289)]((e=>{const r=t,n=o[r(386)]((t=>t[r(324)]===e[r(324)]));n?n[r(330)]=n[r(330)][r(316)](e[r(330)]):o[r(376)](e)})),o=o[t(369)]((e=>!s[t(335)](e[t(324)]))),o[t(289)]((e=>{const r=t;e[r(330)]=e[r(330)][r(369)]((e=>!s[r(335)](e.id)))})),r[t(381)](t(373),o)}}function Sr(){const e=["Generate from selection","10XTyTof","Rewrite this content as a poem using poetic techniques without losing the original meaning.","translateChinese","define","Confident","Simplified Chinese","Improve this content by using descriptive language and inserting more information and more detailed explanations.","translateGerman","German","forEach","translateHindi","Summarize this content into one paragraph of text. Include only the key ideas and conclusions. Keep it short. Do not keep original text formatting.","Portuguese","Improve using friendly, comforting language, to convey understanding and empathy.","Hindi","Translate the content to German language.","editOrReview","confident","continue","Spanish","journalism","Professional","pluginName","8OszDam","generate","translateArabic","Make longer","summarize","Improve using direct language, using only the essential information.","Simplify the writing style of this content and reduce the complexity, so that the content is easy to understand.","8697594XfWgYN","translate","get","poetic","business","Summarize","concat","ai.aiAssistant.extraCommandGroups","Fix spelling mistakes, use proper grammar and apply good writing practices. Do not lose the original meaning.","Start with the provided content and write at the end of it continuing this topic. Keep the added part short.","friendly","legal","Direct","locale","groupId","Translate the content to Hindi language.","Improve using polished, formal, and respectful language to convey professional expertise and competence.","Edit or review","Friendly","isPremiumPlugin","commands","translateFrench","Legal","translateSpanish","Rewrite this content as a journalist using engaging language to convey the importance of the information.","includes","59788700JZaCjj","professional","changeTone","Translate the content to Spanish language.","simplifyLanguage","requires","3505456hiejpd","Translate","Translate the content to Simplified Chinese language.","64472OuOZSy","Change style","Translate the content to French language.","Improve using casual, informal language to convey a casual conversation with a real person.","translateEnglish","2278076LMgFcb","Translate the content to English language.","changeStyle","makeLonger","2320449lAHQSg","14361687Bmpdez","ai.aiAssistant.preserveComments","English","Arabic","Business","7kYRyGo","Rewrite this content as a business professional with formal language.","makeShorter","Simplify language","Improve using compelling, optimistic language to convey confidence in the writing.","Improve writing","Change tone","ai.aiAssistant.removeCommands","Continue","filter","casual","isOfficialPlugin","Rewrite this content as a legal professional using valid legal terminology.","ai.aiAssistant.commands","Translate the content to Portuguese language.","AIAssistant","push","config","Remove any repetitive, redundant, or non-essential writing in this content without changing the meaning or losing any key information.","Make shorter","Journalism","set","Casual","French","Poetic","translatePortuguese","find","improveWriting","direct","Translate the content to Arabic language."];return(Sr=function(){return e})()}function Ar(e,t){const r=Er();return(Ar=function(e,t){return r[e-=317]})(e,t)}const xr=Ar;function Er(){const e=["resolve","requires","signal","14239370scciTf","aborted","abort","108NQlILP","AI_ERROR_GET_PARAMETERS","assign","aitextadapter-send-request-failed","9lacIUJ","79366BdUJJB","get","name","catch","6945524YhwnUn","editor","init","_prepareRequestParameters","application/json","891486MfARVd","_prepareRequestHeaders","textAdapter","makeRequest","AI_ERROR_GET_HEADERS","reject","abortController","object","520140mxDbqn","11851MxRqse","plugins","AbortError","error","12140612UayZdi","43IMyiXS","sendRequest","locale","3120beeswN"];return(Er=function(){return e})()}!function(e){const t=Ar,r=e();for(;;)try{if(988221===-parseInt(t(331))/1*(-parseInt(t(346))/2)+-parseInt(t(317))/3+-parseInt(t(350))/4+-parseInt(t(325))/5*(parseInt(t(341))/6)+parseInt(t(326))/7*(parseInt(t(334))/8)+-parseInt(t(345))/9*(-parseInt(t(338))/10)+parseInt(t(330))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Er);class Ir extends e.Plugin{static get[xr(336)](){return[Be]}constructor(e){const t=xr;super(e),this[t(323)]=new AbortController}[xr(352)](){const e=xr;this[e(351)][e(327)][e(347)](Be)[e(319)]=this}[xr(340)](){const e=xr;this[e(323)][e(337)][e(339)]||(this[e(323)][e(340)](),this[e(323)]=new AbortController)}async[xr(320)](e){const r=xr;return this[r(332)](e)[r(349)]((e=>{const n=r;if(e instanceof Ue)return Promise[n(322)](e);if(n(328)==e[n(348)])return Promise[n(335)]();throw console[n(329)](e),new t.CKEditorError(n(344),null)}))}async[xr(318)](e,t){const r=xr,n=this[r(351)][r(333)],o={"Content-Type":r(354)};if(r(324)==typeof e)Object[r(343)](o,e);else if(e)try{const n=await e(t);Object[r(343)](o,n)}catch(e){return Promise[r(322)](new Ue(De(n,r(321))))}return o}async[xr(353)](e,t){const r=xr,n=this[r(351)][r(333)];if(r(324)==typeof e)return e;try{return await e(t)}catch(e){return Promise[r(322)](new Ue(De(n,r(342))))}}}const Rr=Mr;function Pr(){const e=["pluginName","sendRequest","https://api.openai.com/v1/chat/completions","data: ","AI_ERROR_MODERATION","reject","ai.openAI.requestHeaders","Moderation","locale","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","system","_requestHeaders","length","_isBufferIncomplete","text","Instruction:\n","102DWOSOg","_cleanUpData","_prepareRequestHeaders","\nYou must keep the text formatting.\n\nContent:\n","ai.openAI.apiUrl","read","body","_readStaticResponse","_readStreamableResponse","103985gttAHR","1956088bQusCi","_prepareRequestParameters","[DONE]","delta","ai.openAI.requestParameters","AI_ERROR_CONTEXT_LENGTH","prepareMessages","filter","699435YcTBmn","get","map","gpt-3.5-turbo","includes","_apiUrl","decode","join","editor","94804XbgKfY","OpenAITextAdapter","replace","parse","9YYqUDg","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","POST","168021zBPqyc","stream","15IwVFHS","abortController","config","getReader","choices","stringify","resolve","user","define","content","context_length_exceeded","json","183970iHoOFp","327558nhXSni","_requestParameters","split","message","signal"];return(Pr=function(){return e})()}function Mr(e,t){const r=Pr();return(Mr=function(e,t){return r[e-=149]})(e,t)}!function(e){const t=Mr,r=e();for(;;)try{if(159385===parseInt(t(175))/1+parseInt(t(190))/2+-parseInt(t(159))/3+-parseInt(t(168))/4*(-parseInt(t(177))/5)+parseInt(t(211))/6*(parseInt(t(150))/7)+-parseInt(t(151))/8+-parseInt(t(172))/9*(parseInt(t(189))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Pr);class Cr extends Ir{static get[Rr(195)](){return Rr(169)}constructor(e){const t=Rr;super(e),e[t(179)][t(185)](t(215),t(197)),e[t(179)][t(160)](t(155))||e[t(179)][t(185)](t(155),{model:t(162),max_tokens:2e3,temperature:1,top_p:1,stream:!0}),this[t(164)]=e[t(179)][t(160)](t(215)),this[t(206)]=e[t(179)][t(160)](t(201))||{},this[t(191)]=e[t(179)][t(160)](t(155))}async[Rr(196)]({query:e,context:t,onData:r,actionId:n}){const o=Rr,i=this[o(167)][o(203)],s=await this[o(157)](e,t,n),a=await this[o(213)](this[o(206)],n),c=await this[o(152)](this[o(191)],n),u={messages:s,...c},l={method:o(174),headers:a,body:JSON[o(182)](u),signal:this[o(178)][o(194)]},d=await fetch(this[o(164)],l);if(d.ok)return c[o(176)]?await this[o(149)](d,r):await this[o(218)](d,r),Promise[o(183)]();{const e=await d[o(209)]();return e[o(163)](o(187))?Promise[o(200)](new Ue(De(i,o(156)))):e[o(163)](o(202))?Promise[o(200)](new Ue(De(i,o(199)))):Promise[o(200)](new Error(e))}}async[Rr(157)](e,t,r){const n=Rr;let o,i;return t?(o=n(173),i=n(210)+e+n(214)+t):(o=n(204),i=e),[{role:n(205),content:o},{role:n(184),content:i}]}async[Rr(149)](e,t){const r=Rr,n=e[r(217)][r(180)](),o=new TextDecoder;let i="",s="",a="",c=!1;for(;!c;){const{done:e,value:u}=await n[r(216)](),l=i+o[r(165)](u);let d="";c=e;try{d=this[r(212)](l),i=""}catch(e){i=l;continue}s+=d,!c&&this[r(208)](s)||s&&(a+=s,s="",t(a))}return Promise[r(183)]()}async[Rr(218)](e,t){const r=Rr;return t((await e[r(188)]())[r(181)][0][r(193)][r(186)]),Promise[r(183)]()}[Rr(208)](e){const t=Rr,r=e[t(192)]("<")[t(207)]!==e[t(192)](">")[t(207)],n=e[t(207)]<30;return r&&n}[Rr(212)](e){const t=Rr;return e[t(192)](/\n(?![^{]*\})/g)[t(161)]((e=>e[t(170)](t(198),"")))[t(158)]((e=>e&&e[t(207)]>0&&t(153)!==e))[t(161)]((e=>{const r=t,{choices:n}=JSON[r(171)](e);if(n[0]&&n[0][r(154)]&&n[0][r(154)][r(186)])return n[0][r(154)][r(186)]}))[t(158)]((e=>e))[t(166)]("")}}const Tr=e=>{let t=e.httpHandler;return{setHttpHandler(e){t=e},httpHandler:()=>t,updateHttpClientConfig(e,r){t.updateHttpClientConfig(e,r)},httpHandlerConfigs:()=>t.httpHandlerConfigs()}};var Or,$r,Nr,Lr;!function(e){e.HEADER="header",e.QUERY="query"}(Or||(Or={})),function(e){e.HEADER="header",e.QUERY="query"}($r||($r={})),function(e){e.HTTP="http",e.HTTPS="https"}(Nr||(Nr={})),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(Lr||(Lr={}));var Br;!function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"}(Br||(Br={}));const Ur="__smithy_context";var Dr,Fr;!function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"}(Dr||(Dr={})),function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"}(Fr||(Fr={}));class Hr{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new Hr({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce(((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}}),{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return Hr.clone(this)}}class jr{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const zr={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Vr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!Hr.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:o=""}=e.requestHandler.metadata||{};if(o.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),zr)}}),qr={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Gr="X-Amzn-Trace-Id",Wr={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},Zr=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{const{request:n}=r;if(!Hr.isInstance(n)||"node"!==e.runtime||n.headers.hasOwnProperty(Gr))return t(r);const o=process.env.AWS_LAMBDA_FUNCTION_NAME,i=process.env._X_AMZN_TRACE_ID,s=e=>"string"==typeof e&&e.length>0;return s(o)&&s(i)&&(n.headers[Gr]=i),t({...r,request:n})})(e),Wr)}});const Kr=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Qr=e=>Kr.test(e)||e.startsWith("[")&&e.endsWith("]"),Jr=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Yr=(e,t=!1)=>{if(!t)return Jr.test(e);const r=e.split(".");for(const e of r)if(!Yr(e))return!1;return!0},Xr={},en="endpoints";function tn(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${tn(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(tn).join(", ")})`:JSON.stringify(e,null,2)}class rn extends Error{constructor(e){super(e),this.name="EndpointError"}}const nn=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new rn(`Path: '${e}' does not end with ']'`);const o=n.slice(t+1,-1);if(Number.isNaN(parseInt(o)))throw new rn(`Invalid array index: '${o}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(o)}else r.push(n)}return r})(t).reduce(((r,n)=>{if("object"!=typeof r)throw new rn(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]}),e),on={[Nr.HTTP]:80,[Nr.HTTPS]:443},sn={booleanEquals:(e,t)=>e===t,getAttr:nn,isSet:e=>null!=e,isValidHostLabel:Yr,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:o="",query:i={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${o}`);return s.search=Object.entries(i).map((([e,t])=>`${e}=${t}`)).join("&"),s}return new URL(e)}catch(e){return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const r=t.href,{host:n,hostname:o,pathname:i,protocol:s,search:a}=t;if(a)return null;const c=s.slice(0,-1);if(!Object.values(Nr).includes(c))return null;const u=Qr(o);return{scheme:c,authority:`${n}${r.includes(`${n}:${on[c]}`)||"string"==typeof e&&e.includes(`${n}:${on[c]}`)?`:${on[c]}`:""}`,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:u}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},an=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let o=0;for(;o<e.length;){const t=e.indexOf("{",o);if(-1===t){r.push(e.slice(o));break}r.push(e.slice(o,t));const i=e.indexOf("}",t);if(-1===i){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[i+1]&&(r.push(e.slice(t+1,i)),o=i+2);const s=e.substring(t+1,i);if(s.includes("#")){const[e,t]=s.split("#");r.push(nn(n[e],t))}else r.push(n[s]);o=i+1}return r.join("")},cn=(e,t,r)=>{if("string"==typeof e)return an(e,r);if(e.fn)return un(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new rn(`'${t}': ${String(e)} is not a string, function or reference.`)},un=({fn:e,argv:t},r)=>{const n=t.map((e=>["boolean","number"].includes(typeof e)?e:cn(e,"arg",r))),o=e.split(".");return o[0]in Xr&&null!=o[1]?Xr[o[0]][o[1]](...n):sn[e](...n)},ln=({assign:e,...t},r)=>{if(e&&e in r.referenceRecord)throw new rn(`'${e}' is already defined in Reference Record.`);const n=un(t,r);return r.logger?.debug?.(`${en} evaluateCondition: ${tn(t)} = ${tn(n)}`),{result:""===n||!!n,...null!=e&&{toAssign:{name:e,value:n}}}},dn=(e=[],t)=>{const r={};for(const n of e){const{result:e,toAssign:o}=ln(n,{...t,referenceRecord:{...t.referenceRecord,...r}});if(!e)return{result:e};o&&(r[o.name]=o.value,t.logger?.debug?.(`${en} assign: ${o.name} := ${tn(o.value)}`))}return{result:!0,referenceRecord:r}},gn=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:n.map((e=>{const n=cn(e,"Header value entry",t);if("string"!=typeof n)throw new rn(`Header '${r}' value '${n}' is not a string`);return n}))})),{}),hn=(e,t)=>{if(Array.isArray(e))return e.map((e=>hn(e,t)));switch(typeof e){case"string":return an(e,t);case"object":if(null===e)throw new rn(`Unexpected endpoint property: ${e}`);return pn(e,t);case"boolean":return e;default:throw new rn("Unexpected endpoint property type: "+typeof e)}},pn=(e,t)=>Object.entries(e).reduce(((e,[r,n])=>({...e,[r]:hn(n,t)})),{}),fn=(e,t)=>{const r=cn(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(e){throw console.error(`Failed to construct URL with ${r}`,e),e}throw new rn("Endpoint URL must be a string, got "+typeof r)},mn=(e,t)=>{const{conditions:r,endpoint:n}=e,{result:o,referenceRecord:i}=dn(r,t);if(!o)return;const s={...t,referenceRecord:{...t.referenceRecord,...i}},{url:a,properties:c,headers:u}=n;return t.logger?.debug?.(`${en} Resolving endpoint from template: ${tn(n)}`),{...null!=u&&{headers:gn(u,s)},...null!=c&&{properties:pn(c,s)},url:fn(a,s)}},kn=(e,t)=>{const{conditions:r,error:n}=e,{result:o,referenceRecord:i}=dn(r,t);if(o)throw new rn(cn(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},bn=(e,t)=>{const{conditions:r,rules:n}=e,{result:o,referenceRecord:i}=dn(r,t);if(o)return wn(n,{...t,referenceRecord:{...t.referenceRecord,...i}})},wn=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=mn(r,t);if(e)return e}else if("error"===r.type)kn(r,t);else{if("tree"!==r.type)throw new rn(`Unknown endpoint rule: ${r}`);{const e=bn(r,t);if(e)return e}}throw new rn("Rules evaluation failed")},vn=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!vn(t))return!1;return!0}return!!Yr(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!Qr(e)))};let yn=JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"ca-west-1":{"description":"Canada West (Calgary)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{"eu-isoe-west-1":{"description":"EU ISOE West"}}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}'),_n="";const Sn={isVirtualHostableS3Bucket:vn,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,o,i,s,...a]=t;return"arn"!==r||""===n||""===o||""===a[0]?null:{partition:n,service:o,region:i,accountId:s,resourceId:a[0].includes("/")?a[0].split("/"):a}},partition:e=>{const{partitions:t}=yn;for(const r of t){const{regions:t,outputs:n}=r;for(const[r,o]of Object.entries(t))if(r===e)return{...n,...o}}for(const r of t){const{regionRegex:t,outputs:n}=r;if(new RegExp(t).test(e))return{...n}}const r=t.find((e=>"aws"===e.id));if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};Xr.aws=Sn;const An="user-agent",xn="x-amz-user-agent",En=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,In=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,Rn=e=>(t,r)=>async n=>{const{request:o}=n;if(!Hr.isInstance(o))return t(n);const{headers:i}=o,s=r?.userAgent?.map(Pn)||[],a=(await e.defaultUserAgentProvider()).map(Pn),c=e?.customUserAgent?.map(Pn)||[],u=(_n?[_n]:[]).concat([...a,...s,...c]).join(" "),l=[...a.filter((e=>e.startsWith("aws-sdk-"))),...c].join(" ");return"browser"!==e.runtime?(l&&(i[xn]=i[xn]?`${i[An]} ${l}`:l),i[An]=u):i[xn]=u,t({...n,request:o})},Pn=e=>{const t=e[0].split("/").map((e=>e.replace(En,"-"))).join("/"),r=e[1]?.replace(In,"-"),n=t.indexOf("/"),o=t.substring(0,n);let i=t.substring(n+1);return"api"===o&&(i=i.toLowerCase()),[o,i,r].filter((e=>e&&e.length>0)).reduce(((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")},Mn={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var Cn;!function(e){e.ENV="env",e.CONFIG="shared config entry"}(Cn||(Cn={}));const Tn=e=>e[Ur]||(e[Ur]={}),On=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},$n=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),Nn=e=>$n(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const Ln=(e,t)=>(r,n)=>async o=>{const i=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,n,o.input)),s=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),a=Tn(n),c=[];for(const r of i){const o=s.get(r.schemeId);if(!o){c.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const i=o.identityProvider(await t.identityProviderConfigProvider(e));if(!i){c.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:u={},signingProperties:l={}}=r.propertiesExtractor?.(e,n)||{};r.identityProperties=Object.assign(r.identityProperties||{},u),r.signingProperties=Object.assign(r.signingProperties||{},l),a.selectedHttpAuthScheme={httpAuthOption:r,identity:await i(r.identityProperties),signer:o.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(c.join("\n"));return r(o)},Bn={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Un={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Dn={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Fn(e,t,r){return{applyToStack:n=>{n.add(((e,t)=>r=>async n=>{const{response:o}=await r(n);try{return{response:o,output:await t(o,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:o}),!("$metadata"in e)){const t="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";e.message+="\n "+t,void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText)}throw e}})(e,r),Un),n.add(((e,t)=>(r,n)=>async o=>{const i=n.endpointV2?.url&&e.urlParser?async()=>e.urlParser(n.endpointV2.url):e.endpoint;if(!i)throw new Error("No valid endpoint provider available.");const s=await t(o.input,{...e,endpoint:i});return r({...o,request:s})})(e,t),Dn)}}}const Hn=e=>e=>{throw e},jn=(e,t)=>{},zn={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Vn=e=>({applyToStack:e=>{e.addRelativeTo(((e,t)=>async r=>{if(!Hr.isInstance(r.request))return e(r);const n=Tn(t).selectedHttpAuthScheme;if(!n)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:i,signer:s}=n,a=await e({...r,request:await s.sign(r.request,i,o)}).catch((s.errorHandler||Hn)(o));return(s.successHandler||jn)(a.response,o),a}),zn)}}),qn=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},Gn={},Wn=new Array(64);for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);Gn[r]=e,Wn[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;Gn[r]=n,Wn[n]=r}for(let e=0;e<10;e++){Gn[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;Gn[t]=r,Wn[r]=t}Gn["+"]=62,Wn[62]="+",Gn["/"]=63,Wn[63]="/";const Zn=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let t=0;t<e.length;t+=4){let r=0,o=0;for(let n=t,i=t+3;n<=i;n++)if("="!==e[n]){if(!(e[n]in Gn))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);r|=Gn[e[n]]<<6*(i-n),o+=6}else r>>=6;const i=t/4*3;r>>=o%8;const s=Math.floor(o/8);for(let e=0;e<s;e++){const t=8*(s-e-1);n.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(r)},Kn=e=>(new TextEncoder).encode(e);function Qn(e){let t;t="string"==typeof e?Kn(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let e=0;e<t.length;e+=3){let r=0,n=0;for(let o=e,i=Math.min(e+3,t.length);o<i;o++)r|=t[o]<<8*(i-o-1),n+=8;const i=Math.ceil(n/6);r<<=6*i-n;for(let e=1;e<=i;e++){const t=6*(i-e);o+=Wn[(r&63<<t)>>t]}o+="==".slice(0,4-i)}return o}const Jn=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};class Yn extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return function(e,t){return"base64"===t?Yn.mutate(Zn(e)):Yn.mutate(Kn(e))}(e,t);throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,Yn.prototype),e}transformToString(e="utf-8"){return function(e,t="utf-8"){return"base64"===t?Qn(e):Jn(e)}(this,e)}}const Xn={},eo={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),Xn[e]=t,eo[t]=e}function to(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in eo))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=eo[n]}return t}function ro(e){let t="";for(let r=0;r<e.byteLength;r++)t+=Xn[e[r]];return t}"function"==typeof ReadableStream&&ReadableStream;const no=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Yn.mutate(e);if(!e)return Yn.mutate(new Uint8Array);const r=t.streamCollector(e);return Yn.mutate(await r)};function oo(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function io(e,t){return new so(e,t)}class so{constructor(e,t){this.input=e,this.context=t,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:e,protocol:t="https",port:r,path:n}=await this.context.endpoint();this.path=n;for(const e of this.resolvePathStack)e(this.path);return new Hr({protocol:t,hostname:this.hostname||e,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e})),this}p(e,t,r,n){return this.resolvePathStack.push((o=>{this.path=((e,t,r,n,o,i)=>{if(null==t||void 0===t[r])throw new Error("No value provided for input HTTP label: "+r+".");{const t=n();if(t.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(o,i?t.split("/").map((e=>oo(e))).join("/"):oo(t))}return e})(o,this.input,e,t,r,n)})),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}class ao{constructor(e){this.authSchemes=new Map;for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}const co=(uo=3e5,e=>lo(e)&&e.expiration.getTime()-Date.now()<uo);var uo;const lo=e=>void 0!==e.expiration,go="content-length";const ho={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},po=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(Hr.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map((e=>e.toLowerCase())).indexOf(go))try{const t=r(e);n.headers={...n.headers,[go]:String(t)}}catch(e){}}return e({...t,request:n})}),ho)}}),fo=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,mo=/(\d+\.){3}\d+/,ko=/\.\./,bo=e=>fo.test(e)&&!mo.test(e)&&!ko.test(e),wo=e=>{const[t,r,n,,,o]=e.split(":"),i="arn"===t&&e.split(":").length>=6,s=Boolean(i&&r&&n&&o);if(i&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s},vo=(e,t,r)=>{const n=async()=>{const n=r[e]??r[t];return"function"==typeof n?n():n};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{const e=await n();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:o}=e;return`${t}//${r}${n?":"+n:""}${o}`}}return e}:n},yo=async e=>{};const _o=e=>{if("string"==typeof e)return _o(new URL(e));const{hostname:t,pathname:r,port:n,protocol:o,search:i}=e;let s;return i&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(i)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:s}},So=e=>"object"==typeof e?"url"in e?_o(e.url):e:_o(e),Ao=async(e,t,r)=>{const n={},o=t?.getEndpointParameterInstructions?.()||{};for(const[t,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[t]=i.value;break;case"contextParams":n[t]=e[i.name];break;case"clientContextParams":case"builtInParams":n[t]=await vo(i.name,t,r)();break;case"operationContextParams":n[t]=i.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return 0===Object.keys(o).length&&Object.assign(n,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=e?.Bucket||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),wo(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!bo(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(n),n},xo=({config:e,instructions:t})=>(r,n)=>async o=>{e.endpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const i=await(async(e,t,r,n)=>{if(!r.endpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await yo(r.serviceId),e&&(r.endpoint=()=>Promise.resolve(So(e)))}const o=await Ao(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");return r.endpointProvider(o,n)})(o.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=i,n.authSchemes=i.properties?.authSchemes;const s=n.authSchemes?.[0];if(s){n.signing_region=s.signingRegion,n.signing_service=s.signingName;const e=Tn(n),t=e?.selectedHttpAuthScheme?.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:s.signingRegion,signingRegion:s.signingRegion,signing_service:s.signingName,signingName:s.signingName,signingRegionSet:s.signingRegionSet},s.properties))}return r({...o})},Eo={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Dn.name},Io=(e,t)=>({applyToStack:r=>{r.addRelativeTo(xo({config:e,instructions:t}),Eo)}});var Ro;!function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(Ro||(Ro={}));const Po=Ro.STANDARD,Mo=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Co=["TimeoutError","RequestTimeout","RequestTimeoutException"],To=[500,502,503,504],Oo=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],$o=e=>429===e.$metadata?.httpStatusCode||Mo.includes(e.name)||1==e.$retryable?.throttling,No=(e,t=0)=>(e=>e.$metadata?.clockSkewCorrected)(e)||Co.includes(e.name)||Oo.includes(e?.code||"")||To.includes(e.$metadata?.httpStatusCode||0)||void 0!==e.cause&&t<=10&&No(e.cause,t+1);class Lo{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const t=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise((e=>Lo.setTimeoutFn(e,t)))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),$o(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}Lo.setTimeoutFn=setTimeout;const Bo=100,Uo=2e4,Do="amz-sdk-invocation-id",Fo="amz-sdk-request",Ho=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(Uo,e),getRetryCost:()=>r});class jo{constructor(e){this.maxAttempts=e,this.mode=Ro.STANDARD,this.capacity=500,this.retryBackoffStrategy=(()=>{let e=Bo;return{computeNextBackoffDelay:t=>Math.floor(Math.min(Uo,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})(),this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return Ho({retryDelay:Bo,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:Bo);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,i=this.getCapacityCost(r);return this.capacity-=i,Ho({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:i})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return console.warn("Max attempts provider could not resolve. Using default of 3"),3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class zo{constructor(e,t){this.maxAttemptsProvider=e,this.mode=Ro.ADAPTIVE;const{rateLimiter:r}=t??{};this.rateLimiter=r??new Lo,this.standardRetryStrategy=new jo(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const Vo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let qo;const Go=new Uint8Array(16);function Wo(){if(!qo&&(qo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qo(Go)}const Zo=[];for(let e=0;e<256;++e)Zo.push((e+256).toString(16).slice(1));function Ko(e,t=0){return Zo[e[t+0]]+Zo[e[t+1]]+Zo[e[t+2]]+Zo[e[t+3]]+"-"+Zo[e[t+4]]+Zo[e[t+5]]+"-"+Zo[e[t+6]]+Zo[e[t+7]]+"-"+Zo[e[t+8]]+Zo[e[t+9]]+"-"+Zo[e[t+10]]+Zo[e[t+11]]+Zo[e[t+12]]+Zo[e[t+13]]+Zo[e[t+14]]+Zo[e[t+15]]}const Qo=function(e,t,r){if(Vo.randomUUID&&!t&&!e)return Vo.randomUUID();const n=(e=e||{}).random||(e.rng||Wo)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return Ko(n)},Jo=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`);const Yo=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const e of t)r.push(e);return r},Xo=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,ei=()=>{let e=[],t=[],r=!1;const n=new Set,o=r=>(e.forEach((e=>{r.add(e.middleware,{...e})})),t.forEach((e=>{r.addRelativeTo(e.middleware,{...e})})),r.identifyOnResolve?.(a.identifyOnResolve()),r),i=e=>{const t=[];return e.before.forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t.push(e),e.after.reverse().forEach((e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...i(e))})),t},s=(r=!1)=>{const n=[],o=[],s={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of Yo(t.name,t.aliases))s[e]=t;n.push(t)})),t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of Yo(t.name,t.aliases))s[e]=t;o.push(t)})),o.forEach((e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${Xo(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}));const a=(c=n,c.sort(((e,t)=>ti[t.step]-ti[e.step]||ri[t.priority||"normal"]-ri[e.priority||"normal"]))).map(i).reduce(((e,t)=>(e.push(...t),e)),[]);var c;return a},a={add:(t,r={})=>{const{name:o,override:i,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},c=Yo(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${Xo(o,s)}'`);for(const t of c){const r=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${Xo(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Xo(o,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of c)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:o,override:i,aliases:s}=r,a={middleware:e,...r},c=Yo(o,s);if(c.length>0){if(c.some((e=>n.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${Xo(o,s)}'`);for(const e of c){const r=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${Xo(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Xo(o,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of c)n.add(e)}t.push(a)},clone:()=>o(ei()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let o=!1;const i=e=>{const t=Yo(e.name,e.aliases);if(t.includes(r)){o=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r):(r=>{let o=!1;const i=e=>{if(e.middleware===r){o=!0;for(const t of Yo(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(r),removeByTag:r=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:s}=e;if(t&&t.includes(r)){const e=Yo(i,s);for(const t of e)n.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=o(ei());return t.use(e),t.identifyOnResolve(r||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:o,identify:()=>s(!0).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return Xo(e.name,e.aliases)+" - "+t})),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map((e=>e.middleware)).reverse())e=r(e,t);return r&&console.log(a.identify()),e}};return a},ti={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ri={high:3,normal:2,low:1};class ni{constructor(e){this.config=e,this.middlewareStack=ei()}send(e,t,r){const n="function"!=typeof t?t:void 0,o="function"==typeof t?t:r;let i;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!o)return i(e).then((e=>e.output));i(e).then((e=>o(null,e.output)),(e=>o(e))).catch((()=>{}))}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class oi{constructor(){this.middlewareStack=ei()}static classBuilder(){return new ii}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:c,additionalContext:u,CommandCtor:l}){for(const o of n.bind(this)(l,e,t,r))this.middlewareStack.use(o);const d=e.concat(this.middlewareStack),{logger:g}=t,h={logger:g,clientName:o,commandName:i,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[Ur]:{commandInstance:this,...c},...u},{requestHandler:p}=t;return d.resolve((e=>p.handle(e.request,r||{})),h)}}class ii{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends oi{static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=t??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const si="***SensitiveInformation***",ai=(Math.ceil(2**127*(2-2**-23)),e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}}),ci=e=>ui(e,32),ui=(e,t)=>{const r=ai(e);if(void 0!==r&&li(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},li=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},di=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return hi.warn(gi(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},gi=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n"),hi={warn:console.warn};class pi extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,pi.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}}const fi=(e,t={})=>{Object.entries(t).filter((([,e])=>void 0!==e)).forEach((([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)}));const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},mi=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),ki=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},bi=e=>{const t=[];for(const r in Lr){const n=Lr[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(e){this._checksumAlgorithms.push(e)},checksumAlgorithms(){return this._checksumAlgorithms}}},wi=e=>{const t={};return e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()})),t},vi=e=>{let t=e.retryStrategy;return{setRetryStrategy(e){t=e},retryStrategy:()=>t}},yi=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},_i=e=>({...bi(e),...vi(e)}),Si=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};Si.from=e=>e&&"object"==typeof e&&(e instanceof Si||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?Si(String(e)):Si(JSON.stringify(e)),Si.fromObject=Si.from;class Ai{trace(){}debug(){}info(){}warn(){}error(){}}function xi(e,t,r){let n,o,i;if(void 0===t&&void 0===r)n={},i=e;else{if(n=e,"function"==typeof t)return o=t,i=r,Ii(n,o,i);i=t}for(const e of Object.keys(i))Array.isArray(i[e])?Ri(n,null,i,e):n[e]=i[e];return n}const Ei=(e,t)=>{const r={};for(const n in t)Ri(r,e,t,n);return r},Ii=(e,t,r)=>xi(e,Object.entries(r).reduce(((e,[r,n])=>(Array.isArray(n)?e[r]=n:e[r]="function"==typeof n?[t,n()]:[t,n],e)),{})),Ri=(e,t,r,n)=>{if(null!==t){let o=r[n];"function"==typeof o&&(o=[,o]);const[i=Pi,s=Mi,a=n]=o;return void(("function"==typeof i&&i(t[a])||"function"!=typeof i&&i)&&(e[n]=s(t[a])))}let[o,i]=r[n];if("function"==typeof i){let t;const r=void 0===o&&null!=(t=i()),s="function"==typeof o&&!!o(void 0)||"function"!=typeof o&&!!o;r?e[n]=t:s&&(e[n]=i())}else{const t=void 0===o&&null!=i,r="function"==typeof o&&!!o(i)||"function"!=typeof o&&!!o;(t||r)&&(e[n]=i)}},Pi=e=>null!=e,Mi=e=>e,Ci=e=>e?.body instanceof ReadableStream,Ti=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,Oi=e=>{const t={error:e,errorType:$i(e)},r=Bi(e.$response);return r&&(t.retryAfterHint=r),t},$i=e=>$o(e)?"THROTTLING":No(e)?"TRANSIENT":(e=>{if(void 0!==e.$metadata?.httpStatusCode){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!No(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",Ni={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Li=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{let o=await e.retryStrategy();const i=await e.maxAttempts();if(!Ti(o))return o?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),s=new Error,a=0,c=0;const{request:u}=n,l=Hr.isInstance(u);for(l&&(u.headers[Do]=Qo());;)try{l&&(u.headers[Fo]=`attempt=${a+1}; max=${i}`);const{response:r,output:s}=await t(n);return o.recordSuccess(e),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,{response:r,output:s}}catch(t){const n=Oi(t);if(s=Jo(t),l&&Ci(u))throw(r.logger instanceof Ai?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),s;try{e=await o.refreshRetryTokenForRetry(e,n)}catch(e){throw s.$metadata||(s.$metadata={}),s.$metadata.attempts=a+1,s.$metadata.totalRetryDelay=c,s}a=e.getRetryCount();const i=e.getRetryDelay();c+=i,await new Promise((e=>setTimeout(e,i)))}}})(e),Ni)}}),Bi=e=>{if(!jr.isInstance(e))return;const t=Object.keys(e.headers).find((e=>"retry-after"===e.toLowerCase()));if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)},Ui=e=>encodeURIComponent(e).replace(/[!'()*]/g,Di),Di=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,Fi=e=>"string"==typeof e?Kn(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Hi="X-Amz-Date",ji="X-Amz-Signature",zi="X-Amz-Security-Token",Vi="authorization",qi=Hi.toLowerCase(),Gi=[Vi,qi,"date"],Wi=ji.toLowerCase(),Zi="x-amz-content-sha256",Ki=zi.toLowerCase(),Qi={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Ji=/^proxy-/,Yi=/^sec-/,Xi="AWS4-HMAC-SHA256",es="AWS4-HMAC-SHA256-PAYLOAD",ts="aws4_request",rs={},ns=[],os=(e,t,r)=>`${e}/${t}/${r}/${ts}`,is=(e,t,r)=>{const n=new e(t);return n.update(Fi(r)),n.digest()},ss=({headers:e},t,r)=>{const n={};for(const o of Object.keys(e).sort()){if(null==e[o])continue;const i=o.toLowerCase();(i in Qi||t?.has(i)||Ji.test(i)||Yi.test(i))&&(!r||r&&!r.has(i))||(n[i]=e[o].trim().replace(/\s+/g," "))}return n},as=async({headers:e,body:t},r)=>{for(const t of Object.keys(e))if(t.toLowerCase()===Zi)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(n=t,"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n))){const e=new r;return e.update(Fi(t)),ro(await e.digest())}var n;return"UNSIGNED-PAYLOAD"};class cs{format(e){const t=[];for(const r of Object.keys(e)){const n=Kn(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=Kn(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(ds.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!ls.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(to(e.value.replace(/\-/g,"")),1),l}}}var us;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(us||(us={}));const ls=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ds{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&gs(t),new ds(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&gs(e),parseInt(ro(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function gs(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}const hs=e=>{e=Hr.clone(e);for(const t of Object.keys(e.headers))Gi.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},ps=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class fs{constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:o,uriEscapePath:i=!0}){this.headerFormatter=new cs,this.service=n,this.sha256=o,this.uriEscapePath=i,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=On(r),this.credentialProvider=On(t)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:s,hoistableHeaders:a,signingRegion:c,signingService:u}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);const d=c??await this.regionProvider(),{longDate:g,shortDate:h}=ms(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const p=os(h,d,u??this.service),f=((e,t={})=>{const{headers:r,query:n={}}=Hr.clone(e);for(const e of Object.keys(r)){const o=e.toLowerCase();("x-amz-"===o.slice(0,6)&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))&&(n[e]=r[e],delete r[e])}return{...e,headers:r,query:n}})(hs(e),{unhoistableHeaders:i,hoistableHeaders:a});l.sessionToken&&(f.query[zi]=l.sessionToken),f.query["X-Amz-Algorithm"]=Xi,f.query["X-Amz-Credential"]=`${l.accessKeyId}/${p}`,f.query[Hi]=g,f.query["X-Amz-Expires"]=n.toString(10);const m=ss(f,o,s);return f.query["X-Amz-SignedHeaders"]=ks(m),f.query[ji]=await this.getSignature(g,p,this.getSigningKey(l,d,h,u),this.createCanonicalRequest(f,m,await as(e,this.sha256))),f}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:o,signingService:i}){const s=o??await this.regionProvider(),{shortDate:a,longDate:c}=ms(r),u=os(a,s,i??this.service),l=await as({headers:{},body:t},this.sha256),d=new this.sha256;d.update(e);const g=ro(await d.digest()),h=[es,c,u,n,g,l].join("\n");return this.signString(h,{signingDate:r,signingRegion:s,signingService:i})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const i=r??await this.regionProvider(),{shortDate:s}=ms(t),a=new this.sha256(await this.getSigningKey(o,i,s,n));return a.update(Fi(e)),ro(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:o,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=o??await this.regionProvider(),c=hs(e),{longDate:u,shortDate:l}=ms(t),d=os(l,a,i??this.service);c.headers[qi]=u,s.sessionToken&&(c.headers[Ki]=s.sessionToken);const g=await as(c,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(Zi,c.headers)&&this.applyChecksum&&(c.headers[Zi]=g);const h=ss(c,n,r),p=await this.getSignature(u,d,this.getSigningKey(s,a,l,i),this.createCanonicalRequest(c,h,g));return c.headers[Vi]=`${Xi} Credential=${s.accessKeyId}/${d}, SignedHeaders=${ks(h)}, Signature=${p}`,c}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e)){if(n.toLowerCase()===Wi)continue;const o=Ui(n);t.push(o);const i=e[n];"string"==typeof i?r[o]=`${o}=${Ui(i)}`:Array.isArray(i)&&(r[o]=i.slice(0).reduce(((e,t)=>e.concat([`${o}=${Ui(t)}`])),[]).sort().join("&"))}return t.sort().map((e=>r[e])).filter((e=>e)).join("&")})(e)}\n${n.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r){const n=new this.sha256;n.update(Fi(r));const o=await n.digest();return`${Xi}\n${e}\n${t}\n${ro(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const r of e.split("/"))0!==r?.length&&"."!==r&&(".."===r?t.pop():t.push(r));const r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return Ui(r).replace(/%2F/g,"/")}return e}async getSignature(e,t,r,n){const o=await this.createStringToSign(e,t,n),i=new this.sha256(await r);return i.update(Fi(o)),ro(await i.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,o)=>{const i=`${r}:${n}:${o}:${ro(await is(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(i in rs)return rs[i];for(ns.push(i);ns.length>50;)delete rs[ns.shift()];let s=`AWS4${t.secretAccessKey}`;for(const t of[r,n,o,ts])s=await is(e,s,t);return rs[i]=s})(this.sha256,e,r,t,n||this.service)}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}}const ms=e=>{const t=(r=e,ps(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}},ks=e=>Object.keys(e).sort().join(";"),bs=e=>{let t;e.credentials&&(t=((e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let o,i,s,a=!1;const c=async e=>{i||(i=n(e));try{o=await i,s=!0,a=!1}finally{i=void 0}return o};return void 0===t?async e=>(s&&!e?.forceRefresh||(o=await c(e)),o):async e=>(s&&!e?.forceRefresh||(o=await c(e)),a?o:r(o)?t(o)?(await c(e),o):o:(a=!0,o))})(e.credentials,co,lo)),t||(t=e.credentialDefaultProvider?qn(e.credentialDefaultProvider(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:o}=e;let i;return i=e.signer?qn(e.signer):e.regionInfoProvider?()=>qn(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([n,i])=>{const{signingRegion:s,signingService:a}=n;e.signingRegion=e.signingRegion||s||i,e.signingName=e.signingName||a||e.serviceId;const c={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||fs)(c)})):async n=>{const i=(n=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await qn(e.region)(),properties:{}},n)).signingRegion,s=n.signingName;e.signingRegion=e.signingRegion||i,e.signingName=e.signingName||s||e.serviceId;const a={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:o,uriEscapePath:r};return new(e.signerConstructor||fs)(a)},{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:i}},ws=async(e,t,r)=>({operation:Tn(t).operation,region:await On(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});const vs=e=>{const t=[];return e.operation,t.push(function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}(e)),t},ys={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},_s="3.621.0";var Ss="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function As(e){return e instanceof Uint8Array?e:"string"==typeof e?Ss(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function xs(e){return"string"==typeof e?0===e.length:0===e.byteLength}var Es={name:"SHA-256"},Is={name:"HMAC",hash:Es},Rs=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const Ps={};function Ms(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:Ps}var Cs=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!xs(e)){var t=As(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return Ms().crypto.subtle.sign(Is,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):xs(this.toHash)?Promise.resolve(Rs):Promise.resolve().then((function(){return Ms().crypto.subtle.digest(Es,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise((function(t,r){Ms().crypto.subtle.importKey("raw",As(e.secret),Is,!1,["sign"]).then(t,r)})),this.key.catch((function(){})))},e}();function Ts(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function Os(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function $s(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;"function"==typeof SuppressedError&&SuppressedError;var Ns=64,Ls=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Bs=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Us=Math.pow(2,53)-1,Ds=function(){function e(){this.state=Int32Array.from(Bs),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>Us)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===Ns&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%Ns>=56){for(var n=this.bufferLength;n<Ns;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(n=this.bufferLength;n<56;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var o=new Uint8Array(32);for(n=0;n<8;n++)o[4*n]=this.state[n]>>>24&255,o[4*n+1]=this.state[n]>>>16&255,o[4*n+2]=this.state[n]>>>8&255,o[4*n+3]=this.state[n]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],c=t[6],u=t[7],l=0;l<Ns;l++){if(l<16)this.temp[l]=(255&e[4*l])<<24|(255&e[4*l+1])<<16|(255&e[4*l+2])<<8|255&e[4*l+3];else{var d=this.temp[l-2],g=(d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10,h=((d=this.temp[l-15])>>>7|d<<25)^(d>>>18|d<<14)^d>>>3;this.temp[l]=(g+this.temp[l-7]|0)+(h+this.temp[l-16]|0)}var p=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&a^~s&c)|0)+(u+(Ls[l]+this.temp[l]|0)|0)|0,f=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&o^n&o)|0;u=c,c=a,a=s,s=i+p|0,i=o,o=n,n=r,r=p+f|0}t[0]+=r,t[1]+=n,t[2]+=o,t[3]+=i,t[4]+=s,t[5]+=a,t[6]+=c,t[7]+=u},e}(),Fs=function(){function e(e){this.secret=e,this.hash=new Ds,this.reset()}return e.prototype.update=function(e){if(!xs(e)&&!this.error)try{this.hash.update(As(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Ts(this,void 0,void 0,(function(){return Os(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new Ds,this.secret){this.outer=new Ds;var e=function(e){var t=As(e);if(t.byteLength>Ns){var r=new Ds;r.update(t),t=r.digest()}var n=new Uint8Array(Ns);return n.set(t),n}(this.secret),t=new Uint8Array(Ns);t.set(e);for(var r=0;r<Ns;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();var Hs=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function js(e){return e&&Hs.every((function(t){return"function"==typeof e[t]}))}var zs=function(){function e(e){!function(e){return!(!function(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}(e)||"object"!=typeof e.crypto.subtle)&&js(e.crypto.subtle)}(Ms())?this.hash=new Fs(e):this.hash=new Cs(e)}return e.prototype.update=function(e,t){this.hash.update(As(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),Vs=r(369),qs=r.n(Vs);const Gs=({serviceId:e,clientVersion:t})=>async()=>{const r="undefined"!=typeof window&&window?.navigator?.userAgent?qs().parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",t],["ua","2.0"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];return e&&n.push([`api/${e}`,t]),n};!function(){function e(){this.crc32=new Zs}e.prototype.update=function(e){xs(e)||this.crc32.update(As(e))},e.prototype.digest=function(){return Ts(this,void 0,void 0,(function(){return Os(this,(function(e){return[2,(t=this.crc32.digest(),new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))];var t}))}))},e.prototype.reset=function(){this.crc32=new Zs}}();var Ws,Zs=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=$s(e),o=n.next();!o.done;o=n.next()){var i=o.value;this.checksum=this.checksum>>>8^Ks[255&(this.checksum^i)]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),Ks=function(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);class Qs{constructor(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Js(t),new Qs(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Js(e),parseInt(ro(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Js(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class Ys{constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const r of Object.keys(e)){const n=this.fromUtf8(r);t.push(Uint8Array.from([n.byteLength]),n,this.formatHeaderValue(e[r]))}const r=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let n=0;for(const e of t)r.set(e,n),n+=e.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);const i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(s,3),c;case"timestamp":const u=new Uint8Array(9);return u[0]=8,u.set(Qs.fromNumber(e.value.valueOf()).bytes,1),u;case"uuid":if(!ca.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const l=new Uint8Array(17);return l[0]=9,l.set(to(e.value.replace(/\-/g,"")),1),l}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[o]={type:Xs,value:!0};break;case 1:t[o]={type:Xs,value:!1};break;case 2:t[o]={type:ea,value:e.getInt8(r++)};break;case 3:t[o]={type:ta,value:e.getInt16(r,!1)},r+=2;break;case 4:t[o]={type:ra,value:e.getInt32(r,!1)},r+=4;break;case 5:t[o]={type:na,value:new Qs(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[o]={type:oa,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const i=e.getUint16(r,!1);r+=2,t[o]={type:ia,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,i))},r+=i;break;case 8:t[o]={type:sa,value:new Date(new Qs(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[o]={type:aa,value:`${ro(s.subarray(0,4))}-${ro(s.subarray(4,6))}-${ro(s.subarray(6,8))}-${ro(s.subarray(8,10))}-${ro(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(Ws||(Ws={}));const Xs="boolean",ea="byte",ta="short",ra="integer",na="long",oa="binary",ia="string",sa="timestamp",aa="uuid",ca=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ua{constructor(e,t){this.headerMarshaller=new Ys(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,o=new Uint8Array(n),i=new DataView(o.buffer,o.byteOffset,o.byteLength),s=new Zs;return i.setUint32(0,n,!1),i.setUint32(4,r.byteLength,!1),i.setUint32(8,s.update(o.subarray(0,8)).digest(),!1),o.set(r,12),o.set(t,r.byteLength+12),i.setUint32(n-4,s.update(o.subarray(8,n-4)).digest(),!1),o}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");const i=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),c=(new Zs).update(new Uint8Array(r,t,8));if(s!==c.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(r,t+8,e-12)),a!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,i),body:new Uint8Array(r,t+8+4+i,o-i-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class la{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class da{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class ga{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class ha{constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}function pa(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,o={[n]:r},i=await e(o);if(i.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw i[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}class fa{constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new ua(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const c=e.length;let u=0;for(;u<c;){if(!n){const t=c-u;o||(o=new Uint8Array(4));const n=Math.min(4-r,t);if(o.set(e.slice(u,u+n),r),r+=n,u+=n,r<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const s=Math.min(t-r,c-u);n.set(e.slice(u,u+s),r),r+=s,u+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new ga({messageStream:new la({inputStream:r,decoder:this.eventStreamCodec}),deserializer:pa(t,this.utfEncoder)})}serialize(e,t){return new da({messageStream:new ha({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}class ma{constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new fa({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=ka(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const ka=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,ba=e=>new ma(e);function wa(e=0){return new Promise(((t,r)=>{e&&setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)}),e)}))}const va={supported:void 0};class ya{static create(e){return"function"==typeof e?.handle?e:new ya(e)}constructor(e){"function"==typeof e?this.configProvider=e().then((e=>e||{})):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===va.supported&&(va.supported=Boolean("undefined"!=typeof Request&&"keepalive"in new Request("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t}={}){this.config||(this.config=await this.configProvider);const r=this.config.requestTimeout,n=!0===this.config.keepAlive,o=this.config.credentials;if(t?.aborted){const e=new Error("Request aborted");return e.name="AbortError",Promise.reject(e)}let i=e.path;const s=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Ui(r),Array.isArray(n))for(let e=0,o=n.length;e<o;e++)t.push(`${r}=${Ui(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${Ui(n)}`),t.push(e)}}return t.join("&")}(e.query||{});s&&(i+=`?${s}`),e.fragment&&(i+=`#${e.fragment}`);let a="";if(null!=e.username||null!=e.password){a=`${e.username??""}:${e.password??""}@`}const{port:c,method:u}=e,l=`${e.protocol}//${a}${e.hostname}${c?`:${c}`:""}${i}`,d="GET"===u||"HEAD"===u?void 0:e.body,g={body:d,headers:new Headers(e.headers),method:u,credentials:o};this.config?.cache&&(g.cache=this.config.cache),d&&(g.duplex="half"),"undefined"!=typeof AbortController&&(g.signal=t),va.supported&&(g.keepalive=n),"function"==typeof this.config.requestInit&&Object.assign(g,this.config.requestInit(e));let h=()=>{};const p=new Request(l,g),f=[fetch(p).then((e=>{const t=e.headers,r={};for(const e of t.entries())r[e[0]]=e[1];return null!=e.body?{response:new jr({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then((t=>({response:new jr({headers:r,reason:e.statusText,statusCode:e.status,body:t})})))})),wa(r)];return t&&f.push(new Promise(((e,r)=>{const n=()=>{const e=new Error("Request aborted");e.name="AbortError",r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),h=()=>e.removeEventListener("abort",n)}else t.onabort=n}))),Promise.race(f).finally(h)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r=>(r[e]=t,r)))}httpHandlerConfigs(){return this.config??{}}}const _a=e=>"function"==typeof Blob&&e instanceof Blob?async function(e){const t=await function(e){return new Promise(((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)}))}(e),r=Zn(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,o=0;for(;!n;){const{done:e,value:i}=await r.read();i&&(t.push(i),o+=i.length),n=e}const i=new Uint8Array(o);let s=0;for(const e of t)i.set(e,s),s+=e.length;return i}(e);const Sa="function"==typeof TextEncoder?new TextEncoder:null,Aa=e=>{if("string"==typeof e){if(Sa)return Sa.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},xa=e=>new Date(Date.now()+e),Ea=e=>jr.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Ia=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(xa(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},Ra=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t};class Pa{async sign(e,t,r){if(!Hr.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:n,signer:o,signingRegion:i,signingName:s}=await(async e=>{const t=Ra("context",e.context),r=Ra("config",e.config),n=t.endpointV2?.properties?.authSchemes?.[0],o=Ra("signer",r.signer),i=await o(n),s=e?.signingRegion,a=e?.signingName;return{config:r,signer:i,signingRegion:s,signingName:a}})(r);return await o.sign(e,{signingDate:xa(n.systemClockOffset),signingRegion:i,signingService:s})}errorHandler(e){return t=>{const r=t.ServerTime??Ea(t.$response);if(r){const n=Ra("config",e.config),o=n.systemClockOffset;n.systemClockOffset=Ia(r,n.systemClockOffset);n.systemClockOffset!==o&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=Ea(e);if(r){const e=Ra("config",t.config);e.systemClockOffset=Ia(r,e.systemClockOffset)}}}const Ma="required",Ca="fn",Ta="argv",Oa="ref",$a=!0,Na="isSet",La="booleanEquals",Ba="error",Ua="endpoint",Da="tree",Fa="PartitionResult",Ha={[Ma]:!1,type:"String"},ja={[Ma]:!0,default:!1,type:"Boolean"},za={[Oa]:"Endpoint"},Va={[Ca]:La,[Ta]:[{[Oa]:"UseFIPS"},!0]},qa={[Ca]:La,[Ta]:[{[Oa]:"UseDualStack"},!0]},Ga={},Wa={[Ca]:"getAttr",[Ta]:[{[Oa]:Fa},"supportsFIPS"]},Za={[Ca]:La,[Ta]:[!0,{[Ca]:"getAttr",[Ta]:[{[Oa]:Fa},"supportsDualStack"]}]},Ka=[Va],Qa=[qa],Ja=[{[Oa]:"Region"}],Ya={version:"1.0",parameters:{Region:Ha,UseDualStack:ja,UseFIPS:ja,Endpoint:Ha},rules:[{conditions:[{[Ca]:Na,[Ta]:[za]}],rules:[{conditions:Ka,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Ba},{rules:[{conditions:Qa,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Ba},{endpoint:{url:za,properties:Ga,headers:Ga},type:Ua}],type:Da}],type:Da},{rules:[{conditions:[{[Ca]:Na,[Ta]:Ja}],rules:[{conditions:[{[Ca]:"aws.partition",[Ta]:Ja,assign:Fa}],rules:[{conditions:[Va,qa],rules:[{conditions:[{[Ca]:La,[Ta]:[$a,Wa]},Za],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ga,headers:Ga},type:Ua}],type:Da}],type:Da},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Ba}],type:Da},{conditions:Ka,rules:[{conditions:[{[Ca]:La,[Ta]:[Wa,$a]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ga,headers:Ga},type:Ua}],type:Da}],type:Da},{error:"FIPS is enabled but this partition does not support FIPS",type:Ba}],type:Da},{conditions:Qa,rules:[{conditions:[Za],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ga,headers:Ga},type:Ua}],type:Da}],type:Da},{error:"DualStack is enabled but this partition does not support DualStack",type:Ba}],type:Da},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:Ga,headers:Ga},type:Ua}],type:Da}],type:Da}],type:Da},{error:"Invalid Configuration: Missing Region",type:Ba}],type:Da}]},Xa=(e,t={})=>((e,t)=>{const{endpointParams:r,logger:n}=t,{parameters:o,rules:i}=e;t.logger?.debug?.(`${en} Initial EndpointParams: ${tn(r)}`);const s=Object.entries(o).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]));if(s.length>0)for(const[e,t]of s)r[e]=r[e]??t;const a=Object.entries(o).filter((([,e])=>e.required)).map((([e])=>e));for(const e of a)if(null==r[e])throw new rn(`Missing required parameter: '${e}'`);const c=wn(i,{endpointParams:r,logger:n,referenceRecord:{}});return t.logger?.debug?.(`${en} Resolved endpoint: ${tn(c)}`),c})(Ya,{endpointParams:e,logger:t.logger});Xr.aws=Sn;Error;const ec=["in-region","cross-region","mobile","standard","legacy"],tc=()=>{const e="undefined"!=typeof window&&window?.navigator?.userAgent?qs().parse(window.navigator.userAgent):void 0,t=e?.platform?.type;return"tablet"===t||"mobile"===t},rc=e=>{const t=(({defaultsMode:e}={})=>((e,t,r)=>{let n,o,i,s=!1;const a=async()=>{o||(o=e());try{n=await o,i=!0,s=!1}finally{o=void 0}return n};return void 0===t?async e=>(i&&!e?.forceRefresh||(n=await a()),n):async e=>(i&&!e?.forceRefresh||(n=await a()),s?n:r&&!r(n)?(s=!0,n):t(n)?(await a(),n):n)})((async()=>{const t="function"==typeof e?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(tc()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${ec.join(", ")}, got ${t}`)}})))(e),r=()=>t().then(ki),n=(e=>({apiVersion:"2023-09-30",base64Decoder:e?.base64Decoder??Zn,base64Encoder:e?.base64Encoder??Qn,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Xa,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??vs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new Pa}],logger:e?.logger??new Ai,serviceId:e?.serviceId??"Bedrock Runtime",urlParser:e?.urlParser??_o,utf8Decoder:e?.utf8Decoder??Kn,utf8Encoder:e?.utf8Encoder??Jn}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Aa,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??Gs({serviceId:n.serviceId,clientVersion:_s}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??ba,maxAttempts:e?.maxAttempts??3,region:e?.region??(o="Region is missing",()=>Promise.reject(o)),requestHandler:ya.create(e?.requestHandler??r),retryMode:e?.retryMode??(async()=>(await r()).retryMode||Po),sha256:e?.sha256??zs,streamCollector:e?.streamCollector??_a,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(false)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(false))};var o},nc=e=>{let t=async()=>{if(void 0===e.region)throw new Error("Region is missing from runtimeConfig");const t=e.region;return"string"==typeof t?t:t()};return{setRegion(e){t=e},region:()=>t}},oc=e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex((t=>t.schemeId===e.schemeId));-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}},ic=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});class sc extends ni{constructor(...[e]){const t=(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"bedrock"}))(rc(e||{})),r=(e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if("string"==typeof t)return Nn(t);const e=await t();return Nn(e)},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!$n(e)||("function"!=typeof r?Promise.resolve(!!r):r())}}})(t),n=(e=>{const t=e.tls??!0,{endpoint:r}=e,n=null!=r?async()=>So(await On(r)()):void 0,o=!!r,i={...e,endpoint:n,tls:t,isCustomEndpoint:o,useDualstackEndpoint:On(e.useDualstackEndpoint??!1),useFipsEndpoint:On(e.useFipsEndpoint??!1)};let s;return i.serviceConfiguredEndpoint=async()=>(e.serviceId&&!s&&(s=yo(e.serviceId)),s),i})(r);var o;const i=(e=>({...e,eventStreamMarshaller:e.eventStreamSerdeProvider(e)}))((e=>{const{retryStrategy:t}=e,r=On(e.maxAttempts??3);return{...e,maxAttempts:r,retryStrategy:async()=>t||(await On(e.retryMode)()===Ro.ADAPTIVE?new zo(r):new jo(r))}})((o=n,{...o,customUserAgent:"string"==typeof o.customUserAgent?[[o.customUserAgent]]:o.customUserAgent})));const s=((e,t)=>{const r={...nc(e),..._i(e),...Tr(e),...oc(e)};return t.forEach((e=>e.configure(r))),{...e,...(i=r,{region:i.region()}),...(o=r,{...wi(o),...yi(o)}),...(n=r,{httpHandler:n.httpHandler()}),...ic(r)};var n,o,i})({...bs(i)},e?.extensions||[]);super(s),this.config=s,this.middlewareStack.use(Vr(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(((e,t)=>async r=>{try{const n=await e(r),{clientName:o,commandName:i,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=a,l=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:g,...h}=n.output;return s?.info?.({clientName:o,commandName:i,input:l(r.input),output:d(h),metadata:g}),n}catch(e){const{clientName:n,commandName:o,logger:i,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:a}=s,c=a??t.inputFilterSensitiveLog;throw i?.error?.({clientName:n,commandName:o,input:c(r.input),error:e,metadata:e.$metadata}),e}}),qr)}})),this.middlewareStack.use(Zr(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.add(Rn(e),Mn)}}))(this.config)),this.middlewareStack.use(Li(this.config)),this.middlewareStack.use(po(this.config)),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(Ln(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),Bn)}}))(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use(Vn(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return ws}getIdentityProviderConfigProvider(){return async e=>new ao({"aws.auth#sigv4":e.credentials})}}class ac extends pi{constructor(e){super(e),Object.setPrototypeOf(this,ac.prototype)}}class cc extends ac{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,cc.prototype)}}var uc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(uc||(uc={}));class lc extends ac{constructor(e){super({name:"InternalServerException",$fault:"server",...e}),this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,lc.prototype)}}class dc extends ac{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,dc.prototype)}}class gc extends ac{constructor(e){super({name:"ServiceQuotaExceededException",$fault:"client",...e}),this.name="ServiceQuotaExceededException",this.$fault="client",Object.setPrototypeOf(this,gc.prototype)}}class hc extends ac{constructor(e){super({name:"ThrottlingException",$fault:"client",...e}),this.name="ThrottlingException",this.$fault="client",Object.setPrototypeOf(this,hc.prototype)}}class pc extends ac{constructor(e){super({name:"ValidationException",$fault:"client",...e}),this.name="ValidationException",this.$fault="client",Object.setPrototypeOf(this,pc.prototype)}}var fc;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(fc||(fc={}));var mc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):t._(e.$unknown[0],e.$unknown[1])}(mc||(mc={}));var kc,bc;!function(e){e.visit=(e,t)=>void 0!==e.bytes?t.bytes(e.bytes):t._(e.$unknown[0],e.$unknown[1])}(kc||(kc={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):t._(e.$unknown[0],e.$unknown[1])}(bc||(bc={}));var wc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.image?t.image(e.image):void 0!==e.document?t.document(e.document):void 0!==e.toolUse?t.toolUse(e.toolUse):void 0!==e.toolResult?t.toolResult(e.toolResult):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(wc||(wc={}));var vc,yc,_c,Sc,Ac;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.guardContent?t.guardContent(e.guardContent):t._(e.$unknown[0],e.$unknown[1])}(vc||(vc={})),function(e){e.visit=(e,t)=>void 0!==e.auto?t.auto(e.auto):void 0!==e.any?t.any(e.any):void 0!==e.tool?t.tool(e.tool):t._(e.$unknown[0],e.$unknown[1])}(yc||(yc={})),function(e){e.visit=(e,t)=>void 0!==e.json?t.json(e.json):t._(e.$unknown[0],e.$unknown[1])}(_c||(_c={})),function(e){e.visit=(e,t)=>void 0!==e.toolSpec?t.toolSpec(e.toolSpec):t._(e.$unknown[0],e.$unknown[1])}(Sc||(Sc={})),function(e){e.visit=(e,t)=>void 0!==e.message?t.message(e.message):t._(e.$unknown[0],e.$unknown[1])}(Ac||(Ac={}));class xc extends ac{constructor(e){super({name:"ModelErrorException",$fault:"client",...e}),this.name="ModelErrorException",this.$fault="client",Object.setPrototypeOf(this,xc.prototype),this.originalStatusCode=e.originalStatusCode,this.resourceName=e.resourceName}}class Ec extends ac{constructor(e){super({name:"ModelNotReadyException",$fault:"client",...e}),this.name="ModelNotReadyException",this.$fault="client",Object.setPrototypeOf(this,Ec.prototype)}}class Ic extends ac{constructor(e){super({name:"ModelTimeoutException",$fault:"client",...e}),this.name="ModelTimeoutException",this.$fault="client",Object.setPrototypeOf(this,Ic.prototype)}}class Rc extends ac{constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),this.name="ServiceUnavailableException",this.$fault="server",Object.setPrototypeOf(this,Rc.prototype)}}var Pc,Mc,Cc;!function(e){e.visit=(e,t)=>void 0!==e.text?t.text(e.text):void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(Pc||(Pc={})),function(e){e.visit=(e,t)=>void 0!==e.toolUse?t.toolUse(e.toolUse):t._(e.$unknown[0],e.$unknown[1])}(Mc||(Mc={}));class Tc extends ac{constructor(e){super({name:"ModelStreamErrorException",$fault:"client",...e}),this.name="ModelStreamErrorException",this.$fault="client",Object.setPrototypeOf(this,Tc.prototype),this.originalStatusCode=e.originalStatusCode,this.originalMessage=e.originalMessage}}!function(e){e.visit=(e,t)=>void 0!==e.messageStart?t.messageStart(e.messageStart):void 0!==e.contentBlockStart?t.contentBlockStart(e.contentBlockStart):void 0!==e.contentBlockDelta?t.contentBlockDelta(e.contentBlockDelta):void 0!==e.contentBlockStop?t.contentBlockStop(e.contentBlockStop):void 0!==e.messageStop?t.messageStop(e.messageStop):void 0!==e.metadata?t.metadata(e.metadata):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Cc||(Cc={}));var Oc;!function(e){e.visit=(e,t)=>void 0!==e.chunk?t.chunk(e.chunk):void 0!==e.internalServerException?t.internalServerException(e.internalServerException):void 0!==e.modelStreamErrorException?t.modelStreamErrorException(e.modelStreamErrorException):void 0!==e.validationException?t.validationException(e.validationException):void 0!==e.throttlingException?t.throttlingException(e.throttlingException):void 0!==e.modelTimeoutException?t.modelTimeoutException(e.modelTimeoutException):void 0!==e.serviceUnavailableException?t.serviceUnavailableException(e.serviceUnavailableException):t._(e.$unknown[0],e.$unknown[1])}(Oc||(Oc={}));const $c=e=>({...e,...e.body&&{body:si}}),Nc=e=>({...e,...e.body&&{body:si}}),Lc=e=>({...e,...e.body&&{body:si}}),Bc=e=>({...e,...e.body&&{body:"STREAMING_CONTENT"}}),Uc=(e,t)=>((e,t)=>no(e,t).then((e=>t.utf8Encoder(e))))(e,t).then((e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}})),Dc=async(e,t)=>{const r=await Uc(e,t);return r.message=r.message??r.Message,r},Fc=async(e,t)=>{const r=io(e,t),n=xi({},pu,{[ku]:e[mu]||"application/octet-stream",[fu]:e[fu],[xu]:e[vu],[Su]:e[bu],[Au]:e[wu]});let o;return r.bp("/model/{modelId}/invoke"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},Hc=async(e,t)=>{const r=io(e,t),n=xi({},pu,{[ku]:e[mu]||"application/octet-stream",[yu]:e[fu],[xu]:e[vu],[Su]:e[bu],[Au]:e[wu]});let o;return r.bp("/model/{modelId}/invoke-with-response-stream"),r.p("modelId",(()=>e.modelId),"{modelId}",!1),void 0!==e.body&&(o=e.body),r.m("POST").h(n).b(o),r.build()},jc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Vc(e,t);const r=xi({$metadata:hu(e),[mu]:[,e.headers[ku]]}),n=await no(e.body,t);return r.body=n,r},zc=async(e,t)=>{if(200!==e.statusCode&&e.statusCode>=300)return Vc(e,t);const r=xi({$metadata:hu(e),[mu]:[,e.headers[_u]]}),n=e.body;return r.body=ou(n,t),r},Vc=async(e,t)=>{const r={...e,body:await Dc(e.body,t)},n=((e,t)=>{const r=e=>{let t=e;return"number"==typeof t&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=(o=e.headers,i="x-amzn-errortype",Object.keys(o).find((e=>e.toLowerCase()===i.toLowerCase())));var o,i;return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):void 0})(e,r.body);switch(n){case"AccessDeniedException":case"com.amazonaws.bedrockruntime#AccessDeniedException":throw await Wc(r,t);case"InternalServerException":case"com.amazonaws.bedrockruntime#InternalServerException":throw await Zc(r,t);case"ResourceNotFoundException":case"com.amazonaws.bedrockruntime#ResourceNotFoundException":throw await Xc(r,t);case"ServiceQuotaExceededException":case"com.amazonaws.bedrockruntime#ServiceQuotaExceededException":throw await eu(r,t);case"ThrottlingException":case"com.amazonaws.bedrockruntime#ThrottlingException":throw await ru(r,t);case"ValidationException":case"com.amazonaws.bedrockruntime#ValidationException":throw await nu(r,t);case"ModelErrorException":case"com.amazonaws.bedrockruntime#ModelErrorException":throw await Kc(r,t);case"ModelNotReadyException":case"com.amazonaws.bedrockruntime#ModelNotReadyException":throw await Qc(r,t);case"ModelTimeoutException":case"com.amazonaws.bedrockruntime#ModelTimeoutException":throw await Yc(r,t);case"ServiceUnavailableException":case"com.amazonaws.bedrockruntime#ServiceUnavailableException":throw await tu(r,t);case"ModelStreamErrorException":case"com.amazonaws.bedrockruntime#ModelStreamErrorException":throw await Jc(r,t);default:const o=r.body;return qc({output:e,parsedBody:o,errorCode:n})}},qc=(Gc=ac,({output:e,parsedBody:t,errorCode:r})=>{(({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=mi(e),i=o.httpStatusCode?o.httpStatusCode+"":void 0,s=new r({name:t?.code||t?.Code||n||i||"UnknownError",$fault:"client",$metadata:o});throw fi(s,t)})({output:e,parsedBody:t,exceptionCtor:Gc,errorCode:r})});var Gc;const Wc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new cc({$metadata:hu(e),...r});return fi(i,e.body)},Zc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new lc({$metadata:hu(e),...r});return fi(i,e.body)},Kc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di,originalStatusCode:ci,resourceName:di});Object.assign(r,o);const i=new xc({$metadata:hu(e),...r});return fi(i,e.body)},Qc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new Ec({$metadata:hu(e),...r});return fi(i,e.body)},Jc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di,originalMessage:di,originalStatusCode:ci});Object.assign(r,o);const i=new Tc({$metadata:hu(e),...r});return fi(i,e.body)},Yc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new Ic({$metadata:hu(e),...r});return fi(i,e.body)},Xc=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new dc({$metadata:hu(e),...r});return fi(i,e.body)},eu=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new gc({$metadata:hu(e),...r});return fi(i,e.body)},tu=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new Rc({$metadata:hu(e),...r});return fi(i,e.body)},ru=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new hc({$metadata:hu(e),...r});return fi(i,e.body)},nu=async(e,t)=>{const r=xi({}),n=e.body,o=Ei(n,{message:di});Object.assign(r,o);const i=new pc({$metadata:hu(e),...r});return fi(i,e.body)},ou=(e,t)=>t.eventStreamMarshaller.deserialize(e,(async r=>null!=r.chunk?{chunk:await cu(r.chunk,t)}:null!=r.internalServerException?{internalServerException:await iu(r.internalServerException,t)}:null!=r.modelStreamErrorException?{modelStreamErrorException:await su(r.modelStreamErrorException,t)}:null!=r.validationException?{validationException:await du(r.validationException,t)}:null!=r.throttlingException?{throttlingException:await lu(r.throttlingException,t)}:null!=r.modelTimeoutException?{modelTimeoutException:await au(r.modelTimeoutException,t)}:null!=r.serviceUnavailableException?{serviceUnavailableException:await uu(r.serviceUnavailableException,t)}:{$unknown:e})),iu=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return Zc(r,t)},su=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return Jc(r,t)},au=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return Yc(r,t)},cu=async(e,t)=>{const r={},n=await Uc(e.body,t);return Object.assign(r,gu(n,t)),r},uu=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return tu(r,t)},lu=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return ru(r,t)},du=async(e,t)=>{const r={...e,body:await Uc(e.body,t)};return nu(r,t)},gu=(e,t)=>Ei(e,{bytes:t.base64Decoder}),hu=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),pu=e=>!(null==e||""===e||Object.getOwnPropertyNames(e).includes("length")&&0==e.length||Object.getOwnPropertyNames(e).includes("size")&&0==e.size),fu="accept",mu="contentType",ku="content-type",bu="guardrailIdentifier",wu="guardrailVersion",vu="trace",yu="x-amzn-bedrock-accept",_u="x-amzn-bedrock-content-type",Su="x-amzn-bedrock-guardrailidentifier",Au="x-amzn-bedrock-guardrailversion",xu="x-amzn-bedrock-trace";class Eu extends(oi.classBuilder().ep({...ys}).m((function(e,t,r,n){return[Fn(r,this.serialize,this.deserialize),Io(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModelWithResponseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","InvokeModelWithResponseStreamCommand").f(Lc,Bc).ser(Hc).de(zc).build()){}class Iu extends(oi.classBuilder().ep({...ys}).m((function(e,t,r,n){return[Fn(r,this.serialize,this.deserialize),Io(r,e.getEndpointParameterInstructions())]})).s("AmazonBedrockFrontendService","InvokeModel",{}).n("BedrockRuntimeClient","InvokeModelCommand").f($c,Nc).ser(Fc).de(jc).build()){}function Ru(){const e=["_requestHeaders","signal","filter","completion","1307458KlQKBS","anthropic.claude-v2","send","from","define","cohere.command","abortController","application/json","json","ai.aws.bedrockClientConfig","parse","stringify","AI_ERROR_UNSUPPORTED_MODEL","\n<</SYS>>\n[INST]\n","generation","2142710dHcJXH","toString","join","_getGeneratedText","test","bytes","_readStreamableResponse","ai21.j2","_prepareRequestHeaders","\n\nAssistant:","_processAWSRequest","_readStaticResponse","preparePrompt","text","678900HIhDDM","get","3JKSPtU","getModelFamily","bedrock-2023-05-31","config","Your task is to generate HTML content accordingly to the given instruction. Never include <img> tag in your response even if asked for. Your answer must be a well-structured and properly formatted HTML code. Answer only with the generated HTML content. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","ai.aws.requestHeaders","anthropic.claude","locale","pluginName","<<SYS>>\n","ai.aws.requestParameters","sendRequest","_apiUrl","decode","9063mZaDby","body","Instruction:\n","generations","3934025gnUjsG","6088299BllfPm","_processProxyRequest","data","POST","AWSTextAdapter","getReader","7768PzbAaz","length","55uHZDOa","Human:\n","utf8","resolve","Your task is to execute the instruction using the provided HTML content. Follow the instruction closely. Your answer must be a properly formatted HTML code. Do not add any additional remarks or notes. Do not act like a chatbot or a real person.","ai.aws.apiUrl","utf-8","read","editor","map","completions","5910044hJXcyS","_prepareRequestParameters","12GcmUHC","\n[/INST]","_readAsyncIterableResponse","\nYou must keep the text formatting.\n\nContent:\n","chunk","_bedrockClientConfig","split","_requestParameters","meta.llama"];return(Ru=function(){return e})()}const Pu=Mu;function Mu(e,t){const r=Ru();return(Mu=function(e,t){return r[e-=306]})(e,t)}!function(e){const t=Mu,r=e();for(;;)try{if(876870===-parseInt(t(372))/1+-parseInt(t(317))/2+-parseInt(t(319))/3*(-parseInt(t(357))/4)+-parseInt(t(337))/5+parseInt(t(359))/6*(parseInt(t(338))/7)+-parseInt(t(344))/8*(parseInt(t(333))/9)+-parseInt(t(387))/10*(-parseInt(t(346))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Ru);class Cu extends Ir{static get[Pu(327)](){return Pu(342)}constructor(e){const t=Pu;super(e),e[t(322)][t(318)](t(329))||e[t(322)][t(376)](t(329),{model:t(373),max_tokens_to_sample:2e3,temperature:1,top_p:1,top_k:250,anthropic_version:t(321),stream:!0}),this[t(331)]=e[t(322)][t(318)](t(351)),this[t(364)]=e[t(322)][t(318)](t(381)),this[t(368)]=e[t(322)][t(318)](t(324)),this[t(366)]=e[t(322)][t(318)](t(329))}async[Pu(330)]({query:e,context:t,onData:r,actionId:n}){const o=Pu,{model:i,stream:s,...a}=await this[o(358)](this[o(366)],n),c={prompt:await this[o(315)](e,t,i,n),...a};this[o(331)]?await this[o(339)](c,i,s,r,n):await this[o(313)](c,i,s,r)}async[Pu(315)](e,t,r,n){const o=Pu;let i,s;return t?(i=o(350),s=o(335)+e+o(362)+t):(i=o(323),s=e),o(367)==this[o(320)](r)?o(328)+i+o(385)+s+o(360):o(347)+i+"\n"+s+o(312)}[Pu(320)](e){const t=Pu;if(/^anthropic\.claude/[t(307)](e))return t(325);if(/^ai21\.j2/[t(307)](e))return t(310);if(/^cohere\.command/[t(307)](e))return t(377);if(/^meta\.llama/[t(307)](e))return t(367);throw new Ue(De(this[t(354)][t(326)],t(384),e))}async[Pu(339)](e,t,r,n,o){const i=Pu,s={method:i(341),headers:await this[i(311)](this[i(368)],o),body:JSON[i(383)]({...e,model:t,stream:r}),signal:this[i(378)][i(369)]},a=await fetch(this[i(331)],s);r?await this[i(309)](a,t,n):await this[i(314)](a,t,n)}async[Pu(313)](e,t,r,n){const o=Pu,i=new sc(this[o(364)]),s={body:JSON[o(383)](e),contentType:o(379),accept:o(379),modelId:t};let a;if(r){const e=new Eu(s);a=await i[o(374)](e,{abortSignal:this[o(378)][o(369)]}),await this[o(361)](a,t,n)}else{const e=new Iu(s);a=await i[o(374)](e,{abortSignal:this[o(378)][o(369)]}),await this[o(314)](a,t,n)}}async[Pu(361)](e,t,r){const n=Pu,o=e[n(334)],i=new TextDecoder(n(352));let s="";for await(const e of o)if(e[n(363)]){const o=i[n(332)](e[n(363)][n(308)]),a=JSON[n(382)](o);s+=this[n(306)](a,t),r(s)}return Promise[n(349)]()}async[Pu(309)](e,t,r){const n=Pu,o=e[n(334)],i=new TextDecoder(n(352)),s=o[n(343)]();let a="",c="",u=!1;for(;!u;){const{done:e,value:o}=await s[n(353)]();if(u=e,u)break;const l=(a+i[n(332)](o))[n(365)]("\n")[n(355)]((e=>{const t=n;try{return a="",JSON[t(382)](e)}catch(t){return a=e,null}}))[n(370)]((e=>null!==e));l[n(345)]&&(c+=l[n(355)]((e=>this[n(306)](e,t)))[n(389)](""),r(c))}return Promise[n(349)]()}async[Pu(314)](e,t,r){const n=Pu;let o;return o=e instanceof Response?await e[n(380)]():JSON[n(382)](Buffer[n(375)](e[n(334)])[n(388)](n(348))),r(this[n(306)](o,t)),Promise[n(349)]()}[Pu(306)](e,t){const r=Pu;switch(this[r(320)](t)){case r(325):return e[r(371)];case r(310):return e[r(356)][0][r(340)][r(316)];case r(377):return e[r(336)][0][r(316)];case r(367):return e[r(386)]}}}function Tu(){var e=["63762CRImSM","203064XhNzZm","15oWKRkj","88BPzpOt","576306WcKRbQ","1079850ZuGXIq","2015266YNPUvm","464vqXrPz","10108qUpYPQ","250EDQOpd","4CZRuQU","363213FlSmeh"];return(Tu=function(){return e})()}function Ou(e,t){var r=Tu();return(Ou=function(e,t){return r[e-=482]})(e,t)}!function(e){for(var t=Ou,r=e();;)try{if(552607===parseInt(t(483))/1+-parseInt(t(484))/2+parseInt(t(490))/3*(-parseInt(t(488))/4)+parseInt(t(492))/5*(-parseInt(t(482))/6)+parseInt(t(486))/7*(-parseInt(t(485))/8)+-parseInt(t(489))/9*(-parseInt(t(487))/10)+parseInt(t(493))/11*(-parseInt(t(491))/12))break;r.push(r.shift())}catch(e){r.push(r.shift())}}(Tu)})(),(window.CKEditor5=window.CKEditor5||{}).ai=n})();