{if(value){if(element.__editing)
return false;element.classList.add('being-edited');element.__editing=true;UI.__editingCount=(UI.__editingCount||0)+1;}else{if(!element.__editing)
return false;element.classList.remove('being-edited');delete element.__editing;--UI.__editingCount;}
return true;};UI._numberRegex=/^(-?(?:\d+(?:\.\d+)?|\.\d+))$/;UI.StyleValueDelimiters=' \xA0\t\n"\':;,/()';UI._valueModificationDirection=function(event){let direction=null;if(event.type==='mousewheel'){if(event.wheelDeltaY>0||event.wheelDeltaX>0)
direction='Up';else if(event.wheelDeltaY<0||event.wheelDeltaX<0)
direction='Down';}else{if(event.key==='ArrowUp'||event.key==='PageUp')
direction='Up';else if(event.key==='ArrowDown'||event.key==='PageDown')
direction='Down';}
return direction;};UI._modifiedHexValue=function(hexString,event){const direction=UI._valueModificationDirection(event);if(!direction)
return null;const mouseEvent=(event);const number=parseInt(hexString,16);if(isNaN(number)||!isFinite(number))
return null;const hexStrLen=hexString.length;const channelLen=hexStrLen/3;if(channelLen!==1&&channelLen!==2)
return null;let delta=0;if(UI.KeyboardShortcut.eventHasCtrlOrMeta(mouseEvent))
delta+=Math.pow(16,channelLen*2);if(mouseEvent.shiftKey)
delta+=Math.pow(16,channelLen);if(mouseEvent.altKey)
delta+=1;if(delta===0)
delta=1;if(direction==='Down')
delta*=-1;const maxValue=Math.pow(16,hexStrLen)-1;const result=Number.constrain(number+delta,0,maxValue);let resultString=result.toString(16).toUpperCase();for(let i=0,lengthDelta=hexStrLen-resultString.length;i<lengthDelta;++i)
resultString='0'+resultString;return resultString;};UI._modifiedFloatNumber=function(number,event,modifierMultiplier){const direction=UI._valueModificationDirection(event);if(!direction)
return null;const mouseEvent=(event);let delta=1;if(UI.KeyboardShortcut.eventHasCtrlOrMeta(mouseEvent))
delta=100;else if(mouseEvent.shiftKey)
delta=10;else if(mouseEvent.altKey)
delta=0.1;if(direction==='Down')
delta*=-1;if(modifierMultiplier)
delta*=modif﻿// C++/WinRT v1.0.180227.3

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#pragma once
#include "winrt/impl/Windows.ApplicationModel.AppService.0.h"
#include "winrt/impl/Windows.Foundation.0.h"
#include "winrt/impl/Windows.Networking.Sockets.0.h"
#include "winrt/impl/Windows.Web.Http.0.h"
#include "winrt/impl/Windows.System.Diagnostics.DevicePortal.0.h"

WINRT_EXPORT namespace winrt::Windows::System::Diagnostics::DevicePortal {

struct WINRT_EBO IDevicePortalConnection :
    Windows::Foundation::IInspectable,
    impl::consume_t<IDevicePortalConnection>
{
    IDevicePortalConnection(std::nullptr_t = nullptr) noexcept {}
};

struct WINRT_EBO IDevicePortalConnectionClosedEventArgs :
    Windows::Foundation::IInspectable,
    impl::consume_t<IDevicePortalConnectionClosedEventArgs>
{
    IDevicePortalConnectionClosedEventArgs(std::nullptr_t = nullptr) noexcept {}
};

struct WINRT_EBO IDevicePortalConnectionRequestReceivedEventArgs :
    Windows::Foundation::IInspectable,
    impl::consume_t<IDevicePortalConnectionRequestReceivedEventArgs>
{
    IDevicePortalConnectionRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {}
};

struct WINRT_EBO IDevicePortalConnectionStatics :
    Windows::Foundation::IInspectable,
    impl::consume_t<IDevicePortalConnectionStatics>
{
    IDevicePortalConnectionStatics(std::nullptr_t = nullptr) noexcept {}
};

struct WINRT_EBO IDevicePortalWebSocketConnection :
    Windows::Foundation::IInspectable,
    impl::consume_t<IDevicePortalWebSocketConnection>
{
    IDevicePortalWebSocketConnection(std::nullptr_t = nullptr) noexcept {}
};

struct WINRT_EBO IDevicePortalWebSocketConnectionRequestReceivedEventArgs :
    Windows::Foundation::IInspectable,
    impl::consume_t<IDevicePortalWebSocketConnectionRequestReceivedEventArgs>
{
    IDevicePortalWebSocketConnectionRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {}
};

}
