dualsense-ts 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/dualsense.d.ts +4 -0
- package/dist/dualsense.d.ts.map +1 -1
- package/dist/dualsense.js +4 -0
- package/dist/dualsense.js.map +1 -1
- package/dist/hid/hid_provider.d.ts +4 -0
- package/dist/hid/hid_provider.d.ts.map +1 -1
- package/dist/hid/hid_provider.js +6 -0
- package/dist/hid/hid_provider.js.map +1 -1
- package/dist/id.d.ts +4 -0
- package/dist/id.d.ts.map +1 -1
- package/nodehid_example/debug.ts +8 -0
- package/nodehid_example/single.ts +8 -0
- package/package.json +1 -1
- package/src/dualsense.ts +8 -0
- package/src/hid/hid_provider.ts +8 -0
- package/src/id.ts +5 -0
- package/webhid_example/build/asset-manifest.json +3 -3
- package/webhid_example/build/index.html +1 -1
- package/webhid_example/build/static/js/main.fcf0c900.js +3 -0
- package/webhid_example/build/static/js/main.fcf0c900.js.map +1 -0
- package/webhid_example/src/App.tsx +2 -0
- package/webhid_example/src/hud/AudioIndicator.tsx +114 -0
- package/webhid_example/src/hud/index.tsx +1 -0
- package/webhid_example/build/static/js/main.2ac31d24.js +0 -3
- package/webhid_example/build/static/js/main.2ac31d24.js.map +0 -1
- /package/webhid_example/build/static/js/{main.2ac31d24.js.LICENSE.txt → main.fcf0c900.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see main.fcf0c900.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={9287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicComparator=t.ThresholdComparator=t.VirtualComparator=void 0,t.VirtualComparator=function(){return!0},t.ThresholdComparator=function(e,t,n,r){if("number"!==typeof n||"number"!==typeof r)throw new Error("Bad threshold comparison");return Math.abs(n-r)>e&&(Math.abs(r)>t||Math.abs(n)>t)},t.BasicComparator=function(e,t){return e!==t}},5948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dualsense=void 0;const r=n(8656),o=n(6592),a=n(2364);class i extends o.Input{get active(){return Object.values(this).some((e=>e!==this&&e instanceof o.Input&&e.active))}get wireless(){return this.hid.wireless}get deviceId(){return this.hid.provider.deviceId}get serialNumber(){return this.hid.provider.serialNumber}constructor(){var e,t,n,i,l,s,c,u,d,f,h,p,g,m,v,y,b;let x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(x),this.state=this,this.lightbar=new r.Lightbar,this.playerLeds=new r.PlayerLeds,this.pendingBattery={peakLevel:0,status:a.ChargeStatus.Discharging},this.ps=new r.Momentary({icon:"\u33b0",name:"Home",...null!==(e=x.ps)&&void 0!==e?e:{}}),this.mute=new r.Mute({icon:"\ud83d\udd69",name:"Mute",...null!==(t=x.mute)&&void 0!==t?t:{}}),this.microphone=new r.Momentary({icon:"\ud83c\udfa4",name:"Microphone"}),this.headphone=new r.Momentary({icon:"\ud83c\udfa7",name:"Headphone"}),this.options=new r.Momentary({icon:"\u22ef",name:"Options",...null!==(n=x.options)&&void 0!==n?n:{}}),this.create=new r.Momentary({icon:"\ud83d\udd89",name:"Create",...null!==(i=x.create)&&void 0!==i?i:{}}),this.triangle=new r.Momentary({icon:"\ud83d\udfd5",name:"Triangle",...null!==(l=x.triangle)&&void 0!==l?l:{}}),this.circle=new r.Momentary({icon:"\u229a",name:"Circle",...null!==(s=x.circle)&&void 0!==s?s:{}}),this.cross=new r.Momentary({icon:"\u2bbf",name:"Cross",...null!==(c=x.cross)&&void 0!==c?c:{}}),this.square=new r.Momentary({icon:"\ud83d\udfd7",name:"Square",...null!==(u=x.square)&&void 0!==u?u:{}}),this.dpad=new r.Dpad({icon:"D",name:"D-pad",...null!==(d=x.dpad)&&void 0!==d?d:{}}),this.left=new r.Unisense({icon:"L",name:"Left",...null!==(f=x.left)&&void 0!==f?f:{}}),this.right=new r.Unisense({icon:"R",name:"Right",...null!==(h=x.right)&&void 0!==h?h:{}}),this.touchpad=new r.Touchpad({icon:"\u239a",name:"Touchpad",...null!==(p=x.touchpad)&&void 0!==p?p:{}}),this.connection=new r.Momentary({icon:"\ud83d\udd17",name:"Connected",...null!==(g=x.square)&&void 0!==g?g:{}}),this.gyroscope=new r.Gyroscope({icon:"\u221e",name:"Gyroscope",threshold:.01,...null!==(m=x.gyroscope)&&void 0!==m?m:{}}),this.accelerometer=new r.Accelerometer({icon:"\u2932",name:"Accelerometer",threshold:.01,...null!==(v=x.accelerometer)&&void 0!==v?v:{}}),this.battery=new r.Battery({icon:"\ud83d\udd0b",name:"Battery",...null!==(y=x.battery)&&void 0!==y?y:{}}),this.connection[o.InputSet](!1),this.hid=null!==(b=x.hid)&&void 0!==b?b:new a.DualsenseHID(new a.PlatformHIDProvider),this.hid.register((e=>{this.processHID(e)}));const w={left:-1,right:-1},S={left:"",right:""},k={key:""},C={key:""};let E=!1;setInterval((()=>{const{provider:{connected:e}}=this.hid;this.connection[o.InputSet](e),e&&!E&&(S.left="",S.right="",k.key="",C.key=""),E=e,e||this.hid.provider.connect()}),200),setInterval((()=>{this.connection.active&&(this.battery.level[o.InputSet](this.pendingBattery.peakLevel),this.battery.status[o.InputSet](this.pendingBattery.status),this.pendingBattery.peakLevel=0)}),1e3),setInterval((()=>{if(!this.connection.active)return;const e=this.left.rumble(),t=this.right.rumble();e===w.left&&t===w.right||(this.hid.setRumble(255*e,255*t),w.left=e,w.right=t);const n=this.left.trigger.feedback,r=this.right.trigger.feedback,o=n.toKey(),i=r.toKey();(o!==S.left||i!==S.right)&&(this.hid.setRumble(255*e,255*t),w.left=e,w.right=t),o!==S.left&&(this.hid.setLeftTriggerFeedback(n.toBytes()),S.left=o),i!==S.right&&(this.hid.setRightTriggerFeedback(r.toBytes()),S.right=i);const l=this.lightbar.toKey();if(l!==k.key){const{r:e,g:t,b:n}=this.lightbar.color;this.hid.setLightbar(e,t,n),k.key=l}const s=this.lightbar.consumePulse();s!==a.PulseOptions.Off&&this.hid.setLightbar(0,0,0,s);const c=this.playerLeds.toKey();c!==C.key&&(this.hid.setPlayerLeds(this.playerLeds.bitmask,this.playerLeds.brightness),C.key=c)}),1e3/30)}get rumbleIntensity(){return(this.left.rumble()+this.right.rumble())/2}resetTriggerFeedback(){this.left.trigger.feedback.reset(),this.right.trigger.feedback.reset()}rumble(e){return this.left.rumble(e),this.right.rumble(e),this.rumbleIntensity}processHID(e){this.ps[o.InputSet](e.Playstation),this.options[o.InputSet](e.Options),this.create[o.InputSet](e.Create),this.mute[o.InputSet](e.Mute),this.mute.status[o.InputSet](e.MuteLed),this.microphone[o.InputSet](e.Microphone),this.headphone[o.InputSet](e.Headphone),this.triangle[o.InputSet](e.Triangle),this.circle[o.InputSet](e.Circle),this.cross[o.InputSet](e.Cross),this.square[o.InputSet](e.Square),this.dpad.up[o.InputSet](e.Up),this.dpad.down[o.InputSet](e.Down),this.dpad.right[o.InputSet](e.Right),this.dpad.left[o.InputSet](e.Left),this.touchpad.button[o.InputSet](e.TouchButton),this.touchpad.left.x[o.InputSet](e.TouchX0),this.touchpad.left.y[o.InputSet](e.TouchY0),this.touchpad.left.contact[o.InputSet](e.TouchContact0),this.touchpad.left.tracker[o.InputSet](e.TouchId0),this.touchpad.right.x[o.InputSet](e.TouchX1),this.touchpad.right.y[o.InputSet](e.TouchY1),this.touchpad.right.contact[o.InputSet](e.TouchContact1),this.touchpad.right.tracker[o.InputSet](e.TouchId1),this.left.analog.x[o.InputSet](e.LX),this.left.analog.y[o.InputSet](e.LY),this.left.analog.button[o.InputSet](e.L3),this.left.bumper[o.InputSet](e.L1),this.left.trigger[o.InputSet](e.L2),this.left.trigger.button[o.InputSet](e.L2Button),this.right.analog.x[o.InputSet](e.RX),this.right.analog.y[o.InputSet](e.RY),this.right.analog.button[o.InputSet](e.R3),this.right.bumper[o.InputSet](e.R1),this.right.trigger[o.InputSet](e.R2),this.right.trigger.button[o.InputSet](e.R2Button),this.gyroscope.x[o.InputSet](e.GyroX),this.gyroscope.y[o.InputSet](e.GyroY),this.gyroscope.z[o.InputSet](e.GyroZ),this.accelerometer.x[o.InputSet](e.AccelX),this.accelerometer.y[o.InputSet](e.AccelY),this.accelerometer.z[o.InputSet](e.AccelZ);const t=e.BatteryLevel;t>this.pendingBattery.peakLevel&&(this.pendingBattery.peakLevel=t),this.pendingBattery.status=e.BatteryStatus}}t.Dualsense=i},419:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Accelerometer=void 0;const r=n(6592),o=n(2897);class a extends r.Input{constructor(e){super(e),this.state=this,this.active=!1;const{x:t,y:n,z:r}=null!==e&&void 0!==e?e:{};this.x=new o.Axis({icon:"AX",name:"X",...e,...t}),this.y=new o.Axis({icon:"AY",name:"Y",...e,...n}),this.z=new o.Axis({icon:"AZ",name:"Z",...e,...r})}}t.Accelerometer=a},6008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Analog=void 0;const r=n(2897),o=n(9199),a=n(6592);class i extends a.Input{constructor(e){super(e),this.state=this,this.deadzone=.05;const{button:t,x:n,y:a,deadzone:i}=null!==e&&void 0!==e?e:{};i&&(this.deadzone=i),this.button=new o.Momentary({icon:"3",name:"Button",...t}),this.x=new r.Axis({icon:"\u2194",name:"X",...e,...n}),this.y=new r.Axis({icon:"\u2195",name:"Y",...e,...a})}get active(){return this.magnitude>0||this.button.active}get vector(){return{direction:this.direction,magnitude:this.magnitude}}get force(){return Math.max(Math.min(Math.hypot(this.x.force,this.y.force),1),-1)}get magnitude(){const e=Math.abs(this.force);return e<this.deadzone?0:(e-this.deadzone)/(1-this.deadzone)}get direction(){return Math.atan2(this.y.force,this.x.force)}get radians(){return this.direction}get angle(){return this.direction}get directionDegrees(){return 180*this.direction/Math.PI}get degrees(){return this.directionDegrees}get angleDegrees(){return this.directionDegrees}}t.Analog=i},2897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Axis=void 0;const r=n(6592);class o extends r.Input{constructor(e){super(e),this.state=0,this.deadzone=.05;const{deadzone:t}=null!==e&&void 0!==e?e:{};t&&(this.deadzone=t)}get active(){return Math.abs(this.state)>this.deadzone}get force(){return this.active?this.state:0}get magnitude(){const e=Math.abs(this.force);return e<this.deadzone?0:(e-this.deadzone)/(1-this.deadzone)}}t.Axis=o},3324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Battery=t.BatteryStatus=t.BatteryLevel=void 0;const r=n(6592),o=n(6351);class a extends r.Input{constructor(){super(...arguments),this.state=0}get active(){return this.state>0}}t.BatteryLevel=a;class i extends r.Input{constructor(){super(...arguments),this.state=o.ChargeStatus.Discharging}get active(){return this.state===o.ChargeStatus.Charging}}t.BatteryStatus=i;class l extends r.Input{get active(){return this.level.active||this.status.active}constructor(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(n),this.state=this,this.level=new a({icon:"\ud83d\udd0b",name:"BatteryLevel",...null!==(e=n.level)&&void 0!==e?e:{}}),this.status=new i({icon:"\ud83d\udd0c",name:"BatteryStatus",...null!==(t=n.status)&&void 0!==t?t:{}})}}t.Battery=l},9254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dpad=void 0;const r=n(9199),o=n(6592);class a extends o.Input{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),this.state=this;const{up:t,down:n,left:o,right:a}=e;this.up=new r.Momentary({icon:"\u2b89",name:"Up",...null!==t&&void 0!==t?t:{}}),this.down=new r.Momentary({icon:"\u2b8b",name:"Down",...null!==n&&void 0!==n?n:{}}),this.left=new r.Momentary({icon:"\u2b88",name:"Left",...null!==o&&void 0!==o?o:{}}),this.right=new r.Momentary({icon:"\u2b8a",name:"Right",...null!==a&&void 0!==a?a:{}})}get active(){return this.up.active||this.down.active||this.left.active||this.right.active}}t.Dpad=a},8905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Gyroscope=void 0;const r=n(6592),o=n(2897);class a extends r.Input{constructor(e){super(e),this.state=this,this.active=!1;const{x:t,y:n,z:r}=null!==e&&void 0!==e?e:{};this.x=new o.Axis({icon:"GX",name:"X",...e,...t}),this.y=new o.Axis({icon:"GY",name:"Y",...e,...n}),this.z=new o.Axis({icon:"GZ",name:"Z",...e,...r})}}t.Gyroscope=a},4757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Increment=void 0;const r=n(6592);class o extends r.Input{constructor(){super(...arguments),this.state=0,this.active=!1}}t.Increment=o},8656:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(419),t),o(n(6008),t),o(n(2897),t),o(n(3324),t),o(n(9254),t),o(n(8905),t),o(n(4757),t),o(n(1876),t),o(n(9199),t),o(n(4299),t),o(n(4642),t),o(n(8972),t),o(n(5461),t),o(n(9475),t),o(n(8482),t),o(n(5170),t),o(n(9792),t)},1876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lightbar=void 0;const r=n(2364);t.Lightbar=class{constructor(){this._color={r:0,g:0,b:255},this._pendingPulse=r.PulseOptions.Off}get color(){return{...this._color}}set(e){this._color={r:Math.round(Math.max(0,Math.min(255,e.r))),g:Math.round(Math.max(0,Math.min(255,e.g))),b:Math.round(Math.max(0,Math.min(255,e.b)))}}fadeBlue(){this._pendingPulse=r.PulseOptions.FadeBlue}fadeOut(){this._pendingPulse=r.PulseOptions.FadeOut}consumePulse(){const e=this._pendingPulse;return this._pendingPulse=r.PulseOptions.Off,e}toKey(){return"".concat(this._color.r,",").concat(this._color.g,",").concat(this._color.b)}}},9199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Momentary=void 0;const r=n(6592);class o extends r.Input{constructor(){super(...arguments),this.state=!1}get active(){return this.state}}t.Momentary=o},4299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Motion=void 0;const r=n(8905),o=n(419);t.Motion=class{constructor(){this.gyroscope=new r.Gyroscope,this.accelerometer=new o.Accelerometer}}},4642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mute=void 0;const r=n(9199);class o extends r.Momentary{constructor(){super(...arguments),this.status=new r.Momentary({icon:"\ud83d\udd07",name:"MuteStatus"})}}t.Mute=o},8972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerLeds=void 0;const r=n(7974);t.PlayerLeds=class{constructor(){this._bitmask=0,this._brightness=r.Brightness.High}get bitmask(){return this._bitmask}set(e){this._bitmask=31&e}setLed(e,t){e<0||e>4||(t?this._bitmask|=1<<e:this._bitmask&=~(1<<e))}getLed(e){return 0!==(this._bitmask&1<<e)}clear(){this._bitmask=0}get brightness(){return this._brightness}setBrightness(e){this._brightness=e}toKey(){return"".concat(this._bitmask,",").concat(this._brightness)}}},5461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Touch=void 0;const r=n(6008),o=n(4757);class a extends r.Analog{constructor(){super(...arguments),this.state=this,this.contact=this.button,this.tracker=new o.Increment,this.deadzone=0}get active(){return this.contact.active}}t.Touch=a},9475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Touchpad=void 0;const r=n(9199),o=n(5461),a=n(6592);class i extends a.Input{get active(){return this.left.contact.active}constructor(e){super(e),this.state=this,this.button=new r.Momentary({icon:"[__]"}),this.left=new o.Touch,this.right=new o.Touch}}t.Touchpad=i},8482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Trigger=void 0;const r=n(6592),o=n(9199),a=n(5170);class i extends r.Input{constructor(){super(...arguments),this.state=0,this.button=new o.Momentary,this.feedback=new a.TriggerFeedback}get active(){return this.state>0}get pressure(){return this.state}get magnitude(){return this.state}changes(e){return this.state!==e}}t.Trigger=i},5170:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TriggerFeedback=t.buildTriggerEffectBlock=t.TriggerEffect=void 0,function(e){e.Off="off",e.Feedback="feedback",e.Weapon="weapon",e.Bow="bow",e.Galloping="galloping",e.Vibration="vibration",e.Machine="machine"}(n=t.TriggerEffect||(t.TriggerEffect={}));const r={[n.Off]:5,[n.Feedback]:33,[n.Weapon]:37,[n.Bow]:34,[n.Galloping]:35,[n.Vibration]:38,[n.Machine]:39};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.round(Math.min(t,Math.max(n,e*t)))}function a(e){const t=new Uint8Array(11).fill(0);if(e.effect===n.Off)return t[0]=r[n.Off],t;switch(t[0]=r[e.effect],e.effect){case n.Feedback:{const n=o(e.position,9),r=o(e.strength,8,1)-1&7;let a=0,i=0;for(let e=n;e<10;e++)a|=r<<3*e,i|=1<<e;t[1]=255&i,t[2]=i>>8&255,t[3]=255&a,t[4]=a>>8&255,t[5]=a>>16&255,t[6]=a>>24&255;break}case n.Weapon:{const n=Math.min(7,Math.max(2,o(e.start,9))),r=Math.min(8,Math.max(n+1,o(e.end,9))),a=o(e.strength,8,1),i=1<<n|1<<r;t[1]=255&i,t[2]=i>>8&255,t[3]=a-1;break}case n.Bow:{const n=o(e.start,8),r=1<<n|1<<Math.max(n+1,o(e.end,8)),a=o(e.strength,8,1)-1&7|(o(e.snapForce,8,1)-1&7)<<3;t[1]=255&r,t[2]=r>>8&255,t[3]=255&a,t[4]=a>>8&255;break}case n.Galloping:{const n=o(e.start,8),r=Math.max(n+1,o(e.end,9)),a=o(e.firstFoot,6),i=1<<n|1<<r,l=7&Math.max(a+1,o(e.secondFoot,7))|(7&a)<<3;t[1]=255&i,t[2]=i>>8&255,t[3]=255&l,t[4]=Math.min(255,Math.max(1,Math.round(e.frequency)));break}case n.Vibration:{const n=o(e.position,9),r=o(e.amplitude,8,1)-1&7;let a=0,i=0;for(let e=n;e<10;e++)a|=r<<3*e,i|=1<<e;t[1]=255&i,t[2]=i>>8&255,t[3]=255&a,t[4]=a>>8&255,t[5]=a>>16&255,t[6]=a>>24&255,t[9]=Math.min(255,Math.max(1,Math.round(e.frequency)));break}case n.Machine:{const n=o(e.start,8),r=1<<n|1<<Math.max(n+1,o(e.end,9)),a=7&o(e.amplitudeA,7)|(7&o(e.amplitudeB,7))<<3;t[1]=255&r,t[2]=r>>8&255,t[3]=255&a,t[4]=Math.min(255,Math.max(1,Math.round(e.frequency))),t[5]=Math.round(e.period);break}}return t}t.buildTriggerEffectBlock=a;t.TriggerFeedback=class{constructor(){this._config={effect:n.Off}}get config(){return this._config}get effect(){return this._config.effect}set(e){this._config=e}reset(){this._config={effect:n.Off}}toBytes(){return a(this._config)}toKey(){return JSON.stringify(this._config)}}},9792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Unisense=void 0;const r=n(8482),o=n(9199),a=n(6008),i=n(6592);class l extends i.Input{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),this.state=this,this.rumbleIntensity=0;const{trigger:t,bumper:n,analog:i}=e;this.trigger=new r.Trigger({icon:"2",name:"Trigger",threshold:1/255,...t}),this.bumper=new o.Momentary({icon:"1",name:"Bumper",...n}),this.analog=new a.Analog({icon:"\u2a01",name:"Analog",threshold:1/128,deadzone:8/128,...i})}rumble(e){return"number"===typeof e&&(this.rumbleIntensity=Math.max(Math.min(e,1),0)),!1===e&&(this.rumbleIntensity=0),!0===e&&(this.rumbleIntensity=1),this.rumbleIntensity}get active(){return this.trigger.active||this.bumper.active||this.analog.active}}t.Unisense=l},6351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChargeStatus=void 0,function(e){e[e.Discharging=0]="Discharging",e[e.Charging=1]="Charging",e[e.Full=2]="Full",e[e.AbnormalVoltage=10]="AbnormalVoltage",e[e.AbnormalTemperature=11]="AbnormalTemperature",e[e.ChargingError=15]="ChargingError"}(t.ChargeStatus||(t.ChargeStatus={}))},3075:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeBluetoothReportChecksum=void 0;const n=new Uint32Array([3523407757,2768625435,1007455905,1259060791,3580832660,2724731650,996231864,1281784366,3705235391,2883475241,852952723,1171273221,3686048678,2897449776,901431946,1119744540,3484811241,3098726271,565944005,1455205971,3369614320,3219065702,651582172,1372678730,3245242331,3060352845,794826487,1483155041,3322131394,2969862996,671994606,1594548856,3916222277,2657877971,123907689,1885708031,3993045852,2567322570,1010288,1997036262,3887548279,2427484129,163128923,2126386893,3772416878,2547889144,248832578,2043925204,4108050209,2212294583,450215437,1842515611,4088798008,2226203566,498629140,1790921346,4194326291,2366072709,336475711,1661535913,4251816714,2322244508,325317158,1684325040,2766056989,3554254475,1255198513,1037565863,2746444292,3568589458,1304234792,985283518,2852464175,3707901625,1141589763,856455061,2909332022,3664761504,1130791706,878818188,3110715001,3463352047,1466425173,543223747,3187964512,3372436214,1342839628,655174618,3081909835,3233089245,1505515367,784033777,2967466578,3352871620,1590793086,701932520,2679148245,3904355907,1908338681,112844655,2564639436,4024072794,1993550816,30677878,2439710439,3865851505,2137352139,140662621,2517025534,3775001192,2013832146,252678980,2181537457,4110462503,1812594589,453955339,2238339752,4067256894,1801730948,476252946,2363233923,4225443349,1657960367,366298937,2343686810,4239843852,1707062198,314082080,1069182125,1220369467,3518238081,2796764439,953657524,1339070498,3604597144,2715744526,828499103,1181144073,3748627891,2825434405,906764422,1091244048,3624026538,2936369468,571309257,1426738271,3422756325,3137613171,627095760,1382516806,3413039612,3161057642,752284923,1540473965,3268974039,3051332929,733688034,1555824756,3316994510,2998034776,81022053,1943239923,3940166985,2648514015,62490748,1958656234,3988253008,2595281350,168805463,2097738945,3825313147,2466682349,224526414,2053451992,3815530850,2490061300,425942017,1852075159,4151131437,2154433979,504272920,1762240654,4026595636,2265434530,397988915,1623188645,4189500703,2393998729,282398762,1741824188,4275794182,2312913296,1231433021,1046551979,2808630289,3496967303,1309403428,957143474,2684717064,3607279774,1203610895,817534361,2847130659,3736401077,1087398166,936857984,2933784634,3654889644,1422998873,601230799,3135200373,3453512931,1404893504,616286678,3182598252,3400902906,1510651243,755860989,3020215367,3271812305,1567060338,710951396,3010007134,3295551688,1913130485,84884835,2617666777,3942734927,1969605100,40040826,2607524032,3966539862,2094237127,198489425,2464015595,3856323709,2076066270,213479752,2511347954,3803648100,1874795921,414723335,2175892669,4139142187,1758648712,534112542,2262612132,4057696306,1633981859,375629109,2406151311,4167943193,1711886778,286155052,2282172566,4278190080]);t.computeBluetoothReportChecksum=function(e){let t=3940166985;for(let r=0;r<74;r++){const o=255&(255&t^255&e[r]);t=(n[o]^t>>>8)>>>0}return t>>>0}},6424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerID=t.Brightness=t.PulseOptions=void 0,function(e){e[e.Off=0]="Off",e[e.FadeBlue=1]="FadeBlue",e[e.FadeOut=2]="FadeOut"}(t.PulseOptions||(t.PulseOptions={})),function(e){e[e.High=0]="High",e[e.Medium=1]="Medium",e[e.Low=2]="Low"}(t.Brightness||(t.Brightness={})),function(e){e[e.Player1=4]="Player1",e[e.Player2=10]="Player2",e[e.Player3=21]="Player3",e[e.Player4=27]="Player4",e[e.All=31]="All"}(t.PlayerID||(t.PlayerID={}))},2139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DualsenseHID=void 0;const r=n(7974),o=n(1492),a=n(3075);class i{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;this.provider=e,this.subscribers=new Set,this.errorSubscribers=new Set,this.pendingCommands=[],this.state={...o.DefaultDualsenseHIDState},e.onData=this.set.bind(this),e.onError=this.handleError.bind(this),setInterval((()=>{this.pendingCommands.length>0&&(async()=>{const t=[...this.pendingCommands];this.pendingCommands=[],await e.write(i.buildFeatureReport(t,Boolean(e.wireless)))})().catch((e=>{this.handleError(new Error("HID write failed: ".concat(JSON.stringify(e))))}))}),1e3/t)}get wireless(){var e;return null!==(e=this.provider.wireless)&&void 0!==e&&e}register(e){this.subscribers.add(e)}unregister(e){this.subscribers.delete(e)}on(e,t){"error"===e&&this.errorSubscribers.add(t)}set(e){this.state=e,this.subscribers.forEach((t=>t(e)))}handleError(e){this.errorSubscribers.forEach((t=>t(e)))}static buildFeatureReport(e,t){const n=new Uint8Array(48).fill(0);if(n[0]=2,n[1]=e.filter((e=>{let{scope:{index:t}}=e;return 1===t})).reduce(((e,t)=>{let{scope:{value:n}}=t;return e|n}),0),n[2]=e.filter((e=>{let{scope:{index:t}}=e;return 2===t})).reduce(((e,t)=>{let{scope:{value:n}}=t;return e|n}),0),e.forEach((e=>{let{values:t}=e;t.forEach((e=>{let{index:t,value:r}=e;n[t]=r}))})),!t)return n;const r=new Uint8Array(78).fill(0);r[0]=49,r[1]=2,r[2]=n[1],r[3]=n[2];for(let a=3;a<n.length;a++)r[a+1]=n[a];const o=(0,a.computeBluetoothReportChecksum)(r);return r[74]=255&o,r[75]=o>>>8&255,r[76]=o>>>16&255,r[77]=o>>>24&255,r}setRumble(e,t){this.pendingCommands.push({scope:{index:1,value:3},values:[{index:3,value:t},{index:4,value:e}]}),this.pendingCommands.push({scope:{index:2,value:64},values:[]})}setLeftTriggerFeedback(e){this.pendingCommands.push({scope:{index:1,value:8},values:Array.from(e,((e,t)=>({index:22+t,value:e})))})}setRightTriggerFeedback(e){this.pendingCommands.push({scope:{index:1,value:4},values:Array.from(e,((e,t)=>({index:11+t,value:e})))})}setMicrophoneLED(e){this.pendingCommands.push({scope:{index:2,value:1},values:[{index:9,value:e?1:0}]})}setPlayerLeds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.Brightness.High;this.pendingCommands.push({scope:{index:2,value:16},values:[{index:44,value:31&e},{index:43,value:t},{index:39,value:1}]})}setLightbar(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.PulseOptions.Off;this.pendingCommands.push({scope:{index:2,value:4},values:[{index:45,value:e},{index:46,value:t},{index:47,value:n}]}),this.pendingCommands.push({scope:{index:2,value:16},values:[{index:39,value:3},{index:42,value:o}]})}}t.DualsenseHID=i},1492:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.HIDProvider=t.DefaultDualsenseHIDState=t.mapGyroAccel=t.mapBatteryLevel=t.mapTrigger=t.mapAxis=void 0;const a=n(6351);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:255;return 2/t*Math.max(0,Math.min(t,e))-1}function l(e){return 1/255*Math.max(0,Math.min(255,e))}function s(e){return Math.min(1,Math.max(0,(15&e)/10))}function c(e,t){let n=t<<8|e;return n>32767&&(n-=65536),i(n+32767,65535)}o(n(3744),t),t.mapAxis=i,t.mapTrigger=l,t.mapBatteryLevel=s,t.mapGyroAccel=c,t.DefaultDualsenseHIDState={LX:0,LY:0,RX:0,RY:0,L2:0,R2:0,Triangle:!1,Circle:!1,Cross:!1,Square:!1,Dpad:0,Up:!1,Down:!1,Left:!1,Right:!1,R3:!1,L3:!1,Options:!1,Create:!1,R2Button:!1,L2Button:!1,R1:!1,L1:!1,Playstation:!1,TouchButton:!1,Mute:!1,Status:!1,TouchX0:0,TouchY0:0,TouchContact0:!1,TouchId0:0,TouchX1:0,TouchY1:0,TouchContact1:!1,TouchId1:0,GyroX:0,GyroY:0,GyroZ:0,AccelX:0,AccelY:0,AccelZ:0,BatteryLevel:0,BatteryStatus:a.ChargeStatus.Discharging,MuteLed:!1,Microphone:!1,Headphone:!1};class u{constructor(){this.onData=()=>{},this.onError=()=>{}}processReport(e){const n=e.readUint8(0);switch(n){case 1:return this.wireless?this.processBluetoothInputReport01(e):this.processUsbInputReport01(e);case 49:return this.processBluetoothInputReport31(e);default:return this.onError(new Error("Cannot process report, unexpected report id: ".concat(n))),this.disconnect(),{...t.DefaultDualsenseHIDState}}}reset(){this.deviceId&&u.claimedDevices.delete(this.deviceId),this.device=void 0,this.wireless=void 0,this.buffer=void 0,this.limited=void 0,this.deviceId=void 0,this.serialNumber=void 0,this.onData(t.DefaultDualsenseHIDState)}processBluetoothInputReport01(e){this.limited=!0;const n=e.readUint8(5),r=n>>4,o=15&n,a=e.readUint8(6),s=e.readUint8(7);return{...t.DefaultDualsenseHIDState,LX:i(e.readUint8(1)),LY:-i(e.readUint8(2)),RX:i(e.readUint8(3)),RY:-i(e.readUint8(4)),L2:l(e.readUint8(8)),R2:l(e.readUint8(9)),Triangle:(8&r)>0,Circle:(4&r)>0,Cross:(2&r)>0,Square:(1&r)>0,Dpad:o,Up:o<2||7===o,Down:o>2&&o<6,Left:o>4&&o<8,Right:o>0&&o<4,L2Button:(4&a)>0,R2Button:(8&a)>0,L1:(1&a)>0,R1:(2&a)>0,Create:(16&a)>0,Options:(32&a)>0,L3:(64&a)>0,R3:(128&a)>0,Playstation:(1&s)>0,TouchButton:(2&s)>0}}processBluetoothInputReport31(e){this.limited=!1;const t=e.readUint8(9),n=t>>4,r=15&t,o=e.readUint8(10),a=e.readUint8(11);return{LX:i(e.readUint8(2)),LY:-i(e.readUint8(3)),RX:i(e.readUint8(4)),RY:-i(e.readUint8(5)),L2:l(e.readUint8(6)),R2:l(e.readUint8(7)),Triangle:(8&n)>0,Circle:(4&n)>0,Cross:(2&n)>0,Square:(1&n)>0,Dpad:r,Up:r<2||7===r,Down:r>2&&r<6,Left:r>4&&r<8,Right:r>0&&r<4,L2Button:(4&o)>0,R2Button:(8&o)>0,L1:(1&o)>0,R1:(2&o)>0,Create:(16&o)>0,Options:(32&o)>0,L3:(64&o)>0,R3:(128&o)>0,Playstation:(1&a)>0,TouchButton:(2&a)>0,Mute:(4&a)>0,GyroX:c(e.readUint8(17),e.readUint8(18)),GyroY:c(e.readUint8(19),e.readUint8(20)),GyroZ:c(e.readUint8(21),e.readUint8(22)),AccelX:c(e.readUint8(23),e.readUint8(24)),AccelY:c(e.readUint8(25),e.readUint8(26)),AccelZ:c(e.readUint8(27),e.readUint8(28)),TouchId0:127&e.readUint8(34),TouchContact0:0===(128&e.readUint8(34)),TouchX0:i(e.readUint16LE(35)<<20>>20,1920),TouchY0:i(e.readUint16LE(36)>>4,1080),TouchId1:127&e.readUint8(38),TouchContact1:0===(128&e.readUint8(38)),TouchX1:i(e.readUint16LE(39)<<20>>20,1920),TouchY1:i(e.readUint16LE(40)>>4,1080),Status:(8&e.readUint8(55))>0,MuteLed:(4&e.readUint8(55))>0,Microphone:(2&e.readUint8(55))>0,Headphone:(1&e.readUint8(55))>0,BatteryLevel:s(e.readUint8(54)),BatteryStatus:e.readUint8(54)>>4}}processUsbInputReport01(e){this.limited=!1;const t=e.readUint8(8),n=t>>4,r=15&t,o=e.readUint8(9),a=e.readUint8(10);return{LX:i(e.readUint8(1)),LY:-i(e.readUint8(2)),RX:i(e.readUint8(3)),RY:-i(e.readUint8(4)),L2:l(e.readUint8(5)),R2:l(e.readUint8(6)),Triangle:(8&n)>0,Circle:(4&n)>0,Cross:(2&n)>0,Square:(1&n)>0,Dpad:r,Up:r<2||7===r,Down:r>2&&r<6,Left:r>4&&r<8,Right:r>0&&r<4,L2Button:(4&o)>0,R2Button:(8&o)>0,L1:(1&o)>0,R1:(2&o)>0,Create:(16&o)>0,Options:(32&o)>0,L3:(64&o)>0,R3:(128&o)>0,Playstation:(1&a)>0,TouchButton:(2&a)>0,Mute:(4&a)>0,GyroX:c(e.readUint8(16),e.readUint8(17)),GyroY:c(e.readUint8(18),e.readUint8(19)),GyroZ:c(e.readUint8(20),e.readUint8(21)),AccelX:c(e.readUint8(22),e.readUint8(23)),AccelY:c(e.readUint8(24),e.readUint8(25)),AccelZ:c(e.readUint8(26),e.readUint8(27)),TouchId0:127&e.readUint8(33),TouchContact0:0===(128&e.readUint8(33)),TouchX0:i(e.readUint16LE(34)<<20>>20,1920),TouchY0:i(e.readUint16LE(35)>>4,1080),TouchId1:127&e.readUint8(37),TouchContact1:0===(128&e.readUint8(37)),TouchX1:i(e.readUint16LE(38)<<20>>20,1920),TouchY1:i(e.readUint16LE(39)>>4,1080),Status:(8&e.readUint8(54))>0,MuteLed:(4&e.readUint8(54))>0,Microphone:(2&e.readUint8(54))>0,Headphone:(1&e.readUint8(54))>0,BatteryLevel:s(e.readUint8(53)),BatteryStatus:e.readUint8(53)>>4}}}t.HIDProvider=u,u.vendorId=1356,u.productId=3302,u.usagePage=1,u.usage=5,u.claimedDevices=new Set},2364:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6351),t),o(n(3075),t),o(n(6424),t),o(n(7974),t),o(n(2139),t),o(n(1492),t),o(n(3990),t),o(n(5311),t),o(n(6268),t)},3990:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHIDProvider=void 0;const i=n(1492);class l extends i.HIDProvider{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.connecting=!1,this.targetPath=e.devicePath,this.targetSerial=e.serialNumber}static async enumerate(){let e;try{e=await Promise.resolve().then((()=>a(n(5078))))}catch{return[]}return e.devices(i.HIDProvider.vendorId,i.HIDProvider.productId).filter((e=>Boolean(e.path))).map((e=>{var t;return{path:e.path,serialNumber:null!==(t=e.serialNumber)&&void 0!==t?t:void 0,wireless:-1===e.interface}}))}async connect(){if(this.connecting)return;if("undefined"!==typeof window)return this.onError(new Error("Attempted to use node-hid in browser environment"));let e;this.connecting=!0;try{e=await Promise.resolve().then((()=>a(n(5078))))}catch(l){return this.connecting=!1,this.onError(new Error("Could not import 'node-hid'. Did you add it?\nError: ".concat(l instanceof Error?l.message:"???")))}try{var t,r;this.disconnect();const{HID:n,devices:a}=e,l=a(i.HIDProvider.vendorId,i.HIDProvider.productId);let s=this.targetPath?l.find((e=>e.path===this.targetPath)):void 0;var o;if(!s&&this.targetSerial)s=l.find((e=>e.serialNumber===this.targetSerial&&e.path&&!i.HIDProvider.claimedDevices.has(e.path))),null!=(null===(o=s)||void 0===o?void 0:o.path)&&(this.targetPath=s.path);if(s||this.targetPath||this.targetSerial||(s=l.find((e=>e.path&&!i.HIDProvider.claimedDevices.has(e.path)))),null===(t=s)||void 0===t||!t.path)return this.onError(new Error("No controllers (".concat(a().length," other devices)")));this.wireless=-1===s.interface;const c=new n(s.path);this.deviceId=s.path,this.serialNumber=null!==(r=s.serialNumber)&&void 0!==r?r:void 0,i.HIDProvider.claimedDevices.add(s.path),c.getFeatureReport(5,41),c.on("data",(e=>{this.buffer=e,this.onData(this.process(e))})),c.on("error",(e=>{this.disconnect(),this.onError(e)})),this.device=c}catch(l){this.onError(l instanceof Error?l:new Error(String(l)))}finally{this.connecting=!1}}write(e){return this.device?(this.device.write(Array.from(e)),Promise.resolve()):Promise.resolve()}get connected(){return void 0!==this.device}disconnect(){this.device&&(this.device.removeAllListeners(),this.device.close()),this.reset()}process(e){const t={length:e.length,readUint8:t=>e.readUint8(t),readUint16LE:t=>e.readUint16LE(t)};return this.processReport(t)}}t.NodeHIDProvider=l},5311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformHIDProvider=void 0;const r=n(3990),o=n(6268);t.PlatformHIDProvider="undefined"===typeof window?r.NodeHIDProvider:o.WebHIDProvider},6268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebHIDProvider=void 0;const r=n(1492);class o extends r.HIDProvider{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!navigator.hid)throw new Error("WebHID not supported by this browser");this.targetDevice=e.device,navigator.hid.addEventListener("disconnect",(e=>{let{device:t}=e;t===this.device&&(this.device=void 0,this.disconnect())})),navigator.hid.addEventListener("connect",(e=>{let{device:t}=e;this.device||this.targetDevice||this.attach(t)})),this.targetDevice&&this.attach(this.targetDevice)}detectConnectionType(){if(this.wireless=void 0,this.device)for(const t of this.device.collections){var e;if(t.usagePage!==r.HIDProvider.usagePage||t.usage!==r.HIDProvider.usage)continue;const n=(null!==(e=t.inputReports)&&void 0!==e?e:[]).reduce(((e,t)=>{var n;return Math.max(e,(null!==(n=t.items)&&void 0!==n?n:[]).reduce(((e,t)=>{var n,r;return e+(null!==(n=t.reportSize)&&void 0!==n?n:0)*(null!==(r=t.reportCount)&&void 0!==r?r:0)}),0))}),0);504==n?this.wireless=!1:616==n&&(this.wireless=!0)}}static deviceKey(e){const t=e.collections.map((e=>"".concat(String(e.usagePage),":").concat(String(e.usage)))).join(";");return"".concat(e.vendorId,":").concat(e.productId,":").concat(t,":").concat(e.productName)}attach(e){const t=o.deviceKey(e);r.HIDProvider.claimedDevices.has(t)||e.open().then((()=>(this.device=e,this.deviceId=t,r.HIDProvider.claimedDevices.add(t),this.detectConnectionType(),this.device.receiveFeatureReport(5)))).then((()=>{if(!this.device)throw Error("Controller disconnected before setup");this.device.addEventListener("inputreport",(e=>{let{reportId:t,data:n}=e;this.buffer=n,this.onData(this.process({reportId:t,buffer:n}))}))})).catch((e=>{this.onError(e),this.disconnect()}))}getRequest(){return()=>navigator.hid.requestDevice({filters:[{vendorId:r.HIDProvider.vendorId,productId:r.HIDProvider.productId,usagePage:r.HIDProvider.usagePage,usage:r.HIDProvider.usage}]}).then((e=>{if(0===e.length)return this.onError(new Error("No controllers available"));this.attach(e[0])})).catch((e=>{this.onError(e)}))}static getMultiRequest(e,t){return()=>navigator.hid.requestDevice({filters:[{vendorId:r.HIDProvider.vendorId,productId:r.HIDProvider.productId,usagePage:r.HIDProvider.usagePage,usage:r.HIDProvider.usage}]}).then((t=>{t.forEach((t=>e(t)))})).catch((e=>{null===t||void 0===t||t(e)}))}static async enumerate(){return(await navigator.hid.getDevices()).filter((e=>e.vendorId===r.HIDProvider.vendorId&&e.productId===r.HIDProvider.productId))}connect(){}get connected(){return void 0!==this.device}disconnect(){this.device?this.device.close().finally((()=>this.reset())):this.reset()}async write(e){if(!this.device)return;const t=e[0],n=e.slice(1);return this.device.sendReport(t,n)}process(e){let{reportId:t,buffer:n}=e;const r={length:n.byteLength+1,readUint8:e=>e>0?n.getUint8(e-1):t,readUint16LE:e=>e>0?n.getUint16(e-1,!0):t<<8|n.getUint8(0)};return this.processReport(r)}}t.WebHIDProvider=o},3744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9287),t),o(n(5948),t),o(n(3744),t),o(n(6592),t),o(n(4350),t),o(n(2431),t),o(n(8656),t),o(n(2364),t)},6592:(e,t,n)=>{"use strict";var r,o,a,i,l,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Input=t.InputIcon=t.InputName=t.InputSet=t.InputSetComparator=void 0;const c=n(9287);t.InputSetComparator=Symbol("InputSetComparator"),t.InputSet=Symbol("InputSet"),t.InputName=Symbol("InputName"),t.InputIcon=Symbol("InputIcon");const u=Symbol("InputOns"),d=Symbol("InputOnces"),f=Symbol("InputAdopt"),h=Symbol("InputParents"),p=Symbol("InputComparator");class g{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.id="Unknown",this.threshold=0,this.deadzone=0,this[r]=new Map,this[o]=new Map,this[a]=c.BasicComparator,this[i]="Unknown Input",this[l]="???",this[s]=new Set;const{name:n,icon:u,threshold:d,deadzone:h}=e;n&&(this[t.InputName]=n),u&&(this[t.InputIcon]=u),d&&(this.threshold=d),h&&(this.deadzone=h),setTimeout((()=>{this[t.InputSetComparator](),Object.values(this).forEach((e=>{e!==this&&e instanceof g&&e[f](this)}))}))}on(e,t){const n=this[u].get(e);return n?(n.push(t),this):(this[u].set(e,[]),this.on(e,t))}once(e,t){const n=this[d].get(e);return n?(n.push(t),this):(this[d].set(e,[]),this.once(e,t))}emit(e,t){var n;(null!==(n=this[u].get(e))&&void 0!==n?n:[]).forEach((e=>{e(this,t)})),"input"!==e&&(this.emitOnce(e,t),this[h].forEach((n=>{n.emit(e,t)})))}emitOnce(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const r=null!==(t=this[d].get(e))&&void 0!==t?t:[];this[d].set(e,[]),r.forEach((e=>{e(this,n)}))}addEventListener(e,t){let{once:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{once:!1};if(n){if("input"===e)throw new Error("Can't listen once to `input` events");return this.once(e,t)}return this.on(e,t)}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"change";return new Promise((t=>{this.once(e,(()=>{t({value:this,done:!1})}))}))}promise(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"change";return new Promise((t=>{this.once(e,(()=>t(this)))}))}toString(){return"".concat(this[t.InputIcon]," [").concat(this.active?"X":"_","]")}[(r=u,o=d,a=p,Symbol.asyncIterator)](){return this}[Symbol.toPrimitive](e){return"string"===e?String(this.state):"number"===typeof this.state?this.state:Number(this.state)}get[Symbol.toStringTag](){return this.toString()}[(i=t.InputName,l=t.InputIcon,s=h,f)](e){this[h].add(e)}[t.InputSetComparator](){"number"===typeof this.state?this[p]=c.ThresholdComparator.bind(this,this.threshold,this.deadzone):this.state instanceof g?this[p]=c.VirtualComparator:this[p]=c.BasicComparator}[t.InputSet](e){this[p](this.state,e)&&(this.state=e,this.emit("change",this),"boolean"===typeof e&&this.emit(e?"press":"release",this)),this.emit("input",this)}}t.Input=g},4350:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DualsenseManager=void 0;const r=n(5948),o=n(6592),a=n(7974),i=n(2139),l=n(1492),s=n(3990),c=n(6268),u=[a.PlayerID.Player1,a.PlayerID.Player2,a.PlayerID.Player3,a.PlayerID.Player4,1,2,8,16,17,3,24,5,20,9,18,6,12,7,28,14,25,19,11,26,13,22,23,29,15,30,a.PlayerID.All];class d extends o.Input{constructor(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n;(super({name:"DualsenseManager",icon:"\ud83c\udfae",...t}),this.state={active:0,players:new Map},this.playerPatterns=[...u],this.slots=[],this.serialToSlot=new Map,this.isBrowser="undefined"!==typeof window,this.autoAssignPlayerLeds=null===(e=t.autoAssignPlayerLeds)||void 0===e||e,this.isBrowser)?this.startWebDiscovery():this.startNodeDiscovery(null!==(n=t.discoveryInterval)&&void 0!==n?n:2e3)}get active(){return this.state.active>0}get controllers(){return this.slots.map((e=>e.controller))}get count(){return this.slots.length}get(e){var t;return null===(t=this.slots[e])||void 0===t?void 0:t.controller}[Symbol.iterator](){return this.slots.map((e=>e.controller)).values()}setPlayerPattern(e,t){this.playerPatterns[e]=31&t;const n=this.slots[e];n&&this.autoAssignPlayerLeds&&n.controller.playerLeds.set(this.playerPatterns[e])}getPlayerPattern(e){var t;return null!==(t=this.playerPatterns[e])&&void 0!==t?t:0}release(e){const t=this.slots[e];if(t){t.controller.hid.provider.disconnect(),t.serial&&this.serialToSlot.delete(t.serial),this.slots.splice(e,1);for(let t=e;t<this.slots.length;t++){const e=this.slots[t];var n;if(e.index=t,e.serial&&this.serialToSlot.set(e.serial,t),this.autoAssignPlayerLeds)e.controller.playerLeds.set(null!==(n=this.playerPatterns[t])&&void 0!==n?n:0)}this.updateState()}}releaseDisconnected(){for(let e=this.slots.length-1;e>=0;e--)this.slots[e].controller.connection.active||this.release(e)}dispose(){this.discoveryTimer&&(clearInterval(this.discoveryTimer),this.discoveryTimer=void 0);for(let e=this.slots.length-1;e>=0;e--)this.release(e)}getRequest(){return this.isBrowser?c.WebHIDProvider.getMultiRequest((e=>{this.addWebDevice(e)})):()=>Promise.resolve()}updateState(){const e=new Map;for(const n of this.slots)e.set(n.index,n.controller);const t=this.slots.filter((e=>e.controller.connection.active)).length;this[o.InputSet]({active:t,players:e})}createSlot(e,t,n){if(t){const r=this.serialToSlot.get(t);if(void 0!==r){const o=this.slots[r];if(o&&!o.controller.connection.active){if(e instanceof s.NodeHIDProvider){const e=o.controller.hid.provider;e.targetPath=n,e.targetSerial=t}return o.path=n,e.disconnect(),o}}}const o=new i.DualsenseHID(e),a=new r.Dualsense({hid:o}),l=this.slots.length,c={controller:a,serial:t,path:n,index:l};this.slots.push(c),t&&this.serialToSlot.set(t,l);const u=()=>{var e;this.autoAssignPlayerLeds&&a.playerLeds.set(null!==(e=this.playerPatterns[c.index])&&void 0!==e?e:0)};return u(),a.connection.on("change",(()=>{a.connection.active&&u(),this.updateState()})),this.updateState(),c}startNodeDiscovery(e){const t=async()=>{try{const e=await s.NodeHIDProvider.enumerate();for(const t of e)this.processDiscoveredDevice(t)}catch{}};t(),this.discoveryTimer=setInterval((()=>{t()}),e)}processDiscoveredDevice(e){if(l.HIDProvider.claimedDevices.has(e.path))return;if(void 0!==e.serialNumber){const t=this.serialToSlot.get(e.serialNumber);if(void 0!==t){const n=this.slots[t];if(!n.controller.connection.active){const t=n.controller.hid.provider;return t.targetPath=e.path,t.targetSerial=e.serialNumber,void(n.path=e.path)}}}const t=new s.NodeHIDProvider({devicePath:e.path,serialNumber:e.serialNumber});this.createSlot(t,e.serialNumber,e.path)}startWebDiscovery(){"undefined"!==typeof navigator&&navigator.hid&&(navigator.hid.addEventListener("connect",(e=>{let{device:t}=e;this.addWebDevice(t)})),c.WebHIDProvider.enumerate().then((e=>{for(const t of e)this.addWebDevice(t)})))}addWebDevice(e){for(const n of this.slots){if(n.controller.hid.provider.device===e)return}const t=new c.WebHIDProvider({device:e});this.createSlot(t,void 0,void 0)}}t.DualsenseManager=d},2431:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5353:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>r}),function(e){e[e.STANDARD=16]="STANDARD",e[e.LARGE=20]="LARGE"}(r||(r={}))},1694:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2110:(e,t,n)=>{"use strict";var r=n(8309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),g=s(n),m=0;m<i.length;++m){var v=i[m];if(!a[v]&&(!r||!r[v])&&(!g||!g[v])&&(!l||!l[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},746:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case l:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case s:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===l||e===i||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},8309:(e,t,n)=>{"use strict";e.exports=n(746)},7254:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});function r(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function i(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,i=void 0===n?o:n,s=t.stripRegexp,c=void 0===s?a:s,u=t.transform,d=void 0===u?r:u,f=t.delimiter,h=void 0===f?" ":f,p=l(l(e,i,"$1\0$2"),c,"\0"),g=0,m=p.length;"\0"===p.charAt(g);)g++;for(;"\0"===p.charAt(m-1);)m--;return p.slice(g,m).split("\0").map(d).join(h)}function l(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}},5530:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>i});var r=n(5971),o=n(7254);function a(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function i(e,t){return void 0===t&&(t={}),(0,o.B)(e,(0,r.pi)({delimiter:"",transform:a},t))}},4463:(e,t,n)=>{"use strict";var r=n(2791),o=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function M(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}var O,I=Object.assign;function N(e){if(void 0===O)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function U(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ce=null;function Ee(e){if(e=xo(e)){if("function"!==typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Pe(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function _e(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Le(){}var Re=!1;function je(e,t,n){if(Re)return e(t,n);Re=!0;try{return Te(e,t,n)}finally{Re=!1,(null!==ke||null!==Ce)&&(Le(),_e())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var De=!1;if(u)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){De=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ue){De=!1}function Me(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Oe=!1,Ie=null,Ne=!1,Fe=null,Be={onError:function(e){Oe=!0,Ie=e}};function Ue(e,t,n,r,o,a,i,l,s){Oe=!1,Ie=null,Me.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(a(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return We(o),e;if(i===r)return We(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Qe=o.unstable_requestPaint,Xe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,kt,Ct,Et,Pt=!1,_t=[],Tt=null,Lt=null,Rt=null,jt=new Map,At=new Map,Dt=[],zt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":jt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Ot(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){Nt(e)&&n.delete(t)}function Bt(){Pt=!1,null!==Tt&&Nt(Tt)&&(Tt=null),null!==Lt&&Nt(Lt)&&(Lt=null),null!==Rt&&Nt(Rt)&&(Rt=null),jt.forEach(Ft),At.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Pt||(Pt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return Ut(t,e)}if(0<_t.length){Ut(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Lt&&Ut(Lt,e),null!==Rt&&Ut(Rt,e),jt.forEach(t),At.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)It(n),null===n.blockedOn&&Dt.shift()}var Gt=x.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=bt,a=Gt.transition;Gt.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Gt.transition=a}}function $t(e,t,n,r){var o=bt,a=Gt.transition;Gt.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Gt.transition=a}}function qt(e,t,n,r){if(Wt){var o=Yt(e,t,n,r);if(null===o)Wr(e,t,r,Kt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Ot(Tt,e,t,n,r,o),!0;case"dragenter":return Lt=Ot(Lt,e,t,n,r,o),!0;case"mouseover":return Rt=Ot(Rt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return jt.set(a,Ot(jt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,At.set(a,Ot(At.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<zt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Yt(e,t,n,r))&&Wr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Kt=null;function Yt(e,t,n,r){if(Kt=null,null!==(e=bo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=I({},cn,{view:0,detail:0}),fn=on(dn),hn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),pn=on(hn),gn=on(I({},hn,{dataTransfer:0})),mn=on(I({},dn,{relatedTarget:0})),vn=on(I({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=I({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(I({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Cn}var Pn=I({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(Pn),Tn=on(I({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=on(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Rn=on(I({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=I({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=on(jn),Dn=[9,13,27,32],zn=u&&"CompositionEvent"in window,Mn=null;u&&"documentMode"in document&&(Mn=document.documentMode);var On=u&&"TextEvent"in window&&!Mn,In=u&&(!zn||Mn&&8<Mn&&11>=Mn),Nn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Vn(e,t,n,r){Pe(r),0<(t=$r(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,qn=null;function Kn(e){Nr(e,0)}function Yn(e){if(q(wo(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),qn=$n=null)}function nr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];Vn(t,qn,e,we(e)),je(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function ar(e,t){if("click"===e)return Yn(t)}function ir(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==K(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=$r(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Cr={};function Er(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Pr=Er("animationend"),_r=Er("animationiteration"),Tr=Er("animationstart"),Lr=Er("transitionend"),Rr=new Map,jr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Rr.set(e,t),s(t,[e])}for(var Dr=0;Dr<jr.length;Dr++){var zr=jr[Dr];Ar(zr.toLowerCase(),"on"+(zr[0].toUpperCase()+zr.slice(1)))}Ar(Pr,"onAnimationEnd"),Ar(_r,"onAnimationIteration"),Ar(Tr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Lr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,c){if(Ue.apply(this,arguments),Oe){if(!Oe)throw Error(a(198));var u=Ie;Oe=!1,Ie=null,Ne||(Ne=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ir(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ir(o,l,c),a=s}}}if(Ne)throw e=Fe,Ne=!1,Fe=null,e}function Fr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Ur]){e[Ur]=!0,i.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Qt(t)){case 1:var o=Vt;break;case 4:o=$t;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=bo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}je((function(){var r=a,o=we(n),i=[];e:{var l=Rr.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=_n;break;case"focusin":c="focus",s=mn;break;case"focusout":c="blur",s=mn;break;case"beforeblur":case"afterblur":s=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ln;break;case Pr:case _r:case Tr:s=vn;break;case Lr:s=Rn;break;case"scroll":s=fn;break;case"wheel":s=An;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Ae(p,f))&&u.push(Vr(p,g,h)))),d)break;p=p.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==s?l:wo(s),h=null==c?l:wo(c),(l=new u(g,p+"leave",s,n,o)).target=d,l.relatedTarget=h,g=null,bo(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(f=c,p=0,h=u=s;h;h=qr(h))p++;for(h=0,g=f;g;g=qr(g))h++;for(;0<p-h;)u=qr(u),p--;for(;0<h-p;)f=qr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==s&&Kr(i,l,s,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(s=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Qn;else if(Wn(l))if(Xn)m=ir;else{m=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ar);switch(m&&(m=m(e,r))?Vn(i,m,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?wo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(i,n,o)}var y;if(zn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Zt="value"in(Xt=o)?Xt.value:Xt.textContent,Hn=!0)),0<(v=$r(r,b)).length&&(b=new xn(b,e,null,n,o),i.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=On?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!zn&&Bn(e,t)?(e=en(),Jt=Zt=Xt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y))}Nr(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ae(e,n))&&r.unshift(Vr(e,a,o)),null!=(a=Ae(e,t))&&r.push(Vr(e,a,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Ae(n,a))&&i.unshift(Vr(n,s,l)):o||null!=(s=Ae(n,a))&&i.push(Vr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Zr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function So(e){return e[po]||null}var ko=[],Co=-1;function Eo(e){return{current:e}}function Po(e){0>Co||(e.current=ko[Co],ko[Co]=null,Co--)}function _o(e,t){Co++,ko[Co]=e.current,e.current=t}var To={},Lo=Eo(To),Ro=Eo(!1),jo=To;function Ao(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function zo(){Po(Ro),Po(Lo)}function Mo(e,t,n){if(Lo.current!==To)throw Error(a(168));_o(Lo,t),_o(Ro,n)}function Oo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||"Unknown",o));return I({},n,r)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,jo=Lo.current,_o(Lo,e),_o(Ro,Ro.current),!0}function No(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Oo(e,t,jo),r.__reactInternalMemoizedMergedChildContext=e,Po(Ro),Po(Lo),_o(Lo,e)):Po(Ro),_o(Ro,n)}var Fo=null,Bo=!1,Uo=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Go(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),qe(Je,Go),o}finally{bt=t,Uo=!1}}return null}var Wo=[],Vo=0,$o=null,qo=0,Ko=[],Yo=0,Qo=null,Xo=1,Zo="";function Jo(e,t){Wo[Vo++]=qo,Wo[Vo++]=$o,$o=e,qo=t}function ea(e,t,n){Ko[Yo++]=Xo,Ko[Yo++]=Zo,Ko[Yo++]=Qo,Qo=e;var r=Xo;e=Zo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Zo=a+e}else Xo=1<<a|n<<o|r,Zo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===$o;)$o=Wo[--Vo],Wo[Vo]=null,qo=Wo[--Vo],Wo[Vo]=null;for(;e===Qo;)Qo=Ko[--Yo],Ko[Yo]=null,Zo=Ko[--Yo],Ko[Yo]=null,Xo=Ko[--Yo],Ko[Yo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Xo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw ha(),Error(a(418));for(;t;)la(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=oa;e;)e=co(e.nextSibling)}function pa(){oa=ra=null,aa=!1}function ga(e){null===ia?ia=[e]:ia.push(e)}var ma=x.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Eo(null),ba=null,xa=null,wa=null;function Sa(){wa=xa=ba=null}function ka(e){var t=ya.current;Po(ya),e._currentValue=t}function Ca(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ea(e,t){ba=e,wa=xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xl=!0),e.firstContext=null)}function Pa(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===xa){if(null===ba)throw Error(a(308));xa=e,ba.dependencies={lanes:0,firstContext:e}}else xa=xa.next=e;return t}var _a=null;function Ta(e){null===_a?_a=[e]:_a.push(e)}function La(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ta(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ra(e,r)}function Ra(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ja=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function za(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ls)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ra(e,n)}return null===(o=r.interleaved)?(t.next=t,Ta(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ra(e,n)}function Oa(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Na(e,t,n,r){var o=e.updateQueue;ja=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var f=l.lane,h=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,g=l;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=I({},d,f);break e;case 2:ja=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else h={eventTime:h,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=h,s=d):u=u.next=h,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Is|=i,e.lanes=i,e.memoizedState=d}}function Fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var Ba=(new r.Component).refs;function Ua(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ha={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=za(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(rc(t,e,o,r),Oa(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=za(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ma(e,a,o))&&(rc(t,e,o,r),Oa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=za(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Ma(e,o,r))&&(rc(t,e,r,n),Oa(t,e,r))}};function Ga(e,t,n,r,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function Wa(e,t,n){var r=!1,o=To,a=t.contextType;return"object"===typeof a&&null!==a?a=Pa(a):(o=Do(t)?jo:Lo.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ao(e,o):To),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ha,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Va(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ha.enqueueReplaceState(t,t.state,null)}function $a(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ba,Aa(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=Pa(a):(a=Do(t)?jo:Lo.current,o.context=Ao(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ha.enqueueReplaceState(o,o.state,null),Na(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function qa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Ba&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){return(0,e._init)(e._payload)}function Qa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=zc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Nc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===A&&Ya(a)===t.type)?((r=o(t,n.props)).ref=qa(e,t,n),r.return=e,r):((r=Mc(n.type,n.key,n.props,null,e.mode,r)).ref=qa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Oc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Nc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Mc(t.type,t.key,t.props,null,e.mode,n)).ref=qa(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Oc(t,e.mode,n,null)).return=e,t;Ka(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case A:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:d(e,t,n,r,null);Ka(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case A:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);Ka(t,r)}return null}function g(o,a,l,s){for(var c=null,u=null,d=a,g=a=0,m=null;null!==d&&g<l.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,l[g],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===l.length)return n(o,d),aa&&Jo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],s))&&(a=i(d,a,g),null===u?c=d:u.sibling=d,u=d);return aa&&Jo(o,g),c}for(d=r(o,d);g<l.length;g++)null!==(m=p(d,o,g,l[g],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=i(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),c}function m(o,l,s,c){var u=M(s);if("function"!==typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var d=u=null,g=l,m=l=0,v=null,y=s.next();null!==g&&!y.done;m++,y=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),aa&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=f(o,y.value,c))&&(l=i(y,l,m),null===d?u=y:d.sibling=y,d=y);return aa&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=s.next())null!==(y=p(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=i(y,l,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),u}return function e(r,a,i,s){if("object"===typeof i&&null!==i&&i.type===k&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===k){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===A&&Ya(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=qa(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===k?((a=Oc(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Mc(i.type,i.key,i.props,null,r.mode,s)).ref=qa(r,a,i),s.return=r,r=s)}return l(r);case S:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(i,r.mode,s)).return=r,r=a}return l(r);case A:return e(r,a,(u=i._init)(i._payload),s)}if(te(i))return g(r,a,i,s);if(M(i))return m(r,a,i,s);Ka(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Nc(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Xa=Qa(!0),Za=Qa(!1),Ja={},ei=Eo(Ja),ti=Eo(Ja),ni=Eo(Ja);function ri(e){if(e===Ja)throw Error(a(174));return e}function oi(e,t){switch(_o(ni,t),_o(ti,e),_o(ei,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Po(ei),_o(ei,t)}function ai(){Po(ei),Po(ti),Po(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=se(t,e.type);t!==n&&(_o(ti,e),_o(ei,n))}function li(e){ti.current===e&&(Po(ei),Po(ti))}var si=Eo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var fi=x.ReactCurrentDispatcher,hi=x.ReactCurrentBatchConfig,pi=0,gi=null,mi=null,vi=null,yi=!1,bi=!1,xi=0,wi=0;function Si(){throw Error(a(321))}function ki(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Ci(e,t,n,r,o,i){if(pi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=null===e||null===e.memoizedState?ll:sl,e=n(r,o),bi){i=0;do{if(bi=!1,xi=0,25<=i)throw Error(a(301));i+=1,vi=mi=null,t.updateQueue=null,fi.current=cl,e=n(r,o)}while(bi)}if(fi.current=il,t=null!==mi&&null!==mi.next,pi=0,vi=mi=gi=null,yi=!1,t)throw Error(a(300));return e}function Ei(){var e=0!==xi;return xi=0,e}function Pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vi?gi.memoizedState=vi=e:vi=vi.next=e,vi}function _i(){if(null===mi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=mi.next;var t=null===vi?gi.memoizedState:vi.next;if(null!==t)vi=t,mi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(mi=e).memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},null===vi?gi.memoizedState=vi=e:vi=vi.next=e}return vi}function Ti(e,t){return"function"===typeof t?t(e):t}function Li(e){var t=_i(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=mi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,c=null,u=i;do{var d=u.lane;if((pi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=r):c=c.next=f,gi.lanes|=d,Is|=d}u=u.next}while(null!==u&&u!==i);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(xl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,gi.lanes|=i,Is|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ri(e){var t=_i(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(xl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ji(){}function Ai(e,t){var n=gi,r=_i(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,xl=!0),r=r.queue,Wi(Mi.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==vi&&1&vi.memoizedState.tag){if(n.flags|=2048,Fi(9,zi.bind(null,n,r,o,t),void 0,null),null===Rs)throw Error(a(349));0!==(30&pi)||Di(n,t,o)}return o}function Di(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function zi(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Ii(e)}function Mi(e,t,n){return n((function(){Oi(t)&&Ii(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Ii(e){var t=Ra(e,1);null!==t&&rc(t,e,1,-1)}function Ni(e){var t=Pi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ti,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,gi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bi(){return _i().memoizedState}function Ui(e,t,n,r){var o=Pi();gi.flags|=e,o.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function Hi(e,t,n,r){var o=_i();r=void 0===r?null:r;var a=void 0;if(null!==mi){var i=mi.memoizedState;if(a=i.destroy,null!==r&&ki(r,i.deps))return void(o.memoizedState=Fi(t,n,a,r))}gi.flags|=e,o.memoizedState=Fi(1|t,n,a,r)}function Gi(e,t){return Ui(8390656,8,e,t)}function Wi(e,t){return Hi(2048,8,e,t)}function Vi(e,t){return Hi(4,2,e,t)}function $i(e,t){return Hi(4,4,e,t)}function qi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Hi(4,4,qi.bind(null,t,e),n)}function Yi(){}function Qi(e,t){var n=_i();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xi(e,t){var n=_i();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Zi(e,t,n){return 0===(21&pi)?(e.baseState&&(e.baseState=!1,xl=!0),e.memoizedState=n):(lr(n,t)||(n=gt(),gi.lanes|=n,Is|=n,e.baseState=!0),t)}function Ji(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=hi.transition;hi.transition={};try{e(!1),t()}finally{bt=n,hi.transition=r}}function el(){return _i().memoizedState}function tl(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=La(e,t,n,r))){rc(n,e,r,tc()),al(n,t,r)}}function nl(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ta(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=La(e,t,o,r))&&(rc(n,e,r,o=tc()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function ol(e,t){bi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var il={readContext:Pa,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},ll={readContext:Pa,useCallback:function(e,t){return Pi().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:Gi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ui(4194308,4,qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Pi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Pi().memoizedState=e},useState:Ni,useDebugValue:Yi,useDeferredValue:function(e){return Pi().memoizedState=e},useTransition:function(){var e=Ni(!1),t=e[0];return e=Ji.bind(null,e[1]),Pi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,o=Pi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Rs)throw Error(a(349));0!==(30&pi)||Di(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Gi(Mi.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,zi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pi(),t=Rs.identifierPrefix;if(aa){var n=Zo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=xi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Pa,useCallback:Qi,useContext:Pa,useEffect:Wi,useImperativeHandle:Ki,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Xi,useReducer:Li,useRef:Bi,useState:function(){return Li(Ti)},useDebugValue:Yi,useDeferredValue:function(e){return Zi(_i(),mi.memoizedState,e)},useTransition:function(){return[Li(Ti)[0],_i().memoizedState]},useMutableSource:ji,useSyncExternalStore:Ai,useId:el,unstable_isNewReconciler:!1},cl={readContext:Pa,useCallback:Qi,useContext:Pa,useEffect:Wi,useImperativeHandle:Ki,useInsertionEffect:Vi,useLayoutEffect:$i,useMemo:Xi,useReducer:Ri,useRef:Bi,useState:function(){return Ri(Ti)},useDebugValue:Yi,useDeferredValue:function(e){var t=_i();return null===mi?t.memoizedState=e:Zi(t,mi.memoizedState,e)},useTransition:function(){return[Ri(Ti)[0],_i().memoizedState]},useMutableSource:ji,useSyncExternalStore:Ai,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=za(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,$s=r),fl(0,t)},n}function gl(e,t,n){(n=za(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!==typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Pc.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=za(-1,1)).tag=2,Ma(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=x.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?Za(t,null,n,r):Xa(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var a=t.ref;return Ea(t,o),r=Ci(e,t,n,r,a,o),n=Ei(),null===e||xl?(aa&&n&&ta(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||Dc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Cl(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=zc(a,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!==(131072&e.flags)&&(xl=!0)}}return _l(e,t,n,r,o)}function El(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(zs,Ds),Ds|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(zs,Ds),Ds|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,_o(zs,Ds),Ds|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,_o(zs,Ds),Ds|=r;return wl(e,t,o,n),t.child}function Pl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,n,r,o){var a=Do(n)?jo:Lo.current;return a=Ao(t,a),Ea(t,o),n=Ci(e,t,n,r,a,o),r=Ei(),null===e||xl?(aa&&r&&ta(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Tl(e,t,n,r,o){if(Do(n)){var a=!0;Io(t)}else a=!1;if(Ea(t,o),null===t.stateNode)Wl(e,t),Wa(t,n,r),$a(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pa(c):c=Ao(t,c=Do(n)?jo:Lo.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Va(t,i,r,c),ja=!1;var f=t.memoizedState;i.state=f,Na(t,r,i,o),s=t.memoizedState,l!==r||f!==s||Ro.current||ja?("function"===typeof u&&(Ua(t,n,u,r),s=t.memoizedState),(l=ja||Ga(t,n,l,r,f,s,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Da(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:va(t.type,l),i.props=c,d=t.pendingProps,f=i.context,"object"===typeof(s=n.contextType)&&null!==s?s=Pa(s):s=Ao(t,s=Do(n)?jo:Lo.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==d||f!==s)&&Va(t,i,r,s),ja=!1,f=t.memoizedState,i.state=f,Na(t,r,i,o);var p=t.memoizedState;l!==d||f!==p||Ro.current||ja?("function"===typeof h&&(Ua(t,n,h,r),p=t.memoizedState),(c=ja||Ga(t,n,c,r,f,p,s)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=c):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ll(e,t,n,r,a,o)}function Ll(e,t,n,r,o,a){Pl(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&No(t,n,!1),Vl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,l,a)):wl(e,t,l,a),t.memoizedState=r.state,o&&No(t,n,!0),t.child}function Rl(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),oi(e,t.containerInfo)}function jl(e,t,n,r,o){return pa(),ga(o),t.flags|=256,wl(e,t,n,r),t.child}var Al,Dl,zl,Ml,Ol={dehydrated:null,treeContext:null,retryLane:0};function Il(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nl(e,t,n){var r,o=t.pendingProps,i=si.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),_o(si,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Ic(s,o,0,null),e=Oc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Il(n),t.memoizedState=Ol,e):Fl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ic({mode:"visible",children:r.children},o,0,null),(i=Oc(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&Xa(t,e.child,null,l),t.child.memoizedState=Il(l),t.memoizedState=Ol,i);if(0===(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,l,r=dl(i=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),xl||s){if(null!==(r=Rs)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ra(e,o),rc(r,e,o,-1))}return mc(),Bl(e,t,l,r=dl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Yo++]=Xo,Ko[Yo++]=Zo,Ko[Yo++]=Qo,Xo=e.id,Zo=e.overflow,Qo=t),t=Fl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=zc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=zc(r,l):(l=Oc(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Il(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ol,o}return e=(l=e.child).sibling,o=zc(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=Ic({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&ga(r),Xa(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ca(e.return,t,n)}function Hl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Gl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=si.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(si,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,a);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Is|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Do(t.type)&&zo(),ql(t),null;case 3:return r=t.stateNode,ai(),Po(Ro),Po(Lo),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(lc(ia),ia=null))),Dl(e,t),ql(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)zl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ql(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ho]=t,r[po]=i,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Fr(Mr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,i),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Fr("invalid",r);break;case"textarea":oe(r,i),Fr("invalid",r)}for(var s in ye(n,i),o=null,i)if(i.hasOwnProperty(s)){var c=i[s];"children"===s?"string"===typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":$(r),J(r,i,!0);break;case"textarea":$(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ho]=t,e[po]=r,Al(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Fr(Mr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":Q(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=I({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?me(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Fr("scroll",e):null!=u&&b(e,i,u,s))}switch(n){case"input":$(e),J(e,r,!1);break;case"textarea":$(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Ml(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return ql(t),null;case 13:if(Po(si),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))ha(),pa(),t.flags|=98560,i=!1;else if(i=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[ho]=t}else pa(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==ia&&(lc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&si.current)?0===Ms&&(Ms=3):mc())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ai(),Dl(e,t),null===e&&Hr(t.stateNode.containerInfo),ql(t),null;case 10:return ka(t.type._context),ql(t),null;case 19:if(Po(si),null===(i=t.memoizedState))return ql(t),null;if(r=0!==(128&t.flags),null===(s=i.rendering))if(r)$l(i,!1);else{if(0!==Ms||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ci(e))){for(t.flags|=128,$l(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(si,1&si.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>Gs&&(t.flags|=128,r=!0,$l(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return ql(t),null}else 2*Xe()-i.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=128,r=!0,$l(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=si.current,_o(si,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ds)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(na(t),t.tag){case 1:return Do(t.type)&&zo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Po(Ro),Po(Lo),di(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Po(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Po(si),null;case 4:return ai(),null;case 10:return ka(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Al=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Dl=function(){},zl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),i=[];break;case"select":o=I({},o,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ml=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ql=!1,Xl=!1,Zl="function"===typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ts(t,n,a)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[mo],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,fs=!1;function hs(e,t,n){for(n=n.child;null!==n;)ps(e,t,n),n=n.sibling}function ps(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,o=fs;ds=null,hs(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ht(e)):so(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,hs(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&ts(n,t,i),o=o.next}while(o!==r)}hs(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ec(n,t,l)}hs(e,t,n);break;case 21:hs(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,hs(e,t,n),Xl=r):hs(e,t,n);break;default:hs(e,t,n)}}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zl),t.forEach((function(t){var r=Lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(a(160));ps(i,l,o),ds=null,fs=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Ec(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),ys(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(m){Ec(e,e.return,m)}try{rs(5,e,e.return)}catch(m){Ec(e,e.return,m)}}break;case 1:ms(t,e),ys(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(ms(t,e),ys(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(m){Ec(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&X(o,i),be(s,l);var u=be(s,i);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(s){case"input":Z(o,i);break;case"textarea":ae(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ne(o,!!i.multiple,p,!1):h!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[po]=i}catch(m){Ec(e,e.return,m)}}break;case 6:if(ms(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(m){Ec(e,e.return,m)}}break;case 3:if(ms(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(m){Ec(e,e.return,m)}break;case 4:default:ms(t,e),ys(e);break;case 13:ms(t,e),ys(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Hs=Xe())),4&r&&gs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,ms(t,e),Xl=u):ms(t,e),ys(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(p=(h=Jl).child,h.tag){case 0:case 11:case 14:case 15:rs(4,h,h.return);break;case 1:es(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Ec(r,n,m)}}break;case 5:es(h,h.return);break;case 22:if(null!==h.memoizedState){Ss(f);continue}}null!==p?(p.return=h,Jl=p):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=f.stateNode,l=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,s.style.display=ge("display",l))}catch(m){Ec(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){Ec(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ms(t,e),ys(e),4&r&&gs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),us(e,ss(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cs(e,ss(e),i);break;default:throw Error(a(161))}}catch(l){Ec(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,xs(e,t,n)}function xs(e,t,n){for(var r=0!==(1&e.mode);null!==Jl;){var o=Jl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Ql;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Ql;var c=Xl;if(Ql=i,(Xl=s)&&!c)for(Jl=o;null!==Jl;)s=(i=Jl).child,22===i.tag&&null!==i.memoizedState?ks(o):null!==s?(s.return=i,Jl=s):ks(o);for(;null!==a;)Jl=a,xs(a,t,n),a=a.sibling;Jl=o,Ql=l,Xl=c}ws(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Jl=a):ws(e)}}function ws(e){for(;null!==Jl;){var t=Jl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:va(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fa(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fa(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(a(163))}Xl||512&t.flags&&as(t)}catch(h){Ec(t,t.return,h)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function Ss(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function ks(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(s){Ec(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){Ec(t,o,s)}}var a=t.return;try{as(t)}catch(s){Ec(t,a,s)}break;case 5:var i=t.return;try{as(t)}catch(s){Ec(t,i,s)}}}catch(s){Ec(t,t.return,s)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Cs,Es=Math.ceil,Ps=x.ReactCurrentDispatcher,_s=x.ReactCurrentOwner,Ts=x.ReactCurrentBatchConfig,Ls=0,Rs=null,js=null,As=0,Ds=0,zs=Eo(0),Ms=0,Os=null,Is=0,Ns=0,Fs=0,Bs=null,Us=null,Hs=0,Gs=1/0,Ws=null,Vs=!1,$s=null,qs=null,Ks=!1,Ys=null,Qs=0,Xs=0,Zs=null,Js=-1,ec=0;function tc(){return 0!==(6&Ls)?Xe():-1!==Js?Js:Js=Xe()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Ls)&&0!==As?As&-As:null!==ma.transition?(0===ec&&(ec=gt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function rc(e,t,n,r){if(50<Xs)throw Xs=0,Zs=null,Error(a(185));vt(e,n,r),0!==(2&Ls)&&e===Rs||(e===Rs&&(0===(2&Ls)&&(Ns|=n),4===Ms&&sc(e,As)),oc(e,r),1===n&&0===Ls&&0===(1&t.mode)&&(Gs=Xe()+500,Bo&&Go()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=ht(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=ft(e,e===Rs?As:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Bo=!0,Ho(e)}(cc.bind(null,e)):Ho(cc.bind(null,e)),io((function(){0===(6&Ls)&&Go()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Js=-1,ec=0,0!==(6&Ls))throw Error(a(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=ft(e,e===Rs?As:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vc(e,r);else{t=r;var o=Ls;Ls|=2;var i=gc();for(Rs===e&&As===t||(Ws=null,Gs=Xe()+500,hc(e,t));;)try{bc();break}catch(s){pc(e,s)}Sa(),Ps.current=i,Ls=o,null!==js?t=0:(Rs=null,As=0,t=Ms)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Os,hc(e,0),sc(e,r),oc(e,Xe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vc(e,r))&&(0!==(i=pt(e))&&(r=i,t=ic(e,i))),1===t))throw n=Os,hc(e,0),sc(e,r),oc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:Sc(e,Us,Ws);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Hs+500-Xe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Sc.bind(null,e,Us,Ws),t);break}Sc(e,Us,Ws);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)){e.timeoutHandle=ro(Sc.bind(null,e,Us,Ws),r);break}Sc(e,Us,Ws);break;default:throw Error(a(329))}}}return oc(e,Xe()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=Bs;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Us,Us=n,null!==t&&lc(t)),e}function lc(e){null===Us?Us=e:Us.push.apply(Us,e)}function sc(e,t){for(t&=~Fs,t&=~Ns,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Ls))throw Error(a(327));kc();var t=ft(e,0);if(0===(1&t))return oc(e,Xe()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Os,hc(e,0),sc(e,t),oc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Us,Ws),oc(e,Xe()),null}function uc(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{0===(Ls=n)&&(Gs=Xe()+500,Bo&&Go())}}function dc(e){null!==Ys&&0===Ys.tag&&0===(6&Ls)&&kc();var t=Ls;Ls|=1;var n=Ts.transition,r=bt;try{if(Ts.transition=null,bt=1,e)return e()}finally{bt=r,Ts.transition=n,0===(6&(Ls=t))&&Go()}}function fc(){Ds=zs.current,Po(zs)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&zo();break;case 3:ai(),Po(Ro),Po(Lo),di();break;case 5:li(r);break;case 4:ai();break;case 13:case 19:Po(si);break;case 10:ka(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Rs=e,js=e=zc(e.current,null),As=Ds=t,Ms=0,Os=null,Fs=Ns=Is=0,Us=Bs=null,null!==_a){for(t=0;t<_a.length;t++)if(null!==(r=(n=_a[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}_a=null}return e}function pc(e,t){for(;;){var n=js;try{if(Sa(),fi.current=il,yi){for(var r=gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(pi=0,vi=mi=gi=null,bi=!1,xi=0,_s.current=null,null===n||null===n.return){Ms=1,Os=t,js=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=As,s.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=s,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vl(l);if(null!==p){p.flags&=-257,yl(p,l,s,0,t),1&p.mode&&ml(i,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){ml(i,u,t),mc();break e}c=Error(a(426))}else if(aa&&1&s.mode){var v=vl(l);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),yl(v,l,s,0,t),ga(ul(c,s));break e}}i=c=ul(c,s),4!==Ms&&(Ms=2),null===Bs?Bs=[i]:Bs.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,pl(0,c,t));break e;case 1:s=c;var y=i.type,b=i.stateNode;if(0===(128&i.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===qs||!qs.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Ia(i,gl(i,s,t));break e}}i=i.return}while(null!==i)}wc(n)}catch(x){t=x,js===n&&null!==n&&(js=n=n.return);continue}break}}function gc(){var e=Ps.current;return Ps.current=il,null===e?il:e}function mc(){0!==Ms&&3!==Ms&&2!==Ms||(Ms=4),null===Rs||0===(268435455&Is)&&0===(268435455&Ns)||sc(Rs,As)}function vc(e,t){var n=Ls;Ls|=2;var r=gc();for(Rs===e&&As===t||(Ws=null,hc(e,t));;)try{yc();break}catch(o){pc(e,o)}if(Sa(),Ls=n,Ps.current=r,null!==js)throw Error(a(261));return Rs=null,As=0,Ms}function yc(){for(;null!==js;)xc(js)}function bc(){for(;null!==js&&!Ye();)xc(js)}function xc(e){var t=Cs(e.alternate,e,Ds);e.memoizedProps=e.pendingProps,null===t?wc(e):js=t,_s.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Kl(n,t,Ds)))return void(js=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(js=n);if(null===e)return Ms=6,void(js=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Ms&&(Ms=5)}function Sc(e,t,n){var r=bt,o=Ts.transition;try{Ts.transition=null,bt=1,function(e,t,n,r){do{kc()}while(null!==Ys);if(0!==(6&Ls))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Rs&&(js=Rs=null,As=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ks||(Ks=!0,Rc(tt,(function(){return kc(),null}))),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=Ts.transition,Ts.transition=null;var l=bt;bt=1;var s=Ls;Ls|=4,_s.current=null,function(e,t){if(eo=Wt,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===o&&(s=l),h===i&&++d===r&&(c=l),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:va(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(w){Ec(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}g=ns,ns=!1}(e,n),vs(n,e),pr(to),Wt=!!eo,to=eo=null,e.current=n,bs(n,e,o),Qe(),Ls=s,bt=l,Ts.transition=i}else e.current=n;if(Ks&&(Ks=!1,Ys=e,Qs=o),i=e.pendingLanes,0===i&&(qs=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),oc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Vs)throw Vs=!1,e=$s,$s=null,e;0!==(1&Qs)&&0!==e.tag&&kc(),i=e.pendingLanes,0!==(1&i)?e===Zs?Xs++:(Xs=0,Zs=e):Xs=0,Go()}(e,t,n,r)}finally{Ts.transition=o,bt=r}return null}function kc(){if(null!==Ys){var e=xt(Qs),t=Ts.transition,n=bt;try{if(Ts.transition=null,bt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Qs=0,0!==(6&Ls))throw Error(a(331));var o=Ls;for(Ls|=4,Jl=e.current;null!==Jl;){var i=Jl,l=i.child;if(0!==(16&Jl.flags)){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Jl=u;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var h=(d=Jl).sibling,p=d.return;if(is(d),d===u){Jl=null;break}if(null!==h){h.return=p,Jl=h;break}Jl=p}}}var g=i.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Jl=i}}if(0!==(2064&i.subtreeFlags)&&null!==l)l.return=i,Jl=l;else e:for(;null!==Jl;){if(0!==(2048&(i=Jl).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Jl=y;break e}Jl=i.return}}var b=e.current;for(Jl=b;null!==Jl;){var x=(l=Jl).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,Jl=x;else e:for(l=b;null!==Jl;){if(0!==(2048&(s=Jl).flags))try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(S){Ec(s,s.return,S)}if(s===l){Jl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Jl=w;break e}Jl=s.return}}if(Ls=o,Go(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(S){}r=!0}return r}finally{bt=n,Ts.transition=t}}return!1}function Cc(e,t,n){e=Ma(e,t=pl(0,t=ul(n,t),1),1),t=tc(),null!==e&&(vt(e,1,t),oc(e,t))}function Ec(e,t,n){if(3===e.tag)Cc(e,e,n);else for(;null!==t;){if(3===t.tag){Cc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Ma(t,e=gl(t,e=ul(n,e),1),1),e=tc(),null!==t&&(vt(t,1,e),oc(t,e));break}}t=t.return}}function Pc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(As&n)===n&&(4===Ms||3===Ms&&(130023424&As)===As&&500>Xe()-Hs?hc(e,0):Fs|=n),oc(e,t)}function _c(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Ra(e,t))&&(vt(e,t,n),oc(e,n))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),_c(e,n)}function Lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),_c(e,n)}function Rc(e,t){return qe(e,t)}function jc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new jc(e,t,n,r)}function Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mc(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Dc(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case k:return Oc(n.children,o,i,t);case C:l=8,o|=8;break;case E:return(e=Ac(12,n,t,2|o)).elementType=E,e.lanes=i,e;case L:return(e=Ac(13,n,t,o)).elementType=L,e.lanes=i,e;case R:return(e=Ac(19,n,t,o)).elementType=R,e.lanes=i,e;case D:return Ic(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:l=10;break e;case _:l=9;break e;case T:l=11;break e;case j:l=14;break e;case A:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ac(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Oc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function Ic(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Nc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,o,a,i,l,s){return e=new Bc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ac(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aa(a),e}function Hc(e){if(!e)return To;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Do(n))return Oo(e,n,t)}return t}function Gc(e,t,n,r,o,a,i,l,s){return(e=Uc(n,r,!0,e,0,a,0,l,s)).context=Hc(null),n=e.current,(a=za(r=tc(),o=nc(n))).callback=void 0!==t&&null!==t?t:null,Ma(n,a,o),e.current.lanes=o,vt(e,o,r),oc(e,r),e}function Wc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=za(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ma(o,t,i))&&(rc(e,o,i,a),Oa(e,o,i)),i}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}Cs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)xl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return xl=!1,function(e,t,n){switch(t.tag){case 3:Rl(t),pa();break;case 5:ii(t);break;case 1:Do(t.type)&&Io(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(si,1&si.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Nl(e,t,n):(_o(si,1&si.current),null!==(e=Vl(e,t,n))?e.sibling:null);_o(si,1&si.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(si,si.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return Vl(e,t,n)}(e,t,n);xl=0!==(131072&e.flags)}else xl=!1,aa&&0!==(1048576&t.flags)&&ea(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Ao(t,Lo.current);Ea(t,n),o=Ci(null,t,r,e,o,n);var i=Ei();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(i=!0,Io(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Aa(t),o.updater=Ha,t.stateNode=o,o._reactInternals=t,$a(t,r,e,n),t=Ll(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Dc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===j)return 14}return 2}(r),e=va(r,e),o){case 0:t=_l(null,t,r,e,n);break e;case 1:t=Tl(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,va(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:va(r,o),n);case 1:return r=t.type,o=t.pendingProps,Tl(e,t,r,o=t.elementType===r?o:va(r,o),n);case 3:e:{if(Rl(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Da(e,t),Na(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=jl(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=jl(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Za(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===o){t=Vl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Pl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Nl(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xa(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:va(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,_o(ya,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!Ro.current){t=Vl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=za(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Ca(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Ca(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),r=r(o=Pa(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=va(r=t.type,t.pendingProps),kl(e,t,r,o=va(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:va(r,o),Wl(e,t),t.tag=1,Do(r)?(e=!0,Io(t)):e=!1,Ea(t,n),Wa(t,r,o),$a(t,r,o,n),Ll(null,t,r,!0,e,n);case 19:return Gl(e,t,n);case 22:return El(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"===typeof o){var l=o;o=function(){var e=Vc(i);l.call(e)}}Wc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"===typeof r){var a=r;r=function(){var e=Vc(i);a.call(e)}}var i=Gc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[go]=i.current,Hr(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Vc(s);l.call(e)}}var s=Uc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=s,e[go]=s.current,Hr(8===e.nodeType?e.parentNode:e),dc((function(){Wc(t,s,n,r)})),s}(n,t,e,o,r);return Vc(i)}Qc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Wc(e,t,null,null)},Qc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Wc(null,e,null,null)})),t[go]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&It(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,Xe()),0===(6&Ls)&&(Gs=Xe()+500,Go()))}break;case 13:dc((function(){var t=Ra(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),qc(e,1)}},St=function(e){if(13===e.tag){var t=Ra(e,134217728);if(null!==t)rc(t,e,134217728,tc());qc(e,134217728)}},kt=function(e){if(13===e.tag){var t=nc(e),n=Ra(e,t);if(null!==n)rc(n,e,t,tc());qc(e,t)}},Ct=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(a(90));q(r),Z(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=uc,Le=dc;var tu={usingClientEntryPoint:!1,Events:[xo,wo,So,Pe,_e,uc]},nu={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Gc(t,null,e,1,null!=n?n:null,o,0,i,l),e[go]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:(e,t,n)=>{"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},1372:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case i:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===l||e===i||e===f||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},7441:(e,t,n)=>{"use strict";e.exports=n(1372)},6374:(e,t,n)=>{"use strict";var r=n(2791),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},9117:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)S.call(t,o)&&!C.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:k.current}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+T(s,0):a,w(i)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),L(i,t,o,"",(function(e){return e}))):null!=i&&(P(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(_,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+T(l=e[c],c);s+=L(l,t,o,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=L(l=l.value,t,o,u=a+T(l,c++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function R(e,t,n){if(null==e)return e;var r=[],o=0;return L(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},D={transition:null},z={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:D,ReactCurrentOwner:k};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=i,t.PureComponent=b,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)S.call(t,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},2791:(e,t,n)=>{"use strict";e.exports=n(9117)},184:(e,t,n)=>{"use strict";e.exports=n(6374)},6813:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,x(e),!g)if(null!==r(c))g=!0,D(S);else{var t=r(u);null!==t&&z(w,t.startTime-e)}}function S(e,n){g=!1,m&&(m=!1,y(P),P=-1),p=!0;var a=h;try{for(x(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!L());){var i=f.callback;if("function"===typeof i){f.callback=null,h=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(c)&&o(c),x(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&z(w,d.startTime-n),s=!1}return s}finally{f=null,h=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,C=!1,E=null,P=-1,_=5,T=-1;function L(){return!(t.unstable_now()-T<_)}function R(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?k():(C=!1,E=null)}}else C=!1}if("function"===typeof b)k=function(){b(R)};else if("undefined"!==typeof MessageChannel){var j=new MessageChannel,A=j.port2;j.port1.onmessage=R,k=function(){A.postMessage(null)}}else k=function(){v(R,0)};function D(e){E=e,C||(C=!0,k())}function z(e,n){P=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(m?(y(P),P=-1):m=!0,z(w,a-i))):(e.sortIndex=l,n(c,e),g||p||(g=!0,D(S))),e},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:(e,t,n)=>{"use strict";e.exports=n(6813)},9613:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<a.length;s++){var c=a[s];if(!l(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},5500:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(9189),n(1276),n(6478));else{var o=t.Zdog;o.Anchor=r(o,o.Vector,o.CanvasRenderer,o.SvgRenderer)}}(this,(function(e,t,n,r){var o=e.TAU,a={x:1,y:1,z:1};function i(e){this.create(e||{})}return i.prototype.create=function(n){this.children=[],e.extend(this,this.constructor.defaults),this.setOptions(n),this.translate=new t(n.translate),this.rotate=new t(n.rotate),this.scale=new t(a).multiply(this.scale),this.origin=new t,this.renderOrigin=new t,this.addTo&&this.addTo.addChild(this)},i.defaults={},i.optionKeys=Object.keys(i.defaults).concat(["rotate","translate","scale","addTo"]),i.prototype.setOptions=function(e){var t=this.constructor.optionKeys;for(var n in e)-1!=t.indexOf(n)&&(this[n]=e[n])},i.prototype.addChild=function(e){-1==this.children.indexOf(e)&&(e.remove(),e.addTo=this,this.children.push(e))},i.prototype.removeChild=function(e){var t=this.children.indexOf(e);-1!=t&&this.children.splice(t,1)},i.prototype.remove=function(){this.addTo&&this.addTo.removeChild(this)},i.prototype.update=function(){this.reset(),this.children.forEach((function(e){e.update()})),this.transform(this.translate,this.rotate,this.scale)},i.prototype.reset=function(){this.renderOrigin.set(this.origin)},i.prototype.transform=function(e,t,n){this.renderOrigin.transform(e,t,n),this.children.forEach((function(r){r.transform(e,t,n)}))},i.prototype.updateGraph=function(){this.update(),this.updateFlatGraph(),this.flatGraph.forEach((function(e){e.updateSortValue()})),this.flatGraph.sort(i.shapeSorter)},i.shapeSorter=function(e,t){return e.sortValue-t.sortValue},Object.defineProperty(i.prototype,"flatGraph",{get:function(){return this._flatGraph||this.updateFlatGraph(),this._flatGraph},set:function(e){this._flatGraph=e}}),i.prototype.updateFlatGraph=function(){this.flatGraph=this.getFlatGraph()},i.prototype.getFlatGraph=function(){var e=[this];return this.addChildFlatGraph(e)},i.prototype.addChildFlatGraph=function(e){return this.children.forEach((function(t){var n=t.getFlatGraph();Array.prototype.push.apply(e,n)})),e},i.prototype.updateSortValue=function(){this.sortValue=this.renderOrigin.z},i.prototype.render=function(){},i.prototype.renderGraphCanvas=function(e){if(!e)throw new Error("ctx is "+e+". Canvas context required for render. Check .renderGraphCanvas( ctx ).");this.flatGraph.forEach((function(t){t.render(e,n)}))},i.prototype.renderGraphSvg=function(e){if(!e)throw new Error("svg is "+e+". SVG required for render. Check .renderGraphSvg( svg ).");this.flatGraph.forEach((function(t){t.render(e,r)}))},i.prototype.copy=function(t){var n={};return this.constructor.optionKeys.forEach((function(e){n[e]=this[e]}),this),e.extend(n,t),new(0,this.constructor)(n)},i.prototype.copyGraph=function(e){var t=this.copy(e);return this.children.forEach((function(e){e.copyGraph({addTo:t})})),t},i.prototype.normalizeRotate=function(){this.rotate.x=e.modulo(this.rotate.x,o),this.rotate.y=e.modulo(this.rotate.y,o),this.rotate.z=e.modulo(this.rotate.z,o)},i.subclass=function t(n){return function(r){function o(e){this.create(e||{})}return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.defaults=e.extend({},n.defaults),e.extend(o.defaults,r),o.optionKeys=n.optionKeys.slice(0),Object.keys(o.defaults).forEach((function(e){1!=!o.optionKeys.indexOf(e)&&o.optionKeys.push(e)})),o.subclass=t(o),o}}(i),i}))},7819:function(e){var t,n;t=this,n=function(){var e={};e.TAU=2*Math.PI,e.extend=function(e,t){for(var n in t)e[n]=t[n];return e},e.lerp=function(e,t,n){return(t-e)*n+e},e.modulo=function(e,t){return(e%t+t)%t};var t={2:function(e){return e*e},3:function(e){return e*e*e},4:function(e){return e*e*e*e},5:function(e){return e*e*e*e*e}};return e.easeInOut=function(e,n){if(1==n)return e;var r=(e=Math.max(0,Math.min(1,e)))<.5,o=r?e:1-e,a=(t[n]||t[2])(o/=.5);return a/=2,r?a:1-a},e},e.exports?e.exports=n():t.Zdog=n()},422:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(5500),n(2704),n(5511));else{var o=t.Zdog;o.Box=r(o,o.Anchor,o.Shape,o.Rect)}}(this,(function(e,t,n,r){var o=r.subclass();o.prototype.copyGraph=function(){};var a=e.TAU,i=["frontFace","rearFace","leftFace","rightFace","topFace","bottomFace"],l=e.extend({},n.defaults);delete l.path,i.forEach((function(e){l[e]=!0})),e.extend(l,{width:1,height:1,depth:1,fill:!0});var s=t.subclass(l);s.prototype.create=function(e){t.prototype.create.call(this,e),this.updatePath(),this.fill=this.fill},s.prototype.updatePath=function(){i.forEach((function(e){this[e]=this[e]}),this)},i.forEach((function(e){var t="_"+e;Object.defineProperty(s.prototype,e,{get:function(){return this[t]},set:function(n){this[t]=n,this.setFace(e,n)}})})),s.prototype.setFace=function(e,t){var n=e+"Rect",r=this[n];if(t){var a=this.getFaceOptions(e);a.color="string"==typeof t?t:this.color,r?r.setOptions(a):r=this[n]=new o(a),r.updatePath(),this.addChild(r)}else this.removeChild(r)},s.prototype.getFaceOptions=function(e){return{frontFace:{width:this.width,height:this.height,translate:{z:this.depth/2}},rearFace:{width:this.width,height:this.height,translate:{z:-this.depth/2},rotate:{y:a/2}},leftFace:{width:this.depth,height:this.height,translate:{x:-this.width/2},rotate:{y:-a/4}},rightFace:{width:this.depth,height:this.height,translate:{x:this.width/2},rotate:{y:a/4}},topFace:{width:this.width,height:this.depth,translate:{y:-this.height/2},rotate:{x:-a/4}},bottomFace:{width:this.width,height:this.depth,translate:{y:this.height/2},rotate:{x:a/4}}}[e]};return["color","stroke","fill","backface","front","visible"].forEach((function(e){var t="_"+e;Object.defineProperty(s.prototype,e,{get:function(){return this[t]},set:function(n){this[t]=n,i.forEach((function(t){var r=this[t+"Rect"],o="string"==typeof this[t];r&&!("color"==e&&o)&&(r[e]=n)}),this)}})})),s}))},1276:function(e){var t,n;t=this,n=function(){var e={isCanvas:!0,begin:function(e){e.beginPath()},move:function(e,t,n){e.moveTo(n.x,n.y)},line:function(e,t,n){e.lineTo(n.x,n.y)},bezier:function(e,t,n,r,o){e.bezierCurveTo(n.x,n.y,r.x,r.y,o.x,o.y)},closePath:function(e){e.closePath()},setPath:function(){},renderPath:function(t,n,r,o){this.begin(t,n),r.forEach((function(r){r.render(t,n,e)})),o&&this.closePath(t,n)},stroke:function(e,t,n,r,o){n&&(e.strokeStyle=r,e.lineWidth=o,e.stroke())},fill:function(e,t,n,r){n&&(e.fillStyle=r,e.fill())},end:function(){}};return e},e.exports?e.exports=n():t.Zdog.CanvasRenderer=n()},4067:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(9189),n(4006),n(5500),n(4057));else{var o=t.Zdog;o.Cone=r(o,o.Vector,o.PathCommand,o.Anchor,o.Ellipse)}}(this,(function(e,t,n,r,o){var a=o.subclass({length:1,fill:!0}),i=e.TAU;a.prototype.create=function(){o.prototype.create.apply(this,arguments),this.apex=new r({addTo:this,translate:{z:this.length}}),this.renderApex=new t,this.renderCentroid=new t,this.tangentA=new t,this.tangentB=new t,this.surfacePathCommands=[new n("move",[{}]),new n("line",[{}]),new n("line",[{}])]},a.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,1/3),this.sortValue=this.renderCentroid.z},a.prototype.render=function(e,t){this.renderConeSurface(e,t),o.prototype.render.apply(this,arguments)},a.prototype.renderConeSurface=function(e,t){if(this.visible){this.renderApex.set(this.apex.renderOrigin).subtract(this.renderOrigin);var n=this.renderNormal.magnitude(),r=this.renderApex.magnitude2d(),o=this.renderNormal.magnitude2d(),a=Math.acos(o/n),l=Math.sin(a),s=this.diameter/2*n;if(s*l<r){var c=Math.atan2(this.renderNormal.y,this.renderNormal.x)+i/2,u=r/l,d=Math.acos(s/u),f=this.tangentA,h=this.tangentB;f.x=Math.cos(d)*s*l,f.y=Math.sin(d)*s,h.set(this.tangentA),h.y*=-1,f.rotateZ(c),h.rotateZ(c),f.add(this.renderOrigin),h.add(this.renderOrigin),this.setSurfaceRenderPoint(0,f),this.setSurfaceRenderPoint(1,this.apex.renderOrigin),this.setSurfaceRenderPoint(2,h);var p=this.getSurfaceRenderElement(e,t);t.renderPath(e,p,this.surfacePathCommands),t.stroke(e,p,this.stroke,this.color,this.getLineWidth()),t.fill(e,p,this.fill,this.color),t.end(e,p)}}};return a.prototype.getSurfaceRenderElement=function(e,t){if(t.isSvg)return this.surfaceSvgElement||(this.surfaceSvgElement=document.createElementNS("http://www.w3.org/2000/svg","path"),this.surfaceSvgElement.setAttribute("stroke-linecap","round"),this.surfaceSvgElement.setAttribute("stroke-linejoin","round")),this.surfaceSvgElement},a.prototype.setSurfaceRenderPoint=function(e,t){this.surfacePathCommands[e].renderPoints[0].set(t)},a}))},8055:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(4006),n(2704),n(2442),n(4057));else{var o=t.Zdog;o.Cylinder=r(o,o.PathCommand,o.Shape,o.Group,o.Ellipse)}}(this,(function(e,t,n,r,o){function a(){}var i=r.subclass({color:"#333",updateSort:!0});i.prototype.create=function(){r.prototype.create.apply(this,arguments),this.pathCommands=[new t("move",[{}]),new t("line",[{}])]},i.prototype.render=function(e,t){this.renderCylinderSurface(e,t),r.prototype.render.apply(this,arguments)},i.prototype.renderCylinderSurface=function(e,t){if(this.visible){var n=this.getRenderElement(e,t),r=this.frontBase,o=this.rearBase,a=r.renderNormal.magnitude(),i=r.diameter*a+r.getLineWidth();this.pathCommands[0].renderPoints[0].set(r.renderOrigin),this.pathCommands[1].renderPoints[0].set(o.renderOrigin),t.isCanvas&&(e.lineCap="butt"),t.renderPath(e,n,this.pathCommands),t.stroke(e,n,!0,this.color,i),t.end(e,n),t.isCanvas&&(e.lineCap="round")}};i.prototype.getRenderElement=function(e,t){if(t.isSvg)return this.svgElement||(this.svgElement=document.createElementNS("http://www.w3.org/2000/svg","path")),this.svgElement},i.prototype.copyGraph=a,o.subclass().prototype.copyGraph=a;var l=n.subclass({diameter:1,length:1,frontFace:void 0,fill:!0}),s=e.TAU;l.prototype.create=function(){n.prototype.create.apply(this,arguments),this.group=new i({addTo:this,color:this.color,visible:this.visible});var e=this.length/2,t=this.backface||!0;this.frontBase=this.group.frontBase=new o({addTo:this.group,diameter:this.diameter,translate:{z:e},rotate:{y:s/2},color:this.color,stroke:this.stroke,fill:this.fill,backface:this.frontFace||t,visible:this.visible}),this.rearBase=this.group.rearBase=this.frontBase.copy({translate:{z:-e},rotate:{y:0},backface:t})},l.prototype.render=function(){};return["stroke","fill","color","visible"].forEach((function(e){var t="_"+e;Object.defineProperty(l.prototype,e,{get:function(){return this[t]},set:function(n){this[t]=n,this.frontBase&&(this.frontBase[e]=n,this.rearBase[e]=n,this.group[e]=n)}})})),l}))},7884:function(e){var t,n;t=this,n=function(){var e="undefined"!=typeof window,t="mousedown",n="mousemove",r="mouseup";function o(){}function a(e){this.create(e||{})}return e&&(window.PointerEvent?(t="pointerdown",n="pointermove",r="pointerup"):"ontouchstart"in window&&(t="touchstart",n="touchmove",r="touchend")),a.prototype.create=function(e){this.onDragStart=e.onDragStart||o,this.onDragMove=e.onDragMove||o,this.onDragEnd=e.onDragEnd||o,this.bindDrag(e.startElement)},a.prototype.bindDrag=function(e){(e=this.getQueryElement(e))&&(e.style.touchAction="none",e.addEventListener(t,this))},a.prototype.getQueryElement=function(e){return"string"==typeof e&&(e=document.querySelector(e)),e},a.prototype.handleEvent=function(e){var t=this["on"+e.type];t&&t.call(this,e)},a.prototype.onmousedown=a.prototype.onpointerdown=function(e){this.dragStart(e,e)},a.prototype.ontouchstart=function(e){this.dragStart(e,e.changedTouches[0])},a.prototype.dragStart=function(t,o){t.preventDefault(),this.dragStartX=o.pageX,this.dragStartY=o.pageY,e&&(window.addEventListener(n,this),window.addEventListener(r,this)),this.onDragStart(o)},a.prototype.ontouchmove=function(e){this.dragMove(e,e.changedTouches[0])},a.prototype.onmousemove=a.prototype.onpointermove=function(e){this.dragMove(e,e)},a.prototype.dragMove=function(e,t){e.preventDefault();var n=t.pageX-this.dragStartX,r=t.pageY-this.dragStartY;this.onDragMove(t,n,r)},a.prototype.onmouseup=a.prototype.onpointerup=a.prototype.ontouchend=a.prototype.dragEnd=function(){window.removeEventListener(n,this),window.removeEventListener(r,this),this.onDragEnd()},a},e.exports?e.exports=n():t.Zdog.Dragger=n()},4057:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(2704));else{var o=t.Zdog;o.Ellipse=r(o.Shape)}}(this,(function(e){var t=e.subclass({diameter:1,width:void 0,height:void 0,quarters:4,closed:!1});return t.prototype.setPath=function(){var e=(void 0!=this.width?this.width:this.diameter)/2,t=(void 0!=this.height?this.height:this.diameter)/2;this.path=[{x:0,y:-t},{arc:[{x:e,y:-t},{x:e,y:0}]}],this.quarters>1&&this.path.push({arc:[{x:e,y:t},{x:0,y:t}]}),this.quarters>2&&this.path.push({arc:[{x:-e,y:t},{x:-e,y:0}]}),this.quarters>3&&this.path.push({arc:[{x:-e,y:-t},{x:0,y:-t}]})},t}))},2442:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(5500));else{var o=t.Zdog;o.Group=r(o.Anchor)}}(this,(function(e){var t=e.subclass({updateSort:!1,visible:!0});return t.prototype.updateSortValue=function(){var t=0;this.flatGraph.forEach((function(e){e.updateSortValue(),t+=e.sortValue})),this.sortValue=t/this.flatGraph.length,this.updateSort&&this.flatGraph.sort(e.shapeSorter)},t.prototype.render=function(e,t){this.visible&&this.flatGraph.forEach((function(n){n.render(e,t)}))},t.prototype.updateFlatGraph=function(){this.flatGraph=this.addChildFlatGraph([])},t.prototype.getFlatGraph=function(){return[this]},t}))},3909:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(9189),n(5500),n(4057));else{var o=t.Zdog;o.Hemisphere=r(o,o.Vector,o.Anchor,o.Ellipse)}}(this,(function(e,t,n,r){var o=r.subclass({fill:!0}),a=e.TAU;o.prototype.create=function(){r.prototype.create.apply(this,arguments),this.apex=new n({addTo:this,translate:{z:this.diameter/2}}),this.renderCentroid=new t},o.prototype.updateSortValue=function(){this.renderCentroid.set(this.renderOrigin).lerp(this.apex.renderOrigin,3/8),this.sortValue=this.renderCentroid.z},o.prototype.render=function(e,t){this.renderDome(e,t),r.prototype.render.apply(this,arguments)},o.prototype.renderDome=function(e,t){if(this.visible){var n=this.getDomeRenderElement(e,t),r=Math.atan2(this.renderNormal.y,this.renderNormal.x),o=this.diameter/2*this.renderNormal.magnitude(),i=this.renderOrigin.x,l=this.renderOrigin.y;if(t.isCanvas){var s=r+a/4,c=r-a/4;e.beginPath(),e.arc(i,l,o,s,c)}else t.isSvg&&(r=(r-a/4)/a*360,this.domeSvgElement.setAttribute("d","M "+-o+",0 A "+o+","+o+" 0 0 1 "+o+",0"),this.domeSvgElement.setAttribute("transform","translate("+i+","+l+" ) rotate("+r+")"));t.stroke(e,n,this.stroke,this.color,this.getLineWidth()),t.fill(e,n,this.fill,this.color),t.end(e,n)}};return o.prototype.getDomeRenderElement=function(e,t){if(t.isSvg)return this.domeSvgElement||(this.domeSvgElement=document.createElementNS("http://www.w3.org/2000/svg","path"),this.domeSvgElement.setAttribute("stroke-linecap","round"),this.domeSvgElement.setAttribute("stroke-linejoin","round")),this.domeSvgElement},o}))},730:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(5500),n(7884));else{var o=t.Zdog;o.Illustration=r(o,o.Anchor,o.Dragger)}}(this,(function(e,t,n){function r(){}var o=e.TAU,a=t.subclass({element:void 0,centered:!0,zoom:1,dragRotate:!1,resize:!1,onPrerender:r,onDragStart:r,onDragMove:r,onDragEnd:r,onResize:r});return e.extend(a.prototype,n.prototype),a.prototype.create=function(e){t.prototype.create.call(this,e),n.prototype.create.call(this,e),this.setElement(this.element),this.setDragRotate(this.dragRotate),this.setResize(this.resize)},a.prototype.setElement=function(e){if(!(e=this.getQueryElement(e)))throw new Error("Zdog.Illustration element required. Set to "+e);var t=e.nodeName.toLowerCase();"canvas"==t?this.setCanvas(e):"svg"==t&&this.setSvg(e)},a.prototype.setSize=function(e,t){e=Math.round(e),t=Math.round(t),this.isCanvas?this.setSizeCanvas(e,t):this.isSvg&&this.setSizeSvg(e,t)},a.prototype.setResize=function(e){this.resize=e,this.resizeListener||(this.resizeListener=this.onWindowResize.bind(this)),e?(window.addEventListener("resize",this.resizeListener),this.onWindowResize()):window.removeEventListener("resize",this.resizeListener)},a.prototype.onWindowResize=function(){this.setMeasuredSize(),this.onResize(this.width,this.height)},a.prototype.setMeasuredSize=function(){var e,t;if("fullscreen"==this.resize)e=window.innerWidth,t=window.innerHeight;else{var n=this.element.getBoundingClientRect();e=n.width,t=n.height}this.setSize(e,t)},a.prototype.renderGraph=function(e){this.isCanvas?this.renderGraphCanvas(e):this.isSvg&&this.renderGraphSvg(e)},a.prototype.updateRenderGraph=function(e){this.updateGraph(),this.renderGraph(e)},a.prototype.setCanvas=function(e){this.element=e,this.isCanvas=!0,this.ctx=this.element.getContext("2d"),this.setSizeCanvas(e.width,e.height)},a.prototype.setSizeCanvas=function(e,t){this.width=e,this.height=t;var n=this.pixelRatio=window.devicePixelRatio||1;this.element.width=this.canvasWidth=e*n,this.element.height=this.canvasHeight=t*n,n>1&&!this.resize&&(this.element.style.width=e+"px",this.element.style.height=t+"px")},a.prototype.renderGraphCanvas=function(e){e=e||this,this.prerenderCanvas(),t.prototype.renderGraphCanvas.call(e,this.ctx),this.postrenderCanvas()},a.prototype.prerenderCanvas=function(){var e=this.ctx;if(e.lineCap="round",e.lineJoin="round",e.clearRect(0,0,this.canvasWidth,this.canvasHeight),e.save(),this.centered){var t=this.width/2*this.pixelRatio,n=this.height/2*this.pixelRatio;e.translate(t,n)}var r=this.pixelRatio*this.zoom;e.scale(r,r),this.onPrerender(e)},a.prototype.postrenderCanvas=function(){this.ctx.restore()},a.prototype.setSvg=function(e){this.element=e,this.isSvg=!0,this.pixelRatio=1;var t=e.getAttribute("width"),n=e.getAttribute("height");this.setSizeSvg(t,n)},a.prototype.setSizeSvg=function(e,t){this.width=e,this.height=t;var n=e/this.zoom,r=t/this.zoom,o=this.centered?-n/2:0,a=this.centered?-r/2:0;this.element.setAttribute("viewBox",o+" "+a+" "+n+" "+r),this.resize?(this.element.removeAttribute("width"),this.element.removeAttribute("height")):(this.element.setAttribute("width",e),this.element.setAttribute("height",t))},a.prototype.renderGraphSvg=function(e){e=e||this,function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(this.element),this.onPrerender(this.element),t.prototype.renderGraphSvg.call(e,this.element)},a.prototype.setDragRotate=function(e){e&&(!0===e&&(e=this),this.dragRotate=e,this.bindDrag(this.element))},a.prototype.dragStart=function(){this.dragStartRX=this.dragRotate.rotate.x,this.dragStartRY=this.dragRotate.rotate.y,n.prototype.dragStart.apply(this,arguments)},a.prototype.dragMove=function(e,t){var r=t.pageX-this.dragStartX,a=t.pageY-this.dragStartY,i=Math.min(this.width,this.height),l=r/i*o,s=a/i*o;this.dragRotate.rotate.x=this.dragStartRX-s,this.dragRotate.rotate.y=this.dragStartRY-l,n.prototype.dragMove.apply(this,arguments)},a}))},5621:function(e,t,n){var r,o,a,i;i=this,e.exports?e.exports=function(e,t,n,r,o,a,i,l,s,c,u,d,f,h,p,g,m,v){return e.CanvasRenderer=t,e.SvgRenderer=n,e.Vector=r,e.Anchor=o,e.Dragger=a,e.Illustration=i,e.PathCommand=l,e.Shape=s,e.Group=c,e.Rect=u,e.RoundedRect=d,e.Ellipse=f,e.Polygon=h,e.Hemisphere=p,e.Cylinder=g,e.Cone=m,e.Box=v,e}(n(7819),n(1276),n(6478),n(9189),n(5500),n(7884),n(730),n(4006),n(2704),n(2442),n(5511),n(3108),n(4057),n(5697),n(3909),n(8055),n(4067),n(422)):(o=[],r=i.Zdog,void 0===(a="function"===typeof r?r.apply(t,o):r)||(e.exports=a))},4006:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(9189));else{var o=t.Zdog;o.PathCommand=r(o.Vector)}}(this,(function(e){function t(t,o,a){this.method=t,this.points=o.map(n),this.renderPoints=o.map(r),this.previousPoint=a,this.endRenderPoint=this.renderPoints[this.renderPoints.length-1],"arc"==t&&(this.controlPoints=[new e,new e])}function n(t){return t instanceof e?t:new e(t)}function r(t){return new e(t)}t.prototype.reset=function(){var e=this.points;this.renderPoints.forEach((function(t,n){var r=e[n];t.set(r)}))},t.prototype.transform=function(e,t,n){this.renderPoints.forEach((function(r){r.transform(e,t,n)}))},t.prototype.render=function(e,t,n){return this[this.method](e,t,n)},t.prototype.move=function(e,t,n){return n.move(e,t,this.renderPoints[0])},t.prototype.line=function(e,t,n){return n.line(e,t,this.renderPoints[0])},t.prototype.bezier=function(e,t,n){var r=this.renderPoints[0],o=this.renderPoints[1],a=this.renderPoints[2];return n.bezier(e,t,r,o,a)};var o=9/16;return t.prototype.arc=function(e,t,n){var r=this.previousPoint,a=this.renderPoints[0],i=this.renderPoints[1],l=this.controlPoints[0],s=this.controlPoints[1];return l.set(r).lerp(a,o),s.set(i).lerp(a,o),n.bezier(e,t,l,s,i)},t}))},5697:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(2704));else{var o=t.Zdog;o.Polygon=r(o,o.Shape)}}(this,(function(e,t){var n=t.subclass({sides:3,radius:.5}),r=e.TAU;return n.prototype.setPath=function(){this.path=[];for(var e=0;e<this.sides;e++){var t=e/this.sides*r-r/4,n=Math.cos(t)*this.radius,o=Math.sin(t)*this.radius;this.path.push({x:n,y:o})}},n}))},5511:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(2704));else{var o=t.Zdog;o.Rect=r(o.Shape)}}(this,(function(e){var t=e.subclass({width:1,height:1});return t.prototype.setPath=function(){var e=this.width/2,t=this.height/2;this.path=[{x:-e,y:-t},{x:e,y:-t},{x:e,y:t},{x:-e,y:t}]},t}))},3108:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(2704));else{var o=t.Zdog;o.RoundedRect=r(o.Shape)}}(this,(function(e){var t=e.subclass({width:1,height:1,cornerRadius:.25,closed:!1});return t.prototype.setPath=function(){var e=this.width/2,t=this.height/2,n=Math.min(e,t),r=Math.min(this.cornerRadius,n),o=e-r,a=t-r,i=[{x:o,y:-t},{arc:[{x:e,y:-t},{x:e,y:-a}]}];a&&i.push({x:e,y:a}),i.push({arc:[{x:e,y:t},{x:o,y:t}]}),o&&i.push({x:-o,y:t}),i.push({arc:[{x:-e,y:t},{x:-e,y:a}]}),a&&i.push({x:-e,y:-a}),i.push({arc:[{x:-e,y:-t},{x:-o,y:-t}]}),o&&i.push({x:o,y:-t}),this.path=i},t}))},2704:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819),n(9189),n(4006),n(5500));else{var o=t.Zdog;o.Shape=r(o,o.Vector,o.PathCommand,o.Anchor)}}(this,(function(e,t,n,r){var o=r.subclass({stroke:1,fill:!1,color:"#333",closed:!0,visible:!0,path:[{}],front:{z:1},backface:!0});o.prototype.create=function(e){r.prototype.create.call(this,e),this.updatePath(),this.front=new t(e.front||this.front),this.renderFront=new t(this.front),this.renderNormal=new t};var a=["move","line","bezier","arc"];o.prototype.updatePath=function(){this.setPath(),this.updatePathCommands()},o.prototype.setPath=function(){},o.prototype.updatePathCommands=function(){var e;this.pathCommands=this.path.map((function(t,r){var o=Object.keys(t),i=o[0],l=t[i];1==o.length&&-1!=a.indexOf(i)||(i="line",l=t);var s="line"==i||"move"==i,c=Array.isArray(l);s&&!c&&(l=[l]);var u=new n(i=0===r?"move":i,l,e);return e=u.endRenderPoint,u}))},o.prototype.reset=function(){this.renderOrigin.set(this.origin),this.renderFront.set(this.front),this.pathCommands.forEach((function(e){e.reset()}))},o.prototype.transform=function(e,t,n){this.renderOrigin.transform(e,t,n),this.renderFront.transform(e,t,n),this.renderNormal.set(this.renderOrigin).subtract(this.renderFront),this.pathCommands.forEach((function(r){r.transform(e,t,n)})),this.children.forEach((function(r){r.transform(e,t,n)}))},o.prototype.updateSortValue=function(){var e=this.pathCommands.length,t=this.pathCommands[0].endRenderPoint,n=this.pathCommands[e-1].endRenderPoint;e>2&&t.isSame(n)&&(e-=1);for(var r=0,o=0;o<e;o++)r+=this.pathCommands[o].endRenderPoint.z;this.sortValue=r/e},o.prototype.render=function(e,t){var n=this.pathCommands.length;if(this.visible&&n&&(this.isFacingBack=this.renderNormal.z>0,this.backface||!this.isFacingBack)){if(!t)throw new Error("Zdog renderer required. Set to "+t);var r=1==n;t.isCanvas&&r?this.renderCanvasDot(e,t):this.renderPath(e,t)}};var i=e.TAU;o.prototype.renderCanvasDot=function(e){var t=this.getLineWidth();if(t){e.fillStyle=this.getRenderColor();var n=this.pathCommands[0].endRenderPoint;e.beginPath();var r=t/2;e.arc(n.x,n.y,r,0,i),e.fill()}},o.prototype.getLineWidth=function(){return this.stroke?1==this.stroke?1:this.stroke:0},o.prototype.getRenderColor=function(){return"string"==typeof this.backface&&this.isFacingBack?this.backface:this.color},o.prototype.renderPath=function(e,t){var n=this.getRenderElement(e,t),r=!(2==this.pathCommands.length&&"line"==this.pathCommands[1].method)&&this.closed,o=this.getRenderColor();t.renderPath(e,n,this.pathCommands,r),t.stroke(e,n,this.stroke,o,this.getLineWidth()),t.fill(e,n,this.fill,o),t.end(e,n)};return o.prototype.getRenderElement=function(e,t){if(t.isSvg)return this.svgElement||(this.svgElement=document.createElementNS("http://www.w3.org/2000/svg","path"),this.svgElement.setAttribute("stroke-linecap","round"),this.svgElement.setAttribute("stroke-linejoin","round")),this.svgElement},o}))},6478:function(e){var t,n;t=this,n=function(){var e={isSvg:!0},t=e.round=function(e){return Math.round(1e3*e)/1e3};function n(e){return t(e.x)+","+t(e.y)+" "}return e.begin=function(){},e.move=function(e,t,r){return"M"+n(r)},e.line=function(e,t,r){return"L"+n(r)},e.bezier=function(e,t,r,o,a){return"C"+n(r)+n(o)+n(a)},e.closePath=function(){return"Z"},e.setPath=function(e,t,n){t.setAttribute("d",n)},e.renderPath=function(t,n,r,o){var a="";r.forEach((function(r){a+=r.render(t,n,e)})),o&&(a+=this.closePath(t,n)),this.setPath(t,n,a)},e.stroke=function(e,t,n,r,o){n&&(t.setAttribute("stroke",r),t.setAttribute("stroke-width",o))},e.fill=function(e,t,n,r){var o=n?r:"none";t.setAttribute("fill",o)},e.end=function(e,t){e.appendChild(t)},e},e.exports?e.exports=n():t.Zdog.SvgRenderer=n()},9189:function(e,t,n){!function(t,r){if(e.exports)e.exports=r(n(7819));else{var o=t.Zdog;o.Vector=r(o)}}(this,(function(e){function t(e){this.set(e)}var n=e.TAU;function r(e,t,r,o){if(t&&t%n!==0){var a=Math.cos(t),i=Math.sin(t),l=e[r],s=e[o];e[r]=l*a-s*i,e[o]=s*a+l*i}}function o(e){return Math.abs(e-1)<1e-8?1:Math.sqrt(e)}return t.prototype.set=function(e){return this.x=e&&e.x||0,this.y=e&&e.y||0,this.z=e&&e.z||0,this},t.prototype.write=function(e){return e?(this.x=void 0!=e.x?e.x:this.x,this.y=void 0!=e.y?e.y:this.y,this.z=void 0!=e.z?e.z:this.z,this):this},t.prototype.rotate=function(e){if(e)return this.rotateZ(e.z),this.rotateY(e.y),this.rotateX(e.x),this},t.prototype.rotateZ=function(e){r(this,e,"x","y")},t.prototype.rotateX=function(e){r(this,e,"y","z")},t.prototype.rotateY=function(e){r(this,e,"x","z")},t.prototype.isSame=function(e){return!!e&&(this.x===e.x&&this.y===e.y&&this.z===e.z)},t.prototype.add=function(e){return e?(this.x+=e.x||0,this.y+=e.y||0,this.z+=e.z||0,this):this},t.prototype.subtract=function(e){return e?(this.x-=e.x||0,this.y-=e.y||0,this.z-=e.z||0,this):this},t.prototype.multiply=function(e){return void 0==e||("number"==typeof e?(this.x*=e,this.y*=e,this.z*=e):(this.x*=void 0!=e.x?e.x:1,this.y*=void 0!=e.y?e.y:1,this.z*=void 0!=e.z?e.z:1)),this},t.prototype.transform=function(e,t,n){return this.multiply(n),this.rotate(t),this.add(e),this},t.prototype.lerp=function(t,n){return this.x=e.lerp(this.x,t.x||0,n),this.y=e.lerp(this.y,t.y||0,n),this.z=e.lerp(this.z,t.z||0,n),this},t.prototype.magnitude=function(){return o(this.x*this.x+this.y*this.y+this.z*this.z)},t.prototype.magnitude2d=function(){return o(this.x*this.x+this.y*this.y)},t.prototype.copy=function(){return new t(this)},t}))},5078:()=>{},5971:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>s,ZT:()=>o,_T:()=>i,mG:()=>l,pi:()=>a});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function l(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(t){a(t)}}function l(e){try{s(r.throw(e))}catch(t){a(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(s){l=[6,s],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+({104:"blueprint-icons-all-paths",439:"blueprint-icons-all-paths-loader",500:"blueprint-icons-16px-paths",569:"blueprint-icons-split-paths-by-size-loader",680:"blueprint-icons-20px-paths"}[e]||e)+"."+{104:"e643b2c5",439:"53883a20",500:"0c2662b2",569:"6d8a31ce",680:"e0ebc028",787:"b12b0301"}[e]+".chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="dualsense-ts-example-app:";n.l=(r,o,a,i)=>{if(e[r])e[r].push(o);else{var l,s;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+a),l.src=r),e[r]=[o];var f=(t,n)=>{l.onerror=l.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),s&&document.head.appendChild(l)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/dualsense-ts/",(()=>{var e={179:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=a);var i=n.p+n.u(t),l=new Error;n.l(i,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,o[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,a,i=r[0],l=r[1],s=r[2],c=0;if(i.some((t=>0!==e[t]))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(s)s(n)}for(t&&t(r);c<i.length;c++)a=i[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkdualsense_ts_example_app=self.webpackChunkdualsense_ts_example_app||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0,(()=>{"use strict";var e=n(2791),t=n(1250);function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var o=n(7441),a=n(9613),i=n.n(a);const l=function(e){function t(e,r,s,c,f){for(var h,p,g,m,x,S=0,k=0,C=0,E=0,P=0,A=0,z=g=h=0,O=0,I=0,N=0,F=0,B=s.length,U=B-1,H="",G="",W="",V="";O<B;){if(p=s.charCodeAt(O),O===U&&0!==k+E+C+S&&(0!==k&&(p=47===k?10:47),E=C=S=0,B++,U++),0===k+E+C+S){if(O===U&&(0<I&&(H=H.replace(d,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(O)}p=59}switch(p){case 123:for(h=(H=H.trim()).charCodeAt(0),g=1,F=++O;O<B;){switch(p=s.charCodeAt(O)){case 123:g++;break;case 125:g--;break;case 47:switch(p=s.charCodeAt(O+1)){case 42:case 47:e:{for(z=O+1;z<U;++z)switch(s.charCodeAt(z)){case 47:if(42===p&&42===s.charCodeAt(z-1)&&O+2!==z){O=z+1;break e}break;case 10:if(47===p){O=z+1;break e}}O=z}}break;case 91:p++;case 40:p++;case 34:case 39:for(;O++<U&&s.charCodeAt(O)!==p;);}if(0===g)break;O++}if(g=s.substring(F,O),0===h&&(h=(H=H.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<I&&(H=H.replace(d,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:I=r;break;default:I=j}if(F=(g=t(r,I,g,p,f+1)).length,0<D&&(x=l(3,g,I=n(j,H,N),r,T,_,F,p,f,c),H=I.join(""),void 0!==x&&0===(F=(g=x.trim()).length)&&(p=0,g="")),0<F)switch(p){case 115:H=H.replace(w,i);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(v,"$1 $2"))+"{"+g+"}",g=1===R||2===R&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===c&&(G+=g,g="")}else g=""}else g=t(r,n(r,H,N),g,c,f+1);W+=g,g=N=I=z=h=0,H="",p=s.charCodeAt(++O);break;case 125:case 59:if(1<(F=(H=(0<I?H.replace(d,""):H).trim()).length))switch(0===z&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(F=(H=H.replace(" ",":")).length),0<D&&void 0!==(x=l(1,H,r,e,T,_,G.length,c,f,c))&&0===(F=(H=x.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),p=H.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){V+=H+s.charAt(O);break}default:58!==H.charCodeAt(F-1)&&(G+=o(H,h,p,H.charCodeAt(2)))}N=I=z=h=0,H="",p=s.charCodeAt(++O)}}switch(p){case 13:case 10:47===k?k=0:0===1+h&&107!==c&&0<H.length&&(I=1,H+="\0"),0<D*M&&l(0,H,r,e,T,_,G.length,c,f,c),_=1,T++;break;case 59:case 125:if(0===k+E+C+S){_++;break}default:switch(_++,m=s.charAt(O),p){case 9:case 32:if(0===E+S+k)switch(P){case 44:case 58:case 9:case 32:m="";break;default:32!==p&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+k+S&&(I=N=1,m="\f"+m);break;case 108:if(0===E+k+S+L&&0<z)switch(O-z){case 2:112===P&&58===s.charCodeAt(O-3)&&(L=P);case 8:111===A&&(L=A)}break;case 58:0===E+k+S&&(z=O);break;case 44:0===k+C+E+S&&(I=1,m+="\r");break;case 34:case 39:0===k&&(E=E===p?0:0===E?p:E);break;case 91:0===E+k+C&&S++;break;case 93:0===E+k+C&&S--;break;case 41:0===E+k+S&&C--;break;case 40:if(0===E+k+S){if(0===h)if(2*P+3*A===533);else h=1;C++}break;case 64:0===k+C+E+S+z+g&&(g=1);break;case 42:case 47:if(!(0<E+S+C))switch(k){case 0:switch(2*p+3*s.charCodeAt(O+1)){case 235:k=47;break;case 220:F=O,k=42}break;case 42:47===p&&42===P&&F+2!==O&&(33===s.charCodeAt(F+2)&&(G+=s.substring(F,O+1)),m="",k=0)}}0===k&&(H+=m)}A=P,P=p,O++}if(0<(F=G.length)){if(I=r,0<D&&(void 0!==(x=l(2,G,I,e,T,_,F,c,f,c))&&0===(G=x).length))return V+G+W;if(G=I.join(",")+"{"+G+"}",0!==R*L){switch(2!==R||a(G,2)||(L=0),L){case 111:G=G.replace(b,":-moz-$1")+G;break;case 112:G=G.replace(y,"::-webkit-input-$1")+G.replace(y,"::-moz-$1")+G.replace(y,":-ms-input-$1")+G}L=0}}return V+G+W}function n(e,t,n){var o=t.trim().split(g);t=o;var a=o.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<a;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<a;++l)for(var c=0;c<i;++c)t[s++]=r(e[c]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var i=e+";",l=2*t+3*n+4*r;if(944===l){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===R||2===R&&a(s,1)?"-webkit-"+s+s:s}if(0===R||2===R&&!a(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(P,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return h.test(i)?i.replace(f,":-webkit-")+i.replace(f,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(x,"tb");break;case 232:s=i.replace(x,"tb-rl");break;case 220:s=i.replace(x,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,l=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(k,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(k,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+i}return i}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),z(2!==t?r:r.replace(C,"$1"),n,t)}function i(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,a,i,l,s,u){for(var d,f=0,h=t;f<D;++f)switch(d=A[f].call(c,e,h,n,r,o,a,i,l,s,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(z=null,e?"function"!==typeof e?R=1:(R=2,z=e):R=0),s}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var o=l(-1,n,r,r,T,_,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var a=t(j,r,n,0,0);return 0<D&&(void 0!==(o=l(-2,a,r,r,T,_,a.length,0,0,0))&&(a=o)),"",L=0,_=T=1,a}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,k=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,_=1,T=1,L=0,R=1,j=[],A=[],D=0,z=null,M=0;return c.use=function e(t){switch(t){case void 0:case null:D=A.length=0;break;default:if("function"===typeof t)A[D++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},c.set=s,void 0!==e&&s(e),c};const s={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function c(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=c((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=n(2110),h=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var g=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,o.typeOf)(e)},v=Object.freeze([]),y=Object.freeze({});function b(e){return"function"==typeof e}function x(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var S="undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",k="undefined"!=typeof window&&"HTMLElement"in window,C=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&(void 0!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"/dualsense-ts",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)));function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(i,t[l])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a<o;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),_=new Map,T=new Map,L=1,R=function(e){if(_.has(e))return _.get(e);for(;T.has(L);)L++;var t=L++;return _.set(e,t),T.set(t,e),t},j=function(e){return T.get(e)},A=function(e,t){t>=L&&(L=t+1),_.set(e,t),T.set(t,e)},D="style["+S+'][data-styled-version="5.3.11"]',z=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},O=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,a=n.length;o<a;o++){var i=n[o].trim();if(i){var l=i.match(z);if(l){var s=0|parseInt(l[1],10),c=l[2];0!==s&&(A(c,s),M(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(i)}}},I=function(){return n.nc},N=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.3.11");var i=I();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},F=function(){function e(e){var t=this.element=N(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),B=function(){function e(e){var t=this.element=N(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),H=k,G={isServer:!k,useCSSOMInjection:!C},W=function(){function e(e,t,n){void 0===e&&(e=y),void 0===t&&(t={}),this.options=p({},G,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&H&&(H=!1,function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(S)&&(O(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return R(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new U(o):r?new F(o):new B(o),new P(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(R(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(R(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(R(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var a=j(o);if(void 0!==a){var i=e.names.get(a),l=t.getGroup(o);if(i&&l&&i.size){var s=S+".g"+o+'[id="'+a+'"]',c="";void 0!==i&&i.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+l+s+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=$(t%52)+n;return($(t%52)+n).replace(V,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return K(5381,e)};function Q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!w(n))return!1}return!0}var X=Y("5.3.11"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Q(e),this.componentId=t,this.baseHash=K(X,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var a=me(this.rules,e,t,n).join(""),i=q(K(this.baseHash,a)>>>0);if(!t.hasNameForId(r,i)){var l=n(a,"."+i,void 0,r);t.insertRules(r,i,l)}o.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,c=K(this.baseHash,n.hash),u="",d=0;d<s;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=me(f,e,t,n),p=Array.isArray(h)?h.join(""):h;c=K(c,p+d),u+=p}}if(u){var g=q(c>>>0);if(!t.hasNameForId(r,g)){var m=n(u,"."+g,void 0,r);t.insertRules(r,g,m)}o.push(g)}}return o.join(" ")},e}(),J=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,o,a=void 0===e?y:e,i=a.options,s=void 0===i?y:i,c=a.plugins,u=void 0===c?v:c,d=new l(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,l,s,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,a){return 0===r&&-1!==ee.indexOf(a[n.length])||a.match(o)?e:"."+t};function g(e,a,i,l){void 0===l&&(l="&");var s=e.replace(J,""),c=a&&i?i+" "+a+" { "+s+" }":s;return t=l,n=a,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(i||!a?"":a,c)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||E(15),K(e,t.name)}),5381).toString():"",g}var ne=e.createContext(),re=(ne.Consumer,e.createContext()),oe=(re.Consumer,new W),ae=te();function ie(){return(0,e.useContext)(ne)||oe}function le(){return(0,e.useContext)(re)||ae}function se(t){var n=(0,e.useState)(t.stylisPlugins),r=n[0],o=n[1],a=ie(),l=(0,e.useMemo)((function(){var e=a;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),s=(0,e.useMemo)((function(){return te({options:{prefix:!t.disableVendorPrefixes},plugins:r})}),[t.disableVendorPrefixes,r]);return(0,e.useEffect)((function(){i()(r,t.stylisPlugins)||o(t.stylisPlugins)}),[t.stylisPlugins]),e.createElement(ne.Provider,{value:l},e.createElement(re.Provider,{value:s},t.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ae);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ae),this.name+e.hash},e}(),ue=/([A-Z])/,de=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function pe(e){return ue.test(e)?e.replace(de,he).replace(fe,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function me(e,t,n,r){if(Array.isArray(e)){for(var o,a=[],i=0,l=e.length;i<l;i+=1)""!==(o=me(e[i],t,n,r))&&(Array.isArray(o)?a.push.apply(a,o):a.push(o));return a}return ge(e)?"":w(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:me(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:m(e)?function e(t,n){var r,o,a=[];for(var i in t)t.hasOwnProperty(i)&&!ge(t[i])&&(Array.isArray(t[i])&&t[i].isCss||b(t[i])?a.push(pe(i)+":",t[i],";"):m(t[i])?a.push.apply(a,e(t[i],i)):a.push(pe(i)+": "+(r=i,(null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in s||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString();var c}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||m(e)?ve(me(g(v,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ve(me(g(e,n)))}new Set;var be=function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme},xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function Se(e){return e.replace(xe,"-").replace(we,"")}var ke=function(e){return q(Y(e)>>>0)};function Ce(e){return"string"==typeof e&&!0}var Ee=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function _e(e,t,n){var r=e[n];Ee(t)&&Ee(r)?Te(r,t):e[n]=t}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,a=n;o<a.length;o++){var i=a[o];if(Ee(i))for(var l in i)Pe(l)&&_e(e,i[l],l)}return e}var Le=e.createContext();Le.Consumer;var Re={};function je(t,n,r){var o=w(t),a=!Ce(t),i=n.attrs,l=void 0===i?v:i,s=n.componentId,c=void 0===s?function(e,t){var n="string"!=typeof e?"sc":Se(e);Re[n]=(Re[n]||0)+1;var r=n+"-"+ke("5.3.11"+n+Re[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):s,u=n.displayName,f=void 0===u?function(e){return Ce(e)?"styled."+e:"Styled("+x(e)+")"}(t):u,g=n.displayName&&n.componentId?Se(n.displayName)+"-"+n.componentId:n.componentId||c,m=o&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,S=n.shouldForwardProp;o&&t.shouldForwardProp&&(S=n.shouldForwardProp?function(e,r,o){return t.shouldForwardProp(e,r,o)&&n.shouldForwardProp(e,r,o)}:t.shouldForwardProp);var k,C=new Z(r,g,o?t.componentStyle:void 0),E=C.isStatic&&0===l.length,P=function(t,n){return function(t,n,r,o){var a=t.attrs,i=t.componentStyle,l=t.defaultProps,s=t.foldedComponentIds,c=t.shouldForwardProp,u=t.styledComponentId,f=t.target,h=function(e,t,n){void 0===e&&(e=y);var r=p({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,a,i=e;for(t in b(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],a=i[t],n&&a?n+" "+a:n||a):i[t]})),[r,o]}(be(n,(0,e.useContext)(Le),l)||y,n,a),g=h[0],m=h[1],v=function(e,t,n,r){var o=ie(),a=le();return t?e.generateAndInjectStyles(y,o,a):e.generateAndInjectStyles(n,o,a)}(i,o,g),x=r,w=m.$as||n.$as||m.as||n.as||f,S=Ce(w),k=m!==n?p({},n,{},m):n,C={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?C.as=k[E]:(c?c(E,d,w):!S||d(E))&&(C[E]=k[E]));return n.style&&m.style!==n.style&&(C.style=p({},n.style,{},m.style)),C.className=Array.prototype.concat(s,u,v!==u?v:null,n.className,m.className).filter(Boolean).join(" "),C.ref=x,(0,e.createElement)(w,C)}(k,t,n,E)};return P.displayName=f,(k=e.forwardRef(P)).attrs=m,k.componentStyle=C,k.displayName=f,k.shouldForwardProp=S,k.foldedComponentIds=o?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):v,k.styledComponentId=g,k.target=o?t.target:t,k.withComponent=function(e){var t=n.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),a=t&&t+"-"+(Ce(e)?e:Se(x(e)));return je(e,p({},o,{attrs:m,componentId:a}),r)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?Te({},t.defaultProps,e):e}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),a&&h()(k,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Ae=function(e){return function e(t,n,r){if(void 0===r&&(r=y),!(0,o.isValidElementType)(n))return E(1,String(n));var a=function(){return t(n,r,ye.apply(void 0,arguments))};return a.withConfig=function(o){return e(t,n,p({},r,{},o))},a.attrs=function(o){return e(t,n,p({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},a}(je,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ae[e]=Ae(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),W.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(me(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=I();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+e+"</style>"},this.getStyleTags=function(){return t.sealed?E(2):t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)return E(2);var r=((n={})[S]="",n["data-styled-version"]="5.3.11",n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=I();return o&&(r.nonce=o),[e.createElement("style",p({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var n=t.prototype;n.collectStyles=function(t){return this.sealed?E(2):e.createElement(se,{sheet:this.instance},t)},n.interleaveWithNodeStream=function(e){return E(3)}}();const De=Ae;var ze=n(5971),Me=n(1694),Oe=n.n(Me),Ie=n(5353),Ne="".concat("bp5","-icon"),Fe=new Map;var Be=e.forwardRef((function(t,n){var r=t.children,o=t.className,a=t.color,i=t.htmlTitle,l=t.iconName,s=t.size,c=void 0===s?Ie.J.STANDARD:s,u=t.svgProps,d=t.tagName,f=void 0===d?"span":d,h=t.title,p=(0,ze._T)(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),g=c>=Ie.J.LARGE?Ie.J.LARGE:Ie.J.STANDARD,m="0 0 ".concat(g," ").concat(g),v=function(e){var t,n=null!==(t=Fe.get(e))&&void 0!==t?t:0;return Fe.set(e,n+1),"".concat(e,"-").concat(n)}("iconTitle"),y=(0,ze.pi)({"data-icon":l,fill:a,height:c,role:"img",viewBox:m,width:c},u);return null===f?e.createElement("svg",(0,ze.pi)({"aria-labelledby":h?v:void 0,ref:n},y,p),h&&e.createElement("title",{id:v},h),r):e.createElement(f,(0,ze.pi)((0,ze.pi)({},p),{"aria-hidden":!h||void 0,className:Oe()(Ne,"".concat(Ne,"-").concat(l),o),ref:n,title:i}),e.createElement("svg",(0,ze.pi)({},y),h&&e.createElement("title",null,h),r))}));Be.displayName="Blueprint5.SVGIconContainer";var Ue=e.forwardRef((function(t,n){var r=t.size>=Ie.J.LARGE,o=r?Ie.J.LARGE:Ie.J.STANDARD,a="".concat(-1*o/.05/2);return e.createElement(Be,(0,ze.pi)({iconName:"small-cross",ref:n},t),e.createElement("path",{d:r?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd","transform-origin":"center",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")")}))}));Ue.defaultProps={size:Ie.J.STANDARD},Ue.displayName="Blueprint5.Icon.SmallCross";var He={CENTER:"center",LEFT:"left",RIGHT:"right"},Ge=0,We=1,Ve=2,$e=3,qe=4,Ke={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},Ye="bottom",Qe="left",Xe="right",Ze="top";var Je="bp5";"undefined"!==typeof BLUEPRINT_NAMESPACE?Je=BLUEPRINT_NAMESPACE:"undefined"!==typeof REACT_APP_BLUEPRINT_NAMESPACE&&(Je=REACT_APP_BLUEPRINT_NAMESPACE);var et="".concat(Je,"-active"),tt="".concat(Je,"-align-left"),nt="".concat(Je,"-align-right"),rt="".concat(Je,"-compact"),ot=("".concat(Je,"-dark"),"".concat(Je,"-disabled")),at="".concat(Je,"-fill"),it=("".concat(Je,"-fixed"),"".concat(Je,"-fixed-top"),"".concat(Je,"-inline")),lt="".concat(Je,"-interactive"),st="".concat(Je,"-large"),ct="".concat(Je,"-loading"),ut="".concat(Je,"-minimal"),dt="".concat(Je,"-outlined"),ft=("".concat(Je,"-padded"),"".concat(Je,"-multiline"),"".concat(Je,"-read-only"),"".concat(Je,"-round")),ht="".concat(Je,"-selected"),pt="".concat(Je,"-small"),gt=("".concat(Je,"-vertical"),_n(Ze),_n(Ye),_n(Qe),_n(Xe),Cn(Ge),Cn(We),Cn(Ve),Cn($e),Cn(qe),Pn(Ke.PRIMARY),Pn(Ke.SUCCESS),Pn(Ke.WARNING),Pn(Ke.DANGER),"".concat(Je,"-focus-disabled"),"".concat(Je,"-focus-style-manager-ignore"),"".concat(Je,"-ui-text"),"".concat(Je,"-running-text"),"".concat(Je,"-monospace-text"),"".concat(Je,"-text-large"),"".concat(Je,"-text-small"),"".concat(Je,"-text-muted"),"".concat(Je,"-text-disabled"),"".concat(Je,"-text-overflow-ellipsis")),mt=("".concat(Je,"-blockquote"),"".concat(Je,"-code"),"".concat(Je,"-code-block"),"".concat(Je,"-heading"),"".concat(Je,"-list"),"".concat(Je,"-list-unstyled"),"".concat(Je,"-rtl"),"".concat(Je,"-alert")),vt=("".concat(mt,"-body"),"".concat(mt,"-contents"),"".concat(mt,"-footer"),"".concat(Je,"-breadcrumb")),yt=("".concat(vt,"-current"),"".concat(vt,"s"),"".concat(vt,"s-collapsed"),"".concat(Je,"-button")),bt=("".concat(yt,"-group"),"".concat(yt,"-spinner")),xt="".concat(yt,"-text"),wt="".concat(Je,"-callout"),St=("".concat(wt,"-has-body-content"),"".concat(wt,"-icon"),"".concat(Je,"-card")),kt="".concat(Je,"-control-card"),Ct=("".concat(kt,"-label"),"".concat(Je,"-switch-control-card"),"".concat(Je,"-checkbox-control-card"),"".concat(Je,"-card-list")),Et=("".concat(Ct,"-bordered"),"".concat(Je,"-collapse")),Pt=("".concat(Et,"-body"),"".concat(Je,"-context-menu")),_t=("".concat(Pt,"-virtual-target"),"".concat(Pt,"-popover"),"".concat(Pt,"-backdrop"),"".concat(Je,"-control-group"),"".concat(Je,"-dialog")),Tt=("".concat(_t,"-container"),"".concat(_t,"-header"),"".concat(_t,"-body"),"".concat(_t,"-body-scroll-container"),"".concat(_t,"-close-button"),"".concat(_t,"-footer"),"".concat(_t,"-footer-fixed"),"".concat(_t,"-footer-main-section"),"".concat(_t,"-footer-actions"),"".concat(Je,"-dialog-step")),Lt=("".concat(Tt,"-container"),"".concat(Tt,"-title"),"".concat(Tt,"-icon"),"".concat(Tt,"-viewed"),"".concat(Je,"-divider"),"".concat(Je,"-drawer")),Rt=("".concat(Lt,"-body"),"".concat(Lt,"-footer"),"".concat(Lt,"-header"),"".concat(Je,"-editable-text")),jt=("".concat(Rt,"-content"),"".concat(Rt,"-editing"),"".concat(Rt,"-input"),"".concat(Rt,"-placeholder"),"".concat(Je,"-flex-expander"),"".concat(Je,"-html-select")),At=("".concat(Je,"-select"),"".concat(Je,"-html-table")),Dt=("".concat(At,"-bordered"),"".concat(At,"-striped"),"".concat(Je,"-input")),zt=("".concat(Dt,"-ghost"),"".concat(Dt,"-group"),"".concat(Dt,"-left-container"),"".concat(Dt,"-action"),"".concat(Je,"-resizable-input-span"),"".concat(Je,"-text-area")),Mt=("".concat(zt,"-auto-resize"),"".concat(Je,"-control")),Ot="".concat(Mt,"-indicator"),It="".concat(Ot,"-child"),Nt="".concat(Je,"-checkbox"),Ft="".concat(Je,"-radio"),Bt="".concat(Je,"-switch"),Ut="".concat(Bt,"-inner-text"),Ht=("".concat(Je,"-file-input"),"".concat(Je,"-file-input-has-selection"),"".concat(Je,"-file-upload-input"),"".concat(Je,"-file-upload-input-custom-text"),"".concat(Je,"-key")),Gt=("".concat(Ht,"-combo"),"".concat(Je,"-modifier-key"),"".concat(Je,"-hotkey")),Wt=("".concat(Gt,"-label"),"".concat(Gt,"-column"),"".concat(Gt,"-dialog"),"".concat(Je,"-label"),"".concat(Je,"-form-group"),"".concat(Je,"-form-content"),"".concat(Je,"-form-helper-text"),"".concat(Je,"-form-group-sub-label"),"".concat(Je,"-menu")),Vt="".concat(Wt,"-item"),$t=("".concat(Vt,"-is-selectable"),"".concat(Vt,"-selected-icon"),"".concat(Vt,"-icon"),"".concat(Vt,"-label"),"".concat(Je,"-submenu")),qt=("".concat($t,"-icon"),"".concat(Wt,"-divider"),"".concat(Wt,"-header"),"".concat(Je,"-multistep-dialog")),Kt=("".concat(qt,"-panels"),"".concat(qt,"-left-panel"),"".concat(qt,"-right-panel"),"".concat(qt,"-nav-top"),"".concat(qt,"-nav-right"),"".concat(Je,"-section")),Yt=("".concat(Kt,"-collapsed"),"".concat(Kt,"-header")),Qt=("".concat(Yt,"-left"),"".concat(Yt,"-title"),"".concat(Yt,"-sub-title"),"".concat(Yt,"-divider"),"".concat(Yt,"-tabs"),"".concat(Yt,"-right"),"".concat(Kt,"-card"),"".concat(Je,"-navbar")),Xt=("".concat(Qt,"-group"),"".concat(Qt,"-heading"),"".concat(Qt,"-divider"),"".concat(Je,"-non-ideal-state")),Zt=("".concat(Xt,"-visual"),"".concat(Xt,"-text"),"".concat(Je,"-numeric-input"),"".concat(Je,"-overflow-list")),Jt=("".concat(Zt,"-spacer"),"".concat(Je,"-overlay")),en=("".concat(Jt,"-backdrop"),"".concat(Jt,"-container"),"".concat(Jt,"-content"),"".concat(Jt,"-inline"),"".concat(Jt,"-open"),"".concat(Jt,"-scroll-container"),"".concat(Jt,"-start-focus-trap"),"".concat(Jt,"-end-focus-trap"),"".concat(Je,"-panel-stack")),tn=("".concat(en,"-header"),"".concat(en,"-header-back"),"".concat(en,"-view"),"".concat(Je,"-panel-stack2"),"".concat(en,"-header"),"".concat(en,"-header-back"),"".concat(en,"-view"),"".concat(Je,"-popover")),nn=("".concat(tn,"-arrow"),"".concat(tn,"-backdrop"),"".concat(tn,"-capturing-dismiss"),"".concat(tn,"-content")),rn=("".concat(tn,"-placement"),"".concat(nn,"-sizing"),"".concat(tn,"-dismiss")),on=("".concat(rn,"-override"),"".concat(tn,"-match-target-width"),"".concat(tn,"-open"),"".concat(tn,"-popper-escaped"),"".concat(tn,"-reference-hidden"),"".concat(tn,"-target"),"".concat(tn,"-transition-container"),"".concat(tn,"-wrapper"),"".concat(Je,"-progress-bar"),"".concat(Je,"-progress-meter"),"".concat(Je,"-no-stripes"),"".concat(Je,"-no-animation"),"".concat(Je,"-portal"),"".concat(Je,"-skeleton"),"".concat(Je,"-slider")),an=("".concat(on,"-axis"),"".concat(on,"-handle"),"".concat(on,"-label"),"".concat(on,"-track"),"".concat(on,"-progress"),"".concat(Je,"-start"),"".concat(Je,"-end"),"".concat(Je,"-spinner")),ln="".concat(an,"-animation"),sn="".concat(an,"-head"),cn="".concat(Je,"-no-spin"),un="".concat(an,"-track"),dn="".concat(Je,"-tab"),fn=("".concat(dn,"-icon"),"".concat(dn,"-tag"),"".concat(dn,"-indicator")),hn=("".concat(fn,"-wrapper"),"".concat(dn,"-list"),"".concat(dn,"-panel"),"".concat(dn,"s"),"".concat(Je,"-tag")),pn="".concat(hn,"-remove"),gn="".concat(Je,"-tag-input"),mn=("".concat(gn,"-icon"),"".concat(gn,"-values"),"".concat(Je,"-toast")),vn=("".concat(mn,"-container"),"".concat(mn,"-message"),"".concat(Je,"-tooltip")),yn=("".concat(vn,"-indicator"),"".concat(Je,"-tree"),"".concat(Je,"-tree-node")),bn="".concat(yn,"-caret"),xn=("".concat(bn,"-closed"),"".concat(bn,"-none"),"".concat(bn,"-open"),"".concat(yn,"-content"),"".concat(yn,"-expanded"),"".concat(yn,"-icon"),"".concat(yn,"-label"),"".concat(yn,"-list"),"".concat(yn,"-secondary-label"),"".concat(yn,"-selected"),"".concat(Je,"-tree-root"),"".concat(Je,"-icon")),wn="".concat(xn,"-standard"),Sn="".concat(xn,"-large");function kn(e){switch(e){case He.LEFT:return tt;case He.RIGHT:return nt;default:return}}function Cn(e){if(void 0!==e)return"".concat(Je,"-elevation-").concat(e)}function En(e){if(null!=e)return 0===e.indexOf("".concat(Je,"-icon-"))?e:"".concat(Je,"-icon-").concat(e)}function Pn(e){if(null!=e&&e!==Ke.NONE)return"".concat(Je,"-intent-").concat(e.toLowerCase())}function _n(e){if(void 0!==e)return"".concat(Je,"-position-").concat(e)}var Tn="Blueprint5",Ln=["active","alignText","asyncControl","containerRef","current","elementRef","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","size","small","tagName","text"];function Rn(e,t,n){return void 0===t&&(t=Ln),void 0===n&&(n=!1),n&&(t=t.concat(Ln)),t.reduce((function(e,t){return-1!==t.indexOf("-")||e.hasOwnProperty(t)&&delete e[t],e}),(0,ze.pi)({},e))}function jn(e,t){return void 0===t&&(t=!1),null==e||""===e||!1===e||!t&&Array.isArray(e)&&(0===e.length||e.every((function(e){return jn(e,!0)})))}var An,Dn,zn=n(5530),Mn=n(7254);function On(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),(0,Mn.B)(e,(0,ze.pi)({delimiter:"."},t))}(e,(0,ze.pi)({delimiter:"_"},t))}!function(e){e.AddClip="add-clip",e.AddColumnLeft="add-column-left",e.AddColumnRight="add-column-right",e.AddLocation="add-location",e.AddRowBottom="add-row-bottom",e.AddRowTop="add-row-top",e.AddToArtifact="add-to-artifact",e.AddToFolder="add-to-folder",e.Add="add",e.AimpointsTarget="aimpoints-target",e.Airplane="airplane",e.AlignCenter="align-center",e.AlignJustify="align-justify",e.AlignLeft="align-left",e.AlignRight="align-right",e.AlignmentBottom="alignment-bottom",e.AlignmentHorizontalCenter="alignment-horizontal-center",e.AlignmentLeft="alignment-left",e.AlignmentRight="alignment-right",e.AlignmentTop="alignment-top",e.AlignmentVerticalCenter="alignment-vertical-center",e.Ammunition="ammunition",e.Anchor="anchor",e.Annotation="annotation",e.Antenna="antenna",e.AppHeader="app-header",e.Application="application",e.Applications="applications",e.Archive="archive",e.AreaOfInterest="area-of-interest",e.ArrayBoolean="array-boolean",e.ArrayDate="array-date",e.ArrayFloatingPoint="array-floating-point",e.ArrayNumeric="array-numeric",e.ArrayString="array-string",e.ArrayTimestamp="array-timestamp",e.Array="array",e.ArrowBottomLeft="arrow-bottom-left",e.ArrowBottomRight="arrow-bottom-right",e.ArrowDown="arrow-down",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.ArrowTopLeft="arrow-top-left",e.ArrowTopRight="arrow-top-right",e.ArrowUp="arrow-up",e.ArrowsHorizontal="arrows-horizontal",e.ArrowsVertical="arrows-vertical",e.Asterisk="asterisk",e.At="at",e.AutomaticUpdates="automatic-updates",e.Axle="axle",e.Backlink="backlink",e.Badge="badge",e.BanCircle="ban-circle",e.BankAccount="bank-account",e.Barcode="barcode",e.Blank="blank",e.BlockedPerson="blocked-person",e.Bold="bold",e.Book="book",e.Bookmark="bookmark",e.Box="box",e.Briefcase="briefcase",e.BringData="bring-data",e.Bug="bug",e.Buggy="buggy",e.Build="build",e.Calculator="calculator",e.Calendar="calendar",e.Camera="camera",e.CaretDown="caret-down",e.CaretLeft="caret-left",e.CaretRight="caret-right",e.CaretUp="caret-up",e.CargoShip="cargo-ship",e.CellTower="cell-tower",e.Changes="changes",e.Chart="chart",e.Chat="chat",e.ChevronBackward="chevron-backward",e.ChevronDown="chevron-down",e.ChevronForward="chevron-forward",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.ChevronUp="chevron-up",e.CircleArrowDown="circle-arrow-down",e.CircleArrowLeft="circle-arrow-left",e.CircleArrowRight="circle-arrow-right",e.CircleArrowUp="circle-arrow-up",e.Circle="circle",e.Citation="citation",e.Clean="clean",e.Clip="clip",e.Clipboard="clipboard",e.CloudDownload="cloud-download",e.CloudUpload="cloud-upload",e.Cloud="cloud",e.CodeBlock="code-block",e.Code="code",e.Cog="cog",e.CollapseAll="collapse-all",e.ColorFill="color-fill",e.ColumnLayout="column-layout",e.Comment="comment",e.Comparison="comparison",e.Compass="compass",e.Compressed="compressed",e.Confirm="confirm",e.Console="console",e.Contrast="contrast",e.Control="control",e.CreditCard="credit-card",e.CrossCircle="cross-circle",e.Cross="cross",e.Crown="crown",e.CubeAdd="cube-add",e.CubeRemove="cube-remove",e.Cube="cube",e.CurvedRangeChart="curved-range-chart",e.Cut="cut",e.Cycle="cycle",e.Dashboard="dashboard",e.DataConnection="data-connection",e.DataLineage="data-lineage",e.Database="database",e.Delete="delete",e.Delta="delta",e.DeriveColumn="derive-column",e.Desktop="desktop",e.Detection="detection",e.Diagnosis="diagnosis",e.DiagramTree="diagram-tree",e.DirectionLeft="direction-left",e.DirectionRight="direction-right",e.Disable="disable",e.Divide="divide",e.DocumentOpen="document-open",e.DocumentShare="document-share",e.Document="document",e.Dollar="dollar",e.Dot="dot",e.DoubleCaretHorizontal="double-caret-horizontal",e.DoubleCaretVertical="double-caret-vertical",e.DoubleChevronDown="double-chevron-down",e.DoubleChevronLeft="double-chevron-left",e.DoubleChevronRight="double-chevron-right",e.DoubleChevronUp="double-chevron-up",e.DoughnutChart="doughnut-chart",e.Download="download",e.DragHandleHorizontal="drag-handle-horizontal",e.DragHandleVertical="drag-handle-vertical",e.Draw="draw",e.DrawerLeftFilled="drawer-left-filled",e.DrawerLeft="drawer-left",e.DrawerRightFilled="drawer-right-filled",e.DrawerRight="drawer-right",e.DriveTime="drive-time",e.Duplicate="duplicate",e.Edit="edit",e.Eject="eject",e.Emoji="emoji",e.Endorsed="endorsed",e.Envelope="envelope",e.Equals="equals",e.Eraser="eraser",e.Error="error",e.Euro="euro",e.Exchange="exchange",e.ExcludeRow="exclude-row",e.ExpandAll="expand-all",e.Export="export",e.EyeOff="eye-off",e.EyeOn="eye-on",e.EyeOpen="eye-open",e.FastBackward="fast-backward",e.FastForward="fast-forward",e.FeedSubscribed="feed-subscribed",e.Feed="feed",e.Film="film",e.FilterKeep="filter-keep",e.FilterList="filter-list",e.FilterOpen="filter-open",e.FilterRemove="filter-remove",e.Filter="filter",e.Flag="flag",e.Flame="flame",e.Flash="flash",e.FloatingPoint="floating-point",e.FloppyDisk="floppy-disk",e.FlowBranch="flow-branch",e.FlowEnd="flow-end",e.FlowLinear="flow-linear",e.FlowReviewBranch="flow-review-branch",e.FlowReview="flow-review",e.Flows="flows",e.FolderClose="folder-close",e.FolderNew="folder-new",e.FolderOpen="folder-open",e.FolderSharedOpen="folder-shared-open",e.FolderShared="folder-shared",e.Follower="follower",e.Following="following",e.Font="font",e.Fork="fork",e.Form="form",e.Fuel="fuel",e.FullCircle="full-circle",e.FullStackedChart="full-stacked-chart",e.Fullscreen="fullscreen",e.Function="function",e.GanttChart="gantt-chart",e.Geofence="geofence",e.Geolocation="geolocation",e.Geosearch="geosearch",e.Geotime="geotime",e.GitBranch="git-branch",e.GitCommit="git-commit",e.GitMerge="git-merge",e.GitNewBranch="git-new-branch",e.GitPull="git-pull",e.GitPush="git-push",e.GitRepo="git-repo",e.Glass="glass",e.GlobeNetwork="globe-network",e.Globe="globe",e.GraphRemove="graph-remove",e.Graph="graph",e.GreaterThanOrEqualTo="greater-than-or-equal-to",e.GreaterThan="greater-than",e.GridView="grid-view",e.Grid="grid",e.GroupObjects="group-objects",e.GroupedBarChart="grouped-bar-chart",e.HandDown="hand-down",e.HandLeft="hand-left",e.HandRight="hand-right",e.HandUp="hand-up",e.Hand="hand",e.Hat="hat",e.HeaderOne="header-one",e.HeaderThree="header-three",e.HeaderTwo="header-two",e.Header="header",e.Headset="headset",e.HeartBroken="heart-broken",e.Heart="heart",e.HeatGrid="heat-grid",e.Heatmap="heatmap",e.Helicopter="helicopter",e.Help="help",e.HelperManagement="helper-management",e.HighPriority="high-priority",e.HighVoltagePole="high-voltage-pole",e.Highlight="highlight",e.History="history",e.Home="home",e.HorizontalBarChartAsc="horizontal-bar-chart-asc",e.HorizontalBarChartDesc="horizontal-bar-chart-desc",e.HorizontalBarChart="horizontal-bar-chart",e.HorizontalDistribution="horizontal-distribution",e.HorizontalInbetween="horizontal-inbetween",e.Hurricane="hurricane",e.IdNumber="id-number",e.ImageRotateLeft="image-rotate-left",e.ImageRotateRight="image-rotate-right",e.Import="import",e.InboxFiltered="inbox-filtered",e.InboxGeo="inbox-geo",e.InboxSearch="inbox-search",e.InboxUpdate="inbox-update",e.Inbox="inbox",e.InfoSign="info-sign",e.Inheritance="inheritance",e.InheritedGroup="inherited-group",e.InnerJoin="inner-join",e.Insert="insert",e.Intelligence="intelligence",e.Intersection="intersection",e.IpAddress="ip-address",e.IssueClosed="issue-closed",e.IssueNew="issue-new",e.Issue="issue",e.Italic="italic",e.JoinTable="join-table",e.KeyBackspace="key-backspace",e.KeyCommand="key-command",e.KeyControl="key-control",e.KeyDelete="key-delete",e.KeyEnter="key-enter",e.KeyEscape="key-escape",e.KeyOption="key-option",e.KeyShift="key-shift",e.KeyTab="key-tab",e.Key="key",e.KnownVehicle="known-vehicle",e.LabTest="lab-test",e.Label="label",e.LayerOutline="layer-outline",e.Layer="layer",e.Layers="layers",e.LayoutAuto="layout-auto",e.LayoutBalloon="layout-balloon",e.LayoutCircle="layout-circle",e.LayoutGrid="layout-grid",e.LayoutGroupBy="layout-group-by",e.LayoutHierarchy="layout-hierarchy",e.LayoutLinear="layout-linear",e.LayoutSkewGrid="layout-skew-grid",e.LayoutSortedClusters="layout-sorted-clusters",e.Layout="layout",e.Learning="learning",e.LeftJoin="left-join",e.LengthenText="lengthen-text",e.LessThanOrEqualTo="less-than-or-equal-to",e.LessThan="less-than",e.Lifesaver="lifesaver",e.Lightbulb="lightbulb",e.Lightning="lightning",e.Link="link",e.ListColumns="list-columns",e.ListDetailView="list-detail-view",e.List="list",e.Locate="locate",e.Lock="lock",e.Locomotive="locomotive",e.LogIn="log-in",e.LogOut="log-out",e.LowVoltagePole="low-voltage-pole",e.Manual="manual",e.ManuallyEnteredData="manually-entered-data",e.ManyToMany="many-to-many",e.ManyToOne="many-to-one",e.MapCreate="map-create",e.MapMarker="map-marker",e.Map="map",e.Maximize="maximize",e.Media="media",e.MenuClosed="menu-closed",e.MenuOpen="menu-open",e.Menu="menu",e.MergeColumns="merge-columns",e.MergeLinks="merge-links",e.Microphone="microphone",e.Minimize="minimize",e.Minus="minus",e.MobilePhone="mobile-phone",e.MobileVideo="mobile-video",e.ModalFilled="modal-filled",e.Modal="modal",e.Model="model",e.Moon="moon",e.More="more",e.Mountain="mountain",e.Move="move",e.Mugshot="mugshot",e.MultiSelect="multi-select",e.Music="music",e.Nest="nest",e.NewDrawing="new-drawing",e.NewGridItem="new-grid-item",e.NewLayer="new-layer",e.NewLayers="new-layers",e.NewLink="new-link",e.NewObject="new-object",e.NewPerson="new-person",e.NewPrescription="new-prescription",e.NewShield="new-shield",e.NewTextBox="new-text-box",e.Ninja="ninja",e.NotEqualTo="not-equal-to",e.NotificationsSnooze="notifications-snooze",e.NotificationsUpdated="notifications-updated",e.Notifications="notifications",e.NumberedList="numbered-list",e.Numerical="numerical",e.Office="office",e.Offline="offline",e.OilField="oil-field",e.OneColumn="one-column",e.OneToMany="one-to-many",e.OneToOne="one-to-one",e.OpenApplication="open-application",e.Outdated="outdated",e.PageLayout="page-layout",e.PanelStats="panel-stats",e.PanelTable="panel-table",e.Paperclip="paperclip",e.Paragraph="paragraph",e.PasteVariable="paste-variable",e.PathSearch="path-search",e.Path="path",e.Pause="pause",e.People="people",e.Percentage="percentage",e.Person="person",e.PhoneCall="phone-call",e.PhoneForward="phone-forward",e.Phone="phone",e.PieChart="pie-chart",e.Pin="pin",e.PivotTable="pivot-table",e.Pivot="pivot",e.Play="play",e.Playbook="playbook",e.Plus="plus",e.PolygonFilter="polygon-filter",e.Power="power",e.PredictiveAnalysis="predictive-analysis",e.Prescription="prescription",e.Presentation="presentation",e.Print="print",e.Projects="projects",e.Properties="properties",e.Property="property",e.PublishFunction="publish-function",e.Pulse="pulse",e.Rain="rain",e.Random="random",e.Record="record",e.RectHeight="rect-height",e.RectWidth="rect-width",e.Rectangle="rectangle",e.Redo="redo",e.Refresh="refresh",e.Regex="regex",e.RegressionChart="regression-chart",e.RemoveColumnLeft="remove-column-left",e.RemoveColumnRight="remove-column-right",e.RemoveColumn="remove-column",e.RemoveRowBottom="remove-row-bottom",e.RemoveRowTop="remove-row-top",e.Remove="remove",e.Repeat="repeat",e.Reset="reset",e.Resolve="resolve",e.Rig="rig",e.RightJoin="right-join",e.Ring="ring",e.RocketSlant="rocket-slant",e.Rocket="rocket",e.RotateDocument="rotate-document",e.RotatePage="rotate-page",e.Route="route",e.Satellite="satellite",e.Saved="saved",e.ScatterPlot="scatter-plot",e.SearchAround="search-around",e.SearchTemplate="search-template",e.SearchText="search-text",e.Search="search",e.SegmentedControl="segmented-control",e.Select="select",e.Selection="selection",e.SendMessage="send-message",e.SendToGraph="send-to-graph",e.SendToMap="send-to-map",e.SendTo="send-to",e.Sensor="sensor",e.SeriesAdd="series-add",e.SeriesConfiguration="series-configuration",e.SeriesDerived="series-derived",e.SeriesFiltered="series-filtered",e.SeriesSearch="series-search",e.Settings="settings",e.Shapes="shapes",e.Share="share",e.SharedFilter="shared-filter",e.Shield="shield",e.Ship="ship",e.Shop="shop",e.ShoppingCart="shopping-cart",e.ShortenText="shorten-text",e.SignalSearch="signal-search",e.SimCard="sim-card",e.Slash="slash",e.SmallCross="small-cross",e.SmallInfoSign="small-info-sign",e.SmallMinus="small-minus",e.SmallPlus="small-plus",e.SmallSquare="small-square",e.SmallTick="small-tick",e.Snowflake="snowflake",e.SocialMedia="social-media",e.SortAlphabeticalDesc="sort-alphabetical-desc",e.SortAlphabetical="sort-alphabetical",e.SortAsc="sort-asc",e.SortDesc="sort-desc",e.SortNumericalDesc="sort-numerical-desc",e.SortNumerical="sort-numerical",e.Sort="sort",e.SpellCheck="spell-check",e.SplitColumns="split-columns",e.Square="square",e.StackedChart="stacked-chart",e.StadiumGeometry="stadium-geometry",e.StarEmpty="star-empty",e.Star="star",e.StepBackward="step-backward",e.StepChart="step-chart",e.StepForward="step-forward",e.Stop="stop",e.Stopwatch="stopwatch",e.Strikethrough="strikethrough",e.Style="style",e.Subscript="subscript",e.Superscript="superscript",e.SwapHorizontal="swap-horizontal",e.SwapVertical="swap-vertical",e.Switch="switch",e.SymbolCircle="symbol-circle",e.SymbolCross="symbol-cross",e.SymbolDiamond="symbol-diamond",e.SymbolRectangle="symbol-rectangle",e.SymbolSquare="symbol-square",e.SymbolTriangleDown="symbol-triangle-down",e.SymbolTriangleUp="symbol-triangle-up",e.Syringe="syringe",e.Tag="tag",e.TakeAction="take-action",e.Tank="tank",e.Target="target",e.Taxi="taxi",e.Temperature="temperature",e.TextHighlight="text-highlight",e.ThDerived="th-derived",e.ThDisconnect="th-disconnect",e.ThFiltered="th-filtered",e.ThList="th-list",e.Th="th",e.ThirdParty="third-party",e.ThumbsDown="thumbs-down",e.ThumbsUp="thumbs-up",e.TickCircle="tick-circle",e.Tick="tick",e.Time="time",e.TimelineAreaChart="timeline-area-chart",e.TimelineBarChart="timeline-bar-chart",e.TimelineEvents="timeline-events",e.TimelineLineChart="timeline-line-chart",e.Tint="tint",e.Torch="torch",e.Tractor="tractor",e.Train="train",e.Translate="translate",e.Trash="trash",e.Tree="tree",e.TrendingDown="trending-down",e.TrendingUp="trending-up",e.Truck="truck",e.TwoColumns="two-columns",e.Unarchive="unarchive",e.Underline="underline",e.Undo="undo",e.UngroupObjects="ungroup-objects",e.UnknownVehicle="unknown-vehicle",e.Unlink="unlink",e.Unlock="unlock",e.Unpin="unpin",e.Unresolve="unresolve",e.Updated="updated",e.Upload="upload",e.User="user",e.Variable="variable",e.VerticalBarChartAsc="vertical-bar-chart-asc",e.VerticalBarChartDesc="vertical-bar-chart-desc",e.VerticalDistribution="vertical-distribution",e.VerticalInbetween="vertical-inbetween",e.Video="video",e.Virus="virus",e.VolumeDown="volume-down",e.VolumeOff="volume-off",e.VolumeUp="volume-up",e.Walk="walk",e.WarningSign="warning-sign",e.WaterfallChart="waterfall-chart",e.Waves="waves",e.WidgetButton="widget-button",e.WidgetFooter="widget-footer",e.WidgetHeader="widget-header",e.Widget="widget",e.Wind="wind",e.Wrench="wrench",e.ZoomIn="zoom-in",e.ZoomOut="zoom-out",e.ZoomToFit="zoom-to-fit"}(Dn||(Dn={}));(An={})[Dn.AddClip]="61697",An[Dn.AddColumnLeft]="61698",An[Dn.AddColumnRight]="61699",An[Dn.AddLocation]="61700",An[Dn.AddRowBottom]="61701",An[Dn.AddRowTop]="61702",An[Dn.AddToArtifact]="61703",An[Dn.AddToFolder]="61704",An[Dn.Add]="61705",An[Dn.AimpointsTarget]="62261",An[Dn.Airplane]="61706",An[Dn.AlignCenter]="61707",An[Dn.AlignJustify]="61708",An[Dn.AlignLeft]="61709",An[Dn.AlignRight]="61710",An[Dn.AlignmentBottom]="61711",An[Dn.AlignmentHorizontalCenter]="61712",An[Dn.AlignmentLeft]="61713",An[Dn.AlignmentRight]="61714",An[Dn.AlignmentTop]="61715",An[Dn.AlignmentVerticalCenter]="61716",An[Dn.Ammunition]="62274",An[Dn.Anchor]="62256",An[Dn.Annotation]="61717",An[Dn.Antenna]="61718",An[Dn.AppHeader]="61719",An[Dn.Application]="61720",An[Dn.Applications]="61721",An[Dn.Archive]="61722",An[Dn.AreaOfInterest]="61723",An[Dn.ArrayBoolean]="61724",An[Dn.ArrayDate]="61725",An[Dn.ArrayFloatingPoint]="62253",An[Dn.ArrayNumeric]="61726",An[Dn.ArrayString]="61727",An[Dn.ArrayTimestamp]="61728",An[Dn.Array]="61729",An[Dn.ArrowBottomLeft]="61730",An[Dn.ArrowBottomRight]="61731",An[Dn.ArrowDown]="61732",An[Dn.ArrowLeft]="61733",An[Dn.ArrowRight]="61734",An[Dn.ArrowTopLeft]="61735",An[Dn.ArrowTopRight]="61736",An[Dn.ArrowUp]="61737",An[Dn.ArrowsHorizontal]="61738",An[Dn.ArrowsVertical]="61739",An[Dn.Asterisk]="61740",An[Dn.At]="62257",An[Dn.AutomaticUpdates]="61741",An[Dn.Axle]="62264",An[Dn.Backlink]="61742",An[Dn.Badge]="61743",An[Dn.BanCircle]="61744",An[Dn.BankAccount]="61745",An[Dn.Barcode]="61746",An[Dn.Blank]="61747",An[Dn.BlockedPerson]="61748",An[Dn.Bold]="61749",An[Dn.Book]="61750",An[Dn.Bookmark]="61751",An[Dn.Box]="61752",An[Dn.Briefcase]="61753",An[Dn.BringData]="61754",An[Dn.Bug]="62254",An[Dn.Buggy]="61755",An[Dn.Build]="61756",An[Dn.Calculator]="61757",An[Dn.Calendar]="61758",An[Dn.Camera]="61759",An[Dn.CaretDown]="61760",An[Dn.CaretLeft]="61761",An[Dn.CaretRight]="61762",An[Dn.CaretUp]="61763",An[Dn.CargoShip]="61764",An[Dn.CellTower]="61765",An[Dn.Changes]="61766",An[Dn.Chart]="61767",An[Dn.Chat]="61768",An[Dn.ChevronBackward]="61769",An[Dn.ChevronDown]="61770",An[Dn.ChevronForward]="61771",An[Dn.ChevronLeft]="61772",An[Dn.ChevronRight]="61773",An[Dn.ChevronUp]="61774",An[Dn.CircleArrowDown]="61775",An[Dn.CircleArrowLeft]="61776",An[Dn.CircleArrowRight]="61777",An[Dn.CircleArrowUp]="61778",An[Dn.Circle]="61779",An[Dn.Citation]="61780",An[Dn.Clean]="61781",An[Dn.Clip]="61782",An[Dn.Clipboard]="61783",An[Dn.CloudDownload]="61784",An[Dn.CloudUpload]="61785",An[Dn.Cloud]="61786",An[Dn.CodeBlock]="61787",An[Dn.Code]="61788",An[Dn.Cog]="61789",An[Dn.CollapseAll]="61790",An[Dn.ColorFill]="62248",An[Dn.ColumnLayout]="61791",An[Dn.Comment]="61792",An[Dn.Comparison]="61793",An[Dn.Compass]="61794",An[Dn.Compressed]="61795",An[Dn.Confirm]="61796",An[Dn.Console]="61797",An[Dn.Contrast]="61798",An[Dn.Control]="61799",An[Dn.CreditCard]="61800",An[Dn.CrossCircle]="62262",An[Dn.Cross]="61801",An[Dn.Crown]="61802",An[Dn.CubeAdd]="61803",An[Dn.CubeRemove]="61804",An[Dn.Cube]="61805",An[Dn.CurvedRangeChart]="61806",An[Dn.Cut]="61807",An[Dn.Cycle]="61808",An[Dn.Dashboard]="61809",An[Dn.DataConnection]="61810",An[Dn.DataLineage]="61811",An[Dn.Database]="61812",An[Dn.Delete]="61813",An[Dn.Delta]="61814",An[Dn.DeriveColumn]="61815",An[Dn.Desktop]="61816",An[Dn.Detection]="62273",An[Dn.Diagnosis]="61817",An[Dn.DiagramTree]="61818",An[Dn.DirectionLeft]="61819",An[Dn.DirectionRight]="61820",An[Dn.Disable]="61821",An[Dn.Divide]="62247",An[Dn.DocumentOpen]="61822",An[Dn.DocumentShare]="61823",An[Dn.Document]="61824",An[Dn.Dollar]="61825",An[Dn.Dot]="61826",An[Dn.DoubleCaretHorizontal]="61827",An[Dn.DoubleCaretVertical]="61828",An[Dn.DoubleChevronDown]="61829",An[Dn.DoubleChevronLeft]="61830",An[Dn.DoubleChevronRight]="61831",An[Dn.DoubleChevronUp]="61832",An[Dn.DoughnutChart]="61833",An[Dn.Download]="61834",An[Dn.DragHandleHorizontal]="61835",An[Dn.DragHandleVertical]="61836",An[Dn.Draw]="61837",An[Dn.DrawerLeftFilled]="61838",An[Dn.DrawerLeft]="61839",An[Dn.DrawerRightFilled]="61840",An[Dn.DrawerRight]="61841",An[Dn.DriveTime]="61842",An[Dn.Duplicate]="61843",An[Dn.Edit]="61844",An[Dn.Eject]="61845",An[Dn.Emoji]="61846",An[Dn.Endorsed]="61847",An[Dn.Envelope]="61848",An[Dn.Equals]="61849",An[Dn.Eraser]="61850",An[Dn.Error]="61851",An[Dn.Euro]="61852",An[Dn.Exchange]="61853",An[Dn.ExcludeRow]="61854",An[Dn.ExpandAll]="61855",An[Dn.Export]="61856",An[Dn.EyeOff]="61857",An[Dn.EyeOn]="61858",An[Dn.EyeOpen]="61859",An[Dn.FastBackward]="61860",An[Dn.FastForward]="61861",An[Dn.FeedSubscribed]="61862",An[Dn.Feed]="61863",An[Dn.Film]="61864",An[Dn.FilterKeep]="61865",An[Dn.FilterList]="61866",An[Dn.FilterOpen]="61867",An[Dn.FilterRemove]="61868",An[Dn.Filter]="61869",An[Dn.Flag]="61870",An[Dn.Flame]="61871",An[Dn.Flash]="61872",An[Dn.FloatingPoint]="62252",An[Dn.FloppyDisk]="61873",An[Dn.FlowBranch]="61874",An[Dn.FlowEnd]="61875",An[Dn.FlowLinear]="61876",An[Dn.FlowReviewBranch]="61877",An[Dn.FlowReview]="61878",An[Dn.Flows]="61879",An[Dn.FolderClose]="61880",An[Dn.FolderNew]="61881",An[Dn.FolderOpen]="61882",An[Dn.FolderSharedOpen]="61883",An[Dn.FolderShared]="61884",An[Dn.Follower]="61885",An[Dn.Following]="61886",An[Dn.Font]="61887",An[Dn.Fork]="61888",An[Dn.Form]="61889",An[Dn.Fuel]="62243",An[Dn.FullCircle]="61890",An[Dn.FullStackedChart]="61891",An[Dn.Fullscreen]="61892",An[Dn.Function]="61893",An[Dn.GanttChart]="61894",An[Dn.Geofence]="61895",An[Dn.Geolocation]="61896",An[Dn.Geosearch]="61897",An[Dn.Geotime]="62276",An[Dn.GitBranch]="61898",An[Dn.GitCommit]="61899",An[Dn.GitMerge]="61900",An[Dn.GitNewBranch]="61901",An[Dn.GitPull]="61902",An[Dn.GitPush]="61903",An[Dn.GitRepo]="61904",An[Dn.Glass]="61905",An[Dn.GlobeNetwork]="61906",An[Dn.Globe]="61907",An[Dn.GraphRemove]="61908",An[Dn.Graph]="61909",An[Dn.GreaterThanOrEqualTo]="61910",An[Dn.GreaterThan]="61911",An[Dn.GridView]="61912",An[Dn.Grid]="61913",An[Dn.GroupObjects]="61914",An[Dn.GroupedBarChart]="61915",An[Dn.HandDown]="61916",An[Dn.HandLeft]="61917",An[Dn.HandRight]="61918",An[Dn.HandUp]="61919",An[Dn.Hand]="61920",An[Dn.Hat]="61921",An[Dn.HeaderOne]="61922",An[Dn.HeaderThree]="61923",An[Dn.HeaderTwo]="61924",An[Dn.Header]="61925",An[Dn.Headset]="61926",An[Dn.HeartBroken]="61927",An[Dn.Heart]="61928",An[Dn.HeatGrid]="61929",An[Dn.Heatmap]="61930",An[Dn.Helicopter]="61931",An[Dn.Help]="61932",An[Dn.HelperManagement]="61933",An[Dn.HighPriority]="61934",An[Dn.HighVoltagePole]="62259",An[Dn.Highlight]="61935",An[Dn.History]="61936",An[Dn.Home]="61937",An[Dn.HorizontalBarChartAsc]="61938",An[Dn.HorizontalBarChartDesc]="61939",An[Dn.HorizontalBarChart]="61940",An[Dn.HorizontalDistribution]="61941",An[Dn.HorizontalInbetween]="62249",An[Dn.Hurricane]="61942",An[Dn.IdNumber]="61943",An[Dn.ImageRotateLeft]="61944",An[Dn.ImageRotateRight]="61945",An[Dn.Import]="61946",An[Dn.InboxFiltered]="61947",An[Dn.InboxGeo]="61948",An[Dn.InboxSearch]="61949",An[Dn.InboxUpdate]="61950",An[Dn.Inbox]="61951",An[Dn.InfoSign]="61952",An[Dn.Inheritance]="61953",An[Dn.InheritedGroup]="61954",An[Dn.InnerJoin]="61955",An[Dn.Insert]="61956",An[Dn.Intelligence]="62263",An[Dn.Intersection]="61957",An[Dn.IpAddress]="61958",An[Dn.IssueClosed]="61959",An[Dn.IssueNew]="61960",An[Dn.Issue]="61961",An[Dn.Italic]="61962",An[Dn.JoinTable]="61963",An[Dn.KeyBackspace]="61964",An[Dn.KeyCommand]="61965",An[Dn.KeyControl]="61966",An[Dn.KeyDelete]="61967",An[Dn.KeyEnter]="61968",An[Dn.KeyEscape]="61969",An[Dn.KeyOption]="61970",An[Dn.KeyShift]="61971",An[Dn.KeyTab]="61972",An[Dn.Key]="61973",An[Dn.KnownVehicle]="61974",An[Dn.LabTest]="61975",An[Dn.Label]="61976",An[Dn.LayerOutline]="61977",An[Dn.Layer]="61978",An[Dn.Layers]="61979",An[Dn.LayoutAuto]="61980",An[Dn.LayoutBalloon]="61981",An[Dn.LayoutCircle]="61982",An[Dn.LayoutGrid]="61983",An[Dn.LayoutGroupBy]="61984",An[Dn.LayoutHierarchy]="61985",An[Dn.LayoutLinear]="61986",An[Dn.LayoutSkewGrid]="61987",An[Dn.LayoutSortedClusters]="61988",An[Dn.Layout]="61989",An[Dn.Learning]="61990",An[Dn.LeftJoin]="61991",An[Dn.LengthenText]="62270",An[Dn.LessThanOrEqualTo]="61992",An[Dn.LessThan]="61993",An[Dn.Lifesaver]="61994",An[Dn.Lightbulb]="61995",An[Dn.Lightning]="61996",An[Dn.Link]="61997",An[Dn.ListColumns]="61998",An[Dn.ListDetailView]="61999",An[Dn.List]="62000",An[Dn.Locate]="62001",An[Dn.Lock]="62002",An[Dn.Locomotive]="62267",An[Dn.LogIn]="62003",An[Dn.LogOut]="62004",An[Dn.LowVoltagePole]="62258",An[Dn.Manual]="62005",An[Dn.ManuallyEnteredData]="62006",An[Dn.ManyToMany]="62007",An[Dn.ManyToOne]="62008",An[Dn.MapCreate]="62009",An[Dn.MapMarker]="62010",An[Dn.Map]="62011",An[Dn.Maximize]="62012",An[Dn.Media]="62013",An[Dn.MenuClosed]="62014",An[Dn.MenuOpen]="62015",An[Dn.Menu]="62016",An[Dn.MergeColumns]="62017",An[Dn.MergeLinks]="62018",An[Dn.Microphone]="62275",An[Dn.Minimize]="62019",An[Dn.Minus]="62020",An[Dn.MobilePhone]="62021",An[Dn.MobileVideo]="62022",An[Dn.ModalFilled]="62023",An[Dn.Modal]="62024",An[Dn.Model]="62269",An[Dn.Moon]="62025",An[Dn.More]="62026",An[Dn.Mountain]="62027",An[Dn.Move]="62028",An[Dn.Mugshot]="62029",An[Dn.MultiSelect]="62030",An[Dn.Music]="62031",An[Dn.Nest]="62032",An[Dn.NewDrawing]="62033",An[Dn.NewGridItem]="62034",An[Dn.NewLayer]="62035",An[Dn.NewLayers]="62036",An[Dn.NewLink]="62037",An[Dn.NewObject]="62038",An[Dn.NewPerson]="62039",An[Dn.NewPrescription]="62040",An[Dn.NewShield]="62281",An[Dn.NewTextBox]="62041",An[Dn.Ninja]="62042",An[Dn.NotEqualTo]="62043",An[Dn.NotificationsSnooze]="62044",An[Dn.NotificationsUpdated]="62045",An[Dn.Notifications]="62046",An[Dn.NumberedList]="62047",An[Dn.Numerical]="62048",An[Dn.Office]="62049",An[Dn.Offline]="62050",An[Dn.OilField]="62051",An[Dn.OneColumn]="62052",An[Dn.OneToMany]="62053",An[Dn.OneToOne]="62054",An[Dn.OpenApplication]="62251",An[Dn.Outdated]="62055",An[Dn.PageLayout]="62056",An[Dn.PanelStats]="62057",An[Dn.PanelTable]="62058",An[Dn.Paperclip]="62059",An[Dn.Paragraph]="62060",An[Dn.PasteVariable]="62278",An[Dn.PathSearch]="62061",An[Dn.Path]="62062",An[Dn.Pause]="62063",An[Dn.People]="62064",An[Dn.Percentage]="62065",An[Dn.Person]="62066",An[Dn.PhoneCall]="62279",An[Dn.PhoneForward]="62280",An[Dn.Phone]="62067",An[Dn.PieChart]="62068",An[Dn.Pin]="62069",An[Dn.PivotTable]="62070",An[Dn.Pivot]="62071",An[Dn.Play]="62072",An[Dn.Playbook]="62244",An[Dn.Plus]="62073",An[Dn.PolygonFilter]="62074",An[Dn.Power]="62075",An[Dn.PredictiveAnalysis]="62076",An[Dn.Prescription]="62077",An[Dn.Presentation]="62078",An[Dn.Print]="62079",An[Dn.Projects]="62080",An[Dn.Properties]="62081",An[Dn.Property]="62082",An[Dn.PublishFunction]="62083",An[Dn.Pulse]="62084",An[Dn.Rain]="62085",An[Dn.Random]="62086",An[Dn.Record]="62087",An[Dn.RectHeight]="62245",An[Dn.RectWidth]="62246",An[Dn.Rectangle]="62241",An[Dn.Redo]="62088",An[Dn.Refresh]="62089",An[Dn.Regex]="62255",An[Dn.RegressionChart]="62090",An[Dn.RemoveColumnLeft]="62091",An[Dn.RemoveColumnRight]="62092",An[Dn.RemoveColumn]="62093",An[Dn.RemoveRowBottom]="62094",An[Dn.RemoveRowTop]="62095",An[Dn.Remove]="62096",An[Dn.Repeat]="62097",An[Dn.Reset]="62098",An[Dn.Resolve]="62099",An[Dn.Rig]="62100",An[Dn.RightJoin]="62101",An[Dn.Ring]="62102",An[Dn.RocketSlant]="62103",An[Dn.Rocket]="62104",An[Dn.RotateDocument]="62105",An[Dn.RotatePage]="62106",An[Dn.Route]="62107",An[Dn.Satellite]="62108",An[Dn.Saved]="62109",An[Dn.ScatterPlot]="62110",An[Dn.SearchAround]="62111",An[Dn.SearchTemplate]="62112",An[Dn.SearchText]="62113",An[Dn.Search]="62114",An[Dn.SegmentedControl]="62115",An[Dn.Select]="62116",An[Dn.Selection]="62117",An[Dn.SendMessage]="62118",An[Dn.SendToGraph]="62119",An[Dn.SendToMap]="62120",An[Dn.SendTo]="62121",An[Dn.Sensor]="62268",An[Dn.SeriesAdd]="62122",An[Dn.SeriesConfiguration]="62123",An[Dn.SeriesDerived]="62124",An[Dn.SeriesFiltered]="62125",An[Dn.SeriesSearch]="62126",An[Dn.Settings]="62127",An[Dn.Shapes]="62128",An[Dn.Share]="62129",An[Dn.SharedFilter]="62130",An[Dn.Shield]="62131",An[Dn.Ship]="62132",An[Dn.Shop]="62133",An[Dn.ShoppingCart]="62134",An[Dn.ShortenText]="62271",An[Dn.SignalSearch]="62135",An[Dn.SimCard]="62136",An[Dn.Slash]="62137",An[Dn.SmallCross]="62138",An[Dn.SmallInfoSign]="62260",An[Dn.SmallMinus]="62139",An[Dn.SmallPlus]="62140",An[Dn.SmallSquare]="62141",An[Dn.SmallTick]="62142",An[Dn.Snowflake]="62143",An[Dn.SocialMedia]="62144",An[Dn.SortAlphabeticalDesc]="62145",An[Dn.SortAlphabetical]="62146",An[Dn.SortAsc]="62147",An[Dn.SortDesc]="62148",An[Dn.SortNumericalDesc]="62149",An[Dn.SortNumerical]="62150",An[Dn.Sort]="62151",An[Dn.SpellCheck]="62272",An[Dn.SplitColumns]="62152",An[Dn.Square]="62153",An[Dn.StackedChart]="62154",An[Dn.StadiumGeometry]="62155",An[Dn.StarEmpty]="62156",An[Dn.Star]="62157",An[Dn.StepBackward]="62158",An[Dn.StepChart]="62159",An[Dn.StepForward]="62160",An[Dn.Stop]="62161",An[Dn.Stopwatch]="62162",An[Dn.Strikethrough]="62163",An[Dn.Style]="62164",An[Dn.Subscript]="62265",An[Dn.Superscript]="62266",An[Dn.SwapHorizontal]="62165",An[Dn.SwapVertical]="62166",An[Dn.Switch]="62167",An[Dn.SymbolCircle]="62168",An[Dn.SymbolCross]="62169",An[Dn.SymbolDiamond]="62170",An[Dn.SymbolRectangle]="62242",An[Dn.SymbolSquare]="62171",An[Dn.SymbolTriangleDown]="62172",An[Dn.SymbolTriangleUp]="62173",An[Dn.Syringe]="62174",An[Dn.Tag]="62175",An[Dn.TakeAction]="62176",An[Dn.Tank]="62177",An[Dn.Target]="62178",An[Dn.Taxi]="62179",An[Dn.Temperature]="62180",An[Dn.TextHighlight]="62181",An[Dn.ThDerived]="62182",An[Dn.ThDisconnect]="62183",An[Dn.ThFiltered]="62184",An[Dn.ThList]="62185",An[Dn.Th]="62186",An[Dn.ThirdParty]="62187",An[Dn.ThumbsDown]="62188",An[Dn.ThumbsUp]="62189",An[Dn.TickCircle]="62190",An[Dn.Tick]="62191",An[Dn.Time]="62192",An[Dn.TimelineAreaChart]="62193",An[Dn.TimelineBarChart]="62194",An[Dn.TimelineEvents]="62195",An[Dn.TimelineLineChart]="62196",An[Dn.Tint]="62197",An[Dn.Torch]="62198",An[Dn.Tractor]="62199",An[Dn.Train]="62200",An[Dn.Translate]="62201",An[Dn.Trash]="62202",An[Dn.Tree]="62203",An[Dn.TrendingDown]="62204",An[Dn.TrendingUp]="62205",An[Dn.Truck]="62206",An[Dn.TwoColumns]="62207",An[Dn.Unarchive]="62208",An[Dn.Underline]="62209",An[Dn.Undo]="62210",An[Dn.UngroupObjects]="62211",An[Dn.UnknownVehicle]="62212",An[Dn.Unlink]="62277",An[Dn.Unlock]="62213",An[Dn.Unpin]="62214",An[Dn.Unresolve]="62215",An[Dn.Updated]="62216",An[Dn.Upload]="62217",An[Dn.User]="62218",An[Dn.Variable]="62219",An[Dn.VerticalBarChartAsc]="62220",An[Dn.VerticalBarChartDesc]="62221",An[Dn.VerticalDistribution]="62222",An[Dn.VerticalInbetween]="62250",An[Dn.Video]="62223",An[Dn.Virus]="62224",An[Dn.VolumeDown]="62225",An[Dn.VolumeOff]="62226",An[Dn.VolumeUp]="62227",An[Dn.Walk]="62228",An[Dn.WarningSign]="62229",An[Dn.WaterfallChart]="62230",An[Dn.Waves]="62231",An[Dn.WidgetButton]="62232",An[Dn.WidgetFooter]="62233",An[Dn.WidgetHeader]="62234",An[Dn.Widget]="62235",An[Dn.Wind]="62236",An[Dn.Wrench]="62237",An[Dn.ZoomIn]="62238",An[Dn.ZoomOut]="62239",An[Dn.ZoomToFit]="62240";for(var In={},Nn={},Fn=0,Bn=Object.values(Dn);Fn<Bn.length;Fn++){var Un=Bn[Fn];In[(0,zn.Ho)(Un)]=Un,Nn[On(Un).toUpperCase()]=Un}var Hn=(0,ze.pi)((0,ze.pi)({},In),Nn),Gn=new Set(Object.values(Hn));function Wn(e,t){return(0,ze.mG)(this,void 0,void 0,(function(){var n,r,o;return(0,ze.Jh)(this,(function(a){switch(a.label){case 0:return i="development",(n="undefined"!==typeof NODE_ENV&&NODE_ENV===i&&"undefined"!==typeof performance)&&(r=performance.now(),console.info("Started '".concat(e,"'..."))),[4,t()];case 1:return a.sent(),n&&(o=Math.round(performance.now()-r),console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}function Vn(e){return(0,ze.mG)(this,void 0,void 0,(function(){var t,r;return(0,ze.Jh)(this,(function(o){switch(o.label){case 0:return t=e.loader,"function"!==typeof(r=void 0===t?qn.defaultLoader:t)?[3,1]:[2,r];case 1:return"all"!==r?[3,3]:[4,n.e(439).then(n.bind(n,7465))];case 2:return[2,o.sent().allPathsLoader];case 3:return[4,n.e(569).then(n.bind(n,3496))];case 4:return[2,o.sent().splitPathsBySizeLoader]}}))}))}var $n=function(){function e(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return e.setLoaderOptions=function(e){void 0!==e.loader&&(qn.defaultLoader=e.loader)},e.load=function(e,t,n){return(0,ze.mG)(this,void 0,void 0,(function(){var r=this;return(0,ze.Jh)(this,(function(o){switch(o.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map((function(e){return r.loadImpl(e,t,n)})))];case 1:return o.sent(),[2]}}))}))},e.loadAll=function(e){return(0,ze.mG)(this,void 0,void 0,(function(){var t,n=this;return(0,ze.Jh)(this,(function(r){return t=Object.values(Hn),Wn("[Blueprint] loading all icons",(function(){return(0,ze.mG)(n,void 0,void 0,(function(){return(0,ze.Jh)(this,(function(n){switch(n.label){case 0:return[4,Promise.all([this.load(t,Ie.J.STANDARD,e),this.load(t,Ie.J.LARGE,e)])];case 1:return n.sent(),[2]}}))}))})),[2]}))}))},e.getPaths=function(e,t){if(this.isValidIconName(e))return(t<Ie.J.LARGE?qn.loadedIconPaths16:qn.loadedIconPaths20).get(e)},e.loadImpl=function(e,t,n){return void 0===n&&(n={}),(0,ze.mG)(this,void 0,void 0,(function(){var r,o,a,i,l;return(0,ze.Jh)(this,(function(s){switch(s.label){case 0:return this.isValidIconName(e)?(r=t<Ie.J.LARGE?qn.loadedIconPaths16:qn.loadedIconPaths20).has(e)?[2]:[4,Vn(n)]:(console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2]);case 1:o=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),a=t<Ie.J.LARGE?Ie.J.STANDARD:Ie.J.LARGE,[4,o(e,a)];case 3:return i=s.sent(),r.set(e,i),[3,5];case 4:return l=s.sent(),console.error("[Blueprint] Unable to load ".concat(t,"px icon '").concat(e,"'"),l),[3,5];case 5:return[2]}}))}))},e.isValidIconName=function(e){return Gn.has(e)},e}(),qn=new $n,Kn=e.forwardRef((function(t,n){var r,o,a=t.autoLoad,i=t.className,l=t.color,s=t.icon,c=t.intent,u=t.tagName,d=t.svgProps,f=t.title,h=t.htmlTitle,p=(0,ze._T)(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),g=null!==(o=null!==(r=t.iconSize)&&void 0!==r?r:t.size)&&void 0!==o?o:Ie.J.STANDARD,m=e.useState((function(){return"string"===typeof s?$n.getPaths(s,g):void 0})),v=m[0],y=m[1];if(e.useEffect((function(){var e=!1;if("string"===typeof s){var t=$n.getPaths(s,g);void 0!==t?y(t):a?$n.load(s,g).then((function(){e||y($n.getPaths(s,g))})).catch((function(e){console.error("[Blueprint] Icon '".concat(s,"' (").concat(g,"px) could not be loaded."),e)})):console.error("[Blueprint] Icon '".concat(s,"' (").concat(g,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(s,"', ").concat(g,")?"))}return function(){e=!0}}),[a,s,g]),null==s||"boolean"===typeof s)return null;if("string"!==typeof s)return s;if(null==v){var b=g===Ie.J.STANDARD?wn:g===Ie.J.LARGE?Sn:void 0;return e.createElement(u,(0,ze.pi)((0,ze.pi)({},Rn(p)),{"aria-hidden":!f||void 0,className:Oe()(xn,b,En(s),Pn(c),i),"data-icon":s,ref:n,title:h}))}var x=v.map((function(t,n){return e.createElement("path",{d:t,key:n,fillRule:"evenodd"})}));return e.createElement(Be,(0,ze.pi)({children:x,className:Oe()(Pn(c),i),color:l,htmlTitle:h,iconName:s,ref:n,size:g,svgProps:d,tagName:u,title:f},Rn(p)))}));function Yn(e,t){var n;null!=(n=e)&&"function"!==typeof n?e.current=t:function(e){return"function"===typeof e}(e)&&e(t)}function Qn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){e.forEach((function(e){Yn(e,t)}))}}Kn.defaultProps={autoLoad:!0,tagName:"span"},Kn.displayName="".concat(Tn,".Icon");var Xn=e.forwardRef((function(t,n){var r,o=t.children,a=t.tagName,i=void 0===a?"div":a,l=t.title,s=t.className,c=t.ellipsize,u=(0,ze._T)(t,["children","tagName","title","className","ellipsize"]),d=e.useRef(),f=e.useMemo((function(){return Qn(d,n)}),[n]),h=e.useState(""),p=h[0],g=h[1],m=e.useState(),v=m[0],y=m[1];return e.useLayoutEffect((function(){var e;null!=(null===(e=d.current)||void 0===e?void 0:e.textContent)&&(y(c&&d.current.scrollWidth>d.current.clientWidth),g(d.current.textContent))}),[d,o,c]),e.createElement(i,(0,ze.pi)((0,ze.pi)({},u),{className:Oe()((r={},r[gt]=c,r),s),ref:f,title:null!==l&&void 0!==l?l:v?p:void 0}),o)}));Xn.defaultProps={ellipsize:!1},Xn.displayName="".concat(Tn,".Text");var Zn=e.forwardRef((function(t,n){var r,o=t.active,a=t.children,i=t.className,l=t.fill,s=t.icon,c=t.intent,u=t.interactive,d=t.large,f=t.minimal,h=t.multiline,p=t.onRemove,g=t.rightIcon,m=t.round,v=t.tabIndex,y=void 0===v?0:v,b=t.htmlTitle,x=(0,ze._T)(t,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle"]),w="function"===typeof p,S=Oe()(hn,Pn(c),((r={})[et]=o,r[at]=l,r[lt]=u,r[st]=d,r[ut]=f,r[ft]=m,r),i),k=d||S.indexOf(st)>=0,C=w?e.createElement("button",{"aria-label":"Remove tag",type:"button",className:pn,onClick:function(e){var n;null===(n=t.onRemove)||void 0===n||n.call(t,e,t)},tabIndex:y},e.createElement(Ue,{size:k?Ie.J.LARGE:Ie.J.STANDARD})):null;return e.createElement("span",(0,ze.pi)({},x,{className:S,tabIndex:u?y:void 0,ref:n}),e.createElement(Kn,{icon:s}),!jn(a)&&e.createElement(Xn,{className:at,ellipsize:!h,tagName:"span",title:b},a),e.createElement(Kn,{icon:g}),C)}));Zn.displayName="".concat(Tn,".Tag");var Jn,er=n(3969);const tr="undefined"!==typeof navigator&&"hid"in navigator,nr=tr?new er.DualsenseManager:null,rr=nr?nr.getRequest():()=>{},or=e.createContext(null!==(Jn=null===nr||void 0===nr?void 0:nr.get(0))&&void 0!==Jn?Jn:new er.Dualsense({hid:null}));or.displayName="ControllerContext";const ar=e.createContext(nr);ar.displayName="ManagerContext",nr&&nr.on("change",(e=>{let{active:t}=e;console.group("dualsense-ts"),console.log("".concat(t," controller(s) connected")),console.groupEnd()}));var ir=n(184);const lr=()=>{const t=(0,e.useContext)(or),[n,r]=(0,e.useState)(t.microphone.state),[o,a]=(0,e.useState)(t.headphone.state),[i,l]=(0,e.useState)(t.connection.state);if((0,e.useEffect)((()=>{t.microphone.on("change",(e=>{let{state:t}=e;return r(t)})),t.headphone.on("change",(e=>{let{state:t}=e;return a(t)})),t.connection.on("change",(e=>{let{state:t}=e;return l(t)}))}),[]),!i)return null;if(!n&&!o)return null;let s;s=n&&o?"Headset":o?"Headphones":"Mic";const c=(0,ir.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",style:{display:"block"},children:o?(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("path",{d:"M2 8 Q2 2 7 2 Q12 2 12 8",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,ir.jsx)("rect",{x:"1",y:"7.5",width:"2.5",height:"4",rx:"1"}),(0,ir.jsx)("rect",{x:"10.5",y:"7.5",width:"2.5",height:"4",rx:"1"}),n&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("line",{x1:"3",y1:"11",x2:"5",y2:"13",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,ir.jsx)("circle",{cx:"5.5",cy:"13",r:"1"})]})]}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)("rect",{x:"4.5",y:"1",width:"5",height:"7",rx:"2.5"}),(0,ir.jsx)("path",{d:"M2.5 6.5 Q2.5 11 7 11 Q11.5 11 11.5 6.5",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,ir.jsx)("line",{x1:"7",y1:"11",x2:"7",y2:"13",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,ir.jsx)("line",{x1:"5",y1:"13",x2:"9",y2:"13",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})});return(0,ir.jsx)(Zn,{minimal:!0,intent:"none",icon:c,title:n&&o?"Headset with microphone connected":o?"Headphones connected (no microphone)":"Microphone connected (no headphones)",children:s})};var sr;const cr=De.div(sr||(sr=r(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));function ur(e){switch(e){case er.ChargeStatus.Charging:return"Charging";case er.ChargeStatus.Full:return"Full";case er.ChargeStatus.Discharging:return"Battery";case er.ChargeStatus.AbnormalVoltage:return"Voltage Error";case er.ChargeStatus.AbnormalTemperature:return"Temp Error";case er.ChargeStatus.ChargingError:return"Error";default:return"Unknown"}}function dr(e,t){return t===er.ChargeStatus.Charging||t===er.ChargeStatus.Full?Ke.SUCCESS:e<.2?Ke.DANGER:e<.4?Ke.WARNING:Ke.PRIMARY}const fr=()=>{const t=(0,e.useContext)(or),[n,r]=(0,e.useState)(t.battery.level.state),[o,a]=(0,e.useState)(t.battery.status.state),[i,l]=(0,e.useState)(t.connection.state);if((0,e.useEffect)((()=>{t.battery.level.on("change",(e=>{let{state:t}=e;return r(t)})),t.battery.status.on("change",(e=>{let{state:t}=e;return a(t)})),t.connection.on("change",(e=>{let{state:t}=e;return l(t)}))}),[]),!i)return null;const s=Math.round(100*n),c=o===er.ChargeStatus.Charging||o===er.ChargeStatus.Full,u=(0,ir.jsxs)("svg",{width:"18",height:"10",viewBox:"0 0 18 10",style:{display:"block"},children:[(0,ir.jsx)("rect",{x:"0.5",y:"0.5",width:"14",height:"9",rx:"1.5",fill:"none",stroke:"currentColor",strokeWidth:"1"}),(0,ir.jsx)("rect",{x:"15",y:"3",width:"2",height:"4",rx:"0.5",fill:"currentColor"}),(0,ir.jsx)("rect",{x:"2",y:"2",width:Math.max(0,11*n),height:"6",rx:"0.5",fill:"currentColor",opacity:.6}),c&&(0,ir.jsx)("path",{d:"M8 1.5 L6 5 L8.5 5 L7 8.5 L10 4.5 L7.5 4.5 L9 1.5Z",fill:"currentColor",opacity:.9})]});return(0,ir.jsx)(cr,{children:(0,ir.jsxs)(Zn,{minimal:!0,intent:dr(n,o),icon:u,children:[ur(o),": ",s,"%"]})})};var hr,pr=n(5621),gr={exports:{}},mr={};gr.exports=function(){if(hr)return mr;hr=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var l,s={},c=null,u=null;for(l in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,l)&&!i.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===s[l]&&(s[l]=t[l]);return{$$typeof:n,type:e,key:c,ref:u,props:s,_owner:a.current}}return mr.Fragment=r,mr.jsx=l,mr.jsxs=l,mr}();var vr=gr.exports,yr=function(){if(typeof Map<"u")return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),br=typeof window<"u"&&typeof document<"u"&&window.document===document,xr=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),wr="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(xr):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Sr=["top","right","bottom","left","width","height","size","weight"],kr=typeof MutationObserver<"u",Cr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){wr(a)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){!br||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),kr?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!br||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Sr.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Er=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Pr=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||xr},_r=Dr(0,0,0,0);function Tr(e){return parseFloat(e)||0}function Lr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Tr(e["border-"+n+"-width"])}),0)}function Rr(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _r;var r=Pr(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=Tr(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,l=Tr(r.width),s=Tr(r.height);if("border-box"===r.boxSizing&&(Math.round(l+a)!==t&&(l-=Lr(r,"left","right")+a),Math.round(s+i)!==n&&(s-=Lr(r,"top","bottom")+i)),!function(e){return e===Pr(e).document.documentElement}(e)){var c=Math.round(l+a)-t,u=Math.round(s+i)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return Dr(o.left,o.top,l,s)}var jr=typeof SVGGraphicsElement<"u"?function(e){return e instanceof Pr(e).SVGGraphicsElement}:function(e){return e instanceof Pr(e).SVGElement&&"function"==typeof e.getBBox};function Ar(e){return br?jr(e)?function(e){var t=e.getBBox();return Dr(0,0,t.width,t.height)}(e):Rr(e):_r}function Dr(e,t,n,r){return{x:e,y:t,width:n,height:r}}var zr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Dr(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Ar(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Mr=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return Er(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}(t);Er(this,{target:e,contentRect:n})},Or=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new yr,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(e instanceof Pr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new zr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(e instanceof Pr(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Mr(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ir=typeof WeakMap<"u"?new WeakMap:new yr,Nr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Cr.getInstance(),r=new Or(t,n,this);Ir.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Nr.prototype[e]=function(){var t;return(t=Ir.get(this))[e].apply(t,arguments)}}));var Fr=typeof xr.ResizeObserver<"u"?xr.ResizeObserver:Nr;function Br(e,t){pr.extend(e,t)}const Ur=t=>e.forwardRef(((e,n)=>{let{children:r,...o}=e;return Qr(t,r,o,n)[0]}));function Hr(){const e=Math.floor(16777216*Math.random()).toString(16).toUpperCase();return"#"+e.padStart(6,"0")==="#000000"?Hr():"#"+e.padStart(6,"0")}const Gr=e=>{let t=e.toString(16);return 1==t.length?"0"+t:t};function Wr(e,t,n){return new Proxy(e,{set:(e,r,o)=>("object"==typeof o&&null!==o&&(o=Wr(o,t)),t(e,r,o,n),e[r]=o,!0),get:(e,n)=>"object"==typeof e[n]&&null!==e[n]?Wr(e[n],t,n):e[n]})}const Vr=(e,t,n)=>{const r=e.getBoundingClientRect();return{x:(t.clientX-r.left)/(r.right-r.left)*n.width,y:(t.clientY-r.top)/(r.bottom-r.top)*n.height}},$r=e=>{let{x:t,y:n,canvasContext:r}=e,o=r.getImageData(t,n,1,1).data;return((e,t,n)=>"#"+Gr(e)+Gr(t)+Gr(n))(o[0],o[1],o[2])},qr=e.createContext(),Kr=e.createContext(),Yr=e.createContext();function Qr(t,n,r,o){const a=(0,e.useContext)(qr),i=(0,e.useContext)(Kr),l=(0,e.useContext)(Yr),s=(0,e.useMemo)((()=>Hr()),[]),c=(0,e.useMemo)((()=>({stroke:!1,...r,color:s,leftFace:s,rightFace:s,topFace:s,bottomFace:s})),[s,r]),[u]=(0,e.useState)((()=>new t(r))),[d]=(0,e.useState)((()=>new t(c))),f=(e,t,n,r)=>{r?d[r][t]=n:d[t]=n,a.current.illu.updateRenderGraph()},[h]=(0,e.useState)((()=>Wr(u,f)));return(0,e.useImperativeHandle)(o,(()=>h)),(0,e.useLayoutEffect)((()=>{Br(u,r),i&&a.current.illu.updateRenderGraph()}),[r]),(0,e.useLayoutEffect)((()=>{Br(d,c)}),[c]),(0,e.useLayoutEffect)((()=>{if(i)return i.addChild(u),a.current.illu.updateGraph(),()=>{i.removeChild(u),i.updateFlatGraph(),a.current.illu.updateGraph()}}),[i]),(0,e.useEffect)((()=>{if(i)return a.current.itemMap[s]=u,r.onClick&&(a.current.clickEventMap[s]=r.onClick),r.onPointerMove&&(a.current.pointerMoveEventMap[s]=r.onPointerMove),r.onPointerEnter&&(a.current.pointerEnterEventMap[s]=r.onPointerEnter),r.onPointerLeave&&(a.current.pointerLeaveEventMap[s]=r.onPointerLeave),()=>{delete a.current.itemMap[s],delete a.current.clickEventMap[s],delete a.current.pointerMoveEventMap[s],delete a.current.pointerEnterEventMap[s],delete a.current.pointerLeaveEventMap[s]}}),[r]),(0,e.useLayoutEffect)((()=>{if(l)return l.addChild(d),a.current.illu_ghost.updateGraph(),()=>{l.removeChild(d),l.updateFlatGraph(),a.current.illu_ghost.updateGraph()}}),[l]),[vr.jsx(Yr.Provider,{value:d,children:vr.jsx(Kr.Provider,{value:u,children:n})},s),u,d]}const Xr=e.memo((t=>{let{children:n,style:r,resize:o,element:a="svg",frameloop:i="always",dragRotate:l,onDragMove:s=(()=>{}),onDragStart:c=(()=>{}),onDragEnd:u=(()=>{}),pointerEvents:d=!1,...f}=t;const h=(0,e.useRef)(),p=(0,e.useRef)(),[g,m]=(0,e.useState)(null);(0,e.useEffect)((()=>{m(p.current.getContext("2d",{willReadFrequently:!0}))}),[]);const[v,y]=function(){const t=(0,e.useRef)(),[n,r]=(0,e.useState)({left:0,top:0,width:0,height:0}),[o]=(0,e.useState)((()=>new Fr((e=>{let[t]=e;return r(t.contentRect)}))));return(0,e.useEffect)((()=>(t.current&&o.observe(t.current),()=>o.disconnect())),[t.current]),[{ref:t},n]}(),[b,x,w]=Qr(pr.Anchor,n),S=(0,e.useRef)({scene:x,illu:void 0,size:{},subscribers:[],subscribe:e=>(S.current.subscribers.push(e),()=>S.current.subscribers=S.current.subscribers.filter((t=>t!==e))),illu_ghost:void 0,itemMap:{},clickEventMap:{},pointerMoveEventMap:{},pointerEnterEventMap:{},pointerLeaveEventMap:{},pointerEvents:d});(0,e.useEffect)((()=>{S.current.size=y,S.current.illu&&(S.current.illu.setSize(y.width,y.height),S.current.illu_ghost.setSize(y.width,y.height),"demand"===i&&(S.current.illu.updateRenderGraph(),S.current.illu_ghost.updateRenderGraph()))}),[y]),(0,e.useEffect)((()=>{S.current.illu=new pr.Illustration({element:h.current,dragRotate:l,onDragMove:()=>{S.current.illu_ghost.rotate={x:S.current.illu.rotate.x,y:S.current.illu.rotate.y,z:S.current.illu.rotate.z},s()},onDragStart:c,onDragEnd:u,...f}),S.current.illu.addChild(x),S.current.illu.updateGraph(),S.current.illu_ghost=new pr.Illustration({element:p.current,...f}),S.current.illu_ghost.addChild(w),S.current.illu_ghost.updateGraph();let e,t=!0;return function n(r){const{size:o,subscribers:a}=S.current;o.width&&o.height&&(a.forEach((e=>e(r))),"demand"!==i&&S.current.illu.updateRenderGraph()),t&&"demand"!==i&&(e=requestAnimationFrame(n))}(),()=>{t=!1,cancelAnimationFrame(e)}}),[i]),(0,e.useLayoutEffect)((()=>{S.current.illu&&Br(S.current.illu,f),S.current.illu_ghost&&Br(S.current.illu_ghost,f)}),[f]);const k=(0,e.useRef)(null),C=(0,e.useRef)(null);return vr.jsxs(vr.Fragment,{children:[vr.jsxs("div",{ref:v.ref,...f,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",boxSizing:"border-box",...r},children:[vr.jsx(a,{ref:h,style:{display:"block",boxSizing:"border-box"},width:y.width,height:y.height,onClick:e=>{if(!d)return;S.current.illu_ghost&&S.current.illu_ghost.updateRenderGraph();const t=Vr(h.current,e,p.current),n=$r({...t,canvasContext:g}).toUpperCase(),r=S.current.clickEventMap[n];r&&r(e,S.current.itemMap[n])},onPointerMove:e=>{if(!d)return;S.current.illu_ghost&&S.current.illu_ghost.updateRenderGraph();const t=Vr(h.current,e,p.current),n=$r({...t,canvasContext:g}).toUpperCase();if("#000000"!==n&&k.current!==n&&C.current!==n){const t=S.current.pointerEnterEventMap[n];t&&t(e,S.current.itemMap[n]),(e=>{C.current=e})(k.current)}if(k.current&&"#000000"!==k.current&&k.current!==n&&C.current){const t=S.current.pointerLeaveEventMap[k.current];t&&t(e,S.current.itemMap[k.current])}const r=S.current.pointerMoveEventMap[n];r&&r(e,S.current.itemMap[n]),k.current=n}}),S.current.illu&&vr.jsx(qr.Provider,{value:S,children:b})]}),vr.jsx("canvas",{ref:p,style:{display:"block",boxSizing:"border-box",opacity:"0",position:"fixed",zIndex:"1000",pointerEvents:"none",background:"black"},width:y.width,height:y.height})]})})),Zr=(Ur(pr.Anchor),Ur(pr.Shape)),Jr=(Ur(pr.Group),Ur(pr.Rect),Ur(pr.RoundedRect),Ur(pr.Ellipse)),eo=Ur(pr.Polygon);Ur(pr.Hemisphere),Ur(pr.Cylinder),Ur(pr.Cone),Ur(pr.Box);var to;const no=De.div(to||(to=r(["\n width: ","px;\n height: ","px;\n"])),(e=>e.width),(e=>e.height));var ro,oo;De.div(ro||(ro=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),De.span(oo||(oo=r(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.4;\n"]))),Math.PI;function ao(e){return"Enter"===e.key||" "===e.key}var io="[Blueprint]",lo=io+" clamp: max cannot be less than min",so=("".concat(io," <Popover> requires renderTarget prop or a child element."),"".concat(io,' <Popover hasBackdrop={true}> requires interactionKind="click".'),"".concat(io," <Popover> supports only one child which is rendered as its target; additional children are ignored."),io+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.");function co(e){return"undefined"!==typeof NODE_ENV&&NODE_ENV===e}new Map;var uo,fo=function(e){function t(t){var n=e.call(this,t)||this;return n.timeoutIds=[],n.requestIds=[],n.clearTimeouts=function(){if(n.timeoutIds.length>0){for(var e=0,t=n.timeoutIds;e<t.length;e++){var r=t[e];window.clearTimeout(r)}n.timeoutIds=[]}},n.cancelAnimationFrames=function(){if(n.requestIds.length>0){for(var e=0,t=n.requestIds;e<t.length;e++){var r=t[e];window.cancelAnimationFrame(r)}n.requestIds=[]}},co("production")||n.validateProps(n.props),n}return(0,ze.ZT)(t,e),t.prototype.componentDidUpdate=function(e,t,n){co("production")||this.validateProps(this.props)},t.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},t.prototype.requestAnimationFrame=function(e){var t=window.requestAnimationFrame(e);return this.requestIds.push(t),function(){return window.cancelAnimationFrame(t)}},t.prototype.setTimeout=function(e,t){var n=window.setTimeout(e,t);return this.timeoutIds.push(n),function(){return window.clearTimeout(n)}},t.prototype.validateProps=function(e){},t}(e.PureComponent);!function(e){e[e.SMALL=20]="SMALL",e[e.STANDARD=50]="STANDARD",e[e.LARGE=100]="LARGE"}(uo||(uo={}));var ho=45,po="M 50,50 m 0,-".concat(ho," a ").concat(ho,",").concat(ho," 0 1 1 0,").concat(90," a ").concat(ho,",").concat(ho," 0 1 1 0,-").concat(90),go=280,mo=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,ze.ZT)(n,t),n.prototype.componentDidUpdate=function(e){e.value!==this.props.value&&this.forceUpdate()},n.prototype.render=function(){var t,n=this.props,r=n.className,o=n.intent,a=n.value,i=n.tagName,l=void 0===i?"div":i,s=(0,ze._T)(n,["className","intent","value","tagName"]),c=this.getSize(),u=Oe()(an,Pn(o),((t={})[cn]=null!=a,t),r),d=Math.min(16,4*uo.LARGE/c),f=go-go*(null==a?.25:function(e,t,n){if(null==e)return e;if(n<t)throw new Error(lo);return Math.min(Math.max(e,t),n)}(a,0,1));return e.createElement(l,(0,ze.pi)({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":void 0===a?void 0:100*a,className:u,role:"progressbar"},s),e.createElement(l,{className:ln},e.createElement("svg",{width:c,height:c,strokeWidth:d.toFixed(2),viewBox:this.getViewBox(d)},e.createElement("path",{className:un,d:po}),e.createElement("path",{className:sn,d:po,pathLength:go,strokeDasharray:"".concat(go," ").concat(go),strokeDashoffset:f}))))},n.prototype.validateProps=function(e){var t=e.className,n=void 0===t?"":t;null!=e.size&&(n.indexOf(pt)>=0||n.indexOf(st)>=0)&&console.warn(so)},n.prototype.getSize=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.size;return null==r?n.indexOf(pt)>=0?uo.SMALL:n.indexOf(st)>=0?uo.LARGE:uo.STANDARD:Math.max(10,r)},n.prototype.getViewBox=function(e){var t=ho+e/2,n=(50-t).toFixed(2),r=(2*t).toFixed(2);return"".concat(n," ").concat(n," ").concat(r," ").concat(r)},n.displayName="".concat(Tn,".Spinner"),n}(fo),vo=e.forwardRef((function(t,n){var r=So(t,n);return e.createElement("button",(0,ze.pi)({type:"button"},Rn(t),r),ko(t))}));vo.displayName="".concat(Tn,".Button");var yo,bo,xo,wo=e.forwardRef((function(t,n){var r=t.href,o=t.tabIndex,a=void 0===o?0:o,i=So(t,n);return e.createElement("a",(0,ze.pi)({role:"button"},Rn(t),i,{href:i.disabled?void 0:r,tabIndex:i.disabled?-1:a}),ko(t))}));function So(t,n){var r,o=t.active,a=void 0!==o&&o,i=t.alignText,l=t.fill,s=t.large,c=t.loading,u=void 0!==c&&c,d=t.outlined,f=t.minimal,h=t.small,p=t.tabIndex,g=t.disabled||u,m=e.useState(),v=m[0],y=m[1],b=e.useState(!1),x=b[0],w=b[1],S=e.useRef(null),k=e.useCallback((function(e){var n;x&&w(!1),null===(n=t.onBlur)||void 0===n||n.call(t,e)}),[x,t.onBlur]),C=e.useCallback((function(e){var n;ao(e)&&(e.preventDefault(),e.key!==v&&w(!0)),y(e.key),null===(n=t.onKeyDown)||void 0===n||n.call(t,e)}),[v,t.onKeyDown]),E=e.useCallback((function(e){var n,r;ao(e)&&(w(!1),null===(n=S.current)||void 0===n||n.click()),y(void 0),null===(r=t.onKeyUp)||void 0===r||r.call(t,e)}),[t.onKeyUp]);return{className:Oe()(yt,((r={})[et]=!g&&(a||x),r[ot]=g,r[at]=l,r[st]=s,r[ct]=u,r[ut]=f,r[dt]=d,r[pt]=h,r),kn(i),Pn(t.intent),t.className),disabled:g,onBlur:k,onClick:g?void 0:t.onClick,onFocus:g?void 0:t.onFocus,onKeyDown:C,onKeyUp:E,ref:Qn(S,n),tabIndex:g?-1:p}}function ko(t){var n=t.children,r=t.icon,o=t.loading,a=t.rightIcon,i=t.text,l=!jn(i)||!jn(n);return e.createElement(e.Fragment,null,o&&e.createElement(mo,{key:"loading",className:bt,size:uo.SMALL}),e.createElement(Kn,{key:"leftIcon",icon:r}),l&&e.createElement("span",{key:"text",className:xt},i,n),e.createElement(Kn,{key:"rightIcon",icon:a}))}wo.displayName="".concat(Tn,".AnchorButton");const Co=De.div(yo||(yo=r(["\n display: flex;\n align-items: center;\n gap: 12px;\n"]))),Eo=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ye.apply(void 0,[e].concat(n)).join(""),a=ke(o);return new ce(a,o)}(bo||(bo=r(["\n 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 158, 2, 0.4); }\n 50% { box-shadow: 0 0 0 8px rgba(242, 158, 2, 0); }\n"]))),Po=De(vo)(xo||(xo=r(["\n animation: "," 2s ease-in-out infinite;\n"])),Eo),_o=()=>{const t=(0,e.useContext)(or),[n,r]=(0,e.useState)(t.connection.state);if((0,e.useEffect)((()=>{t.connection.on("change",(e=>{let{state:t}=e;return r(t)}))}),[t]),!n)return(0,ir.jsx)(Co,{children:(0,ir.jsx)(Po,{onClick:rr,outlined:!0,intent:"warning",text:"Connect Controller"})});const o=void 0===t.hid.provider.wireless?"unknown":t.hid.provider.wireless?"bluetooth":"usb",a="bluetooth"===o?(0,ir.jsx)("svg",{width:"10",height:"14",viewBox:"0 0 10 14",style:{display:"block"},children:(0,ir.jsx)("path",{d:"M5 0.5 L5 13.5 M5 0.5 L8.5 4 L5 7 L8.5 10 L5 13.5 M1.5 4 L5 7 M1.5 10 L5 7",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})}):"usb"===o?(0,ir.jsxs)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",style:{display:"block"},children:[(0,ir.jsx)("path",{d:"M6 1 L6 11 M6 1 L4 3.5 M6 1 L8 3.5",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,ir.jsx)("circle",{cx:"9",cy:"7",r:"1.5",fill:"none",stroke:"currentColor",strokeWidth:"1"}),(0,ir.jsx)("rect",{x:"1.5",y:"9",width:"3",height:"2.5",rx:"0.5",fill:"none",stroke:"currentColor",strokeWidth:"1"}),(0,ir.jsx)("path",{d:"M6 5 L9 5.5 L9 7 M6 8 L3 8.5 L3 9",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"}),(0,ir.jsx)("circle",{cx:"6",cy:"11",r:"1.5",fill:"none",stroke:"currentColor",strokeWidth:"1"})]}):null;return(0,ir.jsxs)(Co,{children:[(0,ir.jsx)(Zn,{minimal:!0,intent:"success",icon:"link",children:"Connected"}),(0,ir.jsx)(Zn,{minimal:!0,icon:null!==a&&void 0!==a?a:void 0,children:o.charAt(0).toUpperCase()+o.slice(1)}),t.hid.provider.limited&&(0,ir.jsx)(Zn,{minimal:!0,intent:"warning",children:"Limited"})]})};var To=e.forwardRef((function(t,n){var r,o=t.className,a=t.elevation,i=t.interactive,l=t.selected,s=t.compact,c=(0,ze._T)(t,["className","elevation","interactive","selected","compact"]),u=Oe()(o,St,Cn(a),((r={})[lt]=i,r[rt]=s,r[ht]=l,r));return e.createElement("div",(0,ze.pi)({className:u,ref:n},c))}));To.defaultProps={elevation:Ge,interactive:!1},To.displayName="".concat(Tn,".Card");var Lo=e.forwardRef((function(t,n){var r,o=t.alignIndicator,a=t.children,i=t.className,l=t.indicatorChildren,s=t.inline,c=t.inputRef,u=t.label,d=t.labelElement,f=t.large,h=t.style,p=t.type,g=t.typeClassName,m=t.tagName,v=void 0===m?"label":m,y=(0,ze._T)(t,["alignIndicator","children","className","indicatorChildren","inline","inputRef","label","labelElement","large","style","type","typeClassName","tagName"]),b=Oe()(Mt,g,((r={})[ot]=y.disabled,r[it]=s,r[st]=f,r),kn(o),i);return e.createElement(v,{className:b,style:h,ref:n},e.createElement("input",(0,ze.pi)({},y,{ref:c,type:p})),e.createElement("span",{className:Ot},l),u,d,a)}));Lo.displayName="".concat(Tn,".Control");var Ro=e.forwardRef((function(t,n){var r=t.innerLabelChecked,o=t.innerLabel,a=(0,ze._T)(t,["innerLabelChecked","innerLabel"]),i=o||r?[e.createElement("div",{key:"checked",className:It},e.createElement("div",{className:Ut},r||o)),e.createElement("div",{key:"unchecked",className:It},e.createElement("div",{className:Ut},o))]:null;return e.createElement(Lo,(0,ze.pi)({},a,{indicatorChildren:i,ref:n,type:"checkbox",typeClassName:Bt}))}));Ro.displayName="".concat(Tn,".Switch"),e.forwardRef((function(t,n){return e.createElement(Lo,(0,ze.pi)({},t,{ref:n,type:"radio",typeClassName:Ft}))})).displayName="".concat(Tn,".Radio");var jo=e.forwardRef((function(t,n){var r=t.defaultIndeterminate,o=t.indeterminate,a=t.onChange,i=(0,ze._T)(t,["defaultIndeterminate","indeterminate","onChange"]),l=e.useState(o||r||!1),s=l[0],c=l[1],u=e.useRef(null),d=void 0===t.inputRef?u:Qn(t.inputRef,u),f=e.useCallback((function(e){void 0===o&&c(e.target.indeterminate),null===a||void 0===a||a(e)}),[o,a]);return e.useEffect((function(){void 0!==o&&c(o)}),[o]),e.useEffect((function(){null!=u.current&&(u.current.indeterminate=s)}),[u,s]),e.createElement(Lo,(0,ze.pi)({},i,{inputRef:d,onChange:f,ref:n,type:"checkbox",typeClassName:Nt}))}));jo.displayName="".concat(Tn,".Checkbox");var Ao=e.forwardRef((function(t,n){var r=t.size>=Ie.J.LARGE,o=r?Ie.J.LARGE:Ie.J.STANDARD,a="".concat(-1*o/.05/2);return e.createElement(Be,(0,ze.pi)({iconName:"double-caret-vertical",ref:n},t),e.createElement("path",{d:r?"M100 220H300C311 220 320 229 320 240C320 244.8 318 249.2 315.2 252.6L315.4 252.8L215.4 372.8L215.2 372.6C211.4 377 206.2 380 200 380S188.6 377 184.8 372.6L184.6 372.8L84.6 252.8L84.8 252.6C82 249.2 80 244.8 80 240C80 229 89 220 100 220zM300 180H100C89 180 80 171 80 160C80 155.2 82 150.8 84.8 147.4L84.6 147.2L184.6 27.2L184.8 27.4C188.6 23 193.8 20 200 20S211.4 23 215.2 27.4L215.4 27.2L315.4 147.2L315.2 147.4C318 150.8 320 155.2 320 160C320 171 311 180 300 180z":"M100 180H220C231 180 240 189 240 200C240 205.6 237.8 210.6 234.2 214.2L174.2 274.2C170.6 277.8 165.6 280 160 280S149.4 277.8 145.8 274.2L85.8 214.2C82.2 210.6 80 205.6 80 200C80 189 89 180 100 180zM220 140H100C89 140 80 131 80 120C80 114.4 82.2 109.4 85.8 105.8L145.8 45.8C149.4 42.2 154.4 40 160 40S170.6 42.2 174.2 45.8L234.2 105.8C237.8 109.4 240 114.4 240 120C240 131 231 140 220 140z",fillRule:"evenodd","transform-origin":"center",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")")}))}));Ao.defaultProps={size:Ie.J.STANDARD},Ao.displayName="Blueprint5.Icon.DoubleCaretVertical";var Do=e.forwardRef((function(t,n){var r=t.size>=Ie.J.LARGE,o=r?Ie.J.LARGE:Ie.J.STANDARD,a="".concat(-1*o/.05/2);return e.createElement(Be,(0,ze.pi)({iconName:"caret-down",ref:n},t),e.createElement("path",{d:r?"M320 260C320 271 311 280 300 280H100C89 280 80 271 80 260C80 255.2 82 250.8 84.8 247.4L84.6 247.2L184.6 127.2L184.8 127.4C188.6 123 193.8 120 200 120S211.4 123 215.2 127.4L215.4 127.2L315.4 247.2L315.2 247.4C318 250.8 320 255.2 320 260z":"M240 190C240 195.6 235.6 200 230 200H90C84.4 200 80 195.6 80 190C80 187.4 81 185.2 82.6 183.4C82.6 183.4 82.6 183.4 82.6 183.4L152.6 103.4L152.6 103.4C154.4 101.4 157 100 160 100S165.6 101.4 167.4 103.4L167.4 103.4L237.4 183.4L237.4 183.4C239 185.2 240 187.4 240 190z",fillRule:"evenodd","transform-origin":"center",transform:"scale(0.05, -0.05) translate(".concat(a,", ").concat(a,")")}))}));Do.defaultProps={size:Ie.J.STANDARD},Do.displayName="Blueprint5.Icon.CaretDown";var zo,Mo,Oo,Io,No,Fo,Bo=e.forwardRef((function(t,n){var r,o=t.className,a=t.children,i=t.disabled,l=t.fill,s=t.iconName,c=void 0===s?"double-caret-vertical":s,u=t.iconProps,d=t.large,f=t.minimal,h=t.options,p=void 0===h?[]:h,g=t.value,m=(0,ze._T)(t,["className","children","disabled","fill","iconName","iconProps","large","minimal","options","value"]),v=Oe()(jt,((r={})[ot]=i,r[at]=l,r[st]=d,r[ut]=f,r),o),y="Open dropdown",b="double-caret-vertical"===c?e.createElement(Ao,(0,ze.pi)({title:y},u)):e.createElement(Do,(0,ze.pi)({title:y},u)),x=p.map((function(t){var n="object"===typeof t?t:{value:t};return e.createElement("option",(0,ze.pi)({},n,{key:n.value,children:n.label||n.value}))}));return e.createElement("div",{className:v},e.createElement("select",(0,ze.pi)({disabled:i,ref:n,value:g},m,{multiple:!1}),x,a),b)}));Bo.displayName="".concat(Tn,".HTMLSelect");const Uo=De.div(zo||(zo=r(["\n display: flex;\n gap: 16px;\n align-items: flex-start;\n flex-wrap: wrap;\n"]))),Ho=De.div(Mo||(Mo=r(["\n display: flex;\n align-items: center;\n gap: 10px;\n"]))),Go=De.div(Oo||(Oo=r(["\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 140px;\n"]))),Wo=De.div(Io||(Io=r(["\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 200px;\n"]))),Vo=De.span(No||(No=r(["\n font-size: 9px;\n text-transform: uppercase;\n letter-spacing: 1px;\n opacity: 0.35;\n"]))),$o=180,qo=28,Ko="#48aff0",Yo=t=>{let{label:n,value:r,onChange:o,min:a=0,max:i=1,step:l=.05,formatValue:s}=t;const c=e.useRef(null),u=e.useRef(!1),d=e.useCallback((e=>{const t=c.current;if(!t)return;const n=t.getBoundingClientRect(),r=e.clientX-n.left,s=Math.max(0,Math.min(1,r/n.width)),u=a+s*(i-a),d=Math.round(u/l)*l;o(Math.max(a,Math.min(i,d)))}),[o,a,i,l]),f=e.useCallback((e=>{u.current=!0,d(e);const t=e=>{u.current&&d(e)},n=()=>{u.current=!1,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}),[d]),h=(r-a)/(i-a),p=h*$o,g=s?s(r):r<=1?Math.round(100*r)+"%":String(r);return(0,ir.jsxs)("svg",{ref:c,width:$o,height:qo,style:{cursor:"ew-resize",borderRadius:3,flex:"1 1 180px",maxWidth:280},onMouseDown:f,children:[(0,ir.jsx)("rect",{x:0,y:0,width:$o,height:qo,fill:"rgba(72, 175, 240, 0.08)",rx:3}),(0,ir.jsx)("rect",{x:.5,y:.5,width:179,height:27,fill:"none",stroke:"rgba(72, 175, 240, 0.2)",strokeWidth:1,rx:3}),p>0&&(0,ir.jsx)("rect",{x:1,y:1,width:Math.min(p,178),height:26,fill:Ko,opacity:.15+.25*h,rx:2}),h>0&&(0,ir.jsx)("line",{x1:p,y1:1,x2:p,y2:27,stroke:Ko,strokeWidth:1.5,opacity:.6}),(0,ir.jsx)("text",{x:7,y:14,dominantBaseline:"central",fill:"currentColor",fontSize:11,fontWeight:600,opacity:.5,children:n}),(0,ir.jsx)("text",{x:173,y:14,dominantBaseline:"central",textAnchor:"end",fill:Ko,fontSize:11,fontWeight:600,opacity:.7,children:g})]})},Qo=De.button(Fo||(Fo=r(["\n background: ",";\n border: 1px solid\n ",";\n border-radius: 3px;\n color: ",";\n font-size: 11px;\n padding: 3px 10px;\n cursor: pointer;\n transition: all 0.15s;\n\n &:hover {\n background: rgba(72, 175, 240, 0.15);\n color: #48aff0;\n }\n"])),(e=>e.$active?"rgba(72, 175, 240, 0.2)":"rgba(72, 175, 240, 0.04)"),(e=>e.$active?"rgba(72, 175, 240, 0.5)":"rgba(72, 175, 240, 0.15)"),(e=>e.$active?"#48aff0":"rgba(72, 175, 240, 0.5)")),Xo=[{label:"Off",value:er.TriggerEffect.Off},{label:"Feedback",value:er.TriggerEffect.Feedback},{label:"Weapon",value:er.TriggerEffect.Weapon},{label:"Bow",value:er.TriggerEffect.Bow},{label:"Galloping",value:er.TriggerEffect.Galloping},{label:"Vibration",value:er.TriggerEffect.Vibration},{label:"Machine",value:er.TriggerEffect.Machine}],Zo={[er.TriggerEffect.Off]:{effect:er.TriggerEffect.Off},[er.TriggerEffect.Feedback]:{effect:er.TriggerEffect.Feedback,position:.3,strength:.8},[er.TriggerEffect.Weapon]:{effect:er.TriggerEffect.Weapon,start:.15,end:.7,strength:.8},[er.TriggerEffect.Bow]:{effect:er.TriggerEffect.Bow,start:.1,end:.6,strength:.8,snapForce:.9},[er.TriggerEffect.Galloping]:{effect:er.TriggerEffect.Galloping,start:.1,end:.6,firstFoot:.3,secondFoot:.7,frequency:20},[er.TriggerEffect.Vibration]:{effect:er.TriggerEffect.Vibration,position:.1,amplitude:.7,frequency:40},[er.TriggerEffect.Machine]:{effect:er.TriggerEffect.Machine,start:.1,end:.9,amplitudeA:.5,amplitudeB:1,frequency:30,period:5}};function Jo(e){let{label:t,value:n,onChange:r}=e;return(0,ir.jsx)(Yo,{label:t,value:n,onChange:r})}function ea(e){let{label:t,value:n,onChange:r}=e;return(0,ir.jsx)(Yo,{label:t,value:n,onChange:r,min:1,max:255,step:1,formatValue:e=>String(Math.round(e))})}function ta(e){let{label:t,value:n,onChange:r}=e;return(0,ir.jsx)(Yo,{label:t,value:n,onChange:r,min:0,max:20,step:1,formatValue:e=>String(Math.round(e))})}function na(e){let{config:t,onChange:n}=e;switch(t.effect){case er.TriggerEffect.Off:return null;case er.TriggerEffect.Feedback:return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Jo,{label:"Position",value:t.position,onChange:e=>n({...t,position:e})}),(0,ir.jsx)(Jo,{label:"Strength",value:t.strength,onChange:e=>n({...t,strength:e})})]});case er.TriggerEffect.Weapon:return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Jo,{label:"Start",value:t.start,onChange:e=>n({...t,start:e})}),(0,ir.jsx)(Jo,{label:"End",value:t.end,onChange:e=>n({...t,end:e})}),(0,ir.jsx)(Jo,{label:"Strength",value:t.strength,onChange:e=>n({...t,strength:e})})]});case er.TriggerEffect.Bow:return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Jo,{label:"Start",value:t.start,onChange:e=>n({...t,start:e})}),(0,ir.jsx)(Jo,{label:"End",value:t.end,onChange:e=>n({...t,end:e})}),(0,ir.jsx)(Jo,{label:"Strength",value:t.strength,onChange:e=>n({...t,strength:e})}),(0,ir.jsx)(Jo,{label:"Snap Force",value:t.snapForce,onChange:e=>n({...t,snapForce:e})})]});case er.TriggerEffect.Galloping:return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Jo,{label:"Start",value:t.start,onChange:e=>n({...t,start:e})}),(0,ir.jsx)(Jo,{label:"End",value:t.end,onChange:e=>n({...t,end:e})}),(0,ir.jsx)(Jo,{label:"First Foot",value:t.firstFoot,onChange:e=>n({...t,firstFoot:e})}),(0,ir.jsx)(Jo,{label:"Second Foot",value:t.secondFoot,onChange:e=>n({...t,secondFoot:e})}),(0,ir.jsx)(ea,{label:"Frequency",value:t.frequency,onChange:e=>n({...t,frequency:e})})]});case er.TriggerEffect.Vibration:return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Jo,{label:"Position",value:t.position,onChange:e=>n({...t,position:e})}),(0,ir.jsx)(Jo,{label:"Amplitude",value:t.amplitude,onChange:e=>n({...t,amplitude:e})}),(0,ir.jsx)(ea,{label:"Frequency",value:t.frequency,onChange:e=>n({...t,frequency:e})})]});case er.TriggerEffect.Machine:return(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(Jo,{label:"Start",value:t.start,onChange:e=>n({...t,start:e})}),(0,ir.jsx)(Jo,{label:"End",value:t.end,onChange:e=>n({...t,end:e})}),(0,ir.jsx)(Jo,{label:"Amplitude A",value:t.amplitudeA,onChange:e=>n({...t,amplitudeA:e})}),(0,ir.jsx)(Jo,{label:"Amplitude B",value:t.amplitudeB,onChange:e=>n({...t,amplitudeB:e})}),(0,ir.jsx)(ea,{label:"Frequency",value:t.frequency,onChange:e=>n({...t,frequency:e})}),(0,ir.jsx)(ta,{label:"Period",value:t.period,onChange:e=>n({...t,period:e})})]})}}const ra=t=>{let{controller:n}=t;const[r,o]=e.useState(er.TriggerEffect.Off),[a,i]=e.useState(Zo[er.TriggerEffect.Off]),[l,s]=e.useState("right"),c=e.useCallback((e=>{"left"!==l&&"both"!==l||n.left.trigger.feedback.set(e),"right"!==l&&"both"!==l||n.right.trigger.feedback.set(e)}),[n,l]),u=e.useCallback((e=>{const t=e.target.value;o(t);const n={...Zo[t]};i(n),c(n)}),[c]),d=e.useCallback((e=>{i(e),c(e)}),[c]),f=r!==er.TriggerEffect.Off;return(0,ir.jsxs)(Uo,{children:[(0,ir.jsxs)(Go,{children:[(0,ir.jsx)(Vo,{children:"Effect"}),(0,ir.jsxs)(Ho,{children:[(0,ir.jsx)(Bo,{value:r,onChange:u,style:{flex:"1 1 0",minWidth:0},options:Xo}),f&&(0,ir.jsx)(Zn,{intent:"warning",minimal:!0,style:{flexShrink:0},children:"Active"})]}),(0,ir.jsx)(Ho,{children:["left","right","both"].map((e=>(0,ir.jsx)(Qo,{$active:l===e,onClick:()=>s(e),children:e.charAt(0).toUpperCase()+e.slice(1)},e)))}),f&&(0,ir.jsx)(vo,{small:!0,intent:"warning",outlined:!0,fill:!0,text:"Reset",onClick:()=>{n.resetTriggerFeedback(),o(er.TriggerEffect.Off),i(Zo[er.TriggerEffect.Off])}})]}),f&&(0,ir.jsxs)(Wo,{children:[(0,ir.jsx)(Vo,{style:{width:"100%"},children:"Parameters"}),(0,ir.jsx)(na,{config:a,onChange:d})]})]})};var oa;const aa=De.pre(oa||(oa=r(["\n overflow: auto;\n word-break: normal !important;\n word-wrap: normal !important;\n white-space: pre !important;\n max-height: 200px;\n font-size: 11px;\n"]))),ia=t=>{let{panel:n}=t;const r=e.useContext(or),[o,a]=e.useState(r.hid.state),[i,l]=e.useState(!1),[s,c]=e.useState(!1);e.useEffect((()=>{r.on("change",(e=>{a(e.hid.state)}))}),[]);let u="",d="";if(r.hid.provider.buffer){const e=r.hid.provider.buffer;u="const report = Buffer.from([".concat(new Uint8Array(e.buffer).join(", "),"])"),d="".concat(e.byteLength," bytes")}else u="Waiting for report...",d="unknown";return"triggers"===n?(0,ir.jsx)(ra,{controller:r}):(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsxs)(To,{compact:!0,children:[(0,ir.jsx)(Ro,{label:"Input State",checked:s,onChange:()=>c(!s)}),(0,ir.jsx)(Ro,{label:"Report Buffer",checked:i,onChange:()=>l(!i)})]}),i&&(0,ir.jsxs)(To,{compact:!0,children:[(0,ir.jsxs)("p",{style:{fontSize:12,opacity:.7},children:["Buffer: ",d]}),(0,ir.jsx)(aa,{children:u})]}),s&&(0,ir.jsx)(To,{compact:!0,children:(0,ir.jsx)(aa,{children:Object.entries(o).map((e=>{let[t,n]=e;return"".concat(t,": ").concat(JSON.stringify(n))})).join("\n")})})]})};var la,sa;const ca=De.div(la||(la=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),ua=De.span(sa||(sa=r(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.4;\n"]))),da=Math.PI/5,fa=e=>{let{x:t,z:n,pressed:r,rotateY:o=0,wide:a=!1}=e;const i=(a?2.2:1.8)/2,l=1.2,s=r?"#f29e02":"#48aff0";return(0,ir.jsxs)(Zr,{translate:{x:t,z:n,y:r?.5:0},rotate:{y:o},stroke:0,children:[(0,ir.jsx)(Zr,{path:[{x:0,y:0,z:-1.9},{x:-i,y:0,z:-l},{x:-i,y:0,z:l},{x:i,y:0,z:l},{x:i,y:0,z:-l}],stroke:.2,color:s,fill:r,closed:!0}),(0,ir.jsx)(Zr,{path:[{x:-.5,y:0,z:.24},{x:0,y:0,z:.84},{x:.5,y:0,z:.24}],stroke:.2,color:s,closed:!1})]})},ha=()=>{const t=e.useContext(or),[n,r]=e.useState(t.dpad.up.state),[o,a]=e.useState(t.dpad.down.state),[i,l]=e.useState(t.dpad.left.state),[s,c]=e.useState(t.dpad.right.state);e.useEffect((()=>{t.dpad.up.on("change",(e=>{let{state:t}=e;return r(t)})),t.dpad.down.on("change",(e=>{let{state:t}=e;return a(t)})),t.dpad.left.on("change",(e=>{let{state:t}=e;return l(t)})),t.dpad.right.on("change",(e=>{let{state:t}=e;return c(t)}))}),[]);const u=2.8;return(0,ir.jsxs)(ca,{children:[(0,ir.jsx)(no,{width:156.8,height:16*(5.6+1.8+3),children:(0,ir.jsx)(Xr,{element:"svg",zoom:16,children:(0,ir.jsxs)(Zr,{rotate:{x:da},stroke:0,children:[(0,ir.jsx)(fa,{x:0,z:u,pressed:n}),(0,ir.jsx)(fa,{x:0,z:-2.8,pressed:o,rotateY:Math.PI}),(0,ir.jsx)(fa,{x:-2.8,z:0,pressed:i,rotateY:Math.PI/2,wide:!0}),(0,ir.jsx)(fa,{x:u,z:0,pressed:s,rotateY:-Math.PI/2,wide:!0})]})})}),(0,ir.jsx)(ua,{children:"D-pad"})]})};var pa,ga;const ma=De.div(pa||(pa=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),va=De.span(ga||(ga=r(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.4;\n"]))),ya=Math.PI/6,ba=2.8,xa=1.4,wa=.5,Sa="#48aff0",ka="#f29e02",Ca=e=>{let{x:t,z:n,pressed:r}=e;return(0,ir.jsxs)(Zr,{translate:{x:t,z:n,y:r?wa:0},stroke:0,children:[(0,ir.jsx)(Jr,{diameter:2.8,stroke:.2,color:r?ka:Sa}),(0,ir.jsx)(eo,{radius:.77,sides:3,stroke:.25,color:r?ka:Sa,fill:r})]})},Ea=e=>{let{x:t,z:n,pressed:r}=e;return(0,ir.jsxs)(Zr,{translate:{x:t,z:n,y:r?wa:0},stroke:0,children:[(0,ir.jsx)(Jr,{diameter:2.8,stroke:.2,color:r?ka:Sa}),(0,ir.jsx)(Jr,{diameter:1.26,stroke:.25,color:r?ka:Sa,fill:r})]})},Pa=e=>{let{x:t,z:n,pressed:r}=e;const o=.4*xa;return(0,ir.jsxs)(Zr,{translate:{x:t,z:n,y:r?wa:0},stroke:0,children:[(0,ir.jsx)(Jr,{diameter:2.8,stroke:.2,color:r?ka:Sa}),(0,ir.jsx)(Zr,{path:[{x:-o,y:0,z:-o},{x:o,y:0,z:o}],stroke:.25,color:r?ka:Sa}),(0,ir.jsx)(Zr,{path:[{x:o,y:0,z:-o},{x:-o,y:0,z:o}],stroke:.25,color:r?ka:Sa})]})},_a=e=>{let{x:t,z:n,pressed:r}=e;const o=.38*xa,a=.616;return(0,ir.jsxs)(Zr,{translate:{x:t,z:n,y:r?wa:0},stroke:0,children:[(0,ir.jsx)(Jr,{diameter:2.8,stroke:.2,color:r?ka:Sa}),(0,ir.jsx)(Zr,{path:[{x:-o,y:0,z:-a},{x:o,y:0,z:-a},{x:o,y:0,z:a},{x:-o,y:0,z:a}],stroke:.25,color:r?ka:Sa,fill:r,closed:!0})]})},Ta=()=>{const t=e.useContext(or),[n,r]=e.useState(t.triangle.state),[o,a]=e.useState(t.circle.state),[i,l]=e.useState(t.cross.state),[s,c]=e.useState(t.square.state);return e.useEffect((()=>{t.triangle.on("change",(e=>{let{state:t}=e;return r(t)})),t.circle.on("change",(e=>{let{state:t}=e;return a(t)})),t.cross.on("change",(e=>{let{state:t}=e;return l(t)})),t.square.on("change",(e=>{let{state:t}=e;return c(t)}))}),[]),(0,ir.jsxs)(ma,{children:[(0,ir.jsx)(no,{width:16*(5.6+2.8+2),height:16*(5.6+2.8+3),children:(0,ir.jsx)(Xr,{element:"svg",zoom:16,children:(0,ir.jsxs)(Zr,{rotate:{x:ya},stroke:0,children:[(0,ir.jsx)(Ca,{x:0,z:ba,pressed:n}),(0,ir.jsx)(Ea,{x:ba,z:0,pressed:o}),(0,ir.jsx)(Pa,{x:0,z:-2.8,pressed:i}),(0,ir.jsx)(_a,{x:-2.8,z:0,pressed:s})]})})}),(0,ir.jsx)(va,{children:"Buttons"})]})};var La,Ra,ja,Aa;const Da=De.div(La||(La=r(["\n display: flex;\n align-items: center;\n gap: 6px;\n"]))),za=De.div(Ra||(Ra=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n"]))),Ma=De.span(ja||(ja=r(["\n font-size: 7px;\n text-transform: uppercase;\n letter-spacing: 1px;\n opacity: 0.3;\n"]))),Oa=40,Ia=e=>{let{value:t,label:n}=e;const r=Math.min(1,Math.abs(t)),o=20*r,a=t<0;return(0,ir.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[(0,ir.jsxs)("svg",{width:4,height:Oa,children:[(0,ir.jsx)("rect",{x:0,y:0,width:4,height:Oa,fill:"rgba(72, 175, 240, 0.08)",rx:1}),(0,ir.jsx)("line",{x1:0,y1:20,x2:4,y2:20,stroke:"rgba(72, 175, 240, 0.15)",strokeWidth:.5}),o>0&&(0,ir.jsx)("rect",{x:0,y:a?20:20-o,width:4,height:o,fill:r>.7?"#f29e02":"#48aff0",opacity:.4+.6*r,rx:1})]}),(0,ir.jsx)(Ma,{children:n})]})},Na=De.div(Aa||(Aa=r(["\n display: flex;\n gap: 2px;\n"]))),Fa=()=>{const t=e.useContext(or),[n,r]=e.useState({x:t.gyroscope.x.force,y:t.gyroscope.y.force,z:t.gyroscope.z.force}),[o,a]=e.useState({x:t.accelerometer.x.force,y:t.accelerometer.y.force,z:t.accelerometer.z.force});return e.useEffect((()=>{t.gyroscope.on("change",(e=>{r({x:e.x.force,y:e.y.force,z:e.z.force})})),t.accelerometer.on("change",(e=>{a({x:e.x.force,y:e.y.force,z:e.z.force})}))}),[]),(0,ir.jsxs)(Da,{children:[(0,ir.jsxs)(za,{children:[(0,ir.jsxs)(Na,{children:[(0,ir.jsx)(Ia,{value:n.x,label:"x"}),(0,ir.jsx)(Ia,{value:n.y,label:"y"}),(0,ir.jsx)(Ia,{value:n.z,label:"z"})]}),(0,ir.jsx)(Ma,{children:"Gyro"})]}),(0,ir.jsx)(no,{width:112,height:112,children:(0,ir.jsx)(Xr,{element:"svg",zoom:14,children:(0,ir.jsxs)(Zr,{rotate:{y:n.x*Math.PI*2,x:n.y*Math.PI*2,z:n.z*Math.PI*2},stroke:0,children:[(0,ir.jsx)(Jr,{stroke:.2,diameter:2,translate:{x:3*o.x,y:3*o.y,z:3*o.z},color:"#f29e02"}),(0,ir.jsx)(Jr,{stroke:.2,diameter:6,color:"#48aff0"})]})})}),(0,ir.jsxs)(za,{children:[(0,ir.jsxs)(Na,{children:[(0,ir.jsx)(Ia,{value:o.x,label:"x"}),(0,ir.jsx)(Ia,{value:o.y,label:"y"}),(0,ir.jsx)(Ia,{value:o.z,label:"z"})]}),(0,ir.jsx)(Ma,{children:"Accel"})]})]})};var Ba;De.div(Ba||(Ba=r(["\n display: contents;\n"])));var Ua,Ha;De.div(Ua||(Ua=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),De.span(Ha||(Ha=r(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.4;\n"]))),Math.PI,Math.PI;var Ga,Wa,Va,$a;De.div(Ga||(Ga=r(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 0;\n"]))),De.input(Wa||(Wa=r(["\n width: 40px;\n height: 28px;\n padding: 0;\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 3px;\n cursor: pointer;\n background: transparent;\n &::-webkit-color-swatch-wrapper {\n padding: 2px;\n }\n"]))),De.span(Va||(Va=r(["\n font-size: 12px;\n opacity: 0.7;\n font-family: monospace;\n"]))),De.span($a||($a=r(["\n min-width: 50px;\n font-size: 12px;\n opacity: 0.7;\n"])));var qa,Ka,Ya;const Qa=De.div(qa||(qa=r(["\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 11px;\n opacity: 0.7;\n"]))),Xa=De.span(Ka||(Ka=r(["\n font-size: 11px;\n opacity: 0.6;\n"]))),Za=De.button(Ya||(Ya=r(["\n background: rgba(72, 175, 240, 0.1);\n border: 1px solid rgba(72, 175, 240, 0.25);\n border-radius: 3px;\n color: #48aff0;\n font-size: 10px;\n padding: 2px 8px;\n cursor: pointer;\n transition: background 0.15s;\n\n &:hover {\n background: rgba(72, 175, 240, 0.25);\n }\n\n &:active {\n background: rgba(72, 175, 240, 0.4);\n }\n"]))),Ja=()=>{const t=e.useContext(or),[n,r]=e.useState(t.connection.state);return e.useEffect((()=>{t.connection.on("change",(e=>{let{state:t}=e;return r(t)}))}),[]),n?(0,ir.jsxs)(Qa,{children:[(0,ir.jsx)(Xa,{children:"Lightbar:"}),(0,ir.jsx)(Za,{onClick:()=>t.lightbar.fadeBlue(),children:"Fade Blue"}),(0,ir.jsx)(Za,{onClick:()=>t.lightbar.fadeOut(),children:"Fade Out"})]}):null};var ei,ti,ni,ri;const oi=De.div(ei||(ei=r(["\n position: relative;\n cursor: pointer;\n"]))),ai=De.div(ti||(ti=r(["\n width: 100%;\n height: 14px;\n border-radius: 7px;\n background: ",";\n border: 1px solid #48aff0;\n box-shadow: 0 0 8px ","66, 0 0 20px ","33;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: box-shadow 0.2s;\n\n &:hover {\n box-shadow: 0 0 12px ","99, 0 0 30px ","55;\n }\n"])),(e=>e.$color),(e=>e.$color),(e=>e.$color),(e=>e.$color),(e=>e.$color)),ii=De.span(ni||(ni=r(["\n font-size: 7px;\n text-transform: uppercase;\n letter-spacing: 1px;\n color: rgba(255, 255, 255, 0.8);\n font-weight: 600;\n text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6);\n"]))),li=De.input(ri||(ri=r(["\n position: absolute;\n width: 0;\n height: 0;\n opacity: 0;\n pointer-events: none;\n"]))),si=()=>{const t=e.useContext(or),n=t.lightbar.color,[r,o]=e.useState(function(e,t,n){return"#"+[e,t,n].map((e=>e.toString(16).padStart(2,"0"))).join("")}(n.r,n.g,n.b)),a=e.useRef(null),i=e.useCallback((e=>{const n=e.target.value;o(n),t.lightbar.set(function(e){const t=parseInt(e.slice(1),16);return{r:t>>16&255,g:t>>8&255,b:255&t}}(n))}),[t]),l=e.useCallback((()=>{var e;null===(e=a.current)||void 0===e||e.click()}),[]);return(0,ir.jsxs)(oi,{onClick:l,title:"Click to change lightbar color",children:[(0,ir.jsx)(ai,{$color:r,children:(0,ir.jsx)(ii,{children:"click to adjust lights"})}),(0,ir.jsx)(li,{ref:a,type:"color",value:r,onChange:i})]})},ci=()=>{const t=(0,e.useContext)(or),[n,r]=(0,e.useState)(t.mute.status.state),[o,a]=(0,e.useState)(t.connection.state);if((0,e.useEffect)((()=>{t.mute.status.on("change",(e=>{let{state:t}=e;return r(t)})),t.connection.on("change",(e=>{let{state:t}=e;return a(t)}))}),[]),!o)return null;const i=(0,ir.jsxs)("svg",{width:"10",height:"14",viewBox:"0 0 10 14",fill:"currentColor",style:{display:"block"},children:[(0,ir.jsx)("rect",{x:"3",y:"0.5",width:"4",height:"8",rx:"2"}),(0,ir.jsx)("path",{d:"M1 6.5 Q1 10.5 5 10.5 Q9 10.5 9 6.5",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,ir.jsx)("line",{x1:"5",y1:"10.5",x2:"5",y2:"13",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,ir.jsx)("line",{x1:"3",y1:"13",x2:"7",y2:"13",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),n&&(0,ir.jsx)("line",{x1:"1",y1:"1",x2:"9",y2:"12",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]});return(0,ir.jsx)(Zn,{minimal:!0,intent:n?"warning":"none",icon:i,children:n?"Muted":"Mic On"})};var ui,di,fi,hi,pi,gi,mi,vi;const yi=De.div(ui||(ui=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),bi=De.div(di||(di=r(["\n display: flex;\n gap: 4px;\n align-items: center;\n"]))),xi=De.div(fi||(fi=r(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px;\n cursor: pointer;\n border-radius: 4px;\n transition: background 0.15s;\n\n &:hover {\n background: rgba(72, 175, 240, 0.08);\n }\n"]))),wi=De.div(hi||(hi=r(["\n width: 10px;\n height: 10px;\n border-radius: 50%;\n border: 1.5px solid ",";\n background: ",";\n box-shadow: ",";\n transition: all 0.15s;\n\n ",":hover & {\n border-color: #48aff0;\n background: ",";\n }\n"])),(e=>e.$on?"#48aff0":"rgba(72, 175, 240, 0.3)"),(e=>e.$on?"#48aff0":"transparent"),(e=>e.$on?"0 0 8px #48aff0":"none"),xi,(e=>e.$on?"#48aff0":"rgba(72, 175, 240, 0.15)")),Si=De.div(pi||(pi=r(["\n display: flex;\n align-items: center;\n gap: 0;\n cursor: pointer;\n background: rgba(0, 0, 0, 0.3);\n border-radius: 8px;\n padding: 3px 6px;\n"]))),ki=De.div(gi||(gi=r(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px 12px;\n cursor: pointer;\n border-radius: 4px;\n transition: background 0.15s;\n\n &:hover {\n background: rgba(72, 175, 240, 0.1);\n }\n\n &:hover > div {\n border-color: #48aff0;\n }\n"]))),Ci=e=>{let{rays:t,active:n}=e;const r=n?"#48aff0":"rgba(72, 175, 240, 0.4)",o=Array.from({length:t},((e,n)=>{const o=2*n*Math.PI/t-Math.PI/2;return(0,ir.jsx)("line",{x1:8+4*Math.cos(o),y1:8+4*Math.sin(o),x2:8+6.5*Math.cos(o),y2:8+6.5*Math.sin(o),stroke:r,strokeWidth:"1.2",strokeLinecap:"round"},n)}));return(0,ir.jsxs)("svg",{width:16,height:16,viewBox:"0 0 ".concat(16," ").concat(16),style:{display:"block"},children:[(0,ir.jsx)("circle",{cx:8,cy:8,r:2.5,fill:n?r:"none",stroke:r,strokeWidth:"1"}),o]})},Ei=De.span(mi||(mi=r(["\n font-size: 9px;\n text-transform: uppercase;\n letter-spacing: 1px;\n opacity: 0.3;\n"]))),Pi=De.span(vi||(vi=r(["\n font-size: 7px;\n opacity: 0.2;\n"]))),_i=[{value:er.Brightness.Low,label:"Low",rays:4},{value:er.Brightness.Medium,label:"Medium",rays:6},{value:er.Brightness.High,label:"High",rays:8}],Ti=()=>{const t=e.useContext(or),[,n]=e.useState(0),[r,o]=e.useState(t.playerLeds.brightness),a=e=>{t.playerLeds.setLed(e,!t.playerLeds.getLed(e)),n((e=>e+1))};return(0,ir.jsxs)(yi,{children:[(0,ir.jsx)(bi,{children:[0,1,2,3,4].map((e=>{const n=t.playerLeds.getLed(e);return(0,ir.jsx)(xi,{onClick:()=>a(e),title:"LED ".concat(e+1,": ").concat(n?"ON":"OFF"," \u2014 click to toggle"),children:(0,ir.jsx)(wi,{$on:n})},e)}))}),(0,ir.jsx)(Si,{title:"LED brightness",children:_i.map((e=>{let{value:n,label:a,rays:i}=e;return(0,ir.jsx)(ki,{onClick:()=>(e=>{o(e),t.playerLeds.setBrightness(e)})(n),title:a,children:(0,ir.jsx)(Ci,{rays:i,active:r===n})},n)}))}),(0,ir.jsx)(Ei,{children:"Player LEDs"}),(0,ir.jsx)(Pi,{children:"click me"})]})};var Li,Ri;De.div(Li||(Li=r(["\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 0;\n"]))),De.span(Ri||(Ri=r(["\n min-width: 50px;\n font-size: 12px;\n opacity: 0.7;\n"])));var ji,Ai;const Di=De.div(ji||(ji=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n"]))),zi=De.span(Ai||(Ai=r(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.4;\n"]))),Mi=e=>{let{label:t,x:n,y:r,pressed:o}=e;return(0,ir.jsxs)(Di,{children:[(0,ir.jsx)(no,{width:162,height:162,children:(0,ir.jsxs)(Xr,{element:"svg",zoom:18,children:[(0,ir.jsx)(Jr,{stroke:.3,diameter:7,color:o?"#f29e02":"#48aff0"}),(0,ir.jsx)(Jr,{stroke:.3,diameter:4.2,color:"#f29e02",translate:{x:2.2*n,y:2.2*-r}})]})}),(0,ir.jsx)(zi,{children:t})]})},Oi=()=>{const t=e.useContext(or),[n,r]=e.useState(t.left.analog.x.force),[o,a]=e.useState(t.left.analog.y.force),[i,l]=e.useState(t.left.analog.button.state);return e.useEffect((()=>{t.left.analog.x.on("change",(e=>r(e.force))),t.left.analog.y.on("change",(e=>a(e.force))),t.left.analog.button.on("change",(e=>{let{state:t}=e;return l(t)}))}),[]),(0,ir.jsx)(Mi,{label:"Left Stick",x:n,y:o,pressed:i})},Ii=()=>{const t=e.useContext(or),[n,r]=e.useState(t.right.analog.x.force),[o,a]=e.useState(t.right.analog.y.force),[i,l]=e.useState(t.right.analog.button.state);return e.useEffect((()=>{t.right.analog.x.on("change",(e=>r(e.force))),t.right.analog.y.on("change",(e=>a(e.force))),t.right.analog.button.on("change",(e=>{let{state:t}=e;return l(t)}))}),[]),(0,ir.jsx)(Mi,{label:"Right Stick",x:n,y:o,pressed:i})};var Ni,Fi,Bi;const Ui=De.div(Ni||(Ni=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n margin-top: 6px;\n"]))),Hi=De.span(Fi||(Fi=r(["\n font-size: 9px;\n text-transform: uppercase;\n letter-spacing: 1px;\n opacity: 0.35;\n"]))),Gi=De.span(Bi||(Bi=r(["\n font-size: 8px;\n text-transform: uppercase;\n letter-spacing: 0.5px;\n opacity: 0.25;\n"]))),Wi=48,Vi=t=>{let{value:n,onChange:r,label:o}=t;const a=e.useRef(null),i=e.useRef(!1),l=e.useCallback((e=>{const t=a.current;if(!t)return;const n=t.getBoundingClientRect(),o=e.clientY-n.top,i=Math.max(0,Math.min(1,1-o/n.height)),l=Math.round(20*i)/20;r(l)}),[r]),s=e.useCallback((e=>{i.current=!0,l(e);const t=e=>{i.current&&l(e)},n=()=>{i.current=!1,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}),[l]),c=n*Wi,u=n>0?"#f29e02":"#48aff0",d=Math.round(100*n);return(0,ir.jsxs)(Ui,{title:"".concat(o,": ").concat(d,"% \u2014 drag to adjust"),children:[(0,ir.jsxs)("svg",{ref:a,width:22,height:Wi,style:{cursor:"ns-resize",borderRadius:3},onMouseDown:s,children:[(0,ir.jsx)("rect",{x:0,y:0,width:22,height:Wi,fill:"rgba(72, 175, 240, 0.1)",rx:2}),(0,ir.jsx)("rect",{x:.5,y:.5,width:21,height:47,fill:"none",stroke:"rgba(72, 175, 240, 0.3)",strokeWidth:1,rx:2}),c>0&&(0,ir.jsx)("rect",{x:2,y:Wi-c,width:18,height:c,fill:u,opacity:.3+.7*n,rx:1}),n>0&&(0,ir.jsx)("line",{x1:1,y1:Wi-c,x2:21,y2:Wi-c,stroke:u,strokeWidth:1,opacity:.8}),[.25,.5,.75].map((e=>(0,ir.jsx)("line",{x1:0,y1:Wi*(1-e),x2:2,y2:Wi*(1-e),stroke:"rgba(72, 175, 240, 0.2)",strokeWidth:.5},e)))]}),(0,ir.jsx)(Hi,{children:o}),(0,ir.jsx)(Gi,{children:"drag me"})]})},$i=()=>{const t=e.useContext(or),[n,r]=e.useState(t.left.rumble()),o=e.useCallback((e=>{r(e),t.left.rumble(e)}),[t]);return(0,ir.jsx)(Vi,{value:n,onChange:o,label:"Rumble"})},qi=()=>{const t=e.useContext(or),[n,r]=e.useState(t.right.rumble()),o=e.useCallback((e=>{r(e),t.right.rumble(e)}),[t]);return(0,ir.jsx)(Vi,{value:n,onChange:o,label:"Rumble"})};var Ki,Yi,Qi;const Xi=De.div(Ki||(Ki=r(["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),Zi=De.span(Yi||(Yi=r(["\n font-size: 9px;\n text-transform: uppercase;\n letter-spacing: 1px;\n opacity: 0.35;\n"]))),Ji=De.div(Qi||(Qi=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"]))),el=Math.PI/5,tl=3.5,nl=Math.PI/5,rl=3.5,ol="#48aff0",al="#f29e02",il=e=>{let{triggerLabel:t,bumperLabel:n,triggerPressure:r,triggerPressed:o,bumperPressed:a,labelSide:i}=e;const l=r*nl,s=o?al:ol,c=o?"#ff8c00":r>0?"rgba(242, 158, 2, ".concat(.2+.8*r,")"):"rgba(72, 175, 240, 0.3)",u=a?al:ol,d=14*(Math.max(tl,rl)+2),f=(0,ir.jsx)(no,{width:d,height:154,children:(0,ir.jsx)(Xr,{element:"svg",zoom:14,children:(0,ir.jsxs)(Zr,{rotate:{x:-el},stroke:0,children:[(0,ir.jsx)(Zr,{path:[{x:-1.75,y:0,z:0},{x:1.75,y:0,z:0},{x:1.75,y:0,z:-5},{x:-1.75,y:0,z:-5}],stroke:.3,color:s,fill:!1,closed:!0}),(0,ir.jsx)(Zr,{rotate:{x:l},stroke:0,children:(0,ir.jsx)(Zr,{path:[{x:-1.45,y:0,z:-4.7},{x:1.45,y:0,z:-4.7},{x:1.45,y:0,z:-.3},{x:-1.45,y:0,z:-.3}],stroke:.4,color:c,fill:!0,closed:!0})}),(0,ir.jsx)(Jr,{diameter:.6,stroke:.2,color:o?al:ol,translate:{y:2*r,z:-5.3}}),(0,ir.jsx)(Zr,{translate:{z:2},stroke:0,children:(0,ir.jsx)(Zr,{path:[{x:-1.75,y:0,z:0},{x:1.75,y:0,z:0},{x:1.75,y:0,z:1},{x:-1.75,y:0,z:1}],stroke:.3,color:u,fill:a,closed:!0,translate:{y:a?.4:0}})})]})})}),h=70*Math.cos(el),p=(0,ir.jsxs)(Ji,{style:{gap:"".concat(h,"px")},children:[(0,ir.jsx)(Zi,{style:{marginTop:6},children:t}),(0,ir.jsx)(Zi,{style:{marginTop:-6},children:n})]});return(0,ir.jsx)(Xi,{children:"right"===i?(0,ir.jsxs)(ir.Fragment,{children:[f,p]}):(0,ir.jsxs)(ir.Fragment,{children:[p,f]})})},ll=()=>{const t=e.useContext(or),[n,r]=e.useState(t.left.trigger.pressure),[o,a]=e.useState(t.left.trigger.button.state),[i,l]=e.useState(t.left.bumper.state);return e.useEffect((()=>{t.left.trigger.on("change",(e=>{let{pressure:t}=e;return r(t)})),t.left.trigger.button.on("change",(e=>{let{state:t}=e;return a(t)})),t.left.bumper.on("change",(e=>{let{state:t}=e;return l(t)}))}),[]),(0,ir.jsx)(il,{triggerLabel:"L2",bumperLabel:"L1",triggerPressure:n,triggerPressed:o,bumperPressed:i,labelSide:"right"})},sl=()=>{const t=e.useContext(or),[n,r]=e.useState(t.right.trigger.pressure),[o,a]=e.useState(t.right.trigger.button.state),[i,l]=e.useState(t.right.bumper.state);return e.useEffect((()=>{t.right.trigger.on("change",(e=>{let{pressure:t}=e;return r(t)})),t.right.trigger.button.on("change",(e=>{let{state:t}=e;return a(t)})),t.right.bumper.on("change",(e=>{let{state:t}=e;return l(t)}))}),[]),(0,ir.jsx)(il,{triggerLabel:"R2",bumperLabel:"R1",triggerPressure:n,triggerPressed:o,bumperPressed:i,labelSide:"left"})};var cl,ul;const dl=De.div(cl||(cl=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),fl=De.span(ul||(ul=r(["\n font-size: 11px;\n text-transform: uppercase;\n letter-spacing: 2px;\n opacity: 0.4;\n"]))),hl=()=>{const t=e.useContext(or),[n,r]=e.useState(t.touchpad.button.state),[o,a]=e.useState({active:t.touchpad.left.contact.state,x:t.touchpad.left.x.state,y:t.touchpad.left.y.state}),[i,l]=e.useState({active:t.touchpad.right.contact.state,x:t.touchpad.right.x.state,y:t.touchpad.right.y.state});return e.useEffect((()=>{t.touchpad.button.on("change",(e=>{let{state:t}=e;return r(t)})),t.touchpad.left.on("change",(e=>{a({active:e.contact.state,x:e.x.state,y:e.y.state})})),t.touchpad.right.on("change",(e=>{l({active:e.contact.state,x:e.x.state,y:e.y.state})}))}),[]),(0,ir.jsxs)(dl,{children:[(0,ir.jsx)(no,{width:252,height:126,children:(0,ir.jsxs)(Xr,{element:"svg",zoom:14,children:[(0,ir.jsx)(Zr,{path:[{x:-8,y:-3.5},{x:8,y:-3.5},{x:8,y:3.5},{x:-8,y:3.5}],stroke:.2,color:n?"#48aff0":"#335577",fill:!0,closed:!0}),(0,ir.jsx)(Zr,{path:[{x:-8,y:-3.5},{x:8,y:-3.5},{x:8,y:3.5},{x:-8,y:3.5}],stroke:.15,color:"#48aff0",fill:!1,closed:!0}),(0,ir.jsx)(Zr,{path:[{x:0,y:-3},{x:0,y:3}],stroke:.08,color:"rgba(72, 175, 240, 0.3)"}),o.active&&(0,ir.jsx)(Jr,{diameter:1.2,stroke:.3,color:"#f29e02",translate:{x:7.5*o.x,y:3*-o.y}}),i.active&&(0,ir.jsx)(Jr,{diameter:1.2,stroke:.3,color:"#ff6b35",translate:{x:7.5*i.x,y:3*-i.y}})]})}),(0,ir.jsx)(fl,{children:"Touchpad"})]})};var pl,gl;const ml=De.div(pl||(pl=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n"]))),vl=De.span(gl||(gl=r(["\n font-size: 9px;\n text-transform: uppercase;\n letter-spacing: 1px;\n opacity: 0.35;\n"]))),yl=14,bl=Math.PI/6,xl=1.8,wl="#48aff0",Sl="#f29e02",kl=e=>{let{label:t,pressed:n,size:r,children:o}=e;return(0,ir.jsxs)(ml,{children:[(0,ir.jsx)(no,{width:(r+2)*yl,height:(r+2)*yl,children:(0,ir.jsx)(Xr,{element:"svg",zoom:yl,children:(0,ir.jsx)(Zr,{rotate:{x:bl},stroke:0,children:(0,ir.jsx)(Zr,{translate:{y:n?.4:0},stroke:0,children:o})})})}),(0,ir.jsx)(vl,{children:t})]})},Cl=()=>{const t=e.useContext(or),[n,r]=e.useState(t.create.state);e.useEffect((()=>{t.create.on("change",(e=>{let{state:t}=e;return r(t)}))}),[]);const o=n?Sl:wl,a=.63,i=.65*a,l=.396,s=.08;return(0,ir.jsxs)(kl,{label:"Create",pressed:n,size:xl,children:[(0,ir.jsx)(Jr,{diameter:xl,stroke:.15,color:o}),(0,ir.jsx)(Zr,{path:[{x:-.316,y:0,z:-a},{x:-.396-s,y:0,z:i}],stroke:.15,color:o}),(0,ir.jsx)(Zr,{path:[{x:0,y:0,z:-a},{x:0,y:0,z:a}],stroke:.15,color:o}),(0,ir.jsx)(Zr,{path:[{x:.316,y:0,z:-a},{x:l+s,y:0,z:i}],stroke:.15,color:o})]})},El=()=>{const t=e.useContext(or),[n,r]=e.useState(t.options.state);e.useEffect((()=>{t.options.on("change",(e=>{let{state:t}=e;return r(t)}))}),[]);const o=n?Sl:wl,a=.54,i=.378,l=.432;return(0,ir.jsxs)(kl,{label:"Options",pressed:n,size:xl,children:[(0,ir.jsx)(Jr,{diameter:xl,stroke:.15,color:o}),(0,ir.jsx)(Zr,{path:[{x:-.378,y:0,z:-l},{x:i,y:0,z:-l}],stroke:.15,color:o}),(0,ir.jsx)(Zr,{path:[{x:-a,y:0,z:0},{x:a,y:0,z:0}],stroke:.15,color:o}),(0,ir.jsx)(Zr,{path:[{x:-.378,y:0,z:l},{x:i,y:0,z:l}],stroke:.15,color:o})]})},Pl=()=>{const t=e.useContext(or),[n,r]=e.useState(t.ps.state);e.useEffect((()=>{t.ps.on("change",(e=>{let{state:t}=e;return r(t)}))}),[]);const o=n?Sl:wl,a=.784;return(0,ir.jsxs)(kl,{label:"PS",pressed:n,size:2.8,children:[(0,ir.jsx)(Jr,{diameter:2.8,stroke:.25,color:o,fill:n}),(0,ir.jsx)(Zr,{path:[{x:0,y:0,z:1.2*-a},{x:0,y:0,z:1*a}],stroke:.2,color:n?wl:o}),(0,ir.jsx)(Zr,{path:[{x:.6*-a,y:0,z:-.392},{x:.6*a,y:0,z:-.392}],stroke:.15,color:n?wl:o}),(0,ir.jsx)(Zr,{path:[{x:.8*-a,y:0,z:.392},{x:.8*a,y:0,z:.392}],stroke:.15,color:n?wl:o})]})},_l=()=>{const t=e.useContext(or),[n,r]=e.useState(t.mute.state),[o,a]=e.useState(t.mute.status.state);e.useEffect((()=>{t.mute.on("change",(e=>{let{state:t}=e;return r(t)})),t.mute.status.on("change",(e=>{let{state:t}=e;return a(t)}))}),[]);const i=o||n?Sl:wl,l=1.2,s=.5;return(0,ir.jsxs)(ml,{children:[(0,ir.jsx)(no,{width:61.60000000000001,height:42,children:(0,ir.jsx)(Xr,{element:"svg",zoom:yl,children:(0,ir.jsx)(Zr,{rotate:{x:bl},stroke:0,children:(0,ir.jsx)(Zr,{translate:{y:n?.4:0},stroke:0,children:(0,ir.jsx)(Zr,{path:[{x:-.7,y:0,z:-s},{x:.7,y:0,z:-s},{arc:[{x:l,y:0,z:-s},{x:l,y:0,z:0}]},{arc:[{x:l,y:0,z:s},{x:.7,y:0,z:s}]},{x:-.7,y:0,z:s},{arc:[{x:-l,y:0,z:s},{x:-l,y:0,z:0}]},{arc:[{x:-l,y:0,z:-s},{x:-.7,y:0,z:-s}]}],stroke:.15,color:i,fill:o,closed:!0})})})})}),(0,ir.jsx)(vl,{children:o?"Muted":"Mute"})]})};var Tl,Ll,Rl,jl,Al,Dl,zl,Ml,Ol,Il,Nl,Fl,Bl,Ul,Hl,Gl,Wl,Vl,$l,ql,Kl,Yl,Ql,Xl,Zl,Jl,es,ts,ns,rs,os;const as=De.div.attrs({className:"bp5-dark"})(Tl||(Tl=r(["\n display: flex;\n flex-direction: column;\n width: 100vw;\n height: 100vh;\n overflow: hidden;\n user-select: none;\n"]))),is=De.main(Ll||(Ll=r(["\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n"]))),ls=De.div(Rl||(Rl=r(["\n width: 100%;\n padding: 8px 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n gap: 10px;\n background: rgba(0, 0, 0, 0.2);\n border-bottom: 1px solid rgba(255, 255, 255, 0.06);\n min-height: 48px;\n flex-shrink: 0;\n position: relative;\n"]))),ss=De.div(jl||(jl=r(["\n display: none;\n width: 100%;\n justify-content: center;\n padding: 6px 16px;\n background: rgba(0, 0, 0, 0.15);\n border-bottom: 1px solid rgba(255, 255, 255, 0.04);\n flex-shrink: 0;\n\n @media (max-width: 720px) {\n display: flex;\n }\n"]))),cs=De.a(Al||(Al=r(["\n display: flex;\n align-items: center;\n gap: 6px;\n background: rgba(72, 175, 240, 0.08);\n border: 1px solid rgba(72, 175, 240, 0.2);\n border-radius: 10px;\n padding: 3px 10px 3px 6px;\n color: #48aff0;\n font-size: 11px;\n font-weight: 500;\n text-decoration: none;\n transition: background 0.15s;\n white-space: nowrap;\n\n &:hover {\n background: rgba(72, 175, 240, 0.15);\n text-decoration: none;\n color: #48aff0;\n }\n"]))),us=De(cs)(Dl||(Dl=r(["\n position: absolute;\n left: 16px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n\n @media (max-width: 860px) {\n display: none;\n }\n"]))),ds=De(cs)(zl||(zl=r(["\n display: none;\n\n @media (max-width: 860px) {\n display: flex;\n }\n"]))),fs=()=>(0,ir.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"currentColor",style:{display:"block"},children:(0,ir.jsx)("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),hs=De.button(Ml||(Ml=r(["\n background: ",";\n border: 1px solid\n ",";\n border-radius: 3px;\n color: #48aff0;\n font-size: 10px;\n padding: 3px 8px;\n cursor: pointer;\n transition: background 0.15s;\n\n &:hover {\n background: rgba(72, 175, 240, 0.2);\n }\n"])),(e=>e.$active?"rgba(72, 175, 240, 0.2)":"rgba(72, 175, 240, 0.06)"),(e=>e.$active?"rgba(72, 175, 240, 0.5)":"rgba(72, 175, 240, 0.2)")),ps=De.div(Ol||(Ol=r(["\n width: 100%;\n padding: 12px 24px;\n background: rgba(0, 0, 0, 0.35);\n backdrop-filter: blur(12px);\n border-bottom: 1px solid rgba(255, 255, 255, 0.06);\n flex-shrink: 0;\n"]))),gs=De.div(Il||(Il=r(["\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),ms=De.div(Nl||(Nl=r(["\n opacity: ",";\n pointer-events: ",';\n transition: opacity 0.4s;\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto auto auto auto auto minmax(0, 1fr);\n grid-template-rows: auto auto auto auto;\n grid-template-areas:\n "l-shoulder . gyro gyro gyro . r-shoulder"\n "l-upper create tp tp tp options r-upper"\n ". l-lower . ps . r-lower ."\n ". . . . . . .";\n gap: 0px 2px;\n align-items: center;\n align-content: center;\n justify-items: center;\n padding: 8px 12px;\n width: 850px;\n transform-origin: center center;\n'])),(e=>e.$dimmed?.15:1),(e=>e.$dimmed?"none":"auto")),vs=De.div(Fl||(Fl=r(["\n grid-area: l-shoulder;\n"]))),ys=De.div(Bl||(Bl=r(["\n grid-area: r-shoulder;\n"]))),bs=De.div(Ul||(Ul=r(["\n grid-area: l-upper;\n"]))),xs=De.div(Hl||(Hl=r(["\n grid-area: create;\n align-self: start;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),ws=De.div(Gl||(Gl=r(["\n grid-area: tp;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 4px;\n"]))),Ss=De.div(Wl||(Wl=r(["\n grid-area: options;\n align-self: start;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),ks=De.div(Vl||(Vl=r(["\n grid-area: r-upper;\n"]))),Cs=De.div($l||($l=r(["\n grid-area: l-lower;\n"]))),Es=De.div(ql||(ql=r(["\n grid-area: r-lower;\n"]))),Ps=De.div(Kl||(Kl=r(["\n grid-area: ps;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"]))),_s=De.div(Yl||(Yl=r(["\n grid-area: gyro;\n"]))),Ts=De.div.attrs({className:"bp5-dark"})(Ql||(Ql=r(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100vw;\n height: 100vh;\n gap: clamp(12px, 3vw, 24px);\n padding: clamp(16px, 4vw, 32px);\n text-align: center;\n"]))),Ls=De.h1(Xl||(Xl=r(["\n font-size: clamp(20px, 4vw, 28px);\n font-weight: 600;\n opacity: 0.9;\n margin: 0;\n"]))),Rs=De.p(Zl||(Zl=r(["\n font-size: clamp(12px, 2vw, 14px);\n opacity: 0.6;\n max-width: min(480px, 100%);\n line-height: 1.6;\n margin: 0;\n word-wrap: break-word;\n"]))),js=De.a(Jl||(Jl=r(["\n color: #48aff0;\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n"]))),As=De.ul(es||(es=r(["\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: 12px 16px;\n font-size: 13px;\n opacity: 0.5;\n"]))),Ds=De.div(ts||(ts=r(["\n display: flex;\n align-items: center;\n gap: 4px;\n"]))),zs=De.button(ns||(ns=r(["\n background: ",";\n border: 1px solid\n ",";\n border-radius: 3px;\n color: ",";\n font-size: 11px;\n font-weight: 500;\n padding: 3px 10px;\n cursor: pointer;\n transition: background 0.15s, border-color 0.15s, color 0.15s;\n display: flex;\n align-items: center;\n gap: 5px;\n\n &:hover {\n background: rgba(72, 175, 240, 0.15);\n }\n"])),(e=>e.$active?"rgba(72, 175, 240, 0.25)":"rgba(255, 255, 255, 0.04)"),(e=>e.$active?"rgba(72, 175, 240, 0.5)":"rgba(255, 255, 255, 0.1)"),(e=>e.$connected?"#bfccd6":"rgba(255, 255, 255, 0.3)")),Ms=De.span(rs||(rs=r(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background: ",";\n display: inline-block;\n flex-shrink: 0;\n"])),(e=>e.$connected?"#3dcc91":"rgba(255, 255, 255, 0.15)")),Os=De.button(os||(os=r(["\n background: rgba(255, 255, 255, 0.04);\n border: 1px dashed rgba(255, 255, 255, 0.15);\n border-radius: 3px;\n color: rgba(255, 255, 255, 0.4);\n font-size: 13px;\n font-weight: 400;\n padding: 2px 8px;\n cursor: pointer;\n transition: background 0.15s, color 0.15s;\n\n &:hover {\n background: rgba(72, 175, 240, 0.1);\n color: #48aff0;\n border-color: rgba(72, 175, 240, 0.3);\n }\n"]))),Is=()=>(0,ir.jsxs)(Ts,{children:[(0,ir.jsx)(Ls,{children:"WebHID Not Available"}),(0,ir.jsx)(Rs,{children:"This demo requires the WebHID API to communicate with a DualSense controller. Your current browser does not support WebHID."}),(0,ir.jsx)(Rs,{children:"Compatible browsers:"}),(0,ir.jsxs)(As,{children:[(0,ir.jsx)("li",{children:"Chrome 89+"}),(0,ir.jsx)("li",{children:"Edge 89+"}),(0,ir.jsx)("li",{children:"Opera 75+"})]}),(0,ir.jsx)(Rs,{children:(0,ir.jsx)(js,{href:"https://github.com/nsfm/dualsense-ts",target:"_blank",rel:"noopener noreferrer",children:"github.com/nsfm/dualsense-ts"})})]});const Ns=()=>{var t;const{controllers:r}=function(){var t,n;const[r,o]=e.useState(null!==(t=null===nr||void 0===nr?void 0:nr.controllers)&&void 0!==t?t:[]),[a,i]=e.useState(null!==(n=null===nr||void 0===nr?void 0:nr.state.active)&&void 0!==n?n:0);return e.useEffect((()=>{const e=nr;if(!e)return;const t=()=>{o([...e.controllers]),i(e.state.active)};e.on("change",t);const n=setInterval(t,500);return()=>clearInterval(n)}),[]),{controllers:r,activeCount:a}}(),[o,a]=e.useState(0),[i,l]=e.useState(null),[s,c]=e.useState(1),u=e.useRef(null),d=r[o],f=null!==(t=null===d||void 0===d?void 0:d.connection.state)&&void 0!==t&&t;e.useEffect((()=>{!d&&r.length>0&&a(0)}),[r.length,d]),e.useEffect((()=>{const e=u.current;if(!e)return;const t=()=>{const t=e.clientWidth/850,n=e.clientHeight/600;c(Math.min(t,n,1.6))},n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()}),[]);const h=e=>l((t=>t===e?null:e));if(!tr||!nr)return(0,ir.jsx)(Is,{});const p=null!==d&&void 0!==d?d:new(n(3969).Dualsense)({hid:null});return(0,ir.jsx)(ar.Provider,{value:nr,children:(0,ir.jsxs)(as,{children:[(0,ir.jsx)(ss,{children:(0,ir.jsxs)(ds,{href:"https://github.com/nsfm/dualsense-ts",target:"_blank",rel:"noopener noreferrer",children:[(0,ir.jsx)(fs,{}),"dualsense-ts"]})}),(0,ir.jsxs)(ls,{children:[(0,ir.jsxs)(us,{href:"https://github.com/nsfm/dualsense-ts",target:"_blank",rel:"noopener noreferrer",children:[(0,ir.jsx)(fs,{}),"dualsense-ts"]}),r.length>0&&(0,ir.jsxs)(Ds,{children:[r.map(((e,t)=>(0,ir.jsxs)(zs,{$active:t===o,$connected:e.connection.state,onClick:()=>a(t),children:[(0,ir.jsx)(Ms,{$connected:e.connection.state}),"P",t+1]},t))),(0,ir.jsx)(Os,{onClick:rr,title:"Add controllers",children:"+"})]}),(0,ir.jsxs)(or.Provider,{value:p,children:[(0,ir.jsx)(_o,{}),(0,ir.jsx)(fr,{}),(0,ir.jsx)(ci,{}),(0,ir.jsx)(lr,{}),(0,ir.jsx)(Ja,{}),f&&(0,ir.jsxs)(ir.Fragment,{children:[(0,ir.jsx)(hs,{$active:"triggers"===i,onClick:()=>h("triggers"),children:"Trigger FX"}),(0,ir.jsx)(hs,{$active:"debug"===i,onClick:()=>h("debug"),children:"Debug"})]})]},o)]}),i&&(0,ir.jsx)(ps,{children:(0,ir.jsx)(or.Provider,{value:p,children:(0,ir.jsx)(ia,{panel:i})},o)}),(0,ir.jsxs)(is,{ref:u,children:[r.map(((e,t)=>(0,ir.jsx)(or.Provider,{value:e,children:(0,ir.jsx)(gs,{style:{width:850*s,height:600*s,display:t===o?void 0:"none"},children:(0,ir.jsxs)(ms,{$dimmed:!e.connection.state,style:{transform:"scale(".concat(s,")")},children:[(0,ir.jsx)(vs,{children:(0,ir.jsx)(ll,{})}),(0,ir.jsx)(ys,{children:(0,ir.jsx)(sl,{})}),(0,ir.jsx)(bs,{children:(0,ir.jsx)(ha,{})}),(0,ir.jsxs)(xs,{children:[(0,ir.jsx)(Cl,{}),(0,ir.jsx)($i,{})]}),(0,ir.jsxs)(ws,{children:[(0,ir.jsx)(si,{}),(0,ir.jsx)(hl,{})]}),(0,ir.jsxs)(Ss,{children:[(0,ir.jsx)(El,{}),(0,ir.jsx)(qi,{})]}),(0,ir.jsx)(ks,{children:(0,ir.jsx)(Ta,{})}),(0,ir.jsx)(Cs,{children:(0,ir.jsx)(Oi,{})}),(0,ir.jsxs)(Ps,{children:[(0,ir.jsx)(Ti,{}),(0,ir.jsx)(Pl,{}),(0,ir.jsx)(_l,{})]}),(0,ir.jsx)(Es,{children:(0,ir.jsx)(Ii,{})}),(0,ir.jsx)(_s,{children:(0,ir.jsx)(Fa,{})})]})})},t))),0===r.length&&(0,ir.jsx)(gs,{style:{width:850*s,height:600*s},children:(0,ir.jsxs)(ms,{$dimmed:!0,style:{transform:"scale(".concat(s,")")},children:[(0,ir.jsx)(vs,{children:(0,ir.jsx)(ll,{})}),(0,ir.jsx)(ys,{children:(0,ir.jsx)(sl,{})}),(0,ir.jsx)(bs,{children:(0,ir.jsx)(ha,{})}),(0,ir.jsxs)(xs,{children:[(0,ir.jsx)(Cl,{}),(0,ir.jsx)($i,{})]}),(0,ir.jsxs)(ws,{children:[(0,ir.jsx)(si,{}),(0,ir.jsx)(hl,{})]}),(0,ir.jsxs)(Ss,{children:[(0,ir.jsx)(El,{}),(0,ir.jsx)(qi,{})]}),(0,ir.jsx)(ks,{children:(0,ir.jsx)(Ta,{})}),(0,ir.jsx)(Cs,{children:(0,ir.jsx)(Oi,{})}),(0,ir.jsxs)(Ps,{children:[(0,ir.jsx)(Ti,{}),(0,ir.jsx)(Pl,{}),(0,ir.jsx)(_l,{})]}),(0,ir.jsx)(Es,{children:(0,ir.jsx)(Ii,{})}),(0,ir.jsx)(_s,{children:(0,ir.jsx)(Fa,{})})]})})]})]})})},Fs=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:a,getTTFB:i}=t;n(e),r(e),o(e),a(e),i(e)}))};t.createRoot(document.getElementById("root")).render((0,ir.jsx)(e.StrictMode,{children:(0,ir.jsx)(Ns,{})})),Fs(console.log)})()})();
|
|
3
|
+
//# sourceMappingURL=main.fcf0c900.js.map
|