@streamlayer/react 1.22.2 → 1.23.0

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 (112) hide show
  1. package/lib/cjs/Question.js +1 -1
  2. package/lib/cjs/advertisement.js +44 -40
  3. package/lib/cjs/analytics.js +1 -1
  4. package/lib/cjs/index-eShKGO10.js +5 -0
  5. package/lib/cjs/index.js +1 -1
  6. package/lib/cjs/index10.js +4 -1
  7. package/lib/cjs/index11.js +1 -4
  8. package/lib/cjs/index12.js +1 -1
  9. package/lib/cjs/index13.js +1 -1
  10. package/lib/cjs/index14.js +1 -1
  11. package/lib/cjs/index15.js +5 -1
  12. package/lib/cjs/index2.js +1 -1
  13. package/lib/cjs/index4.js +1 -1
  14. package/lib/cjs/index7.js +1 -5
  15. package/lib/cjs/index8.js +1 -1
  16. package/lib/cjs/index9.js +1 -1
  17. package/lib/cjs/insight.js +1 -1
  18. package/lib/cjs/masters2.js +5 -5
  19. package/lib/cjs/notification.js +1 -1
  20. package/lib/cjs/pause-ad.js +1 -1
  21. package/lib/cjs/points.js +1 -1
  22. package/lib/cjs/storage.js +1 -1
  23. package/lib/cjs/useStreamLayerApp2.js +17 -17
  24. package/lib/classic/cjs/Question.js +1 -1
  25. package/lib/classic/cjs/advertisement.js +44 -40
  26. package/lib/classic/cjs/analytics.js +1 -1
  27. package/lib/classic/cjs/bet-pack.js +1 -1
  28. package/lib/classic/cjs/index-eShKGO10.js +5 -0
  29. package/lib/classic/cjs/index.js +1 -1
  30. package/lib/classic/cjs/index10.js +1 -1
  31. package/lib/classic/cjs/index11.js +1 -1
  32. package/lib/classic/cjs/index12.js +4 -1
  33. package/lib/classic/cjs/index2.js +2 -2
  34. package/lib/classic/cjs/index3.js +1 -1
  35. package/lib/classic/cjs/index4.js +1 -1
  36. package/lib/classic/cjs/index5.js +1 -1
  37. package/lib/classic/cjs/index6.js +1 -5
  38. package/lib/classic/cjs/index7.js +1 -1
  39. package/lib/classic/cjs/index8.js +1 -1
  40. package/lib/classic/cjs/index9.js +1 -1
  41. package/lib/classic/cjs/insight.js +1 -1
  42. package/lib/classic/cjs/notification.js +1 -1
  43. package/lib/classic/cjs/notification2.js +1 -1
  44. package/lib/classic/cjs/pause-ad.js +1 -1
  45. package/lib/classic/cjs/points.js +1 -1
  46. package/lib/classic/cjs/useStreamLayerApp2.js +17 -17
  47. package/lib/classic/es/Question.js +53 -53
  48. package/lib/classic/es/advertisement.js +15547 -10742
  49. package/lib/classic/es/analytics.js +74 -18
  50. package/lib/classic/es/bet-pack.js +4 -4
  51. package/lib/classic/es/index-eShKGO10.js +3757 -0
  52. package/lib/classic/es/index.js +1 -1
  53. package/lib/classic/es/index10.js +2295 -82
  54. package/lib/classic/es/index11.js +179 -2357
  55. package/lib/classic/es/index12.js +822 -170
  56. package/lib/classic/es/index2.js +13 -14
  57. package/lib/classic/es/index3.js +16 -61
  58. package/lib/classic/es/index4.js +282 -16
  59. package/lib/classic/es/index5.js +5 -283
  60. package/lib/classic/es/index6.js +9 -3756
  61. package/lib/classic/es/index7.js +62 -5
  62. package/lib/classic/es/index8.js +315 -7
  63. package/lib/classic/es/index9.js +81 -313
  64. package/lib/classic/es/insight.js +1 -1
  65. package/lib/classic/es/notification.js +1 -1
  66. package/lib/classic/es/notification2.js +476 -452
  67. package/lib/classic/es/pause-ad.js +174 -208
  68. package/lib/classic/es/points.js +4 -4
  69. package/lib/classic/es/useStreamLayerApp2.js +5062 -4028
  70. package/lib/dist/cjs/index-eShKGO10.js +5 -0
  71. package/lib/dist/cjs/masters.js +35 -35
  72. package/lib/dist/es/index-eShKGO10.js +3757 -0
  73. package/lib/dist/es/masters.js +9267 -8240
  74. package/lib/dist/index.d.ts +13 -1
  75. package/lib/dist/style.css +1 -1
  76. package/lib/es/Question.js +4 -4
  77. package/lib/es/advertisement.js +15547 -10742
  78. package/lib/es/analytics.js +74 -18
  79. package/lib/es/index-eShKGO10.js +3757 -0
  80. package/lib/es/index.js +1 -1
  81. package/lib/es/index10.js +804 -236
  82. package/lib/es/index11.js +170 -822
  83. package/lib/es/index12.js +302 -166
  84. package/lib/es/index13.js +81 -313
  85. package/lib/es/index14.js +2350 -82
  86. package/lib/es/index15.js +1229 -2330
  87. package/lib/es/index2.js +10 -11
  88. package/lib/es/index4.js +2 -2
  89. package/lib/es/index7.js +5 -3756
  90. package/lib/es/index8.js +9 -5
  91. package/lib/es/index9.js +263 -7
  92. package/lib/es/insight.js +1 -1
  93. package/lib/es/masters2.js +15 -16
  94. package/lib/es/notification.js +449 -425
  95. package/lib/es/pause-ad.js +174 -208
  96. package/lib/es/points.js +1 -1
  97. package/lib/es/storage.js +2 -2
  98. package/lib/es/useStreamLayerApp2.js +5062 -4028
  99. package/lib/style.css +1 -1
  100. package/package.json +17 -16
  101. package/lib/cjs/index-DSi8Qgfs.js +0 -1
  102. package/lib/cjs/index16.js +0 -5
  103. package/lib/cjs/vast-client.min.js +0 -1
  104. package/lib/classic/cjs/index-DSi8Qgfs.js +0 -1
  105. package/lib/classic/cjs/index13.js +0 -4
  106. package/lib/classic/cjs/vast-client.min.js +0 -1
  107. package/lib/classic/es/index-DSi8Qgfs.js +0 -65
  108. package/lib/classic/es/index13.js +0 -835
  109. package/lib/classic/es/vast-client.min.js +0 -1060
  110. package/lib/es/index-DSi8Qgfs.js +0 -65
  111. package/lib/es/index16.js +0 -1254
  112. package/lib/es/vast-client.min.js +0 -1060
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var V={},M={};function Lr(e,r,t){if(t===void 0&&(t=Array.prototype),e&&typeof t.find=="function")return t.find.call(e,r);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];if(r.call(void 0,a,n,e))return a}}function De(e,r){return r===void 0&&(r=Object),r&&typeof r.freeze=="function"?r.freeze(e):e}function Or(e,r){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}var We=De({HTML:"text/html",isHTML:function(e){return e===We.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ke=De({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===Ke.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});M.assign=Or;M.find=Lr;M.freeze=De;M.MIME_TYPE=We;M.NAMESPACE=Ke;var Qe=M,R=Qe.find,Q=Qe.NAMESPACE;function Rr(e){return e!==""}function Cr(e){return e?e.split(/[\t\n\f\r ]+/).filter(Rr):[]}function Ir(e,r){return e.hasOwnProperty(r)||(e[r]=!0),e}function Ue(e){if(!e)return[];var r=Cr(e);return Object.keys(r.reduce(Ir,{}))}function kr(e){return function(r){return e&&e.indexOf(r)!==-1}}function ne(e,r){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}function T(e,r){var t=e.prototype;if(!(t instanceof r)){let n=function(){};n.prototype=r.prototype,n=new n,ne(t,n),e.prototype=t=n}t.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),t.constructor=e)}var q={},L=q.ELEMENT_NODE=1,X=q.ATTRIBUTE_NODE=2,ce=q.TEXT_NODE=3,er=q.CDATA_SECTION_NODE=4,rr=q.ENTITY_REFERENCE_NODE=5,_r=q.ENTITY_NODE=6,tr=q.PROCESSING_INSTRUCTION_NODE=7,nr=q.COMMENT_NODE=8,ar=q.DOCUMENT_NODE=9,or=q.DOCUMENT_TYPE_NODE=10,k=q.DOCUMENT_FRAGMENT_NODE=11,Mr=q.NOTATION_NODE=12,y={},N={};y.INDEX_SIZE_ERR=(N[1]="Index size error",1);y.DOMSTRING_SIZE_ERR=(N[2]="DOMString size error",2);var D=y.HIERARCHY_REQUEST_ERR=(N[3]="Hierarchy request error",3);y.WRONG_DOCUMENT_ERR=(N[4]="Wrong document",4);y.INVALID_CHARACTER_ERR=(N[5]="Invalid character",5);y.NO_DATA_ALLOWED_ERR=(N[6]="No data allowed",6);y.NO_MODIFICATION_ALLOWED_ERR=(N[7]="No modification allowed",7);var ir=y.NOT_FOUND_ERR=(N[8]="Not found",8);y.NOT_SUPPORTED_ERR=(N[9]="Not supported",9);var Pe=y.INUSE_ATTRIBUTE_ERR=(N[10]="Attribute in use",10);y.INVALID_STATE_ERR=(N[11]="Invalid state",11);y.SYNTAX_ERR=(N[12]="Syntax error",12);y.INVALID_MODIFICATION_ERR=(N[13]="Invalid modification",13);y.NAMESPACE_ERR=(N[14]="Invalid namespace",14);y.INVALID_ACCESS_ERR=(N[15]="Invalid access",15);function b(e,r){if(r instanceof Error)var t=r;else t=this,Error.call(this,N[e]),this.message=N[e],Error.captureStackTrace&&Error.captureStackTrace(this,b);return t.code=e,r&&(this.message=this.message+": "+r),t}b.prototype=Error.prototype;ne(y,b);function I(){}I.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,r){for(var t=[],n=0;n<this.length;n++)F(this[n],t,e,r);return t.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function $(e,r){this._node=e,this._refresh=r,Te(this)}function Te(e){var r=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==r){var t=e._refresh(e._node);if(vr(e,"length",t.length),!e.$$length||t.length<e.$$length)for(var n=t.length;n in e;n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];ne(t,e),e._inc=r}}$.prototype.item=function(e){return Te(this),this[e]||null};T($,I);function ue(){}function sr(e,r){for(var t=e.length;t--;)if(e[t]===r)return t}function Ve(e,r,t,n){if(n?r[sr(r,n)]=t:r[r.length++]=t,e){t.ownerElement=e;var a=e.ownerDocument;a&&(n&&ur(a,e,n),Ur(a,e,t))}}function Be(e,r,t){var n=sr(r,t);if(n>=0){for(var a=r.length-1;n<a;)r[n]=r[++n];if(r.length=a,e){var o=e.ownerDocument;o&&(ur(o,e,t),t.ownerElement=null)}}else throw new b(ir,new Error(e.tagName+"@"+t))}ue.prototype={length:0,item:I.prototype.item,getNamedItem:function(e){for(var r=this.length;r--;){var t=this[r];if(t.nodeName==e)return t}},setNamedItem:function(e){var r=e.ownerElement;if(r&&r!=this._ownerElement)throw new b(Pe);var t=this.getNamedItem(e.nodeName);return Ve(this._ownerElement,this,e,t),t},setNamedItemNS:function(e){var r=e.ownerElement,t;if(r&&r!=this._ownerElement)throw new b(Pe);return t=this.getNamedItemNS(e.namespaceURI,e.localName),Ve(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var r=this.getNamedItem(e);return Be(this._ownerElement,this,r),r},removeNamedItemNS:function(e,r){var t=this.getNamedItemNS(e,r);return Be(this._ownerElement,this,t),t},getNamedItemNS:function(e,r){for(var t=this.length;t--;){var n=this[t];if(n.localName==r&&n.namespaceURI==e)return n}return null}};function lr(){}lr.prototype={hasFeature:function(e,r){return!0},createDocument:function(e,r,t){var n=new ae;if(n.implementation=this,n.childNodes=new I,n.doctype=t||null,t&&n.appendChild(t),r){var a=n.createElementNS(e,r);n.appendChild(a)}return n},createDocumentType:function(e,r,t){var n=new fe;return n.name=e,n.nodeName=e,n.publicId=r||"",n.systemId=t||"",n}};function d(){}d.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,r){return pe(this,e,r)},replaceChild:function(e,r){pe(this,e,r,dr),r&&this.removeChild(r)},removeChild:function(e){return pr(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return Ne(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var r=e.nextSibling;r&&r.nodeType==ce&&e.nodeType==ce?(this.removeChild(r),e.appendData(r.data)):(e.normalize(),e=r)}},isSupported:function(e,r){return this.ownerDocument.implementation.hasFeature(e,r)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var r=this;r;){var t=r._nsMap;if(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&t[n]===e)return n}r=r.nodeType==X?r.ownerDocument:r.parentNode}return null},lookupNamespaceURI:function(e){for(var r=this;r;){var t=r._nsMap;if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];r=r.nodeType==X?r.ownerDocument:r.parentNode}return null},isDefaultNamespace:function(e){var r=this.lookupPrefix(e);return r==null}};function cr(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}ne(q,d);ne(q,d.prototype);function ee(e,r){if(r(e))return!0;if(e=e.firstChild)do if(ee(e,r))return!0;while(e=e.nextSibling)}function ae(){this.ownerDocument=this}function Ur(e,r,t){e&&e._inc++;var n=t.namespaceURI;n===Q.XMLNS&&(r._nsMap[t.prefix?t.localName:""]=t.value)}function ur(e,r,t,n){e&&e._inc++;var a=t.namespaceURI;a===Q.XMLNS&&delete r._nsMap[t.prefix?t.localName:""]}function qe(e,r,t){if(e&&e._inc){e._inc++;var n=r.childNodes;if(t)n[n.length++]=t;else{for(var a=r.firstChild,o=0;a;)n[o++]=a,a=a.nextSibling;n.length=o,delete n[n.length]}}}function pr(e,r){var t=r.previousSibling,n=r.nextSibling;return t?t.nextSibling=n:e.firstChild=n,n?n.previousSibling=t:e.lastChild=t,r.parentNode=null,r.previousSibling=null,r.nextSibling=null,qe(e.ownerDocument,e),r}function Pr(e){return e&&(e.nodeType===d.DOCUMENT_NODE||e.nodeType===d.DOCUMENT_FRAGMENT_NODE||e.nodeType===d.ELEMENT_NODE)}function Vr(e){return e&&(C(e)||xe(e)||_(e)||e.nodeType===d.DOCUMENT_FRAGMENT_NODE||e.nodeType===d.COMMENT_NODE||e.nodeType===d.PROCESSING_INSTRUCTION_NODE)}function _(e){return e&&e.nodeType===d.DOCUMENT_TYPE_NODE}function C(e){return e&&e.nodeType===d.ELEMENT_NODE}function xe(e){return e&&e.nodeType===d.TEXT_NODE}function He(e,r){var t=e.childNodes||[];if(R(t,C)||_(r))return!1;var n=R(t,_);return!(r&&n&&t.indexOf(n)>t.indexOf(r))}function Ge(e,r){var t=e.childNodes||[];function n(o){return C(o)&&o!==r}if(R(t,n))return!1;var a=R(t,_);return!(r&&a&&t.indexOf(a)>t.indexOf(r))}function Br(e,r,t){if(!Pr(e))throw new b(D,"Unexpected parent node type "+e.nodeType);if(t&&t.parentNode!==e)throw new b(ir,"child not in parent");if(!Vr(r)||_(r)&&e.nodeType!==d.DOCUMENT_NODE)throw new b(D,"Unexpected node type "+r.nodeType+" for parent node type "+e.nodeType)}function Hr(e,r,t){var n=e.childNodes||[],a=r.childNodes||[];if(r.nodeType===d.DOCUMENT_FRAGMENT_NODE){var o=a.filter(C);if(o.length>1||R(a,xe))throw new b(D,"More than one element or text in fragment");if(o.length===1&&!He(e,t))throw new b(D,"Element in fragment can not be inserted before doctype")}if(C(r)&&!He(e,t))throw new b(D,"Only one element can be added and only after doctype");if(_(r)){if(R(n,_))throw new b(D,"Only one doctype is allowed");var i=R(n,C);if(t&&n.indexOf(i)<n.indexOf(t))throw new b(D,"Doctype can only be inserted before an element");if(!t&&i)throw new b(D,"Doctype can not be appended since element is present")}}function dr(e,r,t){var n=e.childNodes||[],a=r.childNodes||[];if(r.nodeType===d.DOCUMENT_FRAGMENT_NODE){var o=a.filter(C);if(o.length>1||R(a,xe))throw new b(D,"More than one element or text in fragment");if(o.length===1&&!Ge(e,t))throw new b(D,"Element in fragment can not be inserted before doctype")}if(C(r)&&!Ge(e,t))throw new b(D,"Only one element can be added and only after doctype");if(_(r)){if(R(n,function(s){return _(s)&&s!==t}))throw new b(D,"Only one doctype is allowed");var i=R(n,C);if(t&&n.indexOf(i)<n.indexOf(t))throw new b(D,"Doctype can only be inserted before an element")}}function pe(e,r,t,n){Br(e,r,t),e.nodeType===d.DOCUMENT_NODE&&(n||Hr)(e,r,t);var a=r.parentNode;if(a&&a.removeChild(r),r.nodeType===k){var o=r.firstChild;if(o==null)return r;var i=r.lastChild}else o=i=r;var s=t?t.previousSibling:e.lastChild;o.previousSibling=s,i.nextSibling=t,s?s.nextSibling=o:e.firstChild=o,t==null?e.lastChild=i:t.previousSibling=i;do{o.parentNode=e;var u=e.ownerDocument||e;re(o,u)}while(o!==i&&(o=o.nextSibling));return qe(e.ownerDocument||e,e),r.nodeType==k&&(r.firstChild=r.lastChild=null),r}function re(e,r){if(e.ownerDocument!==r){if(e.ownerDocument=r,e.nodeType===L&&e.attributes)for(var t=0;t<e.attributes.length;t++){var n=e.attributes.item(t);n&&(n.ownerDocument=r)}for(var a=e.firstChild;a;)re(a,r),a=a.nextSibling}}function Gr(e,r){r.parentNode&&r.parentNode.removeChild(r),r.parentNode=e,r.previousSibling=e.lastChild,r.nextSibling=null,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,e.lastChild=r,qe(e.ownerDocument,e,r);var t=e.ownerDocument||e;return re(r,t),r}ae.prototype={nodeName:"#document",nodeType:ar,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,r){if(e.nodeType==k){for(var t=e.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,r),t=n}return e}return pe(this,e,r),re(e,this),this.documentElement===null&&e.nodeType===L&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),pr(this,e)},replaceChild:function(e,r){pe(this,e,r,dr),re(e,this),r&&this.removeChild(r),C(e)&&(this.documentElement=e)},importNode:function(e,r){return br(this,e,r)},getElementById:function(e){var r=null;return ee(this.documentElement,function(t){if(t.nodeType==L&&t.getAttribute("id")==e)return r=t,!0}),r},getElementsByClassName:function(e){var r=Ue(e);return new $(this,function(t){var n=[];return r.length>0&&ee(t.documentElement,function(a){if(a!==t&&a.nodeType===L){var o=a.getAttribute("class");if(o){var i=e===o;if(!i){var s=Ue(o);i=r.every(kr(s))}i&&n.push(a)}}}),n})},createElement:function(e){var r=new B;r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.localName=e,r.childNodes=new I;var t=r.attributes=new ue;return t._ownerElement=r,r},createDocumentFragment:function(){var e=new he;return e.ownerDocument=this,e.childNodes=new I,e},createTextNode:function(e){var r=new Se;return r.ownerDocument=this,r.appendData(e),r},createComment:function(e){var r=new Ae;return r.ownerDocument=this,r.appendData(e),r},createCDATASection:function(e){var r=new Le;return r.ownerDocument=this,r.appendData(e),r},createProcessingInstruction:function(e,r){var t=new Re;return t.ownerDocument=this,t.tagName=t.nodeName=t.target=e,t.nodeValue=t.data=r,t},createAttribute:function(e){var r=new de;return r.ownerDocument=this,r.name=e,r.nodeName=e,r.localName=e,r.specified=!0,r},createEntityReference:function(e){var r=new Oe;return r.ownerDocument=this,r.nodeName=e,r},createElementNS:function(e,r){var t=new B,n=r.split(":"),a=t.attributes=new ue;return t.childNodes=new I,t.ownerDocument=this,t.nodeName=r,t.tagName=r,t.namespaceURI=e,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=r,a._ownerElement=t,t},createAttributeNS:function(e,r){var t=new de,n=r.split(":");return t.ownerDocument=this,t.nodeName=r,t.name=r,t.namespaceURI=e,t.specified=!0,n.length==2?(t.prefix=n[0],t.localName=n[1]):t.localName=r,t}};T(ae,d);function B(){this._nsMap={}}B.prototype={nodeType:L,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var r=this.getAttributeNode(e);return r&&r.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,r){var t=this.ownerDocument.createAttribute(e);t.value=t.nodeValue=""+r,this.setAttributeNode(t)},removeAttribute:function(e){var r=this.getAttributeNode(e);r&&this.removeAttributeNode(r)},appendChild:function(e){return e.nodeType===k?this.insertBefore(e,null):Gr(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);t&&this.removeAttributeNode(t)},hasAttributeNS:function(e,r){return this.getAttributeNodeNS(e,r)!=null},getAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);return t&&t.value||""},setAttributeNS:function(e,r,t){var n=this.ownerDocument.createAttributeNS(e,r);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},getAttributeNodeNS:function(e,r){return this.attributes.getNamedItemNS(e,r)},getElementsByTagName:function(e){return new $(this,function(r){var t=[];return ee(r,function(n){n!==r&&n.nodeType==L&&(e==="*"||n.tagName==e)&&t.push(n)}),t})},getElementsByTagNameNS:function(e,r){return new $(this,function(t){var n=[];return ee(t,function(a){a!==t&&a.nodeType===L&&(e==="*"||a.namespaceURI===e)&&(r==="*"||a.localName==r)&&n.push(a)}),n})}};ae.prototype.getElementsByTagName=B.prototype.getElementsByTagName;ae.prototype.getElementsByTagNameNS=B.prototype.getElementsByTagNameNS;T(B,d);function de(){}de.prototype.nodeType=X;T(de,d);function oe(){}oe.prototype={data:"",substringData:function(e,r){return this.data.substring(e,e+r)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,r){this.replaceData(e,0,r)},appendChild:function(e){throw new Error(N[D])},deleteData:function(e,r){this.replaceData(e,r,"")},replaceData:function(e,r,t){var n=this.data.substring(0,e),a=this.data.substring(e+r);t=n+t+a,this.nodeValue=this.data=t,this.length=t.length}};T(oe,d);function Se(){}Se.prototype={nodeName:"#text",nodeType:ce,splitText:function(e){var r=this.data,t=r.substring(e);r=r.substring(0,e),this.data=this.nodeValue=r,this.length=r.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}};T(Se,oe);function Ae(){}Ae.prototype={nodeName:"#comment",nodeType:nr};T(Ae,oe);function Le(){}Le.prototype={nodeName:"#cdata-section",nodeType:er};T(Le,oe);function fe(){}fe.prototype.nodeType=or;T(fe,d);function fr(){}fr.prototype.nodeType=Mr;T(fr,d);function hr(){}hr.prototype.nodeType=_r;T(hr,d);function Oe(){}Oe.prototype.nodeType=rr;T(Oe,d);function he(){}he.prototype.nodeName="#document-fragment";he.prototype.nodeType=k;T(he,d);function Re(){}Re.prototype.nodeType=tr;T(Re,d);function mr(){}mr.prototype.serializeToString=function(e,r,t){return gr.call(e,r,t)};d.prototype.toString=gr;function gr(e,r){var t=[],n=this.nodeType==9&&this.documentElement||this,a=n.prefix,o=n.namespaceURI;if(o&&a==null){var a=n.lookupPrefix(o);if(a==null)var i=[{namespace:o,prefix:null}]}return F(this,t,e,r,i),t.join("")}function je(e,r,t){var n=e.prefix||"",a=e.namespaceURI;if(!a||n==="xml"&&a===Q.XML||a===Q.XMLNS)return!1;for(var o=t.length;o--;){var i=t[o];if(i.prefix===n)return i.namespace!==a}return!0}function we(e,r,t){e.push(" ",r,'="',t.replace(/[<>&"\t\n\r]/g,cr),'"')}function F(e,r,t,n,a){if(a||(a=[]),n)if(e=n(e),e){if(typeof e=="string"){r.push(e);return}}else return;switch(e.nodeType){case L:var o=e.attributes,i=o.length,s=e.firstChild,u=e.tagName;t=Q.isHTML(e.namespaceURI)||t;var l=u;if(!t&&!e.prefix&&e.namespaceURI){for(var c,m=0;m<o.length;m++)if(o.item(m).name==="xmlns"){c=o.item(m).value;break}if(!c)for(var p=a.length-1;p>=0;p--){var v=a[p];if(v.prefix===""&&v.namespace===e.namespaceURI){c=v.namespace;break}}if(c!==e.namespaceURI)for(var p=a.length-1;p>=0;p--){var v=a[p];if(v.namespace===e.namespaceURI){v.prefix&&(l=v.prefix+":"+u);break}}}r.push("<",l);for(var O=0;O<i;O++){var h=o.item(O);h.prefix=="xmlns"?a.push({prefix:h.localName,namespace:h.value}):h.nodeName=="xmlns"&&a.push({prefix:"",namespace:h.value})}for(var O=0;O<i;O++){var h=o.item(O);if(je(h,t,a)){var f=h.prefix||"",U=h.namespaceURI;we(r,f?"xmlns:"+f:"xmlns",U),a.push({prefix:f,namespace:U})}F(h,r,t,n,a)}if(u===l&&je(e,t,a)){var f=e.prefix||"",U=e.namespaceURI;we(r,f?"xmlns:"+f:"xmlns",U),a.push({prefix:f,namespace:U})}if(s||t&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(r.push(">"),t&&/^script$/i.test(u))for(;s;)s.data?r.push(s.data):F(s,r,t,n,a.slice()),s=s.nextSibling;else for(;s;)F(s,r,t,n,a.slice()),s=s.nextSibling;r.push("</",l,">")}else r.push("/>");return;case ar:case k:for(var s=e.firstChild;s;)F(s,r,t,n,a.slice()),s=s.nextSibling;return;case X:return we(r,e.name,e.value);case ce:return r.push(e.data.replace(/[<&>]/g,cr));case er:return r.push("<![CDATA[",e.data,"]]>");case nr:return r.push("<!--",e.data,"-->");case or:var Z=e.publicId,w=e.systemId;if(r.push("<!DOCTYPE ",e.name),Z)r.push(" PUBLIC ",Z),w&&w!="."&&r.push(" ",w),r.push(">");else if(w&&w!=".")r.push(" SYSTEM ",w,">");else{var S=e.internalSubset;S&&r.push(" [",S,"]"),r.push(">")}return;case tr:return r.push("<?",e.target," ",e.data,"?>");case rr:return r.push("&",e.nodeName,";");default:r.push("??",e.nodeName)}}function br(e,r,t){var n;switch(r.nodeType){case L:n=r.cloneNode(!1),n.ownerDocument=e;case k:break;case X:t=!0;break}if(n||(n=r.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,t)for(var a=r.firstChild;a;)n.appendChild(br(e,a,t)),a=a.nextSibling;return n}function Ne(e,r,t){var n=new r.constructor;for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var o=r[a];typeof o!="object"&&o!=n[a]&&(n[a]=o)}switch(r.childNodes&&(n.childNodes=new I),n.ownerDocument=e,n.nodeType){case L:var i=r.attributes,s=n.attributes=new ue,u=i.length;s._ownerElement=n;for(var l=0;l<u;l++)n.setAttributeNode(Ne(e,i.item(l),!0));break;case X:t=!0}if(t)for(var c=r.firstChild;c;)n.appendChild(Ne(e,c,t)),c=c.nextSibling;return n}function vr(e,r,t){e[r]=t}try{if(Object.defineProperty){let e=function(r){switch(r.nodeType){case L:case k:var t=[];for(r=r.firstChild;r;)r.nodeType!==7&&r.nodeType!==8&&t.push(e(r)),r=r.nextSibling;return t.join("");default:return r.nodeValue}};Object.defineProperty($.prototype,"length",{get:function(){return Te(this),this.$$length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return e(this)},set:function(r){switch(this.nodeType){case L:case k:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),vr=function(r,t,n){r["$$"+t]=n}}}catch{}V.DocumentType=fe;V.DOMException=b;V.DOMImplementation=lr;V.Element=B;V.Node=d;V.NodeList=I;V.XMLSerializer=mr;var me={},wr={};(function(e){var r=M.freeze;e.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=r({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
2
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),e.entityMap=e.HTML_ENTITIES})(wr);var Ce={},te=M.NAMESPACE,ye=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ze=new RegExp("[\\-\\.0-9"+ye.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Fe=new RegExp("^"+ye.source+ze.source+"*(?::"+ye.source+ze.source+"*)?$"),J=0,P=1,H=2,W=3,G=4,j=5,K=6,se=7;function Y(e,r){this.message=e,this.locator=r,Error.captureStackTrace&&Error.captureStackTrace(this,Y)}Y.prototype=new Error;Y.prototype.name=Y.name;function Nr(){}Nr.prototype={parse:function(e,r,t){var n=this.domBuilder;n.startDocument(),yr(r,r={}),jr(e,r,t,n,this.errorHandler),n.endDocument()}};function jr(e,r,t,n,a){function o(g){if(g>65535){g-=65536;var A=55296+(g>>10),Ar=56320+(g&1023);return String.fromCharCode(A,Ar)}else return String.fromCharCode(g)}function i(g){var A=g.slice(1,-1);return Object.hasOwnProperty.call(t,A)?t[A]:A.charAt(0)==="#"?o(parseInt(A.substr(1).replace("x","0x"))):(a.error("entity not found:"+g),g)}function s(g){if(g>h){var A=e.substring(h,g).replace(/&#?\w+;/g,i);p&&u(h),n.characters(A,0,g-h),h=g}}function u(g,A){for(;g>=c&&(A=m.exec(e));)l=A.index,c=l+A[0].length,p.lineNumber++;p.columnNumber=g-l+1}for(var l=0,c=0,m=/.*(?:\r\n?|\n)|.*$/g,p=n.locator,v=[{currentNSMap:r}],O={},h=0;;){try{var f=e.indexOf("<",h);if(f<0){if(!e.substr(h).match(/^\s*$/)){var U=n.doc,Z=U.createTextNode(e.substr(h));U.appendChild(Z),n.currentElement=Z}return}switch(f>h&&s(f),e.charAt(f+1)){case"/":var E=e.indexOf(">",f+3),w=e.substring(f+2,E).replace(/[ \t\n\r]+$/g,""),S=v.pop();E<0?(w=e.substring(f+2).replace(/[\s<].*/,""),a.error("end tag name: "+w+" is not complete:"+S.tagName),E=f+1+w.length):w.match(/\s</)&&(w=w.replace(/[\s<].*/,""),a.error("end tag name: "+w+" maybe not complete"),E=f+1+w.length);var ge=S.localNSMap,Ie=S.tagName==w,xr=Ie||S.tagName&&S.tagName.toLowerCase()==w.toLowerCase();if(xr){if(n.endElement(S.uri,S.localName,w),ge)for(var ke in ge)Object.prototype.hasOwnProperty.call(ge,ke)&&n.endPrefixMapping(ke);Ie||a.fatalError("end tag name: "+w+" is not match the current start tagName:"+S.tagName)}else v.push(S);E++;break;case"?":p&&u(f),E=Yr(e,f,n);break;case"!":p&&u(f),E=$r(e,f,n,a);break;default:p&&u(f);var x=new Er,be=v[v.length-1].currentNSMap,E=zr(e,f,x,be,i,a),_e=x.length;if(!x.closed&&Xr(e,E,x.tagName,O)&&(x.closed=!0,t.nbsp||a.warning("unclosed xml attribute")),p&&_e){for(var Sr=Xe(p,{}),ve=0;ve<_e;ve++){var Me=x[ve];u(Me.offset),Me.locator=Xe(p,{})}n.locator=Sr,$e(x,n,be)&&v.push(x),n.locator=p}else $e(x,n,be)&&v.push(x);te.isHTML(x.uri)&&!x.closed?E=Fr(e,E,x.tagName,i,n):E++}}catch(g){if(g instanceof Y)throw g;a.error("element parse error: "+g),E=-1}E>h?h=E:s(Math.max(f,h)+1)}}function Xe(e,r){return r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber,r}function zr(e,r,t,n,a,o){function i(p,v,O){t.attributeNames.hasOwnProperty(p)&&o.fatalError("Attribute "+p+" redefined"),t.addValue(p,v.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),O)}for(var s,u,l=++r,c=J;;){var m=e.charAt(l);switch(m){case"=":if(c===P)s=e.slice(r,l),c=W;else if(c===H)c=W;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(c===W||c===P)if(c===P&&(o.warning('attribute value must after "="'),s=e.slice(r,l)),r=l+1,l=e.indexOf(m,r),l>0)u=e.slice(r,l),i(s,u,r-1),c=j;else throw new Error("attribute value no end '"+m+"' match");else if(c==G)u=e.slice(r,l),i(s,u,r),o.warning('attribute "'+s+'" missed start quot('+m+")!!"),r=l+1,c=j;else throw new Error('attribute value must after "="');break;case"/":switch(c){case J:t.setTagName(e.slice(r,l));case j:case K:case se:c=se,t.closed=!0;case G:case P:break;case H:t.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),c==J&&t.setTagName(e.slice(r,l)),l;case">":switch(c){case J:t.setTagName(e.slice(r,l));case j:case K:case se:break;case G:case P:u=e.slice(r,l),u.slice(-1)==="/"&&(t.closed=!0,u=u.slice(0,-1));case H:c===H&&(u=s),c==G?(o.warning('attribute "'+u+'" missed quot(")!'),i(s,u,r)):((!te.isHTML(n[""])||!u.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),i(u,u,r));break;case W:throw new Error("attribute value missed!!")}return l;case"€":m=" ";default:if(m<=" ")switch(c){case J:t.setTagName(e.slice(r,l)),c=K;break;case P:s=e.slice(r,l),c=H;break;case G:var u=e.slice(r,l);o.warning('attribute "'+u+'" missed quot(")!!'),i(s,u,r);case j:c=K;break}else switch(c){case H:t.tagName,(!te.isHTML(n[""])||!s.match(/^(?:disabled|checked|selected)$/i))&&o.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),i(s,s,r),r=l,c=P;break;case j:o.warning('attribute space is required"'+s+'"!!');case K:c=P,r=l;break;case W:c=G,r=l;break;case se:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function $e(e,r,t){for(var n=e.tagName,a=null,o=e.length;o--;){var i=e[o],s=i.qName,u=i.value,p=s.indexOf(":");if(p>0)var l=i.prefix=s.slice(0,p),c=s.slice(p+1),m=l==="xmlns"&&c;else c=s,l=null,m=s==="xmlns"&&"";i.localName=c,m!==!1&&(a==null&&(a={},yr(t,t={})),t[m]=a[m]=u,i.uri=te.XMLNS,r.startPrefixMapping(m,u))}for(var o=e.length;o--;){i=e[o];var l=i.prefix;l&&(l==="xml"&&(i.uri=te.XML),l!=="xmlns"&&(i.uri=t[l||""]))}var p=n.indexOf(":");p>0?(l=e.prefix=n.slice(0,p),c=e.localName=n.slice(p+1)):(l=null,c=e.localName=n);var v=e.uri=t[l||""];if(r.startElement(v,c,n,e),e.closed){if(r.endElement(v,c,n),a)for(l in a)Object.prototype.hasOwnProperty.call(a,l)&&r.endPrefixMapping(l)}else return e.currentNSMap=t,e.localNSMap=a,!0}function Fr(e,r,t,n,a){if(/^(?:script|textarea)$/i.test(t)){var o=e.indexOf("</"+t+">",r),i=e.substring(r+1,o);if(/[&<]/.test(i))return/^script$/i.test(t)?(a.characters(i,0,i.length),o):(i=i.replace(/&#?\w+;/g,n),a.characters(i,0,i.length),o)}return r+1}function Xr(e,r,t,n){var a=n[t];return a==null&&(a=e.lastIndexOf("</"+t+">"),a<r&&(a=e.lastIndexOf("</"+t)),n[t]=a),a<r}function yr(e,r){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}function $r(e,r,t,n){var a=e.charAt(r+2);switch(a){case"-":if(e.charAt(r+3)==="-"){var o=e.indexOf("-->",r+4);return o>r?(t.comment(e,r+4,o-r-4),o+3):(n.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(r+3,6)=="CDATA["){var o=e.indexOf("]]>",r+9);return t.startCDATA(),t.characters(e,r+9,o-r-9),t.endCDATA(),o+3}var i=Zr(e,r),s=i.length;if(s>1&&/!doctype/i.test(i[0][0])){var u=i[1][0],l=!1,c=!1;s>3&&(/^public$/i.test(i[2][0])?(l=i[3][0],c=s>4&&i[4][0]):/^system$/i.test(i[2][0])&&(c=i[3][0]));var m=i[s-1];return t.startDTD(u,l,c),t.endDTD(),m.index+m[0].length}}return-1}function Yr(e,r,t){var n=e.indexOf("?>",r);if(n){var a=e.substring(r,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return a?(a[0].length,t.processingInstruction(a[1],a[2]),n+2):-1}return-1}function Er(){this.attributeNames={}}Er.prototype={setTagName:function(e){if(!Fe.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,r,t){if(!Fe.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:r,offset:t}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function Zr(e,r){var t,n=[],a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(a.lastIndex=r,a.exec(e);t=a.exec(e);)if(n.push(t),t[1])return n}Ce.XMLReader=Nr;Ce.ParseError=Y;var Jr=M,Wr=V,Ye=wr,Dr=Ce,Kr=Wr.DOMImplementation,Ze=Jr.NAMESPACE,Qr=Dr.ParseError,et=Dr.XMLReader;function Tr(e){return e.replace(/\r[\n\u0085]/g,`
3
+ `).replace(/[\r\u0085\u2028]/g,`
4
+ `)}function qr(e){this.options=e||{locator:{}}}qr.prototype.parseFromString=function(e,r){var t=this.options,n=new et,a=t.domBuilder||new ie,o=t.errorHandler,i=t.locator,s=t.xmlns||{},u=/\/x?html?$/.test(r),l=u?Ye.HTML_ENTITIES:Ye.XML_ENTITIES;i&&a.setDocumentLocator(i),n.errorHandler=rt(o,a,i),n.domBuilder=t.domBuilder||a,u&&(s[""]=Ze.HTML),s.xml=s.xml||Ze.XML;var c=t.normalizeLineEndings||Tr;return e&&typeof e=="string"?n.parse(c(e),s,l):n.errorHandler.error("invalid doc source"),a.doc};function rt(e,r,t){if(!e){if(r instanceof ie)return r;e=r}var n={},a=e instanceof Function;t=t||{};function o(i){var s=e[i];!s&&a&&(s=e.length==2?function(u){e(i,u)}:e),n[i]=s&&function(u){s("[xmldom "+i+"] "+u+Ee(t))}||function(){}}return o("warning"),o("error"),o("fatalError"),n}function ie(){this.cdata=!1}function z(e,r){r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber}ie.prototype={startDocument:function(){this.doc=new Kr().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,r,t,n){var a=this.doc,o=a.createElementNS(e,t||r),i=n.length;le(this,o),this.currentElement=o,this.locator&&z(this.locator,o);for(var s=0;s<i;s++){var e=n.getURI(s),u=n.getValue(s),t=n.getQName(s),l=a.createAttributeNS(e,t);this.locator&&z(n.getLocator(s),l),l.value=l.nodeValue=u,o.setAttributeNode(l)}},endElement:function(e,r,t){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,r){},endPrefixMapping:function(e){},processingInstruction:function(e,r){var t=this.doc.createProcessingInstruction(e,r);this.locator&&z(this.locator,t),le(this,t)},ignorableWhitespace:function(e,r,t){},characters:function(e,r,t){if(e=Je.apply(this,arguments),e){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&z(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,r,t){e=Je.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&z(this.locator,n),le(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,r,t){var n=this.doc.implementation;if(n&&n.createDocumentType){var a=n.createDocumentType(e,r,t);this.locator&&z(this.locator,a),le(this,a),this.doc.doctype=a}},warning:function(e){console.warn("[xmldom warning] "+e,Ee(this.locator))},error:function(e){console.error("[xmldom error] "+e,Ee(this.locator))},fatalError:function(e){throw new Qr(e,this.locator)}};function Ee(e){if(e)return`
5
+ @`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Je(e,r,t){return typeof e=="string"?e.substr(r,t):e.length>=r+t||r?new java.lang.String(e,r,t)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){ie.prototype[e]=function(){return null}});function le(e,r){e.currentElement?e.currentElement.appendChild(r):e.doc.appendChild(r)}me.__DOMHandler=ie;me.normalizeLineEndings=Tr;me.DOMParser=qr;var tt=me.DOMParser;const nt=Object.freeze(Object.defineProperty({__proto__:null,DOMParser:tt},Symbol.toStringTag,{value:"Module"}));exports.i=nt;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const e=require("./hooks-B0Qttldg.js");require("react/jsx-runtime");require("./useStreamLayerApp2.js");const t=require("./index7.js"),a=require("./index2.js"),r=require("./notification2.js");exports.StreamLayerProvider=e.q;exports.StreamLayerSDKEvent=e.j;exports.useStreamLayer=e.B;exports.useStreamLayerTheme=e.z;exports.useStreamLayerUI=e.F;exports.StreamLayerThemeProvider=t.h;exports.StreamLayerSDKReact=a.b;exports.StreamLayerSDKNotification=r.StreamLayerSDKNotification;exports.StreamLayerSDKNotificationUI=r.K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const e=require("./hooks-B0Qttldg.js");require("react/jsx-runtime");require("./useStreamLayerApp2.js");const t=require("./index5.js"),a=require("./index2.js"),r=require("./notification2.js");exports.StreamLayerProvider=e.q;exports.StreamLayerSDKEvent=e.j;exports.useStreamLayer=e.B;exports.useStreamLayerTheme=e.z;exports.useStreamLayerUI=e.F;exports.StreamLayerThemeProvider=t.h;exports.StreamLayerSDKReact=a.b;exports.StreamLayerSDKNotification=r.StreamLayerSDKNotification;exports.StreamLayerSDKNotificationUI=r.K;
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),g=require("./index11.js"),r=require("react"),c=require("./sl-types.js"),x=require("react-countdown-circle-timer"),f=require("./index5.js"),T=i=>{const{Component:e,options:n,customOptions:o,autoFocus:s,...u}=i,a=g.distExports.useFocusable({...n,...o,onEnterPress:()=>{var l;return(l=i.onClick)==null?void 0:l.call(i,{currentTarget:a.ref.current,stopPropagation:()=>{}})}});return r.useEffect(()=>{s&&a.focusSelf()},[]),t.jsx(e,{...u,...a,"data-is-with-focus":"true"})};function j(i,e){return({webos:n,options:o,...s})=>n?t.jsx(T,{Component:i,options:e,customOptions:o,...s}):t.jsx(i,{...s})}const y=[10,10,1,0],k=c.styled_default("div")({name:"RemainingTimeCircle",class:"r165427",propsAsIs:!1}),w=c.styled_default("div")({name:"RemainingTime",class:"r17garf3",propsAsIs:!1}),E=c.O,m=c.N,p=c.S,q=({className:i,duration:e=30,onTimerExpired:n,isPlaying:o=!0})=>t.jsx(x.CountdownCircleTimer,{isPlaying:o,strokeWidth:0,duration:e,colors:m,size:24,onComplete:n,children:({remainingTime:s})=>t.jsx(w,{className:i,children:e===0?0:s})}),O=({isPlaying:i=!0,duration:e=30,onTimerExpired:n})=>{const[o,s]=r.useState(e>10?E:m),[u,a]=r.useState(2);r.useEffect(()=>{e===0&&(a(0),s(p))},[e]);const l=({remainingTime:d})=>t.jsx(k,{children:e===0?0:d}),h=r.useCallback(()=>{n==null||n(),s(p)},[n,s]),C=r.useCallback(d=>{d===10&&s(m)},[s]);return t.jsx(x.CountdownCircleTimer,{isPlaying:i,duration:e,colors:c.I,colorsTime:y,size:32,strokeWidth:u,trailStrokeWidth:2,trailColor:o,onComplete:h,onUpdate:C,children:l})},P=({height:i="37px",width:e="37px"})=>t.jsx("div",{style:{height:i,width:e},children:t.jsx(f.B1,{name:"loader"})});exports.G=q;exports.L=O;exports.O=j;exports.d=P;
1
+ "use strict";const ns=require("react");var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function as(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function is(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}var Ki={exports:{}},He,bn;function he(){if(bn)return He;bn=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return He=e,He}var Ge,_n;function Pi(){if(_n)return Ge;_n=1;var e=typeof pe=="object"&&pe&&pe.Object===Object&&pe;return Ge=e,Ge}var Ue,mn;function se(){if(mn)return Ue;mn=1;var e=Pi(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return Ue=t,Ue}var ke,Cn;function ss(){if(Cn)return ke;Cn=1;var e=se(),r=function(){return e.Date.now()};return ke=r,ke}var ze,Fn;function os(){if(Fn)return ze;Fn=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return ze=r,ze}var We,qn;function us(){if(qn)return We;qn=1;var e=os(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return We=t,We}var Ye,Rn;function Ae(){if(Rn)return Ye;Rn=1;var e=se(),r=e.Symbol;return Ye=r,Ye}var Xe,wn;function cs(){if(wn)return Xe;wn=1;var e=Ae(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,a=e?e.toStringTag:void 0;function i(o){var u=t.call(o,a),v=o[a];try{o[a]=void 0;var h=!0}catch{}var b=n.call(o);return h&&(u?o[a]=v:delete o[a]),b}return Xe=i,Xe}var Je,An;function fs(){if(An)return Je;An=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Je=t,Je}var Ze,Tn;function Te(){if(Tn)return Ze;Tn=1;var e=Ae(),r=cs(),t=fs(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?r(u):t(u)}return Ze=o,Ze}var Qe,xn;function ye(){if(xn)return Qe;xn=1;function e(r){return r!=null&&typeof r=="object"}return Qe=e,Qe}var Ve,On;function xe(){if(On)return Ve;On=1;var e=Te(),r=ye(),t="[object Symbol]";function n(a){return typeof a=="symbol"||r(a)&&e(a)==t}return Ve=n,Ve}var er,Sn;function ls(){if(Sn)return er;Sn=1;var e=us(),r=he(),t=xe(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function v(h){if(typeof h=="number")return h;if(t(h))return n;if(r(h)){var b=typeof h.valueOf=="function"?h.valueOf():h;h=r(b)?b+"":b}if(typeof h!="string")return h===0?h:+h;h=e(h);var _=i.test(h);return _||o.test(h)?u(h.slice(2),_?2:8):a.test(h)?n:+h}return er=v,er}var rr,En;function Mi(){if(En)return rr;En=1;var e=he(),r=ss(),t=ls(),n="Expected a function",a=Math.max,i=Math.min;function o(u,v,h){var b,_,I,M,B,S,g=0,d=!1,m=!1,C=!0;if(typeof u!="function")throw new TypeError(n);v=t(v)||0,e(h)&&(d=!!h.leading,m="maxWait"in h,I=m?a(t(h.maxWait)||0,v):I,C="trailing"in h?!!h.trailing:C);function y(T){var G=b,J=_;return b=_=void 0,g=T,M=u.apply(J,G),M}function K(T){return g=T,B=setTimeout(D,v),d?y(T):M}function x(T){var G=T-S,J=T-g,ne=v-G;return m?i(ne,I-J):ne}function q(T){var G=T-S,J=T-g;return S===void 0||G>=v||G<0||m&&J>=I}function D(){var T=r();if(q(T))return w(T);B=setTimeout(D,x(T))}function w(T){return B=void 0,C&&b?y(T):(b=_=void 0,M)}function O(){B!==void 0&&clearTimeout(B),g=0,b=S=_=B=void 0}function z(){return B===void 0?M:w(r())}function H(){var T=r(),G=q(T);if(b=arguments,_=this,S=T,G){if(B===void 0)return K(S);if(m)return clearTimeout(B),B=setTimeout(D,v),y(S)}return B===void 0&&(B=setTimeout(D,v)),M}return H.cancel=O,H.flush=z,H}return rr=o,rr}var tr,Kn;function Ii(){if(Kn)return tr;Kn=1;var e=Te(),r=he(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!r(u))return!1;var v=e(u);return v==n||v==a||v==t||v==i}return tr=o,tr}var ds=se(),hs=ds["__core-js_shared__"],vs=hs,nr=vs,Pn=function(){var e=/[^.]+$/.exec(nr&&nr.keys&&nr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ps(e){return!!Pn&&Pn in e}var ys=ps,gs=Function.prototype,bs=gs.toString;function _s(e){if(e!=null){try{return bs.call(e)}catch{}try{return e+""}catch{}}return""}var Di=_s,ms=Ii(),Cs=ys,Fs=he(),qs=Di,Rs=/[\\^$.*+?()[\]{}|]/g,ws=/^\[object .+?Constructor\]$/,As=Function.prototype,Ts=Object.prototype,xs=As.toString,Os=Ts.hasOwnProperty,Ss=RegExp("^"+xs.call(Os).replace(Rs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Es(e){if(!Fs(e)||Cs(e))return!1;var r=ms(e)?Ss:ws;return r.test(qs(e))}var Ks=Es;function Ps(e,r){return e==null?void 0:e[r]}var Ms=Ps,Is=Ks,Ds=Ms;function Ls(e,r){var t=Ds(e,r);return Is(t)?t:void 0}var ve=Ls,ar,Mn;function De(){if(Mn)return ar;Mn=1;var e=ve,r=e(Object,"create");return ar=r,ar}var ir,In;function Ns(){if(In)return ir;In=1;var e=De();function r(){this.__data__=e?e(null):{},this.size=0}return ir=r,ir}var sr,Dn;function Bs(){if(Dn)return sr;Dn=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return sr=e,sr}var or,Ln;function js(){if(Ln)return or;Ln=1;var e=De(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(e){var u=o[i];return u===r?void 0:u}return n.call(o,i)?o[i]:void 0}return or=a,or}var ur,Nn;function $s(){if(Nn)return ur;Nn=1;var e=De(),r=Object.prototype,t=r.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:t.call(i,a)}return ur=n,ur}var cr,Bn;function Hs(){if(Bn)return cr;Bn=1;var e=De(),r="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?r:a,this}return cr=t,cr}var fr,jn;function Gs(){if(jn)return fr;jn=1;var e=Ns(),r=Bs(),t=js(),n=$s(),a=Hs();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,fr=i,fr}function Us(){this.__data__=[],this.size=0}var ks=Us,lr,$n;function Vt(){if($n)return lr;$n=1;function e(r,t){return r===t||r!==r&&t!==t}return lr=e,lr}var zs=Vt();function Ws(e,r){for(var t=e.length;t--;)if(zs(e[t][0],r))return t;return-1}var Le=Ws,Ys=Le,Xs=Array.prototype,Js=Xs.splice;function Zs(e){var r=this.__data__,t=Ys(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():Js.call(r,t,1),--this.size,!0}var Qs=Zs,Vs=Le;function eo(e){var r=this.__data__,t=Vs(r,e);return t<0?void 0:r[t][1]}var ro=eo,to=Le;function no(e){return to(this.__data__,e)>-1}var ao=no,io=Le;function so(e,r){var t=this.__data__,n=io(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var oo=so,uo=ks,co=Qs,fo=ro,lo=ao,ho=oo;function ge(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}ge.prototype.clear=uo;ge.prototype.delete=co;ge.prototype.get=fo;ge.prototype.has=lo;ge.prototype.set=ho;var Ne=ge,vo=ve,po=se(),yo=vo(po,"Map"),en=yo,dr,Hn;function go(){if(Hn)return dr;Hn=1;var e=Gs(),r=Ne,t=en;function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return dr=n,dr}var hr,Gn;function bo(){if(Gn)return hr;Gn=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return hr=e,hr}var vr,Un;function Be(){if(Un)return vr;Un=1;var e=bo();function r(t,n){var a=t.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return vr=r,vr}var pr,kn;function _o(){if(kn)return pr;kn=1;var e=Be();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return pr=r,pr}var yr,zn;function mo(){if(zn)return yr;zn=1;var e=Be();function r(t){return e(this,t).get(t)}return yr=r,yr}var gr,Wn;function Co(){if(Wn)return gr;Wn=1;var e=Be();function r(t){return e(this,t).has(t)}return gr=r,gr}var br,Yn;function Fo(){if(Yn)return br;Yn=1;var e=Be();function r(t,n){var a=e(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return br=r,br}var _r,Xn;function rn(){if(Xn)return _r;Xn=1;var e=go(),r=_o(),t=mo(),n=Co(),a=Fo();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,_r=i,_r}var mr,Jn;function qo(){if(Jn)return mr;Jn=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return mr=r,mr}var Cr,Zn;function Ro(){if(Zn)return Cr;Zn=1;function e(r){return this.__data__.has(r)}return Cr=e,Cr}var Fr,Qn;function Li(){if(Qn)return Fr;Qn=1;var e=rn(),r=qo(),t=Ro();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,Fr=n,Fr}var qr,Vn;function wo(){if(Vn)return qr;Vn=1;function e(r,t,n,a){for(var i=r.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(r[o],o,r))return o;return-1}return qr=e,qr}var Rr,ea;function Ao(){if(ea)return Rr;ea=1;function e(r){return r!==r}return Rr=e,Rr}var wr,ra;function To(){if(ra)return wr;ra=1;function e(r,t,n){for(var a=n-1,i=r.length;++a<i;)if(r[a]===t)return a;return-1}return wr=e,wr}var Ar,ta;function xo(){if(ta)return Ar;ta=1;var e=wo(),r=Ao(),t=To();function n(a,i,o){return i===i?t(a,i,o):e(a,r,o)}return Ar=n,Ar}var Tr,na;function Oo(){if(na)return Tr;na=1;var e=xo();function r(t,n){var a=t==null?0:t.length;return!!a&&e(t,n,0)>-1}return Tr=r,Tr}var xr,aa;function So(){if(aa)return xr;aa=1;function e(r,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;)if(n(t,r[a]))return!0;return!1}return xr=e,xr}function Eo(e,r){for(var t=-1,n=e==null?0:e.length,a=Array(n);++t<n;)a[t]=r(e[t],t,e);return a}var tn=Eo,Or,ia;function nn(){if(ia)return Or;ia=1;function e(r){return function(t){return r(t)}}return Or=e,Or}var Sr,sa;function Ni(){if(sa)return Sr;sa=1;function e(r,t){return r.has(t)}return Sr=e,Sr}var Er,oa;function Ko(){if(oa)return Er;oa=1;var e=Li(),r=Oo(),t=So(),n=tn,a=nn(),i=Ni(),o=200;function u(v,h,b,_){var I=-1,M=r,B=!0,S=v.length,g=[],d=h.length;if(!S)return g;b&&(h=n(h,a(b))),_?(M=t,B=!1):h.length>=o&&(M=i,B=!1,h=new e(h));e:for(;++I<S;){var m=v[I],C=b==null?m:b(m);if(m=_||m!==0?m:0,B&&C===C){for(var y=d;y--;)if(h[y]===C)continue e;g.push(m)}else M(h,C,_)||g.push(m)}return g}return Er=u,Er}var Kr,ua;function Bi(){if(ua)return Kr;ua=1;function e(r,t){for(var n=-1,a=t.length,i=r.length;++n<a;)r[i+n]=t[n];return r}return Kr=e,Kr}var Pr,ca;function Po(){if(ca)return Pr;ca=1;var e=Te(),r=ye(),t="[object Arguments]";function n(a){return r(a)&&e(a)==t}return Pr=n,Pr}var Mr,fa;function an(){if(fa)return Mr;fa=1;var e=Po(),r=ye(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(o){return r(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Mr=i,Mr}var Ir,la;function te(){if(la)return Ir;la=1;var e=Array.isArray;return Ir=e,Ir}var Dr,da;function Mo(){if(da)return Dr;da=1;var e=Ae(),r=an(),t=te(),n=e?e.isConcatSpreadable:void 0;function a(i){return t(i)||r(i)||!!(n&&i&&i[n])}return Dr=a,Dr}var Lr,ha;function ji(){if(ha)return Lr;ha=1;var e=Bi(),r=Mo();function t(n,a,i,o,u){var v=-1,h=n.length;for(i||(i=r),u||(u=[]);++v<h;){var b=n[v];a>0&&i(b)?a>1?t(b,a-1,i,o,u):e(u,b):o||(u[u.length]=b)}return u}return Lr=t,Lr}var Nr,va;function Oe(){if(va)return Nr;va=1;function e(r){return r}return Nr=e,Nr}var Br,pa;function Io(){if(pa)return Br;pa=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return Br=e,Br}var jr,ya;function Do(){if(ya)return jr;ya=1;var e=Io(),r=Math.max;function t(n,a,i){return a=r(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,v=r(o.length-a,0),h=Array(v);++u<v;)h[u]=o[a+u];u=-1;for(var b=Array(a+1);++u<a;)b[u]=o[u];return b[a]=i(h),e(n,this,b)}}return jr=t,jr}var $r,ga;function Lo(){if(ga)return $r;ga=1;function e(r){return function(){return r}}return $r=e,$r}var Hr,ba;function No(){if(ba)return Hr;ba=1;var e=ve,r=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Hr=r,Hr}var Gr,_a;function Bo(){if(_a)return Gr;_a=1;var e=Lo(),r=No(),t=Oe(),n=r?function(a,i){return r(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return Gr=n,Gr}var Ur,ma;function jo(){if(ma)return Ur;ma=1;var e=800,r=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),v=r-(u-o);if(o=u,v>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Ur=n,Ur}var kr,Ca;function $o(){if(Ca)return kr;Ca=1;var e=Bo(),r=jo(),t=r(e);return kr=t,kr}var zr,Fa;function $i(){if(Fa)return zr;Fa=1;var e=Oe(),r=Do(),t=$o();function n(a,i){return t(r(a,i,e),a+"")}return zr=n,zr}var Wr,qa;function sn(){if(qa)return Wr;qa=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Wr=r,Wr}var Yr,Ra;function Se(){if(Ra)return Yr;Ra=1;var e=Ii(),r=sn();function t(n){return n!=null&&r(n.length)&&!e(n)}return Yr=t,Yr}var Xr,wa;function Ho(){if(wa)return Xr;wa=1;var e=Se(),r=ye();function t(n){return r(n)&&e(n)}return Xr=t,Xr}var Jr,Aa;function Go(){if(Aa)return Jr;Aa=1;var e=Ko(),r=ji(),t=$i(),n=Ho(),a=t(function(i,o){return n(i)?e(i,r(o,1,n,!0)):[]});return Jr=a,Jr}var Zr,Ta;function Hi(){if(Ta)return Zr;Ta=1;function e(r,t){for(var n=-1,a=r==null?0:r.length,i=0,o=[];++n<a;){var u=r[n];t(u,n,r)&&(o[i++]=u)}return o}return Zr=e,Zr}var Qr,xa;function Uo(){if(xa)return Qr;xa=1;function e(r){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),v=u.length;v--;){var h=u[r?v:++i];if(n(o[h],h,o)===!1)break}return t}}return Qr=e,Qr}var Vr,Oa;function ko(){if(Oa)return Vr;Oa=1;var e=Uo(),r=e();return Vr=r,Vr}function zo(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}var Wo=zo,Me={exports:{}};function Yo(){return!1}var Xo=Yo;Me.exports;(function(e,r){var t=se(),n=Xo,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,u=o?t.Buffer:void 0,v=u?u.isBuffer:void 0,h=v||n;e.exports=h})(Me,Me.exports);var Gi=Me.exports,et,Sa;function on(){if(Sa)return et;Sa=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<a}return et=t,et}var Jo=Te(),Zo=sn(),Qo=ye(),Vo="[object Arguments]",eu="[object Array]",ru="[object Boolean]",tu="[object Date]",nu="[object Error]",au="[object Function]",iu="[object Map]",su="[object Number]",ou="[object Object]",uu="[object RegExp]",cu="[object Set]",fu="[object String]",lu="[object WeakMap]",du="[object ArrayBuffer]",hu="[object DataView]",vu="[object Float32Array]",pu="[object Float64Array]",yu="[object Int8Array]",gu="[object Int16Array]",bu="[object Int32Array]",_u="[object Uint8Array]",mu="[object Uint8ClampedArray]",Cu="[object Uint16Array]",Fu="[object Uint32Array]",U={};U[vu]=U[pu]=U[yu]=U[gu]=U[bu]=U[_u]=U[mu]=U[Cu]=U[Fu]=!0;U[Vo]=U[eu]=U[du]=U[ru]=U[hu]=U[tu]=U[nu]=U[au]=U[iu]=U[su]=U[ou]=U[uu]=U[cu]=U[fu]=U[lu]=!1;function qu(e){return Qo(e)&&Zo(e.length)&&!!U[Jo(e)]}var Ru=qu,Ie={exports:{}};Ie.exports;(function(e,r){var t=Pi(),n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var v=a&&a.require&&a.require("util").types;return v||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Ie,Ie.exports);var wu=Ie.exports,Au=Ru,Tu=nn(),Ea=wu,Ka=Ea&&Ea.isTypedArray,xu=Ka?Tu(Ka):Au,Ui=xu,Ou=Wo,Su=an(),Eu=te(),Ku=Gi,Pu=on(),Mu=Ui,Iu=Object.prototype,Du=Iu.hasOwnProperty;function Lu(e,r){var t=Eu(e),n=!t&&Su(e),a=!t&&!n&&Ku(e),i=!t&&!n&&!a&&Mu(e),o=t||n||a||i,u=o?Ou(e.length,String):[],v=u.length;for(var h in e)(r||Du.call(e,h))&&!(o&&(h=="length"||a&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Pu(h,v)))&&u.push(h);return u}var Nu=Lu,Bu=Object.prototype;function ju(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||Bu;return e===t}var $u=ju;function Hu(e,r){return function(t){return e(r(t))}}var Gu=Hu,Uu=Gu,ku=Uu(Object.keys,Object),zu=ku,Wu=$u,Yu=zu,Xu=Object.prototype,Ju=Xu.hasOwnProperty;function Zu(e){if(!Wu(e))return Yu(e);var r=[];for(var t in Object(e))Ju.call(e,t)&&t!="constructor"&&r.push(t);return r}var Qu=Zu,Vu=Nu,ec=Qu,rc=Se();function tc(e){return rc(e)?Vu(e):ec(e)}var un=tc,rt,Pa;function cn(){if(Pa)return rt;Pa=1;var e=ko(),r=un;function t(n,a){return n&&e(n,a,r)}return rt=t,rt}var tt,Ma;function nc(){if(Ma)return tt;Ma=1;var e=Se();function r(t,n){return function(a,i){if(a==null)return a;if(!e(a))return t(a,i);for(var o=a.length,u=n?o:-1,v=Object(a);(n?u--:++u<o)&&i(v[u],u,v)!==!1;);return a}}return tt=r,tt}var nt,Ia;function fn(){if(Ia)return nt;Ia=1;var e=cn(),r=nc(),t=r(e);return nt=t,nt}var at,Da;function ac(){if(Da)return at;Da=1;var e=fn();function r(t,n){var a=[];return e(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return at=r,at}var ic=Ne;function sc(){this.__data__=new ic,this.size=0}var oc=sc;function uc(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var cc=uc;function fc(e){return this.__data__.get(e)}var lc=fc;function dc(e){return this.__data__.has(e)}var hc=dc,vc=Ne,pc=en,yc=rn(),gc=200;function bc(e,r){var t=this.__data__;if(t instanceof vc){var n=t.__data__;if(!pc||n.length<gc-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new yc(n)}return t.set(e,r),this.size=t.size,this}var _c=bc,mc=Ne,Cc=oc,Fc=cc,qc=lc,Rc=hc,wc=_c;function be(e){var r=this.__data__=new mc(e);this.size=r.size}be.prototype.clear=Cc;be.prototype.delete=Fc;be.prototype.get=qc;be.prototype.has=Rc;be.prototype.set=wc;var ki=be,it,La;function Ac(){if(La)return it;La=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a;)if(t(r[n],n,r))return!0;return!1}return it=e,it}var st,Na;function zi(){if(Na)return st;Na=1;var e=Li(),r=Ac(),t=Ni(),n=1,a=2;function i(o,u,v,h,b,_){var I=v&n,M=o.length,B=u.length;if(M!=B&&!(I&&B>M))return!1;var S=_.get(o),g=_.get(u);if(S&&g)return S==u&&g==o;var d=-1,m=!0,C=v&a?new e:void 0;for(_.set(o,u),_.set(u,o);++d<M;){var y=o[d],K=u[d];if(h)var x=I?h(K,y,d,u,o,_):h(y,K,d,o,u,_);if(x!==void 0){if(x)continue;m=!1;break}if(C){if(!r(u,function(q,D){if(!t(C,D)&&(y===q||b(y,q,v,h,_)))return C.push(D)})){m=!1;break}}else if(!(y===K||b(y,K,v,h,_))){m=!1;break}}return _.delete(o),_.delete(u),m}return st=i,st}var Tc=se(),xc=Tc.Uint8Array,Oc=xc,ot,Ba;function Sc(){if(Ba)return ot;Ba=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(a,i){n[++t]=[i,a]}),n}return ot=e,ot}function Ec(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Kc=Ec,ut,ja;function Pc(){if(ja)return ut;ja=1;var e=Ae(),r=Oc,t=Vt(),n=zi(),a=Sc(),i=Kc,o=1,u=2,v="[object Boolean]",h="[object Date]",b="[object Error]",_="[object Map]",I="[object Number]",M="[object RegExp]",B="[object Set]",S="[object String]",g="[object Symbol]",d="[object ArrayBuffer]",m="[object DataView]",C=e?e.prototype:void 0,y=C?C.valueOf:void 0;function K(x,q,D,w,O,z,H){switch(D){case m:if(x.byteLength!=q.byteLength||x.byteOffset!=q.byteOffset)return!1;x=x.buffer,q=q.buffer;case d:return!(x.byteLength!=q.byteLength||!z(new r(x),new r(q)));case v:case h:case I:return t(+x,+q);case b:return x.name==q.name&&x.message==q.message;case M:case S:return x==q+"";case _:var T=a;case B:var G=w&o;if(T||(T=i),x.size!=q.size&&!G)return!1;var J=H.get(x);if(J)return J==q;w|=u,H.set(x,q);var ne=n(T(x),T(q),w,O,z,H);return H.delete(x),ne;case g:if(y)return y.call(x)==y.call(q)}return!1}return ut=K,ut}var Mc=Bi(),Ic=te();function Dc(e,r,t){var n=r(e);return Ic(e)?n:Mc(n,t(e))}var Lc=Dc;function Nc(){return[]}var Bc=Nc,jc=Hi(),$c=Bc,Hc=Object.prototype,Gc=Hc.propertyIsEnumerable,$a=Object.getOwnPropertySymbols,Uc=$a?function(e){return e==null?[]:(e=Object(e),jc($a(e),function(r){return Gc.call(e,r)}))}:$c,kc=Uc,zc=Lc,Wc=kc,Yc=un;function Xc(e){return zc(e,Yc,Wc)}var Jc=Xc,ct,Ha;function Zc(){if(Ha)return ct;Ha=1;var e=Jc,r=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,v,h,b){var _=u&r,I=e(i),M=I.length,B=e(o),S=B.length;if(M!=S&&!_)return!1;for(var g=M;g--;){var d=I[g];if(!(_?d in o:n.call(o,d)))return!1}var m=b.get(i),C=b.get(o);if(m&&C)return m==o&&C==i;var y=!0;b.set(i,o),b.set(o,i);for(var K=_;++g<M;){d=I[g];var x=i[d],q=o[d];if(v)var D=_?v(q,x,d,o,i,b):v(x,q,d,i,o,b);if(!(D===void 0?x===q||h(x,q,u,v,b):D)){y=!1;break}K||(K=d=="constructor")}if(y&&!K){var w=i.constructor,O=o.constructor;w!=O&&"constructor"in i&&"constructor"in o&&!(typeof w=="function"&&w instanceof w&&typeof O=="function"&&O instanceof O)&&(y=!1)}return b.delete(i),b.delete(o),y}return ct=a,ct}var Qc=ve,Vc=se(),ef=Qc(Vc,"DataView"),rf=ef,tf=ve,nf=se(),af=tf(nf,"Promise"),sf=af,of=ve,uf=se(),cf=of(uf,"Set"),ff=cf,lf=ve,df=se(),hf=lf(df,"WeakMap"),vf=hf,Yt=rf,Xt=en,Jt=sf,Zt=ff,Qt=vf,Wi=Te(),_e=Di,Ga="[object Map]",pf="[object Object]",Ua="[object Promise]",ka="[object Set]",za="[object WeakMap]",Wa="[object DataView]",yf=_e(Yt),gf=_e(Xt),bf=_e(Jt),_f=_e(Zt),mf=_e(Qt),de=Wi;(Yt&&de(new Yt(new ArrayBuffer(1)))!=Wa||Xt&&de(new Xt)!=Ga||Jt&&de(Jt.resolve())!=Ua||Zt&&de(new Zt)!=ka||Qt&&de(new Qt)!=za)&&(de=function(e){var r=Wi(e),t=r==pf?e.constructor:void 0,n=t?_e(t):"";if(n)switch(n){case yf:return Wa;case gf:return Ga;case bf:return Ua;case _f:return ka;case mf:return za}return r});var Cf=de,ft,Ya;function Ff(){if(Ya)return ft;Ya=1;var e=ki,r=zi(),t=Pc(),n=Zc(),a=Cf,i=te(),o=Gi,u=Ui,v=1,h="[object Arguments]",b="[object Array]",_="[object Object]",I=Object.prototype,M=I.hasOwnProperty;function B(S,g,d,m,C,y){var K=i(S),x=i(g),q=K?b:a(S),D=x?b:a(g);q=q==h?_:q,D=D==h?_:D;var w=q==_,O=D==_,z=q==D;if(z&&o(S)){if(!o(g))return!1;K=!0,w=!1}if(z&&!w)return y||(y=new e),K||u(S)?r(S,g,d,m,C,y):t(S,g,q,d,m,C,y);if(!(d&v)){var H=w&&M.call(S,"__wrapped__"),T=O&&M.call(g,"__wrapped__");if(H||T){var G=H?S.value():S,J=T?g.value():g;return y||(y=new e),C(G,J,d,m,y)}}return z?(y||(y=new e),n(S,g,d,m,C,y)):!1}return ft=B,ft}var lt,Xa;function Yi(){if(Xa)return lt;Xa=1;var e=Ff(),r=ye();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!r(n)&&!r(a)?n!==n&&a!==a:e(n,a,i,o,t,u)}return lt=t,lt}var dt,Ja;function qf(){if(Ja)return dt;Ja=1;var e=ki,r=Yi(),t=1,n=2;function a(i,o,u,v){var h=u.length,b=h,_=!v;if(i==null)return!b;for(i=Object(i);h--;){var I=u[h];if(_&&I[2]?I[1]!==i[I[0]]:!(I[0]in i))return!1}for(;++h<b;){I=u[h];var M=I[0],B=i[M],S=I[1];if(_&&I[2]){if(B===void 0&&!(M in i))return!1}else{var g=new e;if(v)var d=v(B,S,M,i,o,g);if(!(d===void 0?r(S,B,t|n,v,g):d))return!1}}return!0}return dt=a,dt}var ht,Za;function Xi(){if(Za)return ht;Za=1;var e=he();function r(t){return t===t&&!e(t)}return ht=r,ht}var vt,Qa;function Rf(){if(Qa)return vt;Qa=1;var e=Xi(),r=un;function t(n){for(var a=r(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,e(u)]}return a}return vt=t,vt}var pt,Va;function Ji(){if(Va)return pt;Va=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return pt=e,pt}var yt,ei;function wf(){if(ei)return yt;ei=1;var e=qf(),r=Rf(),t=Ji();function n(a){var i=r(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return yt=n,yt}var gt,ri;function ln(){if(ri)return gt;ri=1;var e=te(),r=xe(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||r(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return gt=a,gt}var Zi=rn(),Af="Expected a function";function dn(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Af);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(dn.Cache||Zi),t}dn.Cache=Zi;var Tf=dn,xf=Tf,Of=500;function Sf(e){var r=xf(e,function(n){return t.size===Of&&t.clear(),n}),t=r.cache;return r}var Ef=Sf,Kf=Ef,Pf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mf=/\\(\\)?/g,If=Kf(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Pf,function(t,n,a,i){r.push(a?i.replace(Mf,"$1"):n||t)}),r}),Df=If,bt,ti;function Lf(){if(ti)return bt;ti=1;var e=Ae(),r=tn,t=te(),n=xe(),a=1/0,i=e?e.prototype:void 0,o=i?i.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(n(v))return o?o.call(v):"";var h=v+"";return h=="0"&&1/v==-a?"-0":h}return bt=u,bt}var _t,ni;function Qi(){if(ni)return _t;ni=1;var e=Lf();function r(t){return t==null?"":e(t)}return _t=r,_t}var Nf=te(),Bf=ln(),jf=Df,$f=Qi();function Hf(e,r){return Nf(e)?e:Bf(e,r)?[e]:jf($f(e))}var Vi=Hf,Gf=xe(),Uf=1/0;function kf(e){if(typeof e=="string"||Gf(e))return e;var r=e+"";return r=="0"&&1/e==-Uf?"-0":r}var je=kf,zf=Vi,Wf=je;function Yf(e,r){r=zf(r,e);for(var t=0,n=r.length;e!=null&&t<n;)e=e[Wf(r[t++])];return t&&t==n?e:void 0}var hn=Yf,mt,ai;function Xf(){if(ai)return mt;ai=1;var e=hn;function r(t,n,a){var i=t==null?void 0:e(t,n);return i===void 0?a:i}return mt=r,mt}var Ct,ii;function Jf(){if(ii)return Ct;ii=1;function e(r,t){return r!=null&&t in Object(r)}return Ct=e,Ct}var Ft,si;function Zf(){if(si)return Ft;si=1;var e=Vi,r=an(),t=te(),n=on(),a=sn(),i=je;function o(u,v,h){v=e(v,u);for(var b=-1,_=v.length,I=!1;++b<_;){var M=i(v[b]);if(!(I=u!=null&&h(u,M)))break;u=u[M]}return I||++b!=_?I:(_=u==null?0:u.length,!!_&&a(_)&&n(M,_)&&(t(u)||r(u)))}return Ft=o,Ft}var qt,oi;function Qf(){if(oi)return qt;oi=1;var e=Jf(),r=Zf();function t(n,a){return n!=null&&r(n,a,e)}return qt=t,qt}var Rt,ui;function Vf(){if(ui)return Rt;ui=1;var e=Yi(),r=Xf(),t=Qf(),n=ln(),a=Xi(),i=Ji(),o=je,u=1,v=2;function h(b,_){return n(b)&&a(_)?i(o(b),_):function(I){var M=r(I,b);return M===void 0&&M===_?t(I,b):e(_,M,u|v)}}return Rt=h,Rt}var wt,ci;function el(){if(ci)return wt;ci=1;function e(r){return function(t){return t==null?void 0:t[r]}}return wt=e,wt}var At,fi;function rl(){if(fi)return At;fi=1;var e=hn;function r(t){return function(n){return e(n,t)}}return At=r,At}var Tt,li;function tl(){if(li)return Tt;li=1;var e=el(),r=rl(),t=ln(),n=je;function a(i){return t(i)?e(n(i)):r(i)}return Tt=a,Tt}var xt,di;function vn(){if(di)return xt;di=1;var e=wf(),r=Vf(),t=Oe(),n=te(),a=tl();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):a(o)}return xt=i,xt}var Ot,hi;function nl(){if(hi)return Ot;hi=1;var e=Hi(),r=ac(),t=vn(),n=te();function a(i,o){var u=n(i)?e:r;return u(i,t(o,3))}return Ot=a,Ot}var St,vi;function al(){if(vi)return St;vi=1;function e(r,t,n){var a;return n(r,function(i,o,u){if(t(i,o,u))return a=o,!1}),a}return St=e,St}var Et,pi;function il(){if(pi)return Et;pi=1;var e=al(),r=cn(),t=vn();function n(a,i){return e(a,t(i,3),r)}return Et=n,Et}var Kt,yi;function sl(){if(yi)return Kt;yi=1;function e(r){return r&&r.length?r[0]:void 0}return Kt=e,Kt}var Pt,gi;function ol(){return gi||(gi=1,Pt=sl()),Pt}var Mt,bi;function ul(){if(bi)return Mt;bi=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a&&t(r[n],n,r)!==!1;);return r}return Mt=e,Mt}var It,_i;function es(){if(_i)return It;_i=1;var e=Oe();function r(t){return typeof t=="function"?t:e}return It=r,It}var Dt,mi;function cl(){if(mi)return Dt;mi=1;var e=ul(),r=fn(),t=es(),n=te();function a(i,o){var u=n(i)?e:r;return u(i,t(o))}return Dt=a,Dt}var Lt,Ci;function fl(){if(Ci)return Lt;Ci=1;var e=cn(),r=es();function t(n,a){return n&&e(n,r(a))}return Lt=t,Lt}var Nt,Fi;function ll(){if(Fi)return Nt;Fi=1;function e(){}return Nt=e,Nt}var Bt,qi;function dl(){if(qi)return Bt;qi=1;var e=fn(),r=Se();function t(n,a){var i=-1,o=r(n)?Array(n.length):[];return e(n,function(u,v,h){o[++i]=a(u,v,h)}),o}return Bt=t,Bt}var jt,Ri;function hl(){if(Ri)return jt;Ri=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return jt=e,jt}var $t,wi;function vl(){if(wi)return $t;wi=1;var e=xe();function r(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,u=e(t),v=n!==void 0,h=n===null,b=n===n,_=e(n);if(!h&&!_&&!u&&t>n||u&&v&&b&&!h&&!_||i&&v&&b||!a&&b||!o)return 1;if(!i&&!u&&!_&&t<n||_&&a&&o&&!i&&!u||h&&a&&o||!v&&o||!b)return-1}return 0}return $t=r,$t}var Ht,Ai;function pl(){if(Ai)return Ht;Ai=1;var e=vl();function r(t,n,a){for(var i=-1,o=t.criteria,u=n.criteria,v=o.length,h=a.length;++i<v;){var b=e(o[i],u[i]);if(b){if(i>=h)return b;var _=a[i];return b*(_=="desc"?-1:1)}}return t.index-n.index}return Ht=r,Ht}var Gt,Ti;function yl(){if(Ti)return Gt;Ti=1;var e=tn,r=hn,t=vn(),n=dl(),a=hl(),i=nn(),o=pl(),u=Oe(),v=te();function h(b,_,I){_.length?_=e(_,function(S){return v(S)?function(g){return r(g,S.length===1?S[0]:S)}:S}):_=[u];var M=-1;_=e(_,i(t));var B=n(b,function(S,g,d){var m=e(_,function(C){return C(S)});return{criteria:m,index:++M,value:S}});return a(B,function(S,g){return o(S,g,I)})}return Gt=h,Gt}var Ut,xi;function gl(){if(xi)return Ut;xi=1;var e=Vt(),r=Se(),t=on(),n=he();function a(i,o,u){if(!n(u))return!1;var v=typeof o;return(v=="number"?r(u)&&t(o,u.length):v=="string"&&o in u)?e(u[o],i):!1}return Ut=a,Ut}var kt,Oi;function bl(){if(Oi)return kt;Oi=1;var e=ji(),r=yl(),t=$i(),n=gl(),a=t(function(i,o){if(i==null)return[];var u=o.length;return u>1&&n(i,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(i,e(o,1),[])});return kt=a,kt}var zt,Si;function _l(){if(Si)return zt;Si=1;var e=Mi(),r=he(),t="Expected a function";function n(a,i,o){var u=!0,v=!0;if(typeof a!="function")throw new TypeError(t);return r(o)&&(u="leading"in o?!!o.leading:u,v="trailing"in o?!!o.trailing:v),e(a,i,{leading:u,maxWait:i,trailing:v})}return zt=n,zt}var Wt,Ei;function ml(){if(Ei)return Wt;Ei=1;var e=Qi(),r=0;function t(n){var a=++r;return e(n)+a}return Wt=t,Wt}(function(e,r){(function(t,n){e.exports=n(Mi(),Go(),nl(),il(),ol(),cl(),fl(),ll(),bl(),_l(),ml(),ns)})(pe,function(t,n,a,i,o,u,v,h,b,_,I,M){return function(){var B={654:function(g,d,m){var C,y=this&&this.__assign||function(){return y=Object.assign||function(p){for(var s,c=1,f=arguments.length;c<f;c++)for(var l in s=arguments[c])Object.prototype.hasOwnProperty.call(s,l)&&(p[l]=s[l]);return p},y.apply(this,arguments)},K=this&&this.__createBinding||(Object.create?function(p,s,c,f){f===void 0&&(f=c);var l=Object.getOwnPropertyDescriptor(s,c);l&&!("get"in l?!s.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(p,f,l)}:function(p,s,c,f){f===void 0&&(f=c),p[f]=s[c]}),x=this&&this.__setModuleDefault||(Object.create?function(p,s){Object.defineProperty(p,"default",{enumerable:!0,value:s})}:function(p,s){p.default=s}),q=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var s={};if(p!=null)for(var c in p)c!=="default"&&Object.prototype.hasOwnProperty.call(p,c)&&K(s,p,c);return x(s,p),s},D=this&&this.__spreadArray||function(p,s,c){if(c||arguments.length===2)for(var f,l=0,F=s.length;l<F;l++)!f&&l in s||(f||(f=Array.prototype.slice.call(s,0,l)),f[l]=s[l]);return p.concat(f||Array.prototype.slice.call(s))},w=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(d,"__esModule",{value:!0}),d.updateRtl=d.doesFocusableExist=d.getCurrentFocusKey=d.updateAllLayouts=d.resume=d.pause=d.navigateByDirection=d.setFocus=d.setKeyMap=d.destroy=d.setThrottle=d.init=d.SpatialNavigation=d.ROOT_FOCUS_KEY=void 0;var O=w(m(150)),z=w(m(117)),H=w(m(747)),T=w(m(23)),G=w(m(842)),J=w(m(682)),ne=w(m(784)),me=w(m(432)),$e=w(m(67)),Ee=w(m(35)),V=w(m(119)),Ce=q(m(964)),ue="left",ce="right",fe="up",ae="down",Fe="enter",qe=((C={}).left=[37,"ArrowLeft"],C.up=[38,"ArrowUp"],C.right=[39,"ArrowRight"],C.down=[40,"ArrowDown"],C.enter=[13,"Enter"],C);d.ROOT_FOCUS_KEY="SN:ROOT";var Re=["#0FF","#FF0","#F0F"],Ke={leading:!0,trailing:!1},Pe=function(){function p(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=V.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=qe,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return p.getCutoffCoordinate=function(s,c,f,l,F){var R=s?l.top:F===V.default.LTR?l.left:l.right,A=s?l.bottom:F===V.default.LTR?l.right:l.left;return c?f?R:A:f?A:R},p.getRefCorners=function(s,c,f){var l={a:{x:0,y:0},b:{x:0,y:0}};switch(s){case fe:var F=c?f.bottom:f.top;l.a={x:f.left,y:F},l.b={x:f.right,y:F};break;case ae:F=c?f.top:f.bottom,l.a={x:f.left,y:F},l.b={x:f.right,y:F};break;case ue:var R=c?f.right:f.left;l.a={x:R,y:f.top},l.b={x:R,y:f.bottom};break;case ce:R=c?f.left:f.right,l.a={x:R,y:f.top},l.b={x:R,y:f.bottom}}return l},p.isAdjacentSlice=function(s,c,f){var l=s.a,F=s.b,R=c.a,A=c.b,E=f?"x":"y",$=l[E],j=F[E],N=R[E],L=A[E],P=.2*(j-$);return Math.max(0,Math.min(j,L)-Math.max($,N))>=P},p.getPrimaryAxisDistance=function(s,c,f){var l=s.a,F=c.a,R=f?"y":"x";return Math.abs(F[R]-l[R])},p.getSecondaryAxisDistance=function(s,c,f,l,F){if(F)return F(s,c,f,l);var R=s.a,A=s.b,E=c.a,$=c.b,j=f?"x":"y",N=R[j],L=A[j],P=E[j],X=$[j];if(l==="center"){var W=(N+L)/2,Z=(P+X)/2;return Math.abs(W-Z)}if(l==="edges"){var oe=Math.min(N,L),k=Math.min(P,X),ee=Math.max(N,L),le=Math.max(P,X),ie=Math.abs(oe-k),re=Math.abs(ee-le);return Math.min(ie,re)}var we=[Math.abs(P-N),Math.abs(P-L),Math.abs(X-N),Math.abs(X-L)];return Math.min.apply(Math,we)},p.prototype.sortSiblingsByPriority=function(s,c,f,l){var F=this,R=f===ae||f===fe,A=p.getRefCorners(f,!1,c);return(0,me.default)(s,function(E){var $=p.getRefCorners(f,!0,E.layout),j=p.isAdjacentSlice(A,$,R),N=j?p.getPrimaryAxisDistance:p.getSecondaryAxisDistance,L=j?p.getSecondaryAxisDistance:p.getPrimaryAxisDistance,P=N(A,$,R,F.distanceCalculationMethod,F.customDistanceCalculationFunction),X=L(A,$,R,F.distanceCalculationMethod,F.customDistanceCalculationFunction),W=5*P+X,Z=(W+1)/(j?5:1);return F.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(E.focusKey," relative to ").concat(l," is"),P,X,W),F.log("smartNavigate","priority for ".concat(E.focusKey," relative to ").concat(l," is"),Z),F.visualDebugger&&(F.visualDebugger.drawPoint($.a.x,$.a.y,"yellow",6),F.visualDebugger.drawPoint($.b.x,$.b.y,"yellow",6)),Z})},p.prototype.init=function(s){var c=this,f=s===void 0?{}:s,l=f.debug,F=l!==void 0&&l,R=f.visualDebug,A=R!==void 0&&R,E=f.nativeMode,$=E!==void 0&&E,j=f.throttle,N=j===void 0?0:j,L=f.throttleKeypresses,P=L!==void 0&&L,X=f.useGetBoundingClientRect,W=X!==void 0&&X,Z=f.shouldFocusDOMNode,oe=Z!==void 0&&Z,k=f.domNodeFocusOptions,ee=k===void 0?{}:k,le=f.shouldUseNativeEvents,ie=le!==void 0&&le,re=f.rtl,we=re!==void 0&&re,Y=f.distanceCalculationMethod,Q=Y===void 0?"corners":Y,pn=f.customDistanceCalculationFunction,rs=pn===void 0?void 0:pn;if(!this.enabled&&(this.domNodeFocusOptions=ee,this.enabled=!0,this.nativeMode=$,this.throttleKeypresses=P,this.useGetBoundingClientRect=W,this.shouldFocusDOMNode=oe&&!$,this.shouldUseNativeEvents=ie,this.writingDirection=we?V.default.RTL:V.default.LTR,this.distanceCalculationMethod=Q,this.customDistanceCalculationFunction=rs,this.debug=F,!this.nativeMode&&(Number.isInteger(N)&&N>0&&(this.throttle=N),this.bindEventHandlers(),A))){this.visualDebugger=new Ee.default(this.writingDirection);var yn=function(){requestAnimationFrame(function(){c.visualDebugger.clearLayouts(),(0,ne.default)(c.focusableComponents,function(gn,ts){c.visualDebugger.drawLayout(gn.layout,ts,gn.parentFocusKey)}),yn()})};yn()}},p.prototype.setThrottle=function(s){var c=s===void 0?{}:s,f=c.throttle,l=f===void 0?0:f,F=c.throttleKeypresses,R=F!==void 0&&F;this.throttleKeypresses=R,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(l)&&(this.throttle=l),this.bindEventHandlers())},p.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=qe,this.unbindEventHandlers())},p.prototype.getEventType=function(s){return(0,T.default)(this.getKeyMap(),function(c){return c.includes(s)})},p.getKeyCode=function(s){return s.keyCode||s.code||s.key},p.prototype.bindEventHandlers=function(){var s=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(s.paused!==!0){s.debug&&(s.logIndex+=1);var f=p.getKeyCode(c),l=s.getEventType(f);if(l){s.pressedKeys[l]=s.pressedKeys[l]?s.pressedKeys[l]+1:1,s.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var F={pressedKeys:s.pressedKeys};if(l===Fe&&s.focusKey)s.onEnterPress(F);else{var R=s.onArrowPress(l,F)===!1;if(s.visualDebugger&&s.visualDebugger.clear(),R)s.log("keyDownEventListener","default navigation prevented");else{var A=(0,T.default)(s.getKeyMap(),function(E){return E.includes(f)});s.smartNavigate(A,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,$e.default)(this.keyDownEventListener.bind(this),this.throttle,Ke)),this.keyUpEventListener=function(c){var f=p.getKeyCode(c),l=s.getEventType(f);delete s.pressedKeys[l],s.throttle&&!s.throttleKeypresses&&s.keyDownEventListenerThrottled.cancel(),l===Fe&&s.focusKey&&s.onEnterRelease(),!s.focusKey||l!==ue&&l!==ce&&l!==fe&&l!==ae||s.onArrowRelease(l)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},p.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var s=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",s),this.keyDownEventListener=null}},p.prototype.onEnterPress=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(s):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},p.prototype.onEnterRelease=function(){var s=this.focusableComponents[this.focusKey];s?s.focusable?s.onEnterRelease&&s.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},p.prototype.onArrowPress=function(s,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(s,c);this.log("onArrowPress","noComponent")},p.prototype.onArrowRelease=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(s):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},p.prototype.navigateByDirection=function(s,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ae,fe,ue,ce];f.includes(s)?(this.log("navigateByDirection","direction",s),this.smartNavigate(s,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(s,"`, but you can use only these: "),f)}},p.prototype.smartNavigate=function(s,c,f){var l=this;if(!this.nativeMode){var F=s===ae||s===fe,R=s===ae||(this.writingDirection===V.default.LTR?s===ce:s===ue);this.log("smartNavigate","direction",s),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,ne.default)(this.focusableComponents,function(k){k.layoutUpdated=!1});var A=this.focusableComponents[c||this.focusKey];if(c||A){if(this.log("smartNavigate","currentComponent",A?A.focusKey:void 0,A?A.node:void 0,A),A){this.updateLayout(A.focusKey);var E=A.parentFocusKey,$=A.focusKey,j=A.layout,N=p.getCutoffCoordinate(F,R,!1,j,this.writingDirection),L=(0,H.default)(this.focusableComponents,function(k){if(k.parentFocusKey===E&&k.focusable){l.updateLayout(k.focusKey);var ee=p.getCutoffCoordinate(F,R,!0,k.layout,l.writingDirection);return F||l.writingDirection===V.default.LTR?R?ee>=N:ee<=N:R?ee<=N:ee>=N}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",N),this.log("smartNavigate","siblings","".concat(L.length," elements:"),L.map(function(k){return k.focusKey}).join(", "),L.map(function(k){return k.node}),L.map(function(k){return k}))),this.visualDebugger){var P=p.getRefCorners(s,!1,j);this.visualDebugger.drawPoint(P.a.x,P.a.y),this.visualDebugger.drawPoint(P.b.x,P.b.y)}var X=this.sortSiblingsByPriority(L,j,s,$),W=(0,G.default)(X);if(this.log("smartNavigate","nextComponent",W?W.focusKey:void 0,W?W.node:void 0,W),W)this.setFocus(W.focusKey,f);else{var Z=this.focusableComponents[E],oe=Z!=null&&Z.isFocusBoundary?Z.focusBoundaryDirections||[s]:[];Z&&oe.includes(s)||this.smartNavigate(s,E,f)}}}else this.setFocus(this.getForcedFocusKey())}},p.prototype.saveLastFocusedChildKey=function(s,c){s&&(this.log("saveLastFocusedChildKey","".concat(s.focusKey," lastFocusedChildKey set"),c),s.lastFocusedChildKey=c)},p.prototype.log=function(s,c){for(var f=[],l=2;l<arguments.length;l++)f[l-2]=arguments[l];this.debug&&console.log.apply(console,D(["%c".concat(s,"%c").concat(c),"background: ".concat(Re[this.logIndex%Re.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},p.prototype.getCurrentFocusKey=function(){return this.focusKey},p.prototype.getForcedFocusKey=function(){var s,c=(0,H.default)(this.focusableComponents,function(l){return l.focusable&&l.forceFocus}),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",d.ROOT_FOCUS_KEY);return(s=(0,G.default)(f))===null||s===void 0?void 0:s.focusKey},p.prototype.getNextFocusKey=function(s){var c=this,f=this.focusableComponents[s];if(!f||this.nativeMode)return s;var l=(0,H.default)(this.focusableComponents,function(E){return E.parentFocusKey===s&&E.focusable});if(l.length>0){var F=f.lastFocusedChildKey,R=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",F),this.log("getNextFocusKey","preferredChildFocusKey is",R),F&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(F))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",F),this.getNextFocusKey(F);if(R&&this.isParticipatingFocusableComponent(R))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",R),this.getNextFocusKey(R);l.forEach(function(E){return c.updateLayout(E.focusKey)});var A=function(E,$){var j=$===V.default.LTR?function(L){var P=L.layout;return Math.abs(P.left)+Math.abs(P.top)}:function(L){var P=L.layout;return Math.abs(window.innerWidth-P.right)+Math.abs(P.top)},N=(0,me.default)(E,j);return(0,G.default)(N)}(l,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",A),this.getNextFocusKey(A)}return this.log("getNextFocusKey","targetFocusKey",s),s},p.prototype.addFocusable=function(s){var c=s.focusKey,f=s.node,l=s.parentFocusKey,F=s.onEnterPress,R=s.onEnterRelease,A=s.onArrowPress,E=s.onArrowRelease,$=s.onFocus,j=s.onBlur,N=s.saveLastFocusedChild,L=s.trackChildren,P=s.onUpdateFocus,X=s.onUpdateHasFocusedChild,W=s.preferredChildFocusKey,Z=s.autoRestoreFocus,oe=s.forceFocus,k=s.focusable,ee=s.isFocusBoundary,le=s.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:l,onEnterPress:F,onEnterRelease:R,onArrowPress:A,onArrowRelease:E,onFocus:$,onBlur:j,onUpdateFocus:P,onUpdateHasFocusedChild:X,saveLastFocusedChild:N,trackChildren:L,preferredChildFocusKey:W,focusable:k,isFocusBoundary:ee,focusBoundaryDirections:le,autoRestoreFocus:Z,forceFocus:oe,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(W||c);for(var ie=this.focusableComponents[this.focusKey];ie;){if(ie.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ie=this.focusableComponents[ie.parentFocusKey]}}},p.prototype.removeFocusable=function(s){var c=s.focusKey,f=this.focusableComponents[c];if(f){var l=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var F=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(E){return E!==c});var R=this.focusableComponents[l],A=c===this.focusKey;if(R&&R.lastFocusedChildKey===c&&(R.lastFocusedChildKey=null),this.nativeMode)return;(A||F)&&R&&R.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",A?"Leaf component":"Container component","Auto restoring focus to: ",l),this.setFocusDebounced(l))}},p.prototype.getNodeLayoutByFocusKey=function(s){var c=this.focusableComponents[s];return c?(this.updateLayout(c.focusKey),c.layout):null},p.prototype.setCurrentFocusedKey=function(s,c){var f,l,F,R;if(this.isFocusableComponent(this.focusKey)&&s!==this.focusKey){var A=this.focusableComponents[this.focusKey];A.onUpdateFocus(!1),A.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(l=(f=A.node)===null||f===void 0?void 0:f.removeAttribute)===null||l===void 0||l.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",A)}if(this.focusKey=s,this.isFocusableComponent(this.focusKey)){var E=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&E.node&&E.node.focus(this.domNodeFocusOptions),(R=(F=E.node)===null||F===void 0?void 0:F.setAttribute)===null||R===void 0||R.call(F,"data-focused","true"),E.onUpdateFocus(!0),E.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",E)}},p.prototype.updateParentsHasFocusedChild=function(s,c){for(var f=this,l=[],F=this.focusableComponents[s];F;){var R=F.parentFocusKey,A=this.focusableComponents[R];if(A){var E=A.focusKey;l.push(E)}F=A}var $=(0,z.default)(this.parentsHavingFocusedChild,l),j=(0,z.default)(l,this.parentsHavingFocusedChild);(0,J.default)($,function(N){var L=f.focusableComponents[N];L&&L.trackChildren&&L.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(N,c)}),(0,J.default)(j,function(N){var L=f.focusableComponents[N];L&&L.trackChildren&&L.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(N,c)}),this.parentsHavingFocusedChild=l},p.prototype.updateParentsLastFocusedChild=function(s){for(var c=this.focusableComponents[s];c;){var f=c.parentFocusKey,l=this.focusableComponents[f];l&&this.saveLastFocusedChildKey(l,c.focusKey),c=l}},p.prototype.getKeyMap=function(){return this.keyMap},p.prototype.setKeyMap=function(s){this.keyMap=y(y({},this.getKeyMap()),function(c){var f={};return Object.entries(c).forEach(function(l){var F=l[0],R=l[1];f[F]=Array.isArray(R)?R:[R]}),f}(s))},p.prototype.isFocusableComponent=function(s){return!!this.focusableComponents[s]},p.prototype.isParticipatingFocusableComponent=function(s){return this.isFocusableComponent(s)&&this.focusableComponents[s].focusable},p.prototype.onIntermediateNodeBecameFocused=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s),c)},p.prototype.onIntermediateNodeBecameBlurred=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s),c)},p.prototype.pause=function(){this.paused=!0},p.prototype.resume=function(){this.paused=!1},p.prototype.setFocus=function(s,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",s),s&&s!==d.ROOT_FOCUS_KEY||(s=this.getForcedFocusKey());var f=this.getNextFocusKey(s);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},p.prototype.updateAllLayouts=function(){var s=this;this.enabled&&!this.nativeMode&&(0,ne.default)(this.focusableComponents,function(c,f){s.updateLayout(f)})},p.prototype.updateLayout=function(s){var c=this.focusableComponents[s];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,l=this.useGetBoundingClientRect?(0,Ce.getBoundingClientRect)(f):(0,Ce.default)(f);c.layout=y(y({},l),{node:f})}},p.prototype.updateFocusable=function(s,c){var f=c.node,l=c.preferredChildFocusKey,F=c.focusable,R=c.isFocusBoundary,A=c.focusBoundaryDirections,E=c.onEnterPress,$=c.onEnterRelease,j=c.onArrowPress,N=c.onFocus,L=c.onBlur;if(!this.nativeMode){var P=this.focusableComponents[s];P&&(P.preferredChildFocusKey=l,P.focusable=F,P.isFocusBoundary=R,P.focusBoundaryDirections=A,P.onEnterPress=E,P.onEnterRelease=$,P.onArrowPress=j,P.onFocus=N,P.onBlur=L,f&&(P.node=f))}},p.prototype.isNativeMode=function(){return this.nativeMode},p.prototype.doesFocusableExist=function(s){return!!this.focusableComponents[s]},p.prototype.updateRtl=function(s){this.writingDirection=s?V.default.RTL:V.default.LTR},p}();d.SpatialNavigation=new Pe,d.init=d.SpatialNavigation.init,d.setThrottle=d.SpatialNavigation.setThrottle,d.destroy=d.SpatialNavigation.destroy,d.setKeyMap=d.SpatialNavigation.setKeyMap,d.setFocus=d.SpatialNavigation.setFocus,d.navigateByDirection=d.SpatialNavigation.navigateByDirection,d.pause=d.SpatialNavigation.pause,d.resume=d.SpatialNavigation.resume,d.updateAllLayouts=d.SpatialNavigation.updateAllLayouts,d.getCurrentFocusKey=d.SpatialNavigation.getCurrentFocusKey,d.doesFocusableExist=d.SpatialNavigation.doesFocusableExist,d.updateRtl=d.SpatialNavigation.updateRtl},35:function(g,d,m){var C=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(d,"__esModule",{value:!0});var y=C(m(119)),K=typeof window<"u"&&window.document,x=K?window.innerWidth:0,q=K?window.innerHeight:0,D=function(){function w(O){K&&(this.debugCtx=w.createCanvas("sn-debug","1010",O),this.layoutsCtx=w.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return w.createCanvas=function(O,z,H){var T=document.querySelector("#".concat(O))||document.createElement("canvas");T.setAttribute("id",O),T.setAttribute("dir",H===y.default.LTR?"ltr":"rtl");var G=T.getContext("2d");return T.style.zIndex=z,T.style.position="fixed",T.style.top="0",T.style.left="0",document.body.appendChild(T),T.width=x,T.height=q,G},w.prototype.clear=function(){K&&this.debugCtx.clearRect(0,0,x,q)},w.prototype.clearLayouts=function(){K&&this.layoutsCtx.clearRect(0,0,x,q)},w.prototype.drawLayout=function(O,z,H){if(K){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var T=this.writingDirection===y.default.LTR?"left":"right",G=O[T];this.layoutsCtx.fillText(z,G,O.top+10),this.layoutsCtx.fillText(H,G,O.top+25),this.layoutsCtx.fillText("".concat(T,": ").concat(G),G,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),G,O.top+55)}},w.prototype.drawPoint=function(O,z,H,T){H===void 0&&(H="blue"),T===void 0&&(T=10),K&&(this.debugCtx.strokeStyle=H,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-T/2,z-T/2,T,T))},w}();d.default=D},119:function(g,d){var m;Object.defineProperty(d,"__esModule",{value:!0}),function(C){C[C.LTR=0]="LTR",C[C.RTL=1]="RTL"}(m||(m={})),d.default=m},607:function(g,d,m){var C=this&&this.__createBinding||(Object.create?function(K,x,q,D){D===void 0&&(D=q);var w=Object.getOwnPropertyDescriptor(x,q);w&&!("get"in w?!x.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return x[q]}}),Object.defineProperty(K,D,w)}:function(K,x,q,D){D===void 0&&(D=q),K[D]=x[q]}),y=this&&this.__exportStar||function(K,x){for(var q in K)q==="default"||Object.prototype.hasOwnProperty.call(x,q)||C(x,K,q)};Object.defineProperty(d,"__esModule",{value:!0}),y(m(79),d),y(m(445),d),y(m(654),d)},964:function(g,d){Object.defineProperty(d,"__esModule",{value:!0}),d.getBoundingClientRect=void 0;var m=function(C){for(var y=C.offsetParent,K=C.offsetHeight,x=C.offsetWidth,q=C.offsetLeft,D=C.offsetTop;y&&y.nodeType===1;)q+=y.offsetLeft-y.scrollLeft,D+=y.offsetTop-y.scrollTop,y=y.offsetParent;return{height:K,left:q,top:D,width:x}};d.default=function(C){var y=C&&C.parentElement;if(C&&y){var K=m(y),x=m(C),q=x.height,D=x.left,w=x.top,O=x.width;return{x:D-K.left,y:w-K.top,width:O,height:q,left:D,top:w,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},d.getBoundingClientRect=function(C){if(C&&C.getBoundingClientRect){var y=C.getBoundingClientRect();return{x:y.x,y:y.y,width:y.width,height:y.height,left:y.left,top:y.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(g,d,m){Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusContext=d.FocusContext=void 0;var C=m(156),y=m(654);d.FocusContext=(0,C.createContext)(y.ROOT_FOCUS_KEY),d.FocusContext.displayName="FocusContext",d.useFocusContext=function(){return(0,C.useContext)(d.FocusContext)}},79:function(g,d,m){var C=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(d,"__esModule",{value:!0}),d.useFocusable=void 0;var y=m(156),K=C(m(604)),x=C(m(461)),q=m(654),D=m(445);d.useFocusable=function(w){var O=w===void 0?{}:w,z=O.focusable,H=z===void 0||z,T=O.saveLastFocusedChild,G=T===void 0||T,J=O.trackChildren,ne=J!==void 0&&J,me=O.autoRestoreFocus,$e=me===void 0||me,Ee=O.forceFocus,V=Ee!==void 0&&Ee,Ce=O.isFocusBoundary,ue=Ce!==void 0&&Ce,ce=O.focusBoundaryDirections,fe=O.focusKey,ae=O.preferredChildFocusKey,Fe=O.onEnterPress,qe=Fe===void 0?K.default:Fe,Re=O.onEnterRelease,Ke=Re===void 0?K.default:Re,Pe=O.onArrowPress,p=Pe===void 0?function(){return!0}:Pe,s=O.onArrowRelease,c=s===void 0?K.default:s,f=O.onFocus,l=f===void 0?K.default:f,F=O.onBlur,R=F===void 0?K.default:F,A=O.extraProps,E=(0,y.useCallback)(function(Y){qe(A,Y)},[qe,A]),$=(0,y.useCallback)(function(){Ke(A)},[Ke,A]),j=(0,y.useCallback)(function(Y,Q){return p(Y,A,Q)},[A,p]),N=(0,y.useCallback)(function(Y){c(Y,A)},[c,A]),L=(0,y.useCallback)(function(Y,Q){l(Y,A,Q)},[A,l]),P=(0,y.useCallback)(function(Y,Q){R(Y,A,Q)},[A,R]),X=(0,y.useRef)(null),W=(0,y.useState)(!1),Z=W[0],oe=W[1],k=(0,y.useState)(!1),ee=k[0],le=k[1],ie=(0,D.useFocusContext)(),re=(0,y.useMemo)(function(){return fe||(0,x.default)("sn:focusable-item-")},[fe]),we=(0,y.useCallback)(function(Y){Y===void 0&&(Y={}),q.SpatialNavigation.setFocus(re,Y)},[re]);return(0,y.useEffect)(function(){var Y=X.current;return q.SpatialNavigation.addFocusable({focusKey:re,node:Y,parentFocusKey:ie,preferredChildFocusKey:ae,onEnterPress:E,onEnterRelease:$,onArrowPress:j,onArrowRelease:N,onFocus:L,onBlur:P,onUpdateFocus:function(Q){return Q===void 0&&(Q=!1),oe(Q)},onUpdateHasFocusedChild:function(Q){return Q===void 0&&(Q=!1),le(Q)},saveLastFocusedChild:G,trackChildren:ne,isFocusBoundary:ue,focusBoundaryDirections:ce,autoRestoreFocus:$e,forceFocus:V,focusable:H}),function(){q.SpatialNavigation.removeFocusable({focusKey:re})}},[]),(0,y.useEffect)(function(){var Y=X.current;q.SpatialNavigation.updateFocusable(re,{node:Y,preferredChildFocusKey:ae,focusable:H,isFocusBoundary:ue,focusBoundaryDirections:ce,onEnterPress:E,onEnterRelease:$,onArrowPress:j,onArrowRelease:N,onFocus:L,onBlur:P})},[re,ae,H,ue,ce,E,$,j,N,L,P]),{ref:X,focusSelf:we,focused:Z,hasFocusedChild:ee,focusKey:re}}},150:function(g){g.exports=t},117:function(g){g.exports=n},747:function(g){g.exports=a},23:function(g){g.exports=i},842:function(g){g.exports=o},682:function(g){g.exports=u},784:function(g){g.exports=v},604:function(g){g.exports=h},432:function(g){g.exports=b},67:function(g){g.exports=_},461:function(g){g.exports=I},156:function(g){g.exports=M}},S={};return function g(d){var m=S[d];if(m!==void 0)return m.exports;var C=S[d]={exports:{}};return B[d].call(C.exports,C,C.exports,g),C.exports}(607)}()})})(Ki);var Cl=Ki.exports;exports.commonjsGlobal=pe;exports.distExports=Cl;exports.getAugmentedNamespace=is;exports.getDefaultExportFromCjs=as;
@@ -1 +1 @@
1
- "use strict";const ms=require("react");var ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fs(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}var Xi={exports:{}},He,Tn;function de(){if(Tn)return He;Tn=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return He=e,He}var Ge,xn;function Ji(){if(xn)return Ge;xn=1;var e=typeof ve=="object"&&ve&&ve.Object===Object&&ve;return Ge=e,Ge}var $e,On;function ie(){if(On)return $e;On=1;var e=Ji(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return $e=t,$e}var ke,Kn;function qs(){if(Kn)return ke;Kn=1;var e=ie(),r=function(){return e.Date.now()};return ke=r,ke}var Ue,Sn;function Rs(){if(Sn)return Ue;Sn=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Ue=r,Ue}var ze,En;function ws(){if(En)return ze;En=1;var e=Rs(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return ze=t,ze}var We,Pn;function we(){if(Pn)return We;Pn=1;var e=ie(),r=e.Symbol;return We=r,We}var Ye,Mn;function As(){if(Mn)return Ye;Mn=1;var e=we(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,a=e?e.toStringTag:void 0;function i(o){var u=t.call(o,a),v=o[a];try{o[a]=void 0;var h=!0}catch{}var m=n.call(o);return h&&(u?o[a]=v:delete o[a]),m}return Ye=i,Ye}var Xe,In;function Ts(){if(In)return Xe;In=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Xe=t,Xe}var Je,Dn;function Ae(){if(Dn)return Je;Dn=1;var e=we(),r=As(),t=Ts(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?a:n:i&&i in Object(u)?r(u):t(u)}return Je=o,Je}var Ze,Ln;function pe(){if(Ln)return Ze;Ln=1;function e(r){return r!=null&&typeof r=="object"}return Ze=e,Ze}var Qe,Nn;function Te(){if(Nn)return Qe;Nn=1;var e=Ae(),r=pe(),t="[object Symbol]";function n(a){return typeof a=="symbol"||r(a)&&e(a)==t}return Qe=n,Qe}var Ve,Bn;function xs(){if(Bn)return Ve;Bn=1;var e=ws(),r=de(),t=Te(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function v(h){if(typeof h=="number")return h;if(t(h))return n;if(r(h)){var m=typeof h.valueOf=="function"?h.valueOf():h;h=r(m)?m+"":m}if(typeof h!="string")return h===0?h:+h;h=e(h);var _=i.test(h);return _||o.test(h)?u(h.slice(2),_?2:8):a.test(h)?n:+h}return Ve=v,Ve}var er,jn;function Zi(){if(jn)return er;jn=1;var e=de(),r=qs(),t=xs(),n="Expected a function",a=Math.max,i=Math.min;function o(u,v,h){var m,_,I,P,N,K,b=0,l=!1,g=!1,C=!0;if(typeof u!="function")throw new TypeError(n);v=t(v)||0,e(h)&&(l=!!h.leading,g="maxWait"in h,I=g?a(t(h.maxWait)||0,v):I,C="trailing"in h?!!h.trailing:C);function y(A){var k=m,X=_;return m=_=void 0,b=A,P=u.apply(X,k),P}function S(A){return b=A,N=setTimeout(L,v),l?y(A):P}function x(A){var k=A-K,X=A-b,te=v-k;return g?i(te,I-X):te}function q(A){var k=A-K,X=A-b;return K===void 0||k>=v||k<0||g&&X>=I}function L(){var A=r();if(q(A))return R(A);N=setTimeout(L,x(A))}function R(A){return N=void 0,C&&m?y(A):(m=_=void 0,P)}function O(){N!==void 0&&clearTimeout(N),b=0,m=K=_=N=void 0}function E(){return N===void 0?P:R(r())}function G(){var A=r(),k=q(A);if(m=arguments,_=this,K=A,k){if(N===void 0)return S(K);if(g)return clearTimeout(N),N=setTimeout(L,v),y(K)}return N===void 0&&(N=setTimeout(L,v)),P}return G.cancel=O,G.flush=E,G}return er=o,er}var rr,Hn;function Qi(){if(Hn)return rr;Hn=1;var e=Ae(),r=de(),t="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(u){if(!r(u))return!1;var v=e(u);return v==n||v==a||v==t||v==i}return rr=o,rr}var Os=ie(),Ks=Os["__core-js_shared__"],Ss=Ks,tr=Ss,Gn=function(){var e=/[^.]+$/.exec(tr&&tr.keys&&tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Es(e){return!!Gn&&Gn in e}var Ps=Es,Ms=Function.prototype,Is=Ms.toString;function Ds(e){if(e!=null){try{return Is.call(e)}catch{}try{return e+""}catch{}}return""}var Vi=Ds,Ls=Qi(),Ns=Ps,Bs=de(),js=Vi,Hs=/[\\^$.*+?()[\]{}|]/g,Gs=/^\[object .+?Constructor\]$/,$s=Function.prototype,ks=Object.prototype,Us=$s.toString,zs=ks.hasOwnProperty,Ws=RegExp("^"+Us.call(zs).replace(Hs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ys(e){if(!Bs(e)||Ns(e))return!1;var r=Ls(e)?Ws:Gs;return r.test(js(e))}var Xs=Ys;function Js(e,r){return e==null?void 0:e[r]}var Zs=Js,Qs=Xs,Vs=Zs;function eo(e,r){var t=Vs(e,r);return Qs(t)?t:void 0}var he=eo,nr,$n;function Ie(){if($n)return nr;$n=1;var e=he,r=e(Object,"create");return nr=r,nr}var ar,kn;function ro(){if(kn)return ar;kn=1;var e=Ie();function r(){this.__data__=e?e(null):{},this.size=0}return ar=r,ar}var ir,Un;function to(){if(Un)return ir;Un=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return ir=e,ir}var sr,zn;function no(){if(zn)return sr;zn=1;var e=Ie(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function a(i){var o=this.__data__;if(e){var u=o[i];return u===r?void 0:u}return n.call(o,i)?o[i]:void 0}return sr=a,sr}var or,Wn;function ao(){if(Wn)return or;Wn=1;var e=Ie(),r=Object.prototype,t=r.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:t.call(i,a)}return or=n,or}var ur,Yn;function io(){if(Yn)return ur;Yn=1;var e=Ie(),r="__lodash_hash_undefined__";function t(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?r:a,this}return ur=t,ur}var cr,Xn;function so(){if(Xn)return cr;Xn=1;var e=ro(),r=to(),t=no(),n=ao(),a=io();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,cr=i,cr}function oo(){this.__data__=[],this.size=0}var uo=oo,fr,Jn;function cn(){if(Jn)return fr;Jn=1;function e(r,t){return r===t||r!==r&&t!==t}return fr=e,fr}var co=cn();function fo(e,r){for(var t=e.length;t--;)if(co(e[t][0],r))return t;return-1}var De=fo,lo=De,ho=Array.prototype,vo=ho.splice;function po(e){var r=this.__data__,t=lo(r,e);if(t<0)return!1;var n=r.length-1;return t==n?r.pop():vo.call(r,t,1),--this.size,!0}var yo=po,go=De;function bo(e){var r=this.__data__,t=go(r,e);return t<0?void 0:r[t][1]}var _o=bo,mo=De;function Co(e){return mo(this.__data__,e)>-1}var Fo=Co,qo=De;function Ro(e,r){var t=this.__data__,n=qo(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this}var wo=Ro,Ao=uo,To=yo,xo=_o,Oo=Fo,Ko=wo;function ye(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}ye.prototype.clear=Ao;ye.prototype.delete=To;ye.prototype.get=xo;ye.prototype.has=Oo;ye.prototype.set=Ko;var Le=ye,So=he,Eo=ie(),Po=So(Eo,"Map"),fn=Po,lr,Zn;function Mo(){if(Zn)return lr;Zn=1;var e=so(),r=Le,t=fn;function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return lr=n,lr}var dr,Qn;function Io(){if(Qn)return dr;Qn=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return dr=e,dr}var hr,Vn;function Ne(){if(Vn)return hr;Vn=1;var e=Io();function r(t,n){var a=t.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return hr=r,hr}var vr,ea;function Do(){if(ea)return vr;ea=1;var e=Ne();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return vr=r,vr}var pr,ra;function Lo(){if(ra)return pr;ra=1;var e=Ne();function r(t){return e(this,t).get(t)}return pr=r,pr}var yr,ta;function No(){if(ta)return yr;ta=1;var e=Ne();function r(t){return e(this,t).has(t)}return yr=r,yr}var gr,na;function Bo(){if(na)return gr;na=1;var e=Ne();function r(t,n){var a=e(this,t),i=a.size;return a.set(t,n),this.size+=a.size==i?0:1,this}return gr=r,gr}var br,aa;function ln(){if(aa)return br;aa=1;var e=Mo(),r=Do(),t=Lo(),n=No(),a=Bo();function i(o){var u=-1,v=o==null?0:o.length;for(this.clear();++u<v;){var h=o[u];this.set(h[0],h[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=n,i.prototype.set=a,br=i,br}var _r,ia;function jo(){if(ia)return _r;ia=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return _r=r,_r}var mr,sa;function Ho(){if(sa)return mr;sa=1;function e(r){return this.__data__.has(r)}return mr=e,mr}var Cr,oa;function es(){if(oa)return Cr;oa=1;var e=ln(),r=jo(),t=Ho();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,Cr=n,Cr}var Fr,ua;function Go(){if(ua)return Fr;ua=1;function e(r,t,n,a){for(var i=r.length,o=n+(a?1:-1);a?o--:++o<i;)if(t(r[o],o,r))return o;return-1}return Fr=e,Fr}var qr,ca;function $o(){if(ca)return qr;ca=1;function e(r){return r!==r}return qr=e,qr}var Rr,fa;function ko(){if(fa)return Rr;fa=1;function e(r,t,n){for(var a=n-1,i=r.length;++a<i;)if(r[a]===t)return a;return-1}return Rr=e,Rr}var wr,la;function Uo(){if(la)return wr;la=1;var e=Go(),r=$o(),t=ko();function n(a,i,o){return i===i?t(a,i,o):e(a,r,o)}return wr=n,wr}var Ar,da;function zo(){if(da)return Ar;da=1;var e=Uo();function r(t,n){var a=t==null?0:t.length;return!!a&&e(t,n,0)>-1}return Ar=r,Ar}var Tr,ha;function Wo(){if(ha)return Tr;ha=1;function e(r,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;)if(n(t,r[a]))return!0;return!1}return Tr=e,Tr}var xr,va;function dn(){if(va)return xr;va=1;function e(r,t){for(var n=-1,a=r==null?0:r.length,i=Array(a);++n<a;)i[n]=t(r[n],n,r);return i}return xr=e,xr}var Or,pa;function hn(){if(pa)return Or;pa=1;function e(r){return function(t){return r(t)}}return Or=e,Or}var Kr,ya;function rs(){if(ya)return Kr;ya=1;function e(r,t){return r.has(t)}return Kr=e,Kr}var Sr,ga;function Yo(){if(ga)return Sr;ga=1;var e=es(),r=zo(),t=Wo(),n=dn(),a=hn(),i=rs(),o=200;function u(v,h,m,_){var I=-1,P=r,N=!0,K=v.length,b=[],l=h.length;if(!K)return b;m&&(h=n(h,a(m))),_?(P=t,N=!1):h.length>=o&&(P=i,N=!1,h=new e(h));e:for(;++I<K;){var g=v[I],C=m==null?g:m(g);if(g=_||g!==0?g:0,N&&C===C){for(var y=l;y--;)if(h[y]===C)continue e;b.push(g)}else P(h,C,_)||b.push(g)}return b}return Sr=u,Sr}var Er,ba;function ts(){if(ba)return Er;ba=1;function e(r,t){for(var n=-1,a=t.length,i=r.length;++n<a;)r[i+n]=t[n];return r}return Er=e,Er}var Pr,_a;function Xo(){if(_a)return Pr;_a=1;var e=Ae(),r=pe(),t="[object Arguments]";function n(a){return r(a)&&e(a)==t}return Pr=n,Pr}var Mr,ma;function vn(){if(ma)return Mr;ma=1;var e=Xo(),r=pe(),t=Object.prototype,n=t.hasOwnProperty,a=t.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(o){return r(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Mr=i,Mr}var Ir,Ca;function re(){if(Ca)return Ir;Ca=1;var e=Array.isArray;return Ir=e,Ir}var Dr,Fa;function Jo(){if(Fa)return Dr;Fa=1;var e=we(),r=vn(),t=re(),n=e?e.isConcatSpreadable:void 0;function a(i){return t(i)||r(i)||!!(n&&i&&i[n])}return Dr=a,Dr}var Lr,qa;function ns(){if(qa)return Lr;qa=1;var e=ts(),r=Jo();function t(n,a,i,o,u){var v=-1,h=n.length;for(i||(i=r),u||(u=[]);++v<h;){var m=n[v];a>0&&i(m)?a>1?t(m,a-1,i,o,u):e(u,m):o||(u[u.length]=m)}return u}return Lr=t,Lr}var Nr,Ra;function xe(){if(Ra)return Nr;Ra=1;function e(r){return r}return Nr=e,Nr}var Br,wa;function Zo(){if(wa)return Br;wa=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return Br=e,Br}var jr,Aa;function Qo(){if(Aa)return jr;Aa=1;var e=Zo(),r=Math.max;function t(n,a,i){return a=r(a===void 0?n.length-1:a,0),function(){for(var o=arguments,u=-1,v=r(o.length-a,0),h=Array(v);++u<v;)h[u]=o[a+u];u=-1;for(var m=Array(a+1);++u<a;)m[u]=o[u];return m[a]=i(h),e(n,this,m)}}return jr=t,jr}var Hr,Ta;function Vo(){if(Ta)return Hr;Ta=1;function e(r){return function(){return r}}return Hr=e,Hr}var Gr,xa;function eu(){if(xa)return Gr;xa=1;var e=he,r=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}}();return Gr=r,Gr}var $r,Oa;function ru(){if(Oa)return $r;Oa=1;var e=Vo(),r=eu(),t=xe(),n=r?function(a,i){return r(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return $r=n,$r}var kr,Ka;function tu(){if(Ka)return kr;Ka=1;var e=800,r=16,t=Date.now;function n(a){var i=0,o=0;return function(){var u=t(),v=r-(u-o);if(o=u,v>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return kr=n,kr}var Ur,Sa;function nu(){if(Sa)return Ur;Sa=1;var e=ru(),r=tu(),t=r(e);return Ur=t,Ur}var zr,Ea;function as(){if(Ea)return zr;Ea=1;var e=xe(),r=Qo(),t=nu();function n(a,i){return t(r(a,i,e),a+"")}return zr=n,zr}var Wr,Pa;function pn(){if(Pa)return Wr;Pa=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Wr=r,Wr}var Yr,Ma;function Oe(){if(Ma)return Yr;Ma=1;var e=Qi(),r=pn();function t(n){return n!=null&&r(n.length)&&!e(n)}return Yr=t,Yr}var Xr,Ia;function au(){if(Ia)return Xr;Ia=1;var e=Oe(),r=pe();function t(n){return r(n)&&e(n)}return Xr=t,Xr}var Jr,Da;function iu(){if(Da)return Jr;Da=1;var e=Yo(),r=ns(),t=as(),n=au(),a=t(function(i,o){return n(i)?e(i,r(o,1,n,!0)):[]});return Jr=a,Jr}var Zr,La;function is(){if(La)return Zr;La=1;function e(r,t){for(var n=-1,a=r==null?0:r.length,i=0,o=[];++n<a;){var u=r[n];t(u,n,r)&&(o[i++]=u)}return o}return Zr=e,Zr}var Qr,Na;function su(){if(Na)return Qr;Na=1;function e(r){return function(t,n,a){for(var i=-1,o=Object(t),u=a(t),v=u.length;v--;){var h=u[r?v:++i];if(n(o[h],h,o)===!1)break}return t}}return Qr=e,Qr}var Vr,Ba;function ou(){if(Ba)return Vr;Ba=1;var e=su(),r=e();return Vr=r,Vr}var et,ja;function uu(){if(ja)return et;ja=1;function e(r,t){for(var n=-1,a=Array(r);++n<r;)a[n]=t(n);return a}return et=e,et}var Pe={exports:{}};function cu(){return!1}var fu=cu;Pe.exports;(function(e,r){var t=ie(),n=fu,a=r&&!r.nodeType&&r,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,u=o?t.Buffer:void 0,v=u?u.isBuffer:void 0,h=v||n;e.exports=h})(Pe,Pe.exports);var ss=Pe.exports,rt,Ha;function yn(){if(Ha)return rt;Ha=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<a}return rt=t,rt}var tt,Ga;function lu(){if(Ga)return tt;Ga=1;var e=Ae(),r=pn(),t=pe(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",u="[object Error]",v="[object Function]",h="[object Map]",m="[object Number]",_="[object Object]",I="[object RegExp]",P="[object Set]",N="[object String]",K="[object WeakMap]",b="[object ArrayBuffer]",l="[object DataView]",g="[object Float32Array]",C="[object Float64Array]",y="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",q="[object Uint8Array]",L="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",E={};E[g]=E[C]=E[y]=E[S]=E[x]=E[q]=E[L]=E[R]=E[O]=!0,E[n]=E[a]=E[b]=E[i]=E[l]=E[o]=E[u]=E[v]=E[h]=E[m]=E[_]=E[I]=E[P]=E[N]=E[K]=!1;function G(A){return t(A)&&r(A.length)&&!!E[e(A)]}return tt=G,tt}var Me={exports:{}};Me.exports;(function(e,r){var t=Ji(),n=r&&!r.nodeType&&r,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&t.process,u=function(){try{var v=a&&a.require&&a.require("util").types;return v||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(Me,Me.exports);var du=Me.exports,nt,$a;function os(){if($a)return nt;$a=1;var e=lu(),r=hn(),t=du,n=t&&t.isTypedArray,a=n?r(n):e;return nt=a,nt}var at,ka;function hu(){if(ka)return at;ka=1;var e=uu(),r=vn(),t=re(),n=ss,a=yn(),i=os(),o=Object.prototype,u=o.hasOwnProperty;function v(h,m){var _=t(h),I=!_&&r(h),P=!_&&!I&&n(h),N=!_&&!I&&!P&&i(h),K=_||I||P||N,b=K?e(h.length,String):[],l=b.length;for(var g in h)(m||u.call(h,g))&&!(K&&(g=="length"||P&&(g=="offset"||g=="parent")||N&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||a(g,l)))&&b.push(g);return b}return at=v,at}var vu=Object.prototype;function pu(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||vu;return e===t}var yu=pu;function gu(e,r){return function(t){return e(r(t))}}var bu=gu,it,Ua;function _u(){if(Ua)return it;Ua=1;var e=bu,r=e(Object.keys,Object);return it=r,it}var st,za;function mu(){if(za)return st;za=1;var e=yu,r=_u(),t=Object.prototype,n=t.hasOwnProperty;function a(i){if(!e(i))return r(i);var o=[];for(var u in Object(i))n.call(i,u)&&u!="constructor"&&o.push(u);return o}return st=a,st}var ot,Wa;function gn(){if(Wa)return ot;Wa=1;var e=hu(),r=mu(),t=Oe();function n(a){return t(a)?e(a):r(a)}return ot=n,ot}var ut,Ya;function bn(){if(Ya)return ut;Ya=1;var e=ou(),r=gn();function t(n,a){return n&&e(n,a,r)}return ut=t,ut}var ct,Xa;function Cu(){if(Xa)return ct;Xa=1;var e=Oe();function r(t,n){return function(a,i){if(a==null)return a;if(!e(a))return t(a,i);for(var o=a.length,u=n?o:-1,v=Object(a);(n?u--:++u<o)&&i(v[u],u,v)!==!1;);return a}}return ct=r,ct}var ft,Ja;function _n(){if(Ja)return ft;Ja=1;var e=bn(),r=Cu(),t=r(e);return ft=t,ft}var lt,Za;function Fu(){if(Za)return lt;Za=1;var e=_n();function r(t,n){var a=[];return e(t,function(i,o,u){n(i,o,u)&&a.push(i)}),a}return lt=r,lt}var qu=Le;function Ru(){this.__data__=new qu,this.size=0}var wu=Ru;function Au(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}var Tu=Au;function xu(e){return this.__data__.get(e)}var Ou=xu;function Ku(e){return this.__data__.has(e)}var Su=Ku,Eu=Le,Pu=fn,Mu=ln(),Iu=200;function Du(e,r){var t=this.__data__;if(t instanceof Eu){var n=t.__data__;if(!Pu||n.length<Iu-1)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new Mu(n)}return t.set(e,r),this.size=t.size,this}var Lu=Du,Nu=Le,Bu=wu,ju=Tu,Hu=Ou,Gu=Su,$u=Lu;function ge(e){var r=this.__data__=new Nu(e);this.size=r.size}ge.prototype.clear=Bu;ge.prototype.delete=ju;ge.prototype.get=Hu;ge.prototype.has=Gu;ge.prototype.set=$u;var us=ge,dt,Qa;function ku(){if(Qa)return dt;Qa=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a;)if(t(r[n],n,r))return!0;return!1}return dt=e,dt}var ht,Va;function cs(){if(Va)return ht;Va=1;var e=es(),r=ku(),t=rs(),n=1,a=2;function i(o,u,v,h,m,_){var I=v&n,P=o.length,N=u.length;if(P!=N&&!(I&&N>P))return!1;var K=_.get(o),b=_.get(u);if(K&&b)return K==u&&b==o;var l=-1,g=!0,C=v&a?new e:void 0;for(_.set(o,u),_.set(u,o);++l<P;){var y=o[l],S=u[l];if(h)var x=I?h(S,y,l,u,o,_):h(y,S,l,o,u,_);if(x!==void 0){if(x)continue;g=!1;break}if(C){if(!r(u,function(q,L){if(!t(C,L)&&(y===q||m(y,q,v,h,_)))return C.push(L)})){g=!1;break}}else if(!(y===S||m(y,S,v,h,_))){g=!1;break}}return _.delete(o),_.delete(u),g}return ht=i,ht}var Uu=ie(),zu=Uu.Uint8Array,Wu=zu,vt,ei;function Yu(){if(ei)return vt;ei=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(a,i){n[++t]=[i,a]}),n}return vt=e,vt}function Xu(e){var r=-1,t=Array(e.size);return e.forEach(function(n){t[++r]=n}),t}var Ju=Xu,pt,ri;function Zu(){if(ri)return pt;ri=1;var e=we(),r=Wu,t=cn(),n=cs(),a=Yu(),i=Ju,o=1,u=2,v="[object Boolean]",h="[object Date]",m="[object Error]",_="[object Map]",I="[object Number]",P="[object RegExp]",N="[object Set]",K="[object String]",b="[object Symbol]",l="[object ArrayBuffer]",g="[object DataView]",C=e?e.prototype:void 0,y=C?C.valueOf:void 0;function S(x,q,L,R,O,E,G){switch(L){case g:if(x.byteLength!=q.byteLength||x.byteOffset!=q.byteOffset)return!1;x=x.buffer,q=q.buffer;case l:return!(x.byteLength!=q.byteLength||!E(new r(x),new r(q)));case v:case h:case I:return t(+x,+q);case m:return x.name==q.name&&x.message==q.message;case P:case K:return x==q+"";case _:var A=a;case N:var k=R&o;if(A||(A=i),x.size!=q.size&&!k)return!1;var X=G.get(x);if(X)return X==q;R|=u,G.set(x,q);var te=n(A(x),A(q),R,O,E,G);return G.delete(x),te;case b:if(y)return y.call(x)==y.call(q)}return!1}return pt=S,pt}var Qu=ts(),Vu=re();function ec(e,r,t){var n=r(e);return Vu(e)?n:Qu(n,t(e))}var rc=ec;function tc(){return[]}var nc=tc,ac=is(),ic=nc,sc=Object.prototype,oc=sc.propertyIsEnumerable,ti=Object.getOwnPropertySymbols,uc=ti?function(e){return e==null?[]:(e=Object(e),ac(ti(e),function(r){return oc.call(e,r)}))}:ic,cc=uc,fc=rc,lc=cc,dc=gn();function hc(e){return fc(e,dc,lc)}var vc=hc,yt,ni;function pc(){if(ni)return yt;ni=1;var e=vc,r=1,t=Object.prototype,n=t.hasOwnProperty;function a(i,o,u,v,h,m){var _=u&r,I=e(i),P=I.length,N=e(o),K=N.length;if(P!=K&&!_)return!1;for(var b=P;b--;){var l=I[b];if(!(_?l in o:n.call(o,l)))return!1}var g=m.get(i),C=m.get(o);if(g&&C)return g==o&&C==i;var y=!0;m.set(i,o),m.set(o,i);for(var S=_;++b<P;){l=I[b];var x=i[l],q=o[l];if(v)var L=_?v(q,x,l,o,i,m):v(x,q,l,i,o,m);if(!(L===void 0?x===q||h(x,q,u,v,m):L)){y=!1;break}S||(S=l=="constructor")}if(y&&!S){var R=i.constructor,O=o.constructor;R!=O&&"constructor"in i&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof O=="function"&&O instanceof O)&&(y=!1)}return m.delete(i),m.delete(o),y}return yt=a,yt}var yc=he,gc=ie(),bc=yc(gc,"DataView"),_c=bc,mc=he,Cc=ie(),Fc=mc(Cc,"Promise"),qc=Fc,Rc=he,wc=ie(),Ac=Rc(wc,"Set"),Tc=Ac,xc=he,Oc=ie(),Kc=xc(Oc,"WeakMap"),Sc=Kc,nn=_c,an=fn,sn=qc,on=Tc,un=Sc,fs=Ae(),be=Vi,ai="[object Map]",Ec="[object Object]",ii="[object Promise]",si="[object Set]",oi="[object WeakMap]",ui="[object DataView]",Pc=be(nn),Mc=be(an),Ic=be(sn),Dc=be(on),Lc=be(un),le=fs;(nn&&le(new nn(new ArrayBuffer(1)))!=ui||an&&le(new an)!=ai||sn&&le(sn.resolve())!=ii||on&&le(new on)!=si||un&&le(new un)!=oi)&&(le=function(e){var r=fs(e),t=r==Ec?e.constructor:void 0,n=t?be(t):"";if(n)switch(n){case Pc:return ui;case Mc:return ai;case Ic:return ii;case Dc:return si;case Lc:return oi}return r});var Nc=le,gt,ci;function Bc(){if(ci)return gt;ci=1;var e=us,r=cs(),t=Zu(),n=pc(),a=Nc,i=re(),o=ss,u=os(),v=1,h="[object Arguments]",m="[object Array]",_="[object Object]",I=Object.prototype,P=I.hasOwnProperty;function N(K,b,l,g,C,y){var S=i(K),x=i(b),q=S?m:a(K),L=x?m:a(b);q=q==h?_:q,L=L==h?_:L;var R=q==_,O=L==_,E=q==L;if(E&&o(K)){if(!o(b))return!1;S=!0,R=!1}if(E&&!R)return y||(y=new e),S||u(K)?r(K,b,l,g,C,y):t(K,b,q,l,g,C,y);if(!(l&v)){var G=R&&P.call(K,"__wrapped__"),A=O&&P.call(b,"__wrapped__");if(G||A){var k=G?K.value():K,X=A?b.value():b;return y||(y=new e),C(k,X,l,g,y)}}return E?(y||(y=new e),n(K,b,l,g,C,y)):!1}return gt=N,gt}var bt,fi;function ls(){if(fi)return bt;fi=1;var e=Bc(),r=pe();function t(n,a,i,o,u){return n===a?!0:n==null||a==null||!r(n)&&!r(a)?n!==n&&a!==a:e(n,a,i,o,t,u)}return bt=t,bt}var _t,li;function jc(){if(li)return _t;li=1;var e=us,r=ls(),t=1,n=2;function a(i,o,u,v){var h=u.length,m=h,_=!v;if(i==null)return!m;for(i=Object(i);h--;){var I=u[h];if(_&&I[2]?I[1]!==i[I[0]]:!(I[0]in i))return!1}for(;++h<m;){I=u[h];var P=I[0],N=i[P],K=I[1];if(_&&I[2]){if(N===void 0&&!(P in i))return!1}else{var b=new e;if(v)var l=v(N,K,P,i,o,b);if(!(l===void 0?r(K,N,t|n,v,b):l))return!1}}return!0}return _t=a,_t}var mt,di;function ds(){if(di)return mt;di=1;var e=de();function r(t){return t===t&&!e(t)}return mt=r,mt}var Ct,hi;function Hc(){if(hi)return Ct;hi=1;var e=ds(),r=gn();function t(n){for(var a=r(n),i=a.length;i--;){var o=a[i],u=n[o];a[i]=[o,u,e(u)]}return a}return Ct=t,Ct}var Ft,vi;function hs(){if(vi)return Ft;vi=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return Ft=e,Ft}var qt,pi;function Gc(){if(pi)return qt;pi=1;var e=jc(),r=Hc(),t=hs();function n(a){var i=r(a);return i.length==1&&i[0][2]?t(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return qt=n,qt}var Rt,yi;function mn(){if(yi)return Rt;yi=1;var e=re(),r=Te(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var u=typeof i;return u=="number"||u=="symbol"||u=="boolean"||i==null||r(i)?!0:n.test(i)||!t.test(i)||o!=null&&i in Object(o)}return Rt=a,Rt}var vs=ln(),$c="Expected a function";function Cn(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError($c);var t=function(){var n=arguments,a=r?r.apply(this,n):n[0],i=t.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return t.cache=i.set(a,o)||i,o};return t.cache=new(Cn.Cache||vs),t}Cn.Cache=vs;var kc=Cn,Uc=kc,zc=500;function Wc(e){var r=Uc(e,function(n){return t.size===zc&&t.clear(),n}),t=r.cache;return r}var Yc=Wc,Xc=Yc,Jc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zc=/\\(\\)?/g,Qc=Xc(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Jc,function(t,n,a,i){r.push(a?i.replace(Zc,"$1"):n||t)}),r}),Vc=Qc,wt,gi;function ef(){if(gi)return wt;gi=1;var e=we(),r=dn(),t=re(),n=Te(),a=1/0,i=e?e.prototype:void 0,o=i?i.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(n(v))return o?o.call(v):"";var h=v+"";return h=="0"&&1/v==-a?"-0":h}return wt=u,wt}var At,bi;function ps(){if(bi)return At;bi=1;var e=ef();function r(t){return t==null?"":e(t)}return At=r,At}var rf=re(),tf=mn(),nf=Vc,af=ps();function sf(e,r){return rf(e)?e:tf(e,r)?[e]:nf(af(e))}var ys=sf,Tt,_i;function Be(){if(_i)return Tt;_i=1;var e=Te(),r=1/0;function t(n){if(typeof n=="string"||e(n))return n;var a=n+"";return a=="0"&&1/n==-r?"-0":a}return Tt=t,Tt}var xt,mi;function Fn(){if(mi)return xt;mi=1;var e=ys,r=Be();function t(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[r(a[i++])];return i&&i==o?n:void 0}return xt=t,xt}var Ot,Ci;function of(){if(Ci)return Ot;Ci=1;var e=Fn();function r(t,n,a){var i=t==null?void 0:e(t,n);return i===void 0?a:i}return Ot=r,Ot}var Kt,Fi;function uf(){if(Fi)return Kt;Fi=1;function e(r,t){return r!=null&&t in Object(r)}return Kt=e,Kt}var St,qi;function cf(){if(qi)return St;qi=1;var e=ys,r=vn(),t=re(),n=yn(),a=pn(),i=Be();function o(u,v,h){v=e(v,u);for(var m=-1,_=v.length,I=!1;++m<_;){var P=i(v[m]);if(!(I=u!=null&&h(u,P)))break;u=u[P]}return I||++m!=_?I:(_=u==null?0:u.length,!!_&&a(_)&&n(P,_)&&(t(u)||r(u)))}return St=o,St}var Et,Ri;function ff(){if(Ri)return Et;Ri=1;var e=uf(),r=cf();function t(n,a){return n!=null&&r(n,a,e)}return Et=t,Et}var Pt,wi;function lf(){if(wi)return Pt;wi=1;var e=ls(),r=of(),t=ff(),n=mn(),a=ds(),i=hs(),o=Be(),u=1,v=2;function h(m,_){return n(m)&&a(_)?i(o(m),_):function(I){var P=r(I,m);return P===void 0&&P===_?t(I,m):e(_,P,u|v)}}return Pt=h,Pt}var Mt,Ai;function df(){if(Ai)return Mt;Ai=1;function e(r){return function(t){return t==null?void 0:t[r]}}return Mt=e,Mt}var It,Ti;function hf(){if(Ti)return It;Ti=1;var e=Fn();function r(t){return function(n){return e(n,t)}}return It=r,It}var Dt,xi;function vf(){if(xi)return Dt;xi=1;var e=df(),r=hf(),t=mn(),n=Be();function a(i){return t(i)?e(n(i)):r(i)}return Dt=a,Dt}var Lt,Oi;function qn(){if(Oi)return Lt;Oi=1;var e=Gc(),r=lf(),t=xe(),n=re(),a=vf();function i(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):a(o)}return Lt=i,Lt}var Nt,Ki;function pf(){if(Ki)return Nt;Ki=1;var e=is(),r=Fu(),t=qn(),n=re();function a(i,o){var u=n(i)?e:r;return u(i,t(o,3))}return Nt=a,Nt}var Bt,Si;function yf(){if(Si)return Bt;Si=1;function e(r,t,n){var a;return n(r,function(i,o,u){if(t(i,o,u))return a=o,!1}),a}return Bt=e,Bt}var jt,Ei;function gf(){if(Ei)return jt;Ei=1;var e=yf(),r=bn(),t=qn();function n(a,i){return e(a,t(i,3),r)}return jt=n,jt}var Ht,Pi;function bf(){if(Pi)return Ht;Pi=1;function e(r){return r&&r.length?r[0]:void 0}return Ht=e,Ht}var Gt,Mi;function _f(){return Mi||(Mi=1,Gt=bf()),Gt}var $t,Ii;function mf(){if(Ii)return $t;Ii=1;function e(r,t){for(var n=-1,a=r==null?0:r.length;++n<a&&t(r[n],n,r)!==!1;);return r}return $t=e,$t}var kt,Di;function gs(){if(Di)return kt;Di=1;var e=xe();function r(t){return typeof t=="function"?t:e}return kt=r,kt}var Ut,Li;function Cf(){if(Li)return Ut;Li=1;var e=mf(),r=_n(),t=gs(),n=re();function a(i,o){var u=n(i)?e:r;return u(i,t(o))}return Ut=a,Ut}var zt,Ni;function Ff(){if(Ni)return zt;Ni=1;var e=bn(),r=gs();function t(n,a){return n&&e(n,r(a))}return zt=t,zt}var Wt,Bi;function qf(){if(Bi)return Wt;Bi=1;function e(){}return Wt=e,Wt}var Yt,ji;function Rf(){if(ji)return Yt;ji=1;var e=_n(),r=Oe();function t(n,a){var i=-1,o=r(n)?Array(n.length):[];return e(n,function(u,v,h){o[++i]=a(u,v,h)}),o}return Yt=t,Yt}var Xt,Hi;function wf(){if(Hi)return Xt;Hi=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return Xt=e,Xt}var Jt,Gi;function Af(){if(Gi)return Jt;Gi=1;var e=Te();function r(t,n){if(t!==n){var a=t!==void 0,i=t===null,o=t===t,u=e(t),v=n!==void 0,h=n===null,m=n===n,_=e(n);if(!h&&!_&&!u&&t>n||u&&v&&m&&!h&&!_||i&&v&&m||!a&&m||!o)return 1;if(!i&&!u&&!_&&t<n||_&&a&&o&&!i&&!u||h&&a&&o||!v&&o||!m)return-1}return 0}return Jt=r,Jt}var Zt,$i;function Tf(){if($i)return Zt;$i=1;var e=Af();function r(t,n,a){for(var i=-1,o=t.criteria,u=n.criteria,v=o.length,h=a.length;++i<v;){var m=e(o[i],u[i]);if(m){if(i>=h)return m;var _=a[i];return m*(_=="desc"?-1:1)}}return t.index-n.index}return Zt=r,Zt}var Qt,ki;function xf(){if(ki)return Qt;ki=1;var e=dn(),r=Fn(),t=qn(),n=Rf(),a=wf(),i=hn(),o=Tf(),u=xe(),v=re();function h(m,_,I){_.length?_=e(_,function(K){return v(K)?function(b){return r(b,K.length===1?K[0]:K)}:K}):_=[u];var P=-1;_=e(_,i(t));var N=n(m,function(K,b,l){var g=e(_,function(C){return C(K)});return{criteria:g,index:++P,value:K}});return a(N,function(K,b){return o(K,b,I)})}return Qt=h,Qt}var Vt,Ui;function Of(){if(Ui)return Vt;Ui=1;var e=cn(),r=Oe(),t=yn(),n=de();function a(i,o,u){if(!n(u))return!1;var v=typeof o;return(v=="number"?r(u)&&t(o,u.length):v=="string"&&o in u)?e(u[o],i):!1}return Vt=a,Vt}var en,zi;function Kf(){if(zi)return en;zi=1;var e=ns(),r=xf(),t=as(),n=Of(),a=t(function(i,o){if(i==null)return[];var u=o.length;return u>1&&n(i,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(i,e(o,1),[])});return en=a,en}var rn,Wi;function Sf(){if(Wi)return rn;Wi=1;var e=Zi(),r=de(),t="Expected a function";function n(a,i,o){var u=!0,v=!0;if(typeof a!="function")throw new TypeError(t);return r(o)&&(u="leading"in o?!!o.leading:u,v="trailing"in o?!!o.trailing:v),e(a,i,{leading:u,maxWait:i,trailing:v})}return rn=n,rn}var tn,Yi;function Ef(){if(Yi)return tn;Yi=1;var e=ps(),r=0;function t(n){var a=++r;return e(n)+a}return tn=t,tn}(function(e,r){(function(t,n){e.exports=n(Zi(),iu(),pf(),gf(),_f(),Cf(),Ff(),qf(),Kf(),Sf(),Ef(),ms)})(ve,function(t,n,a,i,o,u,v,h,m,_,I,P){return function(){var N={654:function(b,l,g){var C,y=this&&this.__assign||function(){return y=Object.assign||function(p){for(var s,c=1,f=arguments.length;c<f;c++)for(var d in s=arguments[c])Object.prototype.hasOwnProperty.call(s,d)&&(p[d]=s[d]);return p},y.apply(this,arguments)},S=this&&this.__createBinding||(Object.create?function(p,s,c,f){f===void 0&&(f=c);var d=Object.getOwnPropertyDescriptor(s,c);d&&!("get"in d?!s.__esModule:d.writable||d.configurable)||(d={enumerable:!0,get:function(){return s[c]}}),Object.defineProperty(p,f,d)}:function(p,s,c,f){f===void 0&&(f=c),p[f]=s[c]}),x=this&&this.__setModuleDefault||(Object.create?function(p,s){Object.defineProperty(p,"default",{enumerable:!0,value:s})}:function(p,s){p.default=s}),q=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var s={};if(p!=null)for(var c in p)c!=="default"&&Object.prototype.hasOwnProperty.call(p,c)&&S(s,p,c);return x(s,p),s},L=this&&this.__spreadArray||function(p,s,c){if(c||arguments.length===2)for(var f,d=0,F=s.length;d<F;d++)!f&&d in s||(f||(f=Array.prototype.slice.call(s,0,d)),f[d]=s[d]);return p.concat(f||Array.prototype.slice.call(s))},R=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(l,"__esModule",{value:!0}),l.updateRtl=l.doesFocusableExist=l.getCurrentFocusKey=l.updateAllLayouts=l.resume=l.pause=l.navigateByDirection=l.setFocus=l.setKeyMap=l.destroy=l.setThrottle=l.init=l.SpatialNavigation=l.ROOT_FOCUS_KEY=void 0;var O=R(g(150)),E=R(g(117)),G=R(g(747)),A=R(g(23)),k=R(g(842)),X=R(g(682)),te=R(g(784)),_e=R(g(432)),je=R(g(67)),Ke=R(g(35)),Q=R(g(119)),me=q(g(964)),oe="left",ue="right",ce="up",ne="down",Ce="enter",Fe=((C={}).left=[37,"ArrowLeft"],C.up=[38,"ArrowUp"],C.right=[39,"ArrowRight"],C.down=[40,"ArrowDown"],C.enter=[13,"Enter"],C);l.ROOT_FOCUS_KEY="SN:ROOT";var qe=["#0FF","#FF0","#F0F"],Se={leading:!0,trailing:!1},Ee=function(){function p(){this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.domNodeFocusOptions={},this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.useGetBoundingClientRect=!1,this.shouldFocusDOMNode=!1,this.shouldUseNativeEvents=!1,this.writingDirection=Q.default.LTR,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=Fe,this.pause=this.pause.bind(this),this.resume=this.resume.bind(this),this.setFocus=this.setFocus.bind(this),this.updateAllLayouts=this.updateAllLayouts.bind(this),this.navigateByDirection=this.navigateByDirection.bind(this),this.init=this.init.bind(this),this.setThrottle=this.setThrottle.bind(this),this.destroy=this.destroy.bind(this),this.setKeyMap=this.setKeyMap.bind(this),this.getCurrentFocusKey=this.getCurrentFocusKey.bind(this),this.doesFocusableExist=this.doesFocusableExist.bind(this),this.updateRtl=this.updateRtl.bind(this),this.setFocusDebounced=(0,O.default)(this.setFocus,300,{leading:!1,trailing:!0}),this.debug=!1,this.visualDebugger=null,this.logIndex=0,this.distanceCalculationMethod="corners"}return p.getCutoffCoordinate=function(s,c,f,d,F){var w=s?d.top:F===Q.default.LTR?d.left:d.right,T=s?d.bottom:F===Q.default.LTR?d.right:d.left;return c?f?w:T:f?T:w},p.getRefCorners=function(s,c,f){var d={a:{x:0,y:0},b:{x:0,y:0}};switch(s){case ce:var F=c?f.bottom:f.top;d.a={x:f.left,y:F},d.b={x:f.right,y:F};break;case ne:F=c?f.top:f.bottom,d.a={x:f.left,y:F},d.b={x:f.right,y:F};break;case oe:var w=c?f.right:f.left;d.a={x:w,y:f.top},d.b={x:w,y:f.bottom};break;case ue:w=c?f.left:f.right,d.a={x:w,y:f.top},d.b={x:w,y:f.bottom}}return d},p.isAdjacentSlice=function(s,c,f){var d=s.a,F=s.b,w=c.a,T=c.b,M=f?"x":"y",$=d[M],H=F[M],j=w[M],B=T[M],D=.2*(H-$);return Math.max(0,Math.min(H,B)-Math.max($,j))>=D},p.getPrimaryAxisDistance=function(s,c,f){var d=s.a,F=c.a,w=f?"y":"x";return Math.abs(F[w]-d[w])},p.getSecondaryAxisDistance=function(s,c,f,d,F){if(F)return F(s,c,f,d);var w=s.a,T=s.b,M=c.a,$=c.b,H=f?"x":"y",j=w[H],B=T[H],D=M[H],Y=$[H];if(d==="center"){var z=(j+B)/2,J=(D+Y)/2;return Math.abs(z-J)}if(d==="edges"){var se=Math.min(j,B),U=Math.min(D,Y),V=Math.max(j,B),fe=Math.max(D,Y),ae=Math.abs(se-U),ee=Math.abs(V-fe);return Math.min(ae,ee)}var Re=[Math.abs(D-j),Math.abs(D-B),Math.abs(Y-j),Math.abs(Y-B)];return Math.min.apply(Math,Re)},p.prototype.sortSiblingsByPriority=function(s,c,f,d){var F=this,w=f===ne||f===ce,T=p.getRefCorners(f,!1,c);return(0,_e.default)(s,function(M){var $=p.getRefCorners(f,!0,M.layout),H=p.isAdjacentSlice(T,$,w),j=H?p.getPrimaryAxisDistance:p.getSecondaryAxisDistance,B=H?p.getSecondaryAxisDistance:p.getPrimaryAxisDistance,D=j(T,$,w,F.distanceCalculationMethod,F.customDistanceCalculationFunction),Y=B(T,$,w,F.distanceCalculationMethod,F.customDistanceCalculationFunction),z=5*D+Y,J=(z+1)/(H?5:1);return F.log("smartNavigate","distance (primary, secondary, total weighted) for ".concat(M.focusKey," relative to ").concat(d," is"),D,Y,z),F.log("smartNavigate","priority for ".concat(M.focusKey," relative to ").concat(d," is"),J),F.visualDebugger&&(F.visualDebugger.drawPoint($.a.x,$.a.y,"yellow",6),F.visualDebugger.drawPoint($.b.x,$.b.y,"yellow",6)),J})},p.prototype.init=function(s){var c=this,f=s===void 0?{}:s,d=f.debug,F=d!==void 0&&d,w=f.visualDebug,T=w!==void 0&&w,M=f.nativeMode,$=M!==void 0&&M,H=f.throttle,j=H===void 0?0:H,B=f.throttleKeypresses,D=B!==void 0&&B,Y=f.useGetBoundingClientRect,z=Y!==void 0&&Y,J=f.shouldFocusDOMNode,se=J!==void 0&&J,U=f.domNodeFocusOptions,V=U===void 0?{}:U,fe=f.shouldUseNativeEvents,ae=fe!==void 0&&fe,ee=f.rtl,Re=ee!==void 0&&ee,W=f.distanceCalculationMethod,Z=W===void 0?"corners":W,Rn=f.customDistanceCalculationFunction,bs=Rn===void 0?void 0:Rn;if(!this.enabled&&(this.domNodeFocusOptions=V,this.enabled=!0,this.nativeMode=$,this.throttleKeypresses=D,this.useGetBoundingClientRect=z,this.shouldFocusDOMNode=se&&!$,this.shouldUseNativeEvents=ae,this.writingDirection=Re?Q.default.RTL:Q.default.LTR,this.distanceCalculationMethod=Z,this.customDistanceCalculationFunction=bs,this.debug=F,!this.nativeMode&&(Number.isInteger(j)&&j>0&&(this.throttle=j),this.bindEventHandlers(),T))){this.visualDebugger=new Ke.default(this.writingDirection);var wn=function(){requestAnimationFrame(function(){c.visualDebugger.clearLayouts(),(0,te.default)(c.focusableComponents,function(An,_s){c.visualDebugger.drawLayout(An.layout,_s,An.parentFocusKey)}),wn()})};wn()}},p.prototype.setThrottle=function(s){var c=s===void 0?{}:s,f=c.throttle,d=f===void 0?0:f,F=c.throttleKeypresses,w=F!==void 0&&F;this.throttleKeypresses=w,this.nativeMode||(this.unbindEventHandlers(),Number.isInteger(d)&&(this.throttle=d),this.bindEventHandlers())},p.prototype.destroy=function(){this.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=Fe,this.unbindEventHandlers())},p.prototype.getEventType=function(s){return(0,A.default)(this.getKeyMap(),function(c){return c.includes(s)})},p.getKeyCode=function(s){return s.keyCode||s.code||s.key},p.prototype.bindEventHandlers=function(){var s=this;typeof window<"u"&&window.addEventListener&&(this.keyDownEventListener=function(c){if(s.paused!==!0){s.debug&&(s.logIndex+=1);var f=p.getKeyCode(c),d=s.getEventType(f);if(d){s.pressedKeys[d]=s.pressedKeys[d]?s.pressedKeys[d]+1:1,s.shouldUseNativeEvents||(c.preventDefault(),c.stopPropagation());var F={pressedKeys:s.pressedKeys};if(d===Ce&&s.focusKey)s.onEnterPress(F);else{var w=s.onArrowPress(d,F)===!1;if(s.visualDebugger&&s.visualDebugger.clear(),w)s.log("keyDownEventListener","default navigation prevented");else{var T=(0,A.default)(s.getKeyMap(),function(M){return M.includes(f)});s.smartNavigate(T,null,{event:c})}}}}},this.throttle&&(this.keyDownEventListenerThrottled=(0,je.default)(this.keyDownEventListener.bind(this),this.throttle,Se)),this.keyUpEventListener=function(c){var f=p.getKeyCode(c),d=s.getEventType(f);delete s.pressedKeys[d],s.throttle&&!s.throttleKeypresses&&s.keyDownEventListenerThrottled.cancel(),d===Ce&&s.focusKey&&s.onEnterRelease(),!s.focusKey||d!==oe&&d!==ue&&d!==ce&&d!==ne||s.onArrowRelease(d)},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener))},p.prototype.unbindEventHandlers=function(){if(typeof window<"u"&&window.removeEventListener){window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null;var s=this.throttle?this.keyDownEventListenerThrottled:this.keyDownEventListener;window.removeEventListener("keydown",s),this.keyDownEventListener=null}},p.prototype.onEnterPress=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onEnterPress&&c.onEnterPress(s):this.log("onEnterPress","componentNotFocusable"):this.log("onEnterPress","noComponent")},p.prototype.onEnterRelease=function(){var s=this.focusableComponents[this.focusKey];s?s.focusable?s.onEnterRelease&&s.onEnterRelease():this.log("onEnterRelease","componentNotFocusable"):this.log("onEnterRelease","noComponent")},p.prototype.onArrowPress=function(s,c){var f=this.focusableComponents[this.focusKey];if(f)return f&&f.onArrowPress&&f.onArrowPress(s,c);this.log("onArrowPress","noComponent")},p.prototype.onArrowRelease=function(s){var c=this.focusableComponents[this.focusKey];c?c.focusable?c.onArrowRelease&&c.onArrowRelease(s):this.log("onArrowRelease","componentNotFocusable"):this.log("onArrowRelease","noComponent")},p.prototype.navigateByDirection=function(s,c){if(this.paused!==!0&&this.enabled&&!this.nativeMode){var f=[ne,ce,oe,ue];f.includes(s)?(this.log("navigateByDirection","direction",s),this.smartNavigate(s,null,c)):this.log("navigateByDirection","Invalid direction. You passed: `".concat(s,"`, but you can use only these: "),f)}},p.prototype.smartNavigate=function(s,c,f){var d=this;if(!this.nativeMode){var F=s===ne||s===ce,w=s===ne||(this.writingDirection===Q.default.LTR?s===ue:s===oe);this.log("smartNavigate","direction",s),this.log("smartNavigate","fromParentFocusKey",c),this.log("smartNavigate","this.focusKey",this.focusKey),c||(0,te.default)(this.focusableComponents,function(U){U.layoutUpdated=!1});var T=this.focusableComponents[c||this.focusKey];if(c||T){if(this.log("smartNavigate","currentComponent",T?T.focusKey:void 0,T?T.node:void 0,T),T){this.updateLayout(T.focusKey);var M=T.parentFocusKey,$=T.focusKey,H=T.layout,j=p.getCutoffCoordinate(F,w,!1,H,this.writingDirection),B=(0,G.default)(this.focusableComponents,function(U){if(U.parentFocusKey===M&&U.focusable){d.updateLayout(U.focusKey);var V=p.getCutoffCoordinate(F,w,!0,U.layout,d.writingDirection);return F||d.writingDirection===Q.default.LTR?w?V>=j:V<=j:w?V<=j:V>=j}return!1});if(this.debug&&(this.log("smartNavigate","currentCutoffCoordinate",j),this.log("smartNavigate","siblings","".concat(B.length," elements:"),B.map(function(U){return U.focusKey}).join(", "),B.map(function(U){return U.node}),B.map(function(U){return U}))),this.visualDebugger){var D=p.getRefCorners(s,!1,H);this.visualDebugger.drawPoint(D.a.x,D.a.y),this.visualDebugger.drawPoint(D.b.x,D.b.y)}var Y=this.sortSiblingsByPriority(B,H,s,$),z=(0,k.default)(Y);if(this.log("smartNavigate","nextComponent",z?z.focusKey:void 0,z?z.node:void 0,z),z)this.setFocus(z.focusKey,f);else{var J=this.focusableComponents[M],se=J!=null&&J.isFocusBoundary?J.focusBoundaryDirections||[s]:[];J&&se.includes(s)||this.smartNavigate(s,M,f)}}}else this.setFocus(this.getForcedFocusKey())}},p.prototype.saveLastFocusedChildKey=function(s,c){s&&(this.log("saveLastFocusedChildKey","".concat(s.focusKey," lastFocusedChildKey set"),c),s.lastFocusedChildKey=c)},p.prototype.log=function(s,c){for(var f=[],d=2;d<arguments.length;d++)f[d-2]=arguments[d];this.debug&&console.log.apply(console,L(["%c".concat(s,"%c").concat(c),"background: ".concat(qe[this.logIndex%qe.length],"; color: black; padding: 1px 5px;"),"background: #333; color: #BADA55; padding: 1px 5px;"],f,!1))},p.prototype.getCurrentFocusKey=function(){return this.focusKey},p.prototype.getForcedFocusKey=function(){var s,c=(0,G.default)(this.focusableComponents,function(d){return d.focusable&&d.forceFocus}),f=this.sortSiblingsByPriority(c,{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:null},"down",l.ROOT_FOCUS_KEY);return(s=(0,k.default)(f))===null||s===void 0?void 0:s.focusKey},p.prototype.getNextFocusKey=function(s){var c=this,f=this.focusableComponents[s];if(!f||this.nativeMode)return s;var d=(0,G.default)(this.focusableComponents,function(M){return M.parentFocusKey===s&&M.focusable});if(d.length>0){var F=f.lastFocusedChildKey,w=f.preferredChildFocusKey;if(this.log("getNextFocusKey","lastFocusedChildKey is",F),this.log("getNextFocusKey","preferredChildFocusKey is",w),F&&f.saveLastFocusedChild&&this.isParticipatingFocusableComponent(F))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",F),this.getNextFocusKey(F);if(w&&this.isParticipatingFocusableComponent(w))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",w),this.getNextFocusKey(w);d.forEach(function(M){return c.updateLayout(M.focusKey)});var T=function(M,$){var H=$===Q.default.LTR?function(B){var D=B.layout;return Math.abs(D.left)+Math.abs(D.top)}:function(B){var D=B.layout;return Math.abs(window.innerWidth-D.right)+Math.abs(D.top)},j=(0,_e.default)(M,H);return(0,k.default)(j)}(d,this.writingDirection).focusKey;return this.log("getNextFocusKey","childKey will be focused",T),this.getNextFocusKey(T)}return this.log("getNextFocusKey","targetFocusKey",s),s},p.prototype.addFocusable=function(s){var c=s.focusKey,f=s.node,d=s.parentFocusKey,F=s.onEnterPress,w=s.onEnterRelease,T=s.onArrowPress,M=s.onArrowRelease,$=s.onFocus,H=s.onBlur,j=s.saveLastFocusedChild,B=s.trackChildren,D=s.onUpdateFocus,Y=s.onUpdateHasFocusedChild,z=s.preferredChildFocusKey,J=s.autoRestoreFocus,se=s.forceFocus,U=s.focusable,V=s.isFocusBoundary,fe=s.focusBoundaryDirections;if(this.focusableComponents[c]={focusKey:c,node:f,parentFocusKey:d,onEnterPress:F,onEnterRelease:w,onArrowPress:T,onArrowRelease:M,onFocus:$,onBlur:H,onUpdateFocus:D,onUpdateHasFocusedChild:Y,saveLastFocusedChild:j,trackChildren:B,preferredChildFocusKey:z,focusable:U,isFocusBoundary:V,focusBoundaryDirections:fe,autoRestoreFocus:J,forceFocus:se,lastFocusedChildKey:null,layout:{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0,node:f},layoutUpdated:!1},f||console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ',this.focusableComponents[c]),!this.nativeMode){this.updateLayout(c),this.log("addFocusable","Component added: ",this.focusableComponents[c]),c===this.focusKey&&this.setFocus(z||c);for(var ae=this.focusableComponents[this.focusKey];ae;){if(ae.parentFocusKey===c){this.updateParentsHasFocusedChild(this.focusKey,{}),this.updateParentsLastFocusedChild(this.focusKey);break}ae=this.focusableComponents[ae.parentFocusKey]}}},p.prototype.removeFocusable=function(s){var c=s.focusKey,f=this.focusableComponents[c];if(f){var d=f.parentFocusKey;(0,f.onUpdateFocus)(!1),this.log("removeFocusable","Component removed: ",f),delete this.focusableComponents[c];var F=this.parentsHavingFocusedChild.includes(c);this.parentsHavingFocusedChild=this.parentsHavingFocusedChild.filter(function(M){return M!==c});var w=this.focusableComponents[d],T=c===this.focusKey;if(w&&w.lastFocusedChildKey===c&&(w.lastFocusedChildKey=null),this.nativeMode)return;(T||F)&&w&&w.autoRestoreFocus&&(this.log("removeFocusable","Component removed: ",T?"Leaf component":"Container component","Auto restoring focus to: ",d),this.setFocusDebounced(d))}},p.prototype.getNodeLayoutByFocusKey=function(s){var c=this.focusableComponents[s];return c?(this.updateLayout(c.focusKey),c.layout):null},p.prototype.setCurrentFocusedKey=function(s,c){var f,d,F,w;if(this.isFocusableComponent(this.focusKey)&&s!==this.focusKey){var T=this.focusableComponents[this.focusKey];T.onUpdateFocus(!1),T.onBlur(this.getNodeLayoutByFocusKey(this.focusKey),c),(d=(f=T.node)===null||f===void 0?void 0:f.removeAttribute)===null||d===void 0||d.call(f,"data-focused"),this.log("setCurrentFocusedKey","onBlur",T)}if(this.focusKey=s,this.isFocusableComponent(this.focusKey)){var M=this.focusableComponents[this.focusKey];this.shouldFocusDOMNode&&M.node&&M.node.focus(this.domNodeFocusOptions),(w=(F=M.node)===null||F===void 0?void 0:F.setAttribute)===null||w===void 0||w.call(F,"data-focused","true"),M.onUpdateFocus(!0),M.onFocus(this.getNodeLayoutByFocusKey(this.focusKey),c),this.log("setCurrentFocusedKey","onFocus",M)}},p.prototype.updateParentsHasFocusedChild=function(s,c){for(var f=this,d=[],F=this.focusableComponents[s];F;){var w=F.parentFocusKey,T=this.focusableComponents[w];if(T){var M=T.focusKey;d.push(M)}F=T}var $=(0,E.default)(this.parentsHavingFocusedChild,d),H=(0,E.default)(d,this.parentsHavingFocusedChild);(0,X.default)($,function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!1),f.onIntermediateNodeBecameBlurred(j,c)}),(0,X.default)(H,function(j){var B=f.focusableComponents[j];B&&B.trackChildren&&B.onUpdateHasFocusedChild(!0),f.onIntermediateNodeBecameFocused(j,c)}),this.parentsHavingFocusedChild=d},p.prototype.updateParentsLastFocusedChild=function(s){for(var c=this.focusableComponents[s];c;){var f=c.parentFocusKey,d=this.focusableComponents[f];d&&this.saveLastFocusedChildKey(d,c.focusKey),c=d}},p.prototype.getKeyMap=function(){return this.keyMap},p.prototype.setKeyMap=function(s){this.keyMap=y(y({},this.getKeyMap()),function(c){var f={};return Object.entries(c).forEach(function(d){var F=d[0],w=d[1];f[F]=Array.isArray(w)?w:[w]}),f}(s))},p.prototype.isFocusableComponent=function(s){return!!this.focusableComponents[s]},p.prototype.isParticipatingFocusableComponent=function(s){return this.isFocusableComponent(s)&&this.focusableComponents[s].focusable},p.prototype.onIntermediateNodeBecameFocused=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onFocus(this.getNodeLayoutByFocusKey(s),c)},p.prototype.onIntermediateNodeBecameBlurred=function(s,c){this.isParticipatingFocusableComponent(s)&&this.focusableComponents[s].onBlur(this.getNodeLayoutByFocusKey(s),c)},p.prototype.pause=function(){this.paused=!0},p.prototype.resume=function(){this.paused=!1},p.prototype.setFocus=function(s,c){if(c===void 0&&(c={}),this.setFocusDebounced.cancel(),this.enabled){this.log("setFocus","focusKey",s),s&&s!==l.ROOT_FOCUS_KEY||(s=this.getForcedFocusKey());var f=this.getNextFocusKey(s);this.log("setFocus","newFocusKey",f),this.setCurrentFocusedKey(f,c),this.updateParentsHasFocusedChild(f,c),this.updateParentsLastFocusedChild(f)}},p.prototype.updateAllLayouts=function(){var s=this;this.enabled&&!this.nativeMode&&(0,te.default)(this.focusableComponents,function(c,f){s.updateLayout(f)})},p.prototype.updateLayout=function(s){var c=this.focusableComponents[s];if(c&&!this.nativeMode&&!c.layoutUpdated){var f=c.node,d=this.useGetBoundingClientRect?(0,me.getBoundingClientRect)(f):(0,me.default)(f);c.layout=y(y({},d),{node:f})}},p.prototype.updateFocusable=function(s,c){var f=c.node,d=c.preferredChildFocusKey,F=c.focusable,w=c.isFocusBoundary,T=c.focusBoundaryDirections,M=c.onEnterPress,$=c.onEnterRelease,H=c.onArrowPress,j=c.onFocus,B=c.onBlur;if(!this.nativeMode){var D=this.focusableComponents[s];D&&(D.preferredChildFocusKey=d,D.focusable=F,D.isFocusBoundary=w,D.focusBoundaryDirections=T,D.onEnterPress=M,D.onEnterRelease=$,D.onArrowPress=H,D.onFocus=j,D.onBlur=B,f&&(D.node=f))}},p.prototype.isNativeMode=function(){return this.nativeMode},p.prototype.doesFocusableExist=function(s){return!!this.focusableComponents[s]},p.prototype.updateRtl=function(s){this.writingDirection=s?Q.default.RTL:Q.default.LTR},p}();l.SpatialNavigation=new Ee,l.init=l.SpatialNavigation.init,l.setThrottle=l.SpatialNavigation.setThrottle,l.destroy=l.SpatialNavigation.destroy,l.setKeyMap=l.SpatialNavigation.setKeyMap,l.setFocus=l.SpatialNavigation.setFocus,l.navigateByDirection=l.SpatialNavigation.navigateByDirection,l.pause=l.SpatialNavigation.pause,l.resume=l.SpatialNavigation.resume,l.updateAllLayouts=l.SpatialNavigation.updateAllLayouts,l.getCurrentFocusKey=l.SpatialNavigation.getCurrentFocusKey,l.doesFocusableExist=l.SpatialNavigation.doesFocusableExist,l.updateRtl=l.SpatialNavigation.updateRtl},35:function(b,l,g){var C=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(l,"__esModule",{value:!0});var y=C(g(119)),S=typeof window<"u"&&window.document,x=S?window.innerWidth:0,q=S?window.innerHeight:0,L=function(){function R(O){S&&(this.debugCtx=R.createCanvas("sn-debug","1010",O),this.layoutsCtx=R.createCanvas("sn-layouts","1000",O),this.writingDirection=O)}return R.createCanvas=function(O,E,G){var A=document.querySelector("#".concat(O))||document.createElement("canvas");A.setAttribute("id",O),A.setAttribute("dir",G===y.default.LTR?"ltr":"rtl");var k=A.getContext("2d");return A.style.zIndex=E,A.style.position="fixed",A.style.top="0",A.style.left="0",document.body.appendChild(A),A.width=x,A.height=q,k},R.prototype.clear=function(){S&&this.debugCtx.clearRect(0,0,x,q)},R.prototype.clearLayouts=function(){S&&this.layoutsCtx.clearRect(0,0,x,q)},R.prototype.drawLayout=function(O,E,G){if(S){this.layoutsCtx.strokeStyle="green",this.layoutsCtx.strokeRect(O.left,O.top,O.width,O.height),this.layoutsCtx.font="8px monospace",this.layoutsCtx.fillStyle="red";var A=this.writingDirection===y.default.LTR?"left":"right",k=O[A];this.layoutsCtx.fillText(E,k,O.top+10),this.layoutsCtx.fillText(G,k,O.top+25),this.layoutsCtx.fillText("".concat(A,": ").concat(k),k,O.top+40),this.layoutsCtx.fillText("top: ".concat(O.top),k,O.top+55)}},R.prototype.drawPoint=function(O,E,G,A){G===void 0&&(G="blue"),A===void 0&&(A=10),S&&(this.debugCtx.strokeStyle=G,this.debugCtx.lineWidth=3,this.debugCtx.strokeRect(O-A/2,E-A/2,A,A))},R}();l.default=L},119:function(b,l){var g;Object.defineProperty(l,"__esModule",{value:!0}),function(C){C[C.LTR=0]="LTR",C[C.RTL=1]="RTL"}(g||(g={})),l.default=g},607:function(b,l,g){var C=this&&this.__createBinding||(Object.create?function(S,x,q,L){L===void 0&&(L=q);var R=Object.getOwnPropertyDescriptor(x,q);R&&!("get"in R?!x.__esModule:R.writable||R.configurable)||(R={enumerable:!0,get:function(){return x[q]}}),Object.defineProperty(S,L,R)}:function(S,x,q,L){L===void 0&&(L=q),S[L]=x[q]}),y=this&&this.__exportStar||function(S,x){for(var q in S)q==="default"||Object.prototype.hasOwnProperty.call(x,q)||C(x,S,q)};Object.defineProperty(l,"__esModule",{value:!0}),y(g(79),l),y(g(445),l),y(g(654),l)},964:function(b,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getBoundingClientRect=void 0;var g=function(C){for(var y=C.offsetParent,S=C.offsetHeight,x=C.offsetWidth,q=C.offsetLeft,L=C.offsetTop;y&&y.nodeType===1;)q+=y.offsetLeft-y.scrollLeft,L+=y.offsetTop-y.scrollTop,y=y.offsetParent;return{height:S,left:q,top:L,width:x}};l.default=function(C){var y=C&&C.parentElement;if(C&&y){var S=g(y),x=g(C),q=x.height,L=x.left,R=x.top,O=x.width;return{x:L-S.left,y:R-S.top,width:O,height:q,left:L,top:R,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}},l.getBoundingClientRect=function(C){if(C&&C.getBoundingClientRect){var y=C.getBoundingClientRect();return{x:y.x,y:y.y,width:y.width,height:y.height,left:y.left,top:y.top,get right(){return this.left+this.width},get bottom(){return this.top+this.height}}}return{x:0,y:0,width:0,height:0,left:0,top:0,right:0,bottom:0}}},445:function(b,l,g){Object.defineProperty(l,"__esModule",{value:!0}),l.useFocusContext=l.FocusContext=void 0;var C=g(156),y=g(654);l.FocusContext=(0,C.createContext)(y.ROOT_FOCUS_KEY),l.FocusContext.displayName="FocusContext",l.useFocusContext=function(){return(0,C.useContext)(l.FocusContext)}},79:function(b,l,g){var C=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(l,"__esModule",{value:!0}),l.useFocusable=void 0;var y=g(156),S=C(g(604)),x=C(g(461)),q=g(654),L=g(445);l.useFocusable=function(R){var O=R===void 0?{}:R,E=O.focusable,G=E===void 0||E,A=O.saveLastFocusedChild,k=A===void 0||A,X=O.trackChildren,te=X!==void 0&&X,_e=O.autoRestoreFocus,je=_e===void 0||_e,Ke=O.forceFocus,Q=Ke!==void 0&&Ke,me=O.isFocusBoundary,oe=me!==void 0&&me,ue=O.focusBoundaryDirections,ce=O.focusKey,ne=O.preferredChildFocusKey,Ce=O.onEnterPress,Fe=Ce===void 0?S.default:Ce,qe=O.onEnterRelease,Se=qe===void 0?S.default:qe,Ee=O.onArrowPress,p=Ee===void 0?function(){return!0}:Ee,s=O.onArrowRelease,c=s===void 0?S.default:s,f=O.onFocus,d=f===void 0?S.default:f,F=O.onBlur,w=F===void 0?S.default:F,T=O.extraProps,M=(0,y.useCallback)(function(W){Fe(T,W)},[Fe,T]),$=(0,y.useCallback)(function(){Se(T)},[Se,T]),H=(0,y.useCallback)(function(W,Z){return p(W,T,Z)},[T,p]),j=(0,y.useCallback)(function(W){c(W,T)},[c,T]),B=(0,y.useCallback)(function(W,Z){d(W,T,Z)},[T,d]),D=(0,y.useCallback)(function(W,Z){w(W,T,Z)},[T,w]),Y=(0,y.useRef)(null),z=(0,y.useState)(!1),J=z[0],se=z[1],U=(0,y.useState)(!1),V=U[0],fe=U[1],ae=(0,L.useFocusContext)(),ee=(0,y.useMemo)(function(){return ce||(0,x.default)("sn:focusable-item-")},[ce]),Re=(0,y.useCallback)(function(W){W===void 0&&(W={}),q.SpatialNavigation.setFocus(ee,W)},[ee]);return(0,y.useEffect)(function(){var W=Y.current;return q.SpatialNavigation.addFocusable({focusKey:ee,node:W,parentFocusKey:ae,preferredChildFocusKey:ne,onEnterPress:M,onEnterRelease:$,onArrowPress:H,onArrowRelease:j,onFocus:B,onBlur:D,onUpdateFocus:function(Z){return Z===void 0&&(Z=!1),se(Z)},onUpdateHasFocusedChild:function(Z){return Z===void 0&&(Z=!1),fe(Z)},saveLastFocusedChild:k,trackChildren:te,isFocusBoundary:oe,focusBoundaryDirections:ue,autoRestoreFocus:je,forceFocus:Q,focusable:G}),function(){q.SpatialNavigation.removeFocusable({focusKey:ee})}},[]),(0,y.useEffect)(function(){var W=Y.current;q.SpatialNavigation.updateFocusable(ee,{node:W,preferredChildFocusKey:ne,focusable:G,isFocusBoundary:oe,focusBoundaryDirections:ue,onEnterPress:M,onEnterRelease:$,onArrowPress:H,onArrowRelease:j,onFocus:B,onBlur:D})},[ee,ne,G,oe,ue,M,$,H,j,B,D]),{ref:Y,focusSelf:Re,focused:J,hasFocusedChild:V,focusKey:ee}}},150:function(b){b.exports=t},117:function(b){b.exports=n},747:function(b){b.exports=a},23:function(b){b.exports=i},842:function(b){b.exports=o},682:function(b){b.exports=u},784:function(b){b.exports=v},604:function(b){b.exports=h},432:function(b){b.exports=m},67:function(b){b.exports=_},461:function(b){b.exports=I},156:function(b){b.exports=P}},K={};return function b(l){var g=K[l];if(g!==void 0)return g.exports;var C=K[l]={exports:{}};return N[l].call(C.exports,C,C.exports,b),C.exports}(607)}()})})(Xi);var Pf=Xi.exports;exports.commonjsGlobal=ve;exports.distExports=Pf;exports.getAugmentedNamespace=Fs;exports.getDefaultExportFromCjs=Cs;
1
+ "use strict";const t=require("./sl-types.js"),l=require("./useStreamLayerApp2.js"),e=require("react/jsx-runtime"),U=require("react"),S=require("./index8.js"),_=require("./index4.js"),O={[l.QuestionType.TWEET]:{label:"Insight",iconName:"icon-insight"},[l.QuestionType.PROMOTION]:{label:"Insight",iconName:"icon-insight"},[l.QuestionType.UNSET]:void 0,[l.QuestionType.FACTOID]:{label:"Insight",iconName:"icon-insight"},[l.QuestionType.POLL]:{label:"Poll",iconName:"icon-poll"},[l.QuestionType.TRIVIA]:{label:"Trivia",iconName:"icon-trivia"},[l.QuestionType.PREDICTION]:{label:"Prediction",iconName:"icon-prediction"}},b={[l.QuestionType.TWEET]:"Learn more",[l.QuestionType.FACTOID]:"Learn more",[l.QuestionType.POLL]:"Answer",[l.QuestionType.TRIVIA]:"Answer",[l.QuestionType.PREDICTION]:"Answer",[l.QuestionType.PROMOTION]:"",[l.QuestionType.UNSET]:""},E=i=>i.split(/\s+/).map(n=>n[0]).join("").toUpperCase(),q=i=>i?i.toLocaleString("en-US"):"0",C=i=>{const n=new Date(i);if(!n)return"";const d=new Date,a=Math.floor(d.getTime()-n.getTime());return a<6e4?`${Math.floor(a/1e3)}s`:a<36e5?`${Math.floor(a/6e4)}m`:a<864e5?`${Math.floor(a/36e5)}h`:n.getFullYear()===d.getFullYear()?`${n.toLocaleDateString("en-US",{month:"short",day:"numeric"})}`:`${n.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})}`},R=t.styled_default("div")({name:"Container",class:"cjq447q",propsAsIs:!1}),P=t.styled_default("div")({name:"ImageContainer",class:"i14egogb",propsAsIs:!1}),M=t.styled_default("img")({name:"Image",class:"i2g9g4l",propsAsIs:!1}),F=()=>_.B1,V=t.styled_default(F())({name:"TwitterIcon",class:"t1c454nm",propsAsIs:!0}),z=t.styled_default("div")({name:"Details",class:"d11nigc3",propsAsIs:!1}),B=t.styled_default("div")({name:"Name",class:"nrxa4k8",propsAsIs:!1}),k=t.styled_default("div")({name:"UserNameAndDate",class:"u1p051g3",propsAsIs:!1}),w=({image:i,name:n,userName:d,verified:a,createdTweet:m})=>{const o=m&&C(m);return e.jsxs(R,{children:[i&&e.jsxs(P,{children:[e.jsx(M,{className:"SL_AccountImage",src:i}),e.jsx(V,{name:"twitter"})]}),e.jsxs(z,{children:[n&&e.jsxs(B,{className:"SL_TweetAccountName",children:[n," ",a&&e.jsx(_.B1,{name:"icon-twitter-verified"})]}),d&&e.jsxs(k,{className:"SL_TweetAccountUserName",children:["@",d," ",o&&`・ ${o}`]})]})]})},W=t.styled_default("div")({name:"Container",class:"c1kzqw87",propsAsIs:!1}),Y=t.styled_default("div")({name:"Details",class:"d9r1hf9",propsAsIs:!1}),G=t.styled_default("div")({name:"Body",class:"bezygt5",propsAsIs:!1}),c=t.styled_default("div")({name:"ImagesContainer",class:"i1y8f7ym",propsAsIs:!1}),g=t.styled_default("div")({name:"ImagesBlock",class:"i18gwonx",propsAsIs:!1}),D=t.styled_default("img")({name:"Image",class:"i3g0xjd",propsAsIs:!1}),J=()=>D,r=t.styled_default(J())({name:"ImageFullSize",class:"io8rt7p",propsAsIs:!0}),K=()=>D,v=t.styled_default(K())({name:"ImageHalfSize",class:"i4hn3ox",propsAsIs:!0}),X=new RegExp("\\s?https?://t.co[^\\s]+(\\s+)?$"),L=i=>i==null?void 0:i.replace(X,""),Z=U.memo(({image:i,body:n,muted:d,account:a,accountVerified:m,tweet:o,isDetail:y,controlVideo:H})=>{var I,x,h,T,j;const s=(x=(I=o==null?void 0:o.meta)==null?void 0:I.extendedEntities)==null?void 0:x.media,p=s==null?void 0:s.find(({type:u})=>u==="photo"),f=U.useMemo(()=>{var u,A,$,N;return(N=($=(A=(u=s==null?void 0:s[0])==null?void 0:u.videoInfo)==null?void 0:A.variants)==null?void 0:$.findLast(({contentType:Q})=>Q==="video/mp4"))==null?void 0:N.url},[s]);return e.jsxs(W,{children:[e.jsxs(Y,{children:[e.jsx(w,{image:i,name:(h=o==null?void 0:o.meta)==null?void 0:h.accountName,userName:a,verified:m,createdTweet:o==null?void 0:o.date}),e.jsx(G,{children:L(n)}),!y&&p&&e.jsx(c,{children:e.jsx(r,{src:s==null?void 0:s[0].mediaUrlHttps})}),y&&p&&e.jsxs(e.Fragment,{children:[(s==null?void 0:s.length)===1&&e.jsx(c,{children:e.jsx(r,{src:s[0].mediaUrlHttps})}),(s==null?void 0:s.length)===2&&e.jsxs(c,{children:[e.jsx(v,{src:s[0].mediaUrlHttps}),e.jsx(v,{src:s[1].mediaUrlHttps})]}),(s==null?void 0:s.length)===3&&e.jsxs(c,{children:[e.jsx(v,{src:s[0].mediaUrlHttps}),e.jsxs(g,{children:[e.jsx(r,{src:s[1].mediaUrlHttps}),e.jsx(r,{src:s[2].mediaUrlHttps})]})]}),(s==null?void 0:s.length)===4&&e.jsxs(c,{children:[e.jsxs(g,{children:[e.jsx(r,{src:s[0].mediaUrlHttps}),e.jsx(r,{src:s[1].mediaUrlHttps})]}),e.jsxs(g,{children:[e.jsx(r,{src:s[2].mediaUrlHttps}),e.jsx(r,{src:s[3].mediaUrlHttps})]})]})]})]}),!p&&(((T=s==null?void 0:s[0])==null?void 0:T.type)==="video"||((j=s==null?void 0:s[0])==null?void 0:j.type)==="animated_gif")&&f&&e.jsx(S.Et,{muted:d,source:f,poster:s[0].mediaUrlHttps,controlVideo:H})]})});exports.D=w;exports.D$1=L;exports.I=E;exports.b=Z;exports.e=O;exports.o=b;exports.s=q;