streamlit-nightly 1.42.1.dev20250209__py2.py3-none-any.whl → 1.42.1.dev20250210__py2.py3-none-any.whl

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 (86) hide show
  1. streamlit/static/index.html +1 -1
  2. streamlit/static/static/js/{FileDownload.esm.D9415avj.js → FileDownload.esm.CJC5yID5.js} +1 -1
  3. streamlit/static/static/js/{FileDropzone.Cd515bsy.js → FileDropzone.BxEWox87.js} +1 -1
  4. streamlit/static/static/js/{FormClearHelper.BBpErIGP.js → FormClearHelper.D3S2tctS.js} +1 -1
  5. streamlit/static/static/js/{Hooks.CeSTXIj2.js → Hooks.BwOODKo2.js} +1 -1
  6. streamlit/static/static/js/{InputInstructions.BU5Td5cJ.js → InputInstructions.Cm2uD0mH.js} +1 -1
  7. streamlit/static/static/js/{ProgressBar.J2QhvKtD.js → ProgressBar.BqFWIdp2.js} +2 -2
  8. streamlit/static/static/js/{RenderInPortalIfExists.BbbrvJaa.js → RenderInPortalIfExists.ax0m2H0_.js} +1 -1
  9. streamlit/static/static/js/{Toolbar.D-hUr0RX.js → Toolbar.CRowl_WL.js} +1 -1
  10. streamlit/static/static/js/{base-input.CNkkCv4B.js → base-input.krLFbHyn.js} +4 -4
  11. streamlit/static/static/js/{createSuper.DHhKMTIx.js → createSuper.k6SaTk0j.js} +1 -1
  12. streamlit/static/static/js/{data-grid-overlay-editor.CRylpesE.js → data-grid-overlay-editor.BUaZRQkO.js} +1 -1
  13. streamlit/static/static/js/{downloader.D_08g5mI.js → downloader.CFLXdJg2.js} +1 -1
  14. streamlit/static/static/js/{es6.B-Rq6ajt.js → es6.gxLg_8ha.js} +2 -2
  15. streamlit/static/static/js/{iframeResizer.contentWindow.CFL3MAVr.js → iframeResizer.contentWindow.DkwEeyR9.js} +1 -1
  16. streamlit/static/static/js/{index.JSS70wsq.js → index.B7i1hjL6.js} +2 -2
  17. streamlit/static/static/js/{index.CEj-S3PF.js → index.BAHug0jz.js} +1 -1
  18. streamlit/static/static/js/index.BOCJ0fVC.js +1 -0
  19. streamlit/static/static/js/{index.D9M0iUu5.js → index.BOR0ctru.js} +1 -1
  20. streamlit/static/static/js/{index.-SmXSkUY.js → index.BOVOcQJK.js} +1 -1
  21. streamlit/static/static/js/{index.BlcNB-sY.js → index.BSsjknPR.js} +1 -1
  22. streamlit/static/static/js/index.BaBZULmv.js +1 -0
  23. streamlit/static/static/js/{index.D94jjl7_.js → index.BbOp1EEY.js} +5 -5
  24. streamlit/static/static/js/{index.zzxJWhBg.js → index.BdR17uHT.js} +1 -1
  25. streamlit/static/static/js/{index.CMcCB4vg.js → index.Be3Ud760.js} +1 -1
  26. streamlit/static/static/js/index.BiQ_POiE.js +1 -0
  27. streamlit/static/static/js/{index.9wBA4A4f.js → index.Blgy4CCd.js} +18 -18
  28. streamlit/static/static/js/{index.B2evntzQ.js → index.C-4bC9wo.js} +1 -1
  29. streamlit/static/static/js/{index.C-_AHUSz.js → index.C1ewZGYv.js} +2 -2
  30. streamlit/static/static/js/index.C8CCX_u3.js +1 -0
  31. streamlit/static/static/js/index.CUPb182F.js +1 -0
  32. streamlit/static/static/js/{index.Bw9RDCaH.js → index.CVtSssNQ.js} +1 -1
  33. streamlit/static/static/js/index.C_Vm41WK.js +1 -0
  34. streamlit/static/static/js/index.C_eNMQ0G.js +1 -0
  35. streamlit/static/static/js/index.Cesoqj5i.js +1 -0
  36. streamlit/static/static/js/{index.CuNiy4LB.js → index.Cj8uDDnI.js} +1 -1
  37. streamlit/static/static/js/index.Cksh9dIb.js +1 -0
  38. streamlit/static/static/js/index.CoIye-dC.js +1 -0
  39. streamlit/static/static/js/index.D69WEQtH.js +1 -0
  40. streamlit/static/static/js/{index.BqePTNWb.js → index.D8KPGiS9.js} +2 -2
  41. streamlit/static/static/js/{index.BCYuLMdi.js → index.DEpXqZe9.js} +3 -3
  42. streamlit/static/static/js/index.DJY4JXFf.js +1 -0
  43. streamlit/static/static/js/{index.CEWcZMdD.js → index.DXBI5Jkr.js} +2 -2
  44. streamlit/static/static/js/index.DooQ24w4.js +1 -0
  45. streamlit/static/static/js/{index.DYHaq5Cw.js → index.DrwNQ7G8.js} +6 -6
  46. streamlit/static/static/js/{index.BVbWPXFU.js → index.DxK0b7hW.js} +1 -1
  47. streamlit/static/static/js/{index.B9q8XlSH.js → index.FyfJgAtw.js} +2 -2
  48. streamlit/static/static/js/{index.BevO9CYu.js → index.PzwaVSFN.js} +2 -2
  49. streamlit/static/static/js/index.UW7UEFVt.js +1 -0
  50. streamlit/static/static/js/{index.DwWMkgFE.js → index.cRZuEjlj.js} +1 -1
  51. streamlit/static/static/js/{index.B0xfT3p4.js → index.waVftNUu.js} +2 -2
  52. streamlit/static/static/js/index.xMCeK5i-.js +2 -0
  53. streamlit/static/static/js/{input.Dbc83Str.js → input.RldPkbfl.js} +2 -2
  54. streamlit/static/static/js/{memory.BzHgTb9i.js → memory.CJUkEDwO.js} +1 -1
  55. streamlit/static/static/js/{mergeWith.BCa1_PWb.js → mergeWith.mP6-fMJS.js} +1 -1
  56. streamlit/static/static/js/{number-overlay-editor.CtUWknLp.js → number-overlay-editor.Cexyv1f1.js} +1 -1
  57. streamlit/static/static/js/{possibleConstructorReturn.DGVrr2j8.js → possibleConstructorReturn.Bfw_ecB7.js} +1 -1
  58. streamlit/static/static/js/{sandbox.C20zasAf.js → sandbox.B9QCFfso.js} +1 -1
  59. streamlit/static/static/js/{textarea.BeRVLTOp.js → textarea.BphfZ_P9.js} +2 -2
  60. streamlit/static/static/js/{timepicker.DyU-jgSC.js → timepicker.BGFe-2JD.js} +1 -1
  61. streamlit/static/static/js/{toConsumableArray.D4FxxWIg.js → toConsumableArray.BtjgDmTZ.js} +1 -1
  62. streamlit/static/static/js/{uniqueId.CAAlIP1-.js → uniqueId.BG3aVKeE.js} +1 -1
  63. streamlit/static/static/js/{useBasicWidgetState.C207Y3_O.js → useBasicWidgetState.GQaAM6uH.js} +1 -1
  64. streamlit/static/static/js/{useOnInputChange.CsqRc0X0.js → useOnInputChange.B6mIpebi.js} +1 -1
  65. streamlit/static/static/js/{withFullScreenWrapper.DwHjQb3H.js → withFullScreenWrapper.XgZUnj3Y.js} +1 -1
  66. {streamlit_nightly-1.42.1.dev20250209.dist-info → streamlit_nightly-1.42.1.dev20250210.dist-info}/METADATA +1 -1
  67. {streamlit_nightly-1.42.1.dev20250209.dist-info → streamlit_nightly-1.42.1.dev20250210.dist-info}/RECORD +71 -71
  68. streamlit/static/static/js/index.B-4MHYvl.js +0 -1
  69. streamlit/static/static/js/index.BA5ubsQA.js +0 -1
  70. streamlit/static/static/js/index.BNrZwkh1.js +0 -1
  71. streamlit/static/static/js/index.BpmrfDoR.js +0 -2
  72. streamlit/static/static/js/index.CFtAnwvU.js +0 -1
  73. streamlit/static/static/js/index.CQ_wmqnz.js +0 -1
  74. streamlit/static/static/js/index.CvADzqCD.js +0 -1
  75. streamlit/static/static/js/index.DPs04g4h.js +0 -1
  76. streamlit/static/static/js/index.DWIf4xZP.js +0 -1
  77. streamlit/static/static/js/index.DfCewjMv.js +0 -1
  78. streamlit/static/static/js/index.DgwklVRJ.js +0 -1
  79. streamlit/static/static/js/index.Yr32ts47.js +0 -1
  80. streamlit/static/static/js/index.i2uLxrqv.js +0 -1
  81. streamlit/static/static/js/index.joQNIDux.js +0 -1
  82. streamlit/static/static/js/index.pzjWTi64.js +0 -1
  83. {streamlit_nightly-1.42.1.dev20250209.data → streamlit_nightly-1.42.1.dev20250210.data}/scripts/streamlit.cmd +0 -0
  84. {streamlit_nightly-1.42.1.dev20250209.dist-info → streamlit_nightly-1.42.1.dev20250210.dist-info}/WHEEL +0 -0
  85. {streamlit_nightly-1.42.1.dev20250209.dist-info → streamlit_nightly-1.42.1.dev20250210.dist-info}/entry_points.txt +0 -0
  86. {streamlit_nightly-1.42.1.dev20250209.dist-info → streamlit_nightly-1.42.1.dev20250210.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- import{r as g,bQ as wr,bR as kr,bS as Cr,bT as Mr,b as qr,g as Xr,bw as A,bK as de,bL as fe,bU as Qr,bJ as Pr,bx as I,H as Ir,bV as Zr,bW as Hr,bX as Qt,bY as Gr,by as De,bZ as Jr,b_ as en,b$ as tn,B as rn,A as Ar,y as Zt,aF as nn,O as _t,K as an,z as on,j as $e,bs as sn,bF as ln,bt as un,bc as cn,bu as pn}from"./index.9wBA4A4f.js";import{a as dn}from"./useBasicWidgetState.C207Y3_O.js";import{D as ue,a as ce,T as fn,l as We}from"./timepicker.DyU-jgSC.js";import{I as hn}from"./input.Dbc83Str.js";import{I as yn}from"./base-input.CNkkCv4B.js";import"./FormClearHelper.BBpErIGP.js";import"./possibleConstructorReturn.DGVrr2j8.js";import"./createSuper.DHhKMTIx.js";var vn=["title","size","color","overrides"];function et(){return et=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},et.apply(this,arguments)}function gn(t,r){if(t==null)return{};var n=mn(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function mn(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function bn(t,r){return $n(t)||Sn(t,r)||Dn(t,r)||On()}function On(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as g,bP as wr,bQ as kr,bR as Cr,bS as Mr,b as qr,g as Xr,bv as A,bJ as de,bK as fe,bT as Qr,bI as Pr,bw as I,H as Ir,bU as Zr,bV as Hr,bW as Qt,bX as Gr,bx as De,bY as Jr,bZ as en,b_ as tn,B as rn,A as Ar,y as Zt,aF as nn,O as _t,K as an,z as on,j as $e,br as sn,bE as ln,bs as un,bb as cn,bt as pn}from"./index.Blgy4CCd.js";import{a as dn}from"./useBasicWidgetState.GQaAM6uH.js";import{D as ue,a as ce,T as fn,l as We}from"./timepicker.BGFe-2JD.js";import{I as hn}from"./input.RldPkbfl.js";import{I as yn}from"./base-input.krLFbHyn.js";import"./FormClearHelper.D3S2tctS.js";import"./possibleConstructorReturn.Bfw_ecB7.js";import"./createSuper.k6SaTk0j.js";var vn=["title","size","color","overrides"];function et(){return et=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},et.apply(this,arguments)}function gn(t,r){if(t==null)return{};var n=mn(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function mn(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function bn(t,r){return $n(t)||Sn(t,r)||Dn(t,r)||On()}function On(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(t,r){if(t){if(typeof t=="string")return Gt(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gt(t,r)}}function Gt(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function Sn(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,s;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(l){o=!0,s=l}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function $n(t){if(Array.isArray(t))return t}function _n(t,r){var n=wr(),a=bn(n,2),e=a[1],o=t.title,i=o===void 0?"Left":o,s=t.size,l=t.color,u=t.overrides,d=u===void 0?{}:u,p=gn(t,vn),f=kr({component:e.icons&&e.icons.ChevronLeft?e.icons.ChevronLeft:null},d&&d.Svg?Cr(d.Svg):{});return g.createElement(Mr,et({viewBox:"0 0 24 24",ref:r,title:i,size:s,color:l,overrides:{Svg:f}},p),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const Jt=g.forwardRef(_n);var wn=["title","size","color","overrides"];function tt(){return tt=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},tt.apply(this,arguments)}function kn(t,r){if(t==null)return{};var n=Cn(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Cn(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}function Mn(t,r){return An(t)||Hn(t,r)||In(t,r)||Pn()}function Pn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(t,r){if(t){if(typeof t=="string")return er(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return er(t,r)}}function er(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function Hn(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,s;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(l){o=!0,s=l}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function An(t){if(Array.isArray(t))return t}function En(t,r){var n=wr(),a=Mn(n,2),e=a[1],o=t.title,i=o===void 0?"Right":o,s=t.size,l=t.color,u=t.overrides,d=u===void 0?{}:u,p=kn(t,wn),f=kr({component:e.icons&&e.icons.ChevronRight?e.icons.ChevronRight:null},d&&d.Svg?Cr(d.Svg):{});return g.createElement(Mr,tt({viewBox:"0 0 24 24",ref:r,title:i,size:s,color:l,overrides:{Svg:f}},p),g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29289 7.29289C8.90237 7.68342 8.90237 8.31658 9.29289 8.70711L12.5858 12L9.29289 15.2929C8.90237 15.6834 8.90237 16.3166 9.29289 16.7071C9.68342 17.0976 10.3166 17.0976 10.7071 16.7071L14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12C15 11.7348 14.8946 11.4804 14.7071 11.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289Z"}))}const tr=g.forwardRef(En);var Er={exports:{}};function Rn(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var Ve=Rn(g),Tn=qr;function Ln(t,r){for(var n=Object.getOwnPropertyNames(r),a=0;a<n.length;a++){var e=n[a],o=Object.getOwnPropertyDescriptor(r,e);o&&o.configurable&&t[e]===void 0&&Object.defineProperty(t,e,o)}return t}function rt(){return(rt=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t}).apply(this,arguments)}function xn(t,r){t.prototype=Object.create(r.prototype),Ln(t.prototype.constructor=t,r)}function jn(t,r){if(t==null)return{};var n,a,e={},o=Object.keys(t);for(a=0;a<o.length;a++)n=o[a],0<=r.indexOf(n)||(e[n]=t[n]);return e}function ie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Bn=function(t,r,n,a,e,o,i,s){if(!t){var l;if(r===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,e,o,i,s],d=0;(l=new Error(r.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}},rr=Bn;function nr(t,r,n){if("selectionStart"in t&&"selectionEnd"in t)t.selectionStart=r,t.selectionEnd=n;else{var a=t.createTextRange();a.collapse(!0),a.moveStart("character",r),a.moveEnd("character",n-r),a.select()}}function Fn(t){var r=0,n=0;if("selectionStart"in t&&"selectionEnd"in t)r=t.selectionStart,n=t.selectionEnd;else{var a=document.selection.createRange();a.parentElement()===t&&(r=-a.moveStart("character",-t.value.length),n=-a.moveEnd("character",-t.value.length))}return{start:r,end:n,length:n-r}}var Nn={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},Wn="_";function ar(t,r,n){var a="",e="",o=null,i=[];if(r===void 0&&(r=Wn),n==null&&(n=Nn),!t||typeof t!="string")return{maskChar:r,formatChars:n,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var s=!1;return t.split("").forEach(function(l){s=!s&&l==="\\"||(s||!n[l]?(i.push(a.length),a.length===i.length-1&&(e+=l)):o=a.length+1,a+=l,!1)}),{maskChar:r,formatChars:n,prefix:e,mask:a,lastEditablePosition:o,permanents:i}}function Q(t,r){return t.permanents.indexOf(r)!==-1}function Le(t,r,n){var a=t.mask,e=t.formatChars;if(!n)return!1;if(Q(t,r))return a[r]===n;var o=e[a[r]];return new RegExp(o).test(n)}function or(t,r){return r.split("").every(function(n,a){return Q(t,a)||!Le(t,a,n)})}function ye(t,r){var n=t.maskChar,a=t.prefix;if(!n){for(;r.length>a.length&&Q(t,r.length-1);)r=r.slice(0,r.length-1);return r.length}for(var e=a.length,o=r.length;o>=a.length;o--){var i=r[o];if(!Q(t,o)&&Le(t,o,i)){e=o+1;break}}return e}function Rr(t,r){return ye(t,r)===t.mask.length}function ne(t,r){var n=t.maskChar,a=t.mask,e=t.prefix;if(!n){for((r=nt(t,"",r,0)).length<e.length&&(r=e);r.length<a.length&&Q(t,r.length);)r+=a[r.length];return r}if(r)return nt(t,ne(t,""),r,0);for(var o=0;o<a.length;o++)Q(t,o)?r+=a[o]:r+=n;return r}function Vn(t,r,n,a){var e=n+a,o=t.maskChar,i=t.mask,s=t.prefix,l=r.split("");if(o)return l.map(function(d,p){return p<n||e<=p?d:Q(t,p)?i[p]:o}).join("");for(var u=e;u<l.length;u++)Q(t,u)&&(l[u]="");return n=Math.max(s.length,n),l.splice(n,e-n),r=l.join(""),ne(t,r)}function nt(t,r,n,a){var e=t.mask,o=t.maskChar,i=t.prefix,s=n.split(""),l=Rr(t,r);return!o&&a>r.length&&(r+=e.slice(r.length,a)),s.every(function(u){for(;h=u,Q(t,f=a)&&h!==e[f];){if(a>=r.length&&(r+=e[a]),d=u,p=a,o&&Q(t,p)&&d===o)return!0;if(++a>=e.length)return!1}var d,p,f,h;return!Le(t,a,u)&&u!==o||(a<r.length?r=o||l||a<i.length?r.slice(0,a)+u+r.slice(a+1):(r=r.slice(0,a)+u+r.slice(a),ne(t,r)):o||(r+=u),++a<e.length)}),r}function Yn(t,r,n,a){var e=t.mask,o=t.maskChar,i=n.split(""),s=a;return i.every(function(l){for(;d=l,Q(t,u=a)&&d!==e[u];)if(++a>=e.length)return!1;var u,d;return(Le(t,a,l)||l===o)&&a++,a<e.length}),a-s}function zn(t,r){for(var n=r;0<=n;--n)if(!Q(t,n))return n;return null}function me(t,r){for(var n=t.mask,a=r;a<n.length;++a)if(!Q(t,a))return a;return null}function Ye(t){return t||t===0?t+"":""}function Un(t,r,n,a,e){var o=t.mask,i=t.prefix,s=t.lastEditablePosition,l=r,u="",d=0,p=0,f=Math.min(e.start,n.start);return n.end>e.start?p=(d=Yn(t,a,u=l.slice(e.start,n.end),f))?e.length:0:l.length<a.length&&(p=a.length-l.length),l=a,p&&(p===1&&!e.length&&(f=e.start===n.start?me(t,n.start):zn(t,n.start)),l=Vn(t,l,f,p)),l=nt(t,l,u,f),(f+=d)>=o.length?f=o.length:f<i.length&&!d?f=i.length:f>=i.length&&f<s&&d&&(f=me(t,f)),u||(u=null),{value:l=ne(t,l),enteredString:u,selection:{start:f,end:f}}}function Kn(){var t=new RegExp("windows","i"),r=new RegExp("phone","i"),n=navigator.userAgent;return t.test(n)&&r.test(n)}function X(t){return typeof t=="function"}function qn(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function Tr(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function ir(t){return(Tr()?qn():function(){return setTimeout(t,1e3/60)})(t)}function ze(t){(Tr()||clearTimeout)(t)}var Xn=function(t){function r(a){var e=t.call(this,a)||this;e.focused=!1,e.mounted=!1,e.previousSelection=null,e.selectionDeferId=null,e.saveSelectionLoopDeferId=null,e.saveSelectionLoop=function(){e.previousSelection=e.getSelection(),e.saveSelectionLoopDeferId=ir(e.saveSelectionLoop)},e.runSaveSelectionLoop=function(){e.saveSelectionLoopDeferId===null&&e.saveSelectionLoop()},e.stopSaveSelectionLoop=function(){e.saveSelectionLoopDeferId!==null&&(ze(e.saveSelectionLoopDeferId),e.saveSelectionLoopDeferId=null,e.previousSelection=null)},e.getInputDOMNode=function(){if(!e.mounted)return null;var c=Tn.findDOMNode(ie(ie(e))),y=typeof window<"u"&&c instanceof window.Element;if(c&&!y)return null;if(c.nodeName!=="INPUT"&&(c=c.querySelector("input")),!c)throw new Error("react-input-mask: inputComponent doesn't contain input node");return c},e.getInputValue=function(){var c=e.getInputDOMNode();return c?c.value:null},e.setInputValue=function(c){var y=e.getInputDOMNode();y&&(e.value=c,y.value=c)},e.setCursorToEnd=function(){var c=ye(e.maskOptions,e.value),y=me(e.maskOptions,c);y!==null&&e.setCursorPosition(y)},e.setSelection=function(c,y,v){v===void 0&&(v={});var m=e.getInputDOMNode(),b=e.isFocused();m&&b&&(v.deferred||nr(m,c,y),e.selectionDeferId!==null&&ze(e.selectionDeferId),e.selectionDeferId=ir(function(){e.selectionDeferId=null,nr(m,c,y)}),e.previousSelection={start:c,end:y,length:Math.abs(y-c)})},e.getSelection=function(){return Fn(e.getInputDOMNode())},e.getCursorPosition=function(){return e.getSelection().start},e.setCursorPosition=function(c){e.setSelection(c,c)},e.isFocused=function(){return e.focused},e.getBeforeMaskedValueChangeConfig=function(){var c=e.maskOptions,y=c.mask,v=c.maskChar,m=c.permanents,b=c.formatChars;return{mask:y,maskChar:v,permanents:m,alwaysShowMask:!!e.props.alwaysShowMask,formatChars:b}},e.isInputAutofilled=function(c,y,v,m){var b=e.getInputDOMNode();try{if(b.matches(":-webkit-autofill"))return!0}catch{}return!e.focused||m.end<v.length&&y.end===c.length},e.onChange=function(c){var y=ie(ie(e)).beforePasteState,v=ie(ie(e)).previousSelection,m=e.props.beforeMaskedValueChange,b=e.getInputValue(),O=e.value,D=e.getSelection();e.isInputAutofilled(b,D,O,v)&&(O=ne(e.maskOptions,""),v={start:0,end:0,length:0}),y&&(v=y.selection,O=y.value,D={start:v.start+b.length,end:v.start+b.length,length:0},b=O.slice(0,v.start)+b+O.slice(v.end),e.beforePasteState=null);var C=Un(e.maskOptions,b,D,O,v),k=C.enteredString,$=C.selection,M=C.value;if(X(m)){var w=m({value:M,selection:$},{value:O,selection:v},k,e.getBeforeMaskedValueChangeConfig());M=w.value,$=w.selection}e.setInputValue(M),X(e.props.onChange)&&e.props.onChange(c),e.isWindowsPhoneBrowser?e.setSelection($.start,$.end,{deferred:!0}):e.setSelection($.start,$.end)},e.onFocus=function(c){var y=e.props.beforeMaskedValueChange,v=e.maskOptions,m=v.mask,b=v.prefix;if(e.focused=!0,e.mounted=!0,m){if(e.value)ye(e.maskOptions,e.value)<e.maskOptions.mask.length&&e.setCursorToEnd();else{var O=ne(e.maskOptions,b),D=ne(e.maskOptions,O),C=ye(e.maskOptions,D),k=me(e.maskOptions,C),$={start:k,end:k};if(X(y)){var M=y({value:D,selection:$},{value:e.value,selection:null},null,e.getBeforeMaskedValueChangeConfig());D=M.value,$=M.selection}var w=D!==e.getInputValue();w&&e.setInputValue(D),w&&X(e.props.onChange)&&e.props.onChange(c),e.setSelection($.start,$.end)}e.runSaveSelectionLoop()}X(e.props.onFocus)&&e.props.onFocus(c)},e.onBlur=function(c){var y=e.props.beforeMaskedValueChange,v=e.maskOptions.mask;if(e.stopSaveSelectionLoop(),e.focused=!1,v&&!e.props.alwaysShowMask&&or(e.maskOptions,e.value)){var m="";X(y)&&(m=y({value:m,selection:null},{value:e.value,selection:e.previousSelection},null,e.getBeforeMaskedValueChangeConfig()).value);var b=m!==e.getInputValue();b&&e.setInputValue(m),b&&X(e.props.onChange)&&e.props.onChange(c)}X(e.props.onBlur)&&e.props.onBlur(c)},e.onMouseDown=function(c){if(!e.focused&&document.addEventListener){e.mouseDownX=c.clientX,e.mouseDownY=c.clientY,e.mouseDownTime=new Date().getTime();var y=function v(m){if(document.removeEventListener("mouseup",v),e.focused){var b=Math.abs(m.clientX-e.mouseDownX),O=Math.abs(m.clientY-e.mouseDownY),D=Math.max(b,O),C=new Date().getTime()-e.mouseDownTime;(D<=10&&C<=200||D<=5&&C<=300)&&e.setCursorToEnd()}};document.addEventListener("mouseup",y)}X(e.props.onMouseDown)&&e.props.onMouseDown(c)},e.onPaste=function(c){X(e.props.onPaste)&&e.props.onPaste(c),c.defaultPrevented||(e.beforePasteState={value:e.getInputValue(),selection:e.getSelection()},e.setInputValue(""))},e.handleRef=function(c){e.props.children==null&&X(e.props.inputRef)&&e.props.inputRef(c)};var o=a.mask,i=a.maskChar,s=a.formatChars,l=a.alwaysShowMask,u=a.beforeMaskedValueChange,d=a.defaultValue,p=a.value;e.maskOptions=ar(o,i,s),d==null&&(d=""),p==null&&(p=d);var f=Ye(p);if(e.maskOptions.mask&&(l||f)&&(f=ne(e.maskOptions,f),X(u))){var h=a.value;a.value==null&&(h=d),f=u({value:f,selection:null},{value:h=Ye(h),selection:null},null,e.getBeforeMaskedValueChangeConfig()).value}return e.value=f,e}xn(r,t);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=Kn(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},n.componentDidUpdate=function(){var a=this.previousSelection,e=this.props,o=e.beforeMaskedValueChange,i=e.alwaysShowMask,s=e.mask,l=e.maskChar,u=e.formatChars,d=this.maskOptions,p=i||this.isFocused(),f=this.props.value!=null,h=f?Ye(this.props.value):this.value,c=a?a.start:null;if(this.maskOptions=ar(s,l,u),this.maskOptions.mask){!d.mask&&this.isFocused()&&this.runSaveSelectionLoop();var y=this.maskOptions.mask&&this.maskOptions.mask!==d.mask;if(d.mask||f||(h=this.getInputValue()),(y||this.maskOptions.mask&&(h||p))&&(h=ne(this.maskOptions,h)),y){var v=ye(this.maskOptions,h);(c===null||v<c)&&(c=Rr(this.maskOptions,h)?v:me(this.maskOptions,v))}!this.maskOptions.mask||!or(this.maskOptions,h)||p||f&&this.props.value||(h="");var m={start:c,end:c};if(X(o)){var b=o({value:h,selection:m},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());h=b.value,m=b.selection}this.value=h;var O=this.getInputValue()!==this.value;O?(this.setInputValue(this.value),this.forceUpdate()):y&&this.forceUpdate();var D=!1;m.start!=null&&m.end!=null&&(D=!a||a.start!==m.start||a.end!==m.end),(D||O)&&this.setSelection(m.start,m.end)}else d.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},n.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&ze(this.selectionDeferId),this.stopSaveSelectionLoop()},n.render=function(){var a,e=this.props,o=(e.mask,e.alwaysShowMask,e.maskChar,e.formatChars,e.inputRef,e.beforeMaskedValueChange,e.children),i=jn(e,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(o){X(o)||rr(!1);var s=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],l=rt({},i);s.forEach(function(d){return delete l[d]}),a=o(l),s.filter(function(d){return a.props[d]!=null&&a.props[d]!==i[d]}).length&&rr(!1)}else a=Ve.createElement("input",rt({ref:this.handleRef},i));var u={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(i.disabled||i.readOnly||(u.onChange=this.onChange,u.onPaste=this.onPaste,u.onMouseDown=this.onMouseDown),i.value!=null&&(u.value=this.value)),a=Ve.cloneElement(a,u)},r}(Ve.Component),Qn=Xn;Er.exports=Qn;var Zn=Er.exports;const Gn=Xr(Zn);var Jn=["startEnhancer","endEnhancer","error","positive","onChange","onFocus","onBlur","value","disabled","readOnly"],ea=["Input"],ta=["mask","maskChar","overrides"];function sr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function Ue(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?sr(Object(n),!0).forEach(function(a){ra(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ra(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function ke(t){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ke(t)}function Se(){return Se=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)}function at(t,r){if(t==null)return{};var n=na(t,r),a,e;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)a=o[e],!(r.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function na(t,r){if(t==null)return{};var n={},a=Object.keys(t),e,o;for(o=0;o<a.length;o++)e=a[o],!(r.indexOf(e)>=0)&&(n[e]=t[e]);return n}var Lr=g.forwardRef(function(t,r){t.startEnhancer,t.endEnhancer,t.error,t.positive;var n=t.onChange,a=t.onFocus,e=t.onBlur,o=t.value,i=t.disabled,s=t.readOnly,l=at(t,Jn);return g.createElement(Gn,Se({onChange:n,onFocus:a,onBlur:e,value:o,disabled:i,readOnly:s},l),function(u){return g.createElement(yn,Se({ref:r,onChange:n,onFocus:a,onBlur:e,value:o,disabled:i,readOnly:s},u))})});Lr.displayName="MaskOverride";function xr(t){var r=t.mask,n=t.maskChar,a=t.overrides;a=a===void 0?{}:a;var e=a.Input,o=e===void 0?{}:e,i=at(a,ea),s=at(t,ta),l=Lr,u={},d={};typeof o=="function"?l=o:ke(o)==="object"&&(l=o.component||l,u=o.props||{},d=o.style||{}),ke(u)==="object"&&(u=Ue(Ue({},u),{},{mask:u.mask||r,maskChar:u.maskChar||n}));var p=Ue({Input:{component:l,props:u,style:d}},i);return g.createElement(hn,Se({},s,{overrides:p}))}xr.defaultProps={maskChar:" "};var wt=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),jr=[0,1,2,3,4,5,6],aa=[0,1,2,3,4,5,6,7,8,9,10,11],F={high:"high",default:"default"},ae={startDate:"startDate",endDate:"endDate"},oa={default:"default",locked:"locked"};function lr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function le(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?lr(Object(n),!0).forEach(function(a){ia(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ia(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var kt=A("label",function(t){var r=t.$disabled,n=t.$theme,a=n.colors,e=n.typography;return le(le({},e.font250),{},{width:"100%",color:r?a.contentSecondary:a.contentPrimary,display:"block",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})});kt.displayName="Label";kt.displayName="Label";var Ct=A("span",function(t){var r=t.$theme.sizing;return{display:"flex",width:"100%",marginTop:r.scale300,marginRight:0,marginBottom:r.scale300,marginLeft:0}});Ct.displayName="LabelContainer";Ct.displayName="LabelContainer";var Mt=A("span",function(t){var r=t.$disabled,n=t.$counterError,a=t.$theme,e=a.colors,o=a.typography;return le(le({},o.font100),{},{flex:0,width:"100%",color:n?e.negative400:r?e.contentSecondary:e.contentPrimary})});Mt.displayName="LabelEndEnhancer";Mt.displayName="LabelEndEnhancer";var Pt=A("div",function(t){var r=t.$error,n=t.$positive,a=t.$theme,e=a.colors,o=a.sizing,i=a.typography,s=e.contentSecondary;return r?s=e.negative400:n&&(s=e.positive400),le(le({},i.font100),{},{color:s,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginTop:o.scale300,marginRight:0,marginBottom:o.scale300,marginLeft:0})});Pt.displayName="Caption";Pt.displayName="Caption";var It=A("div",function(t){var r=t.$theme.sizing;return{width:"100%",marginBottom:r.scale600}});It.displayName="ControlContainer";It.displayName="ControlContainer";function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},oe.apply(this,arguments)}function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ce(t)}function sa(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function la(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function ua(t,r,n){return r&&la(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ca(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&ot(t,r)}function ot(t,r){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,e){return a.__proto__=e,a},ot(t,r)}function pa(t){var r=ha();return function(){var a=Me(t),e;if(r){var o=Me(this).constructor;e=Reflect.construct(a,arguments,o)}else e=a.apply(this,arguments);return da(this,e)}}function da(t,r){if(r&&(Ce(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fa(t)}function fa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ha(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Me(t){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Me(t)}function ya(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function va(t,r,n,a){return r&&typeof r!="boolean"?typeof r=="function"?r(a):r:n&&typeof n!="boolean"?typeof n=="function"?n(a):n:t?typeof t=="function"?t(a):t:null}var it=function(t){ca(n,t);var r=pa(n);function n(){return sa(this,n),r.apply(this,arguments)}return ua(n,[{key:"render",value:function(){var e=this.props,o=e.overrides,i=o.Label,s=o.LabelEndEnhancer,l=o.LabelContainer,u=o.Caption,d=o.ControlContainer,p=e.label,f=e.caption,h=e.disabled,c=e.error,y=e.positive,v=e.htmlFor,m=e.children,b=e.counter,O=g.Children.only(m).props,D={$disabled:!!h,$error:!!c,$positive:!!y},C=de(i)||kt,k=de(s)||Mt,$=de(l)||Ct,M=de(u)||Pt,w=de(d)||It,P=va(f,c,y,D),S=this.props.labelEndEnhancer;if(b){var _=null,E=null,R=null;Ce(b)==="object"&&(E=b.length,_=b.maxLength,R=b.error),_=_||O.maxLength,E==null&&typeof O.value=="string"&&(E=O.value.length),E==null&&(E=0),D.$length=E,_==null?S||(S="".concat(E)):(D.$maxLength=E,S||(S="".concat(E,"/").concat(_)),E>_&&R==null&&(R=!0)),R&&(D.$error=!0,D.$counterError=!0)}return g.createElement(g.Fragment,null,p&&g.createElement($,oe({},D,fe(l)),g.createElement(C,oe({"data-baseweb":"form-control-label",htmlFor:v||O.id},D,fe(i)),typeof p=="function"?p(D):p),!!S&&g.createElement(k,oe({},D,fe(s)),typeof S=="function"?S(D):S)),g.createElement(Qr,null,function(re){return g.createElement(w,oe({"data-baseweb":"form-control-container"},D,fe(d)),g.Children.map(m,function(K,W){if(K){var j=K.key||String(W);return g.cloneElement(K,{key:j,"aria-errormessage":c?re:null,"aria-describedby":f||y?re:null,disabled:O.disabled||h,error:typeof O.error<"u"?O.error:D.$error,positive:typeof O.positive<"u"?O.positive:D.$positive})}}),(!!f||!!c||y)&&g.createElement(M,oe({"data-baseweb":"form-control-caption",id:re},D,fe(u)),P))}))}}]),n}(g.Component);ya(it,"defaultProps",{overrides:{},label:null,caption:null,disabled:!1,counter:!1});function ur(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function cr(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?ur(Object(n),!0).forEach(function(a){ga(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function ga(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ma=function(r){return aa.map(function(n){return{id:n.toString(),label:r(n)}})},ba=function(r,n){return r.map(function(a){return n.includes(Number(a.id))?a:cr(cr({},a),{},{disabled:!0})})},Oa=function(r){var n=r.filterMonthsList,a=r.formatMonthLabel,e=ma(a);return n&&(e=ba(e,n)),e};function Da(t){var r=t.$range,n=r===void 0?!1:r,a=t.$disabled,e=a===void 0?!1:a,o=t.$isHighlighted,i=o===void 0?!1:o,s=t.$isHovered,l=s===void 0?!1:s,u=t.$selected,d=u===void 0?!1:u,p=t.$hasRangeSelected,f=p===void 0?!1:p,h=t.$startDate,c=h===void 0?!1:h,y=t.$endDate,v=y===void 0?!1:y,m=t.$pseudoSelected,b=m===void 0?!1:m,O=t.$hasRangeHighlighted,D=O===void 0?!1:O,C=t.$pseudoHighlighted,k=C===void 0?!1:C,$=t.$hasRangeOnRight,M=$===void 0?!1:$,w=t.$startOfMonth,P=w===void 0?!1:w,S=t.$endOfMonth,_=S===void 0?!1:S,E=t.$outsideMonth,R=E===void 0?!1:E;return"".concat(+n).concat(+e).concat(+(i||l)).concat(+d).concat(+f).concat(+c).concat(+v).concat(+b).concat(+D).concat(+k).concat(+(D&&!k&&M)).concat(+(D&&!k&&!M)).concat(+P).concat(+_).concat(+R)}function Sa(t,r){return ka(t)||wa(t,r)||_a(t,r)||$a()}function $a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _a(t,r){if(t){if(typeof t=="string")return pr(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pr(t,r)}}function pr(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=t[n];return a}function wa(t,r){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],e=!0,o=!1,i,s;try{for(n=n.call(t);!(e=(i=n.next()).done)&&(a.push(i.value),!(r&&a.length===r));e=!0);}catch(l){o=!0,s=l}finally{try{!e&&n.return!=null&&n.return()}finally{if(o)throw s}}return a}}function ka(t){if(Array.isArray(t))return t}function dr(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function x(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?dr(Object(n),!0).forEach(function(a){be(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}function be(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Ht=A("div",function(t){var r=t.$separateRangeInputs;return x({width:"100%"},r?{display:"flex",justifyContent:"center"}:{})});Ht.displayName="StyledInputWrapper";Ht.displayName="StyledInputWrapper";var At=A("div",function(t){var r=t.$theme;return x(x({},r.typography.LabelMedium),{},{marginBottom:r.sizing.scale300})});At.displayName="StyledInputLabel";At.displayName="StyledInputLabel";var Et=A("div",function(t){var r=t.$theme;return{width:"100%",marginRight:r.sizing.scale300}});Et.displayName="StyledStartDate";Et.displayName="StyledStartDate";var Rt=A("div",function(t){return t.$theme,{width:"100%"}});Rt.displayName="StyledEndDate";Rt.displayName="StyledEndDate";var Tt=A("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=r.borders;return x(x({},n.font200),{},{color:a.calendarForeground,backgroundColor:a.calendarBackground,textAlign:"center",borderTopLeftRadius:e.surfaceBorderRadius,borderTopRightRadius:e.surfaceBorderRadius,borderBottomRightRadius:e.surfaceBorderRadius,borderBottomLeftRadius:e.surfaceBorderRadius,display:"inline-block"})});Tt.displayName="StyledRoot";Tt.displayName="StyledRoot";var Lt=A("div",function(t){var r=t.$orientation;return{display:"flex",flexDirection:r===wt.vertical?"column":"row"}});Lt.displayName="StyledMonthContainer";Lt.displayName="StyledMonthContainer";var xt=A("div",function(t){var r=t.$theme.sizing,n=t.$density;return{paddingTop:r.scale300,paddingBottom:n===F.high?r.scale400:r.scale300,paddingLeft:r.scale500,paddingRight:r.scale500}});xt.displayName="StyledCalendarContainer";xt.displayName="StyledCalendarContainer";var Pe=A("div",function(t){var r=t.$theme,n=r.direction==="rtl"?"right":"left";return{marginBottom:r.sizing.scale600,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,textAlign:n}});Pe.displayName="StyledSelectorContainer";Pe.displayName="StyledSelectorContainer";var jt=A("div",function(t){var r=t.$theme,n=r.typography,a=r.borders,e=r.colors,o=r.sizing,i=t.$density;return x(x({},i===F.high?n.LabelMedium:n.LabelLarge),{},{color:e.calendarHeaderForeground,display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:o.scale600,paddingBottom:o.scale300,paddingLeft:o.scale600,paddingRight:o.scale600,backgroundColor:e.calendarHeaderBackground,borderTopLeftRadius:a.surfaceBorderRadius,borderTopRightRadius:a.surfaceBorderRadius,borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:i===F.high?"calc(".concat(o.scale800," + ").concat(o.scale0,")"):o.scale950})});jt.displayName="StyledCalendarHeader";jt.displayName="StyledCalendarHeader";var Bt=A("div",function(t){return{color:t.$theme.colors.calendarHeaderForeground,backgroundColor:t.$theme.colors.calendarHeaderBackground,whiteSpace:"nowrap"}});Bt.displayName="StyledMonthHeader";Bt.displayName="StyledMonthHeader";var Ft=A("button",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=t.$isFocusVisible,o=t.$density;return x(x({},o===F.high?n.LabelMedium:n.LabelLarge),{},{alignItems:"center",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,color:a.calendarHeaderForeground,cursor:"pointer",display:"flex",outline:"none",":focus":{boxShadow:e?"0 0 0 3px ".concat(a.accent):"none"}})});Ft.displayName="StyledMonthYearSelectButton";Ft.displayName="StyledMonthYearSelectButton";var Nt=A("span",function(t){var r=t.$theme.direction==="rtl"?"marginRight":"marginLeft";return be({alignItems:"center",display:"flex"},r,t.$theme.sizing.scale500)});Nt.displayName="StyledMonthYearSelectIconContainer";Nt.displayName="StyledMonthYearSelectIconContainer";function Br(t){var r=t.$theme,n=t.$disabled,a=t.$isFocusVisible;return{boxSizing:"border-box",display:"flex",color:n?r.colors.calendarHeaderForegroundDisabled:r.colors.calendarHeaderForeground,cursor:n?"default":"pointer",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0",marginBottom:0,marginTop:0,outline:"none",":focus":n?{}:{boxShadow:a?"0 0 0 3px ".concat(r.colors.accent):"none"}}}var Wt=A("button",Br);Wt.displayName="StyledPrevButton";Wt.displayName="StyledPrevButton";var Vt=A("button",Br);Vt.displayName="StyledNextButton";Vt.displayName="StyledNextButton";var Yt=A("div",function(t){return{display:"inline-block"}});Yt.displayName="StyledMonth";Yt.displayName="StyledMonth";var zt=A("div",function(t){var r=t.$theme.sizing;return{whiteSpace:"nowrap",display:"flex",marginBottom:r.scale0}});zt.displayName="StyledWeek";zt.displayName="StyledWeek";function H(t,r){var n,a=t.substr(0,12)+"1"+t.substr(13),e=t.substr(0,13)+"1"+t.substr(14);return n={},be(n,t,r),be(n,a,r),be(n,e,r),n}function Ke(t,r){var n=r.colors,a={":before":{content:null},":after":{content:null}},e=a,o={color:n.calendarForegroundDisabled,":before":{content:null},":after":{content:null}},i={color:n.calendarForegroundDisabled,":before":{borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",backgroundColor:"transparent"},":after":{borderTopLeftRadius:"0%",borderTopRightRadius:"0%",borderBottomLeftRadius:"0%",borderBottomRightRadius:"0%",borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}},s={":before":{content:null}},l=1;t&&t[l]==="1"&&(e=o);var u=Object.assign({},H("001000000000000",{color:n.calendarDayForegroundPseudoSelected}),H("000100000000000",{color:n.calendarDayForegroundSelected}),H("001100000000000",{color:n.calendarDayForegroundSelectedHighlighted}),{"010000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},{"011000000000000":{color:n.calendarForegroundDisabled,":after":{content:null}}},H("000000000000001",i),H("101000000000000",s),H("101010000000000",s),H("100100000000000",{color:n.calendarDayForegroundSelected}),H("101100000000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),H("100111100000000",{color:n.calendarDayForegroundSelected,":before":{content:null}}),H("101111100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),H("100111000000000",{color:n.calendarDayForegroundSelected}),H("100110100000000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),H("100100001010000",{color:n.calendarDayForegroundSelected}),H("100100001001000",{color:n.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),H("101000001010000",{":before":{left:null,right:"50%"}}),{"101000001001000":{}},{"101000001001100":{}},{"101000001001010":{}},H("100010010000000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),{"101000001100000":{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}},H("100000001100000",{color:n.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),H("101111000000000",{color:n.calendarDayForegroundSelectedHighlighted}),H("101110100000000",{color:n.calendarDayForegroundSelectedHighlighted,":before":{left:null,right:"50%"}}),H("101010010000000",{color:n.calendarDayForegroundPseudoSelectedHighlighted,":before":{left:"0",width:"100%"}}),H("100000000000001",i),H("100000001010001",i),H("100000001001001",i),H("100010000000001",i));return u[t]||e}var Ut=A("div",function(t){var r=t.$disabled,n=t.$isFocusVisible,a=t.$isHighlighted,e=t.$peekNextMonth,o=t.$pseudoSelected,i=t.$range,s=t.$selected,l=t.$outsideMonth,u=t.$outsideMonthWithinRange,d=t.$hasDateLabel,p=t.$density,f=t.$hasLockedBehavior,h=t.$selectedInput,c=t.$value,y=t.$theme,v=y.colors,m=y.typography,b=y.sizing,O=Da(t),D;d?p===F.high?D="60px":D="70px":p===F.high?D="40px":D="48px";var C=Array.isArray(c)?c:[c,null],k=Sa(C,2),$=k[0],M=k[1],w=h===ae.startDate?M!==null&&typeof M<"u":$!==null&&typeof $<"u",P=i&&!(f&&!w);return x(x(x({},p===F.high?m.ParagraphSmall:m.ParagraphMedium),{},{boxSizing:"border-box",position:"relative",cursor:r||!e&&l?"default":"pointer",color:v.calendarForeground,display:"inline-block",width:p===F.high?"42px":"50px",height:D,lineHeight:p===F.high?b.scale700:b.scale900,textAlign:"center",paddingTop:b.scale300,paddingBottom:b.scale300,paddingLeft:b.scale300,paddingRight:b.scale300,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,outline:"none",backgroundColor:"transparent",transform:"scale(1)"},Ke(O,t.$theme)),{},{":after":x(x({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",boxShadow:n&&(!l||e)?"0 0 0 3px ".concat(v.accent):"none",backgroundColor:s?v.calendarDayBackgroundSelectedHighlighted:o&&a?v.calendarDayBackgroundPseudoSelectedHighlighted:v.calendarBackground,height:d?"100%":p===F.high?"42px":"50px",width:"100%",position:"absolute",top:d?0:"-1px",left:0,paddingTop:b.scale200,paddingBottom:b.scale200,borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderTopColor:v.borderSelected,borderBottomColor:v.borderSelected,borderRightColor:v.borderSelected,borderLeftColor:v.borderSelected,borderTopLeftRadius:d?b.scale800:"100%",borderTopRightRadius:d?b.scale800:"100%",borderBottomLeftRadius:d?b.scale800:"100%",borderBottomRightRadius:d?b.scale800:"100%"},Ke(O,t.$theme)[":after"]||{}),u?{content:null}:{})},P?{":before":x(x({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",backgroundColor:v.mono300,position:"absolute",height:"100%",width:"50%",top:0,left:"50%",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"0",borderRightWidth:"0",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},Ke(O,t.$theme)[":before"]||{}),u?{backgroundColor:v.mono300,left:"0",width:"100%",content:'""'}:{})}:{})});Ut.displayName="StyledDay";Ut.displayName="StyledDay";var Kt=A("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=t.$selected;return x(x({},n.ParagraphXSmall),{},{color:e?a.contentInverseTertiary:a.contentTertiary})});Kt.displayName="StyledDayLabel";Kt.displayName="StyledDayLabel";var qt=A("div",function(t){var r=t.$theme,n=r.typography,a=r.colors,e=r.sizing,o=t.$density;return x(x({},n.LabelMedium),{},{color:a.contentTertiary,boxSizing:"border-box",position:"relative",cursor:"default",display:"inline-block",width:o===F.high?"42px":"50px",height:o===F.high?"40px":"48px",textAlign:"center",lineHeight:e.scale900,paddingTop:e.scale300,paddingBottom:e.scale300,paddingLeft:e.scale200,paddingRight:e.scale200,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,backgroundColor:"transparent"})});qt.displayName="StyledWeekdayHeader";qt.displayName="StyledWeekdayHeader";function st(t){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},st(t)}function q(){return q=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},q.apply(this,arguments)}function G(t,r){return Ia(t)||Pa(t,r)||Ma(t,r)||Ca()}function Ca(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1,4 +1,4 @@
1
- var xL=Object.defineProperty;var wL=(t,e,r)=>e in t?xL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var U=(t,e,r)=>wL(t,typeof e!="symbol"?e+"":e,r);import{g as oA,r as it,ap as Wt,p as $e,d as VM,aV as yu,_ as jM,j as ms,z as Ll,aW as Gy,F as aE,aX as Wy,aY as lE,aZ as TL,aF as EL,a_ as SL,a$ as CL,n as HM,G as GM,b0 as T1,b1 as cE,aC as PL,y as IL,b2 as ML,b3 as uE}from"./index.9wBA4A4f.js";import{_ as Gn,a as RL,C as BL}from"./toConsumableArray.D4FxxWIg.js";import{b as Fu,a as Lu,_ as l2,c as Gd,d as c2}from"./possibleConstructorReturn.DGVrr2j8.js";import{a as OL,T as DL}from"./Toolbar.D-hUr0RX.js";import{u as WM,E as XM,w as FL}from"./withFullScreenWrapper.DwHjQb3H.js";import{u as LL}from"./useBasicWidgetState.C207Y3_O.js";import{u as kL,s as NL}from"./threshold.B8r8f5kt.js";import{a as UL}from"./axios.upsvKRUO.js";import"./FormClearHelper.BBpErIGP.js";import"./value.iufjd77T.js";function zL(t,e){for(var r=0;r<e.length;r++){const i=e[r];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in t)){const o=Object.getOwnPropertyDescriptor(i,n);o&&Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}async function aA(t,e,r,i){return i._parse(t,e,r,i)}function Ni(t,e){if(!t)throw new Error(e||"loader assertion failed.")}const v_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),hE=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);hE&&parseFloat(hE[1]);const tg=globalThis,Wf=globalThis.process||{},VL=globalThis.navigator||{};function qM(t){var i,n;if(typeof window<"u"&&((i=window.process)==null?void 0:i.type)==="renderer"||typeof process<"u"&&((n=process.versions)!=null&&n.electron))return!0;const r=typeof navigator<"u"&&navigator.userAgent;return!!(r&&r.indexOf("Electron")>=0)}function ku(){return!(typeof process=="object"&&String(process)==="[object process]"&&!(process!=null&&process.browser))||qM()}function jL(t){return ku()?qM()?"Electron":(VL.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const $M="4.0.7";function HL(t){try{const e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}class WL{constructor(e,r,i="sessionStorage"){this.storage=HL(i),this.id=e,this.config=r,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const r=JSON.stringify(this.config);this.storage.setItem(this.id,r)}}_loadConfiguration(){let e={};if(this.storage){const r=this.storage.getItem(this.id);e=r?JSON.parse(r):{}}return Object.assign(this.config,e),this}}function XL(t){let e;return t<10?e=`${t.toFixed(2)}ms`:t<100?e=`${t.toFixed(1)}ms`:t<1e3?e=`${t.toFixed(0)}ms`:e=`${(t/1e3).toFixed(2)}s`,e}function qL(t,e=8){const r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var mm;(function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(mm||(mm={}));const $L=10;function fE(t){return typeof t!="string"?t:(t=t.toUpperCase(),mm[t]||mm.WHITE)}function ZL(t,e,r){return!ku&&typeof t=="string"&&(e&&(t=`\x1B[${fE(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${fE(r)+$L}m${t}\x1B[49m`)),t}function KL(t,e=["constructor"]){const r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(const o of i){const s=n[o];typeof s=="function"&&(e.find(f=>o===f)||(n[o]=s.bind(t)))}}function u2(t,e){if(!t)throw new Error("Assertion failed")}function Xf(){var e,r,i;let t;if(ku()&&tg.performance)t=(r=(e=tg==null?void 0:tg.performance)==null?void 0:e.now)==null?void 0:r.call(e);else if("hrtime"in Wf){const n=(i=Wf==null?void 0:Wf.hrtime)==null?void 0:i.call(Wf);t=n[0]*1e3+n[1]/1e6}else t=Date.now();return t}const qf={debug:ku()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},YL={enabled:!0,level:0};function $f(){}const dE={},AE={once:!0};class lA{constructor({id:e}={id:""}){this.VERSION=$M,this._startTs=Xf(),this._deltaTs=Xf(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new WL(`__probe-${this.id}__`,YL),this.timeStamp(`${this.id} started`),KL(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((Xf()-this._startTs).toPrecision(10))}getDelta(){return Number((Xf()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,r){this._storage.setConfiguration({[e]:r})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,r){if(!e)throw new Error(r||"Assertion failed")}warn(e){return this._getLogFunction(0,e,qf.warn,arguments,AE)}error(e){return this._getLogFunction(0,e,qf.error,arguments)}deprecated(e,r){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${r}\` instead`)}removed(e,r){return this.error(`\`${e}\` has been removed. Use \`${r}\` instead`)}probe(e,r){return this._getLogFunction(e,r,qf.log,arguments,{time:!0,once:!0})}log(e,r){return this._getLogFunction(e,r,qf.debug,arguments)}info(e,r){return this._getLogFunction(e,r,console.info,arguments)}once(e,r){return this._getLogFunction(e,r,qf.debug||qf.info,arguments,AE)}table(e,r,i){return r?this._getLogFunction(e,r,console.table||$f,i&&[i],{tag:QL(r)}):$f}time(e,r){return this._getLogFunction(e,r,console.time?console.time:console.info)}timeEnd(e,r){return this._getLogFunction(e,r,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,r){return this._getLogFunction(e,r,console.timeStamp||$f)}group(e,r,i={collapsed:!1}){const n=pE({logLevel:e,message:r,opts:i}),{collapsed:o}=i;return n.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||$f)}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=ZM(e)}_getLogFunction(e,r,i,n,o){if(this._shouldLog(e)){o=pE({logLevel:e,message:r,args:n,opts:o}),i=i||o.method,u2(i),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=Xf();const s=o.tag||o.message;if(o.once&&s)if(!dE[s])dE[s]=Xf();else return $f;return r=JL(this.id,o.message,o),i.bind(console,r,...o.args)}return $f}}lA.VERSION=$M;function ZM(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return u2(Number.isFinite(e)&&e>=0),e}function pE(t){const{logLevel:e,message:r}=t;t.logLevel=ZM(e);const i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break}typeof t.message=="function"&&(t.message=t.message());const n=typeof t.message;return u2(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}function JL(t,e,r){if(typeof e=="string"){const i=r.time?qL(XL(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=ZL(e,r.color,r.background)}return e}function QL(t){for(const e in t)for(const r in t[e])return r||"untitled";return"empty"}globalThis.probe={};const KM=new lA({id:"@probe.gl/log"});function YM(t,e){return JM(t||{},e)}function JM(t,e,r=0){if(r>3)return e;const i={...t};for(const[n,o]of Object.entries(e))o&&typeof o=="object"&&!Array.isArray(o)?i[n]=JM(i[n]||{},e[n],r+1):i[n]=e[n];return i}function ek(t){var e;globalThis.loaders||(globalThis.loaders={}),(e=globalThis.loaders).modules||(e.modules={}),Object.assign(globalThis.loaders.modules,t)}function tk(t){var r,i;return((i=(r=globalThis.loaders)==null?void 0:r.modules)==null?void 0:i[t])||null}const rk="latest";function ik(){var t;return(t=globalThis._loadersgl_)!=null&&t.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.2.4"),globalThis._loadersgl_.version}const QM=ik();function Pc(t,e){if(!t)throw new Error(e||"loaders.gl assertion failed.")}const Sa=typeof process!="object"||String(process)!=="[object process]"||process.browser,h2=typeof importScripts=="function",nk=typeof window<"u"&&typeof window.orientation<"u",gE=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);gE&&parseFloat(gE[1]);class sk{constructor(e,r){U(this,"name");U(this,"workerThread");U(this,"isRunning",!0);U(this,"result");U(this,"_resolve",()=>{});U(this,"_reject",()=>{});this.name=e,this.workerThread=r,this.result=new Promise((i,n)=>{this._resolve=i,this._reject=n})}postMessage(e,r){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:r})}done(e){Pc(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){Pc(this.isRunning),this.isRunning=!1,this._reject(e)}}class Xy{terminate(){}}const qy=new Map;function ok(t){Pc(t.source&&!t.url||!t.source&&t.url);let e=qy.get(t.source||t.url);return e||(t.url&&(e=ak(t.url),qy.set(t.url,e)),t.source&&(e=eR(t.source),qy.set(t.source,e))),Pc(e),e}function ak(t){if(!t.startsWith("http"))return t;const e=lk(t);return eR(e)}function eR(t){const e=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(e)}function lk(t){return`try {
1
+ var xL=Object.defineProperty;var wL=(t,e,r)=>e in t?xL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var U=(t,e,r)=>wL(t,typeof e!="symbol"?e+"":e,r);import{g as oA,r as it,ap as Wt,p as $e,d as VM,aU as yu,_ as jM,j as ms,z as Ll,aV as Gy,F as aE,aW as Wy,aX as lE,aY as TL,aF as EL,aZ as SL,a_ as CL,n as HM,G as GM,a$ as T1,b0 as cE,aC as PL,y as IL,b1 as ML,b2 as uE}from"./index.Blgy4CCd.js";import{_ as Gn,a as RL,C as BL}from"./toConsumableArray.BtjgDmTZ.js";import{b as Fu,a as Lu,_ as l2,c as Gd,d as c2}from"./possibleConstructorReturn.Bfw_ecB7.js";import{a as OL,T as DL}from"./Toolbar.CRowl_WL.js";import{u as WM,E as XM,w as FL}from"./withFullScreenWrapper.XgZUnj3Y.js";import{u as LL}from"./useBasicWidgetState.GQaAM6uH.js";import{u as kL,s as NL}from"./threshold.B8r8f5kt.js";import{a as UL}from"./axios.upsvKRUO.js";import"./FormClearHelper.D3S2tctS.js";import"./value.iufjd77T.js";function zL(t,e){for(var r=0;r<e.length;r++){const i=e[r];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in t)){const o=Object.getOwnPropertyDescriptor(i,n);o&&Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}async function aA(t,e,r,i){return i._parse(t,e,r,i)}function Ni(t,e){if(!t)throw new Error(e||"loader assertion failed.")}const v_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),hE=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);hE&&parseFloat(hE[1]);const tg=globalThis,Wf=globalThis.process||{},VL=globalThis.navigator||{};function qM(t){var i,n;if(typeof window<"u"&&((i=window.process)==null?void 0:i.type)==="renderer"||typeof process<"u"&&((n=process.versions)!=null&&n.electron))return!0;const r=typeof navigator<"u"&&navigator.userAgent;return!!(r&&r.indexOf("Electron")>=0)}function ku(){return!(typeof process=="object"&&String(process)==="[object process]"&&!(process!=null&&process.browser))||qM()}function jL(t){return ku()?qM()?"Electron":(VL.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const $M="4.0.7";function HL(t){try{const e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}class WL{constructor(e,r,i="sessionStorage"){this.storage=HL(i),this.id=e,this.config=r,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const r=JSON.stringify(this.config);this.storage.setItem(this.id,r)}}_loadConfiguration(){let e={};if(this.storage){const r=this.storage.getItem(this.id);e=r?JSON.parse(r):{}}return Object.assign(this.config,e),this}}function XL(t){let e;return t<10?e=`${t.toFixed(2)}ms`:t<100?e=`${t.toFixed(1)}ms`:t<1e3?e=`${t.toFixed(0)}ms`:e=`${(t/1e3).toFixed(2)}s`,e}function qL(t,e=8){const r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var mm;(function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(mm||(mm={}));const $L=10;function fE(t){return typeof t!="string"?t:(t=t.toUpperCase(),mm[t]||mm.WHITE)}function ZL(t,e,r){return!ku&&typeof t=="string"&&(e&&(t=`\x1B[${fE(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${fE(r)+$L}m${t}\x1B[49m`)),t}function KL(t,e=["constructor"]){const r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(const o of i){const s=n[o];typeof s=="function"&&(e.find(f=>o===f)||(n[o]=s.bind(t)))}}function u2(t,e){if(!t)throw new Error("Assertion failed")}function Xf(){var e,r,i;let t;if(ku()&&tg.performance)t=(r=(e=tg==null?void 0:tg.performance)==null?void 0:e.now)==null?void 0:r.call(e);else if("hrtime"in Wf){const n=(i=Wf==null?void 0:Wf.hrtime)==null?void 0:i.call(Wf);t=n[0]*1e3+n[1]/1e6}else t=Date.now();return t}const qf={debug:ku()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},YL={enabled:!0,level:0};function $f(){}const dE={},AE={once:!0};class lA{constructor({id:e}={id:""}){this.VERSION=$M,this._startTs=Xf(),this._deltaTs=Xf(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new WL(`__probe-${this.id}__`,YL),this.timeStamp(`${this.id} started`),KL(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((Xf()-this._startTs).toPrecision(10))}getDelta(){return Number((Xf()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,r){this._storage.setConfiguration({[e]:r})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,r){if(!e)throw new Error(r||"Assertion failed")}warn(e){return this._getLogFunction(0,e,qf.warn,arguments,AE)}error(e){return this._getLogFunction(0,e,qf.error,arguments)}deprecated(e,r){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${r}\` instead`)}removed(e,r){return this.error(`\`${e}\` has been removed. Use \`${r}\` instead`)}probe(e,r){return this._getLogFunction(e,r,qf.log,arguments,{time:!0,once:!0})}log(e,r){return this._getLogFunction(e,r,qf.debug,arguments)}info(e,r){return this._getLogFunction(e,r,console.info,arguments)}once(e,r){return this._getLogFunction(e,r,qf.debug||qf.info,arguments,AE)}table(e,r,i){return r?this._getLogFunction(e,r,console.table||$f,i&&[i],{tag:QL(r)}):$f}time(e,r){return this._getLogFunction(e,r,console.time?console.time:console.info)}timeEnd(e,r){return this._getLogFunction(e,r,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,r){return this._getLogFunction(e,r,console.timeStamp||$f)}group(e,r,i={collapsed:!1}){const n=pE({logLevel:e,message:r,opts:i}),{collapsed:o}=i;return n.method=(o?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||$f)}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=ZM(e)}_getLogFunction(e,r,i,n,o){if(this._shouldLog(e)){o=pE({logLevel:e,message:r,args:n,opts:o}),i=i||o.method,u2(i),o.total=this.getTotal(),o.delta=this.getDelta(),this._deltaTs=Xf();const s=o.tag||o.message;if(o.once&&s)if(!dE[s])dE[s]=Xf();else return $f;return r=JL(this.id,o.message,o),i.bind(console,r,...o.args)}return $f}}lA.VERSION=$M;function ZM(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return u2(Number.isFinite(e)&&e>=0),e}function pE(t){const{logLevel:e,message:r}=t;t.logLevel=ZM(e);const i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break}typeof t.message=="function"&&(t.message=t.message());const n=typeof t.message;return u2(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}function JL(t,e,r){if(typeof e=="string"){const i=r.time?qL(XL(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=ZL(e,r.color,r.background)}return e}function QL(t){for(const e in t)for(const r in t[e])return r||"untitled";return"empty"}globalThis.probe={};const KM=new lA({id:"@probe.gl/log"});function YM(t,e){return JM(t||{},e)}function JM(t,e,r=0){if(r>3)return e;const i={...t};for(const[n,o]of Object.entries(e))o&&typeof o=="object"&&!Array.isArray(o)?i[n]=JM(i[n]||{},e[n],r+1):i[n]=e[n];return i}function ek(t){var e;globalThis.loaders||(globalThis.loaders={}),(e=globalThis.loaders).modules||(e.modules={}),Object.assign(globalThis.loaders.modules,t)}function tk(t){var r,i;return((i=(r=globalThis.loaders)==null?void 0:r.modules)==null?void 0:i[t])||null}const rk="latest";function ik(){var t;return(t=globalThis._loadersgl_)!=null&&t.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.2.4"),globalThis._loadersgl_.version}const QM=ik();function Pc(t,e){if(!t)throw new Error(e||"loaders.gl assertion failed.")}const Sa=typeof process!="object"||String(process)!=="[object process]"||process.browser,h2=typeof importScripts=="function",nk=typeof window<"u"&&typeof window.orientation<"u",gE=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);gE&&parseFloat(gE[1]);class sk{constructor(e,r){U(this,"name");U(this,"workerThread");U(this,"isRunning",!0);U(this,"result");U(this,"_resolve",()=>{});U(this,"_reject",()=>{});this.name=e,this.workerThread=r,this.result=new Promise((i,n)=>{this._resolve=i,this._reject=n})}postMessage(e,r){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:r})}done(e){Pc(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){Pc(this.isRunning),this.isRunning=!1,this._reject(e)}}class Xy{terminate(){}}const qy=new Map;function ok(t){Pc(t.source&&!t.url||!t.source&&t.url);let e=qy.get(t.source||t.url);return e||(t.url&&(e=ak(t.url),qy.set(t.url,e)),t.source&&(e=eR(t.source),qy.set(t.source,e))),Pc(e),e}function ak(t){if(!t.startsWith("http"))return t;const e=lk(t);return eR(e)}function eR(t){const e=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(e)}function lk(t){return`try {
2
2
  importScripts('${t}');
3
3
  } catch (error) {
4
4
  console.error(error);
@@ -3839,4 +3839,4 @@ fragColor = outTexture;
3839
3839
  fragColor.g = outTexture.r / max(1.0, outTexture.a);
3840
3840
  }
3841
3841
  `,Gde=2,v1={format:"rgba8unorm",mipmaps:!1,sampler:{minFilter:"linear",magFilter:"linear",addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"}},RM=[0,0],Wde={SUM:0,MEAN:1},Xde={getPosition:{type:"accessor",value:t=>t.position},getWeight:{type:"accessor",value:1},intensity:{type:"number",min:0,value:1},radiusPixels:{type:"number",min:1,max:100,value:50},colorRange:gA,threshold:{type:"number",min:0,max:1,value:.05},colorDomain:{type:"array",value:null,optional:!0},aggregation:"SUM",weightsTextureSize:{type:"number",min:128,max:2048,value:2048},debounceTimeout:{type:"number",min:0,max:1e3,value:500}},qde=["float32-renderable-webgl","texture-blend-float-webgl"],$de={data:{props:["radiusPixels"]}};class kw extends mA{initializeState(){super.initializeAggregationLayer($de),this.setState({colorDomain:RM}),this._setupTextureParams(),this._setupAttributes(),this._setupResources()}shouldUpdateState({changeFlags:e}){return e.somethingChanged}updateState(e){super.updateState(e),this._updateHeatmapState(e)}_updateHeatmapState(e){const{props:r,oldProps:i}=e,n=this._getChangeFlags(e);(n.dataChanged||n.viewportChanged)&&(n.boundsChanged=this._updateBounds(n.dataChanged),this._updateTextureRenderingBounds()),n.dataChanged||n.boundsChanged?(clearTimeout(this.state.updateTimer),this.setState({isWeightMapDirty:!0})):n.viewportZoomChanged&&this._debouncedUpdateWeightmap(),r.colorRange!==i.colorRange&&this._updateColorTexture(e),this.state.isWeightMapDirty&&this._updateWeightmap(),this.setState({zoom:e.context.viewport.zoom})}renderLayers(){const{weightsTexture:e,triPositionBuffer:r,triTexCoordBuffer:i,maxWeightsTexture:n,colorTexture:o,colorDomain:s}=this.state,{updateTriggers:f,intensity:A,threshold:v,aggregation:w}=this.props,C=this.getSubLayerClass("triangle",UF);return new C(this.getSubLayerProps({id:"triangle-layer",updateTriggers:f}),{coordinateSystem:br.DEFAULT,data:{attributes:{positions:r,texCoords:i}},vertexCount:4,maxTexture:n,colorTexture:o,aggregationMode:Wde[w]||0,weightsTexture:e,intensity:A,threshold:v,colorDomain:s})}finalizeState(e){super.finalizeState(e);const{weightsTransform:r,weightsTexture:i,maxWeightTransform:n,maxWeightsTexture:o,triPositionBuffer:s,triTexCoordBuffer:f,colorTexture:A,updateTimer:v}=this.state;r==null||r.destroy(),i==null||i.destroy(),n==null||n.destroy(),o==null||o.destroy(),s==null||s.destroy(),f==null||f.destroy(),A==null||A.destroy(),v&&clearTimeout(v)}_getAttributeManager(){return new X2(this.context.device,{id:this.props.id,stats:this.context.stats})}_getChangeFlags(e){const r={},{dimensions:i}=this.state;r.dataChanged=this.isAttributeChanged()&&"attribute changed"||this.isAggregationDirty(e,{compareAll:!0,dimension:i.data})&&"aggregation is dirty",r.viewportChanged=e.changeFlags.viewportChanged;const{zoom:n}=this.state;return(!e.context.viewport||e.context.viewport.zoom!==n)&&(r.viewportZoomChanged=!0),r}_createTextures(){const{textureSize:e,format:r}=this.state;this.setState({weightsTexture:this.context.device.createTexture({...v1,width:e,height:e,format:r}),maxWeightsTexture:this.context.device.createTexture({...v1,width:1,height:1,format:r})})}_setupAttributes(){this.getAttributeManager().add({positions:{size:3,type:"float64",accessor:"getPosition"},weights:{size:1,accessor:"getWeight"}}),this.setState({positionAttributeName:"positions"})}_setupTextureParams(){const{device:e}=this.context,{weightsTextureSize:r}=this.props,i=Math.min(r,e.limits.maxTextureDimension2D),n=qde.every(f=>e.features.has(f)),o=n?"rgba32float":"rgba8unorm",s=n?1:1/255;this.setState({textureSize:i,format:o,weightsScale:s}),n||fr.warn(`HeatmapLayer: ${this.id} rendering to float texture not supported, falling back to low precision format`)()}_createWeightsTransform(e){let{weightsTransform:r}=this.state;const{weightsTexture:i}=this.state,n=this.getAttributeManager();r==null||r.destroy(),r=new eb(this.context.device,{id:`${this.id}-weights-transform`,bufferLayout:n.getBufferLayouts(),vertexCount:1,targetTexture:i,parameters:{depthWriteEnabled:!1,blendColorOperation:"add",blendColorSrcFactor:"one",blendColorDstFactor:"one",blendAlphaSrcFactor:"one",blendAlphaDstFactor:"one"},topology:"point-list",...e}),this.setState({weightsTransform:r})}_setupResources(){this._createTextures();const{device:e}=this.context,{textureSize:r,weightsTexture:i,maxWeightsTexture:n}=this.state,o=this.getShaders({vs:IM,fs:MM});this._createWeightsTransform(o);const s=this.getShaders({vs:jde,fs:Hde}),f=new eb(e,{id:`${this.id}-max-weights-transform`,bindings:{inTexture:i},uniforms:{textureSize:r},targetTexture:n,...s,vertexCount:r*r,topology:"point-list",parameters:{depthWriteEnabled:!1,blendColorOperation:"max",blendAlphaOperation:"max",blendColorSrcFactor:"one",blendColorDstFactor:"one",blendAlphaSrcFactor:"one",blendAlphaDstFactor:"one"}});this.setState({weightsTexture:i,maxWeightsTexture:n,maxWeightTransform:f,zoom:null,triPositionBuffer:e.createBuffer({byteLength:48}),triTexCoordBuffer:e.createBuffer({byteLength:48})})}updateShaders(e){this._createWeightsTransform({vs:IM,fs:MM,...e})}_updateMaxWeightValue(){const{maxWeightTransform:e}=this.state;e.run({parameters:{viewport:[0,0,1,1]},clearColor:[0,0,0,0]})}_updateBounds(e=!1){const{viewport:r}=this.context,i=[r.unproject([0,0]),r.unproject([r.width,0]),r.unproject([r.width,r.height]),r.unproject([0,r.height])].map(f=>f.map(Math.fround)),n=Lde(i),o={visibleWorldBounds:n,viewportCorners:i};let s=!1;if(e||!this.state.worldBounds||!kde(this.state.worldBounds,n)){const f=this._worldToCommonBounds(n),A=this._commonToWorldBounds(f);this.props.coordinateSystem===br.LNGLAT&&(A[1]=Math.max(A[1],-85.051129),A[3]=Math.min(A[3],85.051129),A[0]=Math.max(A[0],-360),A[2]=Math.min(A[2],360));const v=this._worldToCommonBounds(A);o.worldBounds=A,o.normalizedCommonBounds=v,s=!0}return this.setState(o),s}_updateTextureRenderingBounds(){const{triPositionBuffer:e,triTexCoordBuffer:r,normalizedCommonBounds:i,viewportCorners:n}=this.state,{viewport:o}=this.context;e.write(PM(n,3));const s=n.map(f=>Ude(o.projectPosition(f),i));r.write(PM(s,2))}_updateColorTexture(e){const{colorRange:r}=e.props;let{colorTexture:i}=this.state;const n=ly(r,!1,Uint8Array);i&&(i==null?void 0:i.width)===r.length?i.setSubImageData({data:n}):(i==null||i.destroy(),i=this.context.device.createTexture({...v1,data:n,width:r.length,height:1})),this.setState({colorTexture:i})}_updateWeightmap(){const{radiusPixels:e,colorDomain:r,aggregation:i}=this.props,{worldBounds:n,textureSize:o,weightsScale:s}=this.state,f=this.state.weightsTransform;this.state.isWeightMapDirty=!1;const A=this._worldToCommonBounds(n,{useLayerCoordinateSystem:!0});if(r&&i==="SUM"){const{viewport:B}=this.context,F=B.distanceScales.metersPerUnit[2]*(A[2]-A[0])/o;this.state.colorDomain=r.map(k=>k*F*s)}else this.state.colorDomain=r||RM;const w=this.getAttributeManager().getAttributes(),C=this.getModuleSettings(),I={radiusPixels:e,commonBounds:A,textureWidth:o,weightsScale:s};this._setModelAttributes(f.model,w),f.model.setVertexCount(this.getNumInstances()),f.model.setUniforms(I),f.model.updateModuleSettings(C),f.run({parameters:{viewport:[0,0,o,o]},clearColor:[0,0,0,0]}),this._updateMaxWeightValue()}_debouncedUpdateWeightmap(e=!1){let{updateTimer:r}=this.state;const{debounceTimeout:i}=this.props;e?(r=null,this._updateBounds(!0),this._updateTextureRenderingBounds(),this.setState({isWeightMapDirty:!0})):(this.setState({isWeightMapDirty:!1}),clearTimeout(r),r=setTimeout(this._debouncedUpdateWeightmap.bind(this,!0),i)),this.setState({updateTimer:r})}_worldToCommonBounds(e,r={}){const{useLayerCoordinateSystem:i=!1}=r,[n,o,s,f]=e,{viewport:A}=this.context,{textureSize:v}=this.state,{coordinateSystem:w}=this.props,C=i&&(w===br.LNGLAT_OFFSETS||w===br.METER_OFFSETS),I=C?A.projectPosition(this.props.coordinateOrigin):[0,0],B=v*Gde/A.scale;let F,k;return i&&!C?(F=this.projectPosition([n,o,0]),k=this.projectPosition([s,f,0])):(F=A.projectPosition([n,o,0]),k=A.projectPosition([s,f,0])),Nde([F[0]-I[0],F[1]-I[1],k[0]-I[0],k[1]-I[1]],B,B)}_commonToWorldBounds(e){const[r,i,n,o]=e,{viewport:s}=this.context,f=s.unprojectPosition([r,i]),A=s.unprojectPosition([n,o]);return f.slice(0,2).concat(A.slice(0,2))}}kw.layerName="HeatmapLayer";kw.defaultProps=Xde;const Zde=Object.freeze(Object.defineProperty({__proto__:null,AGGREGATION_OPERATION:Pn,CPUGridLayer:v0,ContourLayer:Dw,GPUGridLayer:b0,GridLayer:Lw,HeatmapLayer:kw,HexagonLayer:Ow,ScreenGridLayer:Rw,_AggregationLayer:mA,_BinSorter:Iw,_CPUAggregator:Bw,_GPUGridAggregator:Hl},Symbol.toStringTag,{value:"Module"})),Kde={ClusterTileLayer:Aw,H3TileLayer:gw,HeatmapTileLayer:_w,_PointLabelLayer:yw,QuadbinTileLayer:ay,RasterTileLayer:bw,VectorTileLayer:ww};function n2(t,e=""){if(!t)throw new Error(`JSON conversion error ${e}`)}function Yde(t,e){const r=Qde(e);let i=t;for(const n of r)i=Jde(i)?i[n]:void 0;return i}function Jde(t){return t!==null&&typeof t=="object"}const BM={};function Qde(t){if(typeof t=="string"){let e=BM[t];return e||(e=t.split("."),BM[t]=e),e}return Array.isArray(t)?t:[t]}var s2={exports:{}};(function(t,e){(function(r){var i="Compound",n="Identifier",o="MemberExpression",s="Literal",f="ThisExpression",A="CallExpression",v="UnaryExpression",w="BinaryExpression",C="LogicalExpression",I="ConditionalExpression",B="ArrayExpression",F=46,k=44,V=39,G=34,Y=40,Z=41,se=91,ge=93,Ee=63,Ve=59,Fe=58,pe=function(Rt,ut){var Vi=new Error(Rt+" at character "+ut);throw Vi.index=ut,Vi.description=Rt,Vi},Te=!0,Ae={"-":Te,"!":Te,"~":Te,"+":Te},Le={"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},ze=function(Rt){var ut=0,Vi;for(var Sr in Rt)(Vi=Sr.length)>ut&&Rt.hasOwnProperty(Sr)&&(ut=Vi);return ut},Xe=ze(Ae),dt=ze(Le),Nt={true:!0,false:!1,null:null},gr="this",mr=function(Rt){return Le[Rt]||0},_r=function(Rt,ut,Vi){var Sr=Rt==="||"||Rt==="&&"?C:w;return{type:Sr,operator:Rt,left:ut,right:Vi}},rr=function(Rt){return Rt>=48&&Rt<=57},Ot=function(Rt){return Rt===36||Rt===95||Rt>=65&&Rt<=90||Rt>=97&&Rt<=122||Rt>=128&&!Le[String.fromCharCode(Rt)]},Qt=function(Rt){return Rt===36||Rt===95||Rt>=65&&Rt<=90||Rt>=97&&Rt<=122||Rt>=48&&Rt<=57||Rt>=128&&!Le[String.fromCharCode(Rt)]},qt=function(Rt){for(var ut=0,Vi=Rt.charAt,Sr=Rt.charCodeAt,Ur=function(vt){return Vi.call(Rt,vt)},Dt=function(vt){return Sr.call(Rt,vt)},$r=Rt.length,Pi=function(){for(var vt=Dt(ut);vt===32||vt===9||vt===10||vt===13;)vt=Dt(++ut)},yi=function(){var vt=gn(),Yt,Mr;if(Pi(),Dt(ut)===Ee){if(ut++,Yt=yi(),Yt||pe("Expected expression",ut),Pi(),Dt(ut)===Fe)return ut++,Mr=yi(),Mr||pe("Expected expression",ut),{type:I,test:vt,consequent:Yt,alternate:Mr};pe("Expected :",ut)}else return vt},dr=function(){Pi();for(var vt=Rt.substr(ut,dt),Yt=vt.length;Yt>0;){if(Le.hasOwnProperty(vt)&&(!Ot(Dt(ut))||ut+vt.length<Rt.length&&!Qt(Dt(ut+vt.length))))return ut+=Yt,vt;vt=vt.substr(0,--Yt)}return!1},gn=function(){var vt,Yt,Mr,qr,kn,Di,mn,Xn,ho;if(Di=oi(),Yt=dr(),!Yt)return Di;for(kn={value:Yt,prec:mr(Yt)},mn=oi(),mn||pe("Expected expression after "+Yt,ut),qr=[Di,kn,mn];(Yt=dr())&&(Mr=mr(Yt),Mr!==0);){for(kn={value:Yt,prec:Mr},ho=Yt;qr.length>2&&Mr<=qr[qr.length-2].prec;)mn=qr.pop(),Yt=qr.pop().value,Di=qr.pop(),vt=_r(Yt,Di,mn),qr.push(vt);vt=oi(),vt||pe("Expected expression after "+ho,ut),qr.push(kn,vt)}for(Xn=qr.length-1,vt=qr[Xn];Xn>1;)vt=_r(qr[Xn-1].value,qr[Xn-2],vt),Xn-=2;return vt},oi=function(){var vt,Yt,Mr;if(Pi(),vt=Dt(ut),rr(vt)||vt===F)return xi();if(vt===V||vt===G)return an();if(vt===se)return Is();for(Yt=Rt.substr(ut,Xe),Mr=Yt.length;Mr>0;){if(Ae.hasOwnProperty(Yt)&&(!Ot(Dt(ut))||ut+Yt.length<Rt.length&&!Qt(Dt(ut+Yt.length))))return ut+=Mr,{type:v,operator:Yt,argument:oi(),prefix:!0};Yt=Yt.substr(0,--Mr)}return Ot(vt)||vt===Y?ln():!1},xi=function(){for(var vt="",Yt,Mr;rr(Dt(ut));)vt+=Ur(ut++);if(Dt(ut)===F)for(vt+=Ur(ut++);rr(Dt(ut));)vt+=Ur(ut++);if(Yt=Ur(ut),Yt==="e"||Yt==="E"){for(vt+=Ur(ut++),Yt=Ur(ut),(Yt==="+"||Yt==="-")&&(vt+=Ur(ut++));rr(Dt(ut));)vt+=Ur(ut++);rr(Dt(ut-1))||pe("Expected exponent ("+vt+Ur(ut)+")",ut)}return Mr=Dt(ut),Ot(Mr)?pe("Variable names cannot start with a number ("+vt+Ur(ut)+")",ut):Mr===F&&pe("Unexpected period",ut),{type:s,value:parseFloat(vt),raw:vt}},an=function(){for(var vt="",Yt=Ur(ut++),Mr=!1,qr;ut<$r;)if(qr=Ur(ut++),qr===Yt){Mr=!0;break}else if(qr==="\\")switch(qr=Ur(ut++),qr){case"n":vt+=`
3842
- `;break;case"r":vt+="\r";break;case"t":vt+=" ";break;case"b":vt+="\b";break;case"f":vt+="\f";break;case"v":vt+="\v";break;default:vt+=qr}else vt+=qr;return Mr||pe('Unclosed quote after "'+vt+'"',ut),{type:s,value:vt,raw:Yt+vt+Yt}},$i=function(){var vt=Dt(ut),Yt=ut,Mr;for(Ot(vt)?ut++:pe("Unexpected "+Ur(ut),ut);ut<$r&&(vt=Dt(ut),Qt(vt));)ut++;return Mr=Rt.slice(Yt,ut),Nt.hasOwnProperty(Mr)?{type:s,value:Nt[Mr],raw:Mr}:Mr===gr?{type:f}:{type:n,name:Mr}},Zs=function(vt){for(var Yt,Mr=[],qr,kn=!1,Di=0;ut<$r;)if(Pi(),Yt=Dt(ut),Yt===vt){kn=!0,ut++,vt===Z&&Di&&Di>=Mr.length&&pe("Unexpected token "+String.fromCharCode(vt),ut);break}else if(Yt===k){if(ut++,Di++,Di!==Mr.length){if(vt===Z)pe("Unexpected token ,",ut);else if(vt===ge)for(var mn=Mr.length;mn<Di;mn++)Mr.push(null)}}else qr=yi(),(!qr||qr.type===i)&&pe("Expected comma",ut),Mr.push(qr);return kn||pe("Expected "+String.fromCharCode(vt),ut),Mr},ln=function(){var vt,Yt;for(vt=Dt(ut),vt===Y?Yt=ni():Yt=$i(),Pi(),vt=Dt(ut);vt===F||vt===se||vt===Y;)ut++,vt===F?(Pi(),Yt={type:o,computed:!1,object:Yt,property:$i()}):vt===se?(Yt={type:o,computed:!0,object:Yt,property:yi()},Pi(),vt=Dt(ut),vt!==ge&&pe("Unclosed [",ut),ut++):vt===Y&&(Yt={type:A,arguments:Zs(Z),callee:Yt}),Pi(),vt=Dt(ut);return Yt},ni=function(){ut++;var vt=yi();if(Pi(),Dt(ut)===Z)return ut++,vt;pe("Unclosed (",ut)},Is=function(){return ut++,{type:B,elements:Zs(ge)}},nn=[],Oi,is;ut<$r;)Oi=Dt(ut),Oi===Ve||Oi===k?ut++:(is=yi())?nn.push(is):ut<$r&&pe('Unexpected "'+Ur(ut)+'"',ut);return nn.length===1?nn[0]:{type:i,body:nn}};qt.version="0.3.5",qt.toString=function(){return"JavaScript Expression Parser (JSEP) v"+qt.version},qt.addUnaryOp=function(Rt){return Xe=Math.max(Rt.length,Xe),Ae[Rt]=Te,this},qt.addBinaryOp=function(Rt,ut){return dt=Math.max(Rt.length,dt),Le[Rt]=ut,this},qt.addLiteral=function(Rt,ut){return Nt[Rt]=ut,this},qt.removeUnaryOp=function(Rt){return delete Ae[Rt],Rt.length===Xe&&(Xe=ze(Ae)),this},qt.removeAllUnaryOps=function(){return Ae={},Xe=0,this},qt.removeBinaryOp=function(Rt){return delete Le[Rt],Rt.length===dt&&(dt=ze(Le)),this},qt.removeAllBinaryOps=function(){return Le={},dt=0,this},qt.removeLiteral=function(Rt){return delete Nt[Rt],this},qt.removeAllLiterals=function(){return Nt={},this},t.exports?e=t.exports=qt:e.parse=qt})()})(s2,s2.exports);var eAe=s2.exports;const tAe=oA(eAe),OM={"||":(t,e)=>t||e,"&&":(t,e)=>t&&e,"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e},rAe={"-":t=>-t,"+":t=>+t,"~":t=>~t,"!":t=>!t};function DM(t,e){return t.map(function(r){return Ss(r,e)})}function FM(t,e){const r=Ss(t.object,e);let i;if(t.computed?i=Ss(t.property,e):i=t.property.name,/^__proto__|prototype|constructor$/.test(i))throw Error(`Access to member "${i}" disallowed.`);return[r,r[i]]}function Ss(t,e){const r=t;switch(r.type){case"ArrayExpression":return DM(r.elements,e);case"BinaryExpression":return OM[r.operator](Ss(r.left,e),Ss(r.right,e));case"CallExpression":let i,n,o;return r.callee.type==="MemberExpression"?(o=FM(r.callee,e),i=o[0],n=o[1]):n=Ss(r.callee,e),typeof n!="function"?void 0:n.apply(i,DM(r.arguments,e));case"ConditionalExpression":return Ss(r.test,e)?Ss(r.consequent,e):Ss(r.alternate,e);case"Identifier":return e[r.name];case"Literal":return r.value;case"LogicalExpression":return r.operator==="||"?Ss(r.left,e)||Ss(r.right,e):r.operator==="&&"?Ss(r.left,e)&&Ss(r.right,e):OM[r.operator](Ss(r.left,e),Ss(r.right,e));case"MemberExpression":return FM(r,e)[1];case"ThisExpression":return e;case"UnaryExpression":return rAe[r.operator](Ss(r.argument,e));default:return}}const b1={"-":t=>t};function zF(t,e){if(t in b1)return b1[t];let r;const i=tAe(t);return i.type==="Identifier"?r=n=>Yde(n,t):(o2(i,n=>{if(n.type==="CallExpression")throw new Error("Function calls not allowed in JSON expressions")}),r=n=>Ss(i,n)),b1[t]=r,r}function o2(t,e){if(Array.isArray(t))t.forEach(r=>o2(r,e));else if(t&&typeof t=="object"){t.type&&e(t);for(const r in t)o2(t[r],e)}}const n_="@@=",LM="@@#",iAe="@@type",VF="@@function",kM=t=>t&&typeof t=="object";class a2{constructor(...e){this.typeKey=iAe,this.functionKey=VF,this.log=console,this.classes={},this.reactComponents={},this.enumerations={},this.constants={},this.functions={},this.React=null,this.convertFunction=zF,this.preProcessClassProps=(r,i)=>i,this.postProcessConvertedJson=r=>r;for(const r of e)this.merge(r)}merge(e){for(const r in e)switch(r){case"layers":case"views":Object.assign(this.classes,e[r]);break;default:if(r in this){const i=e[r];this[r]=kM(this[r])?Object.assign(this[r],i):i}}}validate(e){return n2(!this.typeKey||typeof this.typeKey=="string"),n2(kM(this.classes)),!0}}function nAe(t){return typeof t=="string"&&t.startsWith(n_)}function sAe(t){return t.replace(n_,"")}function jF(t,e){const r={};for(const i in t){let n=t[i];nAe(n)&&(n=sAe(n),n=zF(n)),r[i]=n}return r}function oAe(t,e,r){const i=r.classes[t],n=r.reactComponents[t];if(!i&&!n){const{log:o}=r;if(o){const s=JSON.stringify(e,null,0).slice(0,40);o.warn(`JSON converter: No registered class of type ${t}(${s}...) `)}return null}return i?aAe(i,e,r):lAe(n,e,r)}function aAe(t,e,r){return r.preProcessClassProps&&(e=r.preProcessClassProps(t,e,r)),e=jF(e),new t(e)}function lAe(t,e,r){const{React:i}=r,{children:n=[]}=e;return delete e.children,r.preProcessClassProps&&(e=r.preProcessClassProps(t,e,r)),e=jF(e),i.createElement(t,e,n)}function cAe(t,e,r){const i=r.functions[t];if(!i){const{log:n}=r;if(n){const o=JSON.stringify(e,null,0).slice(0,40);n.warn(`JSON converter: No registered function ${t}(${o}...) `)}return null}return i(e)}function uAe(t){return typeof t=="string"?JSON.parse(t):t}const Nw=t=>t&&typeof t=="object";class hAe{constructor(e){this.log=console,this.onJSONChange=()=>{},this.json=null,this.convertedJson=null,this.setProps(e)}finalize(){}setProps(e){"configuration"in e&&(this.configuration=e.configuration instanceof a2?e.configuration:new a2(e.configuration)),"onJSONChange"in e&&(this.onJSONChange=e.onJSONChange)}mergeConfiguration(e){this.configuration.merge(e)}convert(e){if(!e||e===this.json)return this.convertedJson;this.json=e;const r=uAe(e);let i=fAe(r,this.configuration);return i=this.configuration.postProcessConvertedJson(i),this.convertedJson=i,i}convertJson(e){return this.convert(e)}}function fAe(t,e){return e=new a2(e),Uw(t,"",e)}function Uw(t,e,r){return Array.isArray(t)?t.map((i,n)=>Uw(i,String(n),r)):dAe(t,r)?AAe(t,r):Nw(t)?VF in t?pAe(t,r):zw(t,r):typeof t=="string"?gAe(t,e,r):t}function dAe(t,e){const{typeKey:r}=e;return Nw(t)&&!!t[r]}function AAe(t,e){const{typeKey:r}=e,i=t[r];let n={...t};return delete n[r],n=zw(n,e),oAe(i,n,e)}function pAe(t,e){const{functionKey:r}=e,i=t[r];let n={...t};return delete n[r],n=zw(n,e),cAe(i,n,e)}function zw(t,e){n2(Nw(t));const r={};for(const i in t){const n=t[i];r[i]=Uw(n,i,e)}return r}function gAe(t,e,r){if(t.startsWith(n_)&&r.convertFunction)return t=t.replace(n_,""),r.convertFunction(t,r);if(t.startsWith(LM)){if(t=t.replace(LM,""),r.constants[t])return r.constants[t];const[i,n]=t.split(".");return r.enumerations[i][n]}return t}const mAe={classes:{...ste,...Zde,...Vce,...Mse,...Kde},functions:{colorBins:ife,colorCategories:nfe,colorContinuous:sfe}},HF=new hAe({configuration:mAe}),_Ae={[iy.layerName]:["getFillColor"],[J_.layerName]:["getFillColor"],[$l.layerName]:["getFillColor"],[AA.layerName]:["getFillColor"],[X_.layerName]:["getFillColor"],[W_.layerName]:["getFillColor"],[Z_.layerName]:["getColor"],[c0.layerName]:["getTargetColor","getSourceColor"],[Lc.layerName]:["getFillColor"],[kc.layerName]:["getFillColor"],[dA.layerName]:["getColor"],[u0.layerName]:["getColor"],[$h.layerName]:["getColor"],[h0.layerName]:["getColor"],[Vu.layerName]:["getFillColor"],[f0.layerName]:["getFillColor","getColor","getLineColor"],[zu.layerName]:["getFillColor"],[Zh.layerName]:["getColor"],[g0.layerName]:["getColor"],[zh.layerName]:["getColor"]},yAe=({object:t,objectInfo:e,originalFillFunction:r})=>{const i=typeof r=="function"?r(t,e):r;if(Array.isArray(i))return[i[0]||0,i[1]||0,i[2]||0,i[3]||255];if(typeof i=="string"&&i.startsWith("@@=")){const n=HF.convert({originalColor:i}).originalColor(t);return[n[0]||0,n[1]||0,n[2]||0,n[3]||255]}return null},NM=({isSelected:t,object:e,objectInfo:r,opacity:i,originalFillFunction:n})=>{const o=yAe({object:e,objectInfo:r,originalFillFunction:n});if(!o)return null;let s=0;return t?s=Math.max(typeof o[3]=="number"?o[3]:i,i):s=Math.min(typeof o[3]=="number"?o[3]:i,i),[o[0]||0,o[1]||0,o[2]||0,s]},vAe=({isSelected:t,object:e,objectInfo:r,originalFillFunction:i,selectedColor:n,selectedOpacity:o=255,unselectedColor:s,unselectedOpacity:f=Math.floor(255*.4)})=>t?NM({opacity:o,isSelected:!0,object:e,objectInfo:r,originalFillFunction:i})||n:NM({opacity:f,isSelected:!1,object:e,objectInfo:r,originalFillFunction:i})||s,r0={selection:{indices:{},objects:{}}},UM=(t,e)=>{const r=e.match(/{(.*?)}/g);return r&&r.forEach(i=>{const n=i.substring(1,i.length-1);t.object.hasOwnProperty(n)?e=e.replace(i,t.object[n]):t.object.hasOwnProperty("properties")&&t.object.properties.hasOwnProperty(n)&&(e=e.replace(i,t.object.properties[n]))}),e};function bAe(t,e){return e.id?t.getElementState(e.id,"selection")??r0:r0}function xAe(t,e){if(!e.id)return r0;const r=t.getStringValue(e);return(r?T1.parse(r):null)??r0}function wAe(t,e,r,i){t.id&&e.setStringValue(t,JSON.stringify(r.value),{fromUi:r.fromUi},i)}const TAe=t=>{var Le;const{height:e,width:r,expanded:i}=WM(XM),{element:n,fragmentId:o,isLightTheme:s,theme:f,widgetMgr:A}=t,{selectionMode:v,tooltip:w,useContainerWidth:C}=n,I=i??!1,[B,F]=LL({element:n,getDefaultState:bAe,getStateFromWidgetMgr:xAe,updateWidgetMgrState:wAe,widgetMgr:A,fragmentId:o}),[k,V]=it.useState({bearing:0,pitch:0,zoom:11}),{height:G,width:Y}=MJ({element:n,isFullScreen:I,shouldUseContainerWidth:C,container:{height:e,width:r},heightFallback:((Le=k.initialViewState)==null?void 0:Le.height)||f.sizes.defaultMapHeight}),[Z,se]=it.useState({}),ge=v[0],Ee=ge!==void 0,Ve=Ee&&Object.keys(B.selection.indices).length>0,Fe=it.useMemo(()=>Object.freeze(T1.parse(n.json)),[I,s,n.json]),pe=it.useMemo(()=>{const ze={...Fe};if(ze.mapStyle||(ze.mapStyle=`mapbox://styles/mapbox/${s?"light":"dark"}-v9`),ze.layers){const Xe=Object.values(B.selection.indices).some(Nt=>Nt==null?void 0:Nt.length),dt=ze.layers.some(Nt=>Object.hasOwn(Nt,"pickable"));ze.layers=ze.layers.map(Nt=>{var Ot,Qt;if(!Nt||Array.isArray(Nt)||!Ee)return Nt;dt||(Nt.pickable=!0);const gr=`${Nt.id||null}`,mr=((Qt=(Ot=B==null?void 0:B.selection)==null?void 0:Ot.indices)==null?void 0:Qt[gr])||[],_r=_Ae[Nt["@@type"]];if(!_r)return Nt;const rr={...Nt};return _r.forEach(qt=>{var dr;rr.updateTriggers={[qt]:[...((dr=rr.updateTriggers)==null?void 0:dr[qt])||[],mr,Xe]};const Rt=!Xe,ut=Nt[qt];if(Rt||!ut)return rr;const Vi=255,Sr=Math.floor(255*.4),Ur=cE(f.colors.primary),Dt=[Ur[0],Ur[1],Ur[2],Vi],$r=cE(f.colors.gray20),Pi=[$r[0],$r[1],$r[2],Sr],yi=(gn,oi)=>vAe({isSelected:mr.includes(oi.index),object:gn,objectInfo:oi,originalFillFunction:ut,selectedColor:Dt,unselectedColor:Pi,selectedOpacity:Vi,unselectedOpacity:Sr});rr[qt]=yi}),rr})}return ze==null||delete ze.views,HF.convert(ze)},[B.selection.indices,s,Ee,Fe,f.colors.gray20,f.colors.primary]);it.useEffect(()=>{if(!PL(pe.initialViewState,Z)){const ze=Object.keys(pe.initialViewState).reduce((Xe,dt)=>pe.initialViewState[dt]===Z[dt]?Xe:{...Xe,[dt]:pe.initialViewState[dt]},{});V({...k,...ze}),se(pe.initialViewState)}},[pe.initialViewState,Z,k]);const Te=it.useCallback(ze=>{if(!ze||!ze.object||!w)return null;const Xe=T1.parse(w);return Xe.html?Xe.html=UM(ze,Xe.html):Xe.text=UM(ze,Xe.text),Xe},[w]),Ae=it.useCallback(({viewState:ze})=>{V(ze)},[V]);return{createTooltip:Te,data:B,deck:pe,hasActiveSelection:Ve,height:G,isSelectionModeActivated:Ee,onViewStateChange:Ae,selectionMode:ge,setSelection:F,viewState:k,width:Y}};s0([hx,tA]);const x1=r0.selection,EAe=[],SAe=t=>{const{disabled:e,disableFullscreenMode:r,element:i,fragmentId:n,mapboxToken:o,widgetMgr:s}=t,{mapboxToken:f}=i,A=IL(),{expanded:v,expand:w,collapse:C}=WM(XM),{createTooltip:I,data:B,deck:F,hasActiveSelection:k,height:V,isSelectionModeActivated:G,onViewStateChange:Y,selectionMode:Z,setSelection:se,viewState:ge,width:Ee}=TAe({element:i,fragmentId:n,isLightTheme:GM(A),theme:A,widgetMgr:s}),[Ve,Fe]=it.useState(!1);it.useEffect(()=>{Fe(!0)},[]);const pe=it.useCallback(Ae=>{var _r;if(Z===void 0)return;const{index:Le,object:ze}=Ae,Xe=`${((_r=Ae.layer)==null?void 0:_r.id)||null}`,dt=B,Nt=Le===-1,mr=(()=>{var rr;if(Nt)return x1;switch(Z){case uE.SelectionMode.SINGLE_OBJECT:return((rr=dt.selection.indices[Xe])==null?void 0:rr[0])===Le?x1:{indices:{[`${Xe}`]:[Le]},objects:{[`${Xe}`]:[ze]}};case uE.SelectionMode.MULTI_OBJECT:{const Ot=new Map((()=>{var qt,Rt;return(((Rt=(qt=dt==null?void 0:dt.selection)==null?void 0:qt.indices)==null?void 0:Rt[Xe])||[]).map((ut,Vi)=>{var Sr,Ur,Dt;return[ut,(Dt=(Ur=(Sr=dt.selection)==null?void 0:Sr.objects)==null?void 0:Ur[Xe])==null?void 0:Dt[Vi]]})})());if(Ot.has(Le)?Ot.delete(Le):Ot.set(Le,ze),Ot.size===0){const{[Xe]:Qt,...qt}=dt.selection.indices,{[Xe]:Rt,...ut}=dt.selection.objects;return{indices:qt,objects:ut}}return{indices:{...dt.selection.indices,[`${Xe}`]:Array.from(Ot.keys())},objects:{...dt.selection.objects,[`${Xe}`]:Array.from(Ot.values())}}}default:throw ML(Z),new Error("Invalid selection mode")}})();JSON.stringify(mr)!==JSON.stringify(dt.selection)&&se({fromUi:!0,value:{selection:mr}})},[Z,B,se]),Te=it.useCallback(()=>{se({value:{selection:x1},fromUi:!0})},[se]);return Ll(E3,{className:"stDeckGlJsonChart","data-testid":"stDeckGlJsonChart",width:Ee,height:V,children:[ms(DL,{isFullScreen:v,disableFullscreenMode:r,onExpand:w,onCollapse:C,target:E3,locked:k&&!e?!0:void 0,children:k&&!e&&ms(OL,{label:"Clear selection",onClick:Te,icon:BL})}),Ll(SX,{viewState:ge,onViewStateChange:Y,height:V,width:Ee,layers:Ve?F.layers:EAe,getTooltip:I,ContextProvider:qh.Provider,controller:!0,onClick:G&&!e?pe:void 0,children:[ms(Fc,{height:V,width:Ee,mapStyle:F.mapStyle&&(typeof F.mapStyle=="string"?F.mapStyle:F.mapStyle[0]),mapboxApiAccessToken:f||o}),ms(IJ,{children:ms(nZ,{"data-testid":"stDeckGlJsonChartZoomButton",showCompass:!1})})]})]})},JAe=FL(PJ("st.pydeck_chart")(SAe));export{JAe as default};
3842
+ `;break;case"r":vt+="\r";break;case"t":vt+=" ";break;case"b":vt+="\b";break;case"f":vt+="\f";break;case"v":vt+="\v";break;default:vt+=qr}else vt+=qr;return Mr||pe('Unclosed quote after "'+vt+'"',ut),{type:s,value:vt,raw:Yt+vt+Yt}},$i=function(){var vt=Dt(ut),Yt=ut,Mr;for(Ot(vt)?ut++:pe("Unexpected "+Ur(ut),ut);ut<$r&&(vt=Dt(ut),Qt(vt));)ut++;return Mr=Rt.slice(Yt,ut),Nt.hasOwnProperty(Mr)?{type:s,value:Nt[Mr],raw:Mr}:Mr===gr?{type:f}:{type:n,name:Mr}},Zs=function(vt){for(var Yt,Mr=[],qr,kn=!1,Di=0;ut<$r;)if(Pi(),Yt=Dt(ut),Yt===vt){kn=!0,ut++,vt===Z&&Di&&Di>=Mr.length&&pe("Unexpected token "+String.fromCharCode(vt),ut);break}else if(Yt===k){if(ut++,Di++,Di!==Mr.length){if(vt===Z)pe("Unexpected token ,",ut);else if(vt===ge)for(var mn=Mr.length;mn<Di;mn++)Mr.push(null)}}else qr=yi(),(!qr||qr.type===i)&&pe("Expected comma",ut),Mr.push(qr);return kn||pe("Expected "+String.fromCharCode(vt),ut),Mr},ln=function(){var vt,Yt;for(vt=Dt(ut),vt===Y?Yt=ni():Yt=$i(),Pi(),vt=Dt(ut);vt===F||vt===se||vt===Y;)ut++,vt===F?(Pi(),Yt={type:o,computed:!1,object:Yt,property:$i()}):vt===se?(Yt={type:o,computed:!0,object:Yt,property:yi()},Pi(),vt=Dt(ut),vt!==ge&&pe("Unclosed [",ut),ut++):vt===Y&&(Yt={type:A,arguments:Zs(Z),callee:Yt}),Pi(),vt=Dt(ut);return Yt},ni=function(){ut++;var vt=yi();if(Pi(),Dt(ut)===Z)return ut++,vt;pe("Unclosed (",ut)},Is=function(){return ut++,{type:B,elements:Zs(ge)}},nn=[],Oi,is;ut<$r;)Oi=Dt(ut),Oi===Ve||Oi===k?ut++:(is=yi())?nn.push(is):ut<$r&&pe('Unexpected "'+Ur(ut)+'"',ut);return nn.length===1?nn[0]:{type:i,body:nn}};qt.version="0.3.5",qt.toString=function(){return"JavaScript Expression Parser (JSEP) v"+qt.version},qt.addUnaryOp=function(Rt){return Xe=Math.max(Rt.length,Xe),Ae[Rt]=Te,this},qt.addBinaryOp=function(Rt,ut){return dt=Math.max(Rt.length,dt),Le[Rt]=ut,this},qt.addLiteral=function(Rt,ut){return Nt[Rt]=ut,this},qt.removeUnaryOp=function(Rt){return delete Ae[Rt],Rt.length===Xe&&(Xe=ze(Ae)),this},qt.removeAllUnaryOps=function(){return Ae={},Xe=0,this},qt.removeBinaryOp=function(Rt){return delete Le[Rt],Rt.length===dt&&(dt=ze(Le)),this},qt.removeAllBinaryOps=function(){return Le={},dt=0,this},qt.removeLiteral=function(Rt){return delete Nt[Rt],this},qt.removeAllLiterals=function(){return Nt={},this},t.exports?e=t.exports=qt:e.parse=qt})()})(s2,s2.exports);var eAe=s2.exports;const tAe=oA(eAe),OM={"||":(t,e)=>t||e,"&&":(t,e)=>t&&e,"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e},rAe={"-":t=>-t,"+":t=>+t,"~":t=>~t,"!":t=>!t};function DM(t,e){return t.map(function(r){return Ss(r,e)})}function FM(t,e){const r=Ss(t.object,e);let i;if(t.computed?i=Ss(t.property,e):i=t.property.name,/^__proto__|prototype|constructor$/.test(i))throw Error(`Access to member "${i}" disallowed.`);return[r,r[i]]}function Ss(t,e){const r=t;switch(r.type){case"ArrayExpression":return DM(r.elements,e);case"BinaryExpression":return OM[r.operator](Ss(r.left,e),Ss(r.right,e));case"CallExpression":let i,n,o;return r.callee.type==="MemberExpression"?(o=FM(r.callee,e),i=o[0],n=o[1]):n=Ss(r.callee,e),typeof n!="function"?void 0:n.apply(i,DM(r.arguments,e));case"ConditionalExpression":return Ss(r.test,e)?Ss(r.consequent,e):Ss(r.alternate,e);case"Identifier":return e[r.name];case"Literal":return r.value;case"LogicalExpression":return r.operator==="||"?Ss(r.left,e)||Ss(r.right,e):r.operator==="&&"?Ss(r.left,e)&&Ss(r.right,e):OM[r.operator](Ss(r.left,e),Ss(r.right,e));case"MemberExpression":return FM(r,e)[1];case"ThisExpression":return e;case"UnaryExpression":return rAe[r.operator](Ss(r.argument,e));default:return}}const b1={"-":t=>t};function zF(t,e){if(t in b1)return b1[t];let r;const i=tAe(t);return i.type==="Identifier"?r=n=>Yde(n,t):(o2(i,n=>{if(n.type==="CallExpression")throw new Error("Function calls not allowed in JSON expressions")}),r=n=>Ss(i,n)),b1[t]=r,r}function o2(t,e){if(Array.isArray(t))t.forEach(r=>o2(r,e));else if(t&&typeof t=="object"){t.type&&e(t);for(const r in t)o2(t[r],e)}}const n_="@@=",LM="@@#",iAe="@@type",VF="@@function",kM=t=>t&&typeof t=="object";class a2{constructor(...e){this.typeKey=iAe,this.functionKey=VF,this.log=console,this.classes={},this.reactComponents={},this.enumerations={},this.constants={},this.functions={},this.React=null,this.convertFunction=zF,this.preProcessClassProps=(r,i)=>i,this.postProcessConvertedJson=r=>r;for(const r of e)this.merge(r)}merge(e){for(const r in e)switch(r){case"layers":case"views":Object.assign(this.classes,e[r]);break;default:if(r in this){const i=e[r];this[r]=kM(this[r])?Object.assign(this[r],i):i}}}validate(e){return n2(!this.typeKey||typeof this.typeKey=="string"),n2(kM(this.classes)),!0}}function nAe(t){return typeof t=="string"&&t.startsWith(n_)}function sAe(t){return t.replace(n_,"")}function jF(t,e){const r={};for(const i in t){let n=t[i];nAe(n)&&(n=sAe(n),n=zF(n)),r[i]=n}return r}function oAe(t,e,r){const i=r.classes[t],n=r.reactComponents[t];if(!i&&!n){const{log:o}=r;if(o){const s=JSON.stringify(e,null,0).slice(0,40);o.warn(`JSON converter: No registered class of type ${t}(${s}...) `)}return null}return i?aAe(i,e,r):lAe(n,e,r)}function aAe(t,e,r){return r.preProcessClassProps&&(e=r.preProcessClassProps(t,e,r)),e=jF(e),new t(e)}function lAe(t,e,r){const{React:i}=r,{children:n=[]}=e;return delete e.children,r.preProcessClassProps&&(e=r.preProcessClassProps(t,e,r)),e=jF(e),i.createElement(t,e,n)}function cAe(t,e,r){const i=r.functions[t];if(!i){const{log:n}=r;if(n){const o=JSON.stringify(e,null,0).slice(0,40);n.warn(`JSON converter: No registered function ${t}(${o}...) `)}return null}return i(e)}function uAe(t){return typeof t=="string"?JSON.parse(t):t}const Nw=t=>t&&typeof t=="object";class hAe{constructor(e){this.log=console,this.onJSONChange=()=>{},this.json=null,this.convertedJson=null,this.setProps(e)}finalize(){}setProps(e){"configuration"in e&&(this.configuration=e.configuration instanceof a2?e.configuration:new a2(e.configuration)),"onJSONChange"in e&&(this.onJSONChange=e.onJSONChange)}mergeConfiguration(e){this.configuration.merge(e)}convert(e){if(!e||e===this.json)return this.convertedJson;this.json=e;const r=uAe(e);let i=fAe(r,this.configuration);return i=this.configuration.postProcessConvertedJson(i),this.convertedJson=i,i}convertJson(e){return this.convert(e)}}function fAe(t,e){return e=new a2(e),Uw(t,"",e)}function Uw(t,e,r){return Array.isArray(t)?t.map((i,n)=>Uw(i,String(n),r)):dAe(t,r)?AAe(t,r):Nw(t)?VF in t?pAe(t,r):zw(t,r):typeof t=="string"?gAe(t,e,r):t}function dAe(t,e){const{typeKey:r}=e;return Nw(t)&&!!t[r]}function AAe(t,e){const{typeKey:r}=e,i=t[r];let n={...t};return delete n[r],n=zw(n,e),oAe(i,n,e)}function pAe(t,e){const{functionKey:r}=e,i=t[r];let n={...t};return delete n[r],n=zw(n,e),cAe(i,n,e)}function zw(t,e){n2(Nw(t));const r={};for(const i in t){const n=t[i];r[i]=Uw(n,i,e)}return r}function gAe(t,e,r){if(t.startsWith(n_)&&r.convertFunction)return t=t.replace(n_,""),r.convertFunction(t,r);if(t.startsWith(LM)){if(t=t.replace(LM,""),r.constants[t])return r.constants[t];const[i,n]=t.split(".");return r.enumerations[i][n]}return t}const mAe={classes:{...ste,...Zde,...Vce,...Mse,...Kde},functions:{colorBins:ife,colorCategories:nfe,colorContinuous:sfe}},HF=new hAe({configuration:mAe}),_Ae={[iy.layerName]:["getFillColor"],[J_.layerName]:["getFillColor"],[$l.layerName]:["getFillColor"],[AA.layerName]:["getFillColor"],[X_.layerName]:["getFillColor"],[W_.layerName]:["getFillColor"],[Z_.layerName]:["getColor"],[c0.layerName]:["getTargetColor","getSourceColor"],[Lc.layerName]:["getFillColor"],[kc.layerName]:["getFillColor"],[dA.layerName]:["getColor"],[u0.layerName]:["getColor"],[$h.layerName]:["getColor"],[h0.layerName]:["getColor"],[Vu.layerName]:["getFillColor"],[f0.layerName]:["getFillColor","getColor","getLineColor"],[zu.layerName]:["getFillColor"],[Zh.layerName]:["getColor"],[g0.layerName]:["getColor"],[zh.layerName]:["getColor"]},yAe=({object:t,objectInfo:e,originalFillFunction:r})=>{const i=typeof r=="function"?r(t,e):r;if(Array.isArray(i))return[i[0]||0,i[1]||0,i[2]||0,i[3]||255];if(typeof i=="string"&&i.startsWith("@@=")){const n=HF.convert({originalColor:i}).originalColor(t);return[n[0]||0,n[1]||0,n[2]||0,n[3]||255]}return null},NM=({isSelected:t,object:e,objectInfo:r,opacity:i,originalFillFunction:n})=>{const o=yAe({object:e,objectInfo:r,originalFillFunction:n});if(!o)return null;let s=0;return t?s=Math.max(typeof o[3]=="number"?o[3]:i,i):s=Math.min(typeof o[3]=="number"?o[3]:i,i),[o[0]||0,o[1]||0,o[2]||0,s]},vAe=({isSelected:t,object:e,objectInfo:r,originalFillFunction:i,selectedColor:n,selectedOpacity:o=255,unselectedColor:s,unselectedOpacity:f=Math.floor(255*.4)})=>t?NM({opacity:o,isSelected:!0,object:e,objectInfo:r,originalFillFunction:i})||n:NM({opacity:f,isSelected:!1,object:e,objectInfo:r,originalFillFunction:i})||s,r0={selection:{indices:{},objects:{}}},UM=(t,e)=>{const r=e.match(/{(.*?)}/g);return r&&r.forEach(i=>{const n=i.substring(1,i.length-1);t.object.hasOwnProperty(n)?e=e.replace(i,t.object[n]):t.object.hasOwnProperty("properties")&&t.object.properties.hasOwnProperty(n)&&(e=e.replace(i,t.object.properties[n]))}),e};function bAe(t,e){return e.id?t.getElementState(e.id,"selection")??r0:r0}function xAe(t,e){if(!e.id)return r0;const r=t.getStringValue(e);return(r?T1.parse(r):null)??r0}function wAe(t,e,r,i){t.id&&e.setStringValue(t,JSON.stringify(r.value),{fromUi:r.fromUi},i)}const TAe=t=>{var Le;const{height:e,width:r,expanded:i}=WM(XM),{element:n,fragmentId:o,isLightTheme:s,theme:f,widgetMgr:A}=t,{selectionMode:v,tooltip:w,useContainerWidth:C}=n,I=i??!1,[B,F]=LL({element:n,getDefaultState:bAe,getStateFromWidgetMgr:xAe,updateWidgetMgrState:wAe,widgetMgr:A,fragmentId:o}),[k,V]=it.useState({bearing:0,pitch:0,zoom:11}),{height:G,width:Y}=MJ({element:n,isFullScreen:I,shouldUseContainerWidth:C,container:{height:e,width:r},heightFallback:((Le=k.initialViewState)==null?void 0:Le.height)||f.sizes.defaultMapHeight}),[Z,se]=it.useState({}),ge=v[0],Ee=ge!==void 0,Ve=Ee&&Object.keys(B.selection.indices).length>0,Fe=it.useMemo(()=>Object.freeze(T1.parse(n.json)),[I,s,n.json]),pe=it.useMemo(()=>{const ze={...Fe};if(ze.mapStyle||(ze.mapStyle=`mapbox://styles/mapbox/${s?"light":"dark"}-v9`),ze.layers){const Xe=Object.values(B.selection.indices).some(Nt=>Nt==null?void 0:Nt.length),dt=ze.layers.some(Nt=>Object.hasOwn(Nt,"pickable"));ze.layers=ze.layers.map(Nt=>{var Ot,Qt;if(!Nt||Array.isArray(Nt)||!Ee)return Nt;dt||(Nt.pickable=!0);const gr=`${Nt.id||null}`,mr=((Qt=(Ot=B==null?void 0:B.selection)==null?void 0:Ot.indices)==null?void 0:Qt[gr])||[],_r=_Ae[Nt["@@type"]];if(!_r)return Nt;const rr={...Nt};return _r.forEach(qt=>{var dr;rr.updateTriggers={[qt]:[...((dr=rr.updateTriggers)==null?void 0:dr[qt])||[],mr,Xe]};const Rt=!Xe,ut=Nt[qt];if(Rt||!ut)return rr;const Vi=255,Sr=Math.floor(255*.4),Ur=cE(f.colors.primary),Dt=[Ur[0],Ur[1],Ur[2],Vi],$r=cE(f.colors.gray20),Pi=[$r[0],$r[1],$r[2],Sr],yi=(gn,oi)=>vAe({isSelected:mr.includes(oi.index),object:gn,objectInfo:oi,originalFillFunction:ut,selectedColor:Dt,unselectedColor:Pi,selectedOpacity:Vi,unselectedOpacity:Sr});rr[qt]=yi}),rr})}return ze==null||delete ze.views,HF.convert(ze)},[B.selection.indices,s,Ee,Fe,f.colors.gray20,f.colors.primary]);it.useEffect(()=>{if(!PL(pe.initialViewState,Z)){const ze=Object.keys(pe.initialViewState).reduce((Xe,dt)=>pe.initialViewState[dt]===Z[dt]?Xe:{...Xe,[dt]:pe.initialViewState[dt]},{});V({...k,...ze}),se(pe.initialViewState)}},[pe.initialViewState,Z,k]);const Te=it.useCallback(ze=>{if(!ze||!ze.object||!w)return null;const Xe=T1.parse(w);return Xe.html?Xe.html=UM(ze,Xe.html):Xe.text=UM(ze,Xe.text),Xe},[w]),Ae=it.useCallback(({viewState:ze})=>{V(ze)},[V]);return{createTooltip:Te,data:B,deck:pe,hasActiveSelection:Ve,height:G,isSelectionModeActivated:Ee,onViewStateChange:Ae,selectionMode:ge,setSelection:F,viewState:k,width:Y}};s0([hx,tA]);const x1=r0.selection,EAe=[],SAe=t=>{const{disabled:e,disableFullscreenMode:r,element:i,fragmentId:n,mapboxToken:o,widgetMgr:s}=t,{mapboxToken:f}=i,A=IL(),{expanded:v,expand:w,collapse:C}=WM(XM),{createTooltip:I,data:B,deck:F,hasActiveSelection:k,height:V,isSelectionModeActivated:G,onViewStateChange:Y,selectionMode:Z,setSelection:se,viewState:ge,width:Ee}=TAe({element:i,fragmentId:n,isLightTheme:GM(A),theme:A,widgetMgr:s}),[Ve,Fe]=it.useState(!1);it.useEffect(()=>{Fe(!0)},[]);const pe=it.useCallback(Ae=>{var _r;if(Z===void 0)return;const{index:Le,object:ze}=Ae,Xe=`${((_r=Ae.layer)==null?void 0:_r.id)||null}`,dt=B,Nt=Le===-1,mr=(()=>{var rr;if(Nt)return x1;switch(Z){case uE.SelectionMode.SINGLE_OBJECT:return((rr=dt.selection.indices[Xe])==null?void 0:rr[0])===Le?x1:{indices:{[`${Xe}`]:[Le]},objects:{[`${Xe}`]:[ze]}};case uE.SelectionMode.MULTI_OBJECT:{const Ot=new Map((()=>{var qt,Rt;return(((Rt=(qt=dt==null?void 0:dt.selection)==null?void 0:qt.indices)==null?void 0:Rt[Xe])||[]).map((ut,Vi)=>{var Sr,Ur,Dt;return[ut,(Dt=(Ur=(Sr=dt.selection)==null?void 0:Sr.objects)==null?void 0:Ur[Xe])==null?void 0:Dt[Vi]]})})());if(Ot.has(Le)?Ot.delete(Le):Ot.set(Le,ze),Ot.size===0){const{[Xe]:Qt,...qt}=dt.selection.indices,{[Xe]:Rt,...ut}=dt.selection.objects;return{indices:qt,objects:ut}}return{indices:{...dt.selection.indices,[`${Xe}`]:Array.from(Ot.keys())},objects:{...dt.selection.objects,[`${Xe}`]:Array.from(Ot.values())}}}default:throw ML(Z),new Error("Invalid selection mode")}})();JSON.stringify(mr)!==JSON.stringify(dt.selection)&&se({fromUi:!0,value:{selection:mr}})},[Z,B,se]),Te=it.useCallback(()=>{se({value:{selection:x1},fromUi:!0})},[se]);return Ll(E3,{className:"stDeckGlJsonChart","data-testid":"stDeckGlJsonChart",width:Ee,height:V,children:[ms(DL,{isFullScreen:v,disableFullscreenMode:r,onExpand:w,onCollapse:C,target:E3,locked:k&&!e?!0:void 0,children:k&&!e&&ms(OL,{label:"Clear selection",onClick:Te,icon:BL})}),Ll(SX,{viewState:ge,onViewStateChange:Y,height:V,width:Ee,layers:Ve?F.layers:EAe,getTooltip:I,ContextProvider:qh.Provider,controller:!0,onClick:G&&!e?pe:void 0,children:[ms(Fc,{height:V,width:Ee,mapStyle:F.mapStyle&&(typeof F.mapStyle=="string"?F.mapStyle:F.mapStyle[0]),mapboxApiAccessToken:f||o}),ms(IJ,{children:ms(nZ,{"data-testid":"stDeckGlJsonChartZoomButton",showCompass:!1})})]})]})},JAe=it.memo(FL(PJ("st.pydeck_chart")(SAe)));export{JAe as default};
@@ -0,0 +1 @@
1
+ import{n as s,r as b,R as u,aF as k,ba as C,y as L,j as n,b8 as v,bb as y,z as T,D as w,aE as S}from"./index.Blgy4CCd.js";const h=s("div",{target:"e1xmaixs0"})({display:"flex",flexDirection:"column"}),P=s("a",{target:"e1xmaixs1"})(({disabled:a,isCurrentPage:o,fluidWidth:l,theme:e})=>({textDecoration:"none",width:typeof l=="number"?`${l}px`:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:e.spacing.sm,borderRadius:e.radii.default,paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,marginTop:e.spacing.threeXS,marginBottom:e.spacing.threeXS,lineHeight:e.lineHeights.menuItem,backgroundColor:o?e.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?e.colors.darkenedBgMix25:e.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:e.colors.darkenedBgMix15},"@media print":{paddingLeft:e.spacing.none},...a?{borderColor:e.colors.borderColor,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed","&:hover":{color:e.colors.fadedText40,backgroundColor:e.colors.transparent}}:{}})),D=s("span",{target:"e1xmaixs2"})(({disabled:a,theme:o})=>({color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...a?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}));function m(a,o){return a===null&&o?!0:a===null&&!o?!1:a===!0}function B(a){const{onPageChange:o,currentPageScriptHash:l}=u.useContext(k),e=u.useContext(C),{colors:i}=L(),{disabled:t,element:r,width:c}=a,p={width:c},f=m(r.useContainerWidth,e),d=l===r.pageScriptHash,x=g=>{r.external?t&&g.preventDefault():(g.preventDefault(),t||o(r.pageScriptHash))};return n("div",{className:"stPageLink","data-testid":"stPageLink",style:p,children:n(v,{help:r.help,placement:y.TOP_RIGHT,children:n(h,{children:T(P,{"data-testid":"stPageLink-NavLink",disabled:t,isCurrentPage:d,fluidWidth:f?c:!1,href:r.page,target:r.external?"_blank":"",rel:"noreferrer",onClick:x,children:[r.icon&&n(w,{size:"lg",color:t?i.fadedText40:i.bodyText,iconValue:r.icon}),n(D,{disabled:t,children:n(S,{source:r.label,allowHTML:!1,isLabel:!0,boldLabel:d,largerLabel:!0,disableLinks:!0})})]})})})})}const M=b.memo(B);export{M as default};
@@ -0,0 +1 @@
1
+ import{r as i,j as g,br as b,bO as m}from"./index.Blgy4CCd.js";import{a as f}from"./useBasicWidgetState.GQaAM6uH.js";import"./FormClearHelper.D3S2tctS.js";const p=(t,e)=>t.getStringValue(e),C=t=>t.default??null,d=t=>t.value??null,S=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},V=({element:t,disabled:e,widgetMgr:r,width:o,fragmentId:s})=>{var l;const[u,a]=f({getStateFromWidgetMgr:p,getDefaultStateFromProto:C,getCurrStateFromProto:d,updateWidgetMgrState:S,element:t,widgetMgr:r,fragmentId:s}),n=i.useCallback(c=>{a({value:c,fromUi:!0})},[a]);return g(m,{label:t.label,labelVisibility:b((l=t.labelVisibility)==null?void 0:l.value),help:t.help,onChange:n,disabled:e,width:o,value:u})},v=i.memo(V);export{v as default};
@@ -1,4 +1,4 @@
1
- import{r as u,E as $,_ as H,a$ as ut,bk as Ht,bl as Vt,bm as jt,K as G,N as X,R as yt,aF as Gt,n as x,bn as Xt,z,j as v,bo as qt,b8 as Yt,bp as Kt,bq as Zt,am as Jt,y as Qt,br as Q,C as te,aC as ee,bs as ie,bt as se,bc as ne,bu as re}from"./index.9wBA4A4f.js";import{u as oe,F as ae}from"./FormClearHelper.BBpErIGP.js";import{T as le,a as pt}from"./Toolbar.D-hUr0RX.js";import{u as ce}from"./Hooks.CeSTXIj2.js";import{c as de}from"./createDownloadLinkElement.DZMwyjvU.js";import{F as he,D as ue}from"./FileDownload.esm.D9415avj.js";var wt=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("g",{fill:"none"},u.createElement("rect",{width:24,height:24}),u.createElement("rect",{width:24,height:24}),u.createElement("rect",{width:24,height:24})),u.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),u.createElement("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"}))});wt.displayName="Mic";var Ct=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("rect",{width:24,height:24,fill:"none"}),u.createElement("path",{d:"M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2zm6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2z"}))});Ct.displayName="Pause";var St=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("rect",{width:24,height:24,fill:"none"}),u.createElement("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18a1 1 0 000-1.69L9.54 5.98A.998.998 0 008 6.82z"}))});St.displayName="PlayArrow";var Rt=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M17.65 6.35a7.95 7.95 0 00-6.48-2.31c-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20a7.98 7.98 0 007.21-4.56c.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53a5.994 5.994 0 01-6.8 3.31c-2.22-.49-4.01-2.3-4.48-4.52A6.002 6.002 0 0112 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71l-.64.65z"}))});Rt.displayName="Refresh";var Et=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("g",{fill:"none"},u.createElement("rect",{width:24,height:24}),u.createElement("rect",{width:24,height:24})),u.createElement("path",{fillRule:"evenodd",d:"M9 16h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"}))});Et.displayName="StopCircle";function E(s,t,e,i){return new(e||(e=Promise))(function(r,n){function a(c){try{d(i.next(c))}catch(l){n(l)}}function o(c){try{d(i.throw(c))}catch(l){n(l)}}function d(c){var l;c.done?r(c.value):(l=c.value,l instanceof e?l:new e(function(p){p(l)})).then(a,o)}d((i=i.apply(s,t||[])).next())})}let V=class{constructor(){this.listeners={}}on(t,e,i){if(this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].add(e),i==null?void 0:i.once){const r=()=>{this.un(t,r),this.un(t,e)};return this.on(t,r),r}return()=>this.un(t,e)}un(t,e){var i;(i=this.listeners[t])===null||i===void 0||i.delete(e)}once(t,e){return this.on(t,e,{once:!0})}unAll(){this.listeners={}}emit(t,...e){this.listeners[t]&&this.listeners[t].forEach(i=>i(...e))}};const mt={decode:function(s,t){return E(this,void 0,void 0,function*(){const e=new AudioContext({sampleRate:t});return e.decodeAudioData(s).finally(()=>e.close())})},createBuffer:function(s,t){return typeof s[0]=="number"&&(s=[s]),function(e){const i=e[0];if(i.some(r=>r>1||r<-1)){const r=i.length;let n=0;for(let a=0;a<r;a++){const o=Math.abs(i[a]);o>n&&(n=o)}for(const a of e)for(let o=0;o<r;o++)a[o]/=n}}(s),{duration:t,length:s[0].length,sampleRate:s[0].length/t,numberOfChannels:s.length,getChannelData:e=>s==null?void 0:s[e],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function xt(s,t){const e=t.xmlns?document.createElementNS(t.xmlns,s):document.createElement(s);for(const[i,r]of Object.entries(t))if(i==="children")for(const[n,a]of Object.entries(t))typeof a=="string"?e.appendChild(document.createTextNode(a)):e.appendChild(xt(n,a));else i==="style"?Object.assign(e.style,r):i==="textContent"?e.textContent=r:e.setAttribute(i,r.toString());return e}function ft(s,t,e){const i=xt(s,t||{});return e==null||e.appendChild(i),i}var pe=Object.freeze({__proto__:null,createElement:ft,default:ft});const me={fetchBlob:function(s,t,e){return E(this,void 0,void 0,function*(){const i=yield fetch(s,e);if(i.status>=400)throw new Error(`Failed to fetch ${s}: ${i.status} (${i.statusText})`);return function(r,n){E(this,void 0,void 0,function*(){if(!r.body||!r.headers)return;const a=r.body.getReader(),o=Number(r.headers.get("Content-Length"))||0;let d=0;const c=p=>E(this,void 0,void 0,function*(){d+=(p==null?void 0:p.length)||0;const h=Math.round(d/o*100);n(h)}),l=()=>E(this,void 0,void 0,function*(){let p;try{p=yield a.read()}catch{return}p.done||(c(p.value),yield l())});l()})}(i.clone(),t),i.blob()})}};class fe extends V{constructor(t){super(),this.isExternalMedia=!1,t.media?(this.media=t.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),t.mediaControls&&(this.media.controls=!0),t.autoplay&&(this.media.autoplay=!0),t.playbackRate!=null&&this.onMediaEvent("canplay",()=>{t.playbackRate!=null&&(this.media.playbackRate=t.playbackRate)},{once:!0})}onMediaEvent(t,e,i){return this.media.addEventListener(t,e,i),()=>this.media.removeEventListener(t,e,i)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const t=this.getSrc();t.startsWith("blob:")&&URL.revokeObjectURL(t)}canPlayType(t){return this.media.canPlayType(t)!==""}setSrc(t,e){const i=this.getSrc();if(t&&i===t)return;this.revokeSrc();const r=e instanceof Blob&&(this.canPlayType(e.type)||!t)?URL.createObjectURL(e):t;try{this.media.src=r}catch{this.media.src=t}}destroy(){this.media.pause(),this.isExternalMedia||(this.media.remove(),this.revokeSrc(),this.media.src="",this.media.load())}setMediaElement(t){this.media=t}play(){return E(this,void 0,void 0,function*(){return this.media.play()})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(t){this.media.currentTime=t}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(t){this.media.volume=t}getMuted(){return this.media.muted}setMuted(t){this.media.muted=t}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(t,e){e!=null&&(this.media.preservesPitch=e),this.media.playbackRate=t}getMediaElement(){return this.media}setSinkId(t){return this.media.setSinkId(t)}}class N extends V{constructor(t,e){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.subscriptions=[],this.options=t;const i=this.parentFromOptionsContainer(t.container);this.parent=i;const[r,n]=this.initHtml();i.appendChild(r),this.container=r,this.scrollContainer=n.querySelector(".scroll"),this.wrapper=n.querySelector(".wrapper"),this.canvasWrapper=n.querySelector(".canvases"),this.progressWrapper=n.querySelector(".progress"),this.cursor=n.querySelector(".cursor"),e&&n.appendChild(e),this.initEvents()}parentFromOptionsContainer(t){let e;if(typeof t=="string"?e=document.querySelector(t):t instanceof HTMLElement&&(e=t),!e)throw new Error("Container not found");return e}initEvents(){const t=e=>{const i=this.wrapper.getBoundingClientRect(),r=e.clientX-i.left,n=e.clientY-i.top;return[r/i.width,n/i.height]};if(this.wrapper.addEventListener("click",e=>{const[i,r]=t(e);this.emit("click",i,r)}),this.wrapper.addEventListener("dblclick",e=>{const[i,r]=t(e);this.emit("dblclick",i,r)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:e,scrollWidth:i,clientWidth:r}=this.scrollContainer,n=e/i,a=(e+r)/i;this.emit("scroll",n,a,e,e+r)}),typeof ResizeObserver=="function"){const e=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{e().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const t=this.parent.clientWidth;t===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=t,this.reRender())}initDrag(){this.subscriptions.push(function(t,e,i,r,n=3,a=0,o=100){if(!t)return()=>{};const d=matchMedia("(pointer: coarse)").matches;let c=()=>{};const l=p=>{if(p.button!==a)return;p.preventDefault(),p.stopPropagation();let h=p.clientX,m=p.clientY,f=!1;const b=Date.now(),g=C=>{if(C.preventDefault(),C.stopPropagation(),d&&Date.now()-b<o)return;const D=C.clientX,W=C.clientY,M=D-h,A=W-m;if(f||Math.abs(M)>n||Math.abs(A)>n){const I=t.getBoundingClientRect(),{left:U,top:O}=I;f||(i==null||i(h-U,m-O),f=!0),e(M,A,D-U,W-O),h=D,m=W}},w=C=>{if(f){const D=C.clientX,W=C.clientY,M=t.getBoundingClientRect(),{left:A,top:I}=M;r==null||r(D-A,W-I)}c()},y=C=>{C.relatedTarget&&C.relatedTarget!==document.documentElement||w(C)},P=C=>{f&&(C.stopPropagation(),C.preventDefault())},T=C=>{f&&C.preventDefault()};document.addEventListener("pointermove",g),document.addEventListener("pointerup",w),document.addEventListener("pointerout",y),document.addEventListener("pointercancel",y),document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("click",P,{capture:!0}),c=()=>{document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",w),document.removeEventListener("pointerout",y),document.removeEventListener("pointercancel",y),document.removeEventListener("touchmove",T),setTimeout(()=>{document.removeEventListener("click",P,{capture:!0})},10)}};return t.addEventListener("pointerdown",l),()=>{c(),t.removeEventListener("pointerdown",l)}}(this.wrapper,(t,e,i)=>{this.emit("drag",Math.max(0,Math.min(1,i/this.wrapper.getBoundingClientRect().width)))},t=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))},t=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))}))}getHeight(t,e){var i;const r=((i=this.audioData)===null||i===void 0?void 0:i.numberOfChannels)||1;if(t==null)return 128;if(!isNaN(Number(t)))return Number(t);if(t==="auto"){const n=this.parent.clientHeight||128;return e!=null&&e.every(a=>!a.overlay)?n/r:n}return 128}initHtml(){const t=document.createElement("div"),e=t.attachShadow({mode:"open"}),i=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return e.innerHTML=`
1
+ import{r as u,E as $,_ as H,a_ as ut,bj as Ht,bk as Vt,bl as jt,K as G,N as X,R as yt,aF as Gt,n as x,bm as Xt,z,j as v,bn as qt,b7 as Yt,bo as Kt,bp as Zt,am as Jt,y as Qt,bq as Q,C as te,aC as ee,br as ie,bs as se,bb as ne,bt as re}from"./index.Blgy4CCd.js";import{u as oe,F as ae}from"./FormClearHelper.D3S2tctS.js";import{T as le,a as pt}from"./Toolbar.CRowl_WL.js";import{u as ce}from"./Hooks.BwOODKo2.js";import{c as de}from"./createDownloadLinkElement.DZMwyjvU.js";import{F as he,D as ue}from"./FileDownload.esm.CJC5yID5.js";var wt=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("g",{fill:"none"},u.createElement("rect",{width:24,height:24}),u.createElement("rect",{width:24,height:24}),u.createElement("rect",{width:24,height:24})),u.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),u.createElement("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"}))});wt.displayName="Mic";var Ct=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("rect",{width:24,height:24,fill:"none"}),u.createElement("path",{d:"M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2zm6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2z"}))});Ct.displayName="Pause";var St=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("rect",{width:24,height:24,fill:"none"}),u.createElement("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18a1 1 0 000-1.69L9.54 5.98A.998.998 0 008 6.82z"}))});St.displayName="PlayArrow";var Rt=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),u.createElement("path",{d:"M17.65 6.35a7.95 7.95 0 00-6.48-2.31c-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20a7.98 7.98 0 007.21-4.56c.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53a5.994 5.994 0 01-6.8 3.31c-2.22-.49-4.01-2.3-4.48-4.52A6.002 6.002 0 0112 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71l-.64.65z"}))});Rt.displayName="Refresh";var Et=u.forwardRef(function(s,t){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return u.createElement($,H({iconAttrs:e,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},s,{ref:t}),u.createElement("g",{fill:"none"},u.createElement("rect",{width:24,height:24}),u.createElement("rect",{width:24,height:24})),u.createElement("path",{fillRule:"evenodd",d:"M9 16h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"}))});Et.displayName="StopCircle";function E(s,t,e,i){return new(e||(e=Promise))(function(r,n){function a(c){try{d(i.next(c))}catch(l){n(l)}}function o(c){try{d(i.throw(c))}catch(l){n(l)}}function d(c){var l;c.done?r(c.value):(l=c.value,l instanceof e?l:new e(function(p){p(l)})).then(a,o)}d((i=i.apply(s,t||[])).next())})}let V=class{constructor(){this.listeners={}}on(t,e,i){if(this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].add(e),i==null?void 0:i.once){const r=()=>{this.un(t,r),this.un(t,e)};return this.on(t,r),r}return()=>this.un(t,e)}un(t,e){var i;(i=this.listeners[t])===null||i===void 0||i.delete(e)}once(t,e){return this.on(t,e,{once:!0})}unAll(){this.listeners={}}emit(t,...e){this.listeners[t]&&this.listeners[t].forEach(i=>i(...e))}};const mt={decode:function(s,t){return E(this,void 0,void 0,function*(){const e=new AudioContext({sampleRate:t});return e.decodeAudioData(s).finally(()=>e.close())})},createBuffer:function(s,t){return typeof s[0]=="number"&&(s=[s]),function(e){const i=e[0];if(i.some(r=>r>1||r<-1)){const r=i.length;let n=0;for(let a=0;a<r;a++){const o=Math.abs(i[a]);o>n&&(n=o)}for(const a of e)for(let o=0;o<r;o++)a[o]/=n}}(s),{duration:t,length:s[0].length,sampleRate:s[0].length/t,numberOfChannels:s.length,getChannelData:e=>s==null?void 0:s[e],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}};function xt(s,t){const e=t.xmlns?document.createElementNS(t.xmlns,s):document.createElement(s);for(const[i,r]of Object.entries(t))if(i==="children")for(const[n,a]of Object.entries(t))typeof a=="string"?e.appendChild(document.createTextNode(a)):e.appendChild(xt(n,a));else i==="style"?Object.assign(e.style,r):i==="textContent"?e.textContent=r:e.setAttribute(i,r.toString());return e}function ft(s,t,e){const i=xt(s,t||{});return e==null||e.appendChild(i),i}var pe=Object.freeze({__proto__:null,createElement:ft,default:ft});const me={fetchBlob:function(s,t,e){return E(this,void 0,void 0,function*(){const i=yield fetch(s,e);if(i.status>=400)throw new Error(`Failed to fetch ${s}: ${i.status} (${i.statusText})`);return function(r,n){E(this,void 0,void 0,function*(){if(!r.body||!r.headers)return;const a=r.body.getReader(),o=Number(r.headers.get("Content-Length"))||0;let d=0;const c=p=>E(this,void 0,void 0,function*(){d+=(p==null?void 0:p.length)||0;const h=Math.round(d/o*100);n(h)}),l=()=>E(this,void 0,void 0,function*(){let p;try{p=yield a.read()}catch{return}p.done||(c(p.value),yield l())});l()})}(i.clone(),t),i.blob()})}};class fe extends V{constructor(t){super(),this.isExternalMedia=!1,t.media?(this.media=t.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),t.mediaControls&&(this.media.controls=!0),t.autoplay&&(this.media.autoplay=!0),t.playbackRate!=null&&this.onMediaEvent("canplay",()=>{t.playbackRate!=null&&(this.media.playbackRate=t.playbackRate)},{once:!0})}onMediaEvent(t,e,i){return this.media.addEventListener(t,e,i),()=>this.media.removeEventListener(t,e,i)}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const t=this.getSrc();t.startsWith("blob:")&&URL.revokeObjectURL(t)}canPlayType(t){return this.media.canPlayType(t)!==""}setSrc(t,e){const i=this.getSrc();if(t&&i===t)return;this.revokeSrc();const r=e instanceof Blob&&(this.canPlayType(e.type)||!t)?URL.createObjectURL(e):t;try{this.media.src=r}catch{this.media.src=t}}destroy(){this.media.pause(),this.isExternalMedia||(this.media.remove(),this.revokeSrc(),this.media.src="",this.media.load())}setMediaElement(t){this.media=t}play(){return E(this,void 0,void 0,function*(){return this.media.play()})}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(t){this.media.currentTime=t}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(t){this.media.volume=t}getMuted(){return this.media.muted}setMuted(t){this.media.muted=t}getPlaybackRate(){return this.media.playbackRate}isSeeking(){return this.media.seeking}setPlaybackRate(t,e){e!=null&&(this.media.preservesPitch=e),this.media.playbackRate=t}getMediaElement(){return this.media}setSinkId(t){return this.media.setSinkId(t)}}class N extends V{constructor(t,e){super(),this.timeouts=[],this.isScrollable=!1,this.audioData=null,this.resizeObserver=null,this.lastContainerWidth=0,this.isDragging=!1,this.subscriptions=[],this.subscriptions=[],this.options=t;const i=this.parentFromOptionsContainer(t.container);this.parent=i;const[r,n]=this.initHtml();i.appendChild(r),this.container=r,this.scrollContainer=n.querySelector(".scroll"),this.wrapper=n.querySelector(".wrapper"),this.canvasWrapper=n.querySelector(".canvases"),this.progressWrapper=n.querySelector(".progress"),this.cursor=n.querySelector(".cursor"),e&&n.appendChild(e),this.initEvents()}parentFromOptionsContainer(t){let e;if(typeof t=="string"?e=document.querySelector(t):t instanceof HTMLElement&&(e=t),!e)throw new Error("Container not found");return e}initEvents(){const t=e=>{const i=this.wrapper.getBoundingClientRect(),r=e.clientX-i.left,n=e.clientY-i.top;return[r/i.width,n/i.height]};if(this.wrapper.addEventListener("click",e=>{const[i,r]=t(e);this.emit("click",i,r)}),this.wrapper.addEventListener("dblclick",e=>{const[i,r]=t(e);this.emit("dblclick",i,r)}),this.options.dragToSeek!==!0&&typeof this.options.dragToSeek!="object"||this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:e,scrollWidth:i,clientWidth:r}=this.scrollContainer,n=e/i,a=(e+r)/i;this.emit("scroll",n,a,e,e+r)}),typeof ResizeObserver=="function"){const e=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{e().then(()=>this.onContainerResize()).catch(()=>{})}),this.resizeObserver.observe(this.scrollContainer)}}onContainerResize(){const t=this.parent.clientWidth;t===this.lastContainerWidth&&this.options.height!=="auto"||(this.lastContainerWidth=t,this.reRender())}initDrag(){this.subscriptions.push(function(t,e,i,r,n=3,a=0,o=100){if(!t)return()=>{};const d=matchMedia("(pointer: coarse)").matches;let c=()=>{};const l=p=>{if(p.button!==a)return;p.preventDefault(),p.stopPropagation();let h=p.clientX,m=p.clientY,f=!1;const b=Date.now(),g=C=>{if(C.preventDefault(),C.stopPropagation(),d&&Date.now()-b<o)return;const D=C.clientX,W=C.clientY,M=D-h,A=W-m;if(f||Math.abs(M)>n||Math.abs(A)>n){const I=t.getBoundingClientRect(),{left:U,top:O}=I;f||(i==null||i(h-U,m-O),f=!0),e(M,A,D-U,W-O),h=D,m=W}},w=C=>{if(f){const D=C.clientX,W=C.clientY,M=t.getBoundingClientRect(),{left:A,top:I}=M;r==null||r(D-A,W-I)}c()},y=C=>{C.relatedTarget&&C.relatedTarget!==document.documentElement||w(C)},P=C=>{f&&(C.stopPropagation(),C.preventDefault())},T=C=>{f&&C.preventDefault()};document.addEventListener("pointermove",g),document.addEventListener("pointerup",w),document.addEventListener("pointerout",y),document.addEventListener("pointercancel",y),document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("click",P,{capture:!0}),c=()=>{document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",w),document.removeEventListener("pointerout",y),document.removeEventListener("pointercancel",y),document.removeEventListener("touchmove",T),setTimeout(()=>{document.removeEventListener("click",P,{capture:!0})},10)}};return t.addEventListener("pointerdown",l),()=>{c(),t.removeEventListener("pointerdown",l)}}(this.wrapper,(t,e,i)=>{this.emit("drag",Math.max(0,Math.min(1,i/this.wrapper.getBoundingClientRect().width)))},t=>{this.isDragging=!0,this.emit("dragstart",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))},t=>{this.isDragging=!1,this.emit("dragend",Math.max(0,Math.min(1,t/this.wrapper.getBoundingClientRect().width)))}))}getHeight(t,e){var i;const r=((i=this.audioData)===null||i===void 0?void 0:i.numberOfChannels)||1;if(t==null)return 128;if(!isNaN(Number(t)))return Number(t);if(t==="auto"){const n=this.parent.clientHeight||128;return e!=null&&e.every(a=>!a.overlay)?n/r:n}return 128}initHtml(){const t=document.createElement("div"),e=t.attachShadow({mode:"open"}),i=this.options.cspNonce&&typeof this.options.cspNonce=="string"?this.options.cspNonce.replace(/"/g,""):"";return e.innerHTML=`
2
2
  <style${i?` nonce="${i}"`:""}>
3
3
  :host {
4
4
  user-select: none;
@@ -0,0 +1 @@
1
+ import{n,r as c,N as d,j as g,b3 as e,b4 as l,K as h}from"./index.Blgy4CCd.js";const m=n("iframe",{target:"e1q9bkxk0"})(({theme:o,disableScrolling:r})=>({colorScheme:"normal",border:"none",padding:o.spacing.none,margin:o.spacing.none,overflow:r?"hidden":void 0}));function a(o){return h(o)||o===""?void 0:o}function F({element:o,width:r}){const t=o.hasWidth?o.width:r,s=a(o.src),i=d(s)?void 0:a(o.srcdoc);return g(m,{className:"stIFrame","data-testid":"stIFrame",allow:e,disableScrolling:!o.scrolling,src:s,srcDoc:i,width:t,height:o.height,scrolling:o.scrolling?"auto":"no",sandbox:l,title:"st.iframe"})}const f=c.memo(F);export{f as default};
@@ -0,0 +1 @@
1
+ import{n as c,b5 as v,az as y,b6 as l,b7 as t,j as s,r as C,b8 as k,b9 as B}from"./index.Blgy4CCd.js";function S(o,i){switch(o){case l.XSMALL:return{padding:`${i.spacing.twoXS} ${i.spacing.sm}`,fontSize:i.fontSizes.sm};case l.SMALL:return{padding:`${i.spacing.twoXS} ${i.spacing.md}`};case l.LARGE:return{padding:`${i.spacing.md} ${i.spacing.md}`};default:return{padding:`${i.spacing.xs} ${i.spacing.md}`}}}const g=c("a",{target:"efj1jhq0"})(({fluidWidth:o,size:i,theme:r})=>{const a=typeof o=="number"?`${o}px`:"100%";return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:`${r.spacing.xs} ${r.spacing.md}`,borderRadius:r.radii.default,minHeight:r.sizes.minElementHeight,margin:0,lineHeight:r.lineHeights.base,color:r.colors.primary,textDecoration:"none",width:o?a:"auto",userSelect:"none","&:visited":{color:r.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${y(r.colors.primary,.5)}`},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...S(i,r)}}),x=c(g,{target:"efj1jhq1"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover":{backgroundColor:v(o.colors.primary,.05),color:o.colors.white},"&:active":{backgroundColor:"transparent",color:o.colors.primary},"&:visited:not(:active)":{color:o.colors.white},"&[disabled], &[disabled]:hover, &[disabled]:active, &[disabled]:visited":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),$=c(g,{target:"efj1jhq2"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover":{borderColor:o.colors.primary,color:o.colors.primary},"&:active":{color:o.colors.white,borderColor:o.colors.primary,backgroundColor:o.colors.primary},"&:focus:not(:active)":{borderColor:o.colors.primary,color:o.colors.primary},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),L=c(g,{target:"efj1jhq3"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover":{color:o.colors.primary},"&:active":{color:o.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{color:o.colors.primary,boxShadow:`0 0 0 0.2rem ${y(o.colors.primary,.5)}`},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}}));function w({kind:o,size:i,disabled:r,fluidWidth:a,children:d,autoFocus:n,href:e,rel:u,target:b,onClick:f}){let p=x;return o===t.SECONDARY?p=$:o===t.TERTIARY&&(p=L),s(p,{kind:o,size:i||l.MEDIUM,fluidWidth:a||!1,disabled:r||!1,autoFocus:n||!1,href:e,target:b,rel:u,onClick:f,tabIndex:r?-1:0,"data-testid":`stBaseLinkButton-${o}`,children:d})}function T(o){const{disabled:i,element:r,width:a}=o,d={width:a};let n=t.SECONDARY;r.type==="primary"?n=t.PRIMARY:r.type==="tertiary"&&(n=t.TERTIARY);const e=r.help?a:!0,u=b=>{o.disabled&&b.preventDefault()};return s("div",{className:"stLinkButton","data-testid":"stLinkButton",style:d,children:s(k,{help:r.help,children:s(w,{kind:n,size:l.SMALL,disabled:i,onClick:u,fluidWidth:r.useContainerWidth?e:!1,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":i,children:s(B,{icon:r.icon,label:r.label})})})})}const z=C.memo(T);export{z as default};
@@ -0,0 +1 @@
1
+ import{n as a,r as t,z as o,j as r,aE as i}from"./index.Blgy4CCd.js";import{P as l}from"./ProgressBar.BqFWIdp2.js";const n=a("div",{target:"e1675qd10"})(({theme:s})=>({paddingBottom:s.spacing.sm,lineHeight:"normal"}));function d({element:s,width:e}){return o("div",{className:"stProgress","data-testid":"stProgress",children:[r(n,{children:r(i,{source:s.text,allowHTML:!1,isLabel:!0})}),r(l,{value:s.value,width:e})]})}const c=t.memo(d);export{c as default};
@@ -1 +1 @@
1
- import{n as s,k as r,r as i,j as n}from"./index.9wBA4A4f.js";import{P as m,R as c}from"./RenderInPortalIfExists.BbbrvJaa.js";const p=""+new URL("../media/balloon-0.Czj7AKwE.png",import.meta.url).href,f=""+new URL("../media/balloon-1.CNvFFrND.png",import.meta.url).href,d=""+new URL("../media/balloon-2.DTvC6B1t.png",import.meta.url).href,B=""+new URL("../media/balloon-3.CgSk4tbL.png",import.meta.url).href,L=""+new URL("../media/balloon-4.mbtFrzxf.png",import.meta.url).href,h=""+new URL("../media/balloon-5.CSwkUfRA.png",import.meta.url).href,t=300,a=121,e=20,g=80,u=1e3,x=r("from{transform:translateY(calc(100vh + ",t,"px));}to{transform:translateY(0);}"),_=s("img",{target:"eosrfo90"})(({theme:o})=>({position:"fixed",top:`${-t}px`,marginLeft:`${-a/2}px`,zIndex:o.zIndices.balloons,left:`${Math.random()*(g-e)+e}vw`,animationDelay:`${Math.random()*u}ms`,height:`${t}px`,width:`${a}px`,pointerEvents:"none",animationDuration:"750ms",animationName:x,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1})),w=30,l=[p,f,d,B,L,h],A=l.length,I=({particleType:o})=>n(_,{src:l[o]}),M=({scriptRunId:o})=>n(c,{children:n(m,{className:"stBalloons","data-testid":"stBalloons",scriptRunId:o,numParticleTypes:A,numParticles:w,ParticleComponent:I})}),S=i.memo(M);export{w as NUM_BALLOONS,S as default};
1
+ import{n as s,k as r,r as i,j as n}from"./index.Blgy4CCd.js";import{P as m,R as c}from"./RenderInPortalIfExists.ax0m2H0_.js";const p=""+new URL("../media/balloon-0.Czj7AKwE.png",import.meta.url).href,f=""+new URL("../media/balloon-1.CNvFFrND.png",import.meta.url).href,d=""+new URL("../media/balloon-2.DTvC6B1t.png",import.meta.url).href,B=""+new URL("../media/balloon-3.CgSk4tbL.png",import.meta.url).href,L=""+new URL("../media/balloon-4.mbtFrzxf.png",import.meta.url).href,h=""+new URL("../media/balloon-5.CSwkUfRA.png",import.meta.url).href,t=300,a=121,e=20,g=80,u=1e3,x=r("from{transform:translateY(calc(100vh + ",t,"px));}to{transform:translateY(0);}"),_=s("img",{target:"eosrfo90"})(({theme:o})=>({position:"fixed",top:`${-t}px`,marginLeft:`${-a/2}px`,zIndex:o.zIndices.balloons,left:`${Math.random()*(g-e)+e}vw`,animationDelay:`${Math.random()*u}ms`,height:`${t}px`,width:`${a}px`,pointerEvents:"none",animationDuration:"750ms",animationName:x,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1})),w=30,l=[p,f,d,B,L,h],A=l.length,I=({particleType:o})=>n(_,{src:l[o]}),M=({scriptRunId:o})=>n(c,{children:n(m,{className:"stBalloons","data-testid":"stBalloons",scriptRunId:o,numParticleTypes:A,numParticles:w,ParticleComponent:I})}),S=i.memo(M);export{w as NUM_BALLOONS,S as default};
@@ -0,0 +1 @@
1
+ import{n as z,r as s,y as R,cp as I,z as U,j as u,br as k,bE as H,bs as L,bb as B,bt as D,cr as j}from"./index.Blgy4CCd.js";import{u as O}from"./uniqueId.BG3aVKeE.js";import{u as _,a as K,b as $}from"./useOnInputChange.B6mIpebi.js";import{a as q}from"./useBasicWidgetState.GQaAM6uH.js";import{I as A}from"./InputInstructions.Cm2uD0mH.js";import{I as G}from"./input.RldPkbfl.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.D3S2tctS.js";import"./base-input.krLFbHyn.js";const N=z("div",{target:"e1sommdr0"})(({width:e})=>({position:"relative",width:e}));function w({disabled:e,element:t,widgetMgr:a,width:n,fragmentId:m}){var g;const[r,l]=s.useState(S(a,t)??null),[i,d]=s.useState(!1),W=s.useCallback(()=>{l(t.default??null),d(!0)},[t.default]),[y,p]=q({getStateFromWidgetMgr:S,getDefaultStateFromProto:J,getCurrStateFromProto:Q,updateWidgetMgrState:X,element:t,widgetMgr:a,fragmentId:m,onFormCleared:W});_(y,r,l,i);const[T,h]=s.useState(!1),o=R(),[b]=s.useState(()=>O("text_input_")),{placeholder:x,formId:f}=t,c=s.useCallback(()=>{d(!1),p({value:r,fromUi:!0})},[r,p]),C=I({formId:f})?a.allowFormEnterToSubmit(f):i,V=T&&n>o.breakpoints.hideWidgetDetails,F=s.useCallback(()=>{i&&c(),h(!1)},[i,c]),v=s.useCallback(()=>{h(!0)},[]),E=K({formId:t.formId,maxChars:t.maxChars,setDirty:d,setUiValue:l,setValueWithSource:p}),P=$(t.formId,c,i,a,m);return U(N,{className:"stTextInput","data-testid":"stTextInput",width:n,children:[u(D,{label:t.label,disabled:e,labelVisibility:k((g=t.labelVisibility)==null?void 0:g.value),htmlFor:b,children:t.help&&u(H,{children:u(L,{content:t.help,placement:B.TOP_RIGHT})})}),u(G,{value:r??"",placeholder:x,onBlur:F,onFocus:v,onChange:E,onKeyPress:P,"aria-label":t.label,disabled:e,id:b,type:Y(t),autoComplete:t.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:o.lineHeights.inputWidget,paddingRight:o.spacing.sm,paddingLeft:o.spacing.sm,paddingBottom:o.spacing.sm,paddingTop:o.spacing.sm}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:o.sizes.minElementHeight,borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth}}}}),V&&u(A,{dirty:i,value:r??"",maxLength:t.maxChars,inForm:I({formId:t.formId}),allowEnterToSubmit:C})]})}function S(e,t){return e.getStringValue(t)??null}function J(e){return e.default??null}function Q(e){return e.value??null}function X(e,t,a,n){t.setStringValue(e,a.value,{fromUi:a.fromUi},n)}function Y(e){return e.type===j.Type.PASSWORD?"password":"text"}const ut=s.memo(w);export{ut as default};
@@ -0,0 +1 @@
1
+ import{n as f,r,j as c}from"./index.Blgy4CCd.js";const E=f("div",{target:"ea9qfvi0"})(()=>({lineHeight:0})),y=f("audio",{target:"ea9qfvi1"})(({theme:t})=>({width:"100%",height:t.sizes.minElementHeight,margin:0,padding:0}));function A({element:t,endpoints:l,elementMgr:o}){const n=r.useRef(null),{startTime:a,endTime:d,loop:u,autoplay:p}=t,m=r.useMemo(()=>{if(!t.id)return!0;const e=o.getElementState(t.id,"preventAutoplay");return e||o.setElementState(t.id,"preventAutoplay",!0),e??!1},[t.id,o]);r.useEffect(()=>{n.current&&(n.current.currentTime=a)},[a]),r.useEffect(()=>{const e=n.current,i=()=>{e&&(e.currentTime=t.startTime)};return e&&e.addEventListener("loadedmetadata",i),()=>{e&&e.removeEventListener("loadedmetadata",i)}},[t]),r.useEffect(()=>{const e=n.current;if(!e)return;let i=!1;const s=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=a||0,e.play()):i||(i=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",s),()=>{e&&d>0&&e.removeEventListener("timeupdate",s)}},[d,u,a]),r.useEffect(()=>{const e=n.current;if(!e)return;const i=()=>{u&&(e.currentTime=a||0,e.play())};return e.addEventListener("ended",i),()=>{e&&e.removeEventListener("ended",i)}},[u,a]);const v=l.buildMediaURL(t.url);return c(E,{children:c(y,{className:"stAudio","data-testid":"stAudio",ref:n,controls:!0,autoPlay:p&&!m,src:v})})}const h=r.memo(A);export{h as default};
@@ -0,0 +1 @@
1
+ import{n as b,r as i,bi as U,j as l}from"./index.Blgy4CCd.js";const P=b("iframe",{target:"eymnmwl0"})(({theme:a})=>({colorScheme:"normal",border:"none",padding:a.spacing.none,margin:a.spacing.none,width:"100%",aspectRatio:"16 / 9"})),R=528;function A({element:a,width:f,endpoints:m,elementMgr:c}){const n=i.useRef(null),{type:E,url:p,startTime:o,subtitles:y,endTime:d,loop:u,autoplay:T,muted:h}=a,S=i.useMemo(()=>{if(!a.id)return!0;const e=c.getElementState(a.id,"preventAutoplay");return e||c.setElementState(a.id,"preventAutoplay",!0),e??!1},[a.id,c]);i.useEffect(()=>{n.current&&(n.current.currentTime=o)},[o]),i.useEffect(()=>{const e=n.current,t=()=>{e&&(e.currentTime=a.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[a]),i.useEffect(()=>{const e=n.current;if(!e)return;let t=!1;const s=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=o||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",s),()=>{e&&d>0&&e.removeEventListener("timeupdate",s)}},[d,u,o]),i.useEffect(()=>{const e=n.current;if(!e)return;const t=()=>{u&&(e.currentTime=o||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[u,o]);const g=e=>{const{startTime:t,endTime:s,loop:L,autoplay:N,muted:V}=a,r=new URL(e);if(t&&!isNaN(t)&&r.searchParams.append("start",t.toString()),s&&!isNaN(s)&&r.searchParams.append("end",s.toString()),L){r.searchParams.append("loop","1");const v=r.pathname.split("/").pop();v&&r.searchParams.append("playlist",v)}return N&&r.searchParams.append("autoplay","1"),V&&r.searchParams.append("mute","1"),r.toString()};return E===U.Type.YOUTUBE_IFRAME?l(P,{className:"stVideo","data-testid":"stVideo",title:p,src:g(p),allow:"autoplay; encrypted-media",allowFullScreen:!0}):l("video",{className:"stVideo","data-testid":"stVideo",ref:n,controls:!0,muted:h,autoPlay:T&&!S,src:m.buildMediaURL(p),style:{width:f,height:f===0?R:void 0},crossOrigin:void 0,children:y&&y.map((e,t)=>l("track",{kind:"captions",src:m.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0},t))})}const I=i.memo(A);export{I as default};